@authhero/adapter-interfaces 4.11.0 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +293 -16
- package/dist/adapter-interfaces.mjs +718 -663
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/TenantOperationRows.d.ts +57 -0
- package/dist/types/adapters/TenantOperations.d.ts +30 -0
- package/dist/types/adapters/index.d.ts +8 -0
- package/dist/types/types/Action.d.ts +40 -0
- package/dist/types/types/Code.d.ts +5 -2
- package/dist/types/types/TenantOperation.d.ts +28 -12
- package/dist/types/types/TenantOperationRow.d.ts +86 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/utils/feature-not-supported.d.ts +26 -0
- package/dist/types/utils/http.d.ts +12 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -86,6 +86,46 @@ declare const actionSchema: z.ZodObject<{
|
|
|
86
86
|
updated_at: z.ZodString;
|
|
87
87
|
}, z.core.$strip>;
|
|
88
88
|
type Action = z.infer<typeof actionSchema>;
|
|
89
|
+
/** A secret as it appears in an API response — name only, never the value. */
|
|
90
|
+
declare const actionSecretNameSchema: z.ZodObject<{
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
/**
|
|
94
|
+
* The action shape safe to return over HTTP.
|
|
95
|
+
*
|
|
96
|
+
* Identical to {@link actionSchema} except that secrets are narrowed to their
|
|
97
|
+
* names, so a secret value cannot leak through a management-API response —
|
|
98
|
+
* the route handlers already redact at runtime, and this makes the type
|
|
99
|
+
* system enforce it rather than relying on every handler remembering.
|
|
100
|
+
*/
|
|
101
|
+
declare const actionResponseSchema: z.ZodObject<{
|
|
102
|
+
name: z.ZodString;
|
|
103
|
+
code: z.ZodString;
|
|
104
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
version: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>>>;
|
|
108
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
109
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
version: z.ZodString;
|
|
112
|
+
}, z.core.$strip>>>;
|
|
113
|
+
is_system: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
inherit: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
tenant_id: z.ZodString;
|
|
117
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
118
|
+
draft: "draft";
|
|
119
|
+
built: "built";
|
|
120
|
+
}>>;
|
|
121
|
+
deployed_at: z.ZodOptional<z.ZodString>;
|
|
122
|
+
created_at: z.ZodString;
|
|
123
|
+
updated_at: z.ZodString;
|
|
124
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
}, z.core.$strip>>>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
type ActionResponse = z.infer<typeof actionResponseSchema>;
|
|
89
129
|
|
|
90
130
|
declare const actionExecutionTriggerIdSchema: z.ZodString;
|
|
91
131
|
declare const actionExecutionStatusSchema: z.ZodEnum<{
|
|
@@ -2076,11 +2116,12 @@ declare const codeTypeSchema: z.ZodEnum<{
|
|
|
2076
2116
|
authorization_code: "authorization_code";
|
|
2077
2117
|
oauth2_state: "oauth2_state";
|
|
2078
2118
|
ticket: "ticket";
|
|
2119
|
+
client_assertion_jti: "client_assertion_jti";
|
|
2079
2120
|
}>;
|
|
2080
2121
|
type CodeType = z.infer<typeof codeTypeSchema>;
|
|
2081
2122
|
declare const codeInsertSchema: z.ZodObject<{
|
|
2082
2123
|
code_id: z.ZodString;
|
|
2083
|
-
login_id: z.ZodString
|
|
2124
|
+
login_id: z.ZodOptional<z.ZodString>;
|
|
2084
2125
|
connection_id: z.ZodOptional<z.ZodString>;
|
|
2085
2126
|
code_type: z.ZodEnum<{
|
|
2086
2127
|
password_reset: "password_reset";
|
|
@@ -2090,6 +2131,7 @@ declare const codeInsertSchema: z.ZodObject<{
|
|
|
2090
2131
|
authorization_code: "authorization_code";
|
|
2091
2132
|
oauth2_state: "oauth2_state";
|
|
2092
2133
|
ticket: "ticket";
|
|
2134
|
+
client_assertion_jti: "client_assertion_jti";
|
|
2093
2135
|
}>;
|
|
2094
2136
|
code_verifier: z.ZodOptional<z.ZodString>;
|
|
2095
2137
|
code_challenge: z.ZodOptional<z.ZodString>;
|
|
@@ -2108,7 +2150,7 @@ declare const codeInsertSchema: z.ZodObject<{
|
|
|
2108
2150
|
type CodeInsert = z.infer<typeof codeInsertSchema>;
|
|
2109
2151
|
declare const codeSchema: z.ZodObject<{
|
|
2110
2152
|
code_id: z.ZodString;
|
|
2111
|
-
login_id: z.ZodString
|
|
2153
|
+
login_id: z.ZodOptional<z.ZodString>;
|
|
2112
2154
|
connection_id: z.ZodOptional<z.ZodString>;
|
|
2113
2155
|
code_type: z.ZodEnum<{
|
|
2114
2156
|
password_reset: "password_reset";
|
|
@@ -2118,6 +2160,7 @@ declare const codeSchema: z.ZodObject<{
|
|
|
2118
2160
|
authorization_code: "authorization_code";
|
|
2119
2161
|
oauth2_state: "oauth2_state";
|
|
2120
2162
|
ticket: "ticket";
|
|
2163
|
+
client_assertion_jti: "client_assertion_jti";
|
|
2121
2164
|
}>;
|
|
2122
2165
|
code_verifier: z.ZodOptional<z.ZodString>;
|
|
2123
2166
|
code_challenge: z.ZodOptional<z.ZodString>;
|
|
@@ -9517,6 +9560,7 @@ declare const tenantOperationKindSchema: z.ZodEnum<{
|
|
|
9517
9560
|
upgrade: "upgrade";
|
|
9518
9561
|
backup: "backup";
|
|
9519
9562
|
deprovision: "deprovision";
|
|
9563
|
+
users_import: "users_import";
|
|
9520
9564
|
}>;
|
|
9521
9565
|
type TenantOperationKind = z.infer<typeof tenantOperationKindSchema>;
|
|
9522
9566
|
declare const tenantOperationStatusSchema: z.ZodEnum<{
|
|
@@ -9527,11 +9571,22 @@ declare const tenantOperationStatusSchema: z.ZodEnum<{
|
|
|
9527
9571
|
cancelled: "cancelled";
|
|
9528
9572
|
}>;
|
|
9529
9573
|
type TenantOperationStatus = z.infer<typeof tenantOperationStatusSchema>;
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9574
|
+
/**
|
|
9575
|
+
* Which driver advances an operation. Deliberately an open string, not an
|
|
9576
|
+
* enum: the engine name is recorded in a core database column, so closing
|
|
9577
|
+
* it here would bake vendor names into the schema and lock out
|
|
9578
|
+
* self-hosters running their own driver (pg-boss, BullMQ, SQS, a plain
|
|
9579
|
+
* cron). The values AuthHero ships are {@link KNOWN_TENANT_OPERATION_ENGINES}.
|
|
9580
|
+
*
|
|
9581
|
+
* Durability never depends on this value. Operation progress is checkpointed
|
|
9582
|
+
* in the database (for `users_import`, one `tenant_operation_rows` row per
|
|
9583
|
+
* user), so a crashed driver loses nothing and any other driver can resume
|
|
9584
|
+
* the work.
|
|
9585
|
+
*/
|
|
9586
|
+
declare const tenantOperationEngineSchema: z.ZodString;
|
|
9534
9587
|
type TenantOperationEngine = z.infer<typeof tenantOperationEngineSchema>;
|
|
9588
|
+
/** Engines AuthHero ships. Not exhaustive — the column accepts any name. */
|
|
9589
|
+
declare const KNOWN_TENANT_OPERATION_ENGINES: readonly ["inline", "cloudflare-workflows"];
|
|
9535
9590
|
declare const tenantOperationInsertSchema: z.ZodObject<{
|
|
9536
9591
|
tenant_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9537
9592
|
rollout_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -9541,15 +9596,14 @@ declare const tenantOperationInsertSchema: z.ZodObject<{
|
|
|
9541
9596
|
upgrade: "upgrade";
|
|
9542
9597
|
backup: "backup";
|
|
9543
9598
|
deprovision: "deprovision";
|
|
9599
|
+
users_import: "users_import";
|
|
9544
9600
|
}>;
|
|
9545
|
-
engine: z.
|
|
9546
|
-
inline: "inline";
|
|
9547
|
-
"cloudflare-workflows": "cloudflare-workflows";
|
|
9548
|
-
}>;
|
|
9601
|
+
engine: z.ZodString;
|
|
9549
9602
|
engine_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9550
9603
|
target_worker_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9551
9604
|
target_database_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9552
9605
|
initiated_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9606
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9553
9607
|
}, z.core.$strip>;
|
|
9554
9608
|
type TenantOperationInsert = z.input<typeof tenantOperationInsertSchema>;
|
|
9555
9609
|
declare const tenantOperationSchema: z.ZodObject<{
|
|
@@ -9561,15 +9615,14 @@ declare const tenantOperationSchema: z.ZodObject<{
|
|
|
9561
9615
|
upgrade: "upgrade";
|
|
9562
9616
|
backup: "backup";
|
|
9563
9617
|
deprovision: "deprovision";
|
|
9618
|
+
users_import: "users_import";
|
|
9564
9619
|
}>;
|
|
9565
|
-
engine: z.
|
|
9566
|
-
inline: "inline";
|
|
9567
|
-
"cloudflare-workflows": "cloudflare-workflows";
|
|
9568
|
-
}>;
|
|
9620
|
+
engine: z.ZodString;
|
|
9569
9621
|
engine_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9570
9622
|
target_worker_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9571
9623
|
target_database_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9572
9624
|
initiated_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9625
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9573
9626
|
id: z.ZodString;
|
|
9574
9627
|
status: z.ZodEnum<{
|
|
9575
9628
|
pending: "pending";
|
|
@@ -9580,6 +9633,9 @@ declare const tenantOperationSchema: z.ZodObject<{
|
|
|
9580
9633
|
}>;
|
|
9581
9634
|
current_step: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9582
9635
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9636
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9637
|
+
claimed_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9638
|
+
claim_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9583
9639
|
created_at: z.ZodString;
|
|
9584
9640
|
updated_at: z.ZodString;
|
|
9585
9641
|
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -9598,6 +9654,9 @@ declare const tenantOperationUpdateSchema: z.ZodObject<{
|
|
|
9598
9654
|
target_worker_version: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
9599
9655
|
target_database_version: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
9600
9656
|
current_step: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
9657
|
+
result: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
9658
|
+
claimed_by: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
9659
|
+
claim_expires_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
9601
9660
|
finished_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
9602
9661
|
}, z.core.$strip>;
|
|
9603
9662
|
type TenantOperationUpdate = z.infer<typeof tenantOperationUpdateSchema>;
|
|
@@ -9650,6 +9709,92 @@ declare const tenantOperationEventSchema: z.ZodObject<{
|
|
|
9650
9709
|
}, z.core.$strip>;
|
|
9651
9710
|
type TenantOperationEvent = z.infer<typeof tenantOperationEventSchema>;
|
|
9652
9711
|
|
|
9712
|
+
/**
|
|
9713
|
+
* Per-item checkpoint for a batch tenant operation (issue #1325).
|
|
9714
|
+
*
|
|
9715
|
+
* One row per item in the operation's input — for `users_import`, one per
|
|
9716
|
+
* user in the uploaded file. This table is what makes a batch operation
|
|
9717
|
+
* durable and resumable: an item is staged as `pending`, and its terminal
|
|
9718
|
+
* status is committed in the same chunk that performs the write. A driver
|
|
9719
|
+
* that dies mid-run leaves its unprocessed items `pending`, so any other
|
|
9720
|
+
* driver (a cron sweep, a workflow step, a later request) resumes exactly
|
|
9721
|
+
* where it stopped, without re-doing committed work.
|
|
9722
|
+
*
|
|
9723
|
+
* Durability therefore does not depend on the execution engine — engines
|
|
9724
|
+
* only decide *who* advances the operation and *how fast*.
|
|
9725
|
+
*/
|
|
9726
|
+
declare const tenantOperationRowStatusSchema: z.ZodEnum<{
|
|
9727
|
+
pending: "pending";
|
|
9728
|
+
failed: "failed";
|
|
9729
|
+
skipped: "skipped";
|
|
9730
|
+
inserted: "inserted";
|
|
9731
|
+
updated: "updated";
|
|
9732
|
+
}>;
|
|
9733
|
+
type TenantOperationRowStatus = z.infer<typeof tenantOperationRowStatusSchema>;
|
|
9734
|
+
/** Terminal statuses — a row in any of these is never reprocessed. */
|
|
9735
|
+
declare const TERMINAL_TENANT_OPERATION_ROW_STATUSES: readonly TenantOperationRowStatus[];
|
|
9736
|
+
declare const tenantOperationRowInsertSchema: z.ZodObject<{
|
|
9737
|
+
operation_id: z.ZodString;
|
|
9738
|
+
seq: z.ZodNumber;
|
|
9739
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9740
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
9741
|
+
pending: "pending";
|
|
9742
|
+
failed: "failed";
|
|
9743
|
+
skipped: "skipped";
|
|
9744
|
+
inserted: "inserted";
|
|
9745
|
+
updated: "updated";
|
|
9746
|
+
}>>;
|
|
9747
|
+
error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9748
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9749
|
+
error_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9750
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9751
|
+
}, z.core.$strip>;
|
|
9752
|
+
type TenantOperationRowInsert = z.input<typeof tenantOperationRowInsertSchema>;
|
|
9753
|
+
declare const tenantOperationRowSchema: z.ZodObject<{
|
|
9754
|
+
operation_id: z.ZodString;
|
|
9755
|
+
seq: z.ZodNumber;
|
|
9756
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9757
|
+
error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9758
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9759
|
+
error_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9760
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9761
|
+
status: z.ZodEnum<{
|
|
9762
|
+
pending: "pending";
|
|
9763
|
+
failed: "failed";
|
|
9764
|
+
skipped: "skipped";
|
|
9765
|
+
inserted: "inserted";
|
|
9766
|
+
updated: "updated";
|
|
9767
|
+
}>;
|
|
9768
|
+
created_at: z.ZodString;
|
|
9769
|
+
updated_at: z.ZodString;
|
|
9770
|
+
}, z.core.$strip>;
|
|
9771
|
+
type TenantOperationRow = z.infer<typeof tenantOperationRowSchema>;
|
|
9772
|
+
/** The per-item outcome a processor reports back for one staged row. */
|
|
9773
|
+
declare const tenantOperationRowOutcomeSchema: z.ZodObject<{
|
|
9774
|
+
seq: z.ZodNumber;
|
|
9775
|
+
status: z.ZodEnum<{
|
|
9776
|
+
pending: "pending";
|
|
9777
|
+
failed: "failed";
|
|
9778
|
+
skipped: "skipped";
|
|
9779
|
+
inserted: "inserted";
|
|
9780
|
+
updated: "updated";
|
|
9781
|
+
}>;
|
|
9782
|
+
error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9783
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9784
|
+
error_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9785
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9786
|
+
}, z.core.$strip>;
|
|
9787
|
+
type TenantOperationRowOutcome = z.infer<typeof tenantOperationRowOutcomeSchema>;
|
|
9788
|
+
/** Count of rows in each status, used to build a job summary. */
|
|
9789
|
+
interface TenantOperationRowCounts {
|
|
9790
|
+
total: number;
|
|
9791
|
+
pending: number;
|
|
9792
|
+
inserted: number;
|
|
9793
|
+
updated: number;
|
|
9794
|
+
failed: number;
|
|
9795
|
+
skipped: number;
|
|
9796
|
+
}
|
|
9797
|
+
|
|
9653
9798
|
/**
|
|
9654
9799
|
* Fleet operation coordinating per-tenant operations in waves with a canary
|
|
9655
9800
|
* and a health gate (issue #1026). Progress is derived by querying
|
|
@@ -11325,6 +11470,19 @@ declare function parseUserId(user_id: string): {
|
|
|
11325
11470
|
id: string;
|
|
11326
11471
|
};
|
|
11327
11472
|
|
|
11473
|
+
/**
|
|
11474
|
+
* Response header stamped by the authhero control plane on its deliberate
|
|
11475
|
+
* cross-host 302s — the `/authorize/resume` hop that sends the browser back
|
|
11476
|
+
* to the host that served the original `/authorize` request so the session
|
|
11477
|
+
* cookie lands on the right domain.
|
|
11478
|
+
*
|
|
11479
|
+
* Location-rewriting proxies (e.g. `@authhero/proxy`'s `rewrite_location`
|
|
11480
|
+
* handler) must leave a marked Location untouched — rewriting it back onto
|
|
11481
|
+
* the request host turns the hop into an infinite redirect loop — and strip
|
|
11482
|
+
* the marker before the response reaches the browser.
|
|
11483
|
+
*/
|
|
11484
|
+
declare const PRESERVE_LOCATION_HEADER = "x-authhero-preserve-location";
|
|
11485
|
+
|
|
11328
11486
|
/**
|
|
11329
11487
|
* Configuration for a secondary adapter in passthrough mode.
|
|
11330
11488
|
*/
|
|
@@ -11628,6 +11786,33 @@ interface UsernameLengthBounds {
|
|
|
11628
11786
|
*/
|
|
11629
11787
|
declare function validateUsername(username: string, bounds?: UsernameLengthBounds): string | null;
|
|
11630
11788
|
|
|
11789
|
+
/**
|
|
11790
|
+
* Thrown by an adapter when a backend cannot implement a feature at all —
|
|
11791
|
+
* as opposed to a transient failure or a bad request.
|
|
11792
|
+
*
|
|
11793
|
+
* Adapters are free to leave parts of the surface unimplemented (the AWS
|
|
11794
|
+
* DynamoDB adapter has no Actions support, for example). Throwing this
|
|
11795
|
+
* instead of a plain `Error` lets HTTP callers recognise the gap and map it
|
|
11796
|
+
* to `501 Not Implemented` rather than a generic `500`.
|
|
11797
|
+
*/
|
|
11798
|
+
declare class FeatureNotSupportedError extends Error {
|
|
11799
|
+
/** The feature that is missing, e.g. `"actions"`. */
|
|
11800
|
+
readonly feature: string;
|
|
11801
|
+
/** The adapter that does not support it, e.g. `"aws-dynamodb"`. */
|
|
11802
|
+
readonly adapter: string;
|
|
11803
|
+
constructor(feature: string, adapter: string,
|
|
11804
|
+
/** Optional extra context appended to the message. */
|
|
11805
|
+
details?: string);
|
|
11806
|
+
}
|
|
11807
|
+
/**
|
|
11808
|
+
* Narrows an unknown thrown value to a {@link FeatureNotSupportedError}.
|
|
11809
|
+
*
|
|
11810
|
+
* Uses the `name` rather than `instanceof` so it keeps working across module
|
|
11811
|
+
* instances (a bundled adapter and the host can carry separate copies of the
|
|
11812
|
+
* class).
|
|
11813
|
+
*/
|
|
11814
|
+
declare function isFeatureNotSupportedError(error: unknown): error is FeatureNotSupportedError;
|
|
11815
|
+
|
|
11631
11816
|
interface ListActionsResponse extends Totals {
|
|
11632
11817
|
actions: Action[];
|
|
11633
11818
|
}
|
|
@@ -12599,6 +12784,36 @@ interface TenantOperationsAdapter {
|
|
|
12599
12784
|
list(params?: ListTenantOperationsParams): Promise<ListTenantOperationsResult>;
|
|
12600
12785
|
/** Always bumps `updated_at`. */
|
|
12601
12786
|
update(id: string, operation: TenantOperationUpdate): Promise<boolean>;
|
|
12787
|
+
/**
|
|
12788
|
+
* Atomically take the lease on an operation so only one driver advances
|
|
12789
|
+
* it at a time. Succeeds when the operation is unclaimed or its existing
|
|
12790
|
+
* lease has expired (or is already held by `worker_id`, making re-claim
|
|
12791
|
+
* by the same worker a no-op); returns false when another live worker
|
|
12792
|
+
* holds it.
|
|
12793
|
+
*
|
|
12794
|
+
* The lease is an efficiency guard, not a correctness guard — per-item
|
|
12795
|
+
* checkpoints in `tenant_operation_rows` are what keep a batch operation
|
|
12796
|
+
* correct if two drivers ever overlap. Implementations MUST perform the
|
|
12797
|
+
* check and the write in a single conditional statement.
|
|
12798
|
+
*/
|
|
12799
|
+
claim(id: string, worker_id: string, leaseMs: number): Promise<boolean>;
|
|
12800
|
+
/**
|
|
12801
|
+
* Release a lease held by `worker_id`. Returns false when the lease has
|
|
12802
|
+
* since been taken by someone else, in which case the caller must not
|
|
12803
|
+
* assume its own writes were the last ones.
|
|
12804
|
+
*/
|
|
12805
|
+
release(id: string, worker_id: string): Promise<boolean>;
|
|
12806
|
+
/**
|
|
12807
|
+
* Operations that still have work to do and are free to be picked up:
|
|
12808
|
+
* status `pending` or `running`, matching `kind`, whose lease is absent
|
|
12809
|
+
* or expired. Ordered `created_at` ascending so the oldest unfinished
|
|
12810
|
+
* work drains first. Backs the resume sweep that guarantees a batch
|
|
12811
|
+
* completes even when every driver that touched it died.
|
|
12812
|
+
*/
|
|
12813
|
+
listResumable(params: {
|
|
12814
|
+
kind: TenantOperationKind;
|
|
12815
|
+
limit: number;
|
|
12816
|
+
}): Promise<TenantOperation[]>;
|
|
12602
12817
|
/** Retention cleanup only — not exposed via routes; events cascade. */
|
|
12603
12818
|
remove(id: string): Promise<boolean>;
|
|
12604
12819
|
}
|
|
@@ -12620,6 +12835,62 @@ interface TenantOperationEventsAdapter {
|
|
|
12620
12835
|
listByOperation(operation_id: string, params?: ListParams): Promise<ListTenantOperationEventsResult>;
|
|
12621
12836
|
}
|
|
12622
12837
|
|
|
12838
|
+
interface ListTenantOperationRowsParams extends ListParams {
|
|
12839
|
+
/** Single status or a set (the errors endpoint queries `failed`). */
|
|
12840
|
+
status?: TenantOperationRowStatus | TenantOperationRowStatus[];
|
|
12841
|
+
}
|
|
12842
|
+
interface ListTenantOperationRowsResult {
|
|
12843
|
+
rows: TenantOperationRow[];
|
|
12844
|
+
start: number;
|
|
12845
|
+
limit: number;
|
|
12846
|
+
length: number;
|
|
12847
|
+
}
|
|
12848
|
+
/**
|
|
12849
|
+
* Per-item checkpoints for batch tenant operations (issue #1325).
|
|
12850
|
+
*
|
|
12851
|
+
* Like `tenantOperations` this is a control-plane adapter, so it is
|
|
12852
|
+
* unscoped — rows are addressed by `operation_id`, and the operation row
|
|
12853
|
+
* carries the `tenant_id`.
|
|
12854
|
+
*
|
|
12855
|
+
* The contract that makes batch operations resumable: `createMany` stages
|
|
12856
|
+
* every item as `pending`, `claimPending` hands a worker the next slice of
|
|
12857
|
+
* unprocessed items, and `recordOutcomes` commits their terminal statuses.
|
|
12858
|
+
* An interrupted run leaves its items `pending` and is retried verbatim,
|
|
12859
|
+
* so implementations MUST make `recordOutcomes` atomic per call and MUST
|
|
12860
|
+
* NOT mutate rows that already hold a terminal status.
|
|
12861
|
+
*/
|
|
12862
|
+
interface TenantOperationRowsAdapter {
|
|
12863
|
+
/**
|
|
12864
|
+
* Stage items in bulk. Implementations should insert in batches rather
|
|
12865
|
+
* than one statement per row — callers stage thousands at a time.
|
|
12866
|
+
* Returns the number of rows written.
|
|
12867
|
+
*/
|
|
12868
|
+
createMany(rows: TenantOperationRowInsert[]): Promise<number>;
|
|
12869
|
+
/**
|
|
12870
|
+
* Fetch the next `limit` items still awaiting processing, ordered by
|
|
12871
|
+
* `seq` ascending. Does not itself lock — exclusivity between drivers
|
|
12872
|
+
* comes from the lease on the parent operation
|
|
12873
|
+
* (`TenantOperationsAdapter.claim`).
|
|
12874
|
+
*/
|
|
12875
|
+
claimPending(operation_id: string, limit: number): Promise<TenantOperationRow[]>;
|
|
12876
|
+
/**
|
|
12877
|
+
* Commit terminal outcomes for processed items. Idempotent: applying an
|
|
12878
|
+
* outcome to a row that is already terminal is a no-op, so a retried
|
|
12879
|
+
* chunk cannot corrupt earlier results. Returns rows actually updated.
|
|
12880
|
+
*/
|
|
12881
|
+
recordOutcomes(operation_id: string, outcomes: TenantOperationRowOutcome[]): Promise<number>;
|
|
12882
|
+
/** Row counts per status, used to build the operation's summary. */
|
|
12883
|
+
countByStatus(operation_id: string): Promise<TenantOperationRowCounts>;
|
|
12884
|
+
/** Paginated read, ordered by `seq` ascending. Backs the errors endpoint. */
|
|
12885
|
+
list(operation_id: string, params?: ListTenantOperationRowsParams): Promise<ListTenantOperationRowsResult>;
|
|
12886
|
+
/**
|
|
12887
|
+
* Retention cleanup. Also runs via the cascade when the parent operation
|
|
12888
|
+
* is removed; exposed separately so a sweep can drop staged payloads
|
|
12889
|
+
* without deleting the operation's audit record.
|
|
12890
|
+
*/
|
|
12891
|
+
removeByOperation(operation_id: string): Promise<number>;
|
|
12892
|
+
}
|
|
12893
|
+
|
|
12623
12894
|
interface ListRolloutsResult {
|
|
12624
12895
|
rollouts: Rollout[];
|
|
12625
12896
|
start: number;
|
|
@@ -12796,6 +13067,12 @@ interface DataAdapters {
|
|
|
12796
13067
|
tenantOperations?: TenantOperationsAdapter;
|
|
12797
13068
|
/** Per-step history rows for `tenantOperations`; append-only. */
|
|
12798
13069
|
tenantOperationEvents?: TenantOperationEventsAdapter;
|
|
13070
|
+
/**
|
|
13071
|
+
* Per-item checkpoints for batch operations (issue #1325). Required for
|
|
13072
|
+
* the Auth0-compatible `POST /api/v2/jobs/users-imports` endpoints —
|
|
13073
|
+
* without it, batch imports cannot be staged or resumed.
|
|
13074
|
+
*/
|
|
13075
|
+
tenantOperationRows?: TenantOperationRowsAdapter;
|
|
12799
13076
|
/**
|
|
12800
13077
|
* Optional fleet rollout records (issue #1026). Phase 1 ships the table
|
|
12801
13078
|
* and CRUD only; the wave/canary coordinator and routes come later.
|
|
@@ -12863,5 +13140,5 @@ interface DataAdapters {
|
|
|
12863
13140
|
};
|
|
12864
13141
|
}
|
|
12865
13142
|
|
|
12866
|
-
export { Auth0ActionEnum, Auth0Client, AuthorizationResponseMode, AuthorizationResponseType, CodeChallengeMethod, ComponentCategory, ComponentType, DATABASE_CONNECTION_STRATEGY, EmailActionEnum, FORM_FIELD_TYPES, FlowActionTypeEnum, GrantType, LocationInfo, LogTypes, LoginSessionState, MONDAY_EPOCH_SHIFT_MS, NodeType, RedirectTargetEnum, Strategy, StrategyType, TRIGGER_API_SHAPES, USERNAME_CONTAINS_AT_MESSAGE, USERNAME_INVALID_CHARACTERS_MESSAGE, WEEK_MS, actionDependencySchema, actionExecutionErrorSchema, actionExecutionInsertSchema, actionExecutionLogEntrySchema, actionExecutionLogsSchema, actionExecutionResultSchema, actionExecutionSchema, actionExecutionStatusSchema, actionExecutionTriggerIdSchema, actionInsertSchema, actionNodeSchema, actionSchema, actionSecretSchema, actionTriggerSchema, actionUpdateSchema, actionVersionInsertSchema, actionVersionSchema, activeUsersResponseSchema, actorSchema, addressSchema, allowedTriggersForHook, 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, buildRefreshTokenRetention, buildSessionRetention, 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, decodeBase32, decodeBase64, decodeBase64Url, decodeBase64UrlString, decodeCursor, emailProviderSchema, emailTemplateNameSchema, emailTemplateSchema, emailVerificationRulesSchema, emailVerifyActionSchema, encodeBase32, encodeBase64, encodeBase64Url, encodeBase64UrlString, encodeCursor, encodeHex, endingSchema, escapeLuceneValue, 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, hookPageId, hookSchema, hookTemplateId, hookTemplates, identitySchema, importMetadataSchema, inviteInsertSchema, inviteSchema, inviteeSchema, inviterSchema, isBlockComponent, isDatabaseConnectionStrategy, isEmailSearchTerm, 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, normalizeUsername, openIDConfigurationSchema, organizationBrandingSchema, organizationConnectionInsertSchema, organizationConnectionListSchema, organizationConnectionSchema, organizationEnabledConnectionSchema, organizationInsertSchema, organizationSchema, organizationTokenQuotaSchema, pageBackgroundSchema, parseUserId, passwordInsertSchema, passwordSchema, profileDataSchema, promptScreenSchema, promptSettingSchema, proxyRouteInsertSchema, proxyRouteSchema, proxyRouteUpdateSchema, redirectActionSchema, refreshTokenInsertSchema, refreshTokenRetentionCohortSchema, refreshTokenRetentionResponseSchema, refreshTokenSchema, requestContextSchema, resourceServerInsertSchema, resourceServerListSchema, resourceServerOptionsSchema, resourceServerSchema, resourceServerScopeSchema, responseContextSchema, richTextComponentSchema, roleInsertSchema, roleListSchema, rolePermissionInsertSchema, rolePermissionListSchema, rolePermissionSchema, roleSchema, rolloutInsertSchema, rolloutKindSchema, rolloutSchema, rolloutStatusSchema, rolloutUpdateSchema, sanitizeLuceneQuery, scimConfigurationInsertSchema, scimConfigurationSchema, scimExternalIdInsertSchema, scimExternalIdSchema, scimMappingEntrySchema, scimTokenInsertSchema, scimTokenSchema, screenLinkSchema, sessionInsertSchema, sessionRetentionCohortSchema, sessionRetentionResponseSchema, sessionRetentionWindow, sessionSchema, signingKeySchema, smsProviderSchema, smsSendParamsSchema, splitLuceneOrGroups, startSchema, suspiciousIpThrottlingSchema, targetSchema, tenantInsertSchema, tenantOperationEngineSchema, tenantOperationEventInsertSchema, tenantOperationEventOutcomeSchema, tenantOperationEventSchema, tenantOperationInsertSchema, tenantOperationKindSchema, tenantOperationSchema, tenantOperationStatusSchema, tenantOperationUpdateSchema, tenantSchema, tenantSettingsSchema, themeInsertSchema, themeSchema, tokenResponseSchema, tokenizeLuceneQuery, totalsSchema, uiScreenSchema, unescapeLuceneValue, unquoteLuceneValue, userActivitySchema, userInsertSchema, userOrganizationInsertSchema, userOrganizationSchema, userPermissionInsertSchema, userPermissionListSchema, userPermissionSchema, userPermissionWithDetailsListSchema, userPermissionWithDetailsSchema, userResponseSchema, userRoleInsertSchema, userRoleListSchema, userRoleSchema, userSchema, usernameHasOnlyAllowedCharacters, validateUsername, verificationMethodsSchema, weekIndex, weekStartMs, widgetComponentSchema, widgetSchema };
|
|
12867
|
-
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, CursorPayload, 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, HookPageId, HookTemplateId, HooksAdapter, HtmlComponent, Identity, ImageComponent, ImportMetadata, Invite, InviteInsert, Invitee, Inviter, InvitesAdapter, JumpButtonComponent, Jwk, Jwks, KeysAdapter, LegalComponent, LegalField, LinkCandidate, ListActionVersionsResponse, ListActionsResponse, ListClientGrantsResponse, ListCodesResponse, ListConnectionsResponse, ListFailedEventsResponse, ListFlowsResponse, ListFormsResponse, ListGrantsResponse, ListHooksResponse, ListInvitesResponse, ListKeysResponse, ListOrganizationsResponse, ListParams, ListProxyRoutesParams, ListProxyRoutesResult, ListRefreshTokenResponse, ListResourceServersResponse, ListRoleUsersResponse, ListRolesResponse, ListRolloutsResult, ListSesssionsResponse, ListTenantOperationEventsResult, ListTenantOperationsParams, ListTenantOperationsResult, 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, OutboxEventInsert, PassthroughConfig, Password, PasswordField, PasswordInsert, PasswordsAdapter, PaymentField, PostUsersBody, PreviousButtonComponent, PromptScreen, PromptSetting, PromptSettingsAdapter, ProxyRoute, ProxyRouteInsert, ProxyRouteUpdate, ProxyRoutesAdapter, RateLimitAdapter, RateLimitDecision, RateLimitScope, RecaptchaWidget, RedirectAction, RedirectTarget, RefreshToken, RefreshTokenInsert, RefreshTokenListParams, RefreshTokenRetentionCohort, RefreshTokenRetentionParams, RefreshTokenRetentionResponse, RefreshTokenUpdate, RefreshTokensAdapter, RequestContext, ResendButtonComponent, ResourceServer, ResourceServerInsert, ResourceServerList, ResourceServerOptions, ResourceServerScope, ResourceServersAdapter, ResponseContext, RichTextComponent, Role, RoleInsert, RoleList, RolePermission, RolePermissionInsert, RolePermissionList, RolePermissionsAdapter, RolesAdapter, Rollout, RolloutInsert, RolloutKind, RolloutStatus, RolloutUpdate, RolloutsAdapter, RouteMatch, RouterNode, RuntimeComponent, ScimConfiguration, ScimConfigurationInsert, ScimConfigurationsAdapter, ScimExternalId, ScimExternalIdInsert, ScimExternalIdsAdapter, ScimMappingEntry, ScimToken, ScimTokenInsert, ScimTokensAdapter, ScreenLink, SecondaryAdapterConfig, Session, SessionCleanupParams, SessionInsert, SessionRetentionCohort, SessionRetentionParams, SessionRetentionRawRow, SessionRetentionResponse, SessionRetentionWindow, SessionsAdapter, SigningKey, SmsProvider, SmsSendParams, SmsServiceAdapter, SmsServiceSendParams, SocialField, Start, StatsAdapter, StatsListParams, StepNode, SuspiciousIpThrottling, Target, TelField, Tenant, TenantOperation, TenantOperationEngine, TenantOperationEvent, TenantOperationEventInsert, TenantOperationEventOutcome, TenantOperationEventsAdapter, TenantOperationInsert, TenantOperationKind, TenantOperationStatus, TenantOperationUpdate, TenantOperationsAdapter, TenantSettings, TenantSettingsAdapter, TenantsDataAdapter, TextField, Theme, ThemeInsert, ThemesAdapter, TokenResponse, Totals, UiScreen, UniversalLoginTemplate, UniversalLoginTemplatesAdapter, UpdateRefreshTokenOptions, UrlField, User, UserActivity, UserActivityAdapter, UserActivityUpdate, UserDataAdapter, UserInsert, UserOrganization, UserOrganizationInsert, UserOrganizationsAdapter, UserPermission, UserPermissionInsert, UserPermissionList, UserPermissionWithDetails, UserPermissionWithDetailsList, UserPermissionsAdapter, UserResponse, UserRole, UserRoleInsert, UserRoleList, UserRolesAdapter, UsernameLengthBounds, VerifiableCredentialsWidget, VerificationMethods, WidgetComponent, WriteOptions };
|
|
13143
|
+
export { Auth0ActionEnum, Auth0Client, AuthorizationResponseMode, AuthorizationResponseType, CodeChallengeMethod, ComponentCategory, ComponentType, DATABASE_CONNECTION_STRATEGY, EmailActionEnum, FORM_FIELD_TYPES, FeatureNotSupportedError, FlowActionTypeEnum, GrantType, KNOWN_TENANT_OPERATION_ENGINES, LocationInfo, LogTypes, LoginSessionState, MONDAY_EPOCH_SHIFT_MS, NodeType, PRESERVE_LOCATION_HEADER, RedirectTargetEnum, Strategy, StrategyType, TERMINAL_TENANT_OPERATION_ROW_STATUSES, TRIGGER_API_SHAPES, USERNAME_CONTAINS_AT_MESSAGE, USERNAME_INVALID_CHARACTERS_MESSAGE, WEEK_MS, actionDependencySchema, actionExecutionErrorSchema, actionExecutionInsertSchema, actionExecutionLogEntrySchema, actionExecutionLogsSchema, actionExecutionResultSchema, actionExecutionSchema, actionExecutionStatusSchema, actionExecutionTriggerIdSchema, actionInsertSchema, actionNodeSchema, actionResponseSchema, actionSchema, actionSecretNameSchema, actionSecretSchema, actionTriggerSchema, actionUpdateSchema, actionVersionInsertSchema, actionVersionSchema, activeUsersResponseSchema, actorSchema, addressSchema, allowedTriggersForHook, 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, buildRefreshTokenRetention, buildSessionRetention, 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, decodeBase32, decodeBase64, decodeBase64Url, decodeBase64UrlString, decodeCursor, emailProviderSchema, emailTemplateNameSchema, emailTemplateSchema, emailVerificationRulesSchema, emailVerifyActionSchema, encodeBase32, encodeBase64, encodeBase64Url, encodeBase64UrlString, encodeCursor, encodeHex, endingSchema, escapeLuceneValue, 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, hookPageId, hookSchema, hookTemplateId, hookTemplates, identitySchema, importMetadataSchema, inviteInsertSchema, inviteSchema, inviteeSchema, inviterSchema, isBlockComponent, isDatabaseConnectionStrategy, isEmailSearchTerm, isFeatureNotSupportedError, 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, normalizeUsername, openIDConfigurationSchema, organizationBrandingSchema, organizationConnectionInsertSchema, organizationConnectionListSchema, organizationConnectionSchema, organizationEnabledConnectionSchema, organizationInsertSchema, organizationSchema, organizationTokenQuotaSchema, pageBackgroundSchema, parseUserId, passwordInsertSchema, passwordSchema, profileDataSchema, promptScreenSchema, promptSettingSchema, proxyRouteInsertSchema, proxyRouteSchema, proxyRouteUpdateSchema, redirectActionSchema, refreshTokenInsertSchema, refreshTokenRetentionCohortSchema, refreshTokenRetentionResponseSchema, refreshTokenSchema, requestContextSchema, resourceServerInsertSchema, resourceServerListSchema, resourceServerOptionsSchema, resourceServerSchema, resourceServerScopeSchema, responseContextSchema, richTextComponentSchema, roleInsertSchema, roleListSchema, rolePermissionInsertSchema, rolePermissionListSchema, rolePermissionSchema, roleSchema, rolloutInsertSchema, rolloutKindSchema, rolloutSchema, rolloutStatusSchema, rolloutUpdateSchema, sanitizeLuceneQuery, scimConfigurationInsertSchema, scimConfigurationSchema, scimExternalIdInsertSchema, scimExternalIdSchema, scimMappingEntrySchema, scimTokenInsertSchema, scimTokenSchema, screenLinkSchema, sessionInsertSchema, sessionRetentionCohortSchema, sessionRetentionResponseSchema, sessionRetentionWindow, sessionSchema, signingKeySchema, smsProviderSchema, smsSendParamsSchema, splitLuceneOrGroups, startSchema, suspiciousIpThrottlingSchema, targetSchema, tenantInsertSchema, tenantOperationEngineSchema, tenantOperationEventInsertSchema, tenantOperationEventOutcomeSchema, tenantOperationEventSchema, tenantOperationInsertSchema, tenantOperationKindSchema, tenantOperationRowInsertSchema, tenantOperationRowOutcomeSchema, tenantOperationRowSchema, tenantOperationRowStatusSchema, tenantOperationSchema, tenantOperationStatusSchema, tenantOperationUpdateSchema, tenantSchema, tenantSettingsSchema, themeInsertSchema, themeSchema, tokenResponseSchema, tokenizeLuceneQuery, totalsSchema, uiScreenSchema, unescapeLuceneValue, unquoteLuceneValue, userActivitySchema, userInsertSchema, userOrganizationInsertSchema, userOrganizationSchema, userPermissionInsertSchema, userPermissionListSchema, userPermissionSchema, userPermissionWithDetailsListSchema, userPermissionWithDetailsSchema, userResponseSchema, userRoleInsertSchema, userRoleListSchema, userRoleSchema, userSchema, usernameHasOnlyAllowedCharacters, validateUsername, verificationMethodsSchema, weekIndex, weekStartMs, widgetComponentSchema, widgetSchema };
|
|
13144
|
+
export type { Action, ActionExecution, ActionExecutionError, ActionExecutionInsert, ActionExecutionLogEntry, ActionExecutionLogs, ActionExecutionResult, ActionExecutionStatus, ActionExecutionsAdapter, ActionInsert, ActionNode, ActionResponse, 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, CursorPayload, 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, HookPageId, HookTemplateId, HooksAdapter, HtmlComponent, Identity, ImageComponent, ImportMetadata, Invite, InviteInsert, Invitee, Inviter, InvitesAdapter, JumpButtonComponent, Jwk, Jwks, KeysAdapter, LegalComponent, LegalField, LinkCandidate, ListActionVersionsResponse, ListActionsResponse, ListClientGrantsResponse, ListCodesResponse, ListConnectionsResponse, ListFailedEventsResponse, ListFlowsResponse, ListFormsResponse, ListGrantsResponse, ListHooksResponse, ListInvitesResponse, ListKeysResponse, ListOrganizationsResponse, ListParams, ListProxyRoutesParams, ListProxyRoutesResult, ListRefreshTokenResponse, ListResourceServersResponse, ListRoleUsersResponse, ListRolesResponse, ListRolloutsResult, ListSesssionsResponse, ListTenantOperationEventsResult, ListTenantOperationRowsParams, ListTenantOperationRowsResult, ListTenantOperationsParams, ListTenantOperationsResult, 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, OutboxEventInsert, PassthroughConfig, Password, PasswordField, PasswordInsert, PasswordsAdapter, PaymentField, PostUsersBody, PreviousButtonComponent, PromptScreen, PromptSetting, PromptSettingsAdapter, ProxyRoute, ProxyRouteInsert, ProxyRouteUpdate, ProxyRoutesAdapter, RateLimitAdapter, RateLimitDecision, RateLimitScope, RecaptchaWidget, RedirectAction, RedirectTarget, RefreshToken, RefreshTokenInsert, RefreshTokenListParams, RefreshTokenRetentionCohort, RefreshTokenRetentionParams, RefreshTokenRetentionResponse, RefreshTokenUpdate, RefreshTokensAdapter, RequestContext, ResendButtonComponent, ResourceServer, ResourceServerInsert, ResourceServerList, ResourceServerOptions, ResourceServerScope, ResourceServersAdapter, ResponseContext, RichTextComponent, Role, RoleInsert, RoleList, RolePermission, RolePermissionInsert, RolePermissionList, RolePermissionsAdapter, RolesAdapter, Rollout, RolloutInsert, RolloutKind, RolloutStatus, RolloutUpdate, RolloutsAdapter, RouteMatch, RouterNode, RuntimeComponent, ScimConfiguration, ScimConfigurationInsert, ScimConfigurationsAdapter, ScimExternalId, ScimExternalIdInsert, ScimExternalIdsAdapter, ScimMappingEntry, ScimToken, ScimTokenInsert, ScimTokensAdapter, ScreenLink, SecondaryAdapterConfig, Session, SessionCleanupParams, SessionInsert, SessionRetentionCohort, SessionRetentionParams, SessionRetentionRawRow, SessionRetentionResponse, SessionRetentionWindow, SessionsAdapter, SigningKey, SmsProvider, SmsSendParams, SmsServiceAdapter, SmsServiceSendParams, SocialField, Start, StatsAdapter, StatsListParams, StepNode, SuspiciousIpThrottling, Target, TelField, Tenant, TenantOperation, TenantOperationEngine, TenantOperationEvent, TenantOperationEventInsert, TenantOperationEventOutcome, TenantOperationEventsAdapter, TenantOperationInsert, TenantOperationKind, TenantOperationRow, TenantOperationRowCounts, TenantOperationRowInsert, TenantOperationRowOutcome, TenantOperationRowStatus, TenantOperationRowsAdapter, TenantOperationStatus, TenantOperationUpdate, TenantOperationsAdapter, TenantSettings, TenantSettingsAdapter, TenantsDataAdapter, TextField, Theme, ThemeInsert, ThemesAdapter, TokenResponse, Totals, UiScreen, UniversalLoginTemplate, UniversalLoginTemplatesAdapter, UpdateRefreshTokenOptions, UrlField, User, UserActivity, UserActivityAdapter, UserActivityUpdate, UserDataAdapter, UserInsert, UserOrganization, UserOrganizationInsert, UserOrganizationsAdapter, UserPermission, UserPermissionInsert, UserPermissionList, UserPermissionWithDetails, UserPermissionWithDetailsList, UserPermissionsAdapter, UserResponse, UserRole, UserRoleInsert, UserRoleList, UserRolesAdapter, UsernameLengthBounds, VerifiableCredentialsWidget, VerificationMethods, WidgetComponent, WriteOptions };
|