/**
 * Kubernetes Events API
 *
 * Generated from the Kubernetes OpenAPI spec.
 * DO NOT EDIT - regenerate with: bun run generate
 */
import * as Schema from "effect/Schema";
import * as API from "../client/api.js";
import * as T from "../traits.js";
import { Conflict, NotFound, UnprocessableEntity } from "../errors.js";
// Input Schema
export const CreateEventsV1NamespacedEventInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    dryRun: Schema.optional(Schema.String),
    fieldValidation: Schema.optional(Schema.String),
}).pipe(T.Http({
    method: "POST",
    path: "/apis/events.k8s.io/v1/namespaces/{namespace}/events",
}));
// Output Schema
export const CreateEventsV1NamespacedEventOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    action: Schema.optional(Schema.String),
    apiVersion: Schema.optional(Schema.String),
    deprecatedCount: Schema.optional(Schema.Number),
    deprecatedFirstTimestamp: Schema.optional(Schema.String),
    deprecatedLastTimestamp: Schema.optional(Schema.String),
    deprecatedSource: Schema.optional(Schema.Struct({
        component: Schema.optional(Schema.String),
        host: Schema.optional(Schema.String),
    })),
    eventTime: Schema.String,
    kind: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Struct({
        annotations: Schema.optional(Schema.Record(Schema.String, Schema.String)),
        creationTimestamp: Schema.optional(Schema.String),
        deletionGracePeriodSeconds: Schema.optional(Schema.Number),
        deletionTimestamp: Schema.optional(Schema.String),
        finalizers: Schema.optional(Schema.Array(Schema.String)),
        generateName: Schema.optional(Schema.String),
        generation: Schema.optional(Schema.Number),
        labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
        managedFields: Schema.optional(Schema.Array(Schema.Struct({
            apiVersion: Schema.optional(Schema.String),
            fieldsType: Schema.optional(Schema.String),
            fieldsV1: Schema.optional(Schema.Unknown),
            manager: Schema.optional(Schema.String),
            operation: Schema.optional(Schema.String),
            subresource: Schema.optional(Schema.String),
            time: Schema.optional(Schema.String),
        }))),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        ownerReferences: Schema.optional(Schema.Array(Schema.Struct({
            apiVersion: Schema.String,
            blockOwnerDeletion: Schema.optional(Schema.Boolean),
            controller: Schema.optional(Schema.Boolean),
            kind: Schema.String,
            name: Schema.String,
            uid: Schema.String,
        }))),
        resourceVersion: Schema.optional(Schema.String),
        selfLink: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    note: Schema.optional(Schema.String),
    reason: Schema.optional(Schema.String),
    regarding: Schema.optional(Schema.Struct({
        apiVersion: Schema.optional(Schema.String),
        fieldPath: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        resourceVersion: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    related: Schema.optional(Schema.Struct({
        apiVersion: Schema.optional(Schema.String),
        fieldPath: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        resourceVersion: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    reportingController: Schema.optional(Schema.String),
    reportingInstance: Schema.optional(Schema.String),
    series: Schema.optional(Schema.Struct({
        count: Schema.Number,
        lastObservedTime: Schema.String,
    })),
    type: Schema.optional(Schema.String),
});
// The operation
/**
 * create an Event
 *
 * @param dryRun - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
 * @param fieldValidation - fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
 */
export const createEventsV1NamespacedEvent = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: CreateEventsV1NamespacedEventInput,
    outputSchema: CreateEventsV1NamespacedEventOutput,
    errors: [Conflict, UnprocessableEntity],
}));
// Input Schema
export const DeleteEventsV1CollectionNamespacedEventInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    dryRun: Schema.optional(Schema.String),
}).pipe(T.Http({
    method: "DELETE",
    path: "/apis/events.k8s.io/v1/namespaces/{namespace}/events",
}));
// Output Schema
export const DeleteEventsV1CollectionNamespacedEventOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    apiVersion: Schema.optional(Schema.String),
    code: Schema.optional(Schema.Number),
    details: Schema.optional(Schema.Struct({
        causes: Schema.optional(Schema.Array(Schema.Struct({
            field: Schema.optional(Schema.String),
            message: Schema.optional(Schema.String),
            reason: Schema.optional(Schema.String),
        }))),
        group: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        retryAfterSeconds: Schema.optional(Schema.Number),
        uid: Schema.optional(Schema.String),
    })),
    kind: Schema.optional(Schema.String),
    message: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Struct({
        continue: Schema.optional(Schema.String),
        remainingItemCount: Schema.optional(Schema.Number),
        resourceVersion: Schema.optional(Schema.String),
        selfLink: Schema.optional(Schema.String),
        shardInfo: Schema.optional(Schema.Struct({
            selector: Schema.String,
        })),
    })),
    reason: Schema.optional(Schema.String),
    status: Schema.optional(Schema.String),
});
// The operation
/**
 * delete collection of Event
 *
 * @param dryRun - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
 */
export const deleteEventsV1CollectionNamespacedEvent = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: DeleteEventsV1CollectionNamespacedEventInput,
    outputSchema: DeleteEventsV1CollectionNamespacedEventOutput,
}));
// Input Schema
export const DeleteEventsV1NamespacedEventInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    dryRun: Schema.optional(Schema.String),
}).pipe(T.Http({
    method: "DELETE",
    path: "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}",
}));
// Output Schema
export const DeleteEventsV1NamespacedEventOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    apiVersion: Schema.optional(Schema.String),
    code: Schema.optional(Schema.Number),
    details: Schema.optional(Schema.Struct({
        causes: Schema.optional(Schema.Array(Schema.Struct({
            field: Schema.optional(Schema.String),
            message: Schema.optional(Schema.String),
            reason: Schema.optional(Schema.String),
        }))),
        group: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        retryAfterSeconds: Schema.optional(Schema.Number),
        uid: Schema.optional(Schema.String),
    })),
    kind: Schema.optional(Schema.String),
    message: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Struct({
        continue: Schema.optional(Schema.String),
        remainingItemCount: Schema.optional(Schema.Number),
        resourceVersion: Schema.optional(Schema.String),
        selfLink: Schema.optional(Schema.String),
        shardInfo: Schema.optional(Schema.Struct({
            selector: Schema.String,
        })),
    })),
    reason: Schema.optional(Schema.String),
    status: Schema.optional(Schema.String),
});
// The operation
/**
 * delete an Event
 *
 * @param dryRun - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
 */
export const deleteEventsV1NamespacedEvent = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: DeleteEventsV1NamespacedEventInput,
    outputSchema: DeleteEventsV1NamespacedEventOutput,
    errors: [NotFound, Conflict],
}));
// Input Schema
export const GetEventsAPIGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/apis/events.k8s.io/" }));
// Output Schema
export const GetEventsAPIGroupOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    apiVersion: Schema.optional(Schema.String),
    kind: Schema.optional(Schema.String),
    name: Schema.String,
    preferredVersion: Schema.optional(Schema.Struct({
        groupVersion: Schema.String,
        version: Schema.String,
    })),
    serverAddressByClientCIDRs: Schema.optional(Schema.Array(Schema.Struct({
        clientCIDR: Schema.String,
        serverAddress: Schema.String,
    }))),
    versions: Schema.Array(Schema.Struct({
        groupVersion: Schema.String,
        version: Schema.String,
    })),
});
// The operation
/**
 * get information of a group
 */
export const getEventsAPIGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: GetEventsAPIGroupInput,
    outputSchema: GetEventsAPIGroupOutput,
}));
// Input Schema
export const GetEventsV1APIResourcesInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/apis/events.k8s.io/v1/" }));
// Output Schema
export const GetEventsV1APIResourcesOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    apiVersion: Schema.optional(Schema.String),
    groupVersion: Schema.String,
    kind: Schema.optional(Schema.String),
    resources: Schema.Array(Schema.Struct({
        categories: Schema.optional(Schema.Array(Schema.String)),
        group: Schema.optional(Schema.String),
        kind: Schema.String,
        name: Schema.String,
        namespaced: Schema.Boolean,
        shortNames: Schema.optional(Schema.Array(Schema.String)),
        singularName: Schema.String,
        storageVersionHash: Schema.optional(Schema.String),
        verbs: Schema.Array(Schema.String),
        version: Schema.optional(Schema.String),
    })),
});
// The operation
/**
 * get available resources
 */
export const getEventsV1APIResources = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: GetEventsV1APIResourcesInput,
    outputSchema: GetEventsV1APIResourcesOutput,
}));
// Input Schema
export const ListEventsV1EventForAllNamespacesInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/apis/events.k8s.io/v1/events" }));
// Output Schema
export const ListEventsV1EventForAllNamespacesOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    apiVersion: Schema.optional(Schema.String),
    items: Schema.Array(Schema.Struct({
        action: Schema.optional(Schema.String),
        apiVersion: Schema.optional(Schema.String),
        deprecatedCount: Schema.optional(Schema.Number),
        deprecatedFirstTimestamp: Schema.optional(Schema.String),
        deprecatedLastTimestamp: Schema.optional(Schema.String),
        deprecatedSource: Schema.optional(Schema.Struct({
            component: Schema.optional(Schema.String),
            host: Schema.optional(Schema.String),
        })),
        eventTime: Schema.String,
        kind: Schema.optional(Schema.String),
        metadata: Schema.optional(Schema.Struct({
            annotations: Schema.optional(Schema.Record(Schema.String, Schema.String)),
            creationTimestamp: Schema.optional(Schema.String),
            deletionGracePeriodSeconds: Schema.optional(Schema.Number),
            deletionTimestamp: Schema.optional(Schema.String),
            finalizers: Schema.optional(Schema.Array(Schema.String)),
            generateName: Schema.optional(Schema.String),
            generation: Schema.optional(Schema.Number),
            labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
            managedFields: Schema.optional(Schema.Array(Schema.Struct({
                apiVersion: Schema.optional(Schema.String),
                fieldsType: Schema.optional(Schema.String),
                fieldsV1: Schema.optional(Schema.Unknown),
                manager: Schema.optional(Schema.String),
                operation: Schema.optional(Schema.String),
                subresource: Schema.optional(Schema.String),
                time: Schema.optional(Schema.String),
            }))),
            name: Schema.optional(Schema.String),
            namespace: Schema.optional(Schema.String),
            ownerReferences: Schema.optional(Schema.Array(Schema.Struct({
                apiVersion: Schema.String,
                blockOwnerDeletion: Schema.optional(Schema.Boolean),
                controller: Schema.optional(Schema.Boolean),
                kind: Schema.String,
                name: Schema.String,
                uid: Schema.String,
            }))),
            resourceVersion: Schema.optional(Schema.String),
            selfLink: Schema.optional(Schema.String),
            uid: Schema.optional(Schema.String),
        })),
        note: Schema.optional(Schema.String),
        reason: Schema.optional(Schema.String),
        regarding: Schema.optional(Schema.Struct({
            apiVersion: Schema.optional(Schema.String),
            fieldPath: Schema.optional(Schema.String),
            kind: Schema.optional(Schema.String),
            name: Schema.optional(Schema.String),
            namespace: Schema.optional(Schema.String),
            resourceVersion: Schema.optional(Schema.String),
            uid: Schema.optional(Schema.String),
        })),
        related: Schema.optional(Schema.Struct({
            apiVersion: Schema.optional(Schema.String),
            fieldPath: Schema.optional(Schema.String),
            kind: Schema.optional(Schema.String),
            name: Schema.optional(Schema.String),
            namespace: Schema.optional(Schema.String),
            resourceVersion: Schema.optional(Schema.String),
            uid: Schema.optional(Schema.String),
        })),
        reportingController: Schema.optional(Schema.String),
        reportingInstance: Schema.optional(Schema.String),
        series: Schema.optional(Schema.Struct({
            count: Schema.Number,
            lastObservedTime: Schema.String,
        })),
        type: Schema.optional(Schema.String),
    })),
    kind: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Struct({
        continue: Schema.optional(Schema.String),
        remainingItemCount: Schema.optional(Schema.Number),
        resourceVersion: Schema.optional(Schema.String),
        selfLink: Schema.optional(Schema.String),
        shardInfo: Schema.optional(Schema.Struct({
            selector: Schema.String,
        })),
    })),
});
// The operation
/**
 * list or watch objects of kind Event
 */
export const listEventsV1EventForAllNamespaces = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: ListEventsV1EventForAllNamespacesInput,
    outputSchema: ListEventsV1EventForAllNamespacesOutput,
}));
// Input Schema
export const ListEventsV1NamespacedEventInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
    method: "GET",
    path: "/apis/events.k8s.io/v1/namespaces/{namespace}/events",
}));
// Output Schema
export const ListEventsV1NamespacedEventOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    apiVersion: Schema.optional(Schema.String),
    items: Schema.Array(Schema.Struct({
        action: Schema.optional(Schema.String),
        apiVersion: Schema.optional(Schema.String),
        deprecatedCount: Schema.optional(Schema.Number),
        deprecatedFirstTimestamp: Schema.optional(Schema.String),
        deprecatedLastTimestamp: Schema.optional(Schema.String),
        deprecatedSource: Schema.optional(Schema.Struct({
            component: Schema.optional(Schema.String),
            host: Schema.optional(Schema.String),
        })),
        eventTime: Schema.String,
        kind: Schema.optional(Schema.String),
        metadata: Schema.optional(Schema.Struct({
            annotations: Schema.optional(Schema.Record(Schema.String, Schema.String)),
            creationTimestamp: Schema.optional(Schema.String),
            deletionGracePeriodSeconds: Schema.optional(Schema.Number),
            deletionTimestamp: Schema.optional(Schema.String),
            finalizers: Schema.optional(Schema.Array(Schema.String)),
            generateName: Schema.optional(Schema.String),
            generation: Schema.optional(Schema.Number),
            labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
            managedFields: Schema.optional(Schema.Array(Schema.Struct({
                apiVersion: Schema.optional(Schema.String),
                fieldsType: Schema.optional(Schema.String),
                fieldsV1: Schema.optional(Schema.Unknown),
                manager: Schema.optional(Schema.String),
                operation: Schema.optional(Schema.String),
                subresource: Schema.optional(Schema.String),
                time: Schema.optional(Schema.String),
            }))),
            name: Schema.optional(Schema.String),
            namespace: Schema.optional(Schema.String),
            ownerReferences: Schema.optional(Schema.Array(Schema.Struct({
                apiVersion: Schema.String,
                blockOwnerDeletion: Schema.optional(Schema.Boolean),
                controller: Schema.optional(Schema.Boolean),
                kind: Schema.String,
                name: Schema.String,
                uid: Schema.String,
            }))),
            resourceVersion: Schema.optional(Schema.String),
            selfLink: Schema.optional(Schema.String),
            uid: Schema.optional(Schema.String),
        })),
        note: Schema.optional(Schema.String),
        reason: Schema.optional(Schema.String),
        regarding: Schema.optional(Schema.Struct({
            apiVersion: Schema.optional(Schema.String),
            fieldPath: Schema.optional(Schema.String),
            kind: Schema.optional(Schema.String),
            name: Schema.optional(Schema.String),
            namespace: Schema.optional(Schema.String),
            resourceVersion: Schema.optional(Schema.String),
            uid: Schema.optional(Schema.String),
        })),
        related: Schema.optional(Schema.Struct({
            apiVersion: Schema.optional(Schema.String),
            fieldPath: Schema.optional(Schema.String),
            kind: Schema.optional(Schema.String),
            name: Schema.optional(Schema.String),
            namespace: Schema.optional(Schema.String),
            resourceVersion: Schema.optional(Schema.String),
            uid: Schema.optional(Schema.String),
        })),
        reportingController: Schema.optional(Schema.String),
        reportingInstance: Schema.optional(Schema.String),
        series: Schema.optional(Schema.Struct({
            count: Schema.Number,
            lastObservedTime: Schema.String,
        })),
        type: Schema.optional(Schema.String),
    })),
    kind: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Struct({
        continue: Schema.optional(Schema.String),
        remainingItemCount: Schema.optional(Schema.Number),
        resourceVersion: Schema.optional(Schema.String),
        selfLink: Schema.optional(Schema.String),
        shardInfo: Schema.optional(Schema.Struct({
            selector: Schema.String,
        })),
    })),
});
// The operation
/**
 * list or watch objects of kind Event
 */
export const listEventsV1NamespacedEvent = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: ListEventsV1NamespacedEventInput,
    outputSchema: ListEventsV1NamespacedEventOutput,
}));
// Input Schema
export const PatchEventsV1NamespacedEventInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    dryRun: Schema.optional(Schema.String),
    fieldValidation: Schema.optional(Schema.String),
}).pipe(T.Http({
    method: "PATCH",
    path: "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}",
}));
// Output Schema
export const PatchEventsV1NamespacedEventOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    action: Schema.optional(Schema.String),
    apiVersion: Schema.optional(Schema.String),
    deprecatedCount: Schema.optional(Schema.Number),
    deprecatedFirstTimestamp: Schema.optional(Schema.String),
    deprecatedLastTimestamp: Schema.optional(Schema.String),
    deprecatedSource: Schema.optional(Schema.Struct({
        component: Schema.optional(Schema.String),
        host: Schema.optional(Schema.String),
    })),
    eventTime: Schema.String,
    kind: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Struct({
        annotations: Schema.optional(Schema.Record(Schema.String, Schema.String)),
        creationTimestamp: Schema.optional(Schema.String),
        deletionGracePeriodSeconds: Schema.optional(Schema.Number),
        deletionTimestamp: Schema.optional(Schema.String),
        finalizers: Schema.optional(Schema.Array(Schema.String)),
        generateName: Schema.optional(Schema.String),
        generation: Schema.optional(Schema.Number),
        labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
        managedFields: Schema.optional(Schema.Array(Schema.Struct({
            apiVersion: Schema.optional(Schema.String),
            fieldsType: Schema.optional(Schema.String),
            fieldsV1: Schema.optional(Schema.Unknown),
            manager: Schema.optional(Schema.String),
            operation: Schema.optional(Schema.String),
            subresource: Schema.optional(Schema.String),
            time: Schema.optional(Schema.String),
        }))),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        ownerReferences: Schema.optional(Schema.Array(Schema.Struct({
            apiVersion: Schema.String,
            blockOwnerDeletion: Schema.optional(Schema.Boolean),
            controller: Schema.optional(Schema.Boolean),
            kind: Schema.String,
            name: Schema.String,
            uid: Schema.String,
        }))),
        resourceVersion: Schema.optional(Schema.String),
        selfLink: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    note: Schema.optional(Schema.String),
    reason: Schema.optional(Schema.String),
    regarding: Schema.optional(Schema.Struct({
        apiVersion: Schema.optional(Schema.String),
        fieldPath: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        resourceVersion: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    related: Schema.optional(Schema.Struct({
        apiVersion: Schema.optional(Schema.String),
        fieldPath: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        resourceVersion: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    reportingController: Schema.optional(Schema.String),
    reportingInstance: Schema.optional(Schema.String),
    series: Schema.optional(Schema.Struct({
        count: Schema.Number,
        lastObservedTime: Schema.String,
    })),
    type: Schema.optional(Schema.String),
});
// The operation
/**
 * partially update the specified Event
 *
 * @param dryRun - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
 * @param fieldValidation - fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
 */
export const patchEventsV1NamespacedEvent = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: PatchEventsV1NamespacedEventInput,
    outputSchema: PatchEventsV1NamespacedEventOutput,
    errors: [NotFound, Conflict, UnprocessableEntity],
}));
// Input Schema
export const ReadEventsV1NamespacedEventInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
    method: "GET",
    path: "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}",
}));
// Output Schema
export const ReadEventsV1NamespacedEventOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    action: Schema.optional(Schema.String),
    apiVersion: Schema.optional(Schema.String),
    deprecatedCount: Schema.optional(Schema.Number),
    deprecatedFirstTimestamp: Schema.optional(Schema.String),
    deprecatedLastTimestamp: Schema.optional(Schema.String),
    deprecatedSource: Schema.optional(Schema.Struct({
        component: Schema.optional(Schema.String),
        host: Schema.optional(Schema.String),
    })),
    eventTime: Schema.String,
    kind: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Struct({
        annotations: Schema.optional(Schema.Record(Schema.String, Schema.String)),
        creationTimestamp: Schema.optional(Schema.String),
        deletionGracePeriodSeconds: Schema.optional(Schema.Number),
        deletionTimestamp: Schema.optional(Schema.String),
        finalizers: Schema.optional(Schema.Array(Schema.String)),
        generateName: Schema.optional(Schema.String),
        generation: Schema.optional(Schema.Number),
        labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
        managedFields: Schema.optional(Schema.Array(Schema.Struct({
            apiVersion: Schema.optional(Schema.String),
            fieldsType: Schema.optional(Schema.String),
            fieldsV1: Schema.optional(Schema.Unknown),
            manager: Schema.optional(Schema.String),
            operation: Schema.optional(Schema.String),
            subresource: Schema.optional(Schema.String),
            time: Schema.optional(Schema.String),
        }))),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        ownerReferences: Schema.optional(Schema.Array(Schema.Struct({
            apiVersion: Schema.String,
            blockOwnerDeletion: Schema.optional(Schema.Boolean),
            controller: Schema.optional(Schema.Boolean),
            kind: Schema.String,
            name: Schema.String,
            uid: Schema.String,
        }))),
        resourceVersion: Schema.optional(Schema.String),
        selfLink: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    note: Schema.optional(Schema.String),
    reason: Schema.optional(Schema.String),
    regarding: Schema.optional(Schema.Struct({
        apiVersion: Schema.optional(Schema.String),
        fieldPath: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        resourceVersion: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    related: Schema.optional(Schema.Struct({
        apiVersion: Schema.optional(Schema.String),
        fieldPath: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        resourceVersion: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    reportingController: Schema.optional(Schema.String),
    reportingInstance: Schema.optional(Schema.String),
    series: Schema.optional(Schema.Struct({
        count: Schema.Number,
        lastObservedTime: Schema.String,
    })),
    type: Schema.optional(Schema.String),
});
// The operation
/**
 * read the specified Event
 */
export const readEventsV1NamespacedEvent = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: ReadEventsV1NamespacedEventInput,
    outputSchema: ReadEventsV1NamespacedEventOutput,
    errors: [NotFound],
}));
// Input Schema
export const ReplaceEventsV1NamespacedEventInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    dryRun: Schema.optional(Schema.String),
    fieldValidation: Schema.optional(Schema.String),
}).pipe(T.Http({
    method: "PUT",
    path: "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}",
}));
// Output Schema
export const ReplaceEventsV1NamespacedEventOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    action: Schema.optional(Schema.String),
    apiVersion: Schema.optional(Schema.String),
    deprecatedCount: Schema.optional(Schema.Number),
    deprecatedFirstTimestamp: Schema.optional(Schema.String),
    deprecatedLastTimestamp: Schema.optional(Schema.String),
    deprecatedSource: Schema.optional(Schema.Struct({
        component: Schema.optional(Schema.String),
        host: Schema.optional(Schema.String),
    })),
    eventTime: Schema.String,
    kind: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Struct({
        annotations: Schema.optional(Schema.Record(Schema.String, Schema.String)),
        creationTimestamp: Schema.optional(Schema.String),
        deletionGracePeriodSeconds: Schema.optional(Schema.Number),
        deletionTimestamp: Schema.optional(Schema.String),
        finalizers: Schema.optional(Schema.Array(Schema.String)),
        generateName: Schema.optional(Schema.String),
        generation: Schema.optional(Schema.Number),
        labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
        managedFields: Schema.optional(Schema.Array(Schema.Struct({
            apiVersion: Schema.optional(Schema.String),
            fieldsType: Schema.optional(Schema.String),
            fieldsV1: Schema.optional(Schema.Unknown),
            manager: Schema.optional(Schema.String),
            operation: Schema.optional(Schema.String),
            subresource: Schema.optional(Schema.String),
            time: Schema.optional(Schema.String),
        }))),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        ownerReferences: Schema.optional(Schema.Array(Schema.Struct({
            apiVersion: Schema.String,
            blockOwnerDeletion: Schema.optional(Schema.Boolean),
            controller: Schema.optional(Schema.Boolean),
            kind: Schema.String,
            name: Schema.String,
            uid: Schema.String,
        }))),
        resourceVersion: Schema.optional(Schema.String),
        selfLink: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    note: Schema.optional(Schema.String),
    reason: Schema.optional(Schema.String),
    regarding: Schema.optional(Schema.Struct({
        apiVersion: Schema.optional(Schema.String),
        fieldPath: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        resourceVersion: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    related: Schema.optional(Schema.Struct({
        apiVersion: Schema.optional(Schema.String),
        fieldPath: Schema.optional(Schema.String),
        kind: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
        namespace: Schema.optional(Schema.String),
        resourceVersion: Schema.optional(Schema.String),
        uid: Schema.optional(Schema.String),
    })),
    reportingController: Schema.optional(Schema.String),
    reportingInstance: Schema.optional(Schema.String),
    series: Schema.optional(Schema.Struct({
        count: Schema.Number,
        lastObservedTime: Schema.String,
    })),
    type: Schema.optional(Schema.String),
});
// The operation
/**
 * replace the specified Event
 *
 * @param dryRun - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
 * @param fieldValidation - fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
 */
export const replaceEventsV1NamespacedEvent = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: ReplaceEventsV1NamespacedEventInput,
    outputSchema: ReplaceEventsV1NamespacedEventOutput,
    errors: [NotFound, Conflict, UnprocessableEntity],
}));
// Input Schema
export const WatchEventsV1EventListForAllNamespacesInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/apis/events.k8s.io/v1/watch/events" }));
// Output Schema
export const WatchEventsV1EventListForAllNamespacesOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    object: Schema.Unknown,
    type: Schema.String,
});
// The operation
/**
 * watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.
 */
export const watchEventsV1EventListForAllNamespaces = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: WatchEventsV1EventListForAllNamespacesInput,
    outputSchema: WatchEventsV1EventListForAllNamespacesOutput,
}));
// Input Schema
export const WatchEventsV1NamespacedEventInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
    method: "GET",
    path: "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}",
}));
// Output Schema
export const WatchEventsV1NamespacedEventOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    object: Schema.Unknown,
    type: Schema.String,
});
// The operation
/**
 * watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
 */
export const watchEventsV1NamespacedEvent = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: WatchEventsV1NamespacedEventInput,
    outputSchema: WatchEventsV1NamespacedEventOutput,
}));
// Input Schema
export const WatchEventsV1NamespacedEventListInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
    method: "GET",
    path: "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events",
}));
// Output Schema
export const WatchEventsV1NamespacedEventListOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    object: Schema.Unknown,
    type: Schema.String,
});
// The operation
/**
 * watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.
 */
export const watchEventsV1NamespacedEventList = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: WatchEventsV1NamespacedEventListInput,
    outputSchema: WatchEventsV1NamespacedEventListOutput,
}));
//# sourceMappingURL=events.js.map