@authhero/adapter-interfaces 3.3.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.
Files changed (39) hide show
  1. package/dist/adapter-interfaces.cjs +1 -1
  2. package/dist/adapter-interfaces.d.ts +75 -34
  3. package/dist/adapter-interfaces.mjs +11 -7
  4. package/dist/tsconfig.types.tsbuildinfo +1 -1
  5. package/dist/types/adapters/ActionVersions.d.ts +2 -1
  6. package/dist/types/adapters/Actions.d.ts +2 -1
  7. package/dist/types/adapters/AuthenticationMethods.d.ts +2 -1
  8. package/dist/types/adapters/ClientGrants.d.ts +2 -1
  9. package/dist/types/adapters/Clients.d.ts +2 -1
  10. package/dist/types/adapters/Connections.d.ts +2 -2
  11. package/dist/types/adapters/CustomDomains.d.ts +2 -1
  12. package/dist/types/adapters/CustomText.d.ts +2 -1
  13. package/dist/types/adapters/EmailProviders.d.ts +2 -1
  14. package/dist/types/adapters/EmailTemplates.d.ts +2 -1
  15. package/dist/types/adapters/Flows.d.ts +2 -1
  16. package/dist/types/adapters/Forms.d.ts +2 -1
  17. package/dist/types/adapters/HookCode.d.ts +2 -1
  18. package/dist/types/adapters/Hooks.d.ts +2 -1
  19. package/dist/types/adapters/Invites.d.ts +2 -1
  20. package/dist/types/adapters/Keys.d.ts +2 -1
  21. package/dist/types/adapters/LogStreams.d.ts +2 -1
  22. package/dist/types/adapters/MigrationSources.d.ts +2 -1
  23. package/dist/types/adapters/OrganizationConnections.d.ts +2 -1
  24. package/dist/types/adapters/Organizations.d.ts +2 -1
  25. package/dist/types/adapters/Passwords.d.ts +2 -1
  26. package/dist/types/adapters/ProxyRoutes.d.ts +2 -1
  27. package/dist/types/adapters/ResourceServers.d.ts +2 -1
  28. package/dist/types/adapters/RolePermissions.d.ts +2 -1
  29. package/dist/types/adapters/Roles.d.ts +2 -1
  30. package/dist/types/adapters/Tenants.d.ts +9 -1
  31. package/dist/types/adapters/Themes.d.ts +9 -1
  32. package/dist/types/adapters/UniversalLoginTemplates.d.ts +2 -1
  33. package/dist/types/adapters/UserOrganizations.d.ts +2 -1
  34. package/dist/types/adapters/UserPermissions.d.ts +2 -1
  35. package/dist/types/adapters/UserRoles.d.ts +2 -1
  36. package/dist/types/adapters/Users.d.ts +2 -1
  37. package/dist/types/types/ImportMetadata.d.ts +27 -0
  38. package/dist/types/types/index.d.ts +1 -0
  39. package/package.json +1 -1
@@ -10675,6 +10675,33 @@ declare const authenticationMethodSchema: z.ZodObject<{
10675
10675
  }, z.core.$strip>;
10676
10676
  type AuthenticationMethod = z.infer<typeof authenticationMethodSchema>;
10677
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
+
10678
10705
  declare function parseUserId(user_id: string): {
10679
10706
  connection: string;
10680
10707
  id: string;
@@ -10822,7 +10849,7 @@ interface ListActionsResponse extends Totals {
10822
10849
  actions: Action[];
10823
10850
  }
10824
10851
  interface ActionsAdapter {
10825
- create: (tenant_id: string, action: ActionInsert) => Promise<Action>;
10852
+ create: (tenant_id: string, action: ActionInsert, options?: CreateOptions) => Promise<Action>;
10826
10853
  get: (tenant_id: string, action_id: string) => Promise<Action | null>;
10827
10854
  update: (tenant_id: string, action_id: string, action: ActionUpdate) => Promise<boolean>;
10828
10855
  remove: (tenant_id: string, action_id: string) => Promise<boolean>;
@@ -10843,7 +10870,7 @@ interface ActionVersionsAdapter {
10843
10870
  * sequential `number` per action_id and clears the `deployed` flag on any
10844
10871
  * prior versions when the new one is created with `deployed: true`.
10845
10872
  */
10846
- create: (tenant_id: string, version: ActionVersionInsert) => Promise<ActionVersion>;
10873
+ create: (tenant_id: string, version: ActionVersionInsert, options?: CreateOptions) => Promise<ActionVersion>;
10847
10874
  get: (tenant_id: string, action_id: string, version_id: string) => Promise<ActionVersion | null>;
10848
10875
  list: (tenant_id: string, action_id: string, params?: ListParams) => Promise<ListActionVersionsResponse>;
10849
10876
  /**
@@ -10857,7 +10884,7 @@ interface ListFlowsResponse extends Totals {
10857
10884
  flows: Flow[];
10858
10885
  }
10859
10886
  interface FlowsAdapter {
10860
- create(tenant_id: string, params: FlowInsert): Promise<Flow>;
10887
+ create(tenant_id: string, params: FlowInsert, options?: CreateOptions): Promise<Flow>;
10861
10888
  get(tenant_id: string, flow_id: string): Promise<Flow | null>;
10862
10889
  remove(tenant_id: string, flow_id: string): Promise<boolean>;
10863
10890
  update(tenant_id: string, flow_id: string, flow: Partial<FlowInsert>): Promise<Flow | null>;
@@ -10908,7 +10935,7 @@ interface ClientWithTenantId extends Client {
10908
10935
  tenant_id: string;
10909
10936
  }
10910
10937
  interface ClientsAdapter {
10911
- create(tenant_id: string, params: ClientInsert): Promise<Client>;
10938
+ create(tenant_id: string, params: ClientInsert, options?: CreateOptions): Promise<Client>;
10912
10939
  get(tenant_id: string, client_id: string): Promise<Client | null>;
10913
10940
  /**
10914
10941
  * Get a client by client_id only (without tenant_id).
@@ -10954,7 +10981,7 @@ interface ListClientGrantsResponse extends Totals {
10954
10981
  client_grants: ClientGrant[];
10955
10982
  }
10956
10983
  interface ClientGrantsAdapter {
10957
- create(tenant_id: string, params: ClientGrantInsert): Promise<ClientGrant>;
10984
+ create(tenant_id: string, params: ClientGrantInsert, options?: CreateOptions): Promise<ClientGrant>;
10958
10985
  get(tenant_id: string, id: string): Promise<ClientGrant | null>;
10959
10986
  list(tenant_id: string, params?: ListParams): Promise<ListClientGrantsResponse>;
10960
10987
  update(tenant_id: string, id: string, clientGrant: Partial<ClientGrantInsert>): Promise<boolean>;
@@ -10989,7 +11016,7 @@ interface CodesAdapter {
10989
11016
  }
10990
11017
 
10991
11018
  interface PasswordsAdapter {
10992
- create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
11019
+ create: (tenant_id: string, params: PasswordInsert, options?: CreateOptions) => Promise<Password>;
10993
11020
  update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
10994
11021
  get: (tenant_id: string, user_id: string) => Promise<Password | null>;
10995
11022
  list: (tenant_id: string, user_id: string, limit?: number) => Promise<Password[]>;
@@ -11043,7 +11070,14 @@ interface CreateTenantParams {
11043
11070
  d1_database_id?: string;
11044
11071
  }
11045
11072
  interface TenantsDataAdapter {
11046
- create(params: CreateTenantParams): Promise<Tenant>;
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>;
11047
11081
  get(id: string): Promise<Tenant | null>;
11048
11082
  list(params?: ListParams): Promise<{
11049
11083
  tenants: Tenant[];
@@ -11058,7 +11092,7 @@ interface ListUsersResponse extends Totals {
11058
11092
  }
11059
11093
  interface UserDataAdapter {
11060
11094
  get(tenant_id: string, id: string): Promise<User | null>;
11061
- create(tenantId: string, user: UserInsert): Promise<User>;
11095
+ create(tenantId: string, user: UserInsert, options?: CreateOptions): Promise<User>;
11062
11096
  /**
11063
11097
  * Create a user without invoking any decorator-level hooks (pre/post
11064
11098
  * registration hooks, linking, webhooks, etc.). Intended to be called from
@@ -11082,7 +11116,7 @@ interface LogsDataAdapter {
11082
11116
  }
11083
11117
 
11084
11118
  interface LogStreamsAdapter {
11085
- create(tenant_id: string, params: LogStreamInsert): Promise<LogStream>;
11119
+ create(tenant_id: string, params: LogStreamInsert, options?: CreateOptions): Promise<LogStream>;
11086
11120
  get(tenant_id: string, id: string): Promise<LogStream | null>;
11087
11121
  list(tenant_id: string): Promise<LogStream[]>;
11088
11122
  update(tenant_id: string, id: string, params: Partial<LogStream>): Promise<boolean>;
@@ -11090,7 +11124,7 @@ interface LogStreamsAdapter {
11090
11124
  }
11091
11125
 
11092
11126
  interface MigrationSourcesAdapter {
11093
- create: (tenant_id: string, migration_source: MigrationSourceInsert) => Promise<MigrationSource>;
11127
+ create: (tenant_id: string, migration_source: MigrationSourceInsert, options?: CreateOptions) => Promise<MigrationSource>;
11094
11128
  get: (tenant_id: string, id: string) => Promise<MigrationSource | null>;
11095
11129
  list: (tenant_id: string) => Promise<MigrationSource[]>;
11096
11130
  remove: (tenant_id: string, id: string) => Promise<boolean>;
@@ -11101,7 +11135,7 @@ interface ListConnectionsResponse extends Totals {
11101
11135
  connections: Connection[];
11102
11136
  }
11103
11137
  interface ConnectionsAdapter {
11104
- create(tenant_id: string, params: ConnectionInsert): Promise<Connection>;
11138
+ create(tenant_id: string, params: ConnectionInsert, options?: CreateOptions): Promise<Connection>;
11105
11139
  remove(tenant_id: string, connection_id: string): Promise<boolean>;
11106
11140
  get(tenant_id: string, connection_id: string): Promise<Connection | null>;
11107
11141
  update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
@@ -11109,7 +11143,7 @@ interface ConnectionsAdapter {
11109
11143
  }
11110
11144
 
11111
11145
  interface CustomDomainsAdapter {
11112
- create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
11146
+ create: (tenant_id: string, custom_domain: CustomDomainInsert, options?: CreateOptions) => Promise<CustomDomain>;
11113
11147
  get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
11114
11148
  getByDomain: (domain: string) => Promise<CustomDomainWithTenantId | null>;
11115
11149
  list: (tenant_id: string) => Promise<CustomDomain[]>;
@@ -11122,7 +11156,7 @@ interface ListKeysResponse extends Totals {
11122
11156
  signingKeys: SigningKey[];
11123
11157
  }
11124
11158
  interface KeysAdapter {
11125
- create: (key: SigningKey) => Promise<void>;
11159
+ create: (key: SigningKey, options?: CreateOptions) => Promise<void>;
11126
11160
  list: (params?: ListParams) => Promise<ListKeysResponse>;
11127
11161
  update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
11128
11162
  }
@@ -11136,7 +11170,7 @@ interface ListHooksResponse extends Totals {
11136
11170
  hooks: Hook[];
11137
11171
  }
11138
11172
  interface HooksAdapter {
11139
- create: (tenant_id: string, hook: HookInsert) => Promise<Hook>;
11173
+ create: (tenant_id: string, hook: HookInsert, options?: CreateOptions) => Promise<Hook>;
11140
11174
  remove: (tenant_id: string, hook_id: string) => Promise<boolean>;
11141
11175
  get: (tenant_id: string, hook_id: string) => Promise<Hook | null>;
11142
11176
  update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
@@ -11144,16 +11178,23 @@ interface HooksAdapter {
11144
11178
  }
11145
11179
 
11146
11180
  interface HookCodeAdapter {
11147
- create: (tenant_id: string, hookCode: HookCodeInsert) => Promise<HookCode>;
11181
+ create: (tenant_id: string, hookCode: HookCodeInsert, options?: CreateOptions) => Promise<HookCode>;
11148
11182
  get: (tenant_id: string, id: string) => Promise<HookCode | null>;
11149
11183
  update: (tenant_id: string, id: string, hookCode: Partial<HookCodeInsert>) => Promise<boolean>;
11150
11184
  remove: (tenant_id: string, id: string) => Promise<boolean>;
11151
11185
  }
11152
11186
 
11153
11187
  interface ThemesAdapter {
11154
- create: (tenant_id: string, theme: ThemeInsert, themeId?: string) => Promise<Theme>;
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>;
11155
11195
  remove: (tenant_id: string, themeId: string) => Promise<boolean>;
11156
11196
  get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
11197
+ list: (tenant_id: string) => Promise<Theme[]>;
11157
11198
  update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
11158
11199
  }
11159
11200
 
@@ -11181,7 +11222,7 @@ interface ListProxyRoutesResult {
11181
11222
  length: number;
11182
11223
  }
11183
11224
  interface ProxyRoutesAdapter {
11184
- create(tenant_id: string, route: ProxyRouteInsert): Promise<ProxyRoute>;
11225
+ create(tenant_id: string, route: ProxyRouteInsert, options?: CreateOptions): Promise<ProxyRoute>;
11185
11226
  get(tenant_id: string, id: string): Promise<ProxyRoute | null>;
11186
11227
  list(tenant_id: string, params?: ListProxyRoutesParams): Promise<ListProxyRoutesResult>;
11187
11228
  update(tenant_id: string, id: string, route: ProxyRouteUpdate): Promise<boolean>;
@@ -11190,7 +11231,7 @@ interface ProxyRoutesAdapter {
11190
11231
 
11191
11232
  interface EmailProvidersAdapter {
11192
11233
  update: (tenant_id: string, emailProvider: Partial<EmailProvider>) => Promise<void>;
11193
- create: (tenant_id: string, emailProvider: EmailProvider) => Promise<void>;
11234
+ create: (tenant_id: string, emailProvider: EmailProvider, options?: CreateOptions) => Promise<void>;
11194
11235
  get: (tenant_id: string) => Promise<EmailProvider | null>;
11195
11236
  remove: (tenant_id: string) => Promise<void>;
11196
11237
  }
@@ -11198,7 +11239,7 @@ interface EmailProvidersAdapter {
11198
11239
  interface EmailTemplatesAdapter {
11199
11240
  get: (tenant_id: string, templateName: EmailTemplateName) => Promise<EmailTemplate | null>;
11200
11241
  list: (tenant_id: string) => Promise<EmailTemplate[]>;
11201
- create: (tenant_id: string, template: EmailTemplate) => Promise<EmailTemplate>;
11242
+ create: (tenant_id: string, template: EmailTemplate, options?: CreateOptions) => Promise<EmailTemplate>;
11202
11243
  update: (tenant_id: string, templateName: EmailTemplateName, template: Partial<EmailTemplate>) => Promise<boolean>;
11203
11244
  remove: (tenant_id: string, templateName: EmailTemplateName) => Promise<boolean>;
11204
11245
  }
@@ -11243,7 +11284,7 @@ interface ListFormsResponse extends Totals {
11243
11284
  forms: Form[];
11244
11285
  }
11245
11286
  interface FormsAdapter {
11246
- create(tenant_id: string, params: FormInsert): Promise<Form>;
11287
+ create(tenant_id: string, params: FormInsert, options?: CreateOptions): Promise<Form>;
11247
11288
  get(tenant_id: string, form_id: string): Promise<Form | null>;
11248
11289
  remove(tenant_id: string, form_id: string): Promise<boolean>;
11249
11290
  update(tenant_id: string, form_id: string, form: Partial<FormInsert>): Promise<boolean>;
@@ -11254,7 +11295,7 @@ interface ListResourceServersResponse extends Totals {
11254
11295
  resource_servers: ResourceServer[];
11255
11296
  }
11256
11297
  interface ResourceServersAdapter {
11257
- create(tenant_id: string, params: ResourceServerInsert): Promise<ResourceServer>;
11298
+ create(tenant_id: string, params: ResourceServerInsert, options?: CreateOptions): Promise<ResourceServer>;
11258
11299
  get(tenant_id: string, id: string): Promise<ResourceServer | null>;
11259
11300
  list(tenant_id: string, params?: ListParams): Promise<ListResourceServersResponse>;
11260
11301
  update(tenant_id: string, id: string, resourceServer: Partial<ResourceServerInsert>): Promise<boolean>;
@@ -11262,7 +11303,7 @@ interface ResourceServersAdapter {
11262
11303
  }
11263
11304
 
11264
11305
  interface RolePermissionsAdapter {
11265
- 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>;
11266
11307
  remove(tenant_id: string, role_id: string, permissions: Pick<RolePermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
11267
11308
  list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionList>;
11268
11309
  }
@@ -11284,7 +11325,7 @@ interface GrantsAdapter {
11284
11325
  }
11285
11326
 
11286
11327
  interface UserPermissionsAdapter {
11287
- 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>;
11288
11329
  remove(tenant_id: string, user_id: string, permission: Pick<UserPermissionInsert, "resource_server_identifier" | "permission_name">, organization_id?: string): Promise<boolean>;
11289
11330
  list(tenant_id: string, user_id: string, params?: ListParams, organization_id?: string): Promise<UserPermissionWithDetailsList>;
11290
11331
  }
@@ -11293,7 +11334,7 @@ interface ListRolesResponse extends Totals {
11293
11334
  roles: Role[];
11294
11335
  }
11295
11336
  interface RolesAdapter {
11296
- create(tenantId: string, role: RoleInsert): Promise<Role>;
11337
+ create(tenantId: string, role: RoleInsert, options?: CreateOptions): Promise<Role>;
11297
11338
  get(tenantId: string, roleId: string): Promise<Role | null>;
11298
11339
  list(tenantId: string, params?: ListParams): Promise<ListRolesResponse>;
11299
11340
  update(tenantId: string, roleId: string, updates: Partial<Role>): Promise<boolean>;
@@ -11308,7 +11349,7 @@ interface ListUserRolesResponse {
11308
11349
  }
11309
11350
  interface UserRolesAdapter {
11310
11351
  list(tenantId: string, userId: string, params?: ListParams, organizationId?: string): Promise<Role[]>;
11311
- 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>;
11312
11353
  remove(tenantId: string, userId: string, roleId: string, organizationId?: string): Promise<boolean>;
11313
11354
  }
11314
11355
 
@@ -11316,7 +11357,7 @@ interface ListOrganizationsResponse extends Totals {
11316
11357
  organizations: Organization[];
11317
11358
  }
11318
11359
  interface OrganizationsAdapter {
11319
- create(tenant_id: string, params: OrganizationInsert): Promise<Organization>;
11360
+ create(tenant_id: string, params: OrganizationInsert, options?: CreateOptions): Promise<Organization>;
11320
11361
  get(tenant_id: string, id: string): Promise<Organization | null>;
11321
11362
  remove(tenant_id: string, id: string): Promise<boolean>;
11322
11363
  list(tenant_id: string, params?: ListParams): Promise<ListOrganizationsResponse>;
@@ -11324,7 +11365,7 @@ interface OrganizationsAdapter {
11324
11365
  }
11325
11366
 
11326
11367
  interface OrganizationConnectionsAdapter {
11327
- 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>;
11328
11369
  list(tenant_id: string, organization_id: string): Promise<OrganizationConnection[]>;
11329
11370
  get(tenant_id: string, organization_id: string, connection_id: string): Promise<OrganizationConnection | null>;
11330
11371
  update(tenant_id: string, organization_id: string, connection_id: string, params: Partial<Omit<OrganizationConnectionInsert, "connection_id">>): Promise<OrganizationConnection | null>;
@@ -11332,7 +11373,7 @@ interface OrganizationConnectionsAdapter {
11332
11373
  }
11333
11374
 
11334
11375
  interface UserOrganizationsAdapter {
11335
- create(tenantId: string, params: UserOrganizationInsert): Promise<UserOrganization>;
11376
+ create(tenantId: string, params: UserOrganizationInsert, options?: CreateOptions): Promise<UserOrganization>;
11336
11377
  get(tenantId: string, id: string): Promise<UserOrganization | null>;
11337
11378
  remove(tenantId: string, id: string): Promise<boolean>;
11338
11379
  /**
@@ -11359,7 +11400,7 @@ interface ListInvitesResponse extends Totals {
11359
11400
  invites: Invite[];
11360
11401
  }
11361
11402
  interface InvitesAdapter {
11362
- create(tenant_id: string, params: InviteInsert): Promise<Invite>;
11403
+ create(tenant_id: string, params: InviteInsert, options?: CreateOptions): Promise<Invite>;
11363
11404
  get(tenant_id: string, id: string): Promise<Invite | null>;
11364
11405
  remove(tenant_id: string, id: string): Promise<boolean>;
11365
11406
  list(tenant_id: string, params?: ListParams): Promise<ListInvitesResponse>;
@@ -11384,7 +11425,7 @@ interface GeoAdapter {
11384
11425
  }
11385
11426
 
11386
11427
  interface AuthenticationMethodsAdapter {
11387
- create: (tenant_id: string, method: AuthenticationMethodInsert) => Promise<AuthenticationMethod>;
11428
+ create: (tenant_id: string, method: AuthenticationMethodInsert, options?: CreateOptions) => Promise<AuthenticationMethod>;
11388
11429
  get: (tenant_id: string, method_id: string) => Promise<AuthenticationMethod | null>;
11389
11430
  getByCredentialId: (tenant_id: string, credential_id: string) => Promise<AuthenticationMethod | null>;
11390
11431
  list: (tenant_id: string, user_id: string) => Promise<AuthenticationMethod[]>;
@@ -11421,7 +11462,7 @@ interface UniversalLoginTemplate {
11421
11462
  }
11422
11463
  interface UniversalLoginTemplatesAdapter {
11423
11464
  get: (tenant_id: string) => Promise<UniversalLoginTemplate | null>;
11424
- set: (tenant_id: string, template: UniversalLoginTemplate) => Promise<void>;
11465
+ set: (tenant_id: string, template: UniversalLoginTemplate, options?: CreateOptions) => Promise<void>;
11425
11466
  delete: (tenant_id: string) => Promise<void>;
11426
11467
  }
11427
11468
 
@@ -11433,7 +11474,7 @@ interface CustomTextAdapter {
11433
11474
  /**
11434
11475
  * Set custom text for a specific prompt screen and language
11435
11476
  */
11436
- 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>;
11437
11478
  /**
11438
11479
  * Delete custom text for a specific prompt screen and language
11439
11480
  */
@@ -11760,5 +11801,5 @@ interface DataAdapters {
11760
11801
  };
11761
11802
  }
11762
11803
 
11763
- 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 };
11764
- 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 };
@@ -2628,10 +2628,14 @@ var hi = pi.superRefine(mi), gi = pi.extend({
2628
2628
  id: e.string(),
2629
2629
  created_at: e.string(),
2630
2630
  updated_at: e.string()
2631
- }).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
+ });
2632
2636
  //#endregion
2633
2637
  //#region src/utils/user-id.ts
2634
- function _i(e) {
2638
+ function vi(e) {
2635
2639
  let [t, n] = e.split("|");
2636
2640
  if (!t || !n) throw Error(`Invalid user_id: ${e}`);
2637
2641
  return {
@@ -2641,7 +2645,7 @@ function _i(e) {
2641
2645
  }
2642
2646
  //#endregion
2643
2647
  //#region src/utils/passthrough.ts
2644
- function vi(e) {
2648
+ function yi(e) {
2645
2649
  let { primary: t, secondaries: n, syncMethods: r = [
2646
2650
  "create",
2647
2651
  "rawCreate",
@@ -2675,12 +2679,12 @@ function vi(e) {
2675
2679
  } : i.bind(e) : i;
2676
2680
  } });
2677
2681
  }
2678
- function yi(e) {
2682
+ function bi(e) {
2679
2683
  return e;
2680
2684
  }
2681
2685
  //#endregion
2682
2686
  //#region src/utils/connection-attributes.ts
2683
- function bi(e) {
2687
+ function xi(e) {
2684
2688
  let t = e?.options;
2685
2689
  if (!t) return {
2686
2690
  usernameIdentifierActive: !1,
@@ -2703,8 +2707,8 @@ function bi(e) {
2703
2707
  }
2704
2708
  //#endregion
2705
2709
  //#region src/utils/guards.ts
2706
- function xi(e) {
2710
+ function Si(e) {
2707
2711
  return typeof e == "object" && !!e && !Array.isArray(e);
2708
2712
  }
2709
2713
  //#endregion
2710
- 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, vi as createPassthroughAdapter, yi 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, bi 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, Y as inviteInsertSchema, hn as inviteSchema, mn as inviteeSchema, pn as inviterSchema, Kt as isBlockComponent, Jt as isFieldComponent, xi 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, _i 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 };
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 };