export * as Credential from "./credential.js"; import { Schema } from "effect"; export declare const ID: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }; export type ID = typeof ID.Type; export declare const Event: { Updated: Schema.Struct<{ readonly id: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Event.ID">; }; readonly created: Schema.Finite; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; readonly type: Schema.Literal<"credential.updated">; readonly location: Schema.decodeTo; readonly workspaceID: Schema.decodeTo & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>>, Schema.optionalKey & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>, never, never>; }>>>, Schema.optionalKey; readonly workspaceID: Schema.decodeTo & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>>, Schema.optionalKey & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>, never, never>; }>>, never, never>; readonly data: Schema.Struct<{ readonly integrationID: Schema.brand; readonly credentialID: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }; }>; }> & { type: "credential.updated"; durability: "ephemeral"; durable: undefined; data: Schema.Struct<{ readonly integrationID: Schema.brand; readonly credentialID: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }; }>; }; Switched: Schema.Struct<{ readonly id: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Event.ID">; }; readonly created: Schema.Finite; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; readonly type: Schema.Literal<"credential.switched">; readonly location: Schema.decodeTo; readonly workspaceID: Schema.decodeTo & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>>, Schema.optionalKey & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>, never, never>; }>>>, Schema.optionalKey; readonly workspaceID: Schema.decodeTo & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>>, Schema.optionalKey & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>, never, never>; }>>, never, never>; readonly data: Schema.Struct<{ readonly integrationID: Schema.brand; readonly credentialID: Schema.NullOr & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }>; }>; }> & { type: "credential.switched"; durability: "ephemeral"; durable: undefined; data: Schema.Struct<{ readonly integrationID: Schema.brand; readonly credentialID: Schema.NullOr & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }>; }>; }; Definitions: readonly [Schema.Struct<{ readonly id: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Event.ID">; }; readonly created: Schema.Finite; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; readonly type: Schema.Literal<"credential.updated">; readonly location: Schema.decodeTo; readonly workspaceID: Schema.decodeTo & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>>, Schema.optionalKey & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>, never, never>; }>>>, Schema.optionalKey; readonly workspaceID: Schema.decodeTo & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>>, Schema.optionalKey & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>, never, never>; }>>, never, never>; readonly data: Schema.Struct<{ readonly integrationID: Schema.brand; readonly credentialID: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }; }>; }> & { type: "credential.updated"; durability: "ephemeral"; durable: undefined; data: Schema.Struct<{ readonly integrationID: Schema.brand; readonly credentialID: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }; }>; }, Schema.Struct<{ readonly id: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Event.ID">; }; readonly created: Schema.Finite; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; readonly type: Schema.Literal<"credential.switched">; readonly location: Schema.decodeTo; readonly workspaceID: Schema.decodeTo & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>>, Schema.optionalKey & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>, never, never>; }>>>, Schema.optionalKey; readonly workspaceID: Schema.decodeTo & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>>, Schema.optionalKey & { ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; create: () => string & import("effect/Brand").Brand<"Workspace.ID">; }>, never, never>; }>>, never, never>; readonly data: Schema.Struct<{ readonly integrationID: Schema.brand; readonly credentialID: Schema.NullOr & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }>; }>; }> & { type: "credential.switched"; durability: "ephemeral"; durable: undefined; data: Schema.Struct<{ readonly integrationID: Schema.brand; readonly credentialID: Schema.NullOr & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }>; }>; }]; }; export interface OAuth extends Schema.Schema.Type { } export declare const OAuth: Schema.Struct<{ readonly type: Schema.Literal<"oauth">; readonly methodID: Schema.brand; readonly refresh: Schema.String; readonly access: Schema.String; readonly expires: Schema.Int; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>; export interface Key extends Schema.Schema.Type { } export declare const Key: Schema.Struct<{ readonly type: Schema.Literal<"key">; readonly key: Schema.String; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>; /** References a credential source whose secrets and renewal are managed outside the credential store. */ export interface External extends Schema.Schema.Type { } export declare const External: Schema.Struct<{ readonly type: Schema.Literal<"external">; readonly methodID: Schema.brand; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>; export declare const Value: Schema.Union; readonly methodID: Schema.brand; readonly refresh: Schema.String; readonly access: Schema.String; readonly expires: Schema.Int; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>, Schema.Struct<{ readonly type: Schema.Literal<"key">; readonly key: Schema.String; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>, Schema.Struct<{ readonly type: Schema.Literal<"external">; readonly methodID: Schema.brand; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>]>; export type Value = Schema.Schema.Type; export interface Entry extends Schema.Schema.Type { } export declare const Entry: Schema.Struct<{ readonly id: Schema.brand & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }; readonly integrationID: Schema.brand; readonly label: Schema.String; readonly active: Schema.Boolean; readonly value: Schema.Union; readonly methodID: Schema.brand; readonly refresh: Schema.String; readonly access: Schema.String; readonly expires: Schema.Int; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>, Schema.Struct<{ readonly type: Schema.Literal<"key">; readonly key: Schema.String; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>, Schema.Struct<{ readonly type: Schema.Literal<"external">; readonly methodID: Schema.brand; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>]>; }>; export interface CreateInput extends Schema.Schema.Type { } export declare const CreateInput: Schema.Struct<{ readonly id: Schema.decodeTo & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }>>, Schema.optionalKey & { create: () => string & import("effect/Brand").Brand<"Credential.ID">; }>, never, never>; readonly integrationID: Schema.brand; readonly label: Schema.decodeTo>, Schema.optionalKey, never, never>; readonly value: Schema.Union; readonly methodID: Schema.brand; readonly refresh: Schema.String; readonly access: Schema.String; readonly expires: Schema.Int; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>, Schema.Struct<{ readonly type: Schema.Literal<"key">; readonly key: Schema.String; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>, Schema.Struct<{ readonly type: Schema.Literal<"external">; readonly methodID: Schema.brand; readonly metadata: Schema.decodeTo>>, Schema.optionalKey>, never, never>; }>]>; readonly activate: Schema.decodeTo>, Schema.optionalKey, never, never>; }>;