import * as v from "valibot"; //#region src/services/api-keys/api-keys.schemas.d.ts declare const ApiKeyStatusSchema: v.PicklistSchema; type ApiKeyStatus = v.InferOutput; declare const ApiKeysListInputSchema: v.SchemaWithPipe, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; }, undefined>, v.TransformAction<{ account?: "active" | "main" | { subaccountId: string; } | undefined; }, { subaccountId: bigint | undefined; }>]>; type ApiKeysListInput = v.InferInput; declare const ApiKeyIdInputSchema: v.StrictObjectSchema<{ readonly keyId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>; type ApiKeyIdInput = v.InferInput; declare const ApiKeysCreateInputSchema: v.SchemaWithPipe, undefined>, readonly []>; readonly publicKeyEd25519: v.InstanceSchema<{ new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array; readonly prototype: Uint8Array; readonly BYTES_PER_ELEMENT: number; of(...items: number[]): Uint8Array; from(arrayLike: ArrayLike): Uint8Array; from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; from(elements: Iterable): Uint8Array; from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; }, undefined>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; readonly label: v.StringSchema; readonly icon: v.OptionalSchema, "">; readonly color: v.OptionalSchema, "">; }, undefined>, v.TransformAction<{ ipWhitelist: string[]; publicKeyEd25519: Uint8Array; account?: "active" | "main" | { subaccountId: string; } | undefined; label: string; icon: string; color: string; }, { subaccountId: bigint | undefined; ipWhitelist: string[]; publicKeyEd25519: Uint8Array; label: string; icon: string; color: string; }>]>; type ApiKeysCreateInput = v.InferInput; declare const ApiKeysUpdateInputSchema: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly expectedRevision: v.SchemaWithPipe, v.TrimAction]>, v.RegexAction, v.TransformAction]>, v.CheckAction]>; readonly label: v.OptionalSchema, undefined>; readonly icon: v.OptionalSchema, undefined>; readonly color: v.OptionalSchema, undefined>; readonly status: v.OptionalSchema, undefined>; readonly ipWhitelist: v.OptionalSchema, undefined>, undefined>; readonly expiresAtIso: v.OptionalSchema, v.CheckAction]>, undefined>, undefined>; }, undefined>, v.CheckAction<{ keyId: string; expectedRevision: bigint; label?: string | undefined; icon?: string | undefined; color?: string | undefined; status?: "active" | "disabled" | undefined; ipWhitelist?: string[] | undefined; expiresAtIso?: string | null | undefined; }, "At least one API key field must be provided">, v.TransformAction<{ keyId: string; expectedRevision: bigint; label?: string | undefined; icon?: string | undefined; color?: string | undefined; status?: "active" | "disabled" | undefined; ipWhitelist?: string[] | undefined; expiresAtIso?: string | null | undefined; }, { keyId: string; apiKey: never; updateMask: { paths: string[]; }; expectedRevision: bigint; }>]>; type ApiKeysUpdateInput = v.InferInput; declare const ApiKeySchema: v.SchemaWithPipe; readonly label: v.OptionalSchema, "">; readonly icon: v.OptionalSchema, "">; readonly color: v.OptionalSchema, "">; readonly ipWhitelist: v.OptionalSchema, undefined>, readonly []>; readonly subaccountId: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly policyId: v.OptionalSchema, v.TransformAction]>, 0n>; readonly createdAt: v.SchemaWithPipe; readonly nanos: v.OptionalSchema, 0>; }, undefined>, v.TransformAction<{ seconds: bigint; nanos: number; }, number>]>; readonly updatedAt: v.OptionalSchema; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>; readonly lastUsedAt: v.SchemaWithPipe; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>, v.TransformAction<{ seconds: bigint; nanos: number; } | undefined, number | undefined>]>; readonly publicKeyEd25519: v.InstanceSchema<{ new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array; readonly prototype: Uint8Array; readonly BYTES_PER_ELEMENT: number; of(...items: number[]): Uint8Array; from(arrayLike: ArrayLike): Uint8Array; from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; from(elements: Iterable): Uint8Array; from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; }, undefined>; readonly expiresAt: v.SchemaWithPipe; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>, v.TransformAction<{ seconds: bigint; nanos: number; } | undefined, string | undefined>]>; readonly status: v.SchemaWithPipe, v.TransformAction]>; /** `"standard"`, `"assistant"`, or `"unspecified"` from older servers. */ readonly purpose: v.OptionalSchema, v.TransformAction]>, 0>; readonly createdByActor: v.StringSchema; readonly revision: v.SchemaWithPipe, v.TransformAction]>; }, undefined>, v.TransformAction<{ keyId: string; label: string; icon: string; color: string; ipWhitelist: string[]; subaccountId?: string | undefined; policyId: string; createdAt: number; updatedAt?: { seconds: bigint; nanos: number; } | undefined; lastUsedAt?: number | undefined; publicKeyEd25519: Uint8Array; expiresAt?: string | undefined; status: "unspecified" | "active" | "disabled" | "revoked"; purpose: "unspecified" | "standard" | "assistant"; createdByActor: string; revision: string; }, { subaccountId: string | undefined; updatedAt: number | undefined; updatedAtNs: string | undefined; publicKeyHex: string; keyId: string; label: string; icon: string; color: string; ipWhitelist: string[]; policyId: string; createdAt: number; lastUsedAt?: number | undefined; publicKeyEd25519: Uint8Array; expiresAt?: string | undefined; status: "unspecified" | "active" | "disabled" | "revoked"; purpose: "unspecified" | "standard" | "assistant"; createdByActor: string; revision: string; }>]>; type ApiKey = v.InferOutput; /** * One account's key in the assistant key set. Spread a key from `assistant.prepareKeys` and add * its `policyId`; other fields (like `publicKeyHex`) are ignored. */ declare const AssistantKeySpecInputSchema: v.SchemaWithPipe, v.TrimAction]>, undefined>, v.TransformAction]>; /** 32-byte Ed25519 public key from `assistant.prepareKeys`. */ readonly publicKeyEd25519: v.SchemaWithPipe; readonly prototype: Uint8Array; readonly BYTES_PER_ELEMENT: number; of(...items: number[]): Uint8Array; from(arrayLike: ArrayLike): Uint8Array; from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; from(elements: Iterable): Uint8Array; from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; }, undefined>, v.LengthAction, 32, "publicKeyEd25519 must be 32 bytes">]>; /** API policy that bounds the key. It must not allow moving value out of the account. */ readonly policyId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>; /** Epoch ms from `assistant.prepareKeys`; needed for a new key, not for one already registered. */ readonly registrationDeadline: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; /** 64-byte proof from `assistant.prepareKeys`; needed for a new key, not for one already registered. */ readonly registrationProof: v.OptionalSchema; readonly prototype: Uint8Array; readonly BYTES_PER_ELEMENT: number; of(...items: number[]): Uint8Array; from(arrayLike: ArrayLike): Uint8Array; from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; from(elements: Iterable): Uint8Array; from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; }, undefined>, v.LengthAction, 64, "registrationProof must be 64 bytes">]>, undefined>; }, undefined>, v.TransformAction<{ subaccountId?: bigint | undefined; publicKeyEd25519: Uint8Array; policyId: bigint; registrationDeadline?: number | undefined; registrationProof?: Uint8Array | undefined; }, { registrationDeadline: import("@bufbuild/protobuf/wkt").Timestamp | undefined; registrationProof: Uint8Array; subaccountId?: bigint | undefined; publicKeyEd25519: Uint8Array; policyId: bigint; }>]>; type AssistantKeySpecInput = v.InferInput; declare const SetAssistantKeysInputSchema: v.StrictObjectSchema<{ /** The complete set: at most one key per account, at most 64. An account left out loses its key. */ readonly keys: v.SchemaWithPipe, v.TrimAction]>, undefined>, v.TransformAction]>; /** 32-byte Ed25519 public key from `assistant.prepareKeys`. */ readonly publicKeyEd25519: v.SchemaWithPipe; readonly prototype: Uint8Array; readonly BYTES_PER_ELEMENT: number; of(...items: number[]): Uint8Array; from(arrayLike: ArrayLike): Uint8Array; from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; from(elements: Iterable): Uint8Array; from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; }, undefined>, v.LengthAction, 32, "publicKeyEd25519 must be 32 bytes">]>; /** API policy that bounds the key. It must not allow moving value out of the account. */ readonly policyId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>; /** Epoch ms from `assistant.prepareKeys`; needed for a new key, not for one already registered. */ readonly registrationDeadline: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; /** 64-byte proof from `assistant.prepareKeys`; needed for a new key, not for one already registered. */ readonly registrationProof: v.OptionalSchema; readonly prototype: Uint8Array; readonly BYTES_PER_ELEMENT: number; of(...items: number[]): Uint8Array; from(arrayLike: ArrayLike): Uint8Array; from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; from(elements: Iterable): Uint8Array; from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; }, undefined>, v.LengthAction, 64, "registrationProof must be 64 bytes">]>, undefined>; }, undefined>, v.TransformAction<{ subaccountId?: bigint | undefined; publicKeyEd25519: Uint8Array; policyId: bigint; registrationDeadline?: number | undefined; registrationProof?: Uint8Array | undefined; }, { registrationDeadline: import("@bufbuild/protobuf/wkt").Timestamp | undefined; registrationProof: Uint8Array; subaccountId?: bigint | undefined; publicKeyEd25519: Uint8Array; policyId: bigint; }>]>, undefined>, v.MaxLengthAction<{ registrationDeadline: import("@bufbuild/protobuf/wkt").Timestamp | undefined; registrationProof: Uint8Array; subaccountId?: bigint | undefined; publicKeyEd25519: Uint8Array; policyId: bigint; }[], 64, "At most 64 assistant keys are allowed.">, v.CheckAction<{ registrationDeadline: import("@bufbuild/protobuf/wkt").Timestamp | undefined; registrationProof: Uint8Array; subaccountId?: bigint | undefined; publicKeyEd25519: Uint8Array; policyId: bigint; }[], "At most one assistant key per account is allowed.">, v.CheckAction<{ registrationDeadline: import("@bufbuild/protobuf/wkt").Timestamp | undefined; registrationProof: Uint8Array; subaccountId?: bigint | undefined; publicKeyEd25519: Uint8Array; policyId: bigint; }[], "Assistant public keys must be distinct.">]>; }, undefined>; type SetAssistantKeysInput = v.InferInput; //#endregion export { ApiKey, ApiKeyIdInput, ApiKeyIdInputSchema, ApiKeySchema, ApiKeyStatus, ApiKeysCreateInput, ApiKeysCreateInputSchema, ApiKeysListInput, ApiKeysListInputSchema, ApiKeysUpdateInput, ApiKeysUpdateInputSchema, AssistantKeySpecInput, SetAssistantKeysInput, SetAssistantKeysInputSchema }; //# sourceMappingURL=api-keys.schemas.d.ts.map