@authhero/adapter-interfaces 3.2.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +95 -34
- package/dist/adapter-interfaces.mjs +12 -7
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/ActionVersions.d.ts +2 -1
- package/dist/types/adapters/Actions.d.ts +2 -1
- package/dist/types/adapters/AuthenticationMethods.d.ts +2 -1
- package/dist/types/adapters/ClientGrants.d.ts +2 -1
- package/dist/types/adapters/Clients.d.ts +2 -1
- package/dist/types/adapters/Connections.d.ts +2 -2
- package/dist/types/adapters/CustomDomains.d.ts +2 -1
- package/dist/types/adapters/CustomText.d.ts +2 -1
- package/dist/types/adapters/EmailProviders.d.ts +2 -1
- package/dist/types/adapters/EmailTemplates.d.ts +2 -1
- package/dist/types/adapters/Flows.d.ts +2 -1
- package/dist/types/adapters/Forms.d.ts +2 -1
- package/dist/types/adapters/HookCode.d.ts +2 -1
- package/dist/types/adapters/Hooks.d.ts +2 -1
- package/dist/types/adapters/Invites.d.ts +2 -1
- package/dist/types/adapters/Keys.d.ts +2 -1
- package/dist/types/adapters/LogStreams.d.ts +2 -1
- package/dist/types/adapters/MigrationSources.d.ts +2 -1
- package/dist/types/adapters/OrganizationConnections.d.ts +2 -1
- package/dist/types/adapters/Organizations.d.ts +2 -1
- package/dist/types/adapters/Passwords.d.ts +2 -1
- package/dist/types/adapters/ProxyRoutes.d.ts +2 -1
- package/dist/types/adapters/ResourceServers.d.ts +2 -1
- package/dist/types/adapters/RolePermissions.d.ts +2 -1
- package/dist/types/adapters/Roles.d.ts +2 -1
- package/dist/types/adapters/Sessions.d.ts +17 -0
- package/dist/types/adapters/Tenants.d.ts +10 -1
- package/dist/types/adapters/Themes.d.ts +9 -1
- package/dist/types/adapters/UniversalLoginTemplates.d.ts +2 -1
- package/dist/types/adapters/UserOrganizations.d.ts +2 -1
- package/dist/types/adapters/UserPermissions.d.ts +2 -1
- package/dist/types/adapters/UserRoles.d.ts +2 -1
- package/dist/types/adapters/Users.d.ts +2 -1
- package/dist/types/types/ImportMetadata.d.ts +27 -0
- package/dist/types/types/Tenant.d.ts +2 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9077,6 +9077,7 @@ declare const tenantInsertSchema: z.ZodObject<{
|
|
|
9077
9077
|
provisioning_state_changed_at: z.ZodOptional<z.ZodString>;
|
|
9078
9078
|
bundle_configuration: z.ZodOptional<z.ZodString>;
|
|
9079
9079
|
worker_version: z.ZodOptional<z.ZodString>;
|
|
9080
|
+
database_version: z.ZodOptional<z.ZodString>;
|
|
9080
9081
|
worker_script_name: z.ZodOptional<z.ZodString>;
|
|
9081
9082
|
storage_kind: z.ZodOptional<z.ZodEnum<{
|
|
9082
9083
|
own_d1: "own_d1";
|
|
@@ -9281,6 +9282,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
9281
9282
|
provisioning_state_changed_at: z.ZodOptional<z.ZodString>;
|
|
9282
9283
|
bundle_configuration: z.ZodOptional<z.ZodString>;
|
|
9283
9284
|
worker_version: z.ZodOptional<z.ZodString>;
|
|
9285
|
+
database_version: z.ZodOptional<z.ZodString>;
|
|
9284
9286
|
worker_script_name: z.ZodOptional<z.ZodString>;
|
|
9285
9287
|
storage_kind: z.ZodOptional<z.ZodEnum<{
|
|
9286
9288
|
own_d1: "own_d1";
|
|
@@ -10673,6 +10675,33 @@ declare const authenticationMethodSchema: z.ZodObject<{
|
|
|
10673
10675
|
}, z.core.$strip>;
|
|
10674
10676
|
type AuthenticationMethod = z.infer<typeof authenticationMethodSchema>;
|
|
10675
10677
|
|
|
10678
|
+
/**
|
|
10679
|
+
* Import-only metadata for entity `create()` calls.
|
|
10680
|
+
*
|
|
10681
|
+
* These values are deliberately NOT part of any public `*InsertSchema` and are
|
|
10682
|
+
* never accepted on the normal management-API write routes. They reach an
|
|
10683
|
+
* adapter only through the dedicated `options.importMetadata` argument, which
|
|
10684
|
+
* the HTTP layer never populates — so request bodies can never set a row's
|
|
10685
|
+
* timestamps or primary id. The tenant export/import engine is the only caller
|
|
10686
|
+
* that passes them, in order to reproduce a source tenant's rows faithfully.
|
|
10687
|
+
*
|
|
10688
|
+
* When omitted, `create()` keeps its existing behavior: generate the id and
|
|
10689
|
+
* stamp `created_at`/`updated_at` with the current time.
|
|
10690
|
+
*/
|
|
10691
|
+
declare const importMetadataSchema: z.ZodObject<{
|
|
10692
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10693
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
10694
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
10695
|
+
}, z.core.$strip>;
|
|
10696
|
+
type ImportMetadata = z.infer<typeof importMetadataSchema>;
|
|
10697
|
+
/**
|
|
10698
|
+
* Optional third argument accepted by every durable entity's `create()`.
|
|
10699
|
+
* Reserved for import-only concerns; see {@link ImportMetadata}.
|
|
10700
|
+
*/
|
|
10701
|
+
interface CreateOptions {
|
|
10702
|
+
importMetadata?: ImportMetadata;
|
|
10703
|
+
}
|
|
10704
|
+
|
|
10676
10705
|
declare function parseUserId(user_id: string): {
|
|
10677
10706
|
connection: string;
|
|
10678
10707
|
id: string;
|
|
@@ -10820,7 +10849,7 @@ interface ListActionsResponse extends Totals {
|
|
|
10820
10849
|
actions: Action[];
|
|
10821
10850
|
}
|
|
10822
10851
|
interface ActionsAdapter {
|
|
10823
|
-
create: (tenant_id: string, action: ActionInsert) => Promise<Action>;
|
|
10852
|
+
create: (tenant_id: string, action: ActionInsert, options?: CreateOptions) => Promise<Action>;
|
|
10824
10853
|
get: (tenant_id: string, action_id: string) => Promise<Action | null>;
|
|
10825
10854
|
update: (tenant_id: string, action_id: string, action: ActionUpdate) => Promise<boolean>;
|
|
10826
10855
|
remove: (tenant_id: string, action_id: string) => Promise<boolean>;
|
|
@@ -10841,7 +10870,7 @@ interface ActionVersionsAdapter {
|
|
|
10841
10870
|
* sequential `number` per action_id and clears the `deployed` flag on any
|
|
10842
10871
|
* prior versions when the new one is created with `deployed: true`.
|
|
10843
10872
|
*/
|
|
10844
|
-
create: (tenant_id: string, version: ActionVersionInsert) => Promise<ActionVersion>;
|
|
10873
|
+
create: (tenant_id: string, version: ActionVersionInsert, options?: CreateOptions) => Promise<ActionVersion>;
|
|
10845
10874
|
get: (tenant_id: string, action_id: string, version_id: string) => Promise<ActionVersion | null>;
|
|
10846
10875
|
list: (tenant_id: string, action_id: string, params?: ListParams) => Promise<ListActionVersionsResponse>;
|
|
10847
10876
|
/**
|
|
@@ -10855,7 +10884,7 @@ interface ListFlowsResponse extends Totals {
|
|
|
10855
10884
|
flows: Flow[];
|
|
10856
10885
|
}
|
|
10857
10886
|
interface FlowsAdapter {
|
|
10858
|
-
create(tenant_id: string, params: FlowInsert): Promise<Flow>;
|
|
10887
|
+
create(tenant_id: string, params: FlowInsert, options?: CreateOptions): Promise<Flow>;
|
|
10859
10888
|
get(tenant_id: string, flow_id: string): Promise<Flow | null>;
|
|
10860
10889
|
remove(tenant_id: string, flow_id: string): Promise<boolean>;
|
|
10861
10890
|
update(tenant_id: string, flow_id: string, flow: Partial<FlowInsert>): Promise<Flow | null>;
|
|
@@ -10906,7 +10935,7 @@ interface ClientWithTenantId extends Client {
|
|
|
10906
10935
|
tenant_id: string;
|
|
10907
10936
|
}
|
|
10908
10937
|
interface ClientsAdapter {
|
|
10909
|
-
create(tenant_id: string, params: ClientInsert): Promise<Client>;
|
|
10938
|
+
create(tenant_id: string, params: ClientInsert, options?: CreateOptions): Promise<Client>;
|
|
10910
10939
|
get(tenant_id: string, client_id: string): Promise<Client | null>;
|
|
10911
10940
|
/**
|
|
10912
10941
|
* Get a client by client_id only (without tenant_id).
|
|
@@ -10952,7 +10981,7 @@ interface ListClientGrantsResponse extends Totals {
|
|
|
10952
10981
|
client_grants: ClientGrant[];
|
|
10953
10982
|
}
|
|
10954
10983
|
interface ClientGrantsAdapter {
|
|
10955
|
-
create(tenant_id: string, params: ClientGrantInsert): Promise<ClientGrant>;
|
|
10984
|
+
create(tenant_id: string, params: ClientGrantInsert, options?: CreateOptions): Promise<ClientGrant>;
|
|
10956
10985
|
get(tenant_id: string, id: string): Promise<ClientGrant | null>;
|
|
10957
10986
|
list(tenant_id: string, params?: ListParams): Promise<ListClientGrantsResponse>;
|
|
10958
10987
|
update(tenant_id: string, id: string, clientGrant: Partial<ClientGrantInsert>): Promise<boolean>;
|
|
@@ -10987,7 +11016,7 @@ interface CodesAdapter {
|
|
|
10987
11016
|
}
|
|
10988
11017
|
|
|
10989
11018
|
interface PasswordsAdapter {
|
|
10990
|
-
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
11019
|
+
create: (tenant_id: string, params: PasswordInsert, options?: CreateOptions) => Promise<Password>;
|
|
10991
11020
|
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
10992
11021
|
get: (tenant_id: string, user_id: string) => Promise<Password | null>;
|
|
10993
11022
|
list: (tenant_id: string, user_id: string, limit?: number) => Promise<Password[]>;
|
|
@@ -10997,9 +11026,26 @@ interface ListSesssionsResponse extends Totals {
|
|
|
10997
11026
|
sessions: Session[];
|
|
10998
11027
|
}
|
|
10999
11028
|
interface SessionsAdapter {
|
|
11029
|
+
/**
|
|
11030
|
+
* ADAPTER RESPONSIBILITY (footgun): when a session is created with an
|
|
11031
|
+
* `expires_at`/`idle_expires_at`, the adapter MUST extend the parent
|
|
11032
|
+
* `login_session` (referenced by `login_session_id`) so it lives at least as
|
|
11033
|
+
* long as the session — never shortening it (only bump when the session's
|
|
11034
|
+
* expiry is further out than the login_session's current expiry).
|
|
11035
|
+
*
|
|
11036
|
+
* If an adapter skips this, a long-lived session outlives its login_session
|
|
11037
|
+
* and gets orphaned when cleanup reaps the login_session. The bump must be
|
|
11038
|
+
* atomic with the insert. See `refreshTokens` for the equivalent contract.
|
|
11039
|
+
*/
|
|
11000
11040
|
create: (tenant_id: string, session: SessionInsert) => Promise<Session>;
|
|
11001
11041
|
get: (tenant_id: string, id: string) => Promise<Session | null>;
|
|
11002
11042
|
list(tenantId: string, params?: ListParams): Promise<ListSesssionsResponse>;
|
|
11043
|
+
/**
|
|
11044
|
+
* ADAPTER RESPONSIBILITY (footgun): when an update moves `expires_at`/
|
|
11045
|
+
* `idle_expires_at` forward (session renewal), the adapter MUST extend the
|
|
11046
|
+
* parent `login_session` the same way `create` does (never shortening). See
|
|
11047
|
+
* the note on `create` above.
|
|
11048
|
+
*/
|
|
11003
11049
|
update: (tenant_id: string, id: string, session: Partial<Session>) => Promise<boolean>;
|
|
11004
11050
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
11005
11051
|
}
|
|
@@ -11018,12 +11064,20 @@ interface CreateTenantParams {
|
|
|
11018
11064
|
provisioning_state_changed_at?: string;
|
|
11019
11065
|
bundle_configuration?: string;
|
|
11020
11066
|
worker_version?: string;
|
|
11067
|
+
database_version?: string;
|
|
11021
11068
|
worker_script_name?: string;
|
|
11022
11069
|
storage_kind?: "own_d1" | "existing_d1" | "shared_planetscale";
|
|
11023
11070
|
d1_database_id?: string;
|
|
11024
11071
|
}
|
|
11025
11072
|
interface TenantsDataAdapter {
|
|
11026
|
-
|
|
11073
|
+
/**
|
|
11074
|
+
* Single source of truth for the new tenant id: `options.importMetadata.id`
|
|
11075
|
+
* takes precedence, then `params.id`, then a generated id. The tenant
|
|
11076
|
+
* importer relies on this by passing the *target* id via `params.id` and
|
|
11077
|
+
* leaving `importMetadata.id` unset, so an export always lands under the
|
|
11078
|
+
* requested tenant.
|
|
11079
|
+
*/
|
|
11080
|
+
create(params: CreateTenantParams, options?: CreateOptions): Promise<Tenant>;
|
|
11027
11081
|
get(id: string): Promise<Tenant | null>;
|
|
11028
11082
|
list(params?: ListParams): Promise<{
|
|
11029
11083
|
tenants: Tenant[];
|
|
@@ -11038,7 +11092,7 @@ interface ListUsersResponse extends Totals {
|
|
|
11038
11092
|
}
|
|
11039
11093
|
interface UserDataAdapter {
|
|
11040
11094
|
get(tenant_id: string, id: string): Promise<User | null>;
|
|
11041
|
-
create(tenantId: string, user: UserInsert): Promise<User>;
|
|
11095
|
+
create(tenantId: string, user: UserInsert, options?: CreateOptions): Promise<User>;
|
|
11042
11096
|
/**
|
|
11043
11097
|
* Create a user without invoking any decorator-level hooks (pre/post
|
|
11044
11098
|
* registration hooks, linking, webhooks, etc.). Intended to be called from
|
|
@@ -11062,7 +11116,7 @@ interface LogsDataAdapter {
|
|
|
11062
11116
|
}
|
|
11063
11117
|
|
|
11064
11118
|
interface LogStreamsAdapter {
|
|
11065
|
-
create(tenant_id: string, params: LogStreamInsert): Promise<LogStream>;
|
|
11119
|
+
create(tenant_id: string, params: LogStreamInsert, options?: CreateOptions): Promise<LogStream>;
|
|
11066
11120
|
get(tenant_id: string, id: string): Promise<LogStream | null>;
|
|
11067
11121
|
list(tenant_id: string): Promise<LogStream[]>;
|
|
11068
11122
|
update(tenant_id: string, id: string, params: Partial<LogStream>): Promise<boolean>;
|
|
@@ -11070,7 +11124,7 @@ interface LogStreamsAdapter {
|
|
|
11070
11124
|
}
|
|
11071
11125
|
|
|
11072
11126
|
interface MigrationSourcesAdapter {
|
|
11073
|
-
create: (tenant_id: string, migration_source: MigrationSourceInsert) => Promise<MigrationSource>;
|
|
11127
|
+
create: (tenant_id: string, migration_source: MigrationSourceInsert, options?: CreateOptions) => Promise<MigrationSource>;
|
|
11074
11128
|
get: (tenant_id: string, id: string) => Promise<MigrationSource | null>;
|
|
11075
11129
|
list: (tenant_id: string) => Promise<MigrationSource[]>;
|
|
11076
11130
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
@@ -11081,7 +11135,7 @@ interface ListConnectionsResponse extends Totals {
|
|
|
11081
11135
|
connections: Connection[];
|
|
11082
11136
|
}
|
|
11083
11137
|
interface ConnectionsAdapter {
|
|
11084
|
-
create(tenant_id: string, params: ConnectionInsert): Promise<Connection>;
|
|
11138
|
+
create(tenant_id: string, params: ConnectionInsert, options?: CreateOptions): Promise<Connection>;
|
|
11085
11139
|
remove(tenant_id: string, connection_id: string): Promise<boolean>;
|
|
11086
11140
|
get(tenant_id: string, connection_id: string): Promise<Connection | null>;
|
|
11087
11141
|
update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
|
|
@@ -11089,7 +11143,7 @@ interface ConnectionsAdapter {
|
|
|
11089
11143
|
}
|
|
11090
11144
|
|
|
11091
11145
|
interface CustomDomainsAdapter {
|
|
11092
|
-
create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
|
|
11146
|
+
create: (tenant_id: string, custom_domain: CustomDomainInsert, options?: CreateOptions) => Promise<CustomDomain>;
|
|
11093
11147
|
get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
|
|
11094
11148
|
getByDomain: (domain: string) => Promise<CustomDomainWithTenantId | null>;
|
|
11095
11149
|
list: (tenant_id: string) => Promise<CustomDomain[]>;
|
|
@@ -11102,7 +11156,7 @@ interface ListKeysResponse extends Totals {
|
|
|
11102
11156
|
signingKeys: SigningKey[];
|
|
11103
11157
|
}
|
|
11104
11158
|
interface KeysAdapter {
|
|
11105
|
-
create: (key: SigningKey) => Promise<void>;
|
|
11159
|
+
create: (key: SigningKey, options?: CreateOptions) => Promise<void>;
|
|
11106
11160
|
list: (params?: ListParams) => Promise<ListKeysResponse>;
|
|
11107
11161
|
update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
|
|
11108
11162
|
}
|
|
@@ -11116,7 +11170,7 @@ interface ListHooksResponse extends Totals {
|
|
|
11116
11170
|
hooks: Hook[];
|
|
11117
11171
|
}
|
|
11118
11172
|
interface HooksAdapter {
|
|
11119
|
-
create: (tenant_id: string, hook: HookInsert) => Promise<Hook>;
|
|
11173
|
+
create: (tenant_id: string, hook: HookInsert, options?: CreateOptions) => Promise<Hook>;
|
|
11120
11174
|
remove: (tenant_id: string, hook_id: string) => Promise<boolean>;
|
|
11121
11175
|
get: (tenant_id: string, hook_id: string) => Promise<Hook | null>;
|
|
11122
11176
|
update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
|
|
@@ -11124,16 +11178,23 @@ interface HooksAdapter {
|
|
|
11124
11178
|
}
|
|
11125
11179
|
|
|
11126
11180
|
interface HookCodeAdapter {
|
|
11127
|
-
create: (tenant_id: string, hookCode: HookCodeInsert) => Promise<HookCode>;
|
|
11181
|
+
create: (tenant_id: string, hookCode: HookCodeInsert, options?: CreateOptions) => Promise<HookCode>;
|
|
11128
11182
|
get: (tenant_id: string, id: string) => Promise<HookCode | null>;
|
|
11129
11183
|
update: (tenant_id: string, id: string, hookCode: Partial<HookCodeInsert>) => Promise<boolean>;
|
|
11130
11184
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
11131
11185
|
}
|
|
11132
11186
|
|
|
11133
11187
|
interface ThemesAdapter {
|
|
11134
|
-
|
|
11188
|
+
/**
|
|
11189
|
+
* Single source of truth for the new row's id: `options.importMetadata.id`
|
|
11190
|
+
* takes precedence, then the positional `themeId`, then a generated id. Every
|
|
11191
|
+
* adapter must honor this same precedence so imports preserve source ids
|
|
11192
|
+
* regardless of backend.
|
|
11193
|
+
*/
|
|
11194
|
+
create: (tenant_id: string, theme: ThemeInsert, themeId?: string, options?: CreateOptions) => Promise<Theme>;
|
|
11135
11195
|
remove: (tenant_id: string, themeId: string) => Promise<boolean>;
|
|
11136
11196
|
get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
|
|
11197
|
+
list: (tenant_id: string) => Promise<Theme[]>;
|
|
11137
11198
|
update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
|
|
11138
11199
|
}
|
|
11139
11200
|
|
|
@@ -11161,7 +11222,7 @@ interface ListProxyRoutesResult {
|
|
|
11161
11222
|
length: number;
|
|
11162
11223
|
}
|
|
11163
11224
|
interface ProxyRoutesAdapter {
|
|
11164
|
-
create(tenant_id: string, route: ProxyRouteInsert): Promise<ProxyRoute>;
|
|
11225
|
+
create(tenant_id: string, route: ProxyRouteInsert, options?: CreateOptions): Promise<ProxyRoute>;
|
|
11165
11226
|
get(tenant_id: string, id: string): Promise<ProxyRoute | null>;
|
|
11166
11227
|
list(tenant_id: string, params?: ListProxyRoutesParams): Promise<ListProxyRoutesResult>;
|
|
11167
11228
|
update(tenant_id: string, id: string, route: ProxyRouteUpdate): Promise<boolean>;
|
|
@@ -11170,7 +11231,7 @@ interface ProxyRoutesAdapter {
|
|
|
11170
11231
|
|
|
11171
11232
|
interface EmailProvidersAdapter {
|
|
11172
11233
|
update: (tenant_id: string, emailProvider: Partial<EmailProvider>) => Promise<void>;
|
|
11173
|
-
create: (tenant_id: string, emailProvider: EmailProvider) => Promise<void>;
|
|
11234
|
+
create: (tenant_id: string, emailProvider: EmailProvider, options?: CreateOptions) => Promise<void>;
|
|
11174
11235
|
get: (tenant_id: string) => Promise<EmailProvider | null>;
|
|
11175
11236
|
remove: (tenant_id: string) => Promise<void>;
|
|
11176
11237
|
}
|
|
@@ -11178,7 +11239,7 @@ interface EmailProvidersAdapter {
|
|
|
11178
11239
|
interface EmailTemplatesAdapter {
|
|
11179
11240
|
get: (tenant_id: string, templateName: EmailTemplateName) => Promise<EmailTemplate | null>;
|
|
11180
11241
|
list: (tenant_id: string) => Promise<EmailTemplate[]>;
|
|
11181
|
-
create: (tenant_id: string, template: EmailTemplate) => Promise<EmailTemplate>;
|
|
11242
|
+
create: (tenant_id: string, template: EmailTemplate, options?: CreateOptions) => Promise<EmailTemplate>;
|
|
11182
11243
|
update: (tenant_id: string, templateName: EmailTemplateName, template: Partial<EmailTemplate>) => Promise<boolean>;
|
|
11183
11244
|
remove: (tenant_id: string, templateName: EmailTemplateName) => Promise<boolean>;
|
|
11184
11245
|
}
|
|
@@ -11223,7 +11284,7 @@ interface ListFormsResponse extends Totals {
|
|
|
11223
11284
|
forms: Form[];
|
|
11224
11285
|
}
|
|
11225
11286
|
interface FormsAdapter {
|
|
11226
|
-
create(tenant_id: string, params: FormInsert): Promise<Form>;
|
|
11287
|
+
create(tenant_id: string, params: FormInsert, options?: CreateOptions): Promise<Form>;
|
|
11227
11288
|
get(tenant_id: string, form_id: string): Promise<Form | null>;
|
|
11228
11289
|
remove(tenant_id: string, form_id: string): Promise<boolean>;
|
|
11229
11290
|
update(tenant_id: string, form_id: string, form: Partial<FormInsert>): Promise<boolean>;
|
|
@@ -11234,7 +11295,7 @@ interface ListResourceServersResponse extends Totals {
|
|
|
11234
11295
|
resource_servers: ResourceServer[];
|
|
11235
11296
|
}
|
|
11236
11297
|
interface ResourceServersAdapter {
|
|
11237
|
-
create(tenant_id: string, params: ResourceServerInsert): Promise<ResourceServer>;
|
|
11298
|
+
create(tenant_id: string, params: ResourceServerInsert, options?: CreateOptions): Promise<ResourceServer>;
|
|
11238
11299
|
get(tenant_id: string, id: string): Promise<ResourceServer | null>;
|
|
11239
11300
|
list(tenant_id: string, params?: ListParams): Promise<ListResourceServersResponse>;
|
|
11240
11301
|
update(tenant_id: string, id: string, resourceServer: Partial<ResourceServerInsert>): Promise<boolean>;
|
|
@@ -11242,7 +11303,7 @@ interface ResourceServersAdapter {
|
|
|
11242
11303
|
}
|
|
11243
11304
|
|
|
11244
11305
|
interface RolePermissionsAdapter {
|
|
11245
|
-
assign(tenant_id: string, role_id: string, permissions: RolePermissionInsert[]): Promise<boolean>;
|
|
11306
|
+
assign(tenant_id: string, role_id: string, permissions: RolePermissionInsert[], options?: CreateOptions): Promise<boolean>;
|
|
11246
11307
|
remove(tenant_id: string, role_id: string, permissions: Pick<RolePermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
|
|
11247
11308
|
list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionList>;
|
|
11248
11309
|
}
|
|
@@ -11264,7 +11325,7 @@ interface GrantsAdapter {
|
|
|
11264
11325
|
}
|
|
11265
11326
|
|
|
11266
11327
|
interface UserPermissionsAdapter {
|
|
11267
|
-
create(tenant_id: string, user_id: string, permission: UserPermissionInsert, organization_id?: string): Promise<boolean>;
|
|
11328
|
+
create(tenant_id: string, user_id: string, permission: UserPermissionInsert, organization_id?: string, options?: CreateOptions): Promise<boolean>;
|
|
11268
11329
|
remove(tenant_id: string, user_id: string, permission: Pick<UserPermissionInsert, "resource_server_identifier" | "permission_name">, organization_id?: string): Promise<boolean>;
|
|
11269
11330
|
list(tenant_id: string, user_id: string, params?: ListParams, organization_id?: string): Promise<UserPermissionWithDetailsList>;
|
|
11270
11331
|
}
|
|
@@ -11273,7 +11334,7 @@ interface ListRolesResponse extends Totals {
|
|
|
11273
11334
|
roles: Role[];
|
|
11274
11335
|
}
|
|
11275
11336
|
interface RolesAdapter {
|
|
11276
|
-
create(tenantId: string, role: RoleInsert): Promise<Role>;
|
|
11337
|
+
create(tenantId: string, role: RoleInsert, options?: CreateOptions): Promise<Role>;
|
|
11277
11338
|
get(tenantId: string, roleId: string): Promise<Role | null>;
|
|
11278
11339
|
list(tenantId: string, params?: ListParams): Promise<ListRolesResponse>;
|
|
11279
11340
|
update(tenantId: string, roleId: string, updates: Partial<Role>): Promise<boolean>;
|
|
@@ -11288,7 +11349,7 @@ interface ListUserRolesResponse {
|
|
|
11288
11349
|
}
|
|
11289
11350
|
interface UserRolesAdapter {
|
|
11290
11351
|
list(tenantId: string, userId: string, params?: ListParams, organizationId?: string): Promise<Role[]>;
|
|
11291
|
-
create(tenantId: string, userId: string, roleId: string, organizationId?: string): Promise<boolean>;
|
|
11352
|
+
create(tenantId: string, userId: string, roleId: string, organizationId?: string, options?: CreateOptions): Promise<boolean>;
|
|
11292
11353
|
remove(tenantId: string, userId: string, roleId: string, organizationId?: string): Promise<boolean>;
|
|
11293
11354
|
}
|
|
11294
11355
|
|
|
@@ -11296,7 +11357,7 @@ interface ListOrganizationsResponse extends Totals {
|
|
|
11296
11357
|
organizations: Organization[];
|
|
11297
11358
|
}
|
|
11298
11359
|
interface OrganizationsAdapter {
|
|
11299
|
-
create(tenant_id: string, params: OrganizationInsert): Promise<Organization>;
|
|
11360
|
+
create(tenant_id: string, params: OrganizationInsert, options?: CreateOptions): Promise<Organization>;
|
|
11300
11361
|
get(tenant_id: string, id: string): Promise<Organization | null>;
|
|
11301
11362
|
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
11302
11363
|
list(tenant_id: string, params?: ListParams): Promise<ListOrganizationsResponse>;
|
|
@@ -11304,7 +11365,7 @@ interface OrganizationsAdapter {
|
|
|
11304
11365
|
}
|
|
11305
11366
|
|
|
11306
11367
|
interface OrganizationConnectionsAdapter {
|
|
11307
|
-
create(tenant_id: string, organization_id: string, params: OrganizationConnectionInsert): Promise<OrganizationConnection>;
|
|
11368
|
+
create(tenant_id: string, organization_id: string, params: OrganizationConnectionInsert, options?: CreateOptions): Promise<OrganizationConnection>;
|
|
11308
11369
|
list(tenant_id: string, organization_id: string): Promise<OrganizationConnection[]>;
|
|
11309
11370
|
get(tenant_id: string, organization_id: string, connection_id: string): Promise<OrganizationConnection | null>;
|
|
11310
11371
|
update(tenant_id: string, organization_id: string, connection_id: string, params: Partial<Omit<OrganizationConnectionInsert, "connection_id">>): Promise<OrganizationConnection | null>;
|
|
@@ -11312,7 +11373,7 @@ interface OrganizationConnectionsAdapter {
|
|
|
11312
11373
|
}
|
|
11313
11374
|
|
|
11314
11375
|
interface UserOrganizationsAdapter {
|
|
11315
|
-
create(tenantId: string, params: UserOrganizationInsert): Promise<UserOrganization>;
|
|
11376
|
+
create(tenantId: string, params: UserOrganizationInsert, options?: CreateOptions): Promise<UserOrganization>;
|
|
11316
11377
|
get(tenantId: string, id: string): Promise<UserOrganization | null>;
|
|
11317
11378
|
remove(tenantId: string, id: string): Promise<boolean>;
|
|
11318
11379
|
/**
|
|
@@ -11339,7 +11400,7 @@ interface ListInvitesResponse extends Totals {
|
|
|
11339
11400
|
invites: Invite[];
|
|
11340
11401
|
}
|
|
11341
11402
|
interface InvitesAdapter {
|
|
11342
|
-
create(tenant_id: string, params: InviteInsert): Promise<Invite>;
|
|
11403
|
+
create(tenant_id: string, params: InviteInsert, options?: CreateOptions): Promise<Invite>;
|
|
11343
11404
|
get(tenant_id: string, id: string): Promise<Invite | null>;
|
|
11344
11405
|
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
11345
11406
|
list(tenant_id: string, params?: ListParams): Promise<ListInvitesResponse>;
|
|
@@ -11364,7 +11425,7 @@ interface GeoAdapter {
|
|
|
11364
11425
|
}
|
|
11365
11426
|
|
|
11366
11427
|
interface AuthenticationMethodsAdapter {
|
|
11367
|
-
create: (tenant_id: string, method: AuthenticationMethodInsert) => Promise<AuthenticationMethod>;
|
|
11428
|
+
create: (tenant_id: string, method: AuthenticationMethodInsert, options?: CreateOptions) => Promise<AuthenticationMethod>;
|
|
11368
11429
|
get: (tenant_id: string, method_id: string) => Promise<AuthenticationMethod | null>;
|
|
11369
11430
|
getByCredentialId: (tenant_id: string, credential_id: string) => Promise<AuthenticationMethod | null>;
|
|
11370
11431
|
list: (tenant_id: string, user_id: string) => Promise<AuthenticationMethod[]>;
|
|
@@ -11401,7 +11462,7 @@ interface UniversalLoginTemplate {
|
|
|
11401
11462
|
}
|
|
11402
11463
|
interface UniversalLoginTemplatesAdapter {
|
|
11403
11464
|
get: (tenant_id: string) => Promise<UniversalLoginTemplate | null>;
|
|
11404
|
-
set: (tenant_id: string, template: UniversalLoginTemplate) => Promise<void>;
|
|
11465
|
+
set: (tenant_id: string, template: UniversalLoginTemplate, options?: CreateOptions) => Promise<void>;
|
|
11405
11466
|
delete: (tenant_id: string) => Promise<void>;
|
|
11406
11467
|
}
|
|
11407
11468
|
|
|
@@ -11413,7 +11474,7 @@ interface CustomTextAdapter {
|
|
|
11413
11474
|
/**
|
|
11414
11475
|
* Set custom text for a specific prompt screen and language
|
|
11415
11476
|
*/
|
|
11416
|
-
set: (tenant_id: string, prompt: PromptScreen, language: string, customText: CustomText) => Promise<void>;
|
|
11477
|
+
set: (tenant_id: string, prompt: PromptScreen, language: string, customText: CustomText, options?: CreateOptions) => Promise<void>;
|
|
11417
11478
|
/**
|
|
11418
11479
|
* Delete custom text for a specific prompt screen and language
|
|
11419
11480
|
*/
|
|
@@ -11740,5 +11801,5 @@ interface DataAdapters {
|
|
|
11740
11801
|
};
|
|
11741
11802
|
}
|
|
11742
11803
|
|
|
11743
|
-
export { Auth0ActionEnum, Auth0Client, AuthorizationResponseMode, AuthorizationResponseType, CodeChallengeMethod, ComponentCategory, ComponentType, EmailActionEnum, FORM_FIELD_TYPES, FlowActionTypeEnum, GrantType, LocationInfo, LogTypes, LoginSessionState, NodeType, RedirectTargetEnum, Strategy, StrategyType, actionDependencySchema, actionExecutionErrorSchema, actionExecutionInsertSchema, actionExecutionLogEntrySchema, actionExecutionLogsSchema, actionExecutionResultSchema, actionExecutionSchema, actionExecutionStatusSchema, actionExecutionTriggerIdSchema, actionInsertSchema, actionNodeSchema, actionSchema, actionSecretSchema, actionTriggerSchema, actionUpdateSchema, actionVersionInsertSchema, actionVersionSchema, activeUsersResponseSchema, actorSchema, addressSchema, analyticsColumnMetaSchema, analyticsGroupBySchema, analyticsIntervalSchema, analyticsQueryResponseSchema, analyticsResourceSchema, analyticsStatisticsSchema, analyticsUserTypeSchema, attackProtectionSchema, auditCategorySchema, auditEventInsertSchema, auditEventSchema, auth0ClientSchema, auth0FlowInsertSchema, auth0FlowSchema, auth0QuerySchema, auth0UpdateUserActionSchema, auth0UserResponseSchema, authParamsSchema, authenticationMethodInsertSchema, authenticationMethodSchema, authenticationMethodTypeSchema, baseUserSchema, blockComponentSchema, bordersSchema, brandingSchema, breachedPasswordDetectionSchema, bruteForceProtectionSchema, buttonComponentSchema, claimsRequestSchema, clientGrantInsertSchema, clientGrantListSchema, clientGrantSchema, clientInsertSchema, clientRegistrationTokenInsertSchema, clientRegistrationTokenSchema, clientRegistrationTokenTypeSchema, clientSchema, codeInsertSchema, codeSchema, codeTypeSchema, colorsSchema, componentMessageSchema, componentSchema, connectionInsertSchema, connectionOptionsSchema, connectionSchema, coordinatesSchema, createPassthroughAdapter, createWriteOnlyAdapter, customDomainCertificateUploadSchema, customDomainInsertSchema, customDomainSchema, customDomainUpdateSchema, customDomainWithTenantIdSchema, customTextEntrySchema, customTextSchema, dailyStatsSchema, emailProviderSchema, emailTemplateNameSchema, emailTemplateSchema, emailVerificationRulesSchema, emailVerifyActionSchema, endingSchema, fieldComponentSchema, flowActionStepSchema, flowInsertSchema, flowSchema, fieldComponentSchema$1 as flowsFieldComponentSchema, flowNodeSchema$1 as flowsFlowNodeSchema, stepNodeSchema$1 as flowsStepNodeSchema, fontDetailsSchema, fontsSchema, formControlSchema, formInsertSchema, formNodeComponentDefinition, formNodeSchema, formSchema, genericComponentSchema, genericNodeSchema, getConnectionIdentifierConfig, getLogTypeCategory, getLogTypeDescription, grantInsertSchema, grantSchema, handlerConfigSchema, hookCodeInsertSchema, hookCodeSchema, hookInsertSchema, hookSchema, hookTemplateId, hookTemplates, identitySchema, inviteInsertSchema, inviteSchema, inviteeSchema, inviterSchema, isBlockComponent, isFieldComponent, isPlainObject, isWidgetComponent, jwksKeySchema, jwksSchema, legalComponentSchema, locationInfoSchema, logInsertSchema, logSchema, logStreamFilterSchema, logStreamInsertSchema, logStreamSchema, logStreamStatusSchema, logStreamTypeSchema, logTypeCategories, logTypeDescriptions, loginSessionAuthStrategySchema, loginSessionInsertSchema, loginSessionSchema, loginSessionStateSchema, matchSchema, migrationProviderTypeSchema, migrationSourceCredentialsSchema, migrationSourceInsertSchema, migrationSourceSchema, nodeSchema, openIDConfigurationSchema, organizationBrandingSchema, organizationConnectionInsertSchema, organizationConnectionListSchema, organizationConnectionSchema, organizationEnabledConnectionSchema, organizationInsertSchema, organizationSchema, organizationTokenQuotaSchema, pageBackgroundSchema, parseUserId, passwordInsertSchema, passwordSchema, profileDataSchema, promptScreenSchema, promptSettingSchema, proxyRouteInsertSchema, proxyRouteSchema, proxyRouteUpdateSchema, redirectActionSchema, refreshTokenInsertSchema, refreshTokenSchema, requestContextSchema, resourceServerInsertSchema, resourceServerListSchema, resourceServerOptionsSchema, resourceServerSchema, resourceServerScopeSchema, responseContextSchema, richTextComponentSchema, roleInsertSchema, roleListSchema, rolePermissionInsertSchema, rolePermissionListSchema, rolePermissionSchema, roleSchema, screenLinkSchema, sessionInsertSchema, sessionSchema, signingKeySchema, smsProviderSchema, smsSendParamsSchema, startSchema, suspiciousIpThrottlingSchema, targetSchema, tenantInsertSchema, tenantSchema, tenantSettingsSchema, themeInsertSchema, themeSchema, tokenResponseSchema, totalsSchema, uiScreenSchema, userInsertSchema, userOrganizationInsertSchema, userOrganizationSchema, userPermissionInsertSchema, userPermissionListSchema, userPermissionSchema, userPermissionWithDetailsListSchema, userPermissionWithDetailsSchema, userResponseSchema, userRoleInsertSchema, userRoleListSchema, userRoleSchema, userSchema, verificationMethodsSchema, widgetComponentSchema, widgetSchema };
|
|
11744
|
-
export type { Action, ActionExecution, ActionExecutionError, ActionExecutionInsert, ActionExecutionLogEntry, ActionExecutionLogs, ActionExecutionResult, ActionExecutionStatus, ActionExecutionsAdapter, ActionInsert, ActionNode, ActionUpdate, ActionVersion, ActionVersionInsert, ActionVersionsAdapter, ActionsAdapter, ActiveUsersResponse, Actor, Address, AnalyticsAdapter, AnalyticsColumnMeta, AnalyticsFilters, AnalyticsGroupBy, AnalyticsInterval, AnalyticsQueryParams, AnalyticsQueryResponse, AnalyticsResource, AnalyticsUserType, AttackProtection, AuditCategory, AuditEvent, AuditEventInsert, Auth0Flow, Auth0FlowInsert, Auth0UpdateUserAction, AuthParams, AuthenticationMethod, AuthenticationMethodInsert, AuthenticationMethodType, AuthenticationMethodUpdate, AuthenticationMethodsAdapter, BaseUser, BlockComponent, BooleanField, Branding, BrandingAdapter, BreachedPasswordDetection, BruteForceProtection, ButtonComponent, CacheAdapter, CacheItem, CardsField, ChoiceField, ClaimsRequest, Client, ClientConnectionsAdapter, ClientGrant, ClientGrantInsert, ClientGrantList, ClientGrantsAdapter, ClientInsert, ClientRegistrationToken, ClientRegistrationTokenInsert, ClientRegistrationTokenType, ClientRegistrationTokensAdapter, ClientWithTenantId, ClientsAdapter, Code, CodeExecutionLog, CodeExecutionResult, CodeExecutor, CodeField, CodeInsert, CodeResponse, CodeType, CodesAdapter, Component, ComponentMessage, Connection, ConnectionInsert, ConnectionsAdapter, ContinuationScope, Coordinates, CountryField, CreateServiceTokenFn, CreateServiceTokenParams, CreateTenantParams, CustomDomain, CustomDomainCertificateUpload, CustomDomainInsert, CustomDomainUpdate, CustomDomainWithTenantId, CustomDomainsAdapter, CustomField, CustomText, CustomTextAdapter, CustomTextEntry, DailyStats, DataAdapters, DateField, DividerComponent, DropdownField, EmailField, EmailProvider, EmailProvidersAdapter, EmailServiceAdapter, EmailServiceSendParams, EmailTemplate, EmailTemplateName, EmailTemplatesAdapter, EmailVerificationRules, EmailVerifyAction, Ending, FieldComponent, FileField, Flow, FlowActionStep, FlowActionType, FlowInsert, FlowNode, FlowsAdapter, FieldComponent$1 as FlowsFieldComponent, FlowNode$1 as FlowsFlowNode, StepNode$1 as FlowsStepNode, Form, FormControl, FormInsert, FormNode, FormNodeComponent, FormsAdapter, GenericComponent, GenericNode, GeoAdapter, GeoInfo, GmapsAddressWidget, Grant, GrantInsert, GrantsAdapter, HandlerConfig, Hook, HookCode, HookCodeAdapter, HookCodeInsert, HookInsert, HookTemplateId, HooksAdapter, HtmlComponent, Identity, ImageComponent, Invite, InviteInsert, Invitee, Inviter, InvitesAdapter, JumpButtonComponent, Jwk, Jwks, KeysAdapter, LegalComponent, LegalField, ListActionVersionsResponse, ListActionsResponse, ListClientGrantsResponse, ListCodesResponse, ListConnectionsResponse, ListFailedEventsResponse, ListFlowsResponse, ListFormsResponse, ListGrantsResponse, ListHooksResponse, ListInvitesResponse, ListKeysResponse, ListOrganizationsResponse, ListParams, ListProxyRoutesParams, ListProxyRoutesResult, ListRefreshTokenResponse, ListResourceServersResponse, ListRolesResponse, ListSesssionsResponse, ListUserRolesResponse, ListUsersResponse, Log, LogCategory, LogInsert, LogStream, LogStreamInsert, LogStreamsAdapter, LogType, LoginSession, LoginSessionAuthStrategy, LoginSessionInsert, LoginSessionsAdapter, LogsDataAdapter, MigrationProviderType, MigrationSource, MigrationSourceCredentials, MigrationSourceInsert, MigrationSourcesAdapter, NextButtonComponent, Node, NumberField, Organization, OrganizationConnection, OrganizationConnectionInsert, OrganizationConnectionList, OrganizationConnectionsAdapter, OrganizationInsert, OrganizationsAdapter, OutboxAdapter, OutboxEvent, PassthroughConfig, Password, PasswordField, PasswordInsert, PasswordsAdapter, PaymentField, PostUsersBody, PreviousButtonComponent, PromptScreen, PromptSetting, PromptSettingsAdapter, ProxyRoute, ProxyRouteInsert, ProxyRouteUpdate, ProxyRoutesAdapter, RateLimitAdapter, RateLimitDecision, RateLimitScope, RecaptchaWidget, RedirectAction, RedirectTarget, RefreshToken, RefreshTokenInsert, RefreshTokensAdapter, RequestContext, ResendButtonComponent, ResourceServer, ResourceServerInsert, ResourceServerList, ResourceServerOptions, ResourceServerScope, ResourceServersAdapter, ResponseContext, RichTextComponent, Role, RoleInsert, RoleList, RolePermission, RolePermissionInsert, RolePermissionList, RolePermissionsAdapter, RolesAdapter, RouteMatch, RouterNode, RuntimeComponent, ScreenLink, SecondaryAdapterConfig, Session, SessionCleanupParams, SessionInsert, SessionsAdapter, SigningKey, SmsProvider, SmsSendParams, SmsServiceAdapter, SmsServiceSendParams, SocialField, Start, StatsAdapter, StatsListParams, StepNode, SuspiciousIpThrottling, Target, TelField, Tenant, TenantSettings, TenantSettingsAdapter, TenantsDataAdapter, TextField, Theme, ThemeInsert, ThemesAdapter, TokenResponse, Totals, UiScreen, UniversalLoginTemplate, UniversalLoginTemplatesAdapter, UpdateRefreshTokenOptions, UrlField, User, UserDataAdapter, UserInsert, UserOrganization, UserOrganizationInsert, UserOrganizationsAdapter, UserPermission, UserPermissionInsert, UserPermissionList, UserPermissionWithDetails, UserPermissionWithDetailsList, UserPermissionsAdapter, UserResponse, UserRole, UserRoleInsert, UserRoleList, UserRolesAdapter, VerifiableCredentialsWidget, VerificationMethods, WidgetComponent };
|
|
11804
|
+
export { Auth0ActionEnum, Auth0Client, AuthorizationResponseMode, AuthorizationResponseType, CodeChallengeMethod, ComponentCategory, ComponentType, EmailActionEnum, FORM_FIELD_TYPES, FlowActionTypeEnum, GrantType, LocationInfo, LogTypes, LoginSessionState, NodeType, RedirectTargetEnum, Strategy, StrategyType, actionDependencySchema, actionExecutionErrorSchema, actionExecutionInsertSchema, actionExecutionLogEntrySchema, actionExecutionLogsSchema, actionExecutionResultSchema, actionExecutionSchema, actionExecutionStatusSchema, actionExecutionTriggerIdSchema, actionInsertSchema, actionNodeSchema, actionSchema, actionSecretSchema, actionTriggerSchema, actionUpdateSchema, actionVersionInsertSchema, actionVersionSchema, activeUsersResponseSchema, actorSchema, addressSchema, analyticsColumnMetaSchema, analyticsGroupBySchema, analyticsIntervalSchema, analyticsQueryResponseSchema, analyticsResourceSchema, analyticsStatisticsSchema, analyticsUserTypeSchema, attackProtectionSchema, auditCategorySchema, auditEventInsertSchema, auditEventSchema, auth0ClientSchema, auth0FlowInsertSchema, auth0FlowSchema, auth0QuerySchema, auth0UpdateUserActionSchema, auth0UserResponseSchema, authParamsSchema, authenticationMethodInsertSchema, authenticationMethodSchema, authenticationMethodTypeSchema, baseUserSchema, blockComponentSchema, bordersSchema, brandingSchema, breachedPasswordDetectionSchema, bruteForceProtectionSchema, buttonComponentSchema, claimsRequestSchema, clientGrantInsertSchema, clientGrantListSchema, clientGrantSchema, clientInsertSchema, clientRegistrationTokenInsertSchema, clientRegistrationTokenSchema, clientRegistrationTokenTypeSchema, clientSchema, codeInsertSchema, codeSchema, codeTypeSchema, colorsSchema, componentMessageSchema, componentSchema, connectionInsertSchema, connectionOptionsSchema, connectionSchema, coordinatesSchema, createPassthroughAdapter, createWriteOnlyAdapter, customDomainCertificateUploadSchema, customDomainInsertSchema, customDomainSchema, customDomainUpdateSchema, customDomainWithTenantIdSchema, customTextEntrySchema, customTextSchema, dailyStatsSchema, emailProviderSchema, emailTemplateNameSchema, emailTemplateSchema, emailVerificationRulesSchema, emailVerifyActionSchema, endingSchema, fieldComponentSchema, flowActionStepSchema, flowInsertSchema, flowSchema, fieldComponentSchema$1 as flowsFieldComponentSchema, flowNodeSchema$1 as flowsFlowNodeSchema, stepNodeSchema$1 as flowsStepNodeSchema, fontDetailsSchema, fontsSchema, formControlSchema, formInsertSchema, formNodeComponentDefinition, formNodeSchema, formSchema, genericComponentSchema, genericNodeSchema, getConnectionIdentifierConfig, getLogTypeCategory, getLogTypeDescription, grantInsertSchema, grantSchema, handlerConfigSchema, hookCodeInsertSchema, hookCodeSchema, hookInsertSchema, hookSchema, hookTemplateId, hookTemplates, identitySchema, importMetadataSchema, inviteInsertSchema, inviteSchema, inviteeSchema, inviterSchema, isBlockComponent, isFieldComponent, isPlainObject, isWidgetComponent, jwksKeySchema, jwksSchema, legalComponentSchema, locationInfoSchema, logInsertSchema, logSchema, logStreamFilterSchema, logStreamInsertSchema, logStreamSchema, logStreamStatusSchema, logStreamTypeSchema, logTypeCategories, logTypeDescriptions, loginSessionAuthStrategySchema, loginSessionInsertSchema, loginSessionSchema, loginSessionStateSchema, matchSchema, migrationProviderTypeSchema, migrationSourceCredentialsSchema, migrationSourceInsertSchema, migrationSourceSchema, nodeSchema, openIDConfigurationSchema, organizationBrandingSchema, organizationConnectionInsertSchema, organizationConnectionListSchema, organizationConnectionSchema, organizationEnabledConnectionSchema, organizationInsertSchema, organizationSchema, organizationTokenQuotaSchema, pageBackgroundSchema, parseUserId, passwordInsertSchema, passwordSchema, profileDataSchema, promptScreenSchema, promptSettingSchema, proxyRouteInsertSchema, proxyRouteSchema, proxyRouteUpdateSchema, redirectActionSchema, refreshTokenInsertSchema, refreshTokenSchema, requestContextSchema, resourceServerInsertSchema, resourceServerListSchema, resourceServerOptionsSchema, resourceServerSchema, resourceServerScopeSchema, responseContextSchema, richTextComponentSchema, roleInsertSchema, roleListSchema, rolePermissionInsertSchema, rolePermissionListSchema, rolePermissionSchema, roleSchema, screenLinkSchema, sessionInsertSchema, sessionSchema, signingKeySchema, smsProviderSchema, smsSendParamsSchema, startSchema, suspiciousIpThrottlingSchema, targetSchema, tenantInsertSchema, tenantSchema, tenantSettingsSchema, themeInsertSchema, themeSchema, tokenResponseSchema, totalsSchema, uiScreenSchema, userInsertSchema, userOrganizationInsertSchema, userOrganizationSchema, userPermissionInsertSchema, userPermissionListSchema, userPermissionSchema, userPermissionWithDetailsListSchema, userPermissionWithDetailsSchema, userResponseSchema, userRoleInsertSchema, userRoleListSchema, userRoleSchema, userSchema, verificationMethodsSchema, widgetComponentSchema, widgetSchema };
|
|
11805
|
+
export type { Action, ActionExecution, ActionExecutionError, ActionExecutionInsert, ActionExecutionLogEntry, ActionExecutionLogs, ActionExecutionResult, ActionExecutionStatus, ActionExecutionsAdapter, ActionInsert, ActionNode, ActionUpdate, ActionVersion, ActionVersionInsert, ActionVersionsAdapter, ActionsAdapter, ActiveUsersResponse, Actor, Address, AnalyticsAdapter, AnalyticsColumnMeta, AnalyticsFilters, AnalyticsGroupBy, AnalyticsInterval, AnalyticsQueryParams, AnalyticsQueryResponse, AnalyticsResource, AnalyticsUserType, AttackProtection, AuditCategory, AuditEvent, AuditEventInsert, Auth0Flow, Auth0FlowInsert, Auth0UpdateUserAction, AuthParams, AuthenticationMethod, AuthenticationMethodInsert, AuthenticationMethodType, AuthenticationMethodUpdate, AuthenticationMethodsAdapter, BaseUser, BlockComponent, BooleanField, Branding, BrandingAdapter, BreachedPasswordDetection, BruteForceProtection, ButtonComponent, CacheAdapter, CacheItem, CardsField, ChoiceField, ClaimsRequest, Client, ClientConnectionsAdapter, ClientGrant, ClientGrantInsert, ClientGrantList, ClientGrantsAdapter, ClientInsert, ClientRegistrationToken, ClientRegistrationTokenInsert, ClientRegistrationTokenType, ClientRegistrationTokensAdapter, ClientWithTenantId, ClientsAdapter, Code, CodeExecutionLog, CodeExecutionResult, CodeExecutor, CodeField, CodeInsert, CodeResponse, CodeType, CodesAdapter, Component, ComponentMessage, Connection, ConnectionInsert, ConnectionsAdapter, ContinuationScope, Coordinates, CountryField, CreateOptions, CreateServiceTokenFn, CreateServiceTokenParams, CreateTenantParams, CustomDomain, CustomDomainCertificateUpload, CustomDomainInsert, CustomDomainUpdate, CustomDomainWithTenantId, CustomDomainsAdapter, CustomField, CustomText, CustomTextAdapter, CustomTextEntry, DailyStats, DataAdapters, DateField, DividerComponent, DropdownField, EmailField, EmailProvider, EmailProvidersAdapter, EmailServiceAdapter, EmailServiceSendParams, EmailTemplate, EmailTemplateName, EmailTemplatesAdapter, EmailVerificationRules, EmailVerifyAction, Ending, FieldComponent, FileField, Flow, FlowActionStep, FlowActionType, FlowInsert, FlowNode, FlowsAdapter, FieldComponent$1 as FlowsFieldComponent, FlowNode$1 as FlowsFlowNode, StepNode$1 as FlowsStepNode, Form, FormControl, FormInsert, FormNode, FormNodeComponent, FormsAdapter, GenericComponent, GenericNode, GeoAdapter, GeoInfo, GmapsAddressWidget, Grant, GrantInsert, GrantsAdapter, HandlerConfig, Hook, HookCode, HookCodeAdapter, HookCodeInsert, HookInsert, HookTemplateId, HooksAdapter, HtmlComponent, Identity, ImageComponent, ImportMetadata, Invite, InviteInsert, Invitee, Inviter, InvitesAdapter, JumpButtonComponent, Jwk, Jwks, KeysAdapter, LegalComponent, LegalField, ListActionVersionsResponse, ListActionsResponse, ListClientGrantsResponse, ListCodesResponse, ListConnectionsResponse, ListFailedEventsResponse, ListFlowsResponse, ListFormsResponse, ListGrantsResponse, ListHooksResponse, ListInvitesResponse, ListKeysResponse, ListOrganizationsResponse, ListParams, ListProxyRoutesParams, ListProxyRoutesResult, ListRefreshTokenResponse, ListResourceServersResponse, ListRolesResponse, ListSesssionsResponse, ListUserRolesResponse, ListUsersResponse, Log, LogCategory, LogInsert, LogStream, LogStreamInsert, LogStreamsAdapter, LogType, LoginSession, LoginSessionAuthStrategy, LoginSessionInsert, LoginSessionsAdapter, LogsDataAdapter, MigrationProviderType, MigrationSource, MigrationSourceCredentials, MigrationSourceInsert, MigrationSourcesAdapter, NextButtonComponent, Node, NumberField, Organization, OrganizationConnection, OrganizationConnectionInsert, OrganizationConnectionList, OrganizationConnectionsAdapter, OrganizationInsert, OrganizationsAdapter, OutboxAdapter, OutboxEvent, PassthroughConfig, Password, PasswordField, PasswordInsert, PasswordsAdapter, PaymentField, PostUsersBody, PreviousButtonComponent, PromptScreen, PromptSetting, PromptSettingsAdapter, ProxyRoute, ProxyRouteInsert, ProxyRouteUpdate, ProxyRoutesAdapter, RateLimitAdapter, RateLimitDecision, RateLimitScope, RecaptchaWidget, RedirectAction, RedirectTarget, RefreshToken, RefreshTokenInsert, RefreshTokensAdapter, RequestContext, ResendButtonComponent, ResourceServer, ResourceServerInsert, ResourceServerList, ResourceServerOptions, ResourceServerScope, ResourceServersAdapter, ResponseContext, RichTextComponent, Role, RoleInsert, RoleList, RolePermission, RolePermissionInsert, RolePermissionList, RolePermissionsAdapter, RolesAdapter, RouteMatch, RouterNode, RuntimeComponent, ScreenLink, SecondaryAdapterConfig, Session, SessionCleanupParams, SessionInsert, SessionsAdapter, SigningKey, SmsProvider, SmsSendParams, SmsServiceAdapter, SmsServiceSendParams, SocialField, Start, StatsAdapter, StatsListParams, StepNode, SuspiciousIpThrottling, Target, TelField, Tenant, TenantSettings, TenantSettingsAdapter, TenantsDataAdapter, TextField, Theme, ThemeInsert, ThemesAdapter, TokenResponse, Totals, UiScreen, UniversalLoginTemplate, UniversalLoginTemplatesAdapter, UpdateRefreshTokenOptions, UrlField, User, UserDataAdapter, UserInsert, UserOrganization, UserOrganizationInsert, UserOrganizationsAdapter, UserPermission, UserPermissionInsert, UserPermissionList, UserPermissionWithDetails, UserPermissionWithDetailsList, UserPermissionsAdapter, UserResponse, UserRole, UserRoleInsert, UserRoleList, UserRolesAdapter, VerifiableCredentialsWidget, VerificationMethods, WidgetComponent };
|
|
@@ -2063,6 +2063,7 @@ var kn = e.object({
|
|
|
2063
2063
|
provisioning_state_changed_at: e.string().optional(),
|
|
2064
2064
|
bundle_configuration: e.string().max(64).optional(),
|
|
2065
2065
|
worker_version: e.string().max(64).optional(),
|
|
2066
|
+
database_version: e.string().max(64).optional(),
|
|
2066
2067
|
worker_script_name: e.string().max(255).optional(),
|
|
2067
2068
|
storage_kind: e.enum([
|
|
2068
2069
|
"own_d1",
|
|
@@ -2627,10 +2628,14 @@ var hi = pi.superRefine(mi), gi = pi.extend({
|
|
|
2627
2628
|
id: e.string(),
|
|
2628
2629
|
created_at: e.string(),
|
|
2629
2630
|
updated_at: e.string()
|
|
2630
|
-
}).superRefine(mi)
|
|
2631
|
+
}).superRefine(mi), _i = e.object({
|
|
2632
|
+
id: e.string().optional(),
|
|
2633
|
+
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2634
|
+
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2635
|
+
});
|
|
2631
2636
|
//#endregion
|
|
2632
2637
|
//#region src/utils/user-id.ts
|
|
2633
|
-
function
|
|
2638
|
+
function vi(e) {
|
|
2634
2639
|
let [t, n] = e.split("|");
|
|
2635
2640
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2636
2641
|
return {
|
|
@@ -2640,7 +2645,7 @@ function _i(e) {
|
|
|
2640
2645
|
}
|
|
2641
2646
|
//#endregion
|
|
2642
2647
|
//#region src/utils/passthrough.ts
|
|
2643
|
-
function
|
|
2648
|
+
function yi(e) {
|
|
2644
2649
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2645
2650
|
"create",
|
|
2646
2651
|
"rawCreate",
|
|
@@ -2674,12 +2679,12 @@ function vi(e) {
|
|
|
2674
2679
|
} : i.bind(e) : i;
|
|
2675
2680
|
} });
|
|
2676
2681
|
}
|
|
2677
|
-
function
|
|
2682
|
+
function bi(e) {
|
|
2678
2683
|
return e;
|
|
2679
2684
|
}
|
|
2680
2685
|
//#endregion
|
|
2681
2686
|
//#region src/utils/connection-attributes.ts
|
|
2682
|
-
function
|
|
2687
|
+
function xi(e) {
|
|
2683
2688
|
let t = e?.options;
|
|
2684
2689
|
if (!t) return {
|
|
2685
2690
|
usernameIdentifierActive: !1,
|
|
@@ -2702,8 +2707,8 @@ function bi(e) {
|
|
|
2702
2707
|
}
|
|
2703
2708
|
//#endregion
|
|
2704
2709
|
//#region src/utils/guards.ts
|
|
2705
|
-
function
|
|
2710
|
+
function Si(e) {
|
|
2706
2711
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2707
2712
|
}
|
|
2708
2713
|
//#endregion
|
|
2709
|
-
export { ve as Auth0ActionEnum, kn as Auth0Client, Be as AuthorizationResponseMode, ze as AuthorizationResponseType, Ve as CodeChallengeMethod, E as ComponentCategory, T as ComponentType, ye as EmailActionEnum, Ft as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, $n as GrantType, An as LocationInfo, X as LogTypes, yn as LoginSessionState, Pe as NodeType, Ce as RedirectTargetEnum, ui as Strategy, di as StrategyType, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, s as actionExecutionTriggerIdSchema, a as actionInsertSchema, I as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, $r as activeUsersResponseSchema, le as actorSchema, h as addressSchema, ii as analyticsColumnMetaSchema, ni as analyticsGroupBySchema, ti as analyticsIntervalSchema, oi as analyticsQueryResponseSchema, ei as analyticsResourceSchema, ai as analyticsStatisticsSchema, ri as analyticsUserTypeSchema, Wn as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Re as auth0FlowInsertSchema, Le as auth0FlowSchema, Te as auth0QuerySchema, xe as auth0UpdateUserActionSchema, De as auth0UserResponseSchema, We as authParamsSchema, hi as authenticationMethodInsertSchema, gi as authenticationMethodSchema, fi as authenticationMethodTypeSchema, g as baseUserSchema, Mt as blockComponentSchema, tr as bordersSchema, Ge as brandingSchema, Vn as breachedPasswordDetectionSchema, Hn as bruteForceProtectionSchema, k as buttonComponentSchema, Ue as claimsRequestSchema, b as clientGrantInsertSchema, Me as clientGrantListSchema, x as clientGrantSchema, y as clientInsertSchema, C as clientRegistrationTokenInsertSchema, Ne as clientRegistrationTokenSchema, S as clientRegistrationTokenTypeSchema, je as clientSchema, qe as codeInsertSchema, Je as codeSchema, Ke as codeTypeSchema, nr as colorsSchema, Ut as componentMessageSchema, N as componentSchema, Xe as connectionInsertSchema, Ye as connectionOptionsSchema, Ze as connectionSchema, w as coordinatesSchema,
|
|
2714
|
+
export { ve as Auth0ActionEnum, kn as Auth0Client, Be as AuthorizationResponseMode, ze as AuthorizationResponseType, Ve as CodeChallengeMethod, E as ComponentCategory, T as ComponentType, ye as EmailActionEnum, Ft as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, $n as GrantType, An as LocationInfo, X as LogTypes, yn as LoginSessionState, Pe as NodeType, Ce as RedirectTargetEnum, ui as Strategy, di as StrategyType, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, s as actionExecutionTriggerIdSchema, a as actionInsertSchema, I as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, $r as activeUsersResponseSchema, le as actorSchema, h as addressSchema, ii as analyticsColumnMetaSchema, ni as analyticsGroupBySchema, ti as analyticsIntervalSchema, oi as analyticsQueryResponseSchema, ei as analyticsResourceSchema, ai as analyticsStatisticsSchema, ri as analyticsUserTypeSchema, Wn as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Re as auth0FlowInsertSchema, Le as auth0FlowSchema, Te as auth0QuerySchema, xe as auth0UpdateUserActionSchema, De as auth0UserResponseSchema, We as authParamsSchema, hi as authenticationMethodInsertSchema, gi as authenticationMethodSchema, fi as authenticationMethodTypeSchema, g as baseUserSchema, Mt as blockComponentSchema, tr as bordersSchema, Ge as brandingSchema, Vn as breachedPasswordDetectionSchema, Hn as bruteForceProtectionSchema, k as buttonComponentSchema, Ue as claimsRequestSchema, b as clientGrantInsertSchema, Me as clientGrantListSchema, x as clientGrantSchema, y as clientInsertSchema, C as clientRegistrationTokenInsertSchema, Ne as clientRegistrationTokenSchema, S as clientRegistrationTokenTypeSchema, je as clientSchema, qe as codeInsertSchema, Je as codeSchema, Ke as codeTypeSchema, nr as colorsSchema, Ut as componentMessageSchema, N as componentSchema, Xe as connectionInsertSchema, Ye as connectionOptionsSchema, Ze as connectionSchema, w as coordinatesSchema, yi as createPassthroughAdapter, bi as createWriteOnlyAdapter, nt as customDomainCertificateUploadSchema, B as customDomainInsertSchema, $e as customDomainSchema, et as customDomainUpdateSchema, tt as customDomainWithTenantIdSchema, li as customTextEntrySchema, ci as customTextSchema, Qr as dailyStatsSchema, pr as emailProviderSchema, mr as emailTemplateNameSchema, hr as emailTemplateSchema, be as emailVerificationRulesSchema, Se as emailVerifyActionSchema, Ie as endingSchema, Pt as fieldComponentSchema, d as flowActionStepSchema, f as flowInsertSchema, we as flowSchema, j as flowsFieldComponentSchema, F as flowsFlowNodeSchema, P as flowsStepNodeSchema, Q as fontDetailsSchema, rr as fontsSchema, It as formControlSchema, Vt as formInsertSchema, G as formNodeComponentDefinition, Bt as formNodeSchema, Ht as formSchema, M as genericComponentSchema, L as genericNodeSchema, xi as getConnectionIdentifierConfig, On as getLogTypeCategory, Dn as getLogTypeDescription, Or as grantInsertSchema, kr as grantSchema, ur as handlerConfigSchema, dn as hookCodeInsertSchema, fn as hookCodeSchema, an as hookInsertSchema, un as hookSchema, q as hookTemplateId, $t as hookTemplates, m as identitySchema, _i as importMetadataSchema, Y as inviteInsertSchema, hn as inviteSchema, mn as inviteeSchema, pn as inviterSchema, Kt as isBlockComponent, Jt as isFieldComponent, Si as isPlainObject, qt as isWidgetComponent, _n as jwksKeySchema, gn as jwksSchema, A as legalComponentSchema, pe as locationInfoSchema, jn as logInsertSchema, Mn as logSchema, Pn as logStreamFilterSchema, Fn as logStreamInsertSchema, In as logStreamSchema, Z as logStreamStatusSchema, Nn as logStreamTypeSchema, En as logTypeCategories, Tn as logTypeDescriptions, xn as loginSessionAuthStrategySchema, Sn as loginSessionInsertSchema, Cn as loginSessionSchema, bn as loginSessionStateSchema, lr as matchSchema, Ln as migrationProviderTypeSchema, Rn as migrationSourceCredentialsSchema, zn as migrationSourceInsertSchema, Bn as migrationSourceSchema, R as nodeSchema, vn as openIDConfigurationSchema, Vr as organizationBrandingSchema, Kr as organizationConnectionInsertSchema, Jr as organizationConnectionListSchema, qr as organizationConnectionSchema, Hr as organizationEnabledConnectionSchema, Wr as organizationInsertSchema, Gr as organizationSchema, Ur as organizationTokenQuotaSchema, ir as pageBackgroundSchema, vi as parseUserId, Gn as passwordInsertSchema, Kn as passwordSchema, p as profileDataSchema, si as promptScreenSchema, cr as promptSettingSchema, $ as proxyRouteInsertSchema, dr as proxyRouteSchema, fr as proxyRouteUpdateSchema, u as redirectActionSchema, gr as refreshTokenInsertSchema, _r as refreshTokenSchema, de as requestContextSchema, Sr as resourceServerInsertSchema, wr as resourceServerListSchema, xr as resourceServerOptionsSchema, Cr as resourceServerSchema, br as resourceServerScopeSchema, fe as responseContextSchema, O as richTextComponentSchema, Rr as roleInsertSchema, Br as roleListSchema, Tr as rolePermissionInsertSchema, Dr as rolePermissionListSchema, Er as rolePermissionSchema, zr as roleSchema, Wt as screenLinkSchema, Jn as sessionInsertSchema, Yn as sessionSchema, Xn as signingKeySchema, yr as smsProviderSchema, vr as smsSendParamsSchema, Fe as startSchema, Un as suspiciousIpThrottlingSchema, ue as targetSchema, Zn as tenantInsertSchema, Qn as tenantSchema, Zr as tenantSettingsSchema, or as themeInsertSchema, sr as themeSchema, er as tokenResponseSchema, Ee as totalsSchema, Gt as uiScreenSchema, _ as userInsertSchema, Yr as userOrganizationInsertSchema, Xr as userOrganizationSchema, Ar as userPermissionInsertSchema, Mr as userPermissionListSchema, jr as userPermissionSchema, Pr as userPermissionWithDetailsListSchema, Nr as userPermissionWithDetailsSchema, Oe as userResponseSchema, Fr as userRoleInsertSchema, Lr as userRoleListSchema, Ir as userRoleSchema, v as userSchema, Qe as verificationMethodsSchema, Nt as widgetComponentSchema, ar as widgetSchema };
|