@authhero/adapter-interfaces 3.3.0 → 3.4.1
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 +80 -34
- package/dist/adapter-interfaces.mjs +17 -8
- 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/Tenants.d.ts +9 -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/Analytics.d.ts +5 -0
- package/dist/types/types/ImportMetadata.d.ts +27 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10423,10 +10423,15 @@ type ActiveUsersResponse = z.infer<typeof activeUsersResponseSchema>;
|
|
|
10423
10423
|
|
|
10424
10424
|
declare const analyticsResourceSchema: z.ZodEnum<{
|
|
10425
10425
|
sessions: "sessions";
|
|
10426
|
+
mfa: "mfa";
|
|
10426
10427
|
logins: "logins";
|
|
10427
10428
|
signups: "signups";
|
|
10428
10429
|
"active-users": "active-users";
|
|
10429
10430
|
"refresh-tokens": "refresh-tokens";
|
|
10431
|
+
logouts: "logouts";
|
|
10432
|
+
"password-changes": "password-changes";
|
|
10433
|
+
"email-verifications": "email-verifications";
|
|
10434
|
+
"codes-sent": "codes-sent";
|
|
10430
10435
|
}>;
|
|
10431
10436
|
type AnalyticsResource = z.infer<typeof analyticsResourceSchema>;
|
|
10432
10437
|
declare const analyticsIntervalSchema: z.ZodEnum<{
|
|
@@ -10675,6 +10680,33 @@ declare const authenticationMethodSchema: z.ZodObject<{
|
|
|
10675
10680
|
}, z.core.$strip>;
|
|
10676
10681
|
type AuthenticationMethod = z.infer<typeof authenticationMethodSchema>;
|
|
10677
10682
|
|
|
10683
|
+
/**
|
|
10684
|
+
* Import-only metadata for entity `create()` calls.
|
|
10685
|
+
*
|
|
10686
|
+
* These values are deliberately NOT part of any public `*InsertSchema` and are
|
|
10687
|
+
* never accepted on the normal management-API write routes. They reach an
|
|
10688
|
+
* adapter only through the dedicated `options.importMetadata` argument, which
|
|
10689
|
+
* the HTTP layer never populates — so request bodies can never set a row's
|
|
10690
|
+
* timestamps or primary id. The tenant export/import engine is the only caller
|
|
10691
|
+
* that passes them, in order to reproduce a source tenant's rows faithfully.
|
|
10692
|
+
*
|
|
10693
|
+
* When omitted, `create()` keeps its existing behavior: generate the id and
|
|
10694
|
+
* stamp `created_at`/`updated_at` with the current time.
|
|
10695
|
+
*/
|
|
10696
|
+
declare const importMetadataSchema: z.ZodObject<{
|
|
10697
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10698
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
10699
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
10700
|
+
}, z.core.$strip>;
|
|
10701
|
+
type ImportMetadata = z.infer<typeof importMetadataSchema>;
|
|
10702
|
+
/**
|
|
10703
|
+
* Optional third argument accepted by every durable entity's `create()`.
|
|
10704
|
+
* Reserved for import-only concerns; see {@link ImportMetadata}.
|
|
10705
|
+
*/
|
|
10706
|
+
interface CreateOptions {
|
|
10707
|
+
importMetadata?: ImportMetadata;
|
|
10708
|
+
}
|
|
10709
|
+
|
|
10678
10710
|
declare function parseUserId(user_id: string): {
|
|
10679
10711
|
connection: string;
|
|
10680
10712
|
id: string;
|
|
@@ -10822,7 +10854,7 @@ interface ListActionsResponse extends Totals {
|
|
|
10822
10854
|
actions: Action[];
|
|
10823
10855
|
}
|
|
10824
10856
|
interface ActionsAdapter {
|
|
10825
|
-
create: (tenant_id: string, action: ActionInsert) => Promise<Action>;
|
|
10857
|
+
create: (tenant_id: string, action: ActionInsert, options?: CreateOptions) => Promise<Action>;
|
|
10826
10858
|
get: (tenant_id: string, action_id: string) => Promise<Action | null>;
|
|
10827
10859
|
update: (tenant_id: string, action_id: string, action: ActionUpdate) => Promise<boolean>;
|
|
10828
10860
|
remove: (tenant_id: string, action_id: string) => Promise<boolean>;
|
|
@@ -10843,7 +10875,7 @@ interface ActionVersionsAdapter {
|
|
|
10843
10875
|
* sequential `number` per action_id and clears the `deployed` flag on any
|
|
10844
10876
|
* prior versions when the new one is created with `deployed: true`.
|
|
10845
10877
|
*/
|
|
10846
|
-
create: (tenant_id: string, version: ActionVersionInsert) => Promise<ActionVersion>;
|
|
10878
|
+
create: (tenant_id: string, version: ActionVersionInsert, options?: CreateOptions) => Promise<ActionVersion>;
|
|
10847
10879
|
get: (tenant_id: string, action_id: string, version_id: string) => Promise<ActionVersion | null>;
|
|
10848
10880
|
list: (tenant_id: string, action_id: string, params?: ListParams) => Promise<ListActionVersionsResponse>;
|
|
10849
10881
|
/**
|
|
@@ -10857,7 +10889,7 @@ interface ListFlowsResponse extends Totals {
|
|
|
10857
10889
|
flows: Flow[];
|
|
10858
10890
|
}
|
|
10859
10891
|
interface FlowsAdapter {
|
|
10860
|
-
create(tenant_id: string, params: FlowInsert): Promise<Flow>;
|
|
10892
|
+
create(tenant_id: string, params: FlowInsert, options?: CreateOptions): Promise<Flow>;
|
|
10861
10893
|
get(tenant_id: string, flow_id: string): Promise<Flow | null>;
|
|
10862
10894
|
remove(tenant_id: string, flow_id: string): Promise<boolean>;
|
|
10863
10895
|
update(tenant_id: string, flow_id: string, flow: Partial<FlowInsert>): Promise<Flow | null>;
|
|
@@ -10908,7 +10940,7 @@ interface ClientWithTenantId extends Client {
|
|
|
10908
10940
|
tenant_id: string;
|
|
10909
10941
|
}
|
|
10910
10942
|
interface ClientsAdapter {
|
|
10911
|
-
create(tenant_id: string, params: ClientInsert): Promise<Client>;
|
|
10943
|
+
create(tenant_id: string, params: ClientInsert, options?: CreateOptions): Promise<Client>;
|
|
10912
10944
|
get(tenant_id: string, client_id: string): Promise<Client | null>;
|
|
10913
10945
|
/**
|
|
10914
10946
|
* Get a client by client_id only (without tenant_id).
|
|
@@ -10954,7 +10986,7 @@ interface ListClientGrantsResponse extends Totals {
|
|
|
10954
10986
|
client_grants: ClientGrant[];
|
|
10955
10987
|
}
|
|
10956
10988
|
interface ClientGrantsAdapter {
|
|
10957
|
-
create(tenant_id: string, params: ClientGrantInsert): Promise<ClientGrant>;
|
|
10989
|
+
create(tenant_id: string, params: ClientGrantInsert, options?: CreateOptions): Promise<ClientGrant>;
|
|
10958
10990
|
get(tenant_id: string, id: string): Promise<ClientGrant | null>;
|
|
10959
10991
|
list(tenant_id: string, params?: ListParams): Promise<ListClientGrantsResponse>;
|
|
10960
10992
|
update(tenant_id: string, id: string, clientGrant: Partial<ClientGrantInsert>): Promise<boolean>;
|
|
@@ -10989,7 +11021,7 @@ interface CodesAdapter {
|
|
|
10989
11021
|
}
|
|
10990
11022
|
|
|
10991
11023
|
interface PasswordsAdapter {
|
|
10992
|
-
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
11024
|
+
create: (tenant_id: string, params: PasswordInsert, options?: CreateOptions) => Promise<Password>;
|
|
10993
11025
|
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
10994
11026
|
get: (tenant_id: string, user_id: string) => Promise<Password | null>;
|
|
10995
11027
|
list: (tenant_id: string, user_id: string, limit?: number) => Promise<Password[]>;
|
|
@@ -11043,7 +11075,14 @@ interface CreateTenantParams {
|
|
|
11043
11075
|
d1_database_id?: string;
|
|
11044
11076
|
}
|
|
11045
11077
|
interface TenantsDataAdapter {
|
|
11046
|
-
|
|
11078
|
+
/**
|
|
11079
|
+
* Single source of truth for the new tenant id: `options.importMetadata.id`
|
|
11080
|
+
* takes precedence, then `params.id`, then a generated id. The tenant
|
|
11081
|
+
* importer relies on this by passing the *target* id via `params.id` and
|
|
11082
|
+
* leaving `importMetadata.id` unset, so an export always lands under the
|
|
11083
|
+
* requested tenant.
|
|
11084
|
+
*/
|
|
11085
|
+
create(params: CreateTenantParams, options?: CreateOptions): Promise<Tenant>;
|
|
11047
11086
|
get(id: string): Promise<Tenant | null>;
|
|
11048
11087
|
list(params?: ListParams): Promise<{
|
|
11049
11088
|
tenants: Tenant[];
|
|
@@ -11058,7 +11097,7 @@ interface ListUsersResponse extends Totals {
|
|
|
11058
11097
|
}
|
|
11059
11098
|
interface UserDataAdapter {
|
|
11060
11099
|
get(tenant_id: string, id: string): Promise<User | null>;
|
|
11061
|
-
create(tenantId: string, user: UserInsert): Promise<User>;
|
|
11100
|
+
create(tenantId: string, user: UserInsert, options?: CreateOptions): Promise<User>;
|
|
11062
11101
|
/**
|
|
11063
11102
|
* Create a user without invoking any decorator-level hooks (pre/post
|
|
11064
11103
|
* registration hooks, linking, webhooks, etc.). Intended to be called from
|
|
@@ -11082,7 +11121,7 @@ interface LogsDataAdapter {
|
|
|
11082
11121
|
}
|
|
11083
11122
|
|
|
11084
11123
|
interface LogStreamsAdapter {
|
|
11085
|
-
create(tenant_id: string, params: LogStreamInsert): Promise<LogStream>;
|
|
11124
|
+
create(tenant_id: string, params: LogStreamInsert, options?: CreateOptions): Promise<LogStream>;
|
|
11086
11125
|
get(tenant_id: string, id: string): Promise<LogStream | null>;
|
|
11087
11126
|
list(tenant_id: string): Promise<LogStream[]>;
|
|
11088
11127
|
update(tenant_id: string, id: string, params: Partial<LogStream>): Promise<boolean>;
|
|
@@ -11090,7 +11129,7 @@ interface LogStreamsAdapter {
|
|
|
11090
11129
|
}
|
|
11091
11130
|
|
|
11092
11131
|
interface MigrationSourcesAdapter {
|
|
11093
|
-
create: (tenant_id: string, migration_source: MigrationSourceInsert) => Promise<MigrationSource>;
|
|
11132
|
+
create: (tenant_id: string, migration_source: MigrationSourceInsert, options?: CreateOptions) => Promise<MigrationSource>;
|
|
11094
11133
|
get: (tenant_id: string, id: string) => Promise<MigrationSource | null>;
|
|
11095
11134
|
list: (tenant_id: string) => Promise<MigrationSource[]>;
|
|
11096
11135
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
@@ -11101,7 +11140,7 @@ interface ListConnectionsResponse extends Totals {
|
|
|
11101
11140
|
connections: Connection[];
|
|
11102
11141
|
}
|
|
11103
11142
|
interface ConnectionsAdapter {
|
|
11104
|
-
create(tenant_id: string, params: ConnectionInsert): Promise<Connection>;
|
|
11143
|
+
create(tenant_id: string, params: ConnectionInsert, options?: CreateOptions): Promise<Connection>;
|
|
11105
11144
|
remove(tenant_id: string, connection_id: string): Promise<boolean>;
|
|
11106
11145
|
get(tenant_id: string, connection_id: string): Promise<Connection | null>;
|
|
11107
11146
|
update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
|
|
@@ -11109,7 +11148,7 @@ interface ConnectionsAdapter {
|
|
|
11109
11148
|
}
|
|
11110
11149
|
|
|
11111
11150
|
interface CustomDomainsAdapter {
|
|
11112
|
-
create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
|
|
11151
|
+
create: (tenant_id: string, custom_domain: CustomDomainInsert, options?: CreateOptions) => Promise<CustomDomain>;
|
|
11113
11152
|
get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
|
|
11114
11153
|
getByDomain: (domain: string) => Promise<CustomDomainWithTenantId | null>;
|
|
11115
11154
|
list: (tenant_id: string) => Promise<CustomDomain[]>;
|
|
@@ -11122,7 +11161,7 @@ interface ListKeysResponse extends Totals {
|
|
|
11122
11161
|
signingKeys: SigningKey[];
|
|
11123
11162
|
}
|
|
11124
11163
|
interface KeysAdapter {
|
|
11125
|
-
create: (key: SigningKey) => Promise<void>;
|
|
11164
|
+
create: (key: SigningKey, options?: CreateOptions) => Promise<void>;
|
|
11126
11165
|
list: (params?: ListParams) => Promise<ListKeysResponse>;
|
|
11127
11166
|
update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
|
|
11128
11167
|
}
|
|
@@ -11136,7 +11175,7 @@ interface ListHooksResponse extends Totals {
|
|
|
11136
11175
|
hooks: Hook[];
|
|
11137
11176
|
}
|
|
11138
11177
|
interface HooksAdapter {
|
|
11139
|
-
create: (tenant_id: string, hook: HookInsert) => Promise<Hook>;
|
|
11178
|
+
create: (tenant_id: string, hook: HookInsert, options?: CreateOptions) => Promise<Hook>;
|
|
11140
11179
|
remove: (tenant_id: string, hook_id: string) => Promise<boolean>;
|
|
11141
11180
|
get: (tenant_id: string, hook_id: string) => Promise<Hook | null>;
|
|
11142
11181
|
update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
|
|
@@ -11144,16 +11183,23 @@ interface HooksAdapter {
|
|
|
11144
11183
|
}
|
|
11145
11184
|
|
|
11146
11185
|
interface HookCodeAdapter {
|
|
11147
|
-
create: (tenant_id: string, hookCode: HookCodeInsert) => Promise<HookCode>;
|
|
11186
|
+
create: (tenant_id: string, hookCode: HookCodeInsert, options?: CreateOptions) => Promise<HookCode>;
|
|
11148
11187
|
get: (tenant_id: string, id: string) => Promise<HookCode | null>;
|
|
11149
11188
|
update: (tenant_id: string, id: string, hookCode: Partial<HookCodeInsert>) => Promise<boolean>;
|
|
11150
11189
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
11151
11190
|
}
|
|
11152
11191
|
|
|
11153
11192
|
interface ThemesAdapter {
|
|
11154
|
-
|
|
11193
|
+
/**
|
|
11194
|
+
* Single source of truth for the new row's id: `options.importMetadata.id`
|
|
11195
|
+
* takes precedence, then the positional `themeId`, then a generated id. Every
|
|
11196
|
+
* adapter must honor this same precedence so imports preserve source ids
|
|
11197
|
+
* regardless of backend.
|
|
11198
|
+
*/
|
|
11199
|
+
create: (tenant_id: string, theme: ThemeInsert, themeId?: string, options?: CreateOptions) => Promise<Theme>;
|
|
11155
11200
|
remove: (tenant_id: string, themeId: string) => Promise<boolean>;
|
|
11156
11201
|
get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
|
|
11202
|
+
list: (tenant_id: string) => Promise<Theme[]>;
|
|
11157
11203
|
update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
|
|
11158
11204
|
}
|
|
11159
11205
|
|
|
@@ -11181,7 +11227,7 @@ interface ListProxyRoutesResult {
|
|
|
11181
11227
|
length: number;
|
|
11182
11228
|
}
|
|
11183
11229
|
interface ProxyRoutesAdapter {
|
|
11184
|
-
create(tenant_id: string, route: ProxyRouteInsert): Promise<ProxyRoute>;
|
|
11230
|
+
create(tenant_id: string, route: ProxyRouteInsert, options?: CreateOptions): Promise<ProxyRoute>;
|
|
11185
11231
|
get(tenant_id: string, id: string): Promise<ProxyRoute | null>;
|
|
11186
11232
|
list(tenant_id: string, params?: ListProxyRoutesParams): Promise<ListProxyRoutesResult>;
|
|
11187
11233
|
update(tenant_id: string, id: string, route: ProxyRouteUpdate): Promise<boolean>;
|
|
@@ -11190,7 +11236,7 @@ interface ProxyRoutesAdapter {
|
|
|
11190
11236
|
|
|
11191
11237
|
interface EmailProvidersAdapter {
|
|
11192
11238
|
update: (tenant_id: string, emailProvider: Partial<EmailProvider>) => Promise<void>;
|
|
11193
|
-
create: (tenant_id: string, emailProvider: EmailProvider) => Promise<void>;
|
|
11239
|
+
create: (tenant_id: string, emailProvider: EmailProvider, options?: CreateOptions) => Promise<void>;
|
|
11194
11240
|
get: (tenant_id: string) => Promise<EmailProvider | null>;
|
|
11195
11241
|
remove: (tenant_id: string) => Promise<void>;
|
|
11196
11242
|
}
|
|
@@ -11198,7 +11244,7 @@ interface EmailProvidersAdapter {
|
|
|
11198
11244
|
interface EmailTemplatesAdapter {
|
|
11199
11245
|
get: (tenant_id: string, templateName: EmailTemplateName) => Promise<EmailTemplate | null>;
|
|
11200
11246
|
list: (tenant_id: string) => Promise<EmailTemplate[]>;
|
|
11201
|
-
create: (tenant_id: string, template: EmailTemplate) => Promise<EmailTemplate>;
|
|
11247
|
+
create: (tenant_id: string, template: EmailTemplate, options?: CreateOptions) => Promise<EmailTemplate>;
|
|
11202
11248
|
update: (tenant_id: string, templateName: EmailTemplateName, template: Partial<EmailTemplate>) => Promise<boolean>;
|
|
11203
11249
|
remove: (tenant_id: string, templateName: EmailTemplateName) => Promise<boolean>;
|
|
11204
11250
|
}
|
|
@@ -11243,7 +11289,7 @@ interface ListFormsResponse extends Totals {
|
|
|
11243
11289
|
forms: Form[];
|
|
11244
11290
|
}
|
|
11245
11291
|
interface FormsAdapter {
|
|
11246
|
-
create(tenant_id: string, params: FormInsert): Promise<Form>;
|
|
11292
|
+
create(tenant_id: string, params: FormInsert, options?: CreateOptions): Promise<Form>;
|
|
11247
11293
|
get(tenant_id: string, form_id: string): Promise<Form | null>;
|
|
11248
11294
|
remove(tenant_id: string, form_id: string): Promise<boolean>;
|
|
11249
11295
|
update(tenant_id: string, form_id: string, form: Partial<FormInsert>): Promise<boolean>;
|
|
@@ -11254,7 +11300,7 @@ interface ListResourceServersResponse extends Totals {
|
|
|
11254
11300
|
resource_servers: ResourceServer[];
|
|
11255
11301
|
}
|
|
11256
11302
|
interface ResourceServersAdapter {
|
|
11257
|
-
create(tenant_id: string, params: ResourceServerInsert): Promise<ResourceServer>;
|
|
11303
|
+
create(tenant_id: string, params: ResourceServerInsert, options?: CreateOptions): Promise<ResourceServer>;
|
|
11258
11304
|
get(tenant_id: string, id: string): Promise<ResourceServer | null>;
|
|
11259
11305
|
list(tenant_id: string, params?: ListParams): Promise<ListResourceServersResponse>;
|
|
11260
11306
|
update(tenant_id: string, id: string, resourceServer: Partial<ResourceServerInsert>): Promise<boolean>;
|
|
@@ -11262,7 +11308,7 @@ interface ResourceServersAdapter {
|
|
|
11262
11308
|
}
|
|
11263
11309
|
|
|
11264
11310
|
interface RolePermissionsAdapter {
|
|
11265
|
-
assign(tenant_id: string, role_id: string, permissions: RolePermissionInsert[]): Promise<boolean>;
|
|
11311
|
+
assign(tenant_id: string, role_id: string, permissions: RolePermissionInsert[], options?: CreateOptions): Promise<boolean>;
|
|
11266
11312
|
remove(tenant_id: string, role_id: string, permissions: Pick<RolePermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
|
|
11267
11313
|
list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionList>;
|
|
11268
11314
|
}
|
|
@@ -11284,7 +11330,7 @@ interface GrantsAdapter {
|
|
|
11284
11330
|
}
|
|
11285
11331
|
|
|
11286
11332
|
interface UserPermissionsAdapter {
|
|
11287
|
-
create(tenant_id: string, user_id: string, permission: UserPermissionInsert, organization_id?: string): Promise<boolean>;
|
|
11333
|
+
create(tenant_id: string, user_id: string, permission: UserPermissionInsert, organization_id?: string, options?: CreateOptions): Promise<boolean>;
|
|
11288
11334
|
remove(tenant_id: string, user_id: string, permission: Pick<UserPermissionInsert, "resource_server_identifier" | "permission_name">, organization_id?: string): Promise<boolean>;
|
|
11289
11335
|
list(tenant_id: string, user_id: string, params?: ListParams, organization_id?: string): Promise<UserPermissionWithDetailsList>;
|
|
11290
11336
|
}
|
|
@@ -11293,7 +11339,7 @@ interface ListRolesResponse extends Totals {
|
|
|
11293
11339
|
roles: Role[];
|
|
11294
11340
|
}
|
|
11295
11341
|
interface RolesAdapter {
|
|
11296
|
-
create(tenantId: string, role: RoleInsert): Promise<Role>;
|
|
11342
|
+
create(tenantId: string, role: RoleInsert, options?: CreateOptions): Promise<Role>;
|
|
11297
11343
|
get(tenantId: string, roleId: string): Promise<Role | null>;
|
|
11298
11344
|
list(tenantId: string, params?: ListParams): Promise<ListRolesResponse>;
|
|
11299
11345
|
update(tenantId: string, roleId: string, updates: Partial<Role>): Promise<boolean>;
|
|
@@ -11308,7 +11354,7 @@ interface ListUserRolesResponse {
|
|
|
11308
11354
|
}
|
|
11309
11355
|
interface UserRolesAdapter {
|
|
11310
11356
|
list(tenantId: string, userId: string, params?: ListParams, organizationId?: string): Promise<Role[]>;
|
|
11311
|
-
create(tenantId: string, userId: string, roleId: string, organizationId?: string): Promise<boolean>;
|
|
11357
|
+
create(tenantId: string, userId: string, roleId: string, organizationId?: string, options?: CreateOptions): Promise<boolean>;
|
|
11312
11358
|
remove(tenantId: string, userId: string, roleId: string, organizationId?: string): Promise<boolean>;
|
|
11313
11359
|
}
|
|
11314
11360
|
|
|
@@ -11316,7 +11362,7 @@ interface ListOrganizationsResponse extends Totals {
|
|
|
11316
11362
|
organizations: Organization[];
|
|
11317
11363
|
}
|
|
11318
11364
|
interface OrganizationsAdapter {
|
|
11319
|
-
create(tenant_id: string, params: OrganizationInsert): Promise<Organization>;
|
|
11365
|
+
create(tenant_id: string, params: OrganizationInsert, options?: CreateOptions): Promise<Organization>;
|
|
11320
11366
|
get(tenant_id: string, id: string): Promise<Organization | null>;
|
|
11321
11367
|
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
11322
11368
|
list(tenant_id: string, params?: ListParams): Promise<ListOrganizationsResponse>;
|
|
@@ -11324,7 +11370,7 @@ interface OrganizationsAdapter {
|
|
|
11324
11370
|
}
|
|
11325
11371
|
|
|
11326
11372
|
interface OrganizationConnectionsAdapter {
|
|
11327
|
-
create(tenant_id: string, organization_id: string, params: OrganizationConnectionInsert): Promise<OrganizationConnection>;
|
|
11373
|
+
create(tenant_id: string, organization_id: string, params: OrganizationConnectionInsert, options?: CreateOptions): Promise<OrganizationConnection>;
|
|
11328
11374
|
list(tenant_id: string, organization_id: string): Promise<OrganizationConnection[]>;
|
|
11329
11375
|
get(tenant_id: string, organization_id: string, connection_id: string): Promise<OrganizationConnection | null>;
|
|
11330
11376
|
update(tenant_id: string, organization_id: string, connection_id: string, params: Partial<Omit<OrganizationConnectionInsert, "connection_id">>): Promise<OrganizationConnection | null>;
|
|
@@ -11332,7 +11378,7 @@ interface OrganizationConnectionsAdapter {
|
|
|
11332
11378
|
}
|
|
11333
11379
|
|
|
11334
11380
|
interface UserOrganizationsAdapter {
|
|
11335
|
-
create(tenantId: string, params: UserOrganizationInsert): Promise<UserOrganization>;
|
|
11381
|
+
create(tenantId: string, params: UserOrganizationInsert, options?: CreateOptions): Promise<UserOrganization>;
|
|
11336
11382
|
get(tenantId: string, id: string): Promise<UserOrganization | null>;
|
|
11337
11383
|
remove(tenantId: string, id: string): Promise<boolean>;
|
|
11338
11384
|
/**
|
|
@@ -11359,7 +11405,7 @@ interface ListInvitesResponse extends Totals {
|
|
|
11359
11405
|
invites: Invite[];
|
|
11360
11406
|
}
|
|
11361
11407
|
interface InvitesAdapter {
|
|
11362
|
-
create(tenant_id: string, params: InviteInsert): Promise<Invite>;
|
|
11408
|
+
create(tenant_id: string, params: InviteInsert, options?: CreateOptions): Promise<Invite>;
|
|
11363
11409
|
get(tenant_id: string, id: string): Promise<Invite | null>;
|
|
11364
11410
|
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
11365
11411
|
list(tenant_id: string, params?: ListParams): Promise<ListInvitesResponse>;
|
|
@@ -11384,7 +11430,7 @@ interface GeoAdapter {
|
|
|
11384
11430
|
}
|
|
11385
11431
|
|
|
11386
11432
|
interface AuthenticationMethodsAdapter {
|
|
11387
|
-
create: (tenant_id: string, method: AuthenticationMethodInsert) => Promise<AuthenticationMethod>;
|
|
11433
|
+
create: (tenant_id: string, method: AuthenticationMethodInsert, options?: CreateOptions) => Promise<AuthenticationMethod>;
|
|
11388
11434
|
get: (tenant_id: string, method_id: string) => Promise<AuthenticationMethod | null>;
|
|
11389
11435
|
getByCredentialId: (tenant_id: string, credential_id: string) => Promise<AuthenticationMethod | null>;
|
|
11390
11436
|
list: (tenant_id: string, user_id: string) => Promise<AuthenticationMethod[]>;
|
|
@@ -11421,7 +11467,7 @@ interface UniversalLoginTemplate {
|
|
|
11421
11467
|
}
|
|
11422
11468
|
interface UniversalLoginTemplatesAdapter {
|
|
11423
11469
|
get: (tenant_id: string) => Promise<UniversalLoginTemplate | null>;
|
|
11424
|
-
set: (tenant_id: string, template: UniversalLoginTemplate) => Promise<void>;
|
|
11470
|
+
set: (tenant_id: string, template: UniversalLoginTemplate, options?: CreateOptions) => Promise<void>;
|
|
11425
11471
|
delete: (tenant_id: string) => Promise<void>;
|
|
11426
11472
|
}
|
|
11427
11473
|
|
|
@@ -11433,7 +11479,7 @@ interface CustomTextAdapter {
|
|
|
11433
11479
|
/**
|
|
11434
11480
|
* Set custom text for a specific prompt screen and language
|
|
11435
11481
|
*/
|
|
11436
|
-
set: (tenant_id: string, prompt: PromptScreen, language: string, customText: CustomText) => Promise<void>;
|
|
11482
|
+
set: (tenant_id: string, prompt: PromptScreen, language: string, customText: CustomText, options?: CreateOptions) => Promise<void>;
|
|
11437
11483
|
/**
|
|
11438
11484
|
* Delete custom text for a specific prompt screen and language
|
|
11439
11485
|
*/
|
|
@@ -11760,5 +11806,5 @@ interface DataAdapters {
|
|
|
11760
11806
|
};
|
|
11761
11807
|
}
|
|
11762
11808
|
|
|
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 };
|
|
11809
|
+
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 };
|
|
11810
|
+
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 };
|
|
@@ -2520,7 +2520,12 @@ var tr = e.object({
|
|
|
2520
2520
|
"logins",
|
|
2521
2521
|
"signups",
|
|
2522
2522
|
"refresh-tokens",
|
|
2523
|
-
"sessions"
|
|
2523
|
+
"sessions",
|
|
2524
|
+
"logouts",
|
|
2525
|
+
"password-changes",
|
|
2526
|
+
"mfa",
|
|
2527
|
+
"email-verifications",
|
|
2528
|
+
"codes-sent"
|
|
2524
2529
|
]), ti = e.enum([
|
|
2525
2530
|
"hour",
|
|
2526
2531
|
"day",
|
|
@@ -2628,10 +2633,14 @@ var hi = pi.superRefine(mi), gi = pi.extend({
|
|
|
2628
2633
|
id: e.string(),
|
|
2629
2634
|
created_at: e.string(),
|
|
2630
2635
|
updated_at: e.string()
|
|
2631
|
-
}).superRefine(mi)
|
|
2636
|
+
}).superRefine(mi), _i = e.object({
|
|
2637
|
+
id: e.string().optional(),
|
|
2638
|
+
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2639
|
+
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2640
|
+
});
|
|
2632
2641
|
//#endregion
|
|
2633
2642
|
//#region src/utils/user-id.ts
|
|
2634
|
-
function
|
|
2643
|
+
function vi(e) {
|
|
2635
2644
|
let [t, n] = e.split("|");
|
|
2636
2645
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2637
2646
|
return {
|
|
@@ -2641,7 +2650,7 @@ function _i(e) {
|
|
|
2641
2650
|
}
|
|
2642
2651
|
//#endregion
|
|
2643
2652
|
//#region src/utils/passthrough.ts
|
|
2644
|
-
function
|
|
2653
|
+
function yi(e) {
|
|
2645
2654
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2646
2655
|
"create",
|
|
2647
2656
|
"rawCreate",
|
|
@@ -2675,12 +2684,12 @@ function vi(e) {
|
|
|
2675
2684
|
} : i.bind(e) : i;
|
|
2676
2685
|
} });
|
|
2677
2686
|
}
|
|
2678
|
-
function
|
|
2687
|
+
function bi(e) {
|
|
2679
2688
|
return e;
|
|
2680
2689
|
}
|
|
2681
2690
|
//#endregion
|
|
2682
2691
|
//#region src/utils/connection-attributes.ts
|
|
2683
|
-
function
|
|
2692
|
+
function xi(e) {
|
|
2684
2693
|
let t = e?.options;
|
|
2685
2694
|
if (!t) return {
|
|
2686
2695
|
usernameIdentifierActive: !1,
|
|
@@ -2703,8 +2712,8 @@ function bi(e) {
|
|
|
2703
2712
|
}
|
|
2704
2713
|
//#endregion
|
|
2705
2714
|
//#region src/utils/guards.ts
|
|
2706
|
-
function
|
|
2715
|
+
function Si(e) {
|
|
2707
2716
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2708
2717
|
}
|
|
2709
2718
|
//#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,
|
|
2719
|
+
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 };
|