@riffdb/better-auth 0.0.0-stage → 0.2.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/DESIGN.md +273 -0
- package/LICENSE-APACHE +201 -0
- package/LICENSE-MIT +27 -0
- package/README.md +323 -2
- package/dist/adapter.d.ts +34 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +1600 -0
- package/dist/adapter.js.map +1 -0
- package/dist/generated/client.d.ts +2166 -0
- package/dist/generated/client.d.ts.map +1 -0
- package/dist/generated/client.js +2454 -0
- package/dist/generated/client.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin-dispatch.d.ts +37 -0
- package/dist/plugin-dispatch.d.ts.map +1 -0
- package/dist/plugin-dispatch.js +293 -0
- package/dist/plugin-dispatch.js.map +1 -0
- package/dist/profile-contract.d.ts +63 -0
- package/dist/profile-contract.d.ts.map +1 -0
- package/dist/profile-contract.js +543 -0
- package/dist/profile-contract.js.map +1 -0
- package/dist/profile-plan.d.ts +69 -0
- package/dist/profile-plan.d.ts.map +1 -0
- package/dist/profile-plan.js +180 -0
- package/dist/profile-plan.js.map +1 -0
- package/dist/profile.d.ts +48 -0
- package/dist/profile.d.ts.map +1 -0
- package/dist/profile.js +132 -0
- package/dist/profile.js.map +1 -0
- package/dist/profiles/custom-fields/profile.d.ts +3 -0
- package/dist/profiles/custom-fields/profile.d.ts.map +1 -0
- package/dist/profiles/custom-fields/profile.js +475 -0
- package/dist/profiles/custom-fields/profile.js.map +1 -0
- package/dist/profiles/custom-fields/src/generated/client.d.ts +2710 -0
- package/dist/profiles/custom-fields/src/generated/client.d.ts.map +1 -0
- package/dist/profiles/custom-fields/src/generated/client.js +2663 -0
- package/dist/profiles/custom-fields/src/generated/client.js.map +1 -0
- package/dist/profiles/runtime/profile.d.ts +3 -0
- package/dist/profiles/runtime/profile.d.ts.map +1 -0
- package/dist/profiles/runtime/profile.js +1065 -0
- package/dist/profiles/runtime/profile.js.map +1 -0
- package/dist/profiles/runtime/src/generated/client.d.ts +4274 -0
- package/dist/profiles/runtime/src/generated/client.d.ts.map +1 -0
- package/dist/profiles/runtime/src/generated/client.js +4607 -0
- package/dist/profiles/runtime/src/generated/client.js.map +1 -0
- package/dist/runtime-materialize.d.ts +10 -0
- package/dist/runtime-materialize.d.ts.map +1 -0
- package/dist/runtime-materialize.js +344 -0
- package/dist/runtime-materialize.js.map +1 -0
- package/dist/runtime-profile.d.ts +34 -0
- package/dist/runtime-profile.d.ts.map +1 -0
- package/dist/runtime-profile.js +203 -0
- package/dist/runtime-profile.js.map +1 -0
- package/dist/testing.d.ts +11 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +12 -0
- package/dist/testing.js.map +1 -0
- package/generated/go/client.go +2250 -0
- package/generated/mcp/tools.json +13922 -0
- package/generated/python/client.py +4454 -0
- package/generated/riffdb.application.exact.json +1 -0
- package/generated/riffdb.contract.bundle +0 -0
- package/generated/rust/client.rs +6524 -0
- package/package.json +83 -4
- package/profiles/custom-fields/generated/go/client.go +2578 -0
- package/profiles/custom-fields/generated/mcp/tools.json +15998 -0
- package/profiles/custom-fields/generated/python/client.py +5141 -0
- package/profiles/custom-fields/generated/riffdb.application.exact.json +1 -0
- package/profiles/custom-fields/generated/riffdb.contract.bundle +0 -0
- package/profiles/custom-fields/generated/rust/client.rs +7980 -0
- package/profiles/custom-fields/profile.ts +474 -0
- package/profiles/custom-fields/riffdb/contract.riff +568 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_all_email_asc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_contains_asc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_contains_desc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_email_contains_created_desc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_email_contains_image_asc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_ends_with_asc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_ends_with_desc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_starts_with_asc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/admin_users_starts_with_desc.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/find_account_by_id.riffq +24 -0
- package/profiles/custom-fields/riffdb/queries/find_account_by_provider.riffq +26 -0
- package/profiles/custom-fields/riffdb/queries/find_accounts_by_user_id.riffq +25 -0
- package/profiles/custom-fields/riffdb/queries/find_accounts_by_user_provider.riffq +27 -0
- package/profiles/custom-fields/riffdb/queries/find_active_sessions_by_user_id.riffq +23 -0
- package/profiles/custom-fields/riffdb/queries/find_credential_account.riffq +25 -0
- package/profiles/custom-fields/riffdb/queries/find_expired_verification_ids.riffq +17 -0
- package/profiles/custom-fields/riffdb/queries/find_latest_verification.riffq +20 -0
- package/profiles/custom-fields/riffdb/queries/find_session_by_id.riffq +20 -0
- package/profiles/custom-fields/riffdb/queries/find_session_by_token.riffq +20 -0
- package/profiles/custom-fields/riffdb/queries/find_sessions_by_token_set.riffq +20 -0
- package/profiles/custom-fields/riffdb/queries/find_sessions_by_user_id.riffq +21 -0
- package/profiles/custom-fields/riffdb/queries/find_user_by_email.riffq +16 -0
- package/profiles/custom-fields/riffdb/queries/find_user_by_id.riffq +15 -0
- package/profiles/custom-fields/riffdb/queries/find_verification_by_id.riffq +19 -0
- package/profiles/custom-fields/riffdb/queries/find_verifications_by_identifier.riffq +21 -0
- package/profiles/custom-fields/riffdb/queries/profile_account_with_user_by_provider.riffq +31 -0
- package/profiles/custom-fields/riffdb/queries/profile_session_with_user_by_id.riffq +14 -0
- package/profiles/custom-fields/riffdb/queries/profile_session_with_user_by_token.riffq +14 -0
- package/profiles/custom-fields/riffdb/queries/profile_sessions_with_users_by_token_set.riffq +25 -0
- package/profiles/custom-fields/riffdb/queries/profile_user_with_accounts_by_email.riffq +19 -0
- package/profiles/custom-fields/riffdb/queries/profile_user_with_accounts_by_id.riffq +19 -0
- package/profiles/custom-fields/riffdb.application.json +217 -0
- package/profiles/custom-fields/riffdb.application.lock.json +1 -0
- package/profiles/custom-fields/riffdb.toml +3 -0
- package/profiles/custom-fields/src/generated/client.ts +3096 -0
- package/profiles/organization-security/materialization.json +51 -0
- package/profiles/organization-security/riffdb/contract.riff +778 -0
- package/profiles/organization-security/riffdb/queries/find_account_by_id.riffq +18 -0
- package/profiles/organization-security/riffdb/queries/find_invitation_by_email.riffq +17 -0
- package/profiles/organization-security/riffdb/queries/find_invitation_by_id.riffq +18 -0
- package/profiles/organization-security/riffdb/queries/find_invitation_by_organization_id.riffq +17 -0
- package/profiles/organization-security/riffdb/queries/find_member_by_id.riffq +18 -0
- package/profiles/organization-security/riffdb/queries/find_member_by_user_id.riffq +17 -0
- package/profiles/organization-security/riffdb/queries/find_organization_by_id.riffq +16 -0
- package/profiles/organization-security/riffdb/queries/find_organization_by_slug.riffq +16 -0
- package/profiles/organization-security/riffdb/queries/find_session_by_id.riffq +18 -0
- package/profiles/organization-security/riffdb/queries/find_session_by_token.riffq +16 -0
- package/profiles/organization-security/riffdb/queries/find_team_by_id.riffq +18 -0
- package/profiles/organization-security/riffdb/queries/find_team_member_by_id.riffq +18 -0
- package/profiles/organization-security/riffdb/queries/find_team_member_by_membership_key.riffq +16 -0
- package/profiles/organization-security/riffdb/queries/find_team_member_by_team_id.riffq +17 -0
- package/profiles/organization-security/riffdb/queries/find_two_factor_by_id.riffq +18 -0
- package/profiles/organization-security/riffdb/queries/find_two_factor_by_secret.riffq +17 -0
- package/profiles/organization-security/riffdb/queries/find_user_by_email.riffq +16 -0
- package/profiles/organization-security/riffdb/queries/find_user_by_id.riffq +16 -0
- package/profiles/organization-security/riffdb/queries/find_verification_by_id.riffq +16 -0
- package/profiles/organization-security/riffdb/queries/find_verification_by_identifier.riffq +17 -0
- package/profiles/organization-security/riffdb.application.json +172 -0
- package/profiles/organization-security/riffdb.toml +7 -0
- package/profiles/organization-security.profile.json +980 -0
- package/profiles/runtime/generated/go/client.go +4511 -0
- package/profiles/runtime/generated/mcp/tools.json +30004 -0
- package/profiles/runtime/generated/python/client.py +9337 -0
- package/profiles/runtime/generated/riffdb.application.exact.json +1 -0
- package/profiles/runtime/generated/riffdb.contract.bundle +0 -0
- package/profiles/runtime/generated/rust/client.rs +13297 -0
- package/profiles/runtime/profile.ts +1064 -0
- package/profiles/runtime/riffdb/contract.riff +1053 -0
- package/profiles/runtime/riffdb/queries/admin_users_all_email_asc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/admin_users_contains_asc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/admin_users_contains_desc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/admin_users_email_contains_created_desc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/admin_users_email_contains_image_asc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/admin_users_ends_with_asc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/admin_users_ends_with_desc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/admin_users_starts_with_asc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/admin_users_starts_with_desc.riffq +24 -0
- package/profiles/runtime/riffdb/queries/find_account_by_id.riffq +24 -0
- package/profiles/runtime/riffdb/queries/find_account_by_provider.riffq +26 -0
- package/profiles/runtime/riffdb/queries/find_accounts_by_user_id.riffq +25 -0
- package/profiles/runtime/riffdb/queries/find_accounts_by_user_provider.riffq +27 -0
- package/profiles/runtime/riffdb/queries/find_active_sessions_by_user_id.riffq +23 -0
- package/profiles/runtime/riffdb/queries/find_credential_account.riffq +25 -0
- package/profiles/runtime/riffdb/queries/find_expired_verification_ids.riffq +17 -0
- package/profiles/runtime/riffdb/queries/find_latest_verification.riffq +20 -0
- package/profiles/runtime/riffdb/queries/find_session_by_id.riffq +20 -0
- package/profiles/runtime/riffdb/queries/find_session_by_token.riffq +20 -0
- package/profiles/runtime/riffdb/queries/find_sessions_by_token_set.riffq +20 -0
- package/profiles/runtime/riffdb/queries/find_sessions_by_user_id.riffq +21 -0
- package/profiles/runtime/riffdb/queries/find_user_by_email.riffq +16 -0
- package/profiles/runtime/riffdb/queries/find_user_by_id.riffq +15 -0
- package/profiles/runtime/riffdb/queries/find_verification_by_id.riffq +19 -0
- package/profiles/runtime/riffdb/queries/find_verifications_by_identifier.riffq +21 -0
- package/profiles/runtime/riffdb/queries/profile_account_with_user_by_provider.riffq +31 -0
- package/profiles/runtime/riffdb/queries/profile_invitation_by_email.riffq +17 -0
- package/profiles/runtime/riffdb/queries/profile_invitation_by_id.riffq +17 -0
- package/profiles/runtime/riffdb/queries/profile_invitation_by_organization_email_status.riffq +19 -0
- package/profiles/runtime/riffdb/queries/profile_invitation_by_organization_id.riffq +17 -0
- package/profiles/runtime/riffdb/queries/profile_invitation_by_organization_status.riffq +18 -0
- package/profiles/runtime/riffdb/queries/profile_member_by_id.riffq +27 -0
- package/profiles/runtime/riffdb/queries/profile_member_by_organization.riffq +20 -0
- package/profiles/runtime/riffdb/queries/profile_member_by_organization_created_at_asc.riffq +20 -0
- package/profiles/runtime/riffdb/queries/profile_member_by_organization_created_at_desc.riffq +20 -0
- package/profiles/runtime/riffdb/queries/profile_member_by_organization_role_asc.riffq +20 -0
- package/profiles/runtime/riffdb/queries/profile_member_by_organization_role_desc.riffq +20 -0
- package/profiles/runtime/riffdb/queries/profile_member_by_organization_user.riffq +28 -0
- package/profiles/runtime/riffdb/queries/profile_member_by_user.riffq +27 -0
- package/profiles/runtime/riffdb/queries/profile_organization_by_id.riffq +27 -0
- package/profiles/runtime/riffdb/queries/profile_organization_by_slug.riffq +27 -0
- package/profiles/runtime/riffdb/queries/profile_session_with_user_by_id.riffq +14 -0
- package/profiles/runtime/riffdb/queries/profile_session_with_user_by_token.riffq +14 -0
- package/profiles/runtime/riffdb/queries/profile_sessions_with_users_by_token_set.riffq +25 -0
- package/profiles/runtime/riffdb/queries/profile_two_factor_by_id.riffq +17 -0
- package/profiles/runtime/riffdb/queries/profile_two_factor_by_user.riffq +17 -0
- package/profiles/runtime/riffdb/queries/profile_user_with_accounts_by_email.riffq +19 -0
- package/profiles/runtime/riffdb/queries/profile_user_with_accounts_by_id.riffq +19 -0
- package/profiles/runtime/riffdb/queries/profile_users_by_id_set.riffq +8 -0
- package/profiles/runtime/riffdb.application.json +324 -0
- package/profiles/runtime/riffdb.application.lock.json +1 -0
- package/profiles/runtime/riffdb.toml +3 -0
- package/profiles/runtime/src/generated/client.ts +5186 -0
- package/riffdb/contract.riff +547 -0
- package/riffdb/queries/admin_users_all_email_asc.riffq +24 -0
- package/riffdb/queries/admin_users_contains_asc.riffq +24 -0
- package/riffdb/queries/admin_users_contains_desc.riffq +24 -0
- package/riffdb/queries/admin_users_email_contains_created_desc.riffq +24 -0
- package/riffdb/queries/admin_users_email_contains_image_asc.riffq +24 -0
- package/riffdb/queries/admin_users_ends_with_asc.riffq +24 -0
- package/riffdb/queries/admin_users_ends_with_desc.riffq +24 -0
- package/riffdb/queries/admin_users_starts_with_asc.riffq +24 -0
- package/riffdb/queries/admin_users_starts_with_desc.riffq +24 -0
- package/riffdb/queries/find_account_by_id.riffq +24 -0
- package/riffdb/queries/find_account_by_provider.riffq +26 -0
- package/riffdb/queries/find_accounts_by_user_id.riffq +25 -0
- package/riffdb/queries/find_accounts_by_user_provider.riffq +27 -0
- package/riffdb/queries/find_active_sessions_by_user_id.riffq +23 -0
- package/riffdb/queries/find_credential_account.riffq +25 -0
- package/riffdb/queries/find_expired_verification_ids.riffq +17 -0
- package/riffdb/queries/find_latest_verification.riffq +20 -0
- package/riffdb/queries/find_session_by_id.riffq +20 -0
- package/riffdb/queries/find_session_by_token.riffq +20 -0
- package/riffdb/queries/find_sessions_by_token_set.riffq +20 -0
- package/riffdb/queries/find_sessions_by_user_id.riffq +21 -0
- package/riffdb/queries/find_user_by_email.riffq +16 -0
- package/riffdb/queries/find_user_by_id.riffq +15 -0
- package/riffdb/queries/find_verification_by_id.riffq +19 -0
- package/riffdb/queries/find_verifications_by_identifier.riffq +21 -0
- package/riffdb.application.json +187 -0
- package/riffdb.application.lock.json +1 -0
- package/scripts/real-riffdb-runner.mjs +333 -0
- package/src/generated/client.ts +2746 -0
|
@@ -0,0 +1,4274 @@
|
|
|
1
|
+
export declare const QUERY_MODULE_HASH: "3c8e68a03860526917dbb3a449b9f5c0729f3ae202c71bd3aac5f0b231ebbeab";
|
|
2
|
+
export declare const CONTRACT_LINEAGE: "BetterAuthRuntime";
|
|
3
|
+
export declare const CONTRACT_VERSION: 1;
|
|
4
|
+
export declare const CONTRACT_BUNDLE_HASH: "f1761530a557c7df0d0281b25e389804f8b5a440c7a7bbc6cd9d578136a0222d";
|
|
5
|
+
export interface ContractDriverIdentity {
|
|
6
|
+
readonly contractLineage: typeof CONTRACT_LINEAGE;
|
|
7
|
+
readonly contractVersion: bigint;
|
|
8
|
+
readonly contractBundleHash: typeof CONTRACT_BUNDLE_HASH;
|
|
9
|
+
readonly role: string;
|
|
10
|
+
readonly database?: string;
|
|
11
|
+
readonly applicationManifestHash?: string;
|
|
12
|
+
readonly operationCatalogHash?: string;
|
|
13
|
+
readonly roleDefinitionHash?: string;
|
|
14
|
+
readonly remoteIdentityHash?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const CONTRACT_DRIVER_IDENTITY: {
|
|
17
|
+
readonly contractLineage: "BetterAuthRuntime";
|
|
18
|
+
readonly contractVersion: bigint;
|
|
19
|
+
readonly contractBundleHash: "f1761530a557c7df0d0281b25e389804f8b5a440c7a7bbc6cd9d578136a0222d";
|
|
20
|
+
};
|
|
21
|
+
export declare function driverIdentity(role: string, database?: string): ContractDriverIdentity;
|
|
22
|
+
export declare const APPLICATION_ERROR_REGISTRY: {
|
|
23
|
+
readonly "RDB-APP-0001": readonly ["application request is structurally invalid", "input", "correct_request", readonly ["correct_input"]];
|
|
24
|
+
readonly "RDB-INPUT-0101": readonly ["application input is invalid", "input", "correct_request", readonly ["correct_input"]];
|
|
25
|
+
readonly "RDB-AUTH-0214": readonly ["application operation is not authorized", "authorization", "obtain_permission", readonly ["bind_application_role"]];
|
|
26
|
+
readonly "RDB-CONTRACT-0101": readonly ["application contract does not match", "contract", "refresh_contract", readonly ["refresh_contract"]];
|
|
27
|
+
readonly "RDB-QUERY-0101": readonly ["RiffQL query is invalid", "query", "correct_request", readonly ["correct_input"]];
|
|
28
|
+
readonly "RDB-QUERY-0102": readonly ["RiffQL query is unavailable", "query", "refresh_contract", readonly ["pin_active_module"]];
|
|
29
|
+
readonly "RDB-MODULE-0101": readonly ["query module is unavailable", "module", "refresh_contract", readonly ["pin_active_module"]];
|
|
30
|
+
readonly "RDB-CURSOR-0101": readonly ["query cursor is invalid or stale", "cursor", "correct_request", readonly ["restart_from_first_page"]];
|
|
31
|
+
readonly "RDB-RESOURCE-0101": readonly ["application result exceeds the service limit", "resource", "correct_request", readonly ["correct_input"]];
|
|
32
|
+
readonly "RDB-STORAGE-0101": readonly ["storage is temporarily unavailable", "storage", "retry", readonly ["retry_later"]];
|
|
33
|
+
readonly "RDB-UNCERTAIN-0101": readonly ["command outcome is not yet known", "uncertainty", "resolve_with_same_idempotency_key", readonly ["resolve_with_same_idempotency_key"]];
|
|
34
|
+
readonly "RDB-APP-0002": readonly ["application request was cancelled", "control", "none", readonly []];
|
|
35
|
+
readonly "RDB-APP-0003": readonly ["application request deadline elapsed", "control", "retry", readonly ["retry_later"]];
|
|
36
|
+
readonly "RDB-INTERNAL-0001": readonly ["an internal error occurred", "internal", "contact_operator", readonly ["contact_operator_with_incident"]];
|
|
37
|
+
readonly "RDB-COMMAND-0101": readonly ["idempotency key was reused with different application input", "command", "correct_request", readonly ["correct_input"]];
|
|
38
|
+
readonly "RDB-COMMAND-0102": readonly ["command execution failed", "command", "contact_operator", readonly []];
|
|
39
|
+
readonly "RDB-AUTH-0215": readonly ["application capability is revoked", "authorization", "obtain_permission", readonly ["bind_application_role"]];
|
|
40
|
+
readonly "RDB-PROTOCOL-0101": readonly ["the RiffDB peer returned an invalid application response", "protocol", "contact_operator", readonly []];
|
|
41
|
+
readonly "RDB-HISTORY-0101": readonly ["observed history predates a database restore", "history", "correct_request", readonly ["correct_input"]];
|
|
42
|
+
readonly "RDB-HISTORY-0102": readonly ["requested history has been pruned", "history", "correct_request", readonly ["correct_input"]];
|
|
43
|
+
readonly "RDB-CAPACITY-0101": readonly ["service is over capacity", "capacity", "retry", readonly ["retry_later"]];
|
|
44
|
+
readonly "RDB-PROJECTION-0101": readonly ["query projections cannot prove one common snapshot", "query", "retry", readonly ["retry_later"]];
|
|
45
|
+
readonly "RDB-PROJECTION-0102": readonly ["the requested query snapshot has been retired", "query", "correct_request", readonly ["restart_from_first_page"]];
|
|
46
|
+
readonly "RDB-PROJECTION-0103": readonly ["no query snapshot satisfies the requested freshness", "query", "retry", readonly ["retry_later"]];
|
|
47
|
+
readonly "RDB-PROJECTION-0104": readonly ["nearest query requires a compiler-owned projected source", "query", "refresh_contract", readonly ["pin_active_module"]];
|
|
48
|
+
readonly "RDB-REP-0101": readonly ["operation is unavailable in follower mode", "control", "correct_request", readonly []];
|
|
49
|
+
readonly "RDB-REP-0102": readonly ["primary is durably fenced", "control", "contact_operator", readonly []];
|
|
50
|
+
};
|
|
51
|
+
export type ApplicationErrorCode = keyof typeof APPLICATION_ERROR_REGISTRY;
|
|
52
|
+
export type ApplicationOperation = "DescribeContract" | "CheckQuery" | "ExplainQuery" | "ExecuteQuery" | "DeployQueryModule" | "GetQueryModule" | "ExecuteCommand" | "BatchCommand" | "InspectVectorState";
|
|
53
|
+
export type ApplicationErrorCategory = typeof APPLICATION_ERROR_REGISTRY[ApplicationErrorCode][1];
|
|
54
|
+
export type ApplicationRecoveryAction = typeof APPLICATION_ERROR_REGISTRY[ApplicationErrorCode][2];
|
|
55
|
+
export type ApplicationFixCode = typeof APPLICATION_ERROR_REGISTRY[ApplicationErrorCode][3][number];
|
|
56
|
+
export interface ApplicationErrorDetails {
|
|
57
|
+
readonly type: "application";
|
|
58
|
+
readonly code: ApplicationErrorCode;
|
|
59
|
+
readonly message: string;
|
|
60
|
+
readonly category: ApplicationErrorCategory;
|
|
61
|
+
readonly recoveryAction: ApplicationRecoveryAction;
|
|
62
|
+
readonly operation: ApplicationOperation;
|
|
63
|
+
readonly contractLineage?: string;
|
|
64
|
+
readonly contractVersion?: number;
|
|
65
|
+
readonly operationSymbol?: string;
|
|
66
|
+
readonly symbolPath: ReadonlyArray<string>;
|
|
67
|
+
readonly sourceSpan?: {
|
|
68
|
+
readonly start: number;
|
|
69
|
+
readonly end: number;
|
|
70
|
+
};
|
|
71
|
+
readonly fixes: ReadonlyArray<ApplicationFixCode>;
|
|
72
|
+
readonly traceId?: string;
|
|
73
|
+
readonly incidentId?: string;
|
|
74
|
+
}
|
|
75
|
+
export declare class RiffDbApplicationError extends Error {
|
|
76
|
+
readonly details: ApplicationErrorDetails;
|
|
77
|
+
readonly name = "RiffDbApplicationError";
|
|
78
|
+
constructor(details: ApplicationErrorDetails);
|
|
79
|
+
}
|
|
80
|
+
export declare function decodeApplicationError(value: unknown): RiffDbApplicationError;
|
|
81
|
+
export type ApplicationValueSchema = {
|
|
82
|
+
readonly kind: "bool" | "i64" | "u64" | "string" | "uuid" | "enum" | "bytes" | "date" | "timestamp" | "cursor";
|
|
83
|
+
} | {
|
|
84
|
+
readonly kind: "limit";
|
|
85
|
+
readonly maximum?: number;
|
|
86
|
+
} | {
|
|
87
|
+
readonly kind: "decimal";
|
|
88
|
+
readonly precision?: number;
|
|
89
|
+
readonly scale?: number;
|
|
90
|
+
} | {
|
|
91
|
+
readonly kind: "money";
|
|
92
|
+
readonly precision?: number;
|
|
93
|
+
readonly scale?: number;
|
|
94
|
+
readonly currency?: string;
|
|
95
|
+
} | {
|
|
96
|
+
readonly kind: "optional";
|
|
97
|
+
readonly value: ApplicationValueSchema;
|
|
98
|
+
} | {
|
|
99
|
+
readonly kind: "list";
|
|
100
|
+
readonly value: ApplicationValueSchema;
|
|
101
|
+
readonly minimum?: number;
|
|
102
|
+
readonly maximum?: number;
|
|
103
|
+
readonly aggregateCanonicalElementBytes?: number;
|
|
104
|
+
} | {
|
|
105
|
+
readonly kind: "record";
|
|
106
|
+
readonly fields: ReadonlyArray<{
|
|
107
|
+
readonly name: string;
|
|
108
|
+
readonly schema: ApplicationValueSchema;
|
|
109
|
+
readonly wireId?: number;
|
|
110
|
+
}>;
|
|
111
|
+
};
|
|
112
|
+
export interface DriverOperationIdentity {
|
|
113
|
+
readonly name: string;
|
|
114
|
+
readonly inputSchemaHash: string;
|
|
115
|
+
}
|
|
116
|
+
export interface CompactApplicationValue {
|
|
117
|
+
readonly type: string;
|
|
118
|
+
readonly value?: unknown;
|
|
119
|
+
}
|
|
120
|
+
export interface CompactNamedQueryResult {
|
|
121
|
+
readonly outcome: string;
|
|
122
|
+
readonly resultName: string;
|
|
123
|
+
readonly entity: string;
|
|
124
|
+
readonly fields: ReadonlyArray<string>;
|
|
125
|
+
readonly rows: ReadonlyArray<ReadonlyArray<CompactApplicationValue>>;
|
|
126
|
+
}
|
|
127
|
+
export interface NamedQueryRequest<P, R> {
|
|
128
|
+
readonly driverOperation: DriverOperationIdentity;
|
|
129
|
+
readonly contractLineage: typeof CONTRACT_LINEAGE;
|
|
130
|
+
readonly contractVersion: typeof CONTRACT_VERSION;
|
|
131
|
+
readonly contractBundleHash: typeof CONTRACT_BUNDLE_HASH;
|
|
132
|
+
readonly moduleHash: typeof QUERY_MODULE_HASH;
|
|
133
|
+
readonly queryName: string;
|
|
134
|
+
readonly planHash: string;
|
|
135
|
+
readonly parameters: P;
|
|
136
|
+
readonly parameterSchema: ApplicationValueSchema;
|
|
137
|
+
readonly resultSchemas: Readonly<Record<string, ApplicationValueSchema>>;
|
|
138
|
+
readonly compactDecoder?: (value: CompactNamedQueryResult) => R;
|
|
139
|
+
readonly decodeError: typeof decodeApplicationError;
|
|
140
|
+
readonly resultType?: R;
|
|
141
|
+
}
|
|
142
|
+
export interface QueryResponseIdentity {
|
|
143
|
+
readonly contractLineage: string;
|
|
144
|
+
readonly contractVersion: number;
|
|
145
|
+
readonly contractBundleHash: string;
|
|
146
|
+
readonly moduleHash: string;
|
|
147
|
+
readonly queryName: string;
|
|
148
|
+
readonly planHash: string;
|
|
149
|
+
}
|
|
150
|
+
export declare function acceptsIdentity<P, R>(request: NamedQueryRequest<P, R>, identity: QueryResponseIdentity): boolean;
|
|
151
|
+
export interface CommandRequest<I, R> {
|
|
152
|
+
readonly driverOperation: DriverOperationIdentity;
|
|
153
|
+
readonly contractLineage: typeof CONTRACT_LINEAGE;
|
|
154
|
+
readonly contractVersion: typeof CONTRACT_VERSION;
|
|
155
|
+
readonly commandName: string;
|
|
156
|
+
readonly planHash: string;
|
|
157
|
+
readonly input: I;
|
|
158
|
+
readonly idempotencyKey: string;
|
|
159
|
+
readonly inputSchema: ApplicationValueSchema;
|
|
160
|
+
readonly outcomeSchemas: Readonly<Record<string, ApplicationValueSchema>>;
|
|
161
|
+
readonly decodeError: typeof decodeApplicationError;
|
|
162
|
+
readonly outcomeType?: R;
|
|
163
|
+
}
|
|
164
|
+
export interface TypedQueryResult<T> {
|
|
165
|
+
readonly identity: QueryResponseIdentity;
|
|
166
|
+
readonly value: T;
|
|
167
|
+
readonly applicationHead: bigint;
|
|
168
|
+
readonly nextCursor?: string;
|
|
169
|
+
}
|
|
170
|
+
export interface WorkflowSuccessorRevision {
|
|
171
|
+
readonly binding: string;
|
|
172
|
+
readonly revision: bigint;
|
|
173
|
+
}
|
|
174
|
+
export interface TypedCommandResult<T> {
|
|
175
|
+
readonly outcome: T;
|
|
176
|
+
readonly commitSequence?: bigint;
|
|
177
|
+
readonly contractVersion: number;
|
|
178
|
+
readonly planHash: string;
|
|
179
|
+
readonly replayed: boolean;
|
|
180
|
+
readonly outcomeUri?: string;
|
|
181
|
+
readonly workflowRevisions?: ReadonlyArray<WorkflowSuccessorRevision>;
|
|
182
|
+
}
|
|
183
|
+
export type QueryConsistency = "admissionHead";
|
|
184
|
+
export interface QueryOptions {
|
|
185
|
+
readonly cursor?: string;
|
|
186
|
+
readonly readAfterCommit?: bigint;
|
|
187
|
+
readonly consistency?: QueryConsistency;
|
|
188
|
+
}
|
|
189
|
+
export interface CommandBatchProgress {
|
|
190
|
+
readonly completed: number;
|
|
191
|
+
readonly total: number;
|
|
192
|
+
readonly checkpoint: number;
|
|
193
|
+
}
|
|
194
|
+
export declare const MAX_COMMAND_BATCH_CONCURRENCY = 384;
|
|
195
|
+
export declare const DEFAULT_COMMAND_ATTEMPT_BUDGET = 3;
|
|
196
|
+
export interface CommandBatchOptions {
|
|
197
|
+
readonly concurrency: number;
|
|
198
|
+
readonly checkpoint?: number;
|
|
199
|
+
readonly onProgress?: (progress: CommandBatchProgress) => void;
|
|
200
|
+
}
|
|
201
|
+
export interface CommandBatchItem<T> {
|
|
202
|
+
readonly index: number;
|
|
203
|
+
readonly result?: TypedCommandResult<T>;
|
|
204
|
+
readonly error?: unknown;
|
|
205
|
+
}
|
|
206
|
+
export interface CommandBatchResult<T> {
|
|
207
|
+
readonly items: ReadonlyArray<CommandBatchItem<T>>;
|
|
208
|
+
readonly checkpoint: number;
|
|
209
|
+
}
|
|
210
|
+
export interface ApplicationTransport {
|
|
211
|
+
executeNamedQuery<P, R>(request: NamedQueryRequest<P, R>, options?: QueryOptions): Promise<TypedQueryResult<R>>;
|
|
212
|
+
executeCommand<I, R>(request: CommandRequest<I, R>, attemptBudget: number): Promise<TypedCommandResult<R>>;
|
|
213
|
+
executeCommandBatch?<I, R>(request: CommandRequest<I, R>, inputs: ReadonlyArray<I>, concurrency: number, checkpoint: number, attemptBudget: number): Promise<CommandBatchResult<R>>;
|
|
214
|
+
executeVectorInspection?<P, R>(request: VectorInspectionRequest<P, R>, options?: VectorInspectionOptions): Promise<TypedVectorInspectionResult<R>>;
|
|
215
|
+
}
|
|
216
|
+
export interface VectorInspectionRequest<P, R> {
|
|
217
|
+
readonly driverOperation: DriverOperationIdentity;
|
|
218
|
+
readonly contractLineage: typeof CONTRACT_LINEAGE;
|
|
219
|
+
readonly contractVersion: typeof CONTRACT_VERSION;
|
|
220
|
+
readonly contractBundleHash: typeof CONTRACT_BUNDLE_HASH;
|
|
221
|
+
readonly entity: string;
|
|
222
|
+
readonly field: string;
|
|
223
|
+
readonly inspectionKind: "staleness" | "model_versions";
|
|
224
|
+
readonly partition: P;
|
|
225
|
+
readonly partitionSchema: ApplicationValueSchema;
|
|
226
|
+
readonly limit: number;
|
|
227
|
+
readonly resultType?: R;
|
|
228
|
+
}
|
|
229
|
+
export interface VectorInspectionOptions {
|
|
230
|
+
readonly cursor?: string;
|
|
231
|
+
}
|
|
232
|
+
export interface TypedVectorInspectionResult<T> {
|
|
233
|
+
readonly value: T;
|
|
234
|
+
readonly applicationHead?: bigint;
|
|
235
|
+
readonly nextCursor?: string;
|
|
236
|
+
}
|
|
237
|
+
export interface VectorStalenessItem {
|
|
238
|
+
readonly entityKey: Uint8Array;
|
|
239
|
+
readonly newestSourceWrite: bigint;
|
|
240
|
+
readonly embeddingWrite: bigint | null;
|
|
241
|
+
}
|
|
242
|
+
export type VectorStalenessResult = {
|
|
243
|
+
readonly kind: "staleness_summary";
|
|
244
|
+
readonly totalEntities: bigint;
|
|
245
|
+
readonly staleCount: bigint;
|
|
246
|
+
readonly staleEntityCountThreshold: bigint;
|
|
247
|
+
readonly sloBreached: boolean;
|
|
248
|
+
} | {
|
|
249
|
+
readonly kind: "stale_entities";
|
|
250
|
+
readonly items: ReadonlyArray<VectorStalenessItem>;
|
|
251
|
+
readonly observedFrontier: bigint | null;
|
|
252
|
+
};
|
|
253
|
+
export interface VectorModelVersionItem {
|
|
254
|
+
readonly entityKey: Uint8Array;
|
|
255
|
+
readonly model: string;
|
|
256
|
+
readonly modelVersion: string;
|
|
257
|
+
readonly embeddingWrite: bigint;
|
|
258
|
+
}
|
|
259
|
+
export type VectorModelVersionResult = {
|
|
260
|
+
readonly kind: "model_version_summary";
|
|
261
|
+
readonly currentCount: bigint;
|
|
262
|
+
readonly outdatedCount: bigint;
|
|
263
|
+
} | {
|
|
264
|
+
readonly kind: "outdated_model_entities";
|
|
265
|
+
readonly items: ReadonlyArray<VectorModelVersionItem>;
|
|
266
|
+
readonly observedFrontier: bigint | null;
|
|
267
|
+
};
|
|
268
|
+
export declare const ADMIN_USERS_ALL_EMAIL_ASC_QUERY_PLAN_HASH: "ec891f881e7a3109c7b7da311a18dc00d0fd14d8bc776a894f0a6cc8157543ec";
|
|
269
|
+
export interface AdminUsersAllEmailAscParams {
|
|
270
|
+
readonly organization_id: string;
|
|
271
|
+
readonly minimum_email: string;
|
|
272
|
+
readonly user_id?: string | null;
|
|
273
|
+
readonly limit?: number;
|
|
274
|
+
readonly offset?: bigint;
|
|
275
|
+
}
|
|
276
|
+
export interface AdminUsersAllEmailAscFound {
|
|
277
|
+
readonly outcome: "Found";
|
|
278
|
+
readonly users: ReadonlyArray<{
|
|
279
|
+
readonly organization_id: string;
|
|
280
|
+
readonly user_id: string;
|
|
281
|
+
readonly name: string;
|
|
282
|
+
readonly email: string;
|
|
283
|
+
readonly email_verified: boolean;
|
|
284
|
+
readonly image: string | null;
|
|
285
|
+
readonly created_at: {
|
|
286
|
+
readonly seconds: bigint;
|
|
287
|
+
readonly nanos: number;
|
|
288
|
+
};
|
|
289
|
+
readonly updated_at: {
|
|
290
|
+
readonly seconds: bigint;
|
|
291
|
+
readonly nanos: number;
|
|
292
|
+
};
|
|
293
|
+
readonly revision: bigint;
|
|
294
|
+
readonly date_field: {
|
|
295
|
+
readonly seconds: bigint;
|
|
296
|
+
readonly nanos: number;
|
|
297
|
+
} | null;
|
|
298
|
+
readonly locale: string | null;
|
|
299
|
+
readonly two_factor_enabled: boolean | null;
|
|
300
|
+
}>;
|
|
301
|
+
readonly total: {
|
|
302
|
+
readonly value: bigint;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export type AdminUsersAllEmailAscResult = AdminUsersAllEmailAscFound;
|
|
306
|
+
export declare function isAdminUsersAllEmailAscFound(value: AdminUsersAllEmailAscResult): value is AdminUsersAllEmailAscFound;
|
|
307
|
+
export declare function unwrapAdminUsersAllEmailAscFound(value: AdminUsersAllEmailAscResult | TypedQueryResult<AdminUsersAllEmailAscResult>): AdminUsersAllEmailAscFound;
|
|
308
|
+
export declare function adminUsersAllEmailAsc(parameters: AdminUsersAllEmailAscParams): NamedQueryRequest<AdminUsersAllEmailAscParams, AdminUsersAllEmailAscResult>;
|
|
309
|
+
export declare const ADMIN_USERS_CONTAINS_ASC_QUERY_PLAN_HASH: "c16780f79d6a8e18ab503a04311c207223ff5aa734b04d77d35cc09d48b4c43b";
|
|
310
|
+
export interface AdminUsersContainsAscParams {
|
|
311
|
+
readonly organization_id: string;
|
|
312
|
+
readonly needle: string;
|
|
313
|
+
readonly user_id?: string | null;
|
|
314
|
+
readonly limit?: number;
|
|
315
|
+
readonly offset?: bigint;
|
|
316
|
+
}
|
|
317
|
+
export interface AdminUsersContainsAscFound {
|
|
318
|
+
readonly outcome: "Found";
|
|
319
|
+
readonly users: ReadonlyArray<{
|
|
320
|
+
readonly organization_id: string;
|
|
321
|
+
readonly user_id: string;
|
|
322
|
+
readonly name: string;
|
|
323
|
+
readonly email: string;
|
|
324
|
+
readonly email_verified: boolean;
|
|
325
|
+
readonly image: string | null;
|
|
326
|
+
readonly created_at: {
|
|
327
|
+
readonly seconds: bigint;
|
|
328
|
+
readonly nanos: number;
|
|
329
|
+
};
|
|
330
|
+
readonly updated_at: {
|
|
331
|
+
readonly seconds: bigint;
|
|
332
|
+
readonly nanos: number;
|
|
333
|
+
};
|
|
334
|
+
readonly revision: bigint;
|
|
335
|
+
readonly date_field: {
|
|
336
|
+
readonly seconds: bigint;
|
|
337
|
+
readonly nanos: number;
|
|
338
|
+
} | null;
|
|
339
|
+
readonly locale: string | null;
|
|
340
|
+
readonly two_factor_enabled: boolean | null;
|
|
341
|
+
}>;
|
|
342
|
+
readonly total: {
|
|
343
|
+
readonly value: bigint;
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
export type AdminUsersContainsAscResult = AdminUsersContainsAscFound;
|
|
347
|
+
export declare function isAdminUsersContainsAscFound(value: AdminUsersContainsAscResult): value is AdminUsersContainsAscFound;
|
|
348
|
+
export declare function unwrapAdminUsersContainsAscFound(value: AdminUsersContainsAscResult | TypedQueryResult<AdminUsersContainsAscResult>): AdminUsersContainsAscFound;
|
|
349
|
+
export declare function adminUsersContainsAsc(parameters: AdminUsersContainsAscParams): NamedQueryRequest<AdminUsersContainsAscParams, AdminUsersContainsAscResult>;
|
|
350
|
+
export declare const ADMIN_USERS_CONTAINS_DESC_QUERY_PLAN_HASH: "8626a40a743a7bd8f6d0b95917cca14a9318dbb96049555c5e169647e2b5757b";
|
|
351
|
+
export interface AdminUsersContainsDescParams {
|
|
352
|
+
readonly organization_id: string;
|
|
353
|
+
readonly needle: string;
|
|
354
|
+
readonly user_id?: string | null;
|
|
355
|
+
readonly limit?: number;
|
|
356
|
+
readonly offset?: bigint;
|
|
357
|
+
}
|
|
358
|
+
export interface AdminUsersContainsDescFound {
|
|
359
|
+
readonly outcome: "Found";
|
|
360
|
+
readonly users: ReadonlyArray<{
|
|
361
|
+
readonly organization_id: string;
|
|
362
|
+
readonly user_id: string;
|
|
363
|
+
readonly name: string;
|
|
364
|
+
readonly email: string;
|
|
365
|
+
readonly email_verified: boolean;
|
|
366
|
+
readonly image: string | null;
|
|
367
|
+
readonly created_at: {
|
|
368
|
+
readonly seconds: bigint;
|
|
369
|
+
readonly nanos: number;
|
|
370
|
+
};
|
|
371
|
+
readonly updated_at: {
|
|
372
|
+
readonly seconds: bigint;
|
|
373
|
+
readonly nanos: number;
|
|
374
|
+
};
|
|
375
|
+
readonly revision: bigint;
|
|
376
|
+
readonly date_field: {
|
|
377
|
+
readonly seconds: bigint;
|
|
378
|
+
readonly nanos: number;
|
|
379
|
+
} | null;
|
|
380
|
+
readonly locale: string | null;
|
|
381
|
+
readonly two_factor_enabled: boolean | null;
|
|
382
|
+
}>;
|
|
383
|
+
readonly total: {
|
|
384
|
+
readonly value: bigint;
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
export type AdminUsersContainsDescResult = AdminUsersContainsDescFound;
|
|
388
|
+
export declare function isAdminUsersContainsDescFound(value: AdminUsersContainsDescResult): value is AdminUsersContainsDescFound;
|
|
389
|
+
export declare function unwrapAdminUsersContainsDescFound(value: AdminUsersContainsDescResult | TypedQueryResult<AdminUsersContainsDescResult>): AdminUsersContainsDescFound;
|
|
390
|
+
export declare function adminUsersContainsDesc(parameters: AdminUsersContainsDescParams): NamedQueryRequest<AdminUsersContainsDescParams, AdminUsersContainsDescResult>;
|
|
391
|
+
export declare const ADMIN_USERS_EMAIL_CONTAINS_CREATED_DESC_QUERY_PLAN_HASH: "3e98b150c43dc64c39034586e10d032263a4157253e07239150ecdd66e51036f";
|
|
392
|
+
export interface AdminUsersEmailContainsCreatedDescParams {
|
|
393
|
+
readonly organization_id: string;
|
|
394
|
+
readonly needle: string;
|
|
395
|
+
readonly user_id?: string | null;
|
|
396
|
+
readonly limit?: number;
|
|
397
|
+
readonly offset?: bigint;
|
|
398
|
+
}
|
|
399
|
+
export interface AdminUsersEmailContainsCreatedDescFound {
|
|
400
|
+
readonly outcome: "Found";
|
|
401
|
+
readonly users: ReadonlyArray<{
|
|
402
|
+
readonly organization_id: string;
|
|
403
|
+
readonly user_id: string;
|
|
404
|
+
readonly name: string;
|
|
405
|
+
readonly email: string;
|
|
406
|
+
readonly email_verified: boolean;
|
|
407
|
+
readonly image: string | null;
|
|
408
|
+
readonly created_at: {
|
|
409
|
+
readonly seconds: bigint;
|
|
410
|
+
readonly nanos: number;
|
|
411
|
+
};
|
|
412
|
+
readonly updated_at: {
|
|
413
|
+
readonly seconds: bigint;
|
|
414
|
+
readonly nanos: number;
|
|
415
|
+
};
|
|
416
|
+
readonly revision: bigint;
|
|
417
|
+
readonly date_field: {
|
|
418
|
+
readonly seconds: bigint;
|
|
419
|
+
readonly nanos: number;
|
|
420
|
+
} | null;
|
|
421
|
+
readonly locale: string | null;
|
|
422
|
+
readonly two_factor_enabled: boolean | null;
|
|
423
|
+
}>;
|
|
424
|
+
readonly total: {
|
|
425
|
+
readonly value: bigint;
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
export type AdminUsersEmailContainsCreatedDescResult = AdminUsersEmailContainsCreatedDescFound;
|
|
429
|
+
export declare function isAdminUsersEmailContainsCreatedDescFound(value: AdminUsersEmailContainsCreatedDescResult): value is AdminUsersEmailContainsCreatedDescFound;
|
|
430
|
+
export declare function unwrapAdminUsersEmailContainsCreatedDescFound(value: AdminUsersEmailContainsCreatedDescResult | TypedQueryResult<AdminUsersEmailContainsCreatedDescResult>): AdminUsersEmailContainsCreatedDescFound;
|
|
431
|
+
export declare function adminUsersEmailContainsCreatedDesc(parameters: AdminUsersEmailContainsCreatedDescParams): NamedQueryRequest<AdminUsersEmailContainsCreatedDescParams, AdminUsersEmailContainsCreatedDescResult>;
|
|
432
|
+
export declare const ADMIN_USERS_EMAIL_CONTAINS_IMAGE_ASC_QUERY_PLAN_HASH: "d5d11328e1637fc8842f8776eebfbd85461400de177ba023c17f0db3763d498d";
|
|
433
|
+
export interface AdminUsersEmailContainsImageAscParams {
|
|
434
|
+
readonly organization_id: string;
|
|
435
|
+
readonly needle: string;
|
|
436
|
+
readonly user_id?: string | null;
|
|
437
|
+
readonly limit?: number;
|
|
438
|
+
readonly offset?: bigint;
|
|
439
|
+
}
|
|
440
|
+
export interface AdminUsersEmailContainsImageAscFound {
|
|
441
|
+
readonly outcome: "Found";
|
|
442
|
+
readonly users: ReadonlyArray<{
|
|
443
|
+
readonly organization_id: string;
|
|
444
|
+
readonly user_id: string;
|
|
445
|
+
readonly name: string;
|
|
446
|
+
readonly email: string;
|
|
447
|
+
readonly email_verified: boolean;
|
|
448
|
+
readonly image: string | null;
|
|
449
|
+
readonly created_at: {
|
|
450
|
+
readonly seconds: bigint;
|
|
451
|
+
readonly nanos: number;
|
|
452
|
+
};
|
|
453
|
+
readonly updated_at: {
|
|
454
|
+
readonly seconds: bigint;
|
|
455
|
+
readonly nanos: number;
|
|
456
|
+
};
|
|
457
|
+
readonly revision: bigint;
|
|
458
|
+
readonly date_field: {
|
|
459
|
+
readonly seconds: bigint;
|
|
460
|
+
readonly nanos: number;
|
|
461
|
+
} | null;
|
|
462
|
+
readonly locale: string | null;
|
|
463
|
+
readonly two_factor_enabled: boolean | null;
|
|
464
|
+
}>;
|
|
465
|
+
readonly total: {
|
|
466
|
+
readonly value: bigint;
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
export type AdminUsersEmailContainsImageAscResult = AdminUsersEmailContainsImageAscFound;
|
|
470
|
+
export declare function isAdminUsersEmailContainsImageAscFound(value: AdminUsersEmailContainsImageAscResult): value is AdminUsersEmailContainsImageAscFound;
|
|
471
|
+
export declare function unwrapAdminUsersEmailContainsImageAscFound(value: AdminUsersEmailContainsImageAscResult | TypedQueryResult<AdminUsersEmailContainsImageAscResult>): AdminUsersEmailContainsImageAscFound;
|
|
472
|
+
export declare function adminUsersEmailContainsImageAsc(parameters: AdminUsersEmailContainsImageAscParams): NamedQueryRequest<AdminUsersEmailContainsImageAscParams, AdminUsersEmailContainsImageAscResult>;
|
|
473
|
+
export declare const ADMIN_USERS_ENDS_WITH_ASC_QUERY_PLAN_HASH: "b3d822f71ba5e6e7a03a14fcc611664d8b4cb8cf5d4756fd046070559f43f86c";
|
|
474
|
+
export interface AdminUsersEndsWithAscParams {
|
|
475
|
+
readonly organization_id: string;
|
|
476
|
+
readonly needle: string;
|
|
477
|
+
readonly user_id?: string | null;
|
|
478
|
+
readonly limit?: number;
|
|
479
|
+
readonly offset?: bigint;
|
|
480
|
+
}
|
|
481
|
+
export interface AdminUsersEndsWithAscFound {
|
|
482
|
+
readonly outcome: "Found";
|
|
483
|
+
readonly users: ReadonlyArray<{
|
|
484
|
+
readonly organization_id: string;
|
|
485
|
+
readonly user_id: string;
|
|
486
|
+
readonly name: string;
|
|
487
|
+
readonly email: string;
|
|
488
|
+
readonly email_verified: boolean;
|
|
489
|
+
readonly image: string | null;
|
|
490
|
+
readonly created_at: {
|
|
491
|
+
readonly seconds: bigint;
|
|
492
|
+
readonly nanos: number;
|
|
493
|
+
};
|
|
494
|
+
readonly updated_at: {
|
|
495
|
+
readonly seconds: bigint;
|
|
496
|
+
readonly nanos: number;
|
|
497
|
+
};
|
|
498
|
+
readonly revision: bigint;
|
|
499
|
+
readonly date_field: {
|
|
500
|
+
readonly seconds: bigint;
|
|
501
|
+
readonly nanos: number;
|
|
502
|
+
} | null;
|
|
503
|
+
readonly locale: string | null;
|
|
504
|
+
readonly two_factor_enabled: boolean | null;
|
|
505
|
+
}>;
|
|
506
|
+
readonly total: {
|
|
507
|
+
readonly value: bigint;
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
export type AdminUsersEndsWithAscResult = AdminUsersEndsWithAscFound;
|
|
511
|
+
export declare function isAdminUsersEndsWithAscFound(value: AdminUsersEndsWithAscResult): value is AdminUsersEndsWithAscFound;
|
|
512
|
+
export declare function unwrapAdminUsersEndsWithAscFound(value: AdminUsersEndsWithAscResult | TypedQueryResult<AdminUsersEndsWithAscResult>): AdminUsersEndsWithAscFound;
|
|
513
|
+
export declare function adminUsersEndsWithAsc(parameters: AdminUsersEndsWithAscParams): NamedQueryRequest<AdminUsersEndsWithAscParams, AdminUsersEndsWithAscResult>;
|
|
514
|
+
export declare const ADMIN_USERS_ENDS_WITH_DESC_QUERY_PLAN_HASH: "1eb313896d94e507c512179a2164abf134209974392f81e8125a9cbfcaff9dbc";
|
|
515
|
+
export interface AdminUsersEndsWithDescParams {
|
|
516
|
+
readonly organization_id: string;
|
|
517
|
+
readonly needle: string;
|
|
518
|
+
readonly user_id?: string | null;
|
|
519
|
+
readonly limit?: number;
|
|
520
|
+
readonly offset?: bigint;
|
|
521
|
+
}
|
|
522
|
+
export interface AdminUsersEndsWithDescFound {
|
|
523
|
+
readonly outcome: "Found";
|
|
524
|
+
readonly users: ReadonlyArray<{
|
|
525
|
+
readonly organization_id: string;
|
|
526
|
+
readonly user_id: string;
|
|
527
|
+
readonly name: string;
|
|
528
|
+
readonly email: string;
|
|
529
|
+
readonly email_verified: boolean;
|
|
530
|
+
readonly image: string | null;
|
|
531
|
+
readonly created_at: {
|
|
532
|
+
readonly seconds: bigint;
|
|
533
|
+
readonly nanos: number;
|
|
534
|
+
};
|
|
535
|
+
readonly updated_at: {
|
|
536
|
+
readonly seconds: bigint;
|
|
537
|
+
readonly nanos: number;
|
|
538
|
+
};
|
|
539
|
+
readonly revision: bigint;
|
|
540
|
+
readonly date_field: {
|
|
541
|
+
readonly seconds: bigint;
|
|
542
|
+
readonly nanos: number;
|
|
543
|
+
} | null;
|
|
544
|
+
readonly locale: string | null;
|
|
545
|
+
readonly two_factor_enabled: boolean | null;
|
|
546
|
+
}>;
|
|
547
|
+
readonly total: {
|
|
548
|
+
readonly value: bigint;
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
export type AdminUsersEndsWithDescResult = AdminUsersEndsWithDescFound;
|
|
552
|
+
export declare function isAdminUsersEndsWithDescFound(value: AdminUsersEndsWithDescResult): value is AdminUsersEndsWithDescFound;
|
|
553
|
+
export declare function unwrapAdminUsersEndsWithDescFound(value: AdminUsersEndsWithDescResult | TypedQueryResult<AdminUsersEndsWithDescResult>): AdminUsersEndsWithDescFound;
|
|
554
|
+
export declare function adminUsersEndsWithDesc(parameters: AdminUsersEndsWithDescParams): NamedQueryRequest<AdminUsersEndsWithDescParams, AdminUsersEndsWithDescResult>;
|
|
555
|
+
export declare const ADMIN_USERS_STARTS_WITH_ASC_QUERY_PLAN_HASH: "726e3898a7c3c3b44ef5356862d453c72379b6ad4e5f36ea37b9536af6ea3451";
|
|
556
|
+
export interface AdminUsersStartsWithAscParams {
|
|
557
|
+
readonly organization_id: string;
|
|
558
|
+
readonly needle: string;
|
|
559
|
+
readonly user_id?: string | null;
|
|
560
|
+
readonly limit?: number;
|
|
561
|
+
readonly offset?: bigint;
|
|
562
|
+
}
|
|
563
|
+
export interface AdminUsersStartsWithAscFound {
|
|
564
|
+
readonly outcome: "Found";
|
|
565
|
+
readonly users: ReadonlyArray<{
|
|
566
|
+
readonly organization_id: string;
|
|
567
|
+
readonly user_id: string;
|
|
568
|
+
readonly name: string;
|
|
569
|
+
readonly email: string;
|
|
570
|
+
readonly email_verified: boolean;
|
|
571
|
+
readonly image: string | null;
|
|
572
|
+
readonly created_at: {
|
|
573
|
+
readonly seconds: bigint;
|
|
574
|
+
readonly nanos: number;
|
|
575
|
+
};
|
|
576
|
+
readonly updated_at: {
|
|
577
|
+
readonly seconds: bigint;
|
|
578
|
+
readonly nanos: number;
|
|
579
|
+
};
|
|
580
|
+
readonly revision: bigint;
|
|
581
|
+
readonly date_field: {
|
|
582
|
+
readonly seconds: bigint;
|
|
583
|
+
readonly nanos: number;
|
|
584
|
+
} | null;
|
|
585
|
+
readonly locale: string | null;
|
|
586
|
+
readonly two_factor_enabled: boolean | null;
|
|
587
|
+
}>;
|
|
588
|
+
readonly total: {
|
|
589
|
+
readonly value: bigint;
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
export type AdminUsersStartsWithAscResult = AdminUsersStartsWithAscFound;
|
|
593
|
+
export declare function isAdminUsersStartsWithAscFound(value: AdminUsersStartsWithAscResult): value is AdminUsersStartsWithAscFound;
|
|
594
|
+
export declare function unwrapAdminUsersStartsWithAscFound(value: AdminUsersStartsWithAscResult | TypedQueryResult<AdminUsersStartsWithAscResult>): AdminUsersStartsWithAscFound;
|
|
595
|
+
export declare function adminUsersStartsWithAsc(parameters: AdminUsersStartsWithAscParams): NamedQueryRequest<AdminUsersStartsWithAscParams, AdminUsersStartsWithAscResult>;
|
|
596
|
+
export declare const ADMIN_USERS_STARTS_WITH_DESC_QUERY_PLAN_HASH: "c28416ba1edbe0e1aadedbbe39dec64188e7e8ce1f5fbcc9ff08b54db45af8a2";
|
|
597
|
+
export interface AdminUsersStartsWithDescParams {
|
|
598
|
+
readonly organization_id: string;
|
|
599
|
+
readonly needle: string;
|
|
600
|
+
readonly user_id?: string | null;
|
|
601
|
+
readonly limit?: number;
|
|
602
|
+
readonly offset?: bigint;
|
|
603
|
+
}
|
|
604
|
+
export interface AdminUsersStartsWithDescFound {
|
|
605
|
+
readonly outcome: "Found";
|
|
606
|
+
readonly users: ReadonlyArray<{
|
|
607
|
+
readonly organization_id: string;
|
|
608
|
+
readonly user_id: string;
|
|
609
|
+
readonly name: string;
|
|
610
|
+
readonly email: string;
|
|
611
|
+
readonly email_verified: boolean;
|
|
612
|
+
readonly image: string | null;
|
|
613
|
+
readonly created_at: {
|
|
614
|
+
readonly seconds: bigint;
|
|
615
|
+
readonly nanos: number;
|
|
616
|
+
};
|
|
617
|
+
readonly updated_at: {
|
|
618
|
+
readonly seconds: bigint;
|
|
619
|
+
readonly nanos: number;
|
|
620
|
+
};
|
|
621
|
+
readonly revision: bigint;
|
|
622
|
+
readonly date_field: {
|
|
623
|
+
readonly seconds: bigint;
|
|
624
|
+
readonly nanos: number;
|
|
625
|
+
} | null;
|
|
626
|
+
readonly locale: string | null;
|
|
627
|
+
readonly two_factor_enabled: boolean | null;
|
|
628
|
+
}>;
|
|
629
|
+
readonly total: {
|
|
630
|
+
readonly value: bigint;
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
export type AdminUsersStartsWithDescResult = AdminUsersStartsWithDescFound;
|
|
634
|
+
export declare function isAdminUsersStartsWithDescFound(value: AdminUsersStartsWithDescResult): value is AdminUsersStartsWithDescFound;
|
|
635
|
+
export declare function unwrapAdminUsersStartsWithDescFound(value: AdminUsersStartsWithDescResult | TypedQueryResult<AdminUsersStartsWithDescResult>): AdminUsersStartsWithDescFound;
|
|
636
|
+
export declare function adminUsersStartsWithDesc(parameters: AdminUsersStartsWithDescParams): NamedQueryRequest<AdminUsersStartsWithDescParams, AdminUsersStartsWithDescResult>;
|
|
637
|
+
export declare const FIND_ACCOUNT_BY_ID_QUERY_PLAN_HASH: "8c09d295cfaadcd1ff75be3c1c73249573aea7b30e29a104c8872372af8ac3e1";
|
|
638
|
+
export declare const FIND_ACCOUNT_BY_ID_SECRET_OUTPUTS: readonly [{
|
|
639
|
+
readonly query: "FindAccountById";
|
|
640
|
+
readonly entity: "Account";
|
|
641
|
+
readonly field: "access_token";
|
|
642
|
+
}, {
|
|
643
|
+
readonly query: "FindAccountById";
|
|
644
|
+
readonly entity: "Account";
|
|
645
|
+
readonly field: "refresh_token";
|
|
646
|
+
}, {
|
|
647
|
+
readonly query: "FindAccountById";
|
|
648
|
+
readonly entity: "Account";
|
|
649
|
+
readonly field: "id_token";
|
|
650
|
+
}, {
|
|
651
|
+
readonly query: "FindAccountById";
|
|
652
|
+
readonly entity: "Account";
|
|
653
|
+
readonly field: "password";
|
|
654
|
+
}];
|
|
655
|
+
export interface FindAccountByIdParams {
|
|
656
|
+
readonly organization_id: string;
|
|
657
|
+
readonly id: string;
|
|
658
|
+
}
|
|
659
|
+
export interface FindAccountByIdFound {
|
|
660
|
+
readonly outcome: "Found";
|
|
661
|
+
readonly accounts: ReadonlyArray<{
|
|
662
|
+
readonly id: string;
|
|
663
|
+
readonly user_id: string;
|
|
664
|
+
readonly account_id: string;
|
|
665
|
+
readonly provider_id: string;
|
|
666
|
+
readonly access_token: string | null;
|
|
667
|
+
readonly refresh_token: string | null;
|
|
668
|
+
readonly access_token_expires_at: {
|
|
669
|
+
readonly seconds: bigint;
|
|
670
|
+
readonly nanos: number;
|
|
671
|
+
} | null;
|
|
672
|
+
readonly refresh_token_expires_at: {
|
|
673
|
+
readonly seconds: bigint;
|
|
674
|
+
readonly nanos: number;
|
|
675
|
+
} | null;
|
|
676
|
+
readonly scope: string | null;
|
|
677
|
+
readonly id_token: string | null;
|
|
678
|
+
readonly password: string | null;
|
|
679
|
+
readonly created_at: {
|
|
680
|
+
readonly seconds: bigint;
|
|
681
|
+
readonly nanos: number;
|
|
682
|
+
};
|
|
683
|
+
readonly updated_at: {
|
|
684
|
+
readonly seconds: bigint;
|
|
685
|
+
readonly nanos: number;
|
|
686
|
+
};
|
|
687
|
+
readonly revision: bigint;
|
|
688
|
+
}>;
|
|
689
|
+
}
|
|
690
|
+
export type FindAccountByIdResult = FindAccountByIdFound;
|
|
691
|
+
export declare function isFindAccountByIdFound(value: FindAccountByIdResult): value is FindAccountByIdFound;
|
|
692
|
+
export declare function unwrapFindAccountByIdFound(value: FindAccountByIdResult | TypedQueryResult<FindAccountByIdResult>): FindAccountByIdFound;
|
|
693
|
+
export declare function redactFindAccountByIdResult(value: FindAccountByIdResult): {
|
|
694
|
+
readonly outcome: string;
|
|
695
|
+
readonly redactedSecretOutputs: typeof FIND_ACCOUNT_BY_ID_SECRET_OUTPUTS;
|
|
696
|
+
};
|
|
697
|
+
export declare function findAccountById(parameters: FindAccountByIdParams): NamedQueryRequest<FindAccountByIdParams, FindAccountByIdResult>;
|
|
698
|
+
export declare const FIND_ACCOUNT_BY_PROVIDER_QUERY_PLAN_HASH: "fd63b52226999f3ca2769ecf6dbdc336d982781195be89f4c4596fd8fb5f38b3";
|
|
699
|
+
export declare const FIND_ACCOUNT_BY_PROVIDER_SECRET_OUTPUTS: readonly [{
|
|
700
|
+
readonly query: "FindAccountByProvider";
|
|
701
|
+
readonly entity: "Account";
|
|
702
|
+
readonly field: "access_token";
|
|
703
|
+
}, {
|
|
704
|
+
readonly query: "FindAccountByProvider";
|
|
705
|
+
readonly entity: "Account";
|
|
706
|
+
readonly field: "refresh_token";
|
|
707
|
+
}, {
|
|
708
|
+
readonly query: "FindAccountByProvider";
|
|
709
|
+
readonly entity: "Account";
|
|
710
|
+
readonly field: "id_token";
|
|
711
|
+
}, {
|
|
712
|
+
readonly query: "FindAccountByProvider";
|
|
713
|
+
readonly entity: "Account";
|
|
714
|
+
readonly field: "password";
|
|
715
|
+
}];
|
|
716
|
+
export interface FindAccountByProviderParams {
|
|
717
|
+
readonly organization_id: string;
|
|
718
|
+
readonly account_id: string;
|
|
719
|
+
readonly provider_id: string;
|
|
720
|
+
}
|
|
721
|
+
export interface FindAccountByProviderFound {
|
|
722
|
+
readonly outcome: "Found";
|
|
723
|
+
readonly accounts: ReadonlyArray<{
|
|
724
|
+
readonly id: string;
|
|
725
|
+
readonly user_id: string;
|
|
726
|
+
readonly account_id: string;
|
|
727
|
+
readonly provider_id: string;
|
|
728
|
+
readonly access_token: string | null;
|
|
729
|
+
readonly refresh_token: string | null;
|
|
730
|
+
readonly access_token_expires_at: {
|
|
731
|
+
readonly seconds: bigint;
|
|
732
|
+
readonly nanos: number;
|
|
733
|
+
} | null;
|
|
734
|
+
readonly refresh_token_expires_at: {
|
|
735
|
+
readonly seconds: bigint;
|
|
736
|
+
readonly nanos: number;
|
|
737
|
+
} | null;
|
|
738
|
+
readonly scope: string | null;
|
|
739
|
+
readonly id_token: string | null;
|
|
740
|
+
readonly password: string | null;
|
|
741
|
+
readonly created_at: {
|
|
742
|
+
readonly seconds: bigint;
|
|
743
|
+
readonly nanos: number;
|
|
744
|
+
};
|
|
745
|
+
readonly updated_at: {
|
|
746
|
+
readonly seconds: bigint;
|
|
747
|
+
readonly nanos: number;
|
|
748
|
+
};
|
|
749
|
+
readonly revision: bigint;
|
|
750
|
+
}>;
|
|
751
|
+
}
|
|
752
|
+
export type FindAccountByProviderResult = FindAccountByProviderFound;
|
|
753
|
+
export declare function isFindAccountByProviderFound(value: FindAccountByProviderResult): value is FindAccountByProviderFound;
|
|
754
|
+
export declare function unwrapFindAccountByProviderFound(value: FindAccountByProviderResult | TypedQueryResult<FindAccountByProviderResult>): FindAccountByProviderFound;
|
|
755
|
+
export declare function redactFindAccountByProviderResult(value: FindAccountByProviderResult): {
|
|
756
|
+
readonly outcome: string;
|
|
757
|
+
readonly redactedSecretOutputs: typeof FIND_ACCOUNT_BY_PROVIDER_SECRET_OUTPUTS;
|
|
758
|
+
};
|
|
759
|
+
export declare function findAccountByProvider(parameters: FindAccountByProviderParams): NamedQueryRequest<FindAccountByProviderParams, FindAccountByProviderResult>;
|
|
760
|
+
export declare const FIND_ACCOUNTS_BY_USER_ID_QUERY_PLAN_HASH: "00b1598eba893bcd29ff91e388f442ec69b2264882c1da8ee1f428a1100ac860";
|
|
761
|
+
export declare const FIND_ACCOUNTS_BY_USER_ID_SECRET_OUTPUTS: readonly [{
|
|
762
|
+
readonly query: "FindAccountsByUserId";
|
|
763
|
+
readonly entity: "Account";
|
|
764
|
+
readonly field: "access_token";
|
|
765
|
+
}, {
|
|
766
|
+
readonly query: "FindAccountsByUserId";
|
|
767
|
+
readonly entity: "Account";
|
|
768
|
+
readonly field: "refresh_token";
|
|
769
|
+
}, {
|
|
770
|
+
readonly query: "FindAccountsByUserId";
|
|
771
|
+
readonly entity: "Account";
|
|
772
|
+
readonly field: "id_token";
|
|
773
|
+
}, {
|
|
774
|
+
readonly query: "FindAccountsByUserId";
|
|
775
|
+
readonly entity: "Account";
|
|
776
|
+
readonly field: "password";
|
|
777
|
+
}];
|
|
778
|
+
export interface FindAccountsByUserIdParams {
|
|
779
|
+
readonly organization_id: string;
|
|
780
|
+
readonly user_id: string;
|
|
781
|
+
readonly after?: string | null;
|
|
782
|
+
}
|
|
783
|
+
export interface FindAccountsByUserIdFound {
|
|
784
|
+
readonly outcome: "Found";
|
|
785
|
+
readonly accounts: ReadonlyArray<{
|
|
786
|
+
readonly id: string;
|
|
787
|
+
readonly user_id: string;
|
|
788
|
+
readonly account_id: string;
|
|
789
|
+
readonly provider_id: string;
|
|
790
|
+
readonly access_token: string | null;
|
|
791
|
+
readonly refresh_token: string | null;
|
|
792
|
+
readonly access_token_expires_at: {
|
|
793
|
+
readonly seconds: bigint;
|
|
794
|
+
readonly nanos: number;
|
|
795
|
+
} | null;
|
|
796
|
+
readonly refresh_token_expires_at: {
|
|
797
|
+
readonly seconds: bigint;
|
|
798
|
+
readonly nanos: number;
|
|
799
|
+
} | null;
|
|
800
|
+
readonly scope: string | null;
|
|
801
|
+
readonly id_token: string | null;
|
|
802
|
+
readonly password: string | null;
|
|
803
|
+
readonly created_at: {
|
|
804
|
+
readonly seconds: bigint;
|
|
805
|
+
readonly nanos: number;
|
|
806
|
+
};
|
|
807
|
+
readonly updated_at: {
|
|
808
|
+
readonly seconds: bigint;
|
|
809
|
+
readonly nanos: number;
|
|
810
|
+
};
|
|
811
|
+
readonly revision: bigint;
|
|
812
|
+
}>;
|
|
813
|
+
}
|
|
814
|
+
export type FindAccountsByUserIdResult = FindAccountsByUserIdFound;
|
|
815
|
+
export declare function isFindAccountsByUserIdFound(value: FindAccountsByUserIdResult): value is FindAccountsByUserIdFound;
|
|
816
|
+
export declare function unwrapFindAccountsByUserIdFound(value: FindAccountsByUserIdResult | TypedQueryResult<FindAccountsByUserIdResult>): FindAccountsByUserIdFound;
|
|
817
|
+
export declare function redactFindAccountsByUserIdResult(value: FindAccountsByUserIdResult): {
|
|
818
|
+
readonly outcome: string;
|
|
819
|
+
readonly redactedSecretOutputs: typeof FIND_ACCOUNTS_BY_USER_ID_SECRET_OUTPUTS;
|
|
820
|
+
};
|
|
821
|
+
export declare function findAccountsByUserId(parameters: FindAccountsByUserIdParams): NamedQueryRequest<FindAccountsByUserIdParams, FindAccountsByUserIdResult>;
|
|
822
|
+
export declare const FIND_ACCOUNTS_BY_USER_PROVIDER_QUERY_PLAN_HASH: "48fc032895e3d1d2440d1d91e51b266c628f23c9f0747b5e0348d6f37ce6e725";
|
|
823
|
+
export declare const FIND_ACCOUNTS_BY_USER_PROVIDER_SECRET_OUTPUTS: readonly [{
|
|
824
|
+
readonly query: "FindAccountsByUserProvider";
|
|
825
|
+
readonly entity: "Account";
|
|
826
|
+
readonly field: "access_token";
|
|
827
|
+
}, {
|
|
828
|
+
readonly query: "FindAccountsByUserProvider";
|
|
829
|
+
readonly entity: "Account";
|
|
830
|
+
readonly field: "refresh_token";
|
|
831
|
+
}, {
|
|
832
|
+
readonly query: "FindAccountsByUserProvider";
|
|
833
|
+
readonly entity: "Account";
|
|
834
|
+
readonly field: "id_token";
|
|
835
|
+
}, {
|
|
836
|
+
readonly query: "FindAccountsByUserProvider";
|
|
837
|
+
readonly entity: "Account";
|
|
838
|
+
readonly field: "password";
|
|
839
|
+
}];
|
|
840
|
+
export interface FindAccountsByUserProviderParams {
|
|
841
|
+
readonly organization_id: string;
|
|
842
|
+
readonly user_id: string;
|
|
843
|
+
readonly provider_id: string;
|
|
844
|
+
readonly after?: string | null;
|
|
845
|
+
}
|
|
846
|
+
export interface FindAccountsByUserProviderFound {
|
|
847
|
+
readonly outcome: "Found";
|
|
848
|
+
readonly accounts: ReadonlyArray<{
|
|
849
|
+
readonly id: string;
|
|
850
|
+
readonly user_id: string;
|
|
851
|
+
readonly account_id: string;
|
|
852
|
+
readonly provider_id: string;
|
|
853
|
+
readonly access_token: string | null;
|
|
854
|
+
readonly refresh_token: string | null;
|
|
855
|
+
readonly access_token_expires_at: {
|
|
856
|
+
readonly seconds: bigint;
|
|
857
|
+
readonly nanos: number;
|
|
858
|
+
} | null;
|
|
859
|
+
readonly refresh_token_expires_at: {
|
|
860
|
+
readonly seconds: bigint;
|
|
861
|
+
readonly nanos: number;
|
|
862
|
+
} | null;
|
|
863
|
+
readonly scope: string | null;
|
|
864
|
+
readonly id_token: string | null;
|
|
865
|
+
readonly password: string | null;
|
|
866
|
+
readonly created_at: {
|
|
867
|
+
readonly seconds: bigint;
|
|
868
|
+
readonly nanos: number;
|
|
869
|
+
};
|
|
870
|
+
readonly updated_at: {
|
|
871
|
+
readonly seconds: bigint;
|
|
872
|
+
readonly nanos: number;
|
|
873
|
+
};
|
|
874
|
+
readonly revision: bigint;
|
|
875
|
+
}>;
|
|
876
|
+
}
|
|
877
|
+
export type FindAccountsByUserProviderResult = FindAccountsByUserProviderFound;
|
|
878
|
+
export declare function isFindAccountsByUserProviderFound(value: FindAccountsByUserProviderResult): value is FindAccountsByUserProviderFound;
|
|
879
|
+
export declare function unwrapFindAccountsByUserProviderFound(value: FindAccountsByUserProviderResult | TypedQueryResult<FindAccountsByUserProviderResult>): FindAccountsByUserProviderFound;
|
|
880
|
+
export declare function redactFindAccountsByUserProviderResult(value: FindAccountsByUserProviderResult): {
|
|
881
|
+
readonly outcome: string;
|
|
882
|
+
readonly redactedSecretOutputs: typeof FIND_ACCOUNTS_BY_USER_PROVIDER_SECRET_OUTPUTS;
|
|
883
|
+
};
|
|
884
|
+
export declare function findAccountsByUserProvider(parameters: FindAccountsByUserProviderParams): NamedQueryRequest<FindAccountsByUserProviderParams, FindAccountsByUserProviderResult>;
|
|
885
|
+
export declare const FIND_ACTIVE_SESSIONS_BY_USER_ID_QUERY_PLAN_HASH: "7bb4c809ab525c70ce0ba7d960f750c6a586d48b551307b5ac644a172d8d506b";
|
|
886
|
+
export declare const FIND_ACTIVE_SESSIONS_BY_USER_ID_SECRET_OUTPUTS: readonly [{
|
|
887
|
+
readonly query: "FindActiveSessionsByUserId";
|
|
888
|
+
readonly entity: "Session";
|
|
889
|
+
readonly field: "token";
|
|
890
|
+
}];
|
|
891
|
+
export interface FindActiveSessionsByUserIdParams {
|
|
892
|
+
readonly organization_id: string;
|
|
893
|
+
readonly user_id: string;
|
|
894
|
+
readonly expires_after: {
|
|
895
|
+
readonly seconds: bigint;
|
|
896
|
+
readonly nanos: number;
|
|
897
|
+
};
|
|
898
|
+
readonly after?: string | null;
|
|
899
|
+
}
|
|
900
|
+
export interface FindActiveSessionsByUserIdFound {
|
|
901
|
+
readonly outcome: "Found";
|
|
902
|
+
readonly sessions: ReadonlyArray<{
|
|
903
|
+
readonly id: string;
|
|
904
|
+
readonly user_id: string;
|
|
905
|
+
readonly token: string;
|
|
906
|
+
readonly expires_at: {
|
|
907
|
+
readonly seconds: bigint;
|
|
908
|
+
readonly nanos: number;
|
|
909
|
+
};
|
|
910
|
+
readonly ip_address: string | null;
|
|
911
|
+
readonly user_agent: string | null;
|
|
912
|
+
readonly created_at: {
|
|
913
|
+
readonly seconds: bigint;
|
|
914
|
+
readonly nanos: number;
|
|
915
|
+
};
|
|
916
|
+
readonly updated_at: {
|
|
917
|
+
readonly seconds: bigint;
|
|
918
|
+
readonly nanos: number;
|
|
919
|
+
};
|
|
920
|
+
readonly revision: bigint;
|
|
921
|
+
readonly active_organization_id: string | null;
|
|
922
|
+
}>;
|
|
923
|
+
}
|
|
924
|
+
export type FindActiveSessionsByUserIdResult = FindActiveSessionsByUserIdFound;
|
|
925
|
+
export declare function isFindActiveSessionsByUserIdFound(value: FindActiveSessionsByUserIdResult): value is FindActiveSessionsByUserIdFound;
|
|
926
|
+
export declare function unwrapFindActiveSessionsByUserIdFound(value: FindActiveSessionsByUserIdResult | TypedQueryResult<FindActiveSessionsByUserIdResult>): FindActiveSessionsByUserIdFound;
|
|
927
|
+
export declare function redactFindActiveSessionsByUserIdResult(value: FindActiveSessionsByUserIdResult): {
|
|
928
|
+
readonly outcome: string;
|
|
929
|
+
readonly redactedSecretOutputs: typeof FIND_ACTIVE_SESSIONS_BY_USER_ID_SECRET_OUTPUTS;
|
|
930
|
+
};
|
|
931
|
+
export declare function findActiveSessionsByUserId(parameters: FindActiveSessionsByUserIdParams): NamedQueryRequest<FindActiveSessionsByUserIdParams, FindActiveSessionsByUserIdResult>;
|
|
932
|
+
export declare const FIND_CREDENTIAL_ACCOUNT_QUERY_PLAN_HASH: "19fd8ab92ef24146ec7099eed3d19611de778bc94e319a61013ca0dcd853cdd0";
|
|
933
|
+
export declare const FIND_CREDENTIAL_ACCOUNT_SECRET_OUTPUTS: readonly [{
|
|
934
|
+
readonly query: "FindCredentialAccount";
|
|
935
|
+
readonly entity: "Account";
|
|
936
|
+
readonly field: "access_token";
|
|
937
|
+
}, {
|
|
938
|
+
readonly query: "FindCredentialAccount";
|
|
939
|
+
readonly entity: "Account";
|
|
940
|
+
readonly field: "refresh_token";
|
|
941
|
+
}, {
|
|
942
|
+
readonly query: "FindCredentialAccount";
|
|
943
|
+
readonly entity: "Account";
|
|
944
|
+
readonly field: "id_token";
|
|
945
|
+
}, {
|
|
946
|
+
readonly query: "FindCredentialAccount";
|
|
947
|
+
readonly entity: "Account";
|
|
948
|
+
readonly field: "password";
|
|
949
|
+
}];
|
|
950
|
+
export interface FindCredentialAccountParams {
|
|
951
|
+
readonly organization_id: string;
|
|
952
|
+
readonly user_id: string;
|
|
953
|
+
readonly account_id: string;
|
|
954
|
+
readonly provider_id: string;
|
|
955
|
+
}
|
|
956
|
+
export interface FindCredentialAccountFound {
|
|
957
|
+
readonly outcome: "Found";
|
|
958
|
+
readonly accounts: ReadonlyArray<{
|
|
959
|
+
readonly organization_id: string;
|
|
960
|
+
readonly user_id: string;
|
|
961
|
+
readonly id: string;
|
|
962
|
+
readonly account_id: string;
|
|
963
|
+
readonly provider_id: string;
|
|
964
|
+
readonly access_token: string | null;
|
|
965
|
+
readonly refresh_token: string | null;
|
|
966
|
+
readonly id_token: string | null;
|
|
967
|
+
readonly password: string | null;
|
|
968
|
+
readonly access_token_expires_at: {
|
|
969
|
+
readonly seconds: bigint;
|
|
970
|
+
readonly nanos: number;
|
|
971
|
+
} | null;
|
|
972
|
+
readonly refresh_token_expires_at: {
|
|
973
|
+
readonly seconds: bigint;
|
|
974
|
+
readonly nanos: number;
|
|
975
|
+
} | null;
|
|
976
|
+
readonly scope: string | null;
|
|
977
|
+
readonly created_at: {
|
|
978
|
+
readonly seconds: bigint;
|
|
979
|
+
readonly nanos: number;
|
|
980
|
+
};
|
|
981
|
+
readonly updated_at: {
|
|
982
|
+
readonly seconds: bigint;
|
|
983
|
+
readonly nanos: number;
|
|
984
|
+
};
|
|
985
|
+
readonly revision: bigint;
|
|
986
|
+
}>;
|
|
987
|
+
}
|
|
988
|
+
export type FindCredentialAccountResult = FindCredentialAccountFound;
|
|
989
|
+
export declare function isFindCredentialAccountFound(value: FindCredentialAccountResult): value is FindCredentialAccountFound;
|
|
990
|
+
export declare function unwrapFindCredentialAccountFound(value: FindCredentialAccountResult | TypedQueryResult<FindCredentialAccountResult>): FindCredentialAccountFound;
|
|
991
|
+
export declare function redactFindCredentialAccountResult(value: FindCredentialAccountResult): {
|
|
992
|
+
readonly outcome: string;
|
|
993
|
+
readonly redactedSecretOutputs: typeof FIND_CREDENTIAL_ACCOUNT_SECRET_OUTPUTS;
|
|
994
|
+
};
|
|
995
|
+
export declare function findCredentialAccount(parameters: FindCredentialAccountParams): NamedQueryRequest<FindCredentialAccountParams, FindCredentialAccountResult>;
|
|
996
|
+
export declare const FIND_EXPIRED_VERIFICATION_IDS_QUERY_PLAN_HASH: "5057887f5afaeefff62910ba33bcd5f53d128df431878a09101981c48ffba5e6";
|
|
997
|
+
export interface FindExpiredVerificationIdsParams {
|
|
998
|
+
readonly organization_id: string;
|
|
999
|
+
readonly expires_before: {
|
|
1000
|
+
readonly seconds: bigint;
|
|
1001
|
+
readonly nanos: number;
|
|
1002
|
+
};
|
|
1003
|
+
readonly after?: string | null;
|
|
1004
|
+
}
|
|
1005
|
+
export interface FindExpiredVerificationIdsFound {
|
|
1006
|
+
readonly outcome: "Found";
|
|
1007
|
+
readonly verifications: ReadonlyArray<{
|
|
1008
|
+
readonly verification_id: string;
|
|
1009
|
+
}>;
|
|
1010
|
+
}
|
|
1011
|
+
export type FindExpiredVerificationIdsResult = FindExpiredVerificationIdsFound;
|
|
1012
|
+
export declare function isFindExpiredVerificationIdsFound(value: FindExpiredVerificationIdsResult): value is FindExpiredVerificationIdsFound;
|
|
1013
|
+
export declare function unwrapFindExpiredVerificationIdsFound(value: FindExpiredVerificationIdsResult | TypedQueryResult<FindExpiredVerificationIdsResult>): FindExpiredVerificationIdsFound;
|
|
1014
|
+
export declare function findExpiredVerificationIds(parameters: FindExpiredVerificationIdsParams): NamedQueryRequest<FindExpiredVerificationIdsParams, FindExpiredVerificationIdsResult>;
|
|
1015
|
+
export declare const FIND_LATEST_VERIFICATION_QUERY_PLAN_HASH: "2836905a47a3e5a1db40cf63048c87eddf1b76ed7e49af8f8195570847a8516e";
|
|
1016
|
+
export declare const FIND_LATEST_VERIFICATION_SECRET_OUTPUTS: readonly [{
|
|
1017
|
+
readonly query: "FindLatestVerification";
|
|
1018
|
+
readonly entity: "Verification";
|
|
1019
|
+
readonly field: "value";
|
|
1020
|
+
}];
|
|
1021
|
+
export interface FindLatestVerificationParams {
|
|
1022
|
+
readonly organization_id: string;
|
|
1023
|
+
readonly identifier: string;
|
|
1024
|
+
}
|
|
1025
|
+
export interface FindLatestVerificationFound {
|
|
1026
|
+
readonly outcome: "Found";
|
|
1027
|
+
readonly verifications: ReadonlyArray<{
|
|
1028
|
+
readonly verification_id: string;
|
|
1029
|
+
readonly identifier: string;
|
|
1030
|
+
readonly value: string;
|
|
1031
|
+
readonly expires_at: {
|
|
1032
|
+
readonly seconds: bigint;
|
|
1033
|
+
readonly nanos: number;
|
|
1034
|
+
};
|
|
1035
|
+
readonly created_at: {
|
|
1036
|
+
readonly seconds: bigint;
|
|
1037
|
+
readonly nanos: number;
|
|
1038
|
+
};
|
|
1039
|
+
readonly updated_at: {
|
|
1040
|
+
readonly seconds: bigint;
|
|
1041
|
+
readonly nanos: number;
|
|
1042
|
+
};
|
|
1043
|
+
readonly revision: bigint;
|
|
1044
|
+
}>;
|
|
1045
|
+
}
|
|
1046
|
+
export type FindLatestVerificationResult = FindLatestVerificationFound;
|
|
1047
|
+
export declare function isFindLatestVerificationFound(value: FindLatestVerificationResult): value is FindLatestVerificationFound;
|
|
1048
|
+
export declare function unwrapFindLatestVerificationFound(value: FindLatestVerificationResult | TypedQueryResult<FindLatestVerificationResult>): FindLatestVerificationFound;
|
|
1049
|
+
export declare function redactFindLatestVerificationResult(value: FindLatestVerificationResult): {
|
|
1050
|
+
readonly outcome: string;
|
|
1051
|
+
readonly redactedSecretOutputs: typeof FIND_LATEST_VERIFICATION_SECRET_OUTPUTS;
|
|
1052
|
+
};
|
|
1053
|
+
export declare function findLatestVerification(parameters: FindLatestVerificationParams): NamedQueryRequest<FindLatestVerificationParams, FindLatestVerificationResult>;
|
|
1054
|
+
export declare const FIND_SESSION_BY_ID_QUERY_PLAN_HASH: "0ee4c48aedd0083442a13b9eb4dcc96038ea7462615acd9df4897eabccfb05e4";
|
|
1055
|
+
export declare const FIND_SESSION_BY_ID_SECRET_OUTPUTS: readonly [{
|
|
1056
|
+
readonly query: "FindSessionById";
|
|
1057
|
+
readonly entity: "Session";
|
|
1058
|
+
readonly field: "token";
|
|
1059
|
+
}];
|
|
1060
|
+
export interface FindSessionByIdParams {
|
|
1061
|
+
readonly organization_id: string;
|
|
1062
|
+
readonly id: string;
|
|
1063
|
+
}
|
|
1064
|
+
export interface FindSessionByIdFound {
|
|
1065
|
+
readonly outcome: "Found";
|
|
1066
|
+
readonly sessions: ReadonlyArray<{
|
|
1067
|
+
readonly id: string;
|
|
1068
|
+
readonly user_id: string;
|
|
1069
|
+
readonly token: string;
|
|
1070
|
+
readonly expires_at: {
|
|
1071
|
+
readonly seconds: bigint;
|
|
1072
|
+
readonly nanos: number;
|
|
1073
|
+
};
|
|
1074
|
+
readonly ip_address: string | null;
|
|
1075
|
+
readonly user_agent: string | null;
|
|
1076
|
+
readonly created_at: {
|
|
1077
|
+
readonly seconds: bigint;
|
|
1078
|
+
readonly nanos: number;
|
|
1079
|
+
};
|
|
1080
|
+
readonly updated_at: {
|
|
1081
|
+
readonly seconds: bigint;
|
|
1082
|
+
readonly nanos: number;
|
|
1083
|
+
};
|
|
1084
|
+
readonly revision: bigint;
|
|
1085
|
+
readonly active_organization_id: string | null;
|
|
1086
|
+
}>;
|
|
1087
|
+
}
|
|
1088
|
+
export type FindSessionByIdResult = FindSessionByIdFound;
|
|
1089
|
+
export declare function isFindSessionByIdFound(value: FindSessionByIdResult): value is FindSessionByIdFound;
|
|
1090
|
+
export declare function unwrapFindSessionByIdFound(value: FindSessionByIdResult | TypedQueryResult<FindSessionByIdResult>): FindSessionByIdFound;
|
|
1091
|
+
export declare function redactFindSessionByIdResult(value: FindSessionByIdResult): {
|
|
1092
|
+
readonly outcome: string;
|
|
1093
|
+
readonly redactedSecretOutputs: typeof FIND_SESSION_BY_ID_SECRET_OUTPUTS;
|
|
1094
|
+
};
|
|
1095
|
+
export declare function findSessionById(parameters: FindSessionByIdParams): NamedQueryRequest<FindSessionByIdParams, FindSessionByIdResult>;
|
|
1096
|
+
export declare const FIND_SESSION_BY_TOKEN_QUERY_PLAN_HASH: "439f1ae158852a98a170ad2693ce672534f22e7adc6e89b222b31d8260dc0671";
|
|
1097
|
+
export declare const FIND_SESSION_BY_TOKEN_SECRET_OUTPUTS: readonly [{
|
|
1098
|
+
readonly query: "FindSessionByToken";
|
|
1099
|
+
readonly entity: "Session";
|
|
1100
|
+
readonly field: "token";
|
|
1101
|
+
}];
|
|
1102
|
+
export interface FindSessionByTokenParams {
|
|
1103
|
+
readonly organization_id: string;
|
|
1104
|
+
readonly token: string;
|
|
1105
|
+
}
|
|
1106
|
+
export interface FindSessionByTokenFound {
|
|
1107
|
+
readonly outcome: "Found";
|
|
1108
|
+
readonly sessions: ReadonlyArray<{
|
|
1109
|
+
readonly id: string;
|
|
1110
|
+
readonly user_id: string;
|
|
1111
|
+
readonly token: string;
|
|
1112
|
+
readonly expires_at: {
|
|
1113
|
+
readonly seconds: bigint;
|
|
1114
|
+
readonly nanos: number;
|
|
1115
|
+
};
|
|
1116
|
+
readonly ip_address: string | null;
|
|
1117
|
+
readonly user_agent: string | null;
|
|
1118
|
+
readonly created_at: {
|
|
1119
|
+
readonly seconds: bigint;
|
|
1120
|
+
readonly nanos: number;
|
|
1121
|
+
};
|
|
1122
|
+
readonly updated_at: {
|
|
1123
|
+
readonly seconds: bigint;
|
|
1124
|
+
readonly nanos: number;
|
|
1125
|
+
};
|
|
1126
|
+
readonly revision: bigint;
|
|
1127
|
+
readonly active_organization_id: string | null;
|
|
1128
|
+
}>;
|
|
1129
|
+
}
|
|
1130
|
+
export type FindSessionByTokenResult = FindSessionByTokenFound;
|
|
1131
|
+
export declare function isFindSessionByTokenFound(value: FindSessionByTokenResult): value is FindSessionByTokenFound;
|
|
1132
|
+
export declare function unwrapFindSessionByTokenFound(value: FindSessionByTokenResult | TypedQueryResult<FindSessionByTokenResult>): FindSessionByTokenFound;
|
|
1133
|
+
export declare function redactFindSessionByTokenResult(value: FindSessionByTokenResult): {
|
|
1134
|
+
readonly outcome: string;
|
|
1135
|
+
readonly redactedSecretOutputs: typeof FIND_SESSION_BY_TOKEN_SECRET_OUTPUTS;
|
|
1136
|
+
};
|
|
1137
|
+
export declare function findSessionByToken(parameters: FindSessionByTokenParams): NamedQueryRequest<FindSessionByTokenParams, FindSessionByTokenResult>;
|
|
1138
|
+
export declare const FIND_SESSIONS_BY_TOKEN_SET_QUERY_PLAN_HASH: "020e52f0fa60c1234334d4e0eaafec1b83d4510e27b518ec6b78b55c0d740dfb";
|
|
1139
|
+
export declare const FIND_SESSIONS_BY_TOKEN_SET_TOKENS_MAX_ITEMS: 32;
|
|
1140
|
+
export declare const FIND_SESSIONS_BY_TOKEN_SET_SECRET_OUTPUTS: readonly [{
|
|
1141
|
+
readonly query: "FindSessionsByTokenSet";
|
|
1142
|
+
readonly entity: "Session";
|
|
1143
|
+
readonly field: "token";
|
|
1144
|
+
}];
|
|
1145
|
+
export interface FindSessionsByTokenSetParams {
|
|
1146
|
+
readonly organization_id: string;
|
|
1147
|
+
readonly tokens: ReadonlyArray<string>;
|
|
1148
|
+
}
|
|
1149
|
+
export interface FindSessionsByTokenSetFound {
|
|
1150
|
+
readonly outcome: "Found";
|
|
1151
|
+
readonly sessions: ReadonlyArray<{
|
|
1152
|
+
readonly id: string;
|
|
1153
|
+
readonly user_id: string;
|
|
1154
|
+
readonly token: string;
|
|
1155
|
+
readonly expires_at: {
|
|
1156
|
+
readonly seconds: bigint;
|
|
1157
|
+
readonly nanos: number;
|
|
1158
|
+
};
|
|
1159
|
+
readonly ip_address: string | null;
|
|
1160
|
+
readonly user_agent: string | null;
|
|
1161
|
+
readonly created_at: {
|
|
1162
|
+
readonly seconds: bigint;
|
|
1163
|
+
readonly nanos: number;
|
|
1164
|
+
};
|
|
1165
|
+
readonly updated_at: {
|
|
1166
|
+
readonly seconds: bigint;
|
|
1167
|
+
readonly nanos: number;
|
|
1168
|
+
};
|
|
1169
|
+
readonly revision: bigint;
|
|
1170
|
+
readonly active_organization_id: string | null;
|
|
1171
|
+
}>;
|
|
1172
|
+
}
|
|
1173
|
+
export type FindSessionsByTokenSetResult = FindSessionsByTokenSetFound;
|
|
1174
|
+
export declare function isFindSessionsByTokenSetFound(value: FindSessionsByTokenSetResult): value is FindSessionsByTokenSetFound;
|
|
1175
|
+
export declare function unwrapFindSessionsByTokenSetFound(value: FindSessionsByTokenSetResult | TypedQueryResult<FindSessionsByTokenSetResult>): FindSessionsByTokenSetFound;
|
|
1176
|
+
export declare function redactFindSessionsByTokenSetResult(value: FindSessionsByTokenSetResult): {
|
|
1177
|
+
readonly outcome: string;
|
|
1178
|
+
readonly redactedSecretOutputs: typeof FIND_SESSIONS_BY_TOKEN_SET_SECRET_OUTPUTS;
|
|
1179
|
+
};
|
|
1180
|
+
export declare function findSessionsByTokenSet(parameters: FindSessionsByTokenSetParams): NamedQueryRequest<FindSessionsByTokenSetParams, FindSessionsByTokenSetResult>;
|
|
1181
|
+
export declare const FIND_SESSIONS_BY_USER_ID_QUERY_PLAN_HASH: "c49bdbda6ec676bb8596aaf587f86bb02daf88f52b23c52fc4a2249c688d29c9";
|
|
1182
|
+
export declare const FIND_SESSIONS_BY_USER_ID_SECRET_OUTPUTS: readonly [{
|
|
1183
|
+
readonly query: "FindSessionsByUserId";
|
|
1184
|
+
readonly entity: "Session";
|
|
1185
|
+
readonly field: "token";
|
|
1186
|
+
}];
|
|
1187
|
+
export interface FindSessionsByUserIdParams {
|
|
1188
|
+
readonly organization_id: string;
|
|
1189
|
+
readonly user_id: string;
|
|
1190
|
+
readonly after?: string | null;
|
|
1191
|
+
}
|
|
1192
|
+
export interface FindSessionsByUserIdFound {
|
|
1193
|
+
readonly outcome: "Found";
|
|
1194
|
+
readonly sessions: ReadonlyArray<{
|
|
1195
|
+
readonly id: string;
|
|
1196
|
+
readonly user_id: string;
|
|
1197
|
+
readonly token: string;
|
|
1198
|
+
readonly expires_at: {
|
|
1199
|
+
readonly seconds: bigint;
|
|
1200
|
+
readonly nanos: number;
|
|
1201
|
+
};
|
|
1202
|
+
readonly ip_address: string | null;
|
|
1203
|
+
readonly user_agent: string | null;
|
|
1204
|
+
readonly created_at: {
|
|
1205
|
+
readonly seconds: bigint;
|
|
1206
|
+
readonly nanos: number;
|
|
1207
|
+
};
|
|
1208
|
+
readonly updated_at: {
|
|
1209
|
+
readonly seconds: bigint;
|
|
1210
|
+
readonly nanos: number;
|
|
1211
|
+
};
|
|
1212
|
+
readonly revision: bigint;
|
|
1213
|
+
readonly active_organization_id: string | null;
|
|
1214
|
+
}>;
|
|
1215
|
+
}
|
|
1216
|
+
export type FindSessionsByUserIdResult = FindSessionsByUserIdFound;
|
|
1217
|
+
export declare function isFindSessionsByUserIdFound(value: FindSessionsByUserIdResult): value is FindSessionsByUserIdFound;
|
|
1218
|
+
export declare function unwrapFindSessionsByUserIdFound(value: FindSessionsByUserIdResult | TypedQueryResult<FindSessionsByUserIdResult>): FindSessionsByUserIdFound;
|
|
1219
|
+
export declare function redactFindSessionsByUserIdResult(value: FindSessionsByUserIdResult): {
|
|
1220
|
+
readonly outcome: string;
|
|
1221
|
+
readonly redactedSecretOutputs: typeof FIND_SESSIONS_BY_USER_ID_SECRET_OUTPUTS;
|
|
1222
|
+
};
|
|
1223
|
+
export declare function findSessionsByUserId(parameters: FindSessionsByUserIdParams): NamedQueryRequest<FindSessionsByUserIdParams, FindSessionsByUserIdResult>;
|
|
1224
|
+
export declare const FIND_USER_BY_EMAIL_QUERY_PLAN_HASH: "2c9f05af1cc7bfa47c05fcdbd8a9928152e7bded13fb048d596a54bb8886a06b";
|
|
1225
|
+
export interface FindUserByEmailParams {
|
|
1226
|
+
readonly organization_id: string;
|
|
1227
|
+
readonly email: string;
|
|
1228
|
+
}
|
|
1229
|
+
export interface FindUserByEmailFound {
|
|
1230
|
+
readonly outcome: "Found";
|
|
1231
|
+
readonly users: ReadonlyArray<{
|
|
1232
|
+
readonly user_id: string;
|
|
1233
|
+
readonly name: string;
|
|
1234
|
+
readonly email: string;
|
|
1235
|
+
readonly email_verified: boolean;
|
|
1236
|
+
readonly image: string | null;
|
|
1237
|
+
readonly created_at: {
|
|
1238
|
+
readonly seconds: bigint;
|
|
1239
|
+
readonly nanos: number;
|
|
1240
|
+
};
|
|
1241
|
+
readonly updated_at: {
|
|
1242
|
+
readonly seconds: bigint;
|
|
1243
|
+
readonly nanos: number;
|
|
1244
|
+
};
|
|
1245
|
+
readonly revision: bigint;
|
|
1246
|
+
readonly date_field: {
|
|
1247
|
+
readonly seconds: bigint;
|
|
1248
|
+
readonly nanos: number;
|
|
1249
|
+
} | null;
|
|
1250
|
+
readonly locale: string | null;
|
|
1251
|
+
readonly two_factor_enabled: boolean | null;
|
|
1252
|
+
}>;
|
|
1253
|
+
}
|
|
1254
|
+
export type FindUserByEmailResult = FindUserByEmailFound;
|
|
1255
|
+
export declare function isFindUserByEmailFound(value: FindUserByEmailResult): value is FindUserByEmailFound;
|
|
1256
|
+
export declare function unwrapFindUserByEmailFound(value: FindUserByEmailResult | TypedQueryResult<FindUserByEmailResult>): FindUserByEmailFound;
|
|
1257
|
+
export declare function findUserByEmail(parameters: FindUserByEmailParams): NamedQueryRequest<FindUserByEmailParams, FindUserByEmailResult>;
|
|
1258
|
+
export declare const FIND_USER_BY_ID_QUERY_PLAN_HASH: "2719f23fd3a21ec0e20d544302b3aed108539ca275e9092cc89a8b8a80be7426";
|
|
1259
|
+
export interface FindUserByIdParams {
|
|
1260
|
+
readonly organization_id: string;
|
|
1261
|
+
readonly id: string;
|
|
1262
|
+
}
|
|
1263
|
+
export interface FindUserByIdFound {
|
|
1264
|
+
readonly outcome: "Found";
|
|
1265
|
+
readonly user: {
|
|
1266
|
+
readonly user_id: string;
|
|
1267
|
+
readonly name: string;
|
|
1268
|
+
readonly email: string;
|
|
1269
|
+
readonly email_verified: boolean;
|
|
1270
|
+
readonly image: string | null;
|
|
1271
|
+
readonly created_at: {
|
|
1272
|
+
readonly seconds: bigint;
|
|
1273
|
+
readonly nanos: number;
|
|
1274
|
+
};
|
|
1275
|
+
readonly updated_at: {
|
|
1276
|
+
readonly seconds: bigint;
|
|
1277
|
+
readonly nanos: number;
|
|
1278
|
+
};
|
|
1279
|
+
readonly revision: bigint;
|
|
1280
|
+
readonly date_field: {
|
|
1281
|
+
readonly seconds: bigint;
|
|
1282
|
+
readonly nanos: number;
|
|
1283
|
+
} | null;
|
|
1284
|
+
readonly locale: string | null;
|
|
1285
|
+
readonly two_factor_enabled: boolean | null;
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
export interface FindUserByIdMissing {
|
|
1289
|
+
readonly outcome: "Missing";
|
|
1290
|
+
}
|
|
1291
|
+
export type FindUserByIdResult = FindUserByIdFound | FindUserByIdMissing;
|
|
1292
|
+
export declare function isFindUserByIdFound(value: FindUserByIdResult): value is FindUserByIdFound;
|
|
1293
|
+
export declare function isFindUserByIdMissing(value: FindUserByIdResult): value is FindUserByIdMissing;
|
|
1294
|
+
export declare function unwrapFindUserByIdFound(value: FindUserByIdResult | TypedQueryResult<FindUserByIdResult>): FindUserByIdFound;
|
|
1295
|
+
export declare function findUserById(parameters: FindUserByIdParams): NamedQueryRequest<FindUserByIdParams, FindUserByIdResult>;
|
|
1296
|
+
export declare const FIND_VERIFICATION_BY_ID_QUERY_PLAN_HASH: "a6adf5267779ea800a29b7d822702d8f37f32c66cd927ce868cb024443181c58";
|
|
1297
|
+
export declare const FIND_VERIFICATION_BY_ID_SECRET_OUTPUTS: readonly [{
|
|
1298
|
+
readonly query: "FindVerificationById";
|
|
1299
|
+
readonly entity: "Verification";
|
|
1300
|
+
readonly field: "value";
|
|
1301
|
+
}];
|
|
1302
|
+
export interface FindVerificationByIdParams {
|
|
1303
|
+
readonly organization_id: string;
|
|
1304
|
+
readonly id: string;
|
|
1305
|
+
}
|
|
1306
|
+
export interface FindVerificationByIdFound {
|
|
1307
|
+
readonly outcome: "Found";
|
|
1308
|
+
readonly verification: {
|
|
1309
|
+
readonly verification_id: string;
|
|
1310
|
+
readonly identifier: string;
|
|
1311
|
+
readonly value: string;
|
|
1312
|
+
readonly expires_at: {
|
|
1313
|
+
readonly seconds: bigint;
|
|
1314
|
+
readonly nanos: number;
|
|
1315
|
+
};
|
|
1316
|
+
readonly created_at: {
|
|
1317
|
+
readonly seconds: bigint;
|
|
1318
|
+
readonly nanos: number;
|
|
1319
|
+
};
|
|
1320
|
+
readonly updated_at: {
|
|
1321
|
+
readonly seconds: bigint;
|
|
1322
|
+
readonly nanos: number;
|
|
1323
|
+
};
|
|
1324
|
+
readonly revision: bigint;
|
|
1325
|
+
};
|
|
1326
|
+
}
|
|
1327
|
+
export interface FindVerificationByIdMissing {
|
|
1328
|
+
readonly outcome: "Missing";
|
|
1329
|
+
}
|
|
1330
|
+
export type FindVerificationByIdResult = FindVerificationByIdFound | FindVerificationByIdMissing;
|
|
1331
|
+
export declare function isFindVerificationByIdFound(value: FindVerificationByIdResult): value is FindVerificationByIdFound;
|
|
1332
|
+
export declare function isFindVerificationByIdMissing(value: FindVerificationByIdResult): value is FindVerificationByIdMissing;
|
|
1333
|
+
export declare function unwrapFindVerificationByIdFound(value: FindVerificationByIdResult | TypedQueryResult<FindVerificationByIdResult>): FindVerificationByIdFound;
|
|
1334
|
+
export declare function redactFindVerificationByIdResult(value: FindVerificationByIdResult): {
|
|
1335
|
+
readonly outcome: string;
|
|
1336
|
+
readonly redactedSecretOutputs: typeof FIND_VERIFICATION_BY_ID_SECRET_OUTPUTS;
|
|
1337
|
+
};
|
|
1338
|
+
export declare function findVerificationById(parameters: FindVerificationByIdParams): NamedQueryRequest<FindVerificationByIdParams, FindVerificationByIdResult>;
|
|
1339
|
+
export declare const FIND_VERIFICATIONS_BY_IDENTIFIER_QUERY_PLAN_HASH: "8b0cb368feeb6c9abe42e94699698878baff1f6e2ebf04c3662da6c2075a5260";
|
|
1340
|
+
export declare const FIND_VERIFICATIONS_BY_IDENTIFIER_SECRET_OUTPUTS: readonly [{
|
|
1341
|
+
readonly query: "FindVerificationsByIdentifier";
|
|
1342
|
+
readonly entity: "Verification";
|
|
1343
|
+
readonly field: "value";
|
|
1344
|
+
}];
|
|
1345
|
+
export interface FindVerificationsByIdentifierParams {
|
|
1346
|
+
readonly organization_id: string;
|
|
1347
|
+
readonly identifier: string;
|
|
1348
|
+
readonly after?: string | null;
|
|
1349
|
+
}
|
|
1350
|
+
export interface FindVerificationsByIdentifierFound {
|
|
1351
|
+
readonly outcome: "Found";
|
|
1352
|
+
readonly verifications: ReadonlyArray<{
|
|
1353
|
+
readonly verification_id: string;
|
|
1354
|
+
readonly identifier: string;
|
|
1355
|
+
readonly value: string;
|
|
1356
|
+
readonly expires_at: {
|
|
1357
|
+
readonly seconds: bigint;
|
|
1358
|
+
readonly nanos: number;
|
|
1359
|
+
};
|
|
1360
|
+
readonly created_at: {
|
|
1361
|
+
readonly seconds: bigint;
|
|
1362
|
+
readonly nanos: number;
|
|
1363
|
+
};
|
|
1364
|
+
readonly updated_at: {
|
|
1365
|
+
readonly seconds: bigint;
|
|
1366
|
+
readonly nanos: number;
|
|
1367
|
+
};
|
|
1368
|
+
readonly revision: bigint;
|
|
1369
|
+
}>;
|
|
1370
|
+
}
|
|
1371
|
+
export type FindVerificationsByIdentifierResult = FindVerificationsByIdentifierFound;
|
|
1372
|
+
export declare function isFindVerificationsByIdentifierFound(value: FindVerificationsByIdentifierResult): value is FindVerificationsByIdentifierFound;
|
|
1373
|
+
export declare function unwrapFindVerificationsByIdentifierFound(value: FindVerificationsByIdentifierResult | TypedQueryResult<FindVerificationsByIdentifierResult>): FindVerificationsByIdentifierFound;
|
|
1374
|
+
export declare function redactFindVerificationsByIdentifierResult(value: FindVerificationsByIdentifierResult): {
|
|
1375
|
+
readonly outcome: string;
|
|
1376
|
+
readonly redactedSecretOutputs: typeof FIND_VERIFICATIONS_BY_IDENTIFIER_SECRET_OUTPUTS;
|
|
1377
|
+
};
|
|
1378
|
+
export declare function findVerificationsByIdentifier(parameters: FindVerificationsByIdentifierParams): NamedQueryRequest<FindVerificationsByIdentifierParams, FindVerificationsByIdentifierResult>;
|
|
1379
|
+
export declare const PROFILE_ACCOUNT_WITH_USER_BY_PROVIDER_QUERY_PLAN_HASH: "a8784c0edc61833f86bb3168f45523ce0d343b160e87ffdd9452f117b0e598c0";
|
|
1380
|
+
export declare const PROFILE_ACCOUNT_WITH_USER_BY_PROVIDER_SECRET_OUTPUTS: readonly [{
|
|
1381
|
+
readonly query: "ProfileAccountWithUserByProvider";
|
|
1382
|
+
readonly entity: "Account";
|
|
1383
|
+
readonly field: "access_token";
|
|
1384
|
+
}, {
|
|
1385
|
+
readonly query: "ProfileAccountWithUserByProvider";
|
|
1386
|
+
readonly entity: "Account";
|
|
1387
|
+
readonly field: "refresh_token";
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly query: "ProfileAccountWithUserByProvider";
|
|
1390
|
+
readonly entity: "Account";
|
|
1391
|
+
readonly field: "id_token";
|
|
1392
|
+
}, {
|
|
1393
|
+
readonly query: "ProfileAccountWithUserByProvider";
|
|
1394
|
+
readonly entity: "Account";
|
|
1395
|
+
readonly field: "password";
|
|
1396
|
+
}];
|
|
1397
|
+
export interface ProfileAccountWithUserByProviderParams {
|
|
1398
|
+
readonly organization_id: string;
|
|
1399
|
+
readonly account_id: string;
|
|
1400
|
+
readonly provider_id: string;
|
|
1401
|
+
}
|
|
1402
|
+
export interface ProfileAccountWithUserByProviderFound {
|
|
1403
|
+
readonly outcome: "Found";
|
|
1404
|
+
readonly users: ReadonlyArray<{
|
|
1405
|
+
readonly user_id: string;
|
|
1406
|
+
readonly name: string;
|
|
1407
|
+
readonly email: string;
|
|
1408
|
+
readonly email_verified: boolean;
|
|
1409
|
+
readonly image: string | null;
|
|
1410
|
+
readonly created_at: {
|
|
1411
|
+
readonly seconds: bigint;
|
|
1412
|
+
readonly nanos: number;
|
|
1413
|
+
};
|
|
1414
|
+
readonly updated_at: {
|
|
1415
|
+
readonly seconds: bigint;
|
|
1416
|
+
readonly nanos: number;
|
|
1417
|
+
};
|
|
1418
|
+
readonly revision: bigint;
|
|
1419
|
+
readonly date_field: {
|
|
1420
|
+
readonly seconds: bigint;
|
|
1421
|
+
readonly nanos: number;
|
|
1422
|
+
} | null;
|
|
1423
|
+
readonly locale: string | null;
|
|
1424
|
+
readonly two_factor_enabled: boolean | null;
|
|
1425
|
+
}>;
|
|
1426
|
+
readonly accounts: ReadonlyArray<{
|
|
1427
|
+
readonly id: string;
|
|
1428
|
+
readonly user_id: string;
|
|
1429
|
+
readonly account_id: string;
|
|
1430
|
+
readonly provider_id: string;
|
|
1431
|
+
readonly access_token: string | null;
|
|
1432
|
+
readonly refresh_token: string | null;
|
|
1433
|
+
readonly access_token_expires_at: {
|
|
1434
|
+
readonly seconds: bigint;
|
|
1435
|
+
readonly nanos: number;
|
|
1436
|
+
} | null;
|
|
1437
|
+
readonly refresh_token_expires_at: {
|
|
1438
|
+
readonly seconds: bigint;
|
|
1439
|
+
readonly nanos: number;
|
|
1440
|
+
} | null;
|
|
1441
|
+
readonly scope: string | null;
|
|
1442
|
+
readonly id_token: string | null;
|
|
1443
|
+
readonly password: string | null;
|
|
1444
|
+
readonly created_at: {
|
|
1445
|
+
readonly seconds: bigint;
|
|
1446
|
+
readonly nanos: number;
|
|
1447
|
+
};
|
|
1448
|
+
readonly updated_at: {
|
|
1449
|
+
readonly seconds: bigint;
|
|
1450
|
+
readonly nanos: number;
|
|
1451
|
+
};
|
|
1452
|
+
readonly revision: bigint;
|
|
1453
|
+
}>;
|
|
1454
|
+
}
|
|
1455
|
+
export type ProfileAccountWithUserByProviderResult = ProfileAccountWithUserByProviderFound;
|
|
1456
|
+
export declare function isProfileAccountWithUserByProviderFound(value: ProfileAccountWithUserByProviderResult): value is ProfileAccountWithUserByProviderFound;
|
|
1457
|
+
export declare function unwrapProfileAccountWithUserByProviderFound(value: ProfileAccountWithUserByProviderResult | TypedQueryResult<ProfileAccountWithUserByProviderResult>): ProfileAccountWithUserByProviderFound;
|
|
1458
|
+
export declare function redactProfileAccountWithUserByProviderResult(value: ProfileAccountWithUserByProviderResult): {
|
|
1459
|
+
readonly outcome: string;
|
|
1460
|
+
readonly redactedSecretOutputs: typeof PROFILE_ACCOUNT_WITH_USER_BY_PROVIDER_SECRET_OUTPUTS;
|
|
1461
|
+
};
|
|
1462
|
+
export declare function profileAccountWithUserByProvider(parameters: ProfileAccountWithUserByProviderParams): NamedQueryRequest<ProfileAccountWithUserByProviderParams, ProfileAccountWithUserByProviderResult>;
|
|
1463
|
+
export declare const PROFILE_INVITATION_BY_EMAIL_QUERY_PLAN_HASH: "c9f3388ee73013f360bb2a7f2e77d651e80934660d617ef363a4488323658c31";
|
|
1464
|
+
export interface ProfileInvitationByEmailParams {
|
|
1465
|
+
readonly organization_id: string;
|
|
1466
|
+
readonly email: string;
|
|
1467
|
+
readonly after?: string | null;
|
|
1468
|
+
readonly limit?: number;
|
|
1469
|
+
readonly offset?: bigint;
|
|
1470
|
+
}
|
|
1471
|
+
export interface ProfileInvitationByEmailFound {
|
|
1472
|
+
readonly outcome: "Found";
|
|
1473
|
+
readonly rows: ReadonlyArray<{
|
|
1474
|
+
readonly invitation_id: string;
|
|
1475
|
+
readonly created_at: {
|
|
1476
|
+
readonly seconds: bigint;
|
|
1477
|
+
readonly nanos: number;
|
|
1478
|
+
};
|
|
1479
|
+
readonly email: string;
|
|
1480
|
+
readonly expires_at: {
|
|
1481
|
+
readonly seconds: bigint;
|
|
1482
|
+
readonly nanos: number;
|
|
1483
|
+
};
|
|
1484
|
+
readonly inviter_id: string;
|
|
1485
|
+
readonly org_id: string;
|
|
1486
|
+
readonly role: string | null;
|
|
1487
|
+
readonly status: string;
|
|
1488
|
+
readonly revision: bigint;
|
|
1489
|
+
}>;
|
|
1490
|
+
}
|
|
1491
|
+
export type ProfileInvitationByEmailResult = ProfileInvitationByEmailFound;
|
|
1492
|
+
export declare function isProfileInvitationByEmailFound(value: ProfileInvitationByEmailResult): value is ProfileInvitationByEmailFound;
|
|
1493
|
+
export declare function unwrapProfileInvitationByEmailFound(value: ProfileInvitationByEmailResult | TypedQueryResult<ProfileInvitationByEmailResult>): ProfileInvitationByEmailFound;
|
|
1494
|
+
export declare function profileInvitationByEmail(parameters: ProfileInvitationByEmailParams): NamedQueryRequest<ProfileInvitationByEmailParams, ProfileInvitationByEmailResult>;
|
|
1495
|
+
export declare const PROFILE_INVITATION_BY_ID_QUERY_PLAN_HASH: "af836d73d0ed70950a63c19d945f9f9428c2d159828e36b3713a9ca28c76b845";
|
|
1496
|
+
export interface ProfileInvitationByIdParams {
|
|
1497
|
+
readonly organization_id: string;
|
|
1498
|
+
readonly id: string;
|
|
1499
|
+
readonly after?: string | null;
|
|
1500
|
+
readonly limit?: number;
|
|
1501
|
+
readonly offset?: bigint;
|
|
1502
|
+
}
|
|
1503
|
+
export interface ProfileInvitationByIdFound {
|
|
1504
|
+
readonly outcome: "Found";
|
|
1505
|
+
readonly rows: ReadonlyArray<{
|
|
1506
|
+
readonly invitation_id: string;
|
|
1507
|
+
readonly created_at: {
|
|
1508
|
+
readonly seconds: bigint;
|
|
1509
|
+
readonly nanos: number;
|
|
1510
|
+
};
|
|
1511
|
+
readonly email: string;
|
|
1512
|
+
readonly expires_at: {
|
|
1513
|
+
readonly seconds: bigint;
|
|
1514
|
+
readonly nanos: number;
|
|
1515
|
+
};
|
|
1516
|
+
readonly inviter_id: string;
|
|
1517
|
+
readonly org_id: string;
|
|
1518
|
+
readonly role: string | null;
|
|
1519
|
+
readonly status: string;
|
|
1520
|
+
readonly revision: bigint;
|
|
1521
|
+
}>;
|
|
1522
|
+
}
|
|
1523
|
+
export type ProfileInvitationByIdResult = ProfileInvitationByIdFound;
|
|
1524
|
+
export declare function isProfileInvitationByIdFound(value: ProfileInvitationByIdResult): value is ProfileInvitationByIdFound;
|
|
1525
|
+
export declare function unwrapProfileInvitationByIdFound(value: ProfileInvitationByIdResult | TypedQueryResult<ProfileInvitationByIdResult>): ProfileInvitationByIdFound;
|
|
1526
|
+
export declare function profileInvitationById(parameters: ProfileInvitationByIdParams): NamedQueryRequest<ProfileInvitationByIdParams, ProfileInvitationByIdResult>;
|
|
1527
|
+
export declare const PROFILE_INVITATION_BY_ORGANIZATION_EMAIL_STATUS_QUERY_PLAN_HASH: "a3c210fab4b6a4e74f46fb600340966705a247c97762c40aa6ba919d76d916fb";
|
|
1528
|
+
export interface ProfileInvitationByOrganizationEmailStatusParams {
|
|
1529
|
+
readonly organization_id: string;
|
|
1530
|
+
readonly org_id: string;
|
|
1531
|
+
readonly email: string;
|
|
1532
|
+
readonly status: string;
|
|
1533
|
+
readonly after?: string | null;
|
|
1534
|
+
readonly limit?: number;
|
|
1535
|
+
readonly offset?: bigint;
|
|
1536
|
+
}
|
|
1537
|
+
export interface ProfileInvitationByOrganizationEmailStatusFound {
|
|
1538
|
+
readonly outcome: "Found";
|
|
1539
|
+
readonly rows: ReadonlyArray<{
|
|
1540
|
+
readonly invitation_id: string;
|
|
1541
|
+
readonly created_at: {
|
|
1542
|
+
readonly seconds: bigint;
|
|
1543
|
+
readonly nanos: number;
|
|
1544
|
+
};
|
|
1545
|
+
readonly email: string;
|
|
1546
|
+
readonly expires_at: {
|
|
1547
|
+
readonly seconds: bigint;
|
|
1548
|
+
readonly nanos: number;
|
|
1549
|
+
};
|
|
1550
|
+
readonly inviter_id: string;
|
|
1551
|
+
readonly org_id: string;
|
|
1552
|
+
readonly role: string | null;
|
|
1553
|
+
readonly status: string;
|
|
1554
|
+
readonly revision: bigint;
|
|
1555
|
+
}>;
|
|
1556
|
+
}
|
|
1557
|
+
export type ProfileInvitationByOrganizationEmailStatusResult = ProfileInvitationByOrganizationEmailStatusFound;
|
|
1558
|
+
export declare function isProfileInvitationByOrganizationEmailStatusFound(value: ProfileInvitationByOrganizationEmailStatusResult): value is ProfileInvitationByOrganizationEmailStatusFound;
|
|
1559
|
+
export declare function unwrapProfileInvitationByOrganizationEmailStatusFound(value: ProfileInvitationByOrganizationEmailStatusResult | TypedQueryResult<ProfileInvitationByOrganizationEmailStatusResult>): ProfileInvitationByOrganizationEmailStatusFound;
|
|
1560
|
+
export declare function profileInvitationByOrganizationEmailStatus(parameters: ProfileInvitationByOrganizationEmailStatusParams): NamedQueryRequest<ProfileInvitationByOrganizationEmailStatusParams, ProfileInvitationByOrganizationEmailStatusResult>;
|
|
1561
|
+
export declare const PROFILE_INVITATION_BY_ORGANIZATION_ID_QUERY_PLAN_HASH: "c19c6f405e75efdc606a98df744c16dea6c7033031705dcbe5a4ad7a0bc3c543";
|
|
1562
|
+
export interface ProfileInvitationByOrganizationIdParams {
|
|
1563
|
+
readonly organization_id: string;
|
|
1564
|
+
readonly org_id: string;
|
|
1565
|
+
readonly after?: string | null;
|
|
1566
|
+
readonly limit?: number;
|
|
1567
|
+
readonly offset?: bigint;
|
|
1568
|
+
}
|
|
1569
|
+
export interface ProfileInvitationByOrganizationIdFound {
|
|
1570
|
+
readonly outcome: "Found";
|
|
1571
|
+
readonly rows: ReadonlyArray<{
|
|
1572
|
+
readonly invitation_id: string;
|
|
1573
|
+
readonly created_at: {
|
|
1574
|
+
readonly seconds: bigint;
|
|
1575
|
+
readonly nanos: number;
|
|
1576
|
+
};
|
|
1577
|
+
readonly email: string;
|
|
1578
|
+
readonly expires_at: {
|
|
1579
|
+
readonly seconds: bigint;
|
|
1580
|
+
readonly nanos: number;
|
|
1581
|
+
};
|
|
1582
|
+
readonly inviter_id: string;
|
|
1583
|
+
readonly org_id: string;
|
|
1584
|
+
readonly role: string | null;
|
|
1585
|
+
readonly status: string;
|
|
1586
|
+
readonly revision: bigint;
|
|
1587
|
+
}>;
|
|
1588
|
+
}
|
|
1589
|
+
export type ProfileInvitationByOrganizationIdResult = ProfileInvitationByOrganizationIdFound;
|
|
1590
|
+
export declare function isProfileInvitationByOrganizationIdFound(value: ProfileInvitationByOrganizationIdResult): value is ProfileInvitationByOrganizationIdFound;
|
|
1591
|
+
export declare function unwrapProfileInvitationByOrganizationIdFound(value: ProfileInvitationByOrganizationIdResult | TypedQueryResult<ProfileInvitationByOrganizationIdResult>): ProfileInvitationByOrganizationIdFound;
|
|
1592
|
+
export declare function profileInvitationByOrganizationId(parameters: ProfileInvitationByOrganizationIdParams): NamedQueryRequest<ProfileInvitationByOrganizationIdParams, ProfileInvitationByOrganizationIdResult>;
|
|
1593
|
+
export declare const PROFILE_INVITATION_BY_ORGANIZATION_STATUS_QUERY_PLAN_HASH: "c6247873ec551454aadf4f167532707ce0b7a57aff113b05ab1d698da22849bf";
|
|
1594
|
+
export interface ProfileInvitationByOrganizationStatusParams {
|
|
1595
|
+
readonly organization_id: string;
|
|
1596
|
+
readonly org_id: string;
|
|
1597
|
+
readonly status: string;
|
|
1598
|
+
readonly after?: string | null;
|
|
1599
|
+
readonly limit?: number;
|
|
1600
|
+
readonly offset?: bigint;
|
|
1601
|
+
}
|
|
1602
|
+
export interface ProfileInvitationByOrganizationStatusFound {
|
|
1603
|
+
readonly outcome: "Found";
|
|
1604
|
+
readonly rows: ReadonlyArray<{
|
|
1605
|
+
readonly invitation_id: string;
|
|
1606
|
+
readonly created_at: {
|
|
1607
|
+
readonly seconds: bigint;
|
|
1608
|
+
readonly nanos: number;
|
|
1609
|
+
};
|
|
1610
|
+
readonly email: string;
|
|
1611
|
+
readonly expires_at: {
|
|
1612
|
+
readonly seconds: bigint;
|
|
1613
|
+
readonly nanos: number;
|
|
1614
|
+
};
|
|
1615
|
+
readonly inviter_id: string;
|
|
1616
|
+
readonly org_id: string;
|
|
1617
|
+
readonly role: string | null;
|
|
1618
|
+
readonly status: string;
|
|
1619
|
+
readonly revision: bigint;
|
|
1620
|
+
}>;
|
|
1621
|
+
}
|
|
1622
|
+
export type ProfileInvitationByOrganizationStatusResult = ProfileInvitationByOrganizationStatusFound;
|
|
1623
|
+
export declare function isProfileInvitationByOrganizationStatusFound(value: ProfileInvitationByOrganizationStatusResult): value is ProfileInvitationByOrganizationStatusFound;
|
|
1624
|
+
export declare function unwrapProfileInvitationByOrganizationStatusFound(value: ProfileInvitationByOrganizationStatusResult | TypedQueryResult<ProfileInvitationByOrganizationStatusResult>): ProfileInvitationByOrganizationStatusFound;
|
|
1625
|
+
export declare function profileInvitationByOrganizationStatus(parameters: ProfileInvitationByOrganizationStatusParams): NamedQueryRequest<ProfileInvitationByOrganizationStatusParams, ProfileInvitationByOrganizationStatusResult>;
|
|
1626
|
+
export declare const PROFILE_MEMBER_BY_ID_QUERY_PLAN_HASH: "cc8a56f460c3e0213a526120328982826d264c4b325c4df409bf194aadcab423";
|
|
1627
|
+
export interface ProfileMemberByIdParams {
|
|
1628
|
+
readonly organization_id: string;
|
|
1629
|
+
readonly id: string;
|
|
1630
|
+
readonly after?: string | null;
|
|
1631
|
+
readonly limit?: number;
|
|
1632
|
+
readonly offset?: bigint;
|
|
1633
|
+
}
|
|
1634
|
+
export interface ProfileMemberByIdFound {
|
|
1635
|
+
readonly outcome: "Found";
|
|
1636
|
+
readonly rows: ReadonlyArray<{
|
|
1637
|
+
readonly member_id: string;
|
|
1638
|
+
readonly created_at: {
|
|
1639
|
+
readonly seconds: bigint;
|
|
1640
|
+
readonly nanos: number;
|
|
1641
|
+
};
|
|
1642
|
+
readonly org_id: string;
|
|
1643
|
+
readonly role: string;
|
|
1644
|
+
readonly user_id: string;
|
|
1645
|
+
readonly revision: bigint;
|
|
1646
|
+
}>;
|
|
1647
|
+
readonly organizations: ReadonlyArray<{
|
|
1648
|
+
readonly org_id: string;
|
|
1649
|
+
readonly created_at: {
|
|
1650
|
+
readonly seconds: bigint;
|
|
1651
|
+
readonly nanos: number;
|
|
1652
|
+
};
|
|
1653
|
+
readonly logo: string | null;
|
|
1654
|
+
readonly metadata: string | null;
|
|
1655
|
+
readonly name: string;
|
|
1656
|
+
readonly slug: string;
|
|
1657
|
+
readonly revision: bigint;
|
|
1658
|
+
}>;
|
|
1659
|
+
readonly users: ReadonlyArray<{
|
|
1660
|
+
readonly user_id: string;
|
|
1661
|
+
readonly name: string;
|
|
1662
|
+
readonly email: string;
|
|
1663
|
+
readonly email_verified: boolean;
|
|
1664
|
+
readonly image: string | null;
|
|
1665
|
+
readonly created_at: {
|
|
1666
|
+
readonly seconds: bigint;
|
|
1667
|
+
readonly nanos: number;
|
|
1668
|
+
};
|
|
1669
|
+
readonly updated_at: {
|
|
1670
|
+
readonly seconds: bigint;
|
|
1671
|
+
readonly nanos: number;
|
|
1672
|
+
};
|
|
1673
|
+
readonly revision: bigint;
|
|
1674
|
+
readonly date_field: {
|
|
1675
|
+
readonly seconds: bigint;
|
|
1676
|
+
readonly nanos: number;
|
|
1677
|
+
} | null;
|
|
1678
|
+
readonly locale: string | null;
|
|
1679
|
+
readonly two_factor_enabled: boolean | null;
|
|
1680
|
+
}>;
|
|
1681
|
+
}
|
|
1682
|
+
export type ProfileMemberByIdResult = ProfileMemberByIdFound;
|
|
1683
|
+
export declare function isProfileMemberByIdFound(value: ProfileMemberByIdResult): value is ProfileMemberByIdFound;
|
|
1684
|
+
export declare function unwrapProfileMemberByIdFound(value: ProfileMemberByIdResult | TypedQueryResult<ProfileMemberByIdResult>): ProfileMemberByIdFound;
|
|
1685
|
+
export declare function profileMemberById(parameters: ProfileMemberByIdParams): NamedQueryRequest<ProfileMemberByIdParams, ProfileMemberByIdResult>;
|
|
1686
|
+
export declare const PROFILE_MEMBER_BY_ORGANIZATION_QUERY_PLAN_HASH: "7513238ffb6707a1d00519c15dc1b6967775c2d67e20edceb0bdcee22a096498";
|
|
1687
|
+
export interface ProfileMemberByOrganizationParams {
|
|
1688
|
+
readonly organization_id: string;
|
|
1689
|
+
readonly org_id: string;
|
|
1690
|
+
readonly minimum_role?: string;
|
|
1691
|
+
readonly limit?: number;
|
|
1692
|
+
readonly offset?: bigint;
|
|
1693
|
+
}
|
|
1694
|
+
export interface ProfileMemberByOrganizationFound {
|
|
1695
|
+
readonly outcome: "Found";
|
|
1696
|
+
readonly rows: ReadonlyArray<{
|
|
1697
|
+
readonly member_id: string;
|
|
1698
|
+
readonly created_at: {
|
|
1699
|
+
readonly seconds: bigint;
|
|
1700
|
+
readonly nanos: number;
|
|
1701
|
+
};
|
|
1702
|
+
readonly org_id: string;
|
|
1703
|
+
readonly role: string;
|
|
1704
|
+
readonly user_id: string;
|
|
1705
|
+
readonly revision: bigint;
|
|
1706
|
+
}>;
|
|
1707
|
+
readonly total: {
|
|
1708
|
+
readonly value: bigint;
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
export type ProfileMemberByOrganizationResult = ProfileMemberByOrganizationFound;
|
|
1712
|
+
export declare function isProfileMemberByOrganizationFound(value: ProfileMemberByOrganizationResult): value is ProfileMemberByOrganizationFound;
|
|
1713
|
+
export declare function unwrapProfileMemberByOrganizationFound(value: ProfileMemberByOrganizationResult | TypedQueryResult<ProfileMemberByOrganizationResult>): ProfileMemberByOrganizationFound;
|
|
1714
|
+
export declare function profileMemberByOrganization(parameters: ProfileMemberByOrganizationParams): NamedQueryRequest<ProfileMemberByOrganizationParams, ProfileMemberByOrganizationResult>;
|
|
1715
|
+
export declare const PROFILE_MEMBER_BY_ORGANIZATION_CREATED_AT_ASC_QUERY_PLAN_HASH: "c2c366c3e3ad6528af5c16b900b2bab1a1f2d9de8880434cc837e4b662e1cb78";
|
|
1716
|
+
export interface ProfileMemberByOrganizationCreatedAtAscParams {
|
|
1717
|
+
readonly organization_id: string;
|
|
1718
|
+
readonly org_id: string;
|
|
1719
|
+
readonly minimum_role?: string;
|
|
1720
|
+
readonly limit?: number;
|
|
1721
|
+
readonly offset?: bigint;
|
|
1722
|
+
}
|
|
1723
|
+
export interface ProfileMemberByOrganizationCreatedAtAscFound {
|
|
1724
|
+
readonly outcome: "Found";
|
|
1725
|
+
readonly rows: ReadonlyArray<{
|
|
1726
|
+
readonly member_id: string;
|
|
1727
|
+
readonly created_at: {
|
|
1728
|
+
readonly seconds: bigint;
|
|
1729
|
+
readonly nanos: number;
|
|
1730
|
+
};
|
|
1731
|
+
readonly org_id: string;
|
|
1732
|
+
readonly role: string;
|
|
1733
|
+
readonly user_id: string;
|
|
1734
|
+
readonly revision: bigint;
|
|
1735
|
+
}>;
|
|
1736
|
+
readonly total: {
|
|
1737
|
+
readonly value: bigint;
|
|
1738
|
+
};
|
|
1739
|
+
}
|
|
1740
|
+
export type ProfileMemberByOrganizationCreatedAtAscResult = ProfileMemberByOrganizationCreatedAtAscFound;
|
|
1741
|
+
export declare function isProfileMemberByOrganizationCreatedAtAscFound(value: ProfileMemberByOrganizationCreatedAtAscResult): value is ProfileMemberByOrganizationCreatedAtAscFound;
|
|
1742
|
+
export declare function unwrapProfileMemberByOrganizationCreatedAtAscFound(value: ProfileMemberByOrganizationCreatedAtAscResult | TypedQueryResult<ProfileMemberByOrganizationCreatedAtAscResult>): ProfileMemberByOrganizationCreatedAtAscFound;
|
|
1743
|
+
export declare function profileMemberByOrganizationCreatedAtAsc(parameters: ProfileMemberByOrganizationCreatedAtAscParams): NamedQueryRequest<ProfileMemberByOrganizationCreatedAtAscParams, ProfileMemberByOrganizationCreatedAtAscResult>;
|
|
1744
|
+
export declare const PROFILE_MEMBER_BY_ORGANIZATION_CREATED_AT_DESC_QUERY_PLAN_HASH: "48e5ce951486c17ed54c3902781f2e8585ea20b37b84d9b55a71a8bd92141c1e";
|
|
1745
|
+
export interface ProfileMemberByOrganizationCreatedAtDescParams {
|
|
1746
|
+
readonly organization_id: string;
|
|
1747
|
+
readonly org_id: string;
|
|
1748
|
+
readonly minimum_role?: string;
|
|
1749
|
+
readonly limit?: number;
|
|
1750
|
+
readonly offset?: bigint;
|
|
1751
|
+
}
|
|
1752
|
+
export interface ProfileMemberByOrganizationCreatedAtDescFound {
|
|
1753
|
+
readonly outcome: "Found";
|
|
1754
|
+
readonly rows: ReadonlyArray<{
|
|
1755
|
+
readonly member_id: string;
|
|
1756
|
+
readonly created_at: {
|
|
1757
|
+
readonly seconds: bigint;
|
|
1758
|
+
readonly nanos: number;
|
|
1759
|
+
};
|
|
1760
|
+
readonly org_id: string;
|
|
1761
|
+
readonly role: string;
|
|
1762
|
+
readonly user_id: string;
|
|
1763
|
+
readonly revision: bigint;
|
|
1764
|
+
}>;
|
|
1765
|
+
readonly total: {
|
|
1766
|
+
readonly value: bigint;
|
|
1767
|
+
};
|
|
1768
|
+
}
|
|
1769
|
+
export type ProfileMemberByOrganizationCreatedAtDescResult = ProfileMemberByOrganizationCreatedAtDescFound;
|
|
1770
|
+
export declare function isProfileMemberByOrganizationCreatedAtDescFound(value: ProfileMemberByOrganizationCreatedAtDescResult): value is ProfileMemberByOrganizationCreatedAtDescFound;
|
|
1771
|
+
export declare function unwrapProfileMemberByOrganizationCreatedAtDescFound(value: ProfileMemberByOrganizationCreatedAtDescResult | TypedQueryResult<ProfileMemberByOrganizationCreatedAtDescResult>): ProfileMemberByOrganizationCreatedAtDescFound;
|
|
1772
|
+
export declare function profileMemberByOrganizationCreatedAtDesc(parameters: ProfileMemberByOrganizationCreatedAtDescParams): NamedQueryRequest<ProfileMemberByOrganizationCreatedAtDescParams, ProfileMemberByOrganizationCreatedAtDescResult>;
|
|
1773
|
+
export declare const PROFILE_MEMBER_BY_ORGANIZATION_ROLE_ASC_QUERY_PLAN_HASH: "d261b1e0ed57c8f835b3e764c57c73750d1e3280e52e8857f42a47b4415be533";
|
|
1774
|
+
export interface ProfileMemberByOrganizationRoleAscParams {
|
|
1775
|
+
readonly organization_id: string;
|
|
1776
|
+
readonly org_id: string;
|
|
1777
|
+
readonly minimum_role?: string;
|
|
1778
|
+
readonly limit?: number;
|
|
1779
|
+
readonly offset?: bigint;
|
|
1780
|
+
}
|
|
1781
|
+
export interface ProfileMemberByOrganizationRoleAscFound {
|
|
1782
|
+
readonly outcome: "Found";
|
|
1783
|
+
readonly rows: ReadonlyArray<{
|
|
1784
|
+
readonly member_id: string;
|
|
1785
|
+
readonly created_at: {
|
|
1786
|
+
readonly seconds: bigint;
|
|
1787
|
+
readonly nanos: number;
|
|
1788
|
+
};
|
|
1789
|
+
readonly org_id: string;
|
|
1790
|
+
readonly role: string;
|
|
1791
|
+
readonly user_id: string;
|
|
1792
|
+
readonly revision: bigint;
|
|
1793
|
+
}>;
|
|
1794
|
+
readonly total: {
|
|
1795
|
+
readonly value: bigint;
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
export type ProfileMemberByOrganizationRoleAscResult = ProfileMemberByOrganizationRoleAscFound;
|
|
1799
|
+
export declare function isProfileMemberByOrganizationRoleAscFound(value: ProfileMemberByOrganizationRoleAscResult): value is ProfileMemberByOrganizationRoleAscFound;
|
|
1800
|
+
export declare function unwrapProfileMemberByOrganizationRoleAscFound(value: ProfileMemberByOrganizationRoleAscResult | TypedQueryResult<ProfileMemberByOrganizationRoleAscResult>): ProfileMemberByOrganizationRoleAscFound;
|
|
1801
|
+
export declare function profileMemberByOrganizationRoleAsc(parameters: ProfileMemberByOrganizationRoleAscParams): NamedQueryRequest<ProfileMemberByOrganizationRoleAscParams, ProfileMemberByOrganizationRoleAscResult>;
|
|
1802
|
+
export declare const PROFILE_MEMBER_BY_ORGANIZATION_ROLE_DESC_QUERY_PLAN_HASH: "6b1799cc4b19948f623847f70f7a315d318ba77d0a400370ef3b6880d47921e2";
|
|
1803
|
+
export interface ProfileMemberByOrganizationRoleDescParams {
|
|
1804
|
+
readonly organization_id: string;
|
|
1805
|
+
readonly org_id: string;
|
|
1806
|
+
readonly minimum_role?: string;
|
|
1807
|
+
readonly limit?: number;
|
|
1808
|
+
readonly offset?: bigint;
|
|
1809
|
+
}
|
|
1810
|
+
export interface ProfileMemberByOrganizationRoleDescFound {
|
|
1811
|
+
readonly outcome: "Found";
|
|
1812
|
+
readonly rows: ReadonlyArray<{
|
|
1813
|
+
readonly member_id: string;
|
|
1814
|
+
readonly created_at: {
|
|
1815
|
+
readonly seconds: bigint;
|
|
1816
|
+
readonly nanos: number;
|
|
1817
|
+
};
|
|
1818
|
+
readonly org_id: string;
|
|
1819
|
+
readonly role: string;
|
|
1820
|
+
readonly user_id: string;
|
|
1821
|
+
readonly revision: bigint;
|
|
1822
|
+
}>;
|
|
1823
|
+
readonly total: {
|
|
1824
|
+
readonly value: bigint;
|
|
1825
|
+
};
|
|
1826
|
+
}
|
|
1827
|
+
export type ProfileMemberByOrganizationRoleDescResult = ProfileMemberByOrganizationRoleDescFound;
|
|
1828
|
+
export declare function isProfileMemberByOrganizationRoleDescFound(value: ProfileMemberByOrganizationRoleDescResult): value is ProfileMemberByOrganizationRoleDescFound;
|
|
1829
|
+
export declare function unwrapProfileMemberByOrganizationRoleDescFound(value: ProfileMemberByOrganizationRoleDescResult | TypedQueryResult<ProfileMemberByOrganizationRoleDescResult>): ProfileMemberByOrganizationRoleDescFound;
|
|
1830
|
+
export declare function profileMemberByOrganizationRoleDesc(parameters: ProfileMemberByOrganizationRoleDescParams): NamedQueryRequest<ProfileMemberByOrganizationRoleDescParams, ProfileMemberByOrganizationRoleDescResult>;
|
|
1831
|
+
export declare const PROFILE_MEMBER_BY_ORGANIZATION_USER_QUERY_PLAN_HASH: "e418a0c209322db732d9fc5458f7d49d2f0d83e6fecca0e889a3bc131c2c9249";
|
|
1832
|
+
export interface ProfileMemberByOrganizationUserParams {
|
|
1833
|
+
readonly organization_id: string;
|
|
1834
|
+
readonly org_id: string;
|
|
1835
|
+
readonly user_id: string;
|
|
1836
|
+
readonly after?: string | null;
|
|
1837
|
+
readonly limit?: number;
|
|
1838
|
+
readonly offset?: bigint;
|
|
1839
|
+
}
|
|
1840
|
+
export interface ProfileMemberByOrganizationUserFound {
|
|
1841
|
+
readonly outcome: "Found";
|
|
1842
|
+
readonly rows: ReadonlyArray<{
|
|
1843
|
+
readonly member_id: string;
|
|
1844
|
+
readonly created_at: {
|
|
1845
|
+
readonly seconds: bigint;
|
|
1846
|
+
readonly nanos: number;
|
|
1847
|
+
};
|
|
1848
|
+
readonly org_id: string;
|
|
1849
|
+
readonly role: string;
|
|
1850
|
+
readonly user_id: string;
|
|
1851
|
+
readonly revision: bigint;
|
|
1852
|
+
}>;
|
|
1853
|
+
readonly organizations: ReadonlyArray<{
|
|
1854
|
+
readonly org_id: string;
|
|
1855
|
+
readonly created_at: {
|
|
1856
|
+
readonly seconds: bigint;
|
|
1857
|
+
readonly nanos: number;
|
|
1858
|
+
};
|
|
1859
|
+
readonly logo: string | null;
|
|
1860
|
+
readonly metadata: string | null;
|
|
1861
|
+
readonly name: string;
|
|
1862
|
+
readonly slug: string;
|
|
1863
|
+
readonly revision: bigint;
|
|
1864
|
+
}>;
|
|
1865
|
+
readonly users: ReadonlyArray<{
|
|
1866
|
+
readonly user_id: string;
|
|
1867
|
+
readonly name: string;
|
|
1868
|
+
readonly email: string;
|
|
1869
|
+
readonly email_verified: boolean;
|
|
1870
|
+
readonly image: string | null;
|
|
1871
|
+
readonly created_at: {
|
|
1872
|
+
readonly seconds: bigint;
|
|
1873
|
+
readonly nanos: number;
|
|
1874
|
+
};
|
|
1875
|
+
readonly updated_at: {
|
|
1876
|
+
readonly seconds: bigint;
|
|
1877
|
+
readonly nanos: number;
|
|
1878
|
+
};
|
|
1879
|
+
readonly revision: bigint;
|
|
1880
|
+
readonly date_field: {
|
|
1881
|
+
readonly seconds: bigint;
|
|
1882
|
+
readonly nanos: number;
|
|
1883
|
+
} | null;
|
|
1884
|
+
readonly locale: string | null;
|
|
1885
|
+
readonly two_factor_enabled: boolean | null;
|
|
1886
|
+
}>;
|
|
1887
|
+
}
|
|
1888
|
+
export type ProfileMemberByOrganizationUserResult = ProfileMemberByOrganizationUserFound;
|
|
1889
|
+
export declare function isProfileMemberByOrganizationUserFound(value: ProfileMemberByOrganizationUserResult): value is ProfileMemberByOrganizationUserFound;
|
|
1890
|
+
export declare function unwrapProfileMemberByOrganizationUserFound(value: ProfileMemberByOrganizationUserResult | TypedQueryResult<ProfileMemberByOrganizationUserResult>): ProfileMemberByOrganizationUserFound;
|
|
1891
|
+
export declare function profileMemberByOrganizationUser(parameters: ProfileMemberByOrganizationUserParams): NamedQueryRequest<ProfileMemberByOrganizationUserParams, ProfileMemberByOrganizationUserResult>;
|
|
1892
|
+
export declare const PROFILE_MEMBER_BY_USER_QUERY_PLAN_HASH: "19516c2259fe27d0112cc6ec174da23ce3f25edef9b9a0c3ff3c64bf9070c8c5";
|
|
1893
|
+
export interface ProfileMemberByUserParams {
|
|
1894
|
+
readonly organization_id: string;
|
|
1895
|
+
readonly user_id: string;
|
|
1896
|
+
readonly after?: string | null;
|
|
1897
|
+
readonly limit?: number;
|
|
1898
|
+
readonly offset?: bigint;
|
|
1899
|
+
}
|
|
1900
|
+
export interface ProfileMemberByUserFound {
|
|
1901
|
+
readonly outcome: "Found";
|
|
1902
|
+
readonly rows: ReadonlyArray<{
|
|
1903
|
+
readonly member_id: string;
|
|
1904
|
+
readonly created_at: {
|
|
1905
|
+
readonly seconds: bigint;
|
|
1906
|
+
readonly nanos: number;
|
|
1907
|
+
};
|
|
1908
|
+
readonly org_id: string;
|
|
1909
|
+
readonly role: string;
|
|
1910
|
+
readonly user_id: string;
|
|
1911
|
+
readonly revision: bigint;
|
|
1912
|
+
}>;
|
|
1913
|
+
readonly organizations: ReadonlyArray<{
|
|
1914
|
+
readonly org_id: string;
|
|
1915
|
+
readonly created_at: {
|
|
1916
|
+
readonly seconds: bigint;
|
|
1917
|
+
readonly nanos: number;
|
|
1918
|
+
};
|
|
1919
|
+
readonly logo: string | null;
|
|
1920
|
+
readonly metadata: string | null;
|
|
1921
|
+
readonly name: string;
|
|
1922
|
+
readonly slug: string;
|
|
1923
|
+
readonly revision: bigint;
|
|
1924
|
+
}>;
|
|
1925
|
+
readonly users: ReadonlyArray<{
|
|
1926
|
+
readonly user_id: string;
|
|
1927
|
+
readonly name: string;
|
|
1928
|
+
readonly email: string;
|
|
1929
|
+
readonly email_verified: boolean;
|
|
1930
|
+
readonly image: string | null;
|
|
1931
|
+
readonly created_at: {
|
|
1932
|
+
readonly seconds: bigint;
|
|
1933
|
+
readonly nanos: number;
|
|
1934
|
+
};
|
|
1935
|
+
readonly updated_at: {
|
|
1936
|
+
readonly seconds: bigint;
|
|
1937
|
+
readonly nanos: number;
|
|
1938
|
+
};
|
|
1939
|
+
readonly revision: bigint;
|
|
1940
|
+
readonly date_field: {
|
|
1941
|
+
readonly seconds: bigint;
|
|
1942
|
+
readonly nanos: number;
|
|
1943
|
+
} | null;
|
|
1944
|
+
readonly locale: string | null;
|
|
1945
|
+
readonly two_factor_enabled: boolean | null;
|
|
1946
|
+
}>;
|
|
1947
|
+
}
|
|
1948
|
+
export type ProfileMemberByUserResult = ProfileMemberByUserFound;
|
|
1949
|
+
export declare function isProfileMemberByUserFound(value: ProfileMemberByUserResult): value is ProfileMemberByUserFound;
|
|
1950
|
+
export declare function unwrapProfileMemberByUserFound(value: ProfileMemberByUserResult | TypedQueryResult<ProfileMemberByUserResult>): ProfileMemberByUserFound;
|
|
1951
|
+
export declare function profileMemberByUser(parameters: ProfileMemberByUserParams): NamedQueryRequest<ProfileMemberByUserParams, ProfileMemberByUserResult>;
|
|
1952
|
+
export declare const PROFILE_ORGANIZATION_BY_ID_QUERY_PLAN_HASH: "65762e4e1f10a983d32e8aeec05b75eb9a7e42e5d67ea2baa64b846eb2a1e17c";
|
|
1953
|
+
export interface ProfileOrganizationByIdParams {
|
|
1954
|
+
readonly organization_id: string;
|
|
1955
|
+
readonly id: string;
|
|
1956
|
+
readonly limit?: number;
|
|
1957
|
+
readonly offset?: bigint;
|
|
1958
|
+
}
|
|
1959
|
+
export interface ProfileOrganizationByIdFound {
|
|
1960
|
+
readonly outcome: "Found";
|
|
1961
|
+
readonly record: {
|
|
1962
|
+
readonly org_id: string;
|
|
1963
|
+
readonly created_at: {
|
|
1964
|
+
readonly seconds: bigint;
|
|
1965
|
+
readonly nanos: number;
|
|
1966
|
+
};
|
|
1967
|
+
readonly logo: string | null;
|
|
1968
|
+
readonly metadata: string | null;
|
|
1969
|
+
readonly name: string;
|
|
1970
|
+
readonly slug: string;
|
|
1971
|
+
readonly revision: bigint;
|
|
1972
|
+
};
|
|
1973
|
+
readonly members: ReadonlyArray<{
|
|
1974
|
+
readonly member_id: string;
|
|
1975
|
+
readonly created_at: {
|
|
1976
|
+
readonly seconds: bigint;
|
|
1977
|
+
readonly nanos: number;
|
|
1978
|
+
};
|
|
1979
|
+
readonly org_id: string;
|
|
1980
|
+
readonly role: string;
|
|
1981
|
+
readonly user_id: string;
|
|
1982
|
+
readonly revision: bigint;
|
|
1983
|
+
}>;
|
|
1984
|
+
readonly invitations: ReadonlyArray<{
|
|
1985
|
+
readonly invitation_id: string;
|
|
1986
|
+
readonly created_at: {
|
|
1987
|
+
readonly seconds: bigint;
|
|
1988
|
+
readonly nanos: number;
|
|
1989
|
+
};
|
|
1990
|
+
readonly email: string;
|
|
1991
|
+
readonly expires_at: {
|
|
1992
|
+
readonly seconds: bigint;
|
|
1993
|
+
readonly nanos: number;
|
|
1994
|
+
};
|
|
1995
|
+
readonly inviter_id: string;
|
|
1996
|
+
readonly org_id: string;
|
|
1997
|
+
readonly role: string | null;
|
|
1998
|
+
readonly status: string;
|
|
1999
|
+
readonly revision: bigint;
|
|
2000
|
+
}>;
|
|
2001
|
+
}
|
|
2002
|
+
export interface ProfileOrganizationByIdMissing {
|
|
2003
|
+
readonly outcome: "Missing";
|
|
2004
|
+
}
|
|
2005
|
+
export type ProfileOrganizationByIdResult = ProfileOrganizationByIdFound | ProfileOrganizationByIdMissing;
|
|
2006
|
+
export declare function isProfileOrganizationByIdFound(value: ProfileOrganizationByIdResult): value is ProfileOrganizationByIdFound;
|
|
2007
|
+
export declare function isProfileOrganizationByIdMissing(value: ProfileOrganizationByIdResult): value is ProfileOrganizationByIdMissing;
|
|
2008
|
+
export declare function unwrapProfileOrganizationByIdFound(value: ProfileOrganizationByIdResult | TypedQueryResult<ProfileOrganizationByIdResult>): ProfileOrganizationByIdFound;
|
|
2009
|
+
export declare function profileOrganizationById(parameters: ProfileOrganizationByIdParams): NamedQueryRequest<ProfileOrganizationByIdParams, ProfileOrganizationByIdResult>;
|
|
2010
|
+
export declare const PROFILE_ORGANIZATION_BY_SLUG_QUERY_PLAN_HASH: "69681779f4da27e947522e5a6f814ba75434f1297bf57d78b7ea95eca5acc028";
|
|
2011
|
+
export interface ProfileOrganizationBySlugParams {
|
|
2012
|
+
readonly organization_id: string;
|
|
2013
|
+
readonly slug: string;
|
|
2014
|
+
readonly limit?: number;
|
|
2015
|
+
readonly offset?: bigint;
|
|
2016
|
+
}
|
|
2017
|
+
export interface ProfileOrganizationBySlugFound {
|
|
2018
|
+
readonly outcome: "Found";
|
|
2019
|
+
readonly record: {
|
|
2020
|
+
readonly org_id: string;
|
|
2021
|
+
readonly created_at: {
|
|
2022
|
+
readonly seconds: bigint;
|
|
2023
|
+
readonly nanos: number;
|
|
2024
|
+
};
|
|
2025
|
+
readonly logo: string | null;
|
|
2026
|
+
readonly metadata: string | null;
|
|
2027
|
+
readonly name: string;
|
|
2028
|
+
readonly slug: string;
|
|
2029
|
+
readonly revision: bigint;
|
|
2030
|
+
};
|
|
2031
|
+
readonly members: ReadonlyArray<{
|
|
2032
|
+
readonly member_id: string;
|
|
2033
|
+
readonly created_at: {
|
|
2034
|
+
readonly seconds: bigint;
|
|
2035
|
+
readonly nanos: number;
|
|
2036
|
+
};
|
|
2037
|
+
readonly org_id: string;
|
|
2038
|
+
readonly role: string;
|
|
2039
|
+
readonly user_id: string;
|
|
2040
|
+
readonly revision: bigint;
|
|
2041
|
+
}>;
|
|
2042
|
+
readonly invitations: ReadonlyArray<{
|
|
2043
|
+
readonly invitation_id: string;
|
|
2044
|
+
readonly created_at: {
|
|
2045
|
+
readonly seconds: bigint;
|
|
2046
|
+
readonly nanos: number;
|
|
2047
|
+
};
|
|
2048
|
+
readonly email: string;
|
|
2049
|
+
readonly expires_at: {
|
|
2050
|
+
readonly seconds: bigint;
|
|
2051
|
+
readonly nanos: number;
|
|
2052
|
+
};
|
|
2053
|
+
readonly inviter_id: string;
|
|
2054
|
+
readonly org_id: string;
|
|
2055
|
+
readonly role: string | null;
|
|
2056
|
+
readonly status: string;
|
|
2057
|
+
readonly revision: bigint;
|
|
2058
|
+
}>;
|
|
2059
|
+
}
|
|
2060
|
+
export interface ProfileOrganizationBySlugMissing {
|
|
2061
|
+
readonly outcome: "Missing";
|
|
2062
|
+
}
|
|
2063
|
+
export type ProfileOrganizationBySlugResult = ProfileOrganizationBySlugFound | ProfileOrganizationBySlugMissing;
|
|
2064
|
+
export declare function isProfileOrganizationBySlugFound(value: ProfileOrganizationBySlugResult): value is ProfileOrganizationBySlugFound;
|
|
2065
|
+
export declare function isProfileOrganizationBySlugMissing(value: ProfileOrganizationBySlugResult): value is ProfileOrganizationBySlugMissing;
|
|
2066
|
+
export declare function unwrapProfileOrganizationBySlugFound(value: ProfileOrganizationBySlugResult | TypedQueryResult<ProfileOrganizationBySlugResult>): ProfileOrganizationBySlugFound;
|
|
2067
|
+
export declare function profileOrganizationBySlug(parameters: ProfileOrganizationBySlugParams): NamedQueryRequest<ProfileOrganizationBySlugParams, ProfileOrganizationBySlugResult>;
|
|
2068
|
+
export declare const PROFILE_SESSION_WITH_USER_BY_ID_QUERY_PLAN_HASH: "3b8043f78a625135c379de5bbd85f1bab280cea800c0c5a787c8ff984f8deb56";
|
|
2069
|
+
export declare const PROFILE_SESSION_WITH_USER_BY_ID_SECRET_OUTPUTS: readonly [{
|
|
2070
|
+
readonly query: "ProfileSessionWithUserById";
|
|
2071
|
+
readonly entity: "Session";
|
|
2072
|
+
readonly field: "token";
|
|
2073
|
+
}];
|
|
2074
|
+
export interface ProfileSessionWithUserByIdParams {
|
|
2075
|
+
readonly organization_id: string;
|
|
2076
|
+
readonly value: string;
|
|
2077
|
+
}
|
|
2078
|
+
export interface ProfileSessionWithUserByIdFound {
|
|
2079
|
+
readonly outcome: "Found";
|
|
2080
|
+
readonly session: {
|
|
2081
|
+
readonly id: string;
|
|
2082
|
+
readonly user_id: string;
|
|
2083
|
+
readonly token: string;
|
|
2084
|
+
readonly expires_at: {
|
|
2085
|
+
readonly seconds: bigint;
|
|
2086
|
+
readonly nanos: number;
|
|
2087
|
+
};
|
|
2088
|
+
readonly ip_address: string | null;
|
|
2089
|
+
readonly user_agent: string | null;
|
|
2090
|
+
readonly created_at: {
|
|
2091
|
+
readonly seconds: bigint;
|
|
2092
|
+
readonly nanos: number;
|
|
2093
|
+
};
|
|
2094
|
+
readonly updated_at: {
|
|
2095
|
+
readonly seconds: bigint;
|
|
2096
|
+
readonly nanos: number;
|
|
2097
|
+
};
|
|
2098
|
+
readonly revision: bigint;
|
|
2099
|
+
readonly active_organization_id: string | null;
|
|
2100
|
+
};
|
|
2101
|
+
readonly user: {
|
|
2102
|
+
readonly user_id: string;
|
|
2103
|
+
readonly name: string;
|
|
2104
|
+
readonly email: string;
|
|
2105
|
+
readonly email_verified: boolean;
|
|
2106
|
+
readonly image: string | null;
|
|
2107
|
+
readonly created_at: {
|
|
2108
|
+
readonly seconds: bigint;
|
|
2109
|
+
readonly nanos: number;
|
|
2110
|
+
};
|
|
2111
|
+
readonly updated_at: {
|
|
2112
|
+
readonly seconds: bigint;
|
|
2113
|
+
readonly nanos: number;
|
|
2114
|
+
};
|
|
2115
|
+
readonly revision: bigint;
|
|
2116
|
+
readonly date_field: {
|
|
2117
|
+
readonly seconds: bigint;
|
|
2118
|
+
readonly nanos: number;
|
|
2119
|
+
} | null;
|
|
2120
|
+
readonly locale: string | null;
|
|
2121
|
+
readonly two_factor_enabled: boolean | null;
|
|
2122
|
+
};
|
|
2123
|
+
}
|
|
2124
|
+
export interface ProfileSessionWithUserByIdMissing {
|
|
2125
|
+
readonly outcome: "Missing";
|
|
2126
|
+
}
|
|
2127
|
+
export interface ProfileSessionWithUserByIdIntegrityFailure {
|
|
2128
|
+
readonly outcome: "IntegrityFailure";
|
|
2129
|
+
}
|
|
2130
|
+
export type ProfileSessionWithUserByIdResult = ProfileSessionWithUserByIdFound | ProfileSessionWithUserByIdMissing | ProfileSessionWithUserByIdIntegrityFailure;
|
|
2131
|
+
export declare function isProfileSessionWithUserByIdFound(value: ProfileSessionWithUserByIdResult): value is ProfileSessionWithUserByIdFound;
|
|
2132
|
+
export declare function isProfileSessionWithUserByIdMissing(value: ProfileSessionWithUserByIdResult): value is ProfileSessionWithUserByIdMissing;
|
|
2133
|
+
export declare function isProfileSessionWithUserByIdIntegrityFailure(value: ProfileSessionWithUserByIdResult): value is ProfileSessionWithUserByIdIntegrityFailure;
|
|
2134
|
+
export declare function unwrapProfileSessionWithUserByIdFound(value: ProfileSessionWithUserByIdResult | TypedQueryResult<ProfileSessionWithUserByIdResult>): ProfileSessionWithUserByIdFound;
|
|
2135
|
+
export declare function redactProfileSessionWithUserByIdResult(value: ProfileSessionWithUserByIdResult): {
|
|
2136
|
+
readonly outcome: string;
|
|
2137
|
+
readonly redactedSecretOutputs: typeof PROFILE_SESSION_WITH_USER_BY_ID_SECRET_OUTPUTS;
|
|
2138
|
+
};
|
|
2139
|
+
export declare function profileSessionWithUserById(parameters: ProfileSessionWithUserByIdParams): NamedQueryRequest<ProfileSessionWithUserByIdParams, ProfileSessionWithUserByIdResult>;
|
|
2140
|
+
export declare const PROFILE_SESSION_WITH_USER_BY_TOKEN_QUERY_PLAN_HASH: "707187b2efd0328e11c03a116e14c6020134d3acc2b96c7ea28e88181963aae7";
|
|
2141
|
+
export declare const PROFILE_SESSION_WITH_USER_BY_TOKEN_SECRET_OUTPUTS: readonly [{
|
|
2142
|
+
readonly query: "ProfileSessionWithUserByToken";
|
|
2143
|
+
readonly entity: "Session";
|
|
2144
|
+
readonly field: "token";
|
|
2145
|
+
}];
|
|
2146
|
+
export interface ProfileSessionWithUserByTokenParams {
|
|
2147
|
+
readonly organization_id: string;
|
|
2148
|
+
readonly value: string;
|
|
2149
|
+
}
|
|
2150
|
+
export interface ProfileSessionWithUserByTokenFound {
|
|
2151
|
+
readonly outcome: "Found";
|
|
2152
|
+
readonly session: {
|
|
2153
|
+
readonly id: string;
|
|
2154
|
+
readonly user_id: string;
|
|
2155
|
+
readonly token: string;
|
|
2156
|
+
readonly expires_at: {
|
|
2157
|
+
readonly seconds: bigint;
|
|
2158
|
+
readonly nanos: number;
|
|
2159
|
+
};
|
|
2160
|
+
readonly ip_address: string | null;
|
|
2161
|
+
readonly user_agent: string | null;
|
|
2162
|
+
readonly created_at: {
|
|
2163
|
+
readonly seconds: bigint;
|
|
2164
|
+
readonly nanos: number;
|
|
2165
|
+
};
|
|
2166
|
+
readonly updated_at: {
|
|
2167
|
+
readonly seconds: bigint;
|
|
2168
|
+
readonly nanos: number;
|
|
2169
|
+
};
|
|
2170
|
+
readonly revision: bigint;
|
|
2171
|
+
readonly active_organization_id: string | null;
|
|
2172
|
+
};
|
|
2173
|
+
readonly user: {
|
|
2174
|
+
readonly user_id: string;
|
|
2175
|
+
readonly name: string;
|
|
2176
|
+
readonly email: string;
|
|
2177
|
+
readonly email_verified: boolean;
|
|
2178
|
+
readonly image: string | null;
|
|
2179
|
+
readonly created_at: {
|
|
2180
|
+
readonly seconds: bigint;
|
|
2181
|
+
readonly nanos: number;
|
|
2182
|
+
};
|
|
2183
|
+
readonly updated_at: {
|
|
2184
|
+
readonly seconds: bigint;
|
|
2185
|
+
readonly nanos: number;
|
|
2186
|
+
};
|
|
2187
|
+
readonly revision: bigint;
|
|
2188
|
+
readonly date_field: {
|
|
2189
|
+
readonly seconds: bigint;
|
|
2190
|
+
readonly nanos: number;
|
|
2191
|
+
} | null;
|
|
2192
|
+
readonly locale: string | null;
|
|
2193
|
+
readonly two_factor_enabled: boolean | null;
|
|
2194
|
+
};
|
|
2195
|
+
}
|
|
2196
|
+
export interface ProfileSessionWithUserByTokenMissing {
|
|
2197
|
+
readonly outcome: "Missing";
|
|
2198
|
+
}
|
|
2199
|
+
export interface ProfileSessionWithUserByTokenIntegrityFailure {
|
|
2200
|
+
readonly outcome: "IntegrityFailure";
|
|
2201
|
+
}
|
|
2202
|
+
export type ProfileSessionWithUserByTokenResult = ProfileSessionWithUserByTokenFound | ProfileSessionWithUserByTokenMissing | ProfileSessionWithUserByTokenIntegrityFailure;
|
|
2203
|
+
export declare function isProfileSessionWithUserByTokenFound(value: ProfileSessionWithUserByTokenResult): value is ProfileSessionWithUserByTokenFound;
|
|
2204
|
+
export declare function isProfileSessionWithUserByTokenMissing(value: ProfileSessionWithUserByTokenResult): value is ProfileSessionWithUserByTokenMissing;
|
|
2205
|
+
export declare function isProfileSessionWithUserByTokenIntegrityFailure(value: ProfileSessionWithUserByTokenResult): value is ProfileSessionWithUserByTokenIntegrityFailure;
|
|
2206
|
+
export declare function unwrapProfileSessionWithUserByTokenFound(value: ProfileSessionWithUserByTokenResult | TypedQueryResult<ProfileSessionWithUserByTokenResult>): ProfileSessionWithUserByTokenFound;
|
|
2207
|
+
export declare function redactProfileSessionWithUserByTokenResult(value: ProfileSessionWithUserByTokenResult): {
|
|
2208
|
+
readonly outcome: string;
|
|
2209
|
+
readonly redactedSecretOutputs: typeof PROFILE_SESSION_WITH_USER_BY_TOKEN_SECRET_OUTPUTS;
|
|
2210
|
+
};
|
|
2211
|
+
export declare function profileSessionWithUserByToken(parameters: ProfileSessionWithUserByTokenParams): NamedQueryRequest<ProfileSessionWithUserByTokenParams, ProfileSessionWithUserByTokenResult>;
|
|
2212
|
+
export declare const PROFILE_SESSIONS_WITH_USERS_BY_TOKEN_SET_QUERY_PLAN_HASH: "ea713ee30d3fd2468ed1d8ce78e5e9572a26c6c1b9eac1b7aa097bd892917914";
|
|
2213
|
+
export declare const PROFILE_SESSIONS_WITH_USERS_BY_TOKEN_SET_SECRET_OUTPUTS: readonly [{
|
|
2214
|
+
readonly query: "ProfileSessionsWithUsersByTokenSet";
|
|
2215
|
+
readonly entity: "Session";
|
|
2216
|
+
readonly field: "token";
|
|
2217
|
+
}];
|
|
2218
|
+
export interface ProfileSessionsWithUsersByTokenSetParams {
|
|
2219
|
+
readonly organization_id: string;
|
|
2220
|
+
readonly tokens: ReadonlyArray<string>;
|
|
2221
|
+
}
|
|
2222
|
+
export interface ProfileSessionsWithUsersByTokenSetFound {
|
|
2223
|
+
readonly outcome: "Found";
|
|
2224
|
+
readonly users: ReadonlyArray<{
|
|
2225
|
+
readonly user_id: string;
|
|
2226
|
+
readonly name: string;
|
|
2227
|
+
readonly email: string;
|
|
2228
|
+
readonly email_verified: boolean;
|
|
2229
|
+
readonly image: string | null;
|
|
2230
|
+
readonly created_at: {
|
|
2231
|
+
readonly seconds: bigint;
|
|
2232
|
+
readonly nanos: number;
|
|
2233
|
+
};
|
|
2234
|
+
readonly updated_at: {
|
|
2235
|
+
readonly seconds: bigint;
|
|
2236
|
+
readonly nanos: number;
|
|
2237
|
+
};
|
|
2238
|
+
readonly revision: bigint;
|
|
2239
|
+
readonly date_field: {
|
|
2240
|
+
readonly seconds: bigint;
|
|
2241
|
+
readonly nanos: number;
|
|
2242
|
+
} | null;
|
|
2243
|
+
readonly locale: string | null;
|
|
2244
|
+
readonly two_factor_enabled: boolean | null;
|
|
2245
|
+
}>;
|
|
2246
|
+
readonly sessions: ReadonlyArray<{
|
|
2247
|
+
readonly id: string;
|
|
2248
|
+
readonly user_id: string;
|
|
2249
|
+
readonly token: string;
|
|
2250
|
+
readonly expires_at: {
|
|
2251
|
+
readonly seconds: bigint;
|
|
2252
|
+
readonly nanos: number;
|
|
2253
|
+
};
|
|
2254
|
+
readonly ip_address: string | null;
|
|
2255
|
+
readonly user_agent: string | null;
|
|
2256
|
+
readonly created_at: {
|
|
2257
|
+
readonly seconds: bigint;
|
|
2258
|
+
readonly nanos: number;
|
|
2259
|
+
};
|
|
2260
|
+
readonly updated_at: {
|
|
2261
|
+
readonly seconds: bigint;
|
|
2262
|
+
readonly nanos: number;
|
|
2263
|
+
};
|
|
2264
|
+
readonly revision: bigint;
|
|
2265
|
+
readonly active_organization_id: string | null;
|
|
2266
|
+
}>;
|
|
2267
|
+
}
|
|
2268
|
+
export type ProfileSessionsWithUsersByTokenSetResult = ProfileSessionsWithUsersByTokenSetFound;
|
|
2269
|
+
export declare function isProfileSessionsWithUsersByTokenSetFound(value: ProfileSessionsWithUsersByTokenSetResult): value is ProfileSessionsWithUsersByTokenSetFound;
|
|
2270
|
+
export declare function unwrapProfileSessionsWithUsersByTokenSetFound(value: ProfileSessionsWithUsersByTokenSetResult | TypedQueryResult<ProfileSessionsWithUsersByTokenSetResult>): ProfileSessionsWithUsersByTokenSetFound;
|
|
2271
|
+
export declare function redactProfileSessionsWithUsersByTokenSetResult(value: ProfileSessionsWithUsersByTokenSetResult): {
|
|
2272
|
+
readonly outcome: string;
|
|
2273
|
+
readonly redactedSecretOutputs: typeof PROFILE_SESSIONS_WITH_USERS_BY_TOKEN_SET_SECRET_OUTPUTS;
|
|
2274
|
+
};
|
|
2275
|
+
export declare function profileSessionsWithUsersByTokenSet(parameters: ProfileSessionsWithUsersByTokenSetParams): NamedQueryRequest<ProfileSessionsWithUsersByTokenSetParams, ProfileSessionsWithUsersByTokenSetResult>;
|
|
2276
|
+
export declare const PROFILE_TWO_FACTOR_BY_ID_QUERY_PLAN_HASH: "67dd7f1f9de28b729c5b1be485d67f262f849198dcd71b369176cae171a381b4";
|
|
2277
|
+
export declare const PROFILE_TWO_FACTOR_BY_ID_SECRET_OUTPUTS: readonly [{
|
|
2278
|
+
readonly query: "ProfileTwoFactorById";
|
|
2279
|
+
readonly entity: "TwoFactor";
|
|
2280
|
+
readonly field: "backup_codes";
|
|
2281
|
+
}, {
|
|
2282
|
+
readonly query: "ProfileTwoFactorById";
|
|
2283
|
+
readonly entity: "TwoFactor";
|
|
2284
|
+
readonly field: "failed_verification_count";
|
|
2285
|
+
}, {
|
|
2286
|
+
readonly query: "ProfileTwoFactorById";
|
|
2287
|
+
readonly entity: "TwoFactor";
|
|
2288
|
+
readonly field: "locked_until";
|
|
2289
|
+
}, {
|
|
2290
|
+
readonly query: "ProfileTwoFactorById";
|
|
2291
|
+
readonly entity: "TwoFactor";
|
|
2292
|
+
readonly field: "secret";
|
|
2293
|
+
}];
|
|
2294
|
+
export interface ProfileTwoFactorByIdParams {
|
|
2295
|
+
readonly organization_id: string;
|
|
2296
|
+
readonly id: string;
|
|
2297
|
+
readonly after?: string | null;
|
|
2298
|
+
readonly limit?: number;
|
|
2299
|
+
readonly offset?: bigint;
|
|
2300
|
+
}
|
|
2301
|
+
export interface ProfileTwoFactorByIdFound {
|
|
2302
|
+
readonly outcome: "Found";
|
|
2303
|
+
readonly rows: ReadonlyArray<{
|
|
2304
|
+
readonly two_factor_id: string;
|
|
2305
|
+
readonly backup_codes: string;
|
|
2306
|
+
readonly failed_verification_count: bigint;
|
|
2307
|
+
readonly locked_until: {
|
|
2308
|
+
readonly seconds: bigint;
|
|
2309
|
+
readonly nanos: number;
|
|
2310
|
+
} | null;
|
|
2311
|
+
readonly secret: string;
|
|
2312
|
+
readonly user_id: string;
|
|
2313
|
+
readonly verified: boolean;
|
|
2314
|
+
readonly revision: bigint;
|
|
2315
|
+
}>;
|
|
2316
|
+
}
|
|
2317
|
+
export type ProfileTwoFactorByIdResult = ProfileTwoFactorByIdFound;
|
|
2318
|
+
export declare function isProfileTwoFactorByIdFound(value: ProfileTwoFactorByIdResult): value is ProfileTwoFactorByIdFound;
|
|
2319
|
+
export declare function unwrapProfileTwoFactorByIdFound(value: ProfileTwoFactorByIdResult | TypedQueryResult<ProfileTwoFactorByIdResult>): ProfileTwoFactorByIdFound;
|
|
2320
|
+
export declare function redactProfileTwoFactorByIdResult(value: ProfileTwoFactorByIdResult): {
|
|
2321
|
+
readonly outcome: string;
|
|
2322
|
+
readonly redactedSecretOutputs: typeof PROFILE_TWO_FACTOR_BY_ID_SECRET_OUTPUTS;
|
|
2323
|
+
};
|
|
2324
|
+
export declare function profileTwoFactorById(parameters: ProfileTwoFactorByIdParams): NamedQueryRequest<ProfileTwoFactorByIdParams, ProfileTwoFactorByIdResult>;
|
|
2325
|
+
export declare const PROFILE_TWO_FACTOR_BY_USER_QUERY_PLAN_HASH: "28fab7fa4039cf979dc6a9c8fe9808ee3d4a51f719735091962ea0f0d5d6950a";
|
|
2326
|
+
export declare const PROFILE_TWO_FACTOR_BY_USER_SECRET_OUTPUTS: readonly [{
|
|
2327
|
+
readonly query: "ProfileTwoFactorByUser";
|
|
2328
|
+
readonly entity: "TwoFactor";
|
|
2329
|
+
readonly field: "backup_codes";
|
|
2330
|
+
}, {
|
|
2331
|
+
readonly query: "ProfileTwoFactorByUser";
|
|
2332
|
+
readonly entity: "TwoFactor";
|
|
2333
|
+
readonly field: "failed_verification_count";
|
|
2334
|
+
}, {
|
|
2335
|
+
readonly query: "ProfileTwoFactorByUser";
|
|
2336
|
+
readonly entity: "TwoFactor";
|
|
2337
|
+
readonly field: "locked_until";
|
|
2338
|
+
}, {
|
|
2339
|
+
readonly query: "ProfileTwoFactorByUser";
|
|
2340
|
+
readonly entity: "TwoFactor";
|
|
2341
|
+
readonly field: "secret";
|
|
2342
|
+
}];
|
|
2343
|
+
export interface ProfileTwoFactorByUserParams {
|
|
2344
|
+
readonly organization_id: string;
|
|
2345
|
+
readonly user_id: string;
|
|
2346
|
+
readonly after?: string | null;
|
|
2347
|
+
readonly limit?: number;
|
|
2348
|
+
readonly offset?: bigint;
|
|
2349
|
+
}
|
|
2350
|
+
export interface ProfileTwoFactorByUserFound {
|
|
2351
|
+
readonly outcome: "Found";
|
|
2352
|
+
readonly rows: ReadonlyArray<{
|
|
2353
|
+
readonly two_factor_id: string;
|
|
2354
|
+
readonly backup_codes: string;
|
|
2355
|
+
readonly failed_verification_count: bigint;
|
|
2356
|
+
readonly locked_until: {
|
|
2357
|
+
readonly seconds: bigint;
|
|
2358
|
+
readonly nanos: number;
|
|
2359
|
+
} | null;
|
|
2360
|
+
readonly secret: string;
|
|
2361
|
+
readonly user_id: string;
|
|
2362
|
+
readonly verified: boolean;
|
|
2363
|
+
readonly revision: bigint;
|
|
2364
|
+
}>;
|
|
2365
|
+
}
|
|
2366
|
+
export type ProfileTwoFactorByUserResult = ProfileTwoFactorByUserFound;
|
|
2367
|
+
export declare function isProfileTwoFactorByUserFound(value: ProfileTwoFactorByUserResult): value is ProfileTwoFactorByUserFound;
|
|
2368
|
+
export declare function unwrapProfileTwoFactorByUserFound(value: ProfileTwoFactorByUserResult | TypedQueryResult<ProfileTwoFactorByUserResult>): ProfileTwoFactorByUserFound;
|
|
2369
|
+
export declare function redactProfileTwoFactorByUserResult(value: ProfileTwoFactorByUserResult): {
|
|
2370
|
+
readonly outcome: string;
|
|
2371
|
+
readonly redactedSecretOutputs: typeof PROFILE_TWO_FACTOR_BY_USER_SECRET_OUTPUTS;
|
|
2372
|
+
};
|
|
2373
|
+
export declare function profileTwoFactorByUser(parameters: ProfileTwoFactorByUserParams): NamedQueryRequest<ProfileTwoFactorByUserParams, ProfileTwoFactorByUserResult>;
|
|
2374
|
+
export declare const PROFILE_USER_WITH_ACCOUNTS_BY_EMAIL_QUERY_PLAN_HASH: "f1711965874b1ab3caeb8d2dbcd330263851db15bd227e446a4afa4dfa07e679";
|
|
2375
|
+
export declare const PROFILE_USER_WITH_ACCOUNTS_BY_EMAIL_SECRET_OUTPUTS: readonly [{
|
|
2376
|
+
readonly query: "ProfileUserWithAccountsByEmail";
|
|
2377
|
+
readonly entity: "Account";
|
|
2378
|
+
readonly field: "access_token";
|
|
2379
|
+
}, {
|
|
2380
|
+
readonly query: "ProfileUserWithAccountsByEmail";
|
|
2381
|
+
readonly entity: "Account";
|
|
2382
|
+
readonly field: "refresh_token";
|
|
2383
|
+
}, {
|
|
2384
|
+
readonly query: "ProfileUserWithAccountsByEmail";
|
|
2385
|
+
readonly entity: "Account";
|
|
2386
|
+
readonly field: "id_token";
|
|
2387
|
+
}, {
|
|
2388
|
+
readonly query: "ProfileUserWithAccountsByEmail";
|
|
2389
|
+
readonly entity: "Account";
|
|
2390
|
+
readonly field: "password";
|
|
2391
|
+
}];
|
|
2392
|
+
export interface ProfileUserWithAccountsByEmailParams {
|
|
2393
|
+
readonly organization_id: string;
|
|
2394
|
+
readonly value: string;
|
|
2395
|
+
}
|
|
2396
|
+
export interface ProfileUserWithAccountsByEmailFound {
|
|
2397
|
+
readonly outcome: "Found";
|
|
2398
|
+
readonly user: {
|
|
2399
|
+
readonly user_id: string;
|
|
2400
|
+
readonly name: string;
|
|
2401
|
+
readonly email: string;
|
|
2402
|
+
readonly email_verified: boolean;
|
|
2403
|
+
readonly image: string | null;
|
|
2404
|
+
readonly created_at: {
|
|
2405
|
+
readonly seconds: bigint;
|
|
2406
|
+
readonly nanos: number;
|
|
2407
|
+
};
|
|
2408
|
+
readonly updated_at: {
|
|
2409
|
+
readonly seconds: bigint;
|
|
2410
|
+
readonly nanos: number;
|
|
2411
|
+
};
|
|
2412
|
+
readonly revision: bigint;
|
|
2413
|
+
readonly date_field: {
|
|
2414
|
+
readonly seconds: bigint;
|
|
2415
|
+
readonly nanos: number;
|
|
2416
|
+
} | null;
|
|
2417
|
+
readonly locale: string | null;
|
|
2418
|
+
readonly two_factor_enabled: boolean | null;
|
|
2419
|
+
};
|
|
2420
|
+
readonly accounts: ReadonlyArray<{
|
|
2421
|
+
readonly id: string;
|
|
2422
|
+
readonly user_id: string;
|
|
2423
|
+
readonly account_id: string;
|
|
2424
|
+
readonly provider_id: string;
|
|
2425
|
+
readonly access_token: string | null;
|
|
2426
|
+
readonly refresh_token: string | null;
|
|
2427
|
+
readonly access_token_expires_at: {
|
|
2428
|
+
readonly seconds: bigint;
|
|
2429
|
+
readonly nanos: number;
|
|
2430
|
+
} | null;
|
|
2431
|
+
readonly refresh_token_expires_at: {
|
|
2432
|
+
readonly seconds: bigint;
|
|
2433
|
+
readonly nanos: number;
|
|
2434
|
+
} | null;
|
|
2435
|
+
readonly scope: string | null;
|
|
2436
|
+
readonly id_token: string | null;
|
|
2437
|
+
readonly password: string | null;
|
|
2438
|
+
readonly created_at: {
|
|
2439
|
+
readonly seconds: bigint;
|
|
2440
|
+
readonly nanos: number;
|
|
2441
|
+
};
|
|
2442
|
+
readonly updated_at: {
|
|
2443
|
+
readonly seconds: bigint;
|
|
2444
|
+
readonly nanos: number;
|
|
2445
|
+
};
|
|
2446
|
+
readonly revision: bigint;
|
|
2447
|
+
}>;
|
|
2448
|
+
}
|
|
2449
|
+
export interface ProfileUserWithAccountsByEmailMissing {
|
|
2450
|
+
readonly outcome: "Missing";
|
|
2451
|
+
}
|
|
2452
|
+
export type ProfileUserWithAccountsByEmailResult = ProfileUserWithAccountsByEmailFound | ProfileUserWithAccountsByEmailMissing;
|
|
2453
|
+
export declare function isProfileUserWithAccountsByEmailFound(value: ProfileUserWithAccountsByEmailResult): value is ProfileUserWithAccountsByEmailFound;
|
|
2454
|
+
export declare function isProfileUserWithAccountsByEmailMissing(value: ProfileUserWithAccountsByEmailResult): value is ProfileUserWithAccountsByEmailMissing;
|
|
2455
|
+
export declare function unwrapProfileUserWithAccountsByEmailFound(value: ProfileUserWithAccountsByEmailResult | TypedQueryResult<ProfileUserWithAccountsByEmailResult>): ProfileUserWithAccountsByEmailFound;
|
|
2456
|
+
export declare function redactProfileUserWithAccountsByEmailResult(value: ProfileUserWithAccountsByEmailResult): {
|
|
2457
|
+
readonly outcome: string;
|
|
2458
|
+
readonly redactedSecretOutputs: typeof PROFILE_USER_WITH_ACCOUNTS_BY_EMAIL_SECRET_OUTPUTS;
|
|
2459
|
+
};
|
|
2460
|
+
export declare function profileUserWithAccountsByEmail(parameters: ProfileUserWithAccountsByEmailParams): NamedQueryRequest<ProfileUserWithAccountsByEmailParams, ProfileUserWithAccountsByEmailResult>;
|
|
2461
|
+
export declare const PROFILE_USER_WITH_ACCOUNTS_BY_ID_QUERY_PLAN_HASH: "d13346a27444f7c43029f3931a2071787a50aa80854697947cd906755ee69aac";
|
|
2462
|
+
export declare const PROFILE_USER_WITH_ACCOUNTS_BY_ID_SECRET_OUTPUTS: readonly [{
|
|
2463
|
+
readonly query: "ProfileUserWithAccountsById";
|
|
2464
|
+
readonly entity: "Account";
|
|
2465
|
+
readonly field: "access_token";
|
|
2466
|
+
}, {
|
|
2467
|
+
readonly query: "ProfileUserWithAccountsById";
|
|
2468
|
+
readonly entity: "Account";
|
|
2469
|
+
readonly field: "refresh_token";
|
|
2470
|
+
}, {
|
|
2471
|
+
readonly query: "ProfileUserWithAccountsById";
|
|
2472
|
+
readonly entity: "Account";
|
|
2473
|
+
readonly field: "id_token";
|
|
2474
|
+
}, {
|
|
2475
|
+
readonly query: "ProfileUserWithAccountsById";
|
|
2476
|
+
readonly entity: "Account";
|
|
2477
|
+
readonly field: "password";
|
|
2478
|
+
}];
|
|
2479
|
+
export interface ProfileUserWithAccountsByIdParams {
|
|
2480
|
+
readonly organization_id: string;
|
|
2481
|
+
readonly value: string;
|
|
2482
|
+
}
|
|
2483
|
+
export interface ProfileUserWithAccountsByIdFound {
|
|
2484
|
+
readonly outcome: "Found";
|
|
2485
|
+
readonly user: {
|
|
2486
|
+
readonly user_id: string;
|
|
2487
|
+
readonly name: string;
|
|
2488
|
+
readonly email: string;
|
|
2489
|
+
readonly email_verified: boolean;
|
|
2490
|
+
readonly image: string | null;
|
|
2491
|
+
readonly created_at: {
|
|
2492
|
+
readonly seconds: bigint;
|
|
2493
|
+
readonly nanos: number;
|
|
2494
|
+
};
|
|
2495
|
+
readonly updated_at: {
|
|
2496
|
+
readonly seconds: bigint;
|
|
2497
|
+
readonly nanos: number;
|
|
2498
|
+
};
|
|
2499
|
+
readonly revision: bigint;
|
|
2500
|
+
readonly date_field: {
|
|
2501
|
+
readonly seconds: bigint;
|
|
2502
|
+
readonly nanos: number;
|
|
2503
|
+
} | null;
|
|
2504
|
+
readonly locale: string | null;
|
|
2505
|
+
readonly two_factor_enabled: boolean | null;
|
|
2506
|
+
};
|
|
2507
|
+
readonly accounts: ReadonlyArray<{
|
|
2508
|
+
readonly id: string;
|
|
2509
|
+
readonly user_id: string;
|
|
2510
|
+
readonly account_id: string;
|
|
2511
|
+
readonly provider_id: string;
|
|
2512
|
+
readonly access_token: string | null;
|
|
2513
|
+
readonly refresh_token: string | null;
|
|
2514
|
+
readonly access_token_expires_at: {
|
|
2515
|
+
readonly seconds: bigint;
|
|
2516
|
+
readonly nanos: number;
|
|
2517
|
+
} | null;
|
|
2518
|
+
readonly refresh_token_expires_at: {
|
|
2519
|
+
readonly seconds: bigint;
|
|
2520
|
+
readonly nanos: number;
|
|
2521
|
+
} | null;
|
|
2522
|
+
readonly scope: string | null;
|
|
2523
|
+
readonly id_token: string | null;
|
|
2524
|
+
readonly password: string | null;
|
|
2525
|
+
readonly created_at: {
|
|
2526
|
+
readonly seconds: bigint;
|
|
2527
|
+
readonly nanos: number;
|
|
2528
|
+
};
|
|
2529
|
+
readonly updated_at: {
|
|
2530
|
+
readonly seconds: bigint;
|
|
2531
|
+
readonly nanos: number;
|
|
2532
|
+
};
|
|
2533
|
+
readonly revision: bigint;
|
|
2534
|
+
}>;
|
|
2535
|
+
}
|
|
2536
|
+
export interface ProfileUserWithAccountsByIdMissing {
|
|
2537
|
+
readonly outcome: "Missing";
|
|
2538
|
+
}
|
|
2539
|
+
export type ProfileUserWithAccountsByIdResult = ProfileUserWithAccountsByIdFound | ProfileUserWithAccountsByIdMissing;
|
|
2540
|
+
export declare function isProfileUserWithAccountsByIdFound(value: ProfileUserWithAccountsByIdResult): value is ProfileUserWithAccountsByIdFound;
|
|
2541
|
+
export declare function isProfileUserWithAccountsByIdMissing(value: ProfileUserWithAccountsByIdResult): value is ProfileUserWithAccountsByIdMissing;
|
|
2542
|
+
export declare function unwrapProfileUserWithAccountsByIdFound(value: ProfileUserWithAccountsByIdResult | TypedQueryResult<ProfileUserWithAccountsByIdResult>): ProfileUserWithAccountsByIdFound;
|
|
2543
|
+
export declare function redactProfileUserWithAccountsByIdResult(value: ProfileUserWithAccountsByIdResult): {
|
|
2544
|
+
readonly outcome: string;
|
|
2545
|
+
readonly redactedSecretOutputs: typeof PROFILE_USER_WITH_ACCOUNTS_BY_ID_SECRET_OUTPUTS;
|
|
2546
|
+
};
|
|
2547
|
+
export declare function profileUserWithAccountsById(parameters: ProfileUserWithAccountsByIdParams): NamedQueryRequest<ProfileUserWithAccountsByIdParams, ProfileUserWithAccountsByIdResult>;
|
|
2548
|
+
export declare const PROFILE_USERS_BY_ID_SET_QUERY_PLAN_HASH: "db81a44f67ce03d1123a433c0300248c763e3a18c48f618dfafa90fd95979eee";
|
|
2549
|
+
export declare const PROFILE_USERS_BY_ID_SET_IDS_MAX_ITEMS: 100;
|
|
2550
|
+
export interface ProfileUsersByIdSetParams {
|
|
2551
|
+
readonly organization_id: string;
|
|
2552
|
+
readonly ids: ReadonlyArray<string>;
|
|
2553
|
+
}
|
|
2554
|
+
export interface ProfileUsersByIdSetFound {
|
|
2555
|
+
readonly outcome: "Found";
|
|
2556
|
+
readonly users: ReadonlyArray<{
|
|
2557
|
+
readonly user_id: string;
|
|
2558
|
+
readonly name: string;
|
|
2559
|
+
readonly email: string;
|
|
2560
|
+
readonly email_verified: boolean;
|
|
2561
|
+
readonly image: string | null;
|
|
2562
|
+
readonly created_at: {
|
|
2563
|
+
readonly seconds: bigint;
|
|
2564
|
+
readonly nanos: number;
|
|
2565
|
+
};
|
|
2566
|
+
readonly updated_at: {
|
|
2567
|
+
readonly seconds: bigint;
|
|
2568
|
+
readonly nanos: number;
|
|
2569
|
+
};
|
|
2570
|
+
readonly revision: bigint;
|
|
2571
|
+
readonly date_field: {
|
|
2572
|
+
readonly seconds: bigint;
|
|
2573
|
+
readonly nanos: number;
|
|
2574
|
+
} | null;
|
|
2575
|
+
readonly locale: string | null;
|
|
2576
|
+
readonly two_factor_enabled: boolean | null;
|
|
2577
|
+
}>;
|
|
2578
|
+
}
|
|
2579
|
+
export type ProfileUsersByIdSetResult = ProfileUsersByIdSetFound;
|
|
2580
|
+
export declare function isProfileUsersByIdSetFound(value: ProfileUsersByIdSetResult): value is ProfileUsersByIdSetFound;
|
|
2581
|
+
export declare function unwrapProfileUsersByIdSetFound(value: ProfileUsersByIdSetResult | TypedQueryResult<ProfileUsersByIdSetResult>): ProfileUsersByIdSetFound;
|
|
2582
|
+
export declare function profileUsersByIdSet(parameters: ProfileUsersByIdSetParams): NamedQueryRequest<ProfileUsersByIdSetParams, ProfileUsersByIdSetResult>;
|
|
2583
|
+
export interface ConsumeVerificationInput {
|
|
2584
|
+
readonly request_id: string;
|
|
2585
|
+
readonly organization_id: string;
|
|
2586
|
+
readonly verification_id: string;
|
|
2587
|
+
}
|
|
2588
|
+
export declare const CONSUME_VERIFICATION_SECRET_OUTPUTS: readonly [{
|
|
2589
|
+
readonly outcome: "VerificationConsumed";
|
|
2590
|
+
readonly field: "value";
|
|
2591
|
+
readonly entity: "Verification";
|
|
2592
|
+
readonly sourceField: "value";
|
|
2593
|
+
}];
|
|
2594
|
+
export type ConsumeVerificationOutcome = {
|
|
2595
|
+
readonly outcome: "VerificationConsumed";
|
|
2596
|
+
readonly value: string;
|
|
2597
|
+
readonly revision: bigint;
|
|
2598
|
+
readonly created_at: {
|
|
2599
|
+
readonly seconds: bigint;
|
|
2600
|
+
readonly nanos: number;
|
|
2601
|
+
};
|
|
2602
|
+
readonly expires_at: {
|
|
2603
|
+
readonly seconds: bigint;
|
|
2604
|
+
readonly nanos: number;
|
|
2605
|
+
};
|
|
2606
|
+
readonly identifier: string;
|
|
2607
|
+
readonly updated_at: {
|
|
2608
|
+
readonly seconds: bigint;
|
|
2609
|
+
readonly nanos: number;
|
|
2610
|
+
};
|
|
2611
|
+
readonly verification_id: string;
|
|
2612
|
+
} | {
|
|
2613
|
+
readonly outcome: "VerificationConsumeMissing";
|
|
2614
|
+
};
|
|
2615
|
+
export declare function isConsumeVerificationVerificationConsumed(value: ConsumeVerificationOutcome): value is Extract<ConsumeVerificationOutcome, {
|
|
2616
|
+
readonly outcome: "VerificationConsumed";
|
|
2617
|
+
}>;
|
|
2618
|
+
export declare function isConsumeVerificationVerificationConsumeMissing(value: ConsumeVerificationOutcome): value is Extract<ConsumeVerificationOutcome, {
|
|
2619
|
+
readonly outcome: "VerificationConsumeMissing";
|
|
2620
|
+
}>;
|
|
2621
|
+
export declare function redactConsumeVerificationOutcome(value: ConsumeVerificationOutcome): {
|
|
2622
|
+
readonly outcome: string;
|
|
2623
|
+
readonly redactedSecretOutputs: typeof CONSUME_VERIFICATION_SECRET_OUTPUTS;
|
|
2624
|
+
};
|
|
2625
|
+
export declare const CONSUME_VERIFICATION_PLAN_HASH: "819488aa7c62b11f9699b8621322f78c29c50902e5b6273eda201020fc2786c3";
|
|
2626
|
+
export declare function consumeVerification(input: ConsumeVerificationInput): CommandRequest<ConsumeVerificationInput, ConsumeVerificationOutcome>;
|
|
2627
|
+
export interface ConsumeVerificationSetInput {
|
|
2628
|
+
readonly request_id: string;
|
|
2629
|
+
readonly organization_id: string;
|
|
2630
|
+
readonly verification_ids: ReadonlyArray<string>;
|
|
2631
|
+
}
|
|
2632
|
+
export type ConsumeVerificationSetOutcome = {
|
|
2633
|
+
readonly outcome: "VerificationSetConsumed";
|
|
2634
|
+
} | {
|
|
2635
|
+
readonly outcome: "VerificationConsumeMissing";
|
|
2636
|
+
};
|
|
2637
|
+
export declare function isConsumeVerificationSetVerificationSetConsumed(value: ConsumeVerificationSetOutcome): value is Extract<ConsumeVerificationSetOutcome, {
|
|
2638
|
+
readonly outcome: "VerificationSetConsumed";
|
|
2639
|
+
}>;
|
|
2640
|
+
export declare function isConsumeVerificationSetVerificationConsumeMissing(value: ConsumeVerificationSetOutcome): value is Extract<ConsumeVerificationSetOutcome, {
|
|
2641
|
+
readonly outcome: "VerificationConsumeMissing";
|
|
2642
|
+
}>;
|
|
2643
|
+
export declare const CONSUME_VERIFICATION_SET_PLAN_HASH: "effe374273d6296a4418aa80a1caf83cc9f435137d80acd57882ae412b1065bd";
|
|
2644
|
+
export declare function consumeVerificationSet(input: ConsumeVerificationSetInput): CommandRequest<ConsumeVerificationSetInput, ConsumeVerificationSetOutcome>;
|
|
2645
|
+
export interface ConsumeVerificationSnapshotInput {
|
|
2646
|
+
readonly request_id: string;
|
|
2647
|
+
readonly organization_id: string;
|
|
2648
|
+
readonly verification_id: string;
|
|
2649
|
+
readonly expected_revision: bigint;
|
|
2650
|
+
}
|
|
2651
|
+
export type ConsumeVerificationSnapshotOutcome = {
|
|
2652
|
+
readonly outcome: "VerificationConsumed";
|
|
2653
|
+
} | {
|
|
2654
|
+
readonly outcome: "VerificationConsumeStale";
|
|
2655
|
+
} | {
|
|
2656
|
+
readonly outcome: "VerificationConsumeMissing";
|
|
2657
|
+
};
|
|
2658
|
+
export declare function isConsumeVerificationSnapshotVerificationConsumed(value: ConsumeVerificationSnapshotOutcome): value is Extract<ConsumeVerificationSnapshotOutcome, {
|
|
2659
|
+
readonly outcome: "VerificationConsumed";
|
|
2660
|
+
}>;
|
|
2661
|
+
export declare function isConsumeVerificationSnapshotVerificationConsumeStale(value: ConsumeVerificationSnapshotOutcome): value is Extract<ConsumeVerificationSnapshotOutcome, {
|
|
2662
|
+
readonly outcome: "VerificationConsumeStale";
|
|
2663
|
+
}>;
|
|
2664
|
+
export declare function isConsumeVerificationSnapshotVerificationConsumeMissing(value: ConsumeVerificationSnapshotOutcome): value is Extract<ConsumeVerificationSnapshotOutcome, {
|
|
2665
|
+
readonly outcome: "VerificationConsumeMissing";
|
|
2666
|
+
}>;
|
|
2667
|
+
export declare const CONSUME_VERIFICATION_SNAPSHOT_PLAN_HASH: "27b0ffd27376945c2f68ce936768796fff73178be83b207919c9568d50f1c218";
|
|
2668
|
+
export declare function consumeVerificationSnapshot(input: ConsumeVerificationSnapshotInput): CommandRequest<ConsumeVerificationSnapshotInput, ConsumeVerificationSnapshotOutcome>;
|
|
2669
|
+
export interface CreateAccountInput {
|
|
2670
|
+
readonly id: string;
|
|
2671
|
+
readonly scope: string | null;
|
|
2672
|
+
readonly user_id: string;
|
|
2673
|
+
readonly id_token: string | null;
|
|
2674
|
+
readonly password: string | null;
|
|
2675
|
+
readonly account_id: string;
|
|
2676
|
+
readonly created_at: {
|
|
2677
|
+
readonly seconds: bigint;
|
|
2678
|
+
readonly nanos: number;
|
|
2679
|
+
};
|
|
2680
|
+
readonly request_id: string;
|
|
2681
|
+
readonly updated_at: {
|
|
2682
|
+
readonly seconds: bigint;
|
|
2683
|
+
readonly nanos: number;
|
|
2684
|
+
};
|
|
2685
|
+
readonly provider_id: string;
|
|
2686
|
+
readonly access_token: string | null;
|
|
2687
|
+
readonly refresh_token: string | null;
|
|
2688
|
+
readonly organization_id: string;
|
|
2689
|
+
readonly access_token_expires_at: {
|
|
2690
|
+
readonly seconds: bigint;
|
|
2691
|
+
readonly nanos: number;
|
|
2692
|
+
} | null;
|
|
2693
|
+
readonly refresh_token_expires_at: {
|
|
2694
|
+
readonly seconds: bigint;
|
|
2695
|
+
readonly nanos: number;
|
|
2696
|
+
} | null;
|
|
2697
|
+
}
|
|
2698
|
+
export type CreateAccountOutcome = {
|
|
2699
|
+
readonly outcome: "AccountCreated";
|
|
2700
|
+
} | {
|
|
2701
|
+
readonly outcome: "AccountUserMissing";
|
|
2702
|
+
} | {
|
|
2703
|
+
readonly outcome: "AccountAlreadyExists";
|
|
2704
|
+
};
|
|
2705
|
+
export declare function isCreateAccountAccountCreated(value: CreateAccountOutcome): value is Extract<CreateAccountOutcome, {
|
|
2706
|
+
readonly outcome: "AccountCreated";
|
|
2707
|
+
}>;
|
|
2708
|
+
export declare function isCreateAccountAccountUserMissing(value: CreateAccountOutcome): value is Extract<CreateAccountOutcome, {
|
|
2709
|
+
readonly outcome: "AccountUserMissing";
|
|
2710
|
+
}>;
|
|
2711
|
+
export declare function isCreateAccountAccountAlreadyExists(value: CreateAccountOutcome): value is Extract<CreateAccountOutcome, {
|
|
2712
|
+
readonly outcome: "AccountAlreadyExists";
|
|
2713
|
+
}>;
|
|
2714
|
+
export declare const CREATE_ACCOUNT_PLAN_HASH: "30fe61cf80061967a9b35f3eaf7bccabbfab2a8159fb913197c0d43f86dc3237";
|
|
2715
|
+
export declare function createAccount(input: CreateAccountInput): CommandRequest<CreateAccountInput, CreateAccountOutcome>;
|
|
2716
|
+
export interface CreateInvitationInput {
|
|
2717
|
+
readonly role: string | null;
|
|
2718
|
+
readonly email: string;
|
|
2719
|
+
readonly org_id: string;
|
|
2720
|
+
readonly status: string;
|
|
2721
|
+
readonly created_at: {
|
|
2722
|
+
readonly seconds: bigint;
|
|
2723
|
+
readonly nanos: number;
|
|
2724
|
+
};
|
|
2725
|
+
readonly expires_at: {
|
|
2726
|
+
readonly seconds: bigint;
|
|
2727
|
+
readonly nanos: number;
|
|
2728
|
+
};
|
|
2729
|
+
readonly inviter_id: string;
|
|
2730
|
+
readonly request_id: string;
|
|
2731
|
+
readonly invitation_id: string;
|
|
2732
|
+
readonly organization_id: string;
|
|
2733
|
+
}
|
|
2734
|
+
export type CreateInvitationOutcome = {
|
|
2735
|
+
readonly outcome: "CapacityExceeded";
|
|
2736
|
+
} | {
|
|
2737
|
+
readonly outcome: "InvitationCreated";
|
|
2738
|
+
} | {
|
|
2739
|
+
readonly outcome: "InvitationAlreadyExists";
|
|
2740
|
+
} | {
|
|
2741
|
+
readonly outcome: "InvitationParentMissing";
|
|
2742
|
+
};
|
|
2743
|
+
export declare function isCreateInvitationCapacityExceeded(value: CreateInvitationOutcome): value is Extract<CreateInvitationOutcome, {
|
|
2744
|
+
readonly outcome: "CapacityExceeded";
|
|
2745
|
+
}>;
|
|
2746
|
+
export declare function isCreateInvitationInvitationCreated(value: CreateInvitationOutcome): value is Extract<CreateInvitationOutcome, {
|
|
2747
|
+
readonly outcome: "InvitationCreated";
|
|
2748
|
+
}>;
|
|
2749
|
+
export declare function isCreateInvitationInvitationAlreadyExists(value: CreateInvitationOutcome): value is Extract<CreateInvitationOutcome, {
|
|
2750
|
+
readonly outcome: "InvitationAlreadyExists";
|
|
2751
|
+
}>;
|
|
2752
|
+
export declare function isCreateInvitationInvitationParentMissing(value: CreateInvitationOutcome): value is Extract<CreateInvitationOutcome, {
|
|
2753
|
+
readonly outcome: "InvitationParentMissing";
|
|
2754
|
+
}>;
|
|
2755
|
+
export declare const CREATE_INVITATION_PLAN_HASH: "4ba32a12eb0b3cbabbc5b6f01aed30b7b5bf36f67b1f840ed925edf61407a154";
|
|
2756
|
+
export declare function createInvitation(input: CreateInvitationInput): CommandRequest<CreateInvitationInput, CreateInvitationOutcome>;
|
|
2757
|
+
export interface CreateMemberInput {
|
|
2758
|
+
readonly role: string;
|
|
2759
|
+
readonly org_id: string;
|
|
2760
|
+
readonly user_id: string;
|
|
2761
|
+
readonly member_id: string;
|
|
2762
|
+
readonly created_at: {
|
|
2763
|
+
readonly seconds: bigint;
|
|
2764
|
+
readonly nanos: number;
|
|
2765
|
+
};
|
|
2766
|
+
readonly request_id: string;
|
|
2767
|
+
readonly organization_id: string;
|
|
2768
|
+
}
|
|
2769
|
+
export type CreateMemberOutcome = {
|
|
2770
|
+
readonly outcome: "MemberCreated";
|
|
2771
|
+
} | {
|
|
2772
|
+
readonly outcome: "CapacityExceeded";
|
|
2773
|
+
} | {
|
|
2774
|
+
readonly outcome: "MemberAlreadyExists";
|
|
2775
|
+
} | {
|
|
2776
|
+
readonly outcome: "MemberParentMissing";
|
|
2777
|
+
};
|
|
2778
|
+
export declare function isCreateMemberMemberCreated(value: CreateMemberOutcome): value is Extract<CreateMemberOutcome, {
|
|
2779
|
+
readonly outcome: "MemberCreated";
|
|
2780
|
+
}>;
|
|
2781
|
+
export declare function isCreateMemberCapacityExceeded(value: CreateMemberOutcome): value is Extract<CreateMemberOutcome, {
|
|
2782
|
+
readonly outcome: "CapacityExceeded";
|
|
2783
|
+
}>;
|
|
2784
|
+
export declare function isCreateMemberMemberAlreadyExists(value: CreateMemberOutcome): value is Extract<CreateMemberOutcome, {
|
|
2785
|
+
readonly outcome: "MemberAlreadyExists";
|
|
2786
|
+
}>;
|
|
2787
|
+
export declare function isCreateMemberMemberParentMissing(value: CreateMemberOutcome): value is Extract<CreateMemberOutcome, {
|
|
2788
|
+
readonly outcome: "MemberParentMissing";
|
|
2789
|
+
}>;
|
|
2790
|
+
export declare const CREATE_MEMBER_PLAN_HASH: "c3c64b7c18ac6e3c71df93c572a19cc6f8d68b871b899f1cd9b91f8bb967e8ec";
|
|
2791
|
+
export declare function createMember(input: CreateMemberInput): CommandRequest<CreateMemberInput, CreateMemberOutcome>;
|
|
2792
|
+
export interface CreateMemberAndActivateOrganizationInput {
|
|
2793
|
+
readonly role: string;
|
|
2794
|
+
readonly org_id: string;
|
|
2795
|
+
readonly user_id: string;
|
|
2796
|
+
readonly member_id: string;
|
|
2797
|
+
readonly created_at: {
|
|
2798
|
+
readonly seconds: bigint;
|
|
2799
|
+
readonly nanos: number;
|
|
2800
|
+
};
|
|
2801
|
+
readonly request_id: string;
|
|
2802
|
+
readonly session_id: string;
|
|
2803
|
+
readonly organization_id: string;
|
|
2804
|
+
readonly session_user_id: string;
|
|
2805
|
+
readonly session_revision: bigint;
|
|
2806
|
+
readonly session_updated_at: {
|
|
2807
|
+
readonly seconds: bigint;
|
|
2808
|
+
readonly nanos: number;
|
|
2809
|
+
};
|
|
2810
|
+
readonly session_active_organization_id: string | null;
|
|
2811
|
+
}
|
|
2812
|
+
export type CreateMemberAndActivateOrganizationOutcome = {
|
|
2813
|
+
readonly outcome: "Stale";
|
|
2814
|
+
} | {
|
|
2815
|
+
readonly outcome: "MemberCreated";
|
|
2816
|
+
} | {
|
|
2817
|
+
readonly outcome: "SessionMissing";
|
|
2818
|
+
} | {
|
|
2819
|
+
readonly outcome: "CapacityExceeded";
|
|
2820
|
+
} | {
|
|
2821
|
+
readonly outcome: "MemberAlreadyExists";
|
|
2822
|
+
} | {
|
|
2823
|
+
readonly outcome: "MemberParentMissing";
|
|
2824
|
+
} | {
|
|
2825
|
+
readonly outcome: "SessionOwnerMismatch";
|
|
2826
|
+
};
|
|
2827
|
+
export declare function isCreateMemberAndActivateOrganizationStale(value: CreateMemberAndActivateOrganizationOutcome): value is Extract<CreateMemberAndActivateOrganizationOutcome, {
|
|
2828
|
+
readonly outcome: "Stale";
|
|
2829
|
+
}>;
|
|
2830
|
+
export declare function isCreateMemberAndActivateOrganizationMemberCreated(value: CreateMemberAndActivateOrganizationOutcome): value is Extract<CreateMemberAndActivateOrganizationOutcome, {
|
|
2831
|
+
readonly outcome: "MemberCreated";
|
|
2832
|
+
}>;
|
|
2833
|
+
export declare function isCreateMemberAndActivateOrganizationSessionMissing(value: CreateMemberAndActivateOrganizationOutcome): value is Extract<CreateMemberAndActivateOrganizationOutcome, {
|
|
2834
|
+
readonly outcome: "SessionMissing";
|
|
2835
|
+
}>;
|
|
2836
|
+
export declare function isCreateMemberAndActivateOrganizationCapacityExceeded(value: CreateMemberAndActivateOrganizationOutcome): value is Extract<CreateMemberAndActivateOrganizationOutcome, {
|
|
2837
|
+
readonly outcome: "CapacityExceeded";
|
|
2838
|
+
}>;
|
|
2839
|
+
export declare function isCreateMemberAndActivateOrganizationMemberAlreadyExists(value: CreateMemberAndActivateOrganizationOutcome): value is Extract<CreateMemberAndActivateOrganizationOutcome, {
|
|
2840
|
+
readonly outcome: "MemberAlreadyExists";
|
|
2841
|
+
}>;
|
|
2842
|
+
export declare function isCreateMemberAndActivateOrganizationMemberParentMissing(value: CreateMemberAndActivateOrganizationOutcome): value is Extract<CreateMemberAndActivateOrganizationOutcome, {
|
|
2843
|
+
readonly outcome: "MemberParentMissing";
|
|
2844
|
+
}>;
|
|
2845
|
+
export declare function isCreateMemberAndActivateOrganizationSessionOwnerMismatch(value: CreateMemberAndActivateOrganizationOutcome): value is Extract<CreateMemberAndActivateOrganizationOutcome, {
|
|
2846
|
+
readonly outcome: "SessionOwnerMismatch";
|
|
2847
|
+
}>;
|
|
2848
|
+
export declare const CREATE_MEMBER_AND_ACTIVATE_ORGANIZATION_PLAN_HASH: "33949f4ab07a9469ee76ef73c63f8924dd2bcab28c0ffc502a4bb664ec74c791";
|
|
2849
|
+
export declare function createMemberAndActivateOrganization(input: CreateMemberAndActivateOrganizationInput): CommandRequest<CreateMemberAndActivateOrganizationInput, CreateMemberAndActivateOrganizationOutcome>;
|
|
2850
|
+
export interface CreateOAuthUserGraphInput {
|
|
2851
|
+
readonly scope: string | null;
|
|
2852
|
+
readonly user_id: string;
|
|
2853
|
+
readonly id_token: string | null;
|
|
2854
|
+
readonly password: string | null;
|
|
2855
|
+
readonly user_name: string;
|
|
2856
|
+
readonly account_id: string;
|
|
2857
|
+
readonly request_id: string;
|
|
2858
|
+
readonly user_email: string;
|
|
2859
|
+
readonly user_image: string | null;
|
|
2860
|
+
readonly provider_id: string;
|
|
2861
|
+
readonly user_locale: string | null;
|
|
2862
|
+
readonly access_token: string | null;
|
|
2863
|
+
readonly refresh_token: string | null;
|
|
2864
|
+
readonly organization_id: string;
|
|
2865
|
+
readonly user_created_at: {
|
|
2866
|
+
readonly seconds: bigint;
|
|
2867
|
+
readonly nanos: number;
|
|
2868
|
+
};
|
|
2869
|
+
readonly user_date_field: {
|
|
2870
|
+
readonly seconds: bigint;
|
|
2871
|
+
readonly nanos: number;
|
|
2872
|
+
} | null;
|
|
2873
|
+
readonly user_updated_at: {
|
|
2874
|
+
readonly seconds: bigint;
|
|
2875
|
+
readonly nanos: number;
|
|
2876
|
+
};
|
|
2877
|
+
readonly account_created_at: {
|
|
2878
|
+
readonly seconds: bigint;
|
|
2879
|
+
readonly nanos: number;
|
|
2880
|
+
};
|
|
2881
|
+
readonly account_updated_at: {
|
|
2882
|
+
readonly seconds: bigint;
|
|
2883
|
+
readonly nanos: number;
|
|
2884
|
+
};
|
|
2885
|
+
readonly external_account_id: string;
|
|
2886
|
+
readonly user_email_verified: boolean;
|
|
2887
|
+
readonly access_token_expires_at: {
|
|
2888
|
+
readonly seconds: bigint;
|
|
2889
|
+
readonly nanos: number;
|
|
2890
|
+
} | null;
|
|
2891
|
+
readonly user_two_factor_enabled: boolean | null;
|
|
2892
|
+
readonly refresh_token_expires_at: {
|
|
2893
|
+
readonly seconds: bigint;
|
|
2894
|
+
readonly nanos: number;
|
|
2895
|
+
} | null;
|
|
2896
|
+
}
|
|
2897
|
+
export type CreateOAuthUserGraphOutcome = {
|
|
2898
|
+
readonly outcome: "OAuthUserExists";
|
|
2899
|
+
} | {
|
|
2900
|
+
readonly outcome: "OAuthAccountExists";
|
|
2901
|
+
} | {
|
|
2902
|
+
readonly outcome: "OAuthUserGraphCreated";
|
|
2903
|
+
};
|
|
2904
|
+
export declare function isCreateOAuthUserGraphOAuthUserExists(value: CreateOAuthUserGraphOutcome): value is Extract<CreateOAuthUserGraphOutcome, {
|
|
2905
|
+
readonly outcome: "OAuthUserExists";
|
|
2906
|
+
}>;
|
|
2907
|
+
export declare function isCreateOAuthUserGraphOAuthAccountExists(value: CreateOAuthUserGraphOutcome): value is Extract<CreateOAuthUserGraphOutcome, {
|
|
2908
|
+
readonly outcome: "OAuthAccountExists";
|
|
2909
|
+
}>;
|
|
2910
|
+
export declare function isCreateOAuthUserGraphOAuthUserGraphCreated(value: CreateOAuthUserGraphOutcome): value is Extract<CreateOAuthUserGraphOutcome, {
|
|
2911
|
+
readonly outcome: "OAuthUserGraphCreated";
|
|
2912
|
+
}>;
|
|
2913
|
+
export declare const CREATE_O_AUTH_USER_GRAPH_PLAN_HASH: "cc6c0d4958ce84506172d95dd757f70de50f9a3bdd5ed3902f431199fd6c4c83";
|
|
2914
|
+
export declare function createOAuthUserGraph(input: CreateOAuthUserGraphInput): CommandRequest<CreateOAuthUserGraphInput, CreateOAuthUserGraphOutcome>;
|
|
2915
|
+
export interface CreateOrganizationInput {
|
|
2916
|
+
readonly logo: string | null;
|
|
2917
|
+
readonly name: string;
|
|
2918
|
+
readonly slug: string;
|
|
2919
|
+
readonly org_id: string;
|
|
2920
|
+
readonly metadata: string | null;
|
|
2921
|
+
readonly created_at: {
|
|
2922
|
+
readonly seconds: bigint;
|
|
2923
|
+
readonly nanos: number;
|
|
2924
|
+
};
|
|
2925
|
+
readonly request_id: string;
|
|
2926
|
+
readonly organization_id: string;
|
|
2927
|
+
}
|
|
2928
|
+
export type CreateOrganizationOutcome = {
|
|
2929
|
+
readonly outcome: "OrganizationCreated";
|
|
2930
|
+
} | {
|
|
2931
|
+
readonly outcome: "OrganizationAlreadyExists";
|
|
2932
|
+
};
|
|
2933
|
+
export declare function isCreateOrganizationOrganizationCreated(value: CreateOrganizationOutcome): value is Extract<CreateOrganizationOutcome, {
|
|
2934
|
+
readonly outcome: "OrganizationCreated";
|
|
2935
|
+
}>;
|
|
2936
|
+
export declare function isCreateOrganizationOrganizationAlreadyExists(value: CreateOrganizationOutcome): value is Extract<CreateOrganizationOutcome, {
|
|
2937
|
+
readonly outcome: "OrganizationAlreadyExists";
|
|
2938
|
+
}>;
|
|
2939
|
+
export declare const CREATE_ORGANIZATION_PLAN_HASH: "2ddc30bfdf8c7a696edd5c38eee1e8eb0cf8fbd2d9d0daa4e7b64a2e0ecc9384";
|
|
2940
|
+
export declare function createOrganization(input: CreateOrganizationInput): CommandRequest<CreateOrganizationInput, CreateOrganizationOutcome>;
|
|
2941
|
+
export interface CreateSessionInput {
|
|
2942
|
+
readonly id: string;
|
|
2943
|
+
readonly token: string;
|
|
2944
|
+
readonly user_id: string;
|
|
2945
|
+
readonly created_at: {
|
|
2946
|
+
readonly seconds: bigint;
|
|
2947
|
+
readonly nanos: number;
|
|
2948
|
+
};
|
|
2949
|
+
readonly expires_at: {
|
|
2950
|
+
readonly seconds: bigint;
|
|
2951
|
+
readonly nanos: number;
|
|
2952
|
+
};
|
|
2953
|
+
readonly ip_address: string | null;
|
|
2954
|
+
readonly request_id: string;
|
|
2955
|
+
readonly updated_at: {
|
|
2956
|
+
readonly seconds: bigint;
|
|
2957
|
+
readonly nanos: number;
|
|
2958
|
+
};
|
|
2959
|
+
readonly user_agent: string | null;
|
|
2960
|
+
readonly organization_id: string;
|
|
2961
|
+
readonly active_organization_id: string | null;
|
|
2962
|
+
}
|
|
2963
|
+
export type CreateSessionOutcome = {
|
|
2964
|
+
readonly outcome: "SessionCreated";
|
|
2965
|
+
} | {
|
|
2966
|
+
readonly outcome: "SessionUserMissing";
|
|
2967
|
+
} | {
|
|
2968
|
+
readonly outcome: "SessionAlreadyExists";
|
|
2969
|
+
};
|
|
2970
|
+
export declare function isCreateSessionSessionCreated(value: CreateSessionOutcome): value is Extract<CreateSessionOutcome, {
|
|
2971
|
+
readonly outcome: "SessionCreated";
|
|
2972
|
+
}>;
|
|
2973
|
+
export declare function isCreateSessionSessionUserMissing(value: CreateSessionOutcome): value is Extract<CreateSessionOutcome, {
|
|
2974
|
+
readonly outcome: "SessionUserMissing";
|
|
2975
|
+
}>;
|
|
2976
|
+
export declare function isCreateSessionSessionAlreadyExists(value: CreateSessionOutcome): value is Extract<CreateSessionOutcome, {
|
|
2977
|
+
readonly outcome: "SessionAlreadyExists";
|
|
2978
|
+
}>;
|
|
2979
|
+
export declare const CREATE_SESSION_PLAN_HASH: "441c82b75f2d124d22641a84d9039951f29ad5141cec45dd5c7e62243eaab759";
|
|
2980
|
+
export declare function createSession(input: CreateSessionInput): CommandRequest<CreateSessionInput, CreateSessionOutcome>;
|
|
2981
|
+
export interface CreateSignupGraphInput {
|
|
2982
|
+
readonly user_id: string;
|
|
2983
|
+
readonly user_name: string;
|
|
2984
|
+
readonly account_id: string;
|
|
2985
|
+
readonly request_id: string;
|
|
2986
|
+
readonly session_id: string;
|
|
2987
|
+
readonly user_email: string;
|
|
2988
|
+
readonly user_image: string | null;
|
|
2989
|
+
readonly provider_id: string;
|
|
2990
|
+
readonly user_locale: string | null;
|
|
2991
|
+
readonly session_token: string;
|
|
2992
|
+
readonly organization_id: string;
|
|
2993
|
+
readonly user_created_at: {
|
|
2994
|
+
readonly seconds: bigint;
|
|
2995
|
+
readonly nanos: number;
|
|
2996
|
+
};
|
|
2997
|
+
readonly user_date_field: {
|
|
2998
|
+
readonly seconds: bigint;
|
|
2999
|
+
readonly nanos: number;
|
|
3000
|
+
} | null;
|
|
3001
|
+
readonly user_updated_at: {
|
|
3002
|
+
readonly seconds: bigint;
|
|
3003
|
+
readonly nanos: number;
|
|
3004
|
+
};
|
|
3005
|
+
readonly account_password: string | null;
|
|
3006
|
+
readonly account_created_at: {
|
|
3007
|
+
readonly seconds: bigint;
|
|
3008
|
+
readonly nanos: number;
|
|
3009
|
+
};
|
|
3010
|
+
readonly account_updated_at: {
|
|
3011
|
+
readonly seconds: bigint;
|
|
3012
|
+
readonly nanos: number;
|
|
3013
|
+
};
|
|
3014
|
+
readonly session_created_at: {
|
|
3015
|
+
readonly seconds: bigint;
|
|
3016
|
+
readonly nanos: number;
|
|
3017
|
+
};
|
|
3018
|
+
readonly session_expires_at: {
|
|
3019
|
+
readonly seconds: bigint;
|
|
3020
|
+
readonly nanos: number;
|
|
3021
|
+
};
|
|
3022
|
+
readonly session_ip_address: string | null;
|
|
3023
|
+
readonly session_updated_at: {
|
|
3024
|
+
readonly seconds: bigint;
|
|
3025
|
+
readonly nanos: number;
|
|
3026
|
+
};
|
|
3027
|
+
readonly session_user_agent: string | null;
|
|
3028
|
+
readonly external_account_id: string;
|
|
3029
|
+
readonly user_email_verified: boolean;
|
|
3030
|
+
readonly user_two_factor_enabled: boolean | null;
|
|
3031
|
+
readonly session_active_organization_id: string | null;
|
|
3032
|
+
}
|
|
3033
|
+
export type CreateSignupGraphOutcome = {
|
|
3034
|
+
readonly outcome: "SignupUserExists";
|
|
3035
|
+
} | {
|
|
3036
|
+
readonly outcome: "SignupGraphCreated";
|
|
3037
|
+
} | {
|
|
3038
|
+
readonly outcome: "SignupAccountExists";
|
|
3039
|
+
} | {
|
|
3040
|
+
readonly outcome: "SignupSessionExists";
|
|
3041
|
+
};
|
|
3042
|
+
export declare function isCreateSignupGraphSignupUserExists(value: CreateSignupGraphOutcome): value is Extract<CreateSignupGraphOutcome, {
|
|
3043
|
+
readonly outcome: "SignupUserExists";
|
|
3044
|
+
}>;
|
|
3045
|
+
export declare function isCreateSignupGraphSignupGraphCreated(value: CreateSignupGraphOutcome): value is Extract<CreateSignupGraphOutcome, {
|
|
3046
|
+
readonly outcome: "SignupGraphCreated";
|
|
3047
|
+
}>;
|
|
3048
|
+
export declare function isCreateSignupGraphSignupAccountExists(value: CreateSignupGraphOutcome): value is Extract<CreateSignupGraphOutcome, {
|
|
3049
|
+
readonly outcome: "SignupAccountExists";
|
|
3050
|
+
}>;
|
|
3051
|
+
export declare function isCreateSignupGraphSignupSessionExists(value: CreateSignupGraphOutcome): value is Extract<CreateSignupGraphOutcome, {
|
|
3052
|
+
readonly outcome: "SignupSessionExists";
|
|
3053
|
+
}>;
|
|
3054
|
+
export declare const CREATE_SIGNUP_GRAPH_PLAN_HASH: "a0f28e4d1575f1fb4213c9259c4dcd8dbcad544908b1828da728aa941884bf29";
|
|
3055
|
+
export declare function createSignupGraph(input: CreateSignupGraphInput): CommandRequest<CreateSignupGraphInput, CreateSignupGraphOutcome>;
|
|
3056
|
+
export interface CreateTwoFactorInput {
|
|
3057
|
+
readonly secret: string;
|
|
3058
|
+
readonly user_id: string;
|
|
3059
|
+
readonly verified: boolean;
|
|
3060
|
+
readonly request_id: string;
|
|
3061
|
+
readonly backup_codes: string;
|
|
3062
|
+
readonly locked_until: {
|
|
3063
|
+
readonly seconds: bigint;
|
|
3064
|
+
readonly nanos: number;
|
|
3065
|
+
} | null;
|
|
3066
|
+
readonly two_factor_id: string;
|
|
3067
|
+
readonly organization_id: string;
|
|
3068
|
+
readonly locked_until_millis: bigint;
|
|
3069
|
+
readonly failed_verification_count: bigint;
|
|
3070
|
+
}
|
|
3071
|
+
export type CreateTwoFactorOutcome = {
|
|
3072
|
+
readonly outcome: "TwoFactorCreated";
|
|
3073
|
+
} | {
|
|
3074
|
+
readonly outcome: "TwoFactorAlreadyExists";
|
|
3075
|
+
} | {
|
|
3076
|
+
readonly outcome: "TwoFactorParentMissing";
|
|
3077
|
+
};
|
|
3078
|
+
export declare function isCreateTwoFactorTwoFactorCreated(value: CreateTwoFactorOutcome): value is Extract<CreateTwoFactorOutcome, {
|
|
3079
|
+
readonly outcome: "TwoFactorCreated";
|
|
3080
|
+
}>;
|
|
3081
|
+
export declare function isCreateTwoFactorTwoFactorAlreadyExists(value: CreateTwoFactorOutcome): value is Extract<CreateTwoFactorOutcome, {
|
|
3082
|
+
readonly outcome: "TwoFactorAlreadyExists";
|
|
3083
|
+
}>;
|
|
3084
|
+
export declare function isCreateTwoFactorTwoFactorParentMissing(value: CreateTwoFactorOutcome): value is Extract<CreateTwoFactorOutcome, {
|
|
3085
|
+
readonly outcome: "TwoFactorParentMissing";
|
|
3086
|
+
}>;
|
|
3087
|
+
export declare const CREATE_TWO_FACTOR_PLAN_HASH: "975418af38149fbf96d2a3ef1a56911dafe329fb4ea769a429a677cb7e7c0173";
|
|
3088
|
+
export declare function createTwoFactor(input: CreateTwoFactorInput): CommandRequest<CreateTwoFactorInput, CreateTwoFactorOutcome>;
|
|
3089
|
+
export interface CreateUserInput {
|
|
3090
|
+
readonly id: string;
|
|
3091
|
+
readonly name: string;
|
|
3092
|
+
readonly email: string;
|
|
3093
|
+
readonly image: string | null;
|
|
3094
|
+
readonly locale: string | null;
|
|
3095
|
+
readonly created_at: {
|
|
3096
|
+
readonly seconds: bigint;
|
|
3097
|
+
readonly nanos: number;
|
|
3098
|
+
};
|
|
3099
|
+
readonly date_field: {
|
|
3100
|
+
readonly seconds: bigint;
|
|
3101
|
+
readonly nanos: number;
|
|
3102
|
+
} | null;
|
|
3103
|
+
readonly request_id: string;
|
|
3104
|
+
readonly updated_at: {
|
|
3105
|
+
readonly seconds: bigint;
|
|
3106
|
+
readonly nanos: number;
|
|
3107
|
+
};
|
|
3108
|
+
readonly email_verified: boolean;
|
|
3109
|
+
readonly organization_id: string;
|
|
3110
|
+
readonly two_factor_enabled: boolean | null;
|
|
3111
|
+
}
|
|
3112
|
+
export type CreateUserOutcome = {
|
|
3113
|
+
readonly outcome: "UserCreated";
|
|
3114
|
+
} | {
|
|
3115
|
+
readonly outcome: "UserAlreadyExists";
|
|
3116
|
+
};
|
|
3117
|
+
export declare function isCreateUserUserCreated(value: CreateUserOutcome): value is Extract<CreateUserOutcome, {
|
|
3118
|
+
readonly outcome: "UserCreated";
|
|
3119
|
+
}>;
|
|
3120
|
+
export declare function isCreateUserUserAlreadyExists(value: CreateUserOutcome): value is Extract<CreateUserOutcome, {
|
|
3121
|
+
readonly outcome: "UserAlreadyExists";
|
|
3122
|
+
}>;
|
|
3123
|
+
export declare const CREATE_USER_PLAN_HASH: "8ae1f0585fe21dcbcb401c5875e6b7fcb892ec4f8a7230e4e0544d070bbf603b";
|
|
3124
|
+
export declare function createUser(input: CreateUserInput): CommandRequest<CreateUserInput, CreateUserOutcome>;
|
|
3125
|
+
export interface CreateVerificationInput {
|
|
3126
|
+
readonly id: string;
|
|
3127
|
+
readonly value: string;
|
|
3128
|
+
readonly created_at: {
|
|
3129
|
+
readonly seconds: bigint;
|
|
3130
|
+
readonly nanos: number;
|
|
3131
|
+
};
|
|
3132
|
+
readonly expires_at: {
|
|
3133
|
+
readonly seconds: bigint;
|
|
3134
|
+
readonly nanos: number;
|
|
3135
|
+
};
|
|
3136
|
+
readonly identifier: string;
|
|
3137
|
+
readonly request_id: string;
|
|
3138
|
+
readonly updated_at: {
|
|
3139
|
+
readonly seconds: bigint;
|
|
3140
|
+
readonly nanos: number;
|
|
3141
|
+
};
|
|
3142
|
+
readonly organization_id: string;
|
|
3143
|
+
}
|
|
3144
|
+
export type CreateVerificationOutcome = {
|
|
3145
|
+
readonly outcome: "VerificationCreated";
|
|
3146
|
+
} | {
|
|
3147
|
+
readonly outcome: "VerificationAlreadyExists";
|
|
3148
|
+
};
|
|
3149
|
+
export declare function isCreateVerificationVerificationCreated(value: CreateVerificationOutcome): value is Extract<CreateVerificationOutcome, {
|
|
3150
|
+
readonly outcome: "VerificationCreated";
|
|
3151
|
+
}>;
|
|
3152
|
+
export declare function isCreateVerificationVerificationAlreadyExists(value: CreateVerificationOutcome): value is Extract<CreateVerificationOutcome, {
|
|
3153
|
+
readonly outcome: "VerificationAlreadyExists";
|
|
3154
|
+
}>;
|
|
3155
|
+
export declare const CREATE_VERIFICATION_PLAN_HASH: "ccf5329289e177cf72c1a105e6cabfedc7909ae9287a8c3f99070b4bc2bcb7e0";
|
|
3156
|
+
export declare function createVerification(input: CreateVerificationInput): CommandRequest<CreateVerificationInput, CreateVerificationOutcome>;
|
|
3157
|
+
export interface DeleteAccountInput {
|
|
3158
|
+
readonly user_id: string;
|
|
3159
|
+
readonly request_id: string;
|
|
3160
|
+
readonly account_ids: ReadonlyArray<string>;
|
|
3161
|
+
readonly organization_id: string;
|
|
3162
|
+
}
|
|
3163
|
+
export type DeleteAccountOutcome = {
|
|
3164
|
+
readonly outcome: "AccountDeleted";
|
|
3165
|
+
} | {
|
|
3166
|
+
readonly outcome: "AccountMissing";
|
|
3167
|
+
};
|
|
3168
|
+
export declare function isDeleteAccountAccountDeleted(value: DeleteAccountOutcome): value is Extract<DeleteAccountOutcome, {
|
|
3169
|
+
readonly outcome: "AccountDeleted";
|
|
3170
|
+
}>;
|
|
3171
|
+
export declare function isDeleteAccountAccountMissing(value: DeleteAccountOutcome): value is Extract<DeleteAccountOutcome, {
|
|
3172
|
+
readonly outcome: "AccountMissing";
|
|
3173
|
+
}>;
|
|
3174
|
+
export declare const DELETE_ACCOUNT_PLAN_HASH: "7f75f9ee794dc714cc82f7abd8b1b8c5c137854085ea05540eded4c1269155d5";
|
|
3175
|
+
export declare function deleteAccount(input: DeleteAccountInput): CommandRequest<DeleteAccountInput, DeleteAccountOutcome>;
|
|
3176
|
+
export interface DeleteInvitationInput {
|
|
3177
|
+
readonly ids: ReadonlyArray<string>;
|
|
3178
|
+
readonly org_id: string;
|
|
3179
|
+
readonly request_id: string;
|
|
3180
|
+
readonly organization_id: string;
|
|
3181
|
+
}
|
|
3182
|
+
export type DeleteInvitationOutcome = {
|
|
3183
|
+
readonly outcome: "InvitationDeleted";
|
|
3184
|
+
} | {
|
|
3185
|
+
readonly outcome: "InvitationMissing";
|
|
3186
|
+
} | {
|
|
3187
|
+
readonly outcome: "CounterInconsistent";
|
|
3188
|
+
} | {
|
|
3189
|
+
readonly outcome: "OrganizationMissing";
|
|
3190
|
+
} | {
|
|
3191
|
+
readonly outcome: "OrganizationMismatch";
|
|
3192
|
+
};
|
|
3193
|
+
export declare function isDeleteInvitationInvitationDeleted(value: DeleteInvitationOutcome): value is Extract<DeleteInvitationOutcome, {
|
|
3194
|
+
readonly outcome: "InvitationDeleted";
|
|
3195
|
+
}>;
|
|
3196
|
+
export declare function isDeleteInvitationInvitationMissing(value: DeleteInvitationOutcome): value is Extract<DeleteInvitationOutcome, {
|
|
3197
|
+
readonly outcome: "InvitationMissing";
|
|
3198
|
+
}>;
|
|
3199
|
+
export declare function isDeleteInvitationCounterInconsistent(value: DeleteInvitationOutcome): value is Extract<DeleteInvitationOutcome, {
|
|
3200
|
+
readonly outcome: "CounterInconsistent";
|
|
3201
|
+
}>;
|
|
3202
|
+
export declare function isDeleteInvitationOrganizationMissing(value: DeleteInvitationOutcome): value is Extract<DeleteInvitationOutcome, {
|
|
3203
|
+
readonly outcome: "OrganizationMissing";
|
|
3204
|
+
}>;
|
|
3205
|
+
export declare function isDeleteInvitationOrganizationMismatch(value: DeleteInvitationOutcome): value is Extract<DeleteInvitationOutcome, {
|
|
3206
|
+
readonly outcome: "OrganizationMismatch";
|
|
3207
|
+
}>;
|
|
3208
|
+
export declare const DELETE_INVITATION_PLAN_HASH: "4e6520059a4195fcff9b5392a961b28909773a3a2e1bcfce189d3ed16ff32108";
|
|
3209
|
+
export declare function deleteInvitation(input: DeleteInvitationInput): CommandRequest<DeleteInvitationInput, DeleteInvitationOutcome>;
|
|
3210
|
+
export interface DeleteMemberInput {
|
|
3211
|
+
readonly ids: ReadonlyArray<string>;
|
|
3212
|
+
readonly org_id: string;
|
|
3213
|
+
readonly request_id: string;
|
|
3214
|
+
readonly organization_id: string;
|
|
3215
|
+
}
|
|
3216
|
+
export type DeleteMemberOutcome = {
|
|
3217
|
+
readonly outcome: "MemberDeleted";
|
|
3218
|
+
} | {
|
|
3219
|
+
readonly outcome: "MemberMissing";
|
|
3220
|
+
} | {
|
|
3221
|
+
readonly outcome: "CounterInconsistent";
|
|
3222
|
+
} | {
|
|
3223
|
+
readonly outcome: "OrganizationMissing";
|
|
3224
|
+
} | {
|
|
3225
|
+
readonly outcome: "OrganizationMismatch";
|
|
3226
|
+
};
|
|
3227
|
+
export declare function isDeleteMemberMemberDeleted(value: DeleteMemberOutcome): value is Extract<DeleteMemberOutcome, {
|
|
3228
|
+
readonly outcome: "MemberDeleted";
|
|
3229
|
+
}>;
|
|
3230
|
+
export declare function isDeleteMemberMemberMissing(value: DeleteMemberOutcome): value is Extract<DeleteMemberOutcome, {
|
|
3231
|
+
readonly outcome: "MemberMissing";
|
|
3232
|
+
}>;
|
|
3233
|
+
export declare function isDeleteMemberCounterInconsistent(value: DeleteMemberOutcome): value is Extract<DeleteMemberOutcome, {
|
|
3234
|
+
readonly outcome: "CounterInconsistent";
|
|
3235
|
+
}>;
|
|
3236
|
+
export declare function isDeleteMemberOrganizationMissing(value: DeleteMemberOutcome): value is Extract<DeleteMemberOutcome, {
|
|
3237
|
+
readonly outcome: "OrganizationMissing";
|
|
3238
|
+
}>;
|
|
3239
|
+
export declare function isDeleteMemberOrganizationMismatch(value: DeleteMemberOutcome): value is Extract<DeleteMemberOutcome, {
|
|
3240
|
+
readonly outcome: "OrganizationMismatch";
|
|
3241
|
+
}>;
|
|
3242
|
+
export declare const DELETE_MEMBER_PLAN_HASH: "50ebd6f4c40b4906491baf4d9501087b3eb29487cd693e1a3d6ab6ccdfe21d02";
|
|
3243
|
+
export declare function deleteMember(input: DeleteMemberInput): CommandRequest<DeleteMemberInput, DeleteMemberOutcome>;
|
|
3244
|
+
export interface DeleteOrganizationInput {
|
|
3245
|
+
readonly ids: ReadonlyArray<string>;
|
|
3246
|
+
readonly request_id: string;
|
|
3247
|
+
readonly organization_id: string;
|
|
3248
|
+
}
|
|
3249
|
+
export type DeleteOrganizationOutcome = {
|
|
3250
|
+
readonly outcome: "OrganizationDeleted";
|
|
3251
|
+
} | {
|
|
3252
|
+
readonly outcome: "OrganizationMissing";
|
|
3253
|
+
} | {
|
|
3254
|
+
readonly outcome: "CascadeLimitExceeded";
|
|
3255
|
+
};
|
|
3256
|
+
export declare function isDeleteOrganizationOrganizationDeleted(value: DeleteOrganizationOutcome): value is Extract<DeleteOrganizationOutcome, {
|
|
3257
|
+
readonly outcome: "OrganizationDeleted";
|
|
3258
|
+
}>;
|
|
3259
|
+
export declare function isDeleteOrganizationOrganizationMissing(value: DeleteOrganizationOutcome): value is Extract<DeleteOrganizationOutcome, {
|
|
3260
|
+
readonly outcome: "OrganizationMissing";
|
|
3261
|
+
}>;
|
|
3262
|
+
export declare function isDeleteOrganizationCascadeLimitExceeded(value: DeleteOrganizationOutcome): value is Extract<DeleteOrganizationOutcome, {
|
|
3263
|
+
readonly outcome: "CascadeLimitExceeded";
|
|
3264
|
+
}>;
|
|
3265
|
+
export declare const DELETE_ORGANIZATION_PLAN_HASH: "68d37508ac145730dc72e5d66de0b5c51ebf9c4070a81e643d94d80331a23ff3";
|
|
3266
|
+
export declare function deleteOrganization(input: DeleteOrganizationInput): CommandRequest<DeleteOrganizationInput, DeleteOrganizationOutcome>;
|
|
3267
|
+
export interface DeleteSessionInput {
|
|
3268
|
+
readonly user_id: string;
|
|
3269
|
+
readonly request_id: string;
|
|
3270
|
+
readonly session_ids: ReadonlyArray<string>;
|
|
3271
|
+
readonly organization_id: string;
|
|
3272
|
+
}
|
|
3273
|
+
export type DeleteSessionOutcome = {
|
|
3274
|
+
readonly outcome: "SessionDeleted";
|
|
3275
|
+
} | {
|
|
3276
|
+
readonly outcome: "SessionMissing";
|
|
3277
|
+
};
|
|
3278
|
+
export declare function isDeleteSessionSessionDeleted(value: DeleteSessionOutcome): value is Extract<DeleteSessionOutcome, {
|
|
3279
|
+
readonly outcome: "SessionDeleted";
|
|
3280
|
+
}>;
|
|
3281
|
+
export declare function isDeleteSessionSessionMissing(value: DeleteSessionOutcome): value is Extract<DeleteSessionOutcome, {
|
|
3282
|
+
readonly outcome: "SessionMissing";
|
|
3283
|
+
}>;
|
|
3284
|
+
export declare const DELETE_SESSION_PLAN_HASH: "d1cd3c79506bf7b633d131dfac3ae32b7e34a23182c82e25ea3ef40bfc42ca08";
|
|
3285
|
+
export declare function deleteSession(input: DeleteSessionInput): CommandRequest<DeleteSessionInput, DeleteSessionOutcome>;
|
|
3286
|
+
export interface DeleteTwoFactorInput {
|
|
3287
|
+
readonly ids: ReadonlyArray<string>;
|
|
3288
|
+
readonly request_id: string;
|
|
3289
|
+
readonly organization_id: string;
|
|
3290
|
+
}
|
|
3291
|
+
export type DeleteTwoFactorOutcome = {
|
|
3292
|
+
readonly outcome: "TwoFactorDeleted";
|
|
3293
|
+
} | {
|
|
3294
|
+
readonly outcome: "TwoFactorMissing";
|
|
3295
|
+
};
|
|
3296
|
+
export declare function isDeleteTwoFactorTwoFactorDeleted(value: DeleteTwoFactorOutcome): value is Extract<DeleteTwoFactorOutcome, {
|
|
3297
|
+
readonly outcome: "TwoFactorDeleted";
|
|
3298
|
+
}>;
|
|
3299
|
+
export declare function isDeleteTwoFactorTwoFactorMissing(value: DeleteTwoFactorOutcome): value is Extract<DeleteTwoFactorOutcome, {
|
|
3300
|
+
readonly outcome: "TwoFactorMissing";
|
|
3301
|
+
}>;
|
|
3302
|
+
export declare const DELETE_TWO_FACTOR_PLAN_HASH: "226115011eafc3ff25113f7c34158edb9f7bf12f7b13b8cab7a74eb0b21a2fdb";
|
|
3303
|
+
export declare function deleteTwoFactor(input: DeleteTwoFactorInput): CommandRequest<DeleteTwoFactorInput, DeleteTwoFactorOutcome>;
|
|
3304
|
+
export interface DeleteVerificationInput {
|
|
3305
|
+
readonly request_id: string;
|
|
3306
|
+
readonly organization_id: string;
|
|
3307
|
+
readonly verification_ids: ReadonlyArray<string>;
|
|
3308
|
+
}
|
|
3309
|
+
export type DeleteVerificationOutcome = {
|
|
3310
|
+
readonly outcome: "VerificationDeleted";
|
|
3311
|
+
} | {
|
|
3312
|
+
readonly outcome: "VerificationMissing";
|
|
3313
|
+
};
|
|
3314
|
+
export declare function isDeleteVerificationVerificationDeleted(value: DeleteVerificationOutcome): value is Extract<DeleteVerificationOutcome, {
|
|
3315
|
+
readonly outcome: "VerificationDeleted";
|
|
3316
|
+
}>;
|
|
3317
|
+
export declare function isDeleteVerificationVerificationMissing(value: DeleteVerificationOutcome): value is Extract<DeleteVerificationOutcome, {
|
|
3318
|
+
readonly outcome: "VerificationMissing";
|
|
3319
|
+
}>;
|
|
3320
|
+
export declare const DELETE_VERIFICATION_PLAN_HASH: "693a19af89b3ac094c651f739a33d4fadd774c2a8565ec34344fd371975e515b";
|
|
3321
|
+
export declare function deleteVerification(input: DeleteVerificationInput): CommandRequest<DeleteVerificationInput, DeleteVerificationOutcome>;
|
|
3322
|
+
export interface IncrementTwoFactorFailureInput {
|
|
3323
|
+
readonly request_id: string;
|
|
3324
|
+
readonly two_factor_id: string;
|
|
3325
|
+
readonly organization_id: string;
|
|
3326
|
+
}
|
|
3327
|
+
export declare const INCREMENT_TWO_FACTOR_FAILURE_SECRET_OUTPUTS: readonly [{
|
|
3328
|
+
readonly outcome: "Changed";
|
|
3329
|
+
readonly field: "secret";
|
|
3330
|
+
readonly entity: "TwoFactor";
|
|
3331
|
+
readonly sourceField: "secret";
|
|
3332
|
+
}, {
|
|
3333
|
+
readonly outcome: "Changed";
|
|
3334
|
+
readonly field: "backup_codes";
|
|
3335
|
+
readonly entity: "TwoFactor";
|
|
3336
|
+
readonly sourceField: "backup_codes";
|
|
3337
|
+
}, {
|
|
3338
|
+
readonly outcome: "Changed";
|
|
3339
|
+
readonly field: "locked_until";
|
|
3340
|
+
readonly entity: "TwoFactor";
|
|
3341
|
+
readonly sourceField: "locked_until";
|
|
3342
|
+
}, {
|
|
3343
|
+
readonly outcome: "Changed";
|
|
3344
|
+
readonly field: "failed_verification_count";
|
|
3345
|
+
readonly entity: "TwoFactor";
|
|
3346
|
+
readonly sourceField: "failed_verification_count";
|
|
3347
|
+
}];
|
|
3348
|
+
export type IncrementTwoFactorFailureOutcome = {
|
|
3349
|
+
readonly outcome: "Changed";
|
|
3350
|
+
readonly secret: string;
|
|
3351
|
+
readonly user_id: string;
|
|
3352
|
+
readonly revision: bigint;
|
|
3353
|
+
readonly verified: boolean;
|
|
3354
|
+
readonly backup_codes: string;
|
|
3355
|
+
readonly locked_until: {
|
|
3356
|
+
readonly seconds: bigint;
|
|
3357
|
+
readonly nanos: number;
|
|
3358
|
+
} | null;
|
|
3359
|
+
readonly two_factor_id: string;
|
|
3360
|
+
readonly failed_verification_count: bigint;
|
|
3361
|
+
} | {
|
|
3362
|
+
readonly outcome: "Missing";
|
|
3363
|
+
} | {
|
|
3364
|
+
readonly outcome: "GuardFailed";
|
|
3365
|
+
};
|
|
3366
|
+
export declare function isIncrementTwoFactorFailureChanged(value: IncrementTwoFactorFailureOutcome): value is Extract<IncrementTwoFactorFailureOutcome, {
|
|
3367
|
+
readonly outcome: "Changed";
|
|
3368
|
+
}>;
|
|
3369
|
+
export declare function isIncrementTwoFactorFailureMissing(value: IncrementTwoFactorFailureOutcome): value is Extract<IncrementTwoFactorFailureOutcome, {
|
|
3370
|
+
readonly outcome: "Missing";
|
|
3371
|
+
}>;
|
|
3372
|
+
export declare function isIncrementTwoFactorFailureGuardFailed(value: IncrementTwoFactorFailureOutcome): value is Extract<IncrementTwoFactorFailureOutcome, {
|
|
3373
|
+
readonly outcome: "GuardFailed";
|
|
3374
|
+
}>;
|
|
3375
|
+
export declare function redactIncrementTwoFactorFailureOutcome(value: IncrementTwoFactorFailureOutcome): {
|
|
3376
|
+
readonly outcome: string;
|
|
3377
|
+
readonly redactedSecretOutputs: typeof INCREMENT_TWO_FACTOR_FAILURE_SECRET_OUTPUTS;
|
|
3378
|
+
};
|
|
3379
|
+
export declare const INCREMENT_TWO_FACTOR_FAILURE_PLAN_HASH: "e194b104daafdfda6ce74c75daa2ed699ea6b3ce212a265a0d68c20a69a252a6";
|
|
3380
|
+
export declare function incrementTwoFactorFailure(input: IncrementTwoFactorFailureInput): CommandRequest<IncrementTwoFactorFailureInput, IncrementTwoFactorFailureOutcome>;
|
|
3381
|
+
export interface LockTwoFactorInput {
|
|
3382
|
+
readonly request_id: string;
|
|
3383
|
+
readonly locked_until: {
|
|
3384
|
+
readonly seconds: bigint;
|
|
3385
|
+
readonly nanos: number;
|
|
3386
|
+
} | null;
|
|
3387
|
+
readonly two_factor_id: string;
|
|
3388
|
+
readonly organization_id: string;
|
|
3389
|
+
readonly minimum_failures: bigint;
|
|
3390
|
+
readonly locked_until_millis: bigint;
|
|
3391
|
+
}
|
|
3392
|
+
export declare const LOCK_TWO_FACTOR_SECRET_OUTPUTS: readonly [{
|
|
3393
|
+
readonly outcome: "Changed";
|
|
3394
|
+
readonly field: "secret";
|
|
3395
|
+
readonly entity: "TwoFactor";
|
|
3396
|
+
readonly sourceField: "secret";
|
|
3397
|
+
}, {
|
|
3398
|
+
readonly outcome: "Changed";
|
|
3399
|
+
readonly field: "backup_codes";
|
|
3400
|
+
readonly entity: "TwoFactor";
|
|
3401
|
+
readonly sourceField: "backup_codes";
|
|
3402
|
+
}, {
|
|
3403
|
+
readonly outcome: "Changed";
|
|
3404
|
+
readonly field: "locked_until";
|
|
3405
|
+
readonly entity: "TwoFactor";
|
|
3406
|
+
readonly sourceField: "locked_until";
|
|
3407
|
+
}, {
|
|
3408
|
+
readonly outcome: "Changed";
|
|
3409
|
+
readonly field: "failed_verification_count";
|
|
3410
|
+
readonly entity: "TwoFactor";
|
|
3411
|
+
readonly sourceField: "failed_verification_count";
|
|
3412
|
+
}];
|
|
3413
|
+
export type LockTwoFactorOutcome = {
|
|
3414
|
+
readonly outcome: "Changed";
|
|
3415
|
+
readonly secret: string;
|
|
3416
|
+
readonly user_id: string;
|
|
3417
|
+
readonly revision: bigint;
|
|
3418
|
+
readonly verified: boolean;
|
|
3419
|
+
readonly backup_codes: string;
|
|
3420
|
+
readonly locked_until: {
|
|
3421
|
+
readonly seconds: bigint;
|
|
3422
|
+
readonly nanos: number;
|
|
3423
|
+
} | null;
|
|
3424
|
+
readonly two_factor_id: string;
|
|
3425
|
+
readonly failed_verification_count: bigint;
|
|
3426
|
+
} | {
|
|
3427
|
+
readonly outcome: "Missing";
|
|
3428
|
+
} | {
|
|
3429
|
+
readonly outcome: "GuardFailed";
|
|
3430
|
+
};
|
|
3431
|
+
export declare function isLockTwoFactorChanged(value: LockTwoFactorOutcome): value is Extract<LockTwoFactorOutcome, {
|
|
3432
|
+
readonly outcome: "Changed";
|
|
3433
|
+
}>;
|
|
3434
|
+
export declare function isLockTwoFactorMissing(value: LockTwoFactorOutcome): value is Extract<LockTwoFactorOutcome, {
|
|
3435
|
+
readonly outcome: "Missing";
|
|
3436
|
+
}>;
|
|
3437
|
+
export declare function isLockTwoFactorGuardFailed(value: LockTwoFactorOutcome): value is Extract<LockTwoFactorOutcome, {
|
|
3438
|
+
readonly outcome: "GuardFailed";
|
|
3439
|
+
}>;
|
|
3440
|
+
export declare function redactLockTwoFactorOutcome(value: LockTwoFactorOutcome): {
|
|
3441
|
+
readonly outcome: string;
|
|
3442
|
+
readonly redactedSecretOutputs: typeof LOCK_TWO_FACTOR_SECRET_OUTPUTS;
|
|
3443
|
+
};
|
|
3444
|
+
export declare const LOCK_TWO_FACTOR_PLAN_HASH: "d0fa9a17fcc38d56b4ee66b1ae22fce8ce1f714523ae4239e728b57a8a442c80";
|
|
3445
|
+
export declare function lockTwoFactor(input: LockTwoFactorInput): CommandRequest<LockTwoFactorInput, LockTwoFactorOutcome>;
|
|
3446
|
+
export interface ReplaceTwoFactorBackupCodesInput {
|
|
3447
|
+
readonly expected: string;
|
|
3448
|
+
readonly request_id: string;
|
|
3449
|
+
readonly replacement: string;
|
|
3450
|
+
readonly two_factor_id: string;
|
|
3451
|
+
readonly organization_id: string;
|
|
3452
|
+
}
|
|
3453
|
+
export declare const REPLACE_TWO_FACTOR_BACKUP_CODES_SECRET_OUTPUTS: readonly [{
|
|
3454
|
+
readonly outcome: "Changed";
|
|
3455
|
+
readonly field: "secret";
|
|
3456
|
+
readonly entity: "TwoFactor";
|
|
3457
|
+
readonly sourceField: "secret";
|
|
3458
|
+
}, {
|
|
3459
|
+
readonly outcome: "Changed";
|
|
3460
|
+
readonly field: "backup_codes";
|
|
3461
|
+
readonly entity: "TwoFactor";
|
|
3462
|
+
readonly sourceField: "backup_codes";
|
|
3463
|
+
}, {
|
|
3464
|
+
readonly outcome: "Changed";
|
|
3465
|
+
readonly field: "locked_until";
|
|
3466
|
+
readonly entity: "TwoFactor";
|
|
3467
|
+
readonly sourceField: "locked_until";
|
|
3468
|
+
}, {
|
|
3469
|
+
readonly outcome: "Changed";
|
|
3470
|
+
readonly field: "failed_verification_count";
|
|
3471
|
+
readonly entity: "TwoFactor";
|
|
3472
|
+
readonly sourceField: "failed_verification_count";
|
|
3473
|
+
}];
|
|
3474
|
+
export type ReplaceTwoFactorBackupCodesOutcome = {
|
|
3475
|
+
readonly outcome: "Changed";
|
|
3476
|
+
readonly secret: string;
|
|
3477
|
+
readonly user_id: string;
|
|
3478
|
+
readonly revision: bigint;
|
|
3479
|
+
readonly verified: boolean;
|
|
3480
|
+
readonly backup_codes: string;
|
|
3481
|
+
readonly locked_until: {
|
|
3482
|
+
readonly seconds: bigint;
|
|
3483
|
+
readonly nanos: number;
|
|
3484
|
+
} | null;
|
|
3485
|
+
readonly two_factor_id: string;
|
|
3486
|
+
readonly failed_verification_count: bigint;
|
|
3487
|
+
} | {
|
|
3488
|
+
readonly outcome: "Missing";
|
|
3489
|
+
} | {
|
|
3490
|
+
readonly outcome: "GuardFailed";
|
|
3491
|
+
};
|
|
3492
|
+
export declare function isReplaceTwoFactorBackupCodesChanged(value: ReplaceTwoFactorBackupCodesOutcome): value is Extract<ReplaceTwoFactorBackupCodesOutcome, {
|
|
3493
|
+
readonly outcome: "Changed";
|
|
3494
|
+
}>;
|
|
3495
|
+
export declare function isReplaceTwoFactorBackupCodesMissing(value: ReplaceTwoFactorBackupCodesOutcome): value is Extract<ReplaceTwoFactorBackupCodesOutcome, {
|
|
3496
|
+
readonly outcome: "Missing";
|
|
3497
|
+
}>;
|
|
3498
|
+
export declare function isReplaceTwoFactorBackupCodesGuardFailed(value: ReplaceTwoFactorBackupCodesOutcome): value is Extract<ReplaceTwoFactorBackupCodesOutcome, {
|
|
3499
|
+
readonly outcome: "GuardFailed";
|
|
3500
|
+
}>;
|
|
3501
|
+
export declare function redactReplaceTwoFactorBackupCodesOutcome(value: ReplaceTwoFactorBackupCodesOutcome): {
|
|
3502
|
+
readonly outcome: string;
|
|
3503
|
+
readonly redactedSecretOutputs: typeof REPLACE_TWO_FACTOR_BACKUP_CODES_SECRET_OUTPUTS;
|
|
3504
|
+
};
|
|
3505
|
+
export declare const REPLACE_TWO_FACTOR_BACKUP_CODES_PLAN_HASH: "2580172d59a182009cb300302067c3391070977cba9e010d055fba6db7f5b2ca";
|
|
3506
|
+
export declare function replaceTwoFactorBackupCodes(input: ReplaceTwoFactorBackupCodesInput): CommandRequest<ReplaceTwoFactorBackupCodesInput, ReplaceTwoFactorBackupCodesOutcome>;
|
|
3507
|
+
export interface ResetCredentialPasswordInput {
|
|
3508
|
+
readonly user_id: string;
|
|
3509
|
+
readonly password: string;
|
|
3510
|
+
readonly account_id: string;
|
|
3511
|
+
readonly request_id: string;
|
|
3512
|
+
readonly updated_at: {
|
|
3513
|
+
readonly seconds: bigint;
|
|
3514
|
+
readonly nanos: number;
|
|
3515
|
+
};
|
|
3516
|
+
readonly organization_id: string;
|
|
3517
|
+
readonly account_revision: bigint;
|
|
3518
|
+
readonly verification_ids: ReadonlyArray<string>;
|
|
3519
|
+
readonly external_account_id: string;
|
|
3520
|
+
readonly verification_revision: bigint;
|
|
3521
|
+
}
|
|
3522
|
+
export type ResetCredentialPasswordOutcome = {
|
|
3523
|
+
readonly outcome: "PasswordAccountStale";
|
|
3524
|
+
} | {
|
|
3525
|
+
readonly outcome: "PasswordAccountMissing";
|
|
3526
|
+
} | {
|
|
3527
|
+
readonly outcome: "CredentialPasswordReset";
|
|
3528
|
+
} | {
|
|
3529
|
+
readonly outcome: "PasswordProviderMismatch";
|
|
3530
|
+
} | {
|
|
3531
|
+
readonly outcome: "VerificationConsumeStale";
|
|
3532
|
+
} | {
|
|
3533
|
+
readonly outcome: "VerificationConsumeMissing";
|
|
3534
|
+
};
|
|
3535
|
+
export declare function isResetCredentialPasswordPasswordAccountStale(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
|
|
3536
|
+
readonly outcome: "PasswordAccountStale";
|
|
3537
|
+
}>;
|
|
3538
|
+
export declare function isResetCredentialPasswordPasswordAccountMissing(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
|
|
3539
|
+
readonly outcome: "PasswordAccountMissing";
|
|
3540
|
+
}>;
|
|
3541
|
+
export declare function isResetCredentialPasswordCredentialPasswordReset(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
|
|
3542
|
+
readonly outcome: "CredentialPasswordReset";
|
|
3543
|
+
}>;
|
|
3544
|
+
export declare function isResetCredentialPasswordPasswordProviderMismatch(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
|
|
3545
|
+
readonly outcome: "PasswordProviderMismatch";
|
|
3546
|
+
}>;
|
|
3547
|
+
export declare function isResetCredentialPasswordVerificationConsumeStale(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
|
|
3548
|
+
readonly outcome: "VerificationConsumeStale";
|
|
3549
|
+
}>;
|
|
3550
|
+
export declare function isResetCredentialPasswordVerificationConsumeMissing(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
|
|
3551
|
+
readonly outcome: "VerificationConsumeMissing";
|
|
3552
|
+
}>;
|
|
3553
|
+
export declare const RESET_CREDENTIAL_PASSWORD_PLAN_HASH: "4faee9b2ead85b3278ca13c26cdee0fdb45d737e58afca15d6019e10a96b981f";
|
|
3554
|
+
export declare function resetCredentialPassword(input: ResetCredentialPasswordInput): CommandRequest<ResetCredentialPasswordInput, ResetCredentialPasswordOutcome>;
|
|
3555
|
+
export interface ResetExpiredTwoFactorInput {
|
|
3556
|
+
readonly request_id: string;
|
|
3557
|
+
readonly before_millis: bigint;
|
|
3558
|
+
readonly two_factor_id: string;
|
|
3559
|
+
readonly organization_id: string;
|
|
3560
|
+
}
|
|
3561
|
+
export declare const RESET_EXPIRED_TWO_FACTOR_SECRET_OUTPUTS: readonly [{
|
|
3562
|
+
readonly outcome: "Changed";
|
|
3563
|
+
readonly field: "secret";
|
|
3564
|
+
readonly entity: "TwoFactor";
|
|
3565
|
+
readonly sourceField: "secret";
|
|
3566
|
+
}, {
|
|
3567
|
+
readonly outcome: "Changed";
|
|
3568
|
+
readonly field: "backup_codes";
|
|
3569
|
+
readonly entity: "TwoFactor";
|
|
3570
|
+
readonly sourceField: "backup_codes";
|
|
3571
|
+
}, {
|
|
3572
|
+
readonly outcome: "Changed";
|
|
3573
|
+
readonly field: "locked_until";
|
|
3574
|
+
readonly entity: "TwoFactor";
|
|
3575
|
+
readonly sourceField: "locked_until";
|
|
3576
|
+
}, {
|
|
3577
|
+
readonly outcome: "Changed";
|
|
3578
|
+
readonly field: "failed_verification_count";
|
|
3579
|
+
readonly entity: "TwoFactor";
|
|
3580
|
+
readonly sourceField: "failed_verification_count";
|
|
3581
|
+
}];
|
|
3582
|
+
export type ResetExpiredTwoFactorOutcome = {
|
|
3583
|
+
readonly outcome: "Changed";
|
|
3584
|
+
readonly secret: string;
|
|
3585
|
+
readonly user_id: string;
|
|
3586
|
+
readonly revision: bigint;
|
|
3587
|
+
readonly verified: boolean;
|
|
3588
|
+
readonly backup_codes: string;
|
|
3589
|
+
readonly locked_until: {
|
|
3590
|
+
readonly seconds: bigint;
|
|
3591
|
+
readonly nanos: number;
|
|
3592
|
+
} | null;
|
|
3593
|
+
readonly two_factor_id: string;
|
|
3594
|
+
readonly failed_verification_count: bigint;
|
|
3595
|
+
} | {
|
|
3596
|
+
readonly outcome: "Missing";
|
|
3597
|
+
} | {
|
|
3598
|
+
readonly outcome: "GuardFailed";
|
|
3599
|
+
};
|
|
3600
|
+
export declare function isResetExpiredTwoFactorChanged(value: ResetExpiredTwoFactorOutcome): value is Extract<ResetExpiredTwoFactorOutcome, {
|
|
3601
|
+
readonly outcome: "Changed";
|
|
3602
|
+
}>;
|
|
3603
|
+
export declare function isResetExpiredTwoFactorMissing(value: ResetExpiredTwoFactorOutcome): value is Extract<ResetExpiredTwoFactorOutcome, {
|
|
3604
|
+
readonly outcome: "Missing";
|
|
3605
|
+
}>;
|
|
3606
|
+
export declare function isResetExpiredTwoFactorGuardFailed(value: ResetExpiredTwoFactorOutcome): value is Extract<ResetExpiredTwoFactorOutcome, {
|
|
3607
|
+
readonly outcome: "GuardFailed";
|
|
3608
|
+
}>;
|
|
3609
|
+
export declare function redactResetExpiredTwoFactorOutcome(value: ResetExpiredTwoFactorOutcome): {
|
|
3610
|
+
readonly outcome: string;
|
|
3611
|
+
readonly redactedSecretOutputs: typeof RESET_EXPIRED_TWO_FACTOR_SECRET_OUTPUTS;
|
|
3612
|
+
};
|
|
3613
|
+
export declare const RESET_EXPIRED_TWO_FACTOR_PLAN_HASH: "3b081e9d0b38ae5f6ad977c38d919611c4fd1d80427ad79d758cb980f6c82e26";
|
|
3614
|
+
export declare function resetExpiredTwoFactor(input: ResetExpiredTwoFactorInput): CommandRequest<ResetExpiredTwoFactorInput, ResetExpiredTwoFactorOutcome>;
|
|
3615
|
+
export interface TransitionInvitationInput {
|
|
3616
|
+
readonly expected: string;
|
|
3617
|
+
readonly request_id: string;
|
|
3618
|
+
readonly replacement: string;
|
|
3619
|
+
readonly invitation_id: string;
|
|
3620
|
+
readonly organization_id: string;
|
|
3621
|
+
}
|
|
3622
|
+
export type TransitionInvitationOutcome = {
|
|
3623
|
+
readonly outcome: "Changed";
|
|
3624
|
+
readonly role: string | null;
|
|
3625
|
+
readonly email: string;
|
|
3626
|
+
readonly org_id: string;
|
|
3627
|
+
readonly status: string;
|
|
3628
|
+
readonly revision: bigint;
|
|
3629
|
+
readonly created_at: {
|
|
3630
|
+
readonly seconds: bigint;
|
|
3631
|
+
readonly nanos: number;
|
|
3632
|
+
};
|
|
3633
|
+
readonly expires_at: {
|
|
3634
|
+
readonly seconds: bigint;
|
|
3635
|
+
readonly nanos: number;
|
|
3636
|
+
};
|
|
3637
|
+
readonly inviter_id: string;
|
|
3638
|
+
readonly invitation_id: string;
|
|
3639
|
+
} | {
|
|
3640
|
+
readonly outcome: "Missing";
|
|
3641
|
+
} | {
|
|
3642
|
+
readonly outcome: "GuardFailed";
|
|
3643
|
+
};
|
|
3644
|
+
export declare function isTransitionInvitationChanged(value: TransitionInvitationOutcome): value is Extract<TransitionInvitationOutcome, {
|
|
3645
|
+
readonly outcome: "Changed";
|
|
3646
|
+
}>;
|
|
3647
|
+
export declare function isTransitionInvitationMissing(value: TransitionInvitationOutcome): value is Extract<TransitionInvitationOutcome, {
|
|
3648
|
+
readonly outcome: "Missing";
|
|
3649
|
+
}>;
|
|
3650
|
+
export declare function isTransitionInvitationGuardFailed(value: TransitionInvitationOutcome): value is Extract<TransitionInvitationOutcome, {
|
|
3651
|
+
readonly outcome: "GuardFailed";
|
|
3652
|
+
}>;
|
|
3653
|
+
export declare const TRANSITION_INVITATION_PLAN_HASH: "77aa6edbf2ebb2bb355bfe3a8391707f33cb20b23a48e76af46ba5bd5fd1c288";
|
|
3654
|
+
export declare function transitionInvitation(input: TransitionInvitationInput): CommandRequest<TransitionInvitationInput, TransitionInvitationOutcome>;
|
|
3655
|
+
export interface UpdateAccountInput {
|
|
3656
|
+
readonly scope: string | null;
|
|
3657
|
+
readonly user_id: string;
|
|
3658
|
+
readonly id_token: string | null;
|
|
3659
|
+
readonly password: string | null;
|
|
3660
|
+
readonly account_id: string;
|
|
3661
|
+
readonly request_id: string;
|
|
3662
|
+
readonly updated_at: {
|
|
3663
|
+
readonly seconds: bigint;
|
|
3664
|
+
readonly nanos: number;
|
|
3665
|
+
};
|
|
3666
|
+
readonly provider_id: string;
|
|
3667
|
+
readonly access_token: string | null;
|
|
3668
|
+
readonly refresh_token: string | null;
|
|
3669
|
+
readonly organization_id: string;
|
|
3670
|
+
readonly expected_revision: bigint;
|
|
3671
|
+
readonly external_account_id: string;
|
|
3672
|
+
readonly access_token_expires_at: {
|
|
3673
|
+
readonly seconds: bigint;
|
|
3674
|
+
readonly nanos: number;
|
|
3675
|
+
} | null;
|
|
3676
|
+
readonly refresh_token_expires_at: {
|
|
3677
|
+
readonly seconds: bigint;
|
|
3678
|
+
readonly nanos: number;
|
|
3679
|
+
} | null;
|
|
3680
|
+
}
|
|
3681
|
+
export type UpdateAccountOutcome = {
|
|
3682
|
+
readonly outcome: "AccountUpdated";
|
|
3683
|
+
} | {
|
|
3684
|
+
readonly outcome: "AccountUpdateStale";
|
|
3685
|
+
} | {
|
|
3686
|
+
readonly outcome: "AccountUpdateMissing";
|
|
3687
|
+
};
|
|
3688
|
+
export declare function isUpdateAccountAccountUpdated(value: UpdateAccountOutcome): value is Extract<UpdateAccountOutcome, {
|
|
3689
|
+
readonly outcome: "AccountUpdated";
|
|
3690
|
+
}>;
|
|
3691
|
+
export declare function isUpdateAccountAccountUpdateStale(value: UpdateAccountOutcome): value is Extract<UpdateAccountOutcome, {
|
|
3692
|
+
readonly outcome: "AccountUpdateStale";
|
|
3693
|
+
}>;
|
|
3694
|
+
export declare function isUpdateAccountAccountUpdateMissing(value: UpdateAccountOutcome): value is Extract<UpdateAccountOutcome, {
|
|
3695
|
+
readonly outcome: "AccountUpdateMissing";
|
|
3696
|
+
}>;
|
|
3697
|
+
export declare const UPDATE_ACCOUNT_PLAN_HASH: "7fe264de31adb079fcb47d29d8015f446e7618b78f9f312640d4ad2c21261796";
|
|
3698
|
+
export declare function updateAccount(input: UpdateAccountInput): CommandRequest<UpdateAccountInput, UpdateAccountOutcome>;
|
|
3699
|
+
export interface UpdateAccountPasswordsInput {
|
|
3700
|
+
readonly updates: ReadonlyArray<{
|
|
3701
|
+
readonly user_id: string;
|
|
3702
|
+
readonly password: string | null;
|
|
3703
|
+
readonly account_id: string;
|
|
3704
|
+
readonly updated_at: {
|
|
3705
|
+
readonly seconds: bigint;
|
|
3706
|
+
readonly nanos: number;
|
|
3707
|
+
};
|
|
3708
|
+
readonly provider_id: string;
|
|
3709
|
+
readonly organization_id: string;
|
|
3710
|
+
readonly expected_revision: bigint;
|
|
3711
|
+
}>;
|
|
3712
|
+
readonly user_id: string;
|
|
3713
|
+
readonly request_id: string;
|
|
3714
|
+
readonly organization_id: string;
|
|
3715
|
+
}
|
|
3716
|
+
export type UpdateAccountPasswordsOutcome = {
|
|
3717
|
+
readonly outcome: "PasswordAccountStale";
|
|
3718
|
+
} | {
|
|
3719
|
+
readonly outcome: "PasswordAccountMissing";
|
|
3720
|
+
} | {
|
|
3721
|
+
readonly outcome: "AccountPasswordsUpdated";
|
|
3722
|
+
} | {
|
|
3723
|
+
readonly outcome: "PasswordProviderMismatch";
|
|
3724
|
+
};
|
|
3725
|
+
export declare function isUpdateAccountPasswordsPasswordAccountStale(value: UpdateAccountPasswordsOutcome): value is Extract<UpdateAccountPasswordsOutcome, {
|
|
3726
|
+
readonly outcome: "PasswordAccountStale";
|
|
3727
|
+
}>;
|
|
3728
|
+
export declare function isUpdateAccountPasswordsPasswordAccountMissing(value: UpdateAccountPasswordsOutcome): value is Extract<UpdateAccountPasswordsOutcome, {
|
|
3729
|
+
readonly outcome: "PasswordAccountMissing";
|
|
3730
|
+
}>;
|
|
3731
|
+
export declare function isUpdateAccountPasswordsAccountPasswordsUpdated(value: UpdateAccountPasswordsOutcome): value is Extract<UpdateAccountPasswordsOutcome, {
|
|
3732
|
+
readonly outcome: "AccountPasswordsUpdated";
|
|
3733
|
+
}>;
|
|
3734
|
+
export declare function isUpdateAccountPasswordsPasswordProviderMismatch(value: UpdateAccountPasswordsOutcome): value is Extract<UpdateAccountPasswordsOutcome, {
|
|
3735
|
+
readonly outcome: "PasswordProviderMismatch";
|
|
3736
|
+
}>;
|
|
3737
|
+
export declare const UPDATE_ACCOUNT_PASSWORDS_PLAN_HASH: "54002d0761094d305e92e07bb67a6f3c1918d4ef11959e75b79889e19bbf5d23";
|
|
3738
|
+
export declare function updateAccountPasswords(input: UpdateAccountPasswordsInput): CommandRequest<UpdateAccountPasswordsInput, UpdateAccountPasswordsOutcome>;
|
|
3739
|
+
export interface UpdateCredentialPasswordInput {
|
|
3740
|
+
readonly user_id: string;
|
|
3741
|
+
readonly password: string;
|
|
3742
|
+
readonly account_id: string;
|
|
3743
|
+
readonly request_id: string;
|
|
3744
|
+
readonly updated_at: {
|
|
3745
|
+
readonly seconds: bigint;
|
|
3746
|
+
readonly nanos: number;
|
|
3747
|
+
};
|
|
3748
|
+
readonly organization_id: string;
|
|
3749
|
+
readonly expected_revision: bigint;
|
|
3750
|
+
readonly external_account_id: string;
|
|
3751
|
+
}
|
|
3752
|
+
export type UpdateCredentialPasswordOutcome = {
|
|
3753
|
+
readonly outcome: "PasswordAccountStale";
|
|
3754
|
+
} | {
|
|
3755
|
+
readonly outcome: "PasswordAccountMissing";
|
|
3756
|
+
} | {
|
|
3757
|
+
readonly outcome: "PasswordProviderMismatch";
|
|
3758
|
+
} | {
|
|
3759
|
+
readonly outcome: "CredentialPasswordUpdated";
|
|
3760
|
+
};
|
|
3761
|
+
export declare function isUpdateCredentialPasswordPasswordAccountStale(value: UpdateCredentialPasswordOutcome): value is Extract<UpdateCredentialPasswordOutcome, {
|
|
3762
|
+
readonly outcome: "PasswordAccountStale";
|
|
3763
|
+
}>;
|
|
3764
|
+
export declare function isUpdateCredentialPasswordPasswordAccountMissing(value: UpdateCredentialPasswordOutcome): value is Extract<UpdateCredentialPasswordOutcome, {
|
|
3765
|
+
readonly outcome: "PasswordAccountMissing";
|
|
3766
|
+
}>;
|
|
3767
|
+
export declare function isUpdateCredentialPasswordPasswordProviderMismatch(value: UpdateCredentialPasswordOutcome): value is Extract<UpdateCredentialPasswordOutcome, {
|
|
3768
|
+
readonly outcome: "PasswordProviderMismatch";
|
|
3769
|
+
}>;
|
|
3770
|
+
export declare function isUpdateCredentialPasswordCredentialPasswordUpdated(value: UpdateCredentialPasswordOutcome): value is Extract<UpdateCredentialPasswordOutcome, {
|
|
3771
|
+
readonly outcome: "CredentialPasswordUpdated";
|
|
3772
|
+
}>;
|
|
3773
|
+
export declare const UPDATE_CREDENTIAL_PASSWORD_PLAN_HASH: "3f682eefd23c31a698e919c7f63b10cbc6e1afaacaf9eb574a9211e13fde47b5";
|
|
3774
|
+
export declare function updateCredentialPassword(input: UpdateCredentialPasswordInput): CommandRequest<UpdateCredentialPasswordInput, UpdateCredentialPasswordOutcome>;
|
|
3775
|
+
export interface UpdateInvitationInput {
|
|
3776
|
+
readonly role: string | null;
|
|
3777
|
+
readonly email: string;
|
|
3778
|
+
readonly org_id: string;
|
|
3779
|
+
readonly status: string;
|
|
3780
|
+
readonly created_at: {
|
|
3781
|
+
readonly seconds: bigint;
|
|
3782
|
+
readonly nanos: number;
|
|
3783
|
+
};
|
|
3784
|
+
readonly expires_at: {
|
|
3785
|
+
readonly seconds: bigint;
|
|
3786
|
+
readonly nanos: number;
|
|
3787
|
+
};
|
|
3788
|
+
readonly inviter_id: string;
|
|
3789
|
+
readonly request_id: string;
|
|
3790
|
+
readonly invitation_id: string;
|
|
3791
|
+
readonly organization_id: string;
|
|
3792
|
+
readonly expected_revision: bigint;
|
|
3793
|
+
}
|
|
3794
|
+
export type UpdateInvitationOutcome = {
|
|
3795
|
+
readonly outcome: "Stale";
|
|
3796
|
+
} | {
|
|
3797
|
+
readonly outcome: "InvitationMissing";
|
|
3798
|
+
} | {
|
|
3799
|
+
readonly outcome: "InvitationUpdated";
|
|
3800
|
+
} | {
|
|
3801
|
+
readonly outcome: "InvitationParentMissing";
|
|
3802
|
+
};
|
|
3803
|
+
export declare function isUpdateInvitationStale(value: UpdateInvitationOutcome): value is Extract<UpdateInvitationOutcome, {
|
|
3804
|
+
readonly outcome: "Stale";
|
|
3805
|
+
}>;
|
|
3806
|
+
export declare function isUpdateInvitationInvitationMissing(value: UpdateInvitationOutcome): value is Extract<UpdateInvitationOutcome, {
|
|
3807
|
+
readonly outcome: "InvitationMissing";
|
|
3808
|
+
}>;
|
|
3809
|
+
export declare function isUpdateInvitationInvitationUpdated(value: UpdateInvitationOutcome): value is Extract<UpdateInvitationOutcome, {
|
|
3810
|
+
readonly outcome: "InvitationUpdated";
|
|
3811
|
+
}>;
|
|
3812
|
+
export declare function isUpdateInvitationInvitationParentMissing(value: UpdateInvitationOutcome): value is Extract<UpdateInvitationOutcome, {
|
|
3813
|
+
readonly outcome: "InvitationParentMissing";
|
|
3814
|
+
}>;
|
|
3815
|
+
export declare const UPDATE_INVITATION_PLAN_HASH: "0066f9feccb6b66c1709f6a3facc8a64e6faa7d1a56fc7278a38b7ff2881026f";
|
|
3816
|
+
export declare function updateInvitation(input: UpdateInvitationInput): CommandRequest<UpdateInvitationInput, UpdateInvitationOutcome>;
|
|
3817
|
+
export interface UpdateMemberInput {
|
|
3818
|
+
readonly role: string;
|
|
3819
|
+
readonly org_id: string;
|
|
3820
|
+
readonly user_id: string;
|
|
3821
|
+
readonly member_id: string;
|
|
3822
|
+
readonly created_at: {
|
|
3823
|
+
readonly seconds: bigint;
|
|
3824
|
+
readonly nanos: number;
|
|
3825
|
+
};
|
|
3826
|
+
readonly request_id: string;
|
|
3827
|
+
readonly organization_id: string;
|
|
3828
|
+
readonly expected_revision: bigint;
|
|
3829
|
+
}
|
|
3830
|
+
export type UpdateMemberOutcome = {
|
|
3831
|
+
readonly outcome: "Stale";
|
|
3832
|
+
} | {
|
|
3833
|
+
readonly outcome: "MemberMissing";
|
|
3834
|
+
} | {
|
|
3835
|
+
readonly outcome: "MemberUpdated";
|
|
3836
|
+
} | {
|
|
3837
|
+
readonly outcome: "MemberParentMissing";
|
|
3838
|
+
};
|
|
3839
|
+
export declare function isUpdateMemberStale(value: UpdateMemberOutcome): value is Extract<UpdateMemberOutcome, {
|
|
3840
|
+
readonly outcome: "Stale";
|
|
3841
|
+
}>;
|
|
3842
|
+
export declare function isUpdateMemberMemberMissing(value: UpdateMemberOutcome): value is Extract<UpdateMemberOutcome, {
|
|
3843
|
+
readonly outcome: "MemberMissing";
|
|
3844
|
+
}>;
|
|
3845
|
+
export declare function isUpdateMemberMemberUpdated(value: UpdateMemberOutcome): value is Extract<UpdateMemberOutcome, {
|
|
3846
|
+
readonly outcome: "MemberUpdated";
|
|
3847
|
+
}>;
|
|
3848
|
+
export declare function isUpdateMemberMemberParentMissing(value: UpdateMemberOutcome): value is Extract<UpdateMemberOutcome, {
|
|
3849
|
+
readonly outcome: "MemberParentMissing";
|
|
3850
|
+
}>;
|
|
3851
|
+
export declare const UPDATE_MEMBER_PLAN_HASH: "ef3d86f3e4db70aaf9dbb3f5837121ba63114607e4bcc2ad86c7a323330f3922";
|
|
3852
|
+
export declare function updateMember(input: UpdateMemberInput): CommandRequest<UpdateMemberInput, UpdateMemberOutcome>;
|
|
3853
|
+
export interface UpdateOrganizationInput {
|
|
3854
|
+
readonly logo: string | null;
|
|
3855
|
+
readonly name: string;
|
|
3856
|
+
readonly slug: string;
|
|
3857
|
+
readonly org_id: string;
|
|
3858
|
+
readonly metadata: string | null;
|
|
3859
|
+
readonly created_at: {
|
|
3860
|
+
readonly seconds: bigint;
|
|
3861
|
+
readonly nanos: number;
|
|
3862
|
+
};
|
|
3863
|
+
readonly request_id: string;
|
|
3864
|
+
readonly organization_id: string;
|
|
3865
|
+
readonly expected_revision: bigint;
|
|
3866
|
+
}
|
|
3867
|
+
export type UpdateOrganizationOutcome = {
|
|
3868
|
+
readonly outcome: "Stale";
|
|
3869
|
+
} | {
|
|
3870
|
+
readonly outcome: "OrganizationMissing";
|
|
3871
|
+
} | {
|
|
3872
|
+
readonly outcome: "OrganizationUpdated";
|
|
3873
|
+
};
|
|
3874
|
+
export declare function isUpdateOrganizationStale(value: UpdateOrganizationOutcome): value is Extract<UpdateOrganizationOutcome, {
|
|
3875
|
+
readonly outcome: "Stale";
|
|
3876
|
+
}>;
|
|
3877
|
+
export declare function isUpdateOrganizationOrganizationMissing(value: UpdateOrganizationOutcome): value is Extract<UpdateOrganizationOutcome, {
|
|
3878
|
+
readonly outcome: "OrganizationMissing";
|
|
3879
|
+
}>;
|
|
3880
|
+
export declare function isUpdateOrganizationOrganizationUpdated(value: UpdateOrganizationOutcome): value is Extract<UpdateOrganizationOutcome, {
|
|
3881
|
+
readonly outcome: "OrganizationUpdated";
|
|
3882
|
+
}>;
|
|
3883
|
+
export declare const UPDATE_ORGANIZATION_PLAN_HASH: "a9b3d4cd29df34dc84c63804d19095f4b1af934b4ce41fc29752b38d47e00b7a";
|
|
3884
|
+
export declare function updateOrganization(input: UpdateOrganizationInput): CommandRequest<UpdateOrganizationInput, UpdateOrganizationOutcome>;
|
|
3885
|
+
export interface UpdateSessionInput {
|
|
3886
|
+
readonly user_id: string;
|
|
3887
|
+
readonly expires_at: {
|
|
3888
|
+
readonly seconds: bigint;
|
|
3889
|
+
readonly nanos: number;
|
|
3890
|
+
};
|
|
3891
|
+
readonly ip_address: string | null;
|
|
3892
|
+
readonly request_id: string;
|
|
3893
|
+
readonly session_id: string;
|
|
3894
|
+
readonly updated_at: {
|
|
3895
|
+
readonly seconds: bigint;
|
|
3896
|
+
readonly nanos: number;
|
|
3897
|
+
};
|
|
3898
|
+
readonly user_agent: string | null;
|
|
3899
|
+
readonly organization_id: string;
|
|
3900
|
+
readonly expected_revision: bigint;
|
|
3901
|
+
readonly active_organization_id: string | null;
|
|
3902
|
+
}
|
|
3903
|
+
export type UpdateSessionOutcome = {
|
|
3904
|
+
readonly outcome: "SessionUpdated";
|
|
3905
|
+
} | {
|
|
3906
|
+
readonly outcome: "SessionUpdateStale";
|
|
3907
|
+
} | {
|
|
3908
|
+
readonly outcome: "SessionUpdateMissing";
|
|
3909
|
+
};
|
|
3910
|
+
export declare function isUpdateSessionSessionUpdated(value: UpdateSessionOutcome): value is Extract<UpdateSessionOutcome, {
|
|
3911
|
+
readonly outcome: "SessionUpdated";
|
|
3912
|
+
}>;
|
|
3913
|
+
export declare function isUpdateSessionSessionUpdateStale(value: UpdateSessionOutcome): value is Extract<UpdateSessionOutcome, {
|
|
3914
|
+
readonly outcome: "SessionUpdateStale";
|
|
3915
|
+
}>;
|
|
3916
|
+
export declare function isUpdateSessionSessionUpdateMissing(value: UpdateSessionOutcome): value is Extract<UpdateSessionOutcome, {
|
|
3917
|
+
readonly outcome: "SessionUpdateMissing";
|
|
3918
|
+
}>;
|
|
3919
|
+
export declare const UPDATE_SESSION_PLAN_HASH: "9f05b784d82328567b2af8ad80ce6f9ab2503b337bc52f21892cd32d0e9b6786";
|
|
3920
|
+
export declare function updateSession(input: UpdateSessionInput): CommandRequest<UpdateSessionInput, UpdateSessionOutcome>;
|
|
3921
|
+
export interface UpdateTwoFactorInput {
|
|
3922
|
+
readonly secret: string;
|
|
3923
|
+
readonly user_id: string;
|
|
3924
|
+
readonly verified: boolean;
|
|
3925
|
+
readonly request_id: string;
|
|
3926
|
+
readonly backup_codes: string;
|
|
3927
|
+
readonly locked_until: {
|
|
3928
|
+
readonly seconds: bigint;
|
|
3929
|
+
readonly nanos: number;
|
|
3930
|
+
} | null;
|
|
3931
|
+
readonly two_factor_id: string;
|
|
3932
|
+
readonly organization_id: string;
|
|
3933
|
+
readonly expected_revision: bigint;
|
|
3934
|
+
readonly locked_until_millis: bigint;
|
|
3935
|
+
readonly failed_verification_count: bigint;
|
|
3936
|
+
}
|
|
3937
|
+
export type UpdateTwoFactorOutcome = {
|
|
3938
|
+
readonly outcome: "Stale";
|
|
3939
|
+
} | {
|
|
3940
|
+
readonly outcome: "TwoFactorMissing";
|
|
3941
|
+
} | {
|
|
3942
|
+
readonly outcome: "TwoFactorUpdated";
|
|
3943
|
+
} | {
|
|
3944
|
+
readonly outcome: "TwoFactorParentMissing";
|
|
3945
|
+
};
|
|
3946
|
+
export declare function isUpdateTwoFactorStale(value: UpdateTwoFactorOutcome): value is Extract<UpdateTwoFactorOutcome, {
|
|
3947
|
+
readonly outcome: "Stale";
|
|
3948
|
+
}>;
|
|
3949
|
+
export declare function isUpdateTwoFactorTwoFactorMissing(value: UpdateTwoFactorOutcome): value is Extract<UpdateTwoFactorOutcome, {
|
|
3950
|
+
readonly outcome: "TwoFactorMissing";
|
|
3951
|
+
}>;
|
|
3952
|
+
export declare function isUpdateTwoFactorTwoFactorUpdated(value: UpdateTwoFactorOutcome): value is Extract<UpdateTwoFactorOutcome, {
|
|
3953
|
+
readonly outcome: "TwoFactorUpdated";
|
|
3954
|
+
}>;
|
|
3955
|
+
export declare function isUpdateTwoFactorTwoFactorParentMissing(value: UpdateTwoFactorOutcome): value is Extract<UpdateTwoFactorOutcome, {
|
|
3956
|
+
readonly outcome: "TwoFactorParentMissing";
|
|
3957
|
+
}>;
|
|
3958
|
+
export declare const UPDATE_TWO_FACTOR_PLAN_HASH: "56615bdc17199aee6afcd70dabed9113669f5d479579a24dd9fbe81808367b42";
|
|
3959
|
+
export declare function updateTwoFactor(input: UpdateTwoFactorInput): CommandRequest<UpdateTwoFactorInput, UpdateTwoFactorOutcome>;
|
|
3960
|
+
export interface UpdateUserInput {
|
|
3961
|
+
readonly name: string;
|
|
3962
|
+
readonly email: string;
|
|
3963
|
+
readonly image: string | null;
|
|
3964
|
+
readonly locale: string | null;
|
|
3965
|
+
readonly user_id: string;
|
|
3966
|
+
readonly date_field: {
|
|
3967
|
+
readonly seconds: bigint;
|
|
3968
|
+
readonly nanos: number;
|
|
3969
|
+
} | null;
|
|
3970
|
+
readonly request_id: string;
|
|
3971
|
+
readonly updated_at: {
|
|
3972
|
+
readonly seconds: bigint;
|
|
3973
|
+
readonly nanos: number;
|
|
3974
|
+
};
|
|
3975
|
+
readonly email_verified: boolean;
|
|
3976
|
+
readonly organization_id: string;
|
|
3977
|
+
readonly expected_revision: bigint;
|
|
3978
|
+
readonly two_factor_enabled: boolean | null;
|
|
3979
|
+
}
|
|
3980
|
+
export type UpdateUserOutcome = {
|
|
3981
|
+
readonly outcome: "UserUpdated";
|
|
3982
|
+
} | {
|
|
3983
|
+
readonly outcome: "UserUpdateStale";
|
|
3984
|
+
} | {
|
|
3985
|
+
readonly outcome: "UserUpdateMissing";
|
|
3986
|
+
};
|
|
3987
|
+
export declare function isUpdateUserUserUpdated(value: UpdateUserOutcome): value is Extract<UpdateUserOutcome, {
|
|
3988
|
+
readonly outcome: "UserUpdated";
|
|
3989
|
+
}>;
|
|
3990
|
+
export declare function isUpdateUserUserUpdateStale(value: UpdateUserOutcome): value is Extract<UpdateUserOutcome, {
|
|
3991
|
+
readonly outcome: "UserUpdateStale";
|
|
3992
|
+
}>;
|
|
3993
|
+
export declare function isUpdateUserUserUpdateMissing(value: UpdateUserOutcome): value is Extract<UpdateUserOutcome, {
|
|
3994
|
+
readonly outcome: "UserUpdateMissing";
|
|
3995
|
+
}>;
|
|
3996
|
+
export declare const UPDATE_USER_PLAN_HASH: "0427af1b6aaad79d6c2d0fe37378ff3f1b1f9368dc7c88f0c8ddd8dd2a104da9";
|
|
3997
|
+
export declare function updateUser(input: UpdateUserInput): CommandRequest<UpdateUserInput, UpdateUserOutcome>;
|
|
3998
|
+
export interface UpdateVerificationInput {
|
|
3999
|
+
readonly value: string;
|
|
4000
|
+
readonly expires_at: {
|
|
4001
|
+
readonly seconds: bigint;
|
|
4002
|
+
readonly nanos: number;
|
|
4003
|
+
};
|
|
4004
|
+
readonly request_id: string;
|
|
4005
|
+
readonly updated_at: {
|
|
4006
|
+
readonly seconds: bigint;
|
|
4007
|
+
readonly nanos: number;
|
|
4008
|
+
};
|
|
4009
|
+
readonly organization_id: string;
|
|
4010
|
+
readonly verification_id: string;
|
|
4011
|
+
readonly expected_revision: bigint;
|
|
4012
|
+
}
|
|
4013
|
+
export type UpdateVerificationOutcome = {
|
|
4014
|
+
readonly outcome: "VerificationUpdated";
|
|
4015
|
+
} | {
|
|
4016
|
+
readonly outcome: "VerificationUpdateStale";
|
|
4017
|
+
} | {
|
|
4018
|
+
readonly outcome: "VerificationUpdateMissing";
|
|
4019
|
+
};
|
|
4020
|
+
export declare function isUpdateVerificationVerificationUpdated(value: UpdateVerificationOutcome): value is Extract<UpdateVerificationOutcome, {
|
|
4021
|
+
readonly outcome: "VerificationUpdated";
|
|
4022
|
+
}>;
|
|
4023
|
+
export declare function isUpdateVerificationVerificationUpdateStale(value: UpdateVerificationOutcome): value is Extract<UpdateVerificationOutcome, {
|
|
4024
|
+
readonly outcome: "VerificationUpdateStale";
|
|
4025
|
+
}>;
|
|
4026
|
+
export declare function isUpdateVerificationVerificationUpdateMissing(value: UpdateVerificationOutcome): value is Extract<UpdateVerificationOutcome, {
|
|
4027
|
+
readonly outcome: "VerificationUpdateMissing";
|
|
4028
|
+
}>;
|
|
4029
|
+
export declare const UPDATE_VERIFICATION_PLAN_HASH: "2a879e364b1f2a971bb9b5238a9adf8bbbaceb47b009b8f051f6afdecd320b8d";
|
|
4030
|
+
export declare function updateVerification(input: UpdateVerificationInput): CommandRequest<UpdateVerificationInput, UpdateVerificationOutcome>;
|
|
4031
|
+
export declare class BetterAuthRuntimeClient {
|
|
4032
|
+
private readonly transport;
|
|
4033
|
+
private readonly commandAttemptBudget;
|
|
4034
|
+
private readonly trackCausalWrites;
|
|
4035
|
+
private lastCommitSeq;
|
|
4036
|
+
constructor(transport: ApplicationTransport, commandAttemptBudget?: number, defaultReadAfterCommit?: bigint, trackCausalWrites?: boolean);
|
|
4037
|
+
static fromTransport(transport: ApplicationTransport, commandAttemptBudget?: number): BetterAuthRuntimeClient;
|
|
4038
|
+
static driverIdentity(role: string, database?: string): ContractDriverIdentity;
|
|
4039
|
+
static connect(driver: {
|
|
4040
|
+
connect(config: {
|
|
4041
|
+
readonly socketPath: string;
|
|
4042
|
+
readonly identity: ContractDriverIdentity;
|
|
4043
|
+
}): Promise<ApplicationTransport>;
|
|
4044
|
+
} | ((config: {
|
|
4045
|
+
readonly socketPath: string;
|
|
4046
|
+
readonly identity: ContractDriverIdentity;
|
|
4047
|
+
}) => Promise<ApplicationTransport>), options: {
|
|
4048
|
+
readonly socketPath: string;
|
|
4049
|
+
readonly role: string;
|
|
4050
|
+
readonly database?: string;
|
|
4051
|
+
readonly commandAttemptBudget?: number;
|
|
4052
|
+
}): Promise<BetterAuthRuntimeClient>;
|
|
4053
|
+
static connectFromEnv(driver: {
|
|
4054
|
+
connectFromEnv(options: {
|
|
4055
|
+
readonly socketPath?: string;
|
|
4056
|
+
readonly role?: string;
|
|
4057
|
+
readonly database?: string;
|
|
4058
|
+
readonly tenant?: string;
|
|
4059
|
+
readonly prefix?: string;
|
|
4060
|
+
readonly envPrefix?: string;
|
|
4061
|
+
readonly identity: typeof CONTRACT_DRIVER_IDENTITY;
|
|
4062
|
+
}): Promise<ApplicationTransport>;
|
|
4063
|
+
} | ((options: {
|
|
4064
|
+
readonly socketPath?: string;
|
|
4065
|
+
readonly role?: string;
|
|
4066
|
+
readonly database?: string;
|
|
4067
|
+
readonly tenant?: string;
|
|
4068
|
+
readonly prefix?: string;
|
|
4069
|
+
readonly envPrefix?: string;
|
|
4070
|
+
readonly identity: typeof CONTRACT_DRIVER_IDENTITY;
|
|
4071
|
+
}) => Promise<ApplicationTransport>), options?: {
|
|
4072
|
+
readonly socketPath?: string;
|
|
4073
|
+
readonly role?: string;
|
|
4074
|
+
readonly database?: string;
|
|
4075
|
+
readonly tenant?: string;
|
|
4076
|
+
readonly prefix?: string;
|
|
4077
|
+
readonly envPrefix?: string;
|
|
4078
|
+
readonly commandAttemptBudget?: number;
|
|
4079
|
+
}): Promise<BetterAuthRuntimeClient>;
|
|
4080
|
+
withReadAfterCommit(commitSequence: bigint | undefined): BetterAuthRuntimeClient;
|
|
4081
|
+
causalSession(initialCommitSequence?: bigint): BetterAuthRuntimeClient;
|
|
4082
|
+
get lastCommitSequence(): bigint | undefined;
|
|
4083
|
+
adminUsersAllEmailAsc(parameters: AdminUsersAllEmailAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersAllEmailAscResult>>;
|
|
4084
|
+
adminUsersAllEmailAscAfterCommit(parameters: AdminUsersAllEmailAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersAllEmailAscResult>>;
|
|
4085
|
+
adminUsersContainsAsc(parameters: AdminUsersContainsAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersContainsAscResult>>;
|
|
4086
|
+
adminUsersContainsAscAfterCommit(parameters: AdminUsersContainsAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersContainsAscResult>>;
|
|
4087
|
+
adminUsersContainsDesc(parameters: AdminUsersContainsDescParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersContainsDescResult>>;
|
|
4088
|
+
adminUsersContainsDescAfterCommit(parameters: AdminUsersContainsDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersContainsDescResult>>;
|
|
4089
|
+
adminUsersEmailContainsCreatedDesc(parameters: AdminUsersEmailContainsCreatedDescParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEmailContainsCreatedDescResult>>;
|
|
4090
|
+
adminUsersEmailContainsCreatedDescAfterCommit(parameters: AdminUsersEmailContainsCreatedDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEmailContainsCreatedDescResult>>;
|
|
4091
|
+
adminUsersEmailContainsImageAsc(parameters: AdminUsersEmailContainsImageAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEmailContainsImageAscResult>>;
|
|
4092
|
+
adminUsersEmailContainsImageAscAfterCommit(parameters: AdminUsersEmailContainsImageAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEmailContainsImageAscResult>>;
|
|
4093
|
+
adminUsersEndsWithAsc(parameters: AdminUsersEndsWithAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEndsWithAscResult>>;
|
|
4094
|
+
adminUsersEndsWithAscAfterCommit(parameters: AdminUsersEndsWithAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEndsWithAscResult>>;
|
|
4095
|
+
adminUsersEndsWithDesc(parameters: AdminUsersEndsWithDescParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEndsWithDescResult>>;
|
|
4096
|
+
adminUsersEndsWithDescAfterCommit(parameters: AdminUsersEndsWithDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEndsWithDescResult>>;
|
|
4097
|
+
adminUsersStartsWithAsc(parameters: AdminUsersStartsWithAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersStartsWithAscResult>>;
|
|
4098
|
+
adminUsersStartsWithAscAfterCommit(parameters: AdminUsersStartsWithAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersStartsWithAscResult>>;
|
|
4099
|
+
adminUsersStartsWithDesc(parameters: AdminUsersStartsWithDescParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersStartsWithDescResult>>;
|
|
4100
|
+
adminUsersStartsWithDescAfterCommit(parameters: AdminUsersStartsWithDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersStartsWithDescResult>>;
|
|
4101
|
+
findAccountById(parameters: FindAccountByIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindAccountByIdResult>>;
|
|
4102
|
+
findAccountByIdAfterCommit(parameters: FindAccountByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindAccountByIdResult>>;
|
|
4103
|
+
findAccountByProvider(parameters: FindAccountByProviderParams, options?: QueryOptions): Promise<TypedQueryResult<FindAccountByProviderResult>>;
|
|
4104
|
+
findAccountByProviderAfterCommit(parameters: FindAccountByProviderParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindAccountByProviderResult>>;
|
|
4105
|
+
findAccountsByUserId(parameters: FindAccountsByUserIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindAccountsByUserIdResult>>;
|
|
4106
|
+
findAccountsByUserIdAfterCommit(parameters: FindAccountsByUserIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindAccountsByUserIdResult>>;
|
|
4107
|
+
findAccountsByUserIdPages(parameters: FindAccountsByUserIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindAccountsByUserIdResult>, void, undefined>;
|
|
4108
|
+
findAccountsByUserProvider(parameters: FindAccountsByUserProviderParams, options?: QueryOptions): Promise<TypedQueryResult<FindAccountsByUserProviderResult>>;
|
|
4109
|
+
findAccountsByUserProviderAfterCommit(parameters: FindAccountsByUserProviderParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindAccountsByUserProviderResult>>;
|
|
4110
|
+
findAccountsByUserProviderPages(parameters: FindAccountsByUserProviderParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindAccountsByUserProviderResult>, void, undefined>;
|
|
4111
|
+
findActiveSessionsByUserId(parameters: FindActiveSessionsByUserIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindActiveSessionsByUserIdResult>>;
|
|
4112
|
+
findActiveSessionsByUserIdAfterCommit(parameters: FindActiveSessionsByUserIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindActiveSessionsByUserIdResult>>;
|
|
4113
|
+
findActiveSessionsByUserIdPages(parameters: FindActiveSessionsByUserIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindActiveSessionsByUserIdResult>, void, undefined>;
|
|
4114
|
+
findCredentialAccount(parameters: FindCredentialAccountParams, options?: QueryOptions): Promise<TypedQueryResult<FindCredentialAccountResult>>;
|
|
4115
|
+
findCredentialAccountAfterCommit(parameters: FindCredentialAccountParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindCredentialAccountResult>>;
|
|
4116
|
+
findExpiredVerificationIds(parameters: FindExpiredVerificationIdsParams, options?: QueryOptions): Promise<TypedQueryResult<FindExpiredVerificationIdsResult>>;
|
|
4117
|
+
findExpiredVerificationIdsAfterCommit(parameters: FindExpiredVerificationIdsParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindExpiredVerificationIdsResult>>;
|
|
4118
|
+
findExpiredVerificationIdsPages(parameters: FindExpiredVerificationIdsParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindExpiredVerificationIdsResult>, void, undefined>;
|
|
4119
|
+
findLatestVerification(parameters: FindLatestVerificationParams, options?: QueryOptions): Promise<TypedQueryResult<FindLatestVerificationResult>>;
|
|
4120
|
+
findLatestVerificationAfterCommit(parameters: FindLatestVerificationParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindLatestVerificationResult>>;
|
|
4121
|
+
findSessionById(parameters: FindSessionByIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindSessionByIdResult>>;
|
|
4122
|
+
findSessionByIdAfterCommit(parameters: FindSessionByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindSessionByIdResult>>;
|
|
4123
|
+
findSessionByToken(parameters: FindSessionByTokenParams, options?: QueryOptions): Promise<TypedQueryResult<FindSessionByTokenResult>>;
|
|
4124
|
+
findSessionByTokenAfterCommit(parameters: FindSessionByTokenParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindSessionByTokenResult>>;
|
|
4125
|
+
findSessionsByTokenSet(parameters: FindSessionsByTokenSetParams, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByTokenSetResult>>;
|
|
4126
|
+
findSessionsByTokenSetAfterCommit(parameters: FindSessionsByTokenSetParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByTokenSetResult>>;
|
|
4127
|
+
findSessionsByTokenSetAll(parameters: FindSessionsByTokenSetParams, maxPages?: number, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByTokenSetFound>>;
|
|
4128
|
+
findSessionsByUserId(parameters: FindSessionsByUserIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByUserIdResult>>;
|
|
4129
|
+
findSessionsByUserIdAfterCommit(parameters: FindSessionsByUserIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByUserIdResult>>;
|
|
4130
|
+
findSessionsByUserIdPages(parameters: FindSessionsByUserIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindSessionsByUserIdResult>, void, undefined>;
|
|
4131
|
+
findUserByEmail(parameters: FindUserByEmailParams, options?: QueryOptions): Promise<TypedQueryResult<FindUserByEmailResult>>;
|
|
4132
|
+
findUserByEmailAfterCommit(parameters: FindUserByEmailParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindUserByEmailResult>>;
|
|
4133
|
+
findUserById(parameters: FindUserByIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindUserByIdResult>>;
|
|
4134
|
+
findUserByIdAfterCommit(parameters: FindUserByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindUserByIdResult>>;
|
|
4135
|
+
findVerificationById(parameters: FindVerificationByIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindVerificationByIdResult>>;
|
|
4136
|
+
findVerificationByIdAfterCommit(parameters: FindVerificationByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindVerificationByIdResult>>;
|
|
4137
|
+
findVerificationsByIdentifier(parameters: FindVerificationsByIdentifierParams, options?: QueryOptions): Promise<TypedQueryResult<FindVerificationsByIdentifierResult>>;
|
|
4138
|
+
findVerificationsByIdentifierAfterCommit(parameters: FindVerificationsByIdentifierParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindVerificationsByIdentifierResult>>;
|
|
4139
|
+
findVerificationsByIdentifierPages(parameters: FindVerificationsByIdentifierParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindVerificationsByIdentifierResult>, void, undefined>;
|
|
4140
|
+
profileAccountWithUserByProvider(parameters: ProfileAccountWithUserByProviderParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileAccountWithUserByProviderResult>>;
|
|
4141
|
+
profileAccountWithUserByProviderAfterCommit(parameters: ProfileAccountWithUserByProviderParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileAccountWithUserByProviderResult>>;
|
|
4142
|
+
profileInvitationByEmail(parameters: ProfileInvitationByEmailParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByEmailResult>>;
|
|
4143
|
+
profileInvitationByEmailAfterCommit(parameters: ProfileInvitationByEmailParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByEmailResult>>;
|
|
4144
|
+
profileInvitationByEmailPages(parameters: ProfileInvitationByEmailParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileInvitationByEmailResult>, void, undefined>;
|
|
4145
|
+
profileInvitationById(parameters: ProfileInvitationByIdParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByIdResult>>;
|
|
4146
|
+
profileInvitationByIdAfterCommit(parameters: ProfileInvitationByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByIdResult>>;
|
|
4147
|
+
profileInvitationByIdPages(parameters: ProfileInvitationByIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileInvitationByIdResult>, void, undefined>;
|
|
4148
|
+
profileInvitationByOrganizationEmailStatus(parameters: ProfileInvitationByOrganizationEmailStatusParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByOrganizationEmailStatusResult>>;
|
|
4149
|
+
profileInvitationByOrganizationEmailStatusAfterCommit(parameters: ProfileInvitationByOrganizationEmailStatusParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByOrganizationEmailStatusResult>>;
|
|
4150
|
+
profileInvitationByOrganizationEmailStatusPages(parameters: ProfileInvitationByOrganizationEmailStatusParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileInvitationByOrganizationEmailStatusResult>, void, undefined>;
|
|
4151
|
+
profileInvitationByOrganizationId(parameters: ProfileInvitationByOrganizationIdParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByOrganizationIdResult>>;
|
|
4152
|
+
profileInvitationByOrganizationIdAfterCommit(parameters: ProfileInvitationByOrganizationIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByOrganizationIdResult>>;
|
|
4153
|
+
profileInvitationByOrganizationIdPages(parameters: ProfileInvitationByOrganizationIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileInvitationByOrganizationIdResult>, void, undefined>;
|
|
4154
|
+
profileInvitationByOrganizationStatus(parameters: ProfileInvitationByOrganizationStatusParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByOrganizationStatusResult>>;
|
|
4155
|
+
profileInvitationByOrganizationStatusAfterCommit(parameters: ProfileInvitationByOrganizationStatusParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileInvitationByOrganizationStatusResult>>;
|
|
4156
|
+
profileInvitationByOrganizationStatusPages(parameters: ProfileInvitationByOrganizationStatusParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileInvitationByOrganizationStatusResult>, void, undefined>;
|
|
4157
|
+
profileMemberById(parameters: ProfileMemberByIdParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByIdResult>>;
|
|
4158
|
+
profileMemberByIdAfterCommit(parameters: ProfileMemberByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByIdResult>>;
|
|
4159
|
+
profileMemberByIdPages(parameters: ProfileMemberByIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileMemberByIdResult>, void, undefined>;
|
|
4160
|
+
profileMemberByOrganization(parameters: ProfileMemberByOrganizationParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationResult>>;
|
|
4161
|
+
profileMemberByOrganizationAfterCommit(parameters: ProfileMemberByOrganizationParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationResult>>;
|
|
4162
|
+
profileMemberByOrganizationCreatedAtAsc(parameters: ProfileMemberByOrganizationCreatedAtAscParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationCreatedAtAscResult>>;
|
|
4163
|
+
profileMemberByOrganizationCreatedAtAscAfterCommit(parameters: ProfileMemberByOrganizationCreatedAtAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationCreatedAtAscResult>>;
|
|
4164
|
+
profileMemberByOrganizationCreatedAtDesc(parameters: ProfileMemberByOrganizationCreatedAtDescParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationCreatedAtDescResult>>;
|
|
4165
|
+
profileMemberByOrganizationCreatedAtDescAfterCommit(parameters: ProfileMemberByOrganizationCreatedAtDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationCreatedAtDescResult>>;
|
|
4166
|
+
profileMemberByOrganizationRoleAsc(parameters: ProfileMemberByOrganizationRoleAscParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationRoleAscResult>>;
|
|
4167
|
+
profileMemberByOrganizationRoleAscAfterCommit(parameters: ProfileMemberByOrganizationRoleAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationRoleAscResult>>;
|
|
4168
|
+
profileMemberByOrganizationRoleDesc(parameters: ProfileMemberByOrganizationRoleDescParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationRoleDescResult>>;
|
|
4169
|
+
profileMemberByOrganizationRoleDescAfterCommit(parameters: ProfileMemberByOrganizationRoleDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationRoleDescResult>>;
|
|
4170
|
+
profileMemberByOrganizationUser(parameters: ProfileMemberByOrganizationUserParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationUserResult>>;
|
|
4171
|
+
profileMemberByOrganizationUserAfterCommit(parameters: ProfileMemberByOrganizationUserParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByOrganizationUserResult>>;
|
|
4172
|
+
profileMemberByOrganizationUserPages(parameters: ProfileMemberByOrganizationUserParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileMemberByOrganizationUserResult>, void, undefined>;
|
|
4173
|
+
profileMemberByUser(parameters: ProfileMemberByUserParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByUserResult>>;
|
|
4174
|
+
profileMemberByUserAfterCommit(parameters: ProfileMemberByUserParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileMemberByUserResult>>;
|
|
4175
|
+
profileMemberByUserPages(parameters: ProfileMemberByUserParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileMemberByUserResult>, void, undefined>;
|
|
4176
|
+
profileOrganizationById(parameters: ProfileOrganizationByIdParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileOrganizationByIdResult>>;
|
|
4177
|
+
profileOrganizationByIdAfterCommit(parameters: ProfileOrganizationByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileOrganizationByIdResult>>;
|
|
4178
|
+
profileOrganizationBySlug(parameters: ProfileOrganizationBySlugParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileOrganizationBySlugResult>>;
|
|
4179
|
+
profileOrganizationBySlugAfterCommit(parameters: ProfileOrganizationBySlugParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileOrganizationBySlugResult>>;
|
|
4180
|
+
profileSessionWithUserById(parameters: ProfileSessionWithUserByIdParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileSessionWithUserByIdResult>>;
|
|
4181
|
+
profileSessionWithUserByIdAfterCommit(parameters: ProfileSessionWithUserByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileSessionWithUserByIdResult>>;
|
|
4182
|
+
profileSessionWithUserByToken(parameters: ProfileSessionWithUserByTokenParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileSessionWithUserByTokenResult>>;
|
|
4183
|
+
profileSessionWithUserByTokenAfterCommit(parameters: ProfileSessionWithUserByTokenParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileSessionWithUserByTokenResult>>;
|
|
4184
|
+
profileSessionsWithUsersByTokenSet(parameters: ProfileSessionsWithUsersByTokenSetParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileSessionsWithUsersByTokenSetResult>>;
|
|
4185
|
+
profileSessionsWithUsersByTokenSetAfterCommit(parameters: ProfileSessionsWithUsersByTokenSetParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileSessionsWithUsersByTokenSetResult>>;
|
|
4186
|
+
profileTwoFactorById(parameters: ProfileTwoFactorByIdParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileTwoFactorByIdResult>>;
|
|
4187
|
+
profileTwoFactorByIdAfterCommit(parameters: ProfileTwoFactorByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileTwoFactorByIdResult>>;
|
|
4188
|
+
profileTwoFactorByIdPages(parameters: ProfileTwoFactorByIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileTwoFactorByIdResult>, void, undefined>;
|
|
4189
|
+
profileTwoFactorByUser(parameters: ProfileTwoFactorByUserParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileTwoFactorByUserResult>>;
|
|
4190
|
+
profileTwoFactorByUserAfterCommit(parameters: ProfileTwoFactorByUserParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileTwoFactorByUserResult>>;
|
|
4191
|
+
profileTwoFactorByUserPages(parameters: ProfileTwoFactorByUserParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<ProfileTwoFactorByUserResult>, void, undefined>;
|
|
4192
|
+
profileUserWithAccountsByEmail(parameters: ProfileUserWithAccountsByEmailParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileUserWithAccountsByEmailResult>>;
|
|
4193
|
+
profileUserWithAccountsByEmailAfterCommit(parameters: ProfileUserWithAccountsByEmailParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileUserWithAccountsByEmailResult>>;
|
|
4194
|
+
profileUserWithAccountsById(parameters: ProfileUserWithAccountsByIdParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileUserWithAccountsByIdResult>>;
|
|
4195
|
+
profileUserWithAccountsByIdAfterCommit(parameters: ProfileUserWithAccountsByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileUserWithAccountsByIdResult>>;
|
|
4196
|
+
profileUsersByIdSet(parameters: ProfileUsersByIdSetParams, options?: QueryOptions): Promise<TypedQueryResult<ProfileUsersByIdSetResult>>;
|
|
4197
|
+
profileUsersByIdSetAfterCommit(parameters: ProfileUsersByIdSetParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<ProfileUsersByIdSetResult>>;
|
|
4198
|
+
profileUsersByIdSetAll(parameters: ProfileUsersByIdSetParams, maxPages?: number, options?: QueryOptions): Promise<TypedQueryResult<ProfileUsersByIdSetFound>>;
|
|
4199
|
+
consumeVerification(input: ConsumeVerificationInput): Promise<TypedCommandResult<ConsumeVerificationOutcome>>;
|
|
4200
|
+
consumeVerificationBatch(inputs: ReadonlyArray<ConsumeVerificationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ConsumeVerificationOutcome>>;
|
|
4201
|
+
consumeVerificationSet(input: ConsumeVerificationSetInput): Promise<TypedCommandResult<ConsumeVerificationSetOutcome>>;
|
|
4202
|
+
consumeVerificationSetBatch(inputs: ReadonlyArray<ConsumeVerificationSetInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ConsumeVerificationSetOutcome>>;
|
|
4203
|
+
consumeVerificationSnapshot(input: ConsumeVerificationSnapshotInput): Promise<TypedCommandResult<ConsumeVerificationSnapshotOutcome>>;
|
|
4204
|
+
consumeVerificationSnapshotBatch(inputs: ReadonlyArray<ConsumeVerificationSnapshotInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ConsumeVerificationSnapshotOutcome>>;
|
|
4205
|
+
createAccount(input: CreateAccountInput): Promise<TypedCommandResult<CreateAccountOutcome>>;
|
|
4206
|
+
createAccountBatch(inputs: ReadonlyArray<CreateAccountInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateAccountOutcome>>;
|
|
4207
|
+
createInvitation(input: CreateInvitationInput): Promise<TypedCommandResult<CreateInvitationOutcome>>;
|
|
4208
|
+
createInvitationBatch(inputs: ReadonlyArray<CreateInvitationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateInvitationOutcome>>;
|
|
4209
|
+
createMember(input: CreateMemberInput): Promise<TypedCommandResult<CreateMemberOutcome>>;
|
|
4210
|
+
createMemberBatch(inputs: ReadonlyArray<CreateMemberInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateMemberOutcome>>;
|
|
4211
|
+
createMemberAndActivateOrganization(input: CreateMemberAndActivateOrganizationInput): Promise<TypedCommandResult<CreateMemberAndActivateOrganizationOutcome>>;
|
|
4212
|
+
createMemberAndActivateOrganizationBatch(inputs: ReadonlyArray<CreateMemberAndActivateOrganizationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateMemberAndActivateOrganizationOutcome>>;
|
|
4213
|
+
createOAuthUserGraph(input: CreateOAuthUserGraphInput): Promise<TypedCommandResult<CreateOAuthUserGraphOutcome>>;
|
|
4214
|
+
createOAuthUserGraphBatch(inputs: ReadonlyArray<CreateOAuthUserGraphInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateOAuthUserGraphOutcome>>;
|
|
4215
|
+
createOrganization(input: CreateOrganizationInput): Promise<TypedCommandResult<CreateOrganizationOutcome>>;
|
|
4216
|
+
createOrganizationBatch(inputs: ReadonlyArray<CreateOrganizationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateOrganizationOutcome>>;
|
|
4217
|
+
createSession(input: CreateSessionInput): Promise<TypedCommandResult<CreateSessionOutcome>>;
|
|
4218
|
+
createSessionBatch(inputs: ReadonlyArray<CreateSessionInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateSessionOutcome>>;
|
|
4219
|
+
createSignupGraph(input: CreateSignupGraphInput): Promise<TypedCommandResult<CreateSignupGraphOutcome>>;
|
|
4220
|
+
createSignupGraphBatch(inputs: ReadonlyArray<CreateSignupGraphInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateSignupGraphOutcome>>;
|
|
4221
|
+
createTwoFactor(input: CreateTwoFactorInput): Promise<TypedCommandResult<CreateTwoFactorOutcome>>;
|
|
4222
|
+
createTwoFactorBatch(inputs: ReadonlyArray<CreateTwoFactorInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateTwoFactorOutcome>>;
|
|
4223
|
+
createUser(input: CreateUserInput): Promise<TypedCommandResult<CreateUserOutcome>>;
|
|
4224
|
+
createUserBatch(inputs: ReadonlyArray<CreateUserInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateUserOutcome>>;
|
|
4225
|
+
createVerification(input: CreateVerificationInput): Promise<TypedCommandResult<CreateVerificationOutcome>>;
|
|
4226
|
+
createVerificationBatch(inputs: ReadonlyArray<CreateVerificationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateVerificationOutcome>>;
|
|
4227
|
+
deleteAccount(input: DeleteAccountInput): Promise<TypedCommandResult<DeleteAccountOutcome>>;
|
|
4228
|
+
deleteAccountBatch(inputs: ReadonlyArray<DeleteAccountInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteAccountOutcome>>;
|
|
4229
|
+
deleteInvitation(input: DeleteInvitationInput): Promise<TypedCommandResult<DeleteInvitationOutcome>>;
|
|
4230
|
+
deleteInvitationBatch(inputs: ReadonlyArray<DeleteInvitationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteInvitationOutcome>>;
|
|
4231
|
+
deleteMember(input: DeleteMemberInput): Promise<TypedCommandResult<DeleteMemberOutcome>>;
|
|
4232
|
+
deleteMemberBatch(inputs: ReadonlyArray<DeleteMemberInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteMemberOutcome>>;
|
|
4233
|
+
deleteOrganization(input: DeleteOrganizationInput): Promise<TypedCommandResult<DeleteOrganizationOutcome>>;
|
|
4234
|
+
deleteOrganizationBatch(inputs: ReadonlyArray<DeleteOrganizationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteOrganizationOutcome>>;
|
|
4235
|
+
deleteSession(input: DeleteSessionInput): Promise<TypedCommandResult<DeleteSessionOutcome>>;
|
|
4236
|
+
deleteSessionBatch(inputs: ReadonlyArray<DeleteSessionInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteSessionOutcome>>;
|
|
4237
|
+
deleteTwoFactor(input: DeleteTwoFactorInput): Promise<TypedCommandResult<DeleteTwoFactorOutcome>>;
|
|
4238
|
+
deleteTwoFactorBatch(inputs: ReadonlyArray<DeleteTwoFactorInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteTwoFactorOutcome>>;
|
|
4239
|
+
deleteVerification(input: DeleteVerificationInput): Promise<TypedCommandResult<DeleteVerificationOutcome>>;
|
|
4240
|
+
deleteVerificationBatch(inputs: ReadonlyArray<DeleteVerificationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteVerificationOutcome>>;
|
|
4241
|
+
incrementTwoFactorFailure(input: IncrementTwoFactorFailureInput): Promise<TypedCommandResult<IncrementTwoFactorFailureOutcome>>;
|
|
4242
|
+
incrementTwoFactorFailureBatch(inputs: ReadonlyArray<IncrementTwoFactorFailureInput>, options: CommandBatchOptions): Promise<CommandBatchResult<IncrementTwoFactorFailureOutcome>>;
|
|
4243
|
+
lockTwoFactor(input: LockTwoFactorInput): Promise<TypedCommandResult<LockTwoFactorOutcome>>;
|
|
4244
|
+
lockTwoFactorBatch(inputs: ReadonlyArray<LockTwoFactorInput>, options: CommandBatchOptions): Promise<CommandBatchResult<LockTwoFactorOutcome>>;
|
|
4245
|
+
replaceTwoFactorBackupCodes(input: ReplaceTwoFactorBackupCodesInput): Promise<TypedCommandResult<ReplaceTwoFactorBackupCodesOutcome>>;
|
|
4246
|
+
replaceTwoFactorBackupCodesBatch(inputs: ReadonlyArray<ReplaceTwoFactorBackupCodesInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ReplaceTwoFactorBackupCodesOutcome>>;
|
|
4247
|
+
resetCredentialPassword(input: ResetCredentialPasswordInput): Promise<TypedCommandResult<ResetCredentialPasswordOutcome>>;
|
|
4248
|
+
resetCredentialPasswordBatch(inputs: ReadonlyArray<ResetCredentialPasswordInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ResetCredentialPasswordOutcome>>;
|
|
4249
|
+
resetExpiredTwoFactor(input: ResetExpiredTwoFactorInput): Promise<TypedCommandResult<ResetExpiredTwoFactorOutcome>>;
|
|
4250
|
+
resetExpiredTwoFactorBatch(inputs: ReadonlyArray<ResetExpiredTwoFactorInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ResetExpiredTwoFactorOutcome>>;
|
|
4251
|
+
transitionInvitation(input: TransitionInvitationInput): Promise<TypedCommandResult<TransitionInvitationOutcome>>;
|
|
4252
|
+
transitionInvitationBatch(inputs: ReadonlyArray<TransitionInvitationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<TransitionInvitationOutcome>>;
|
|
4253
|
+
updateAccount(input: UpdateAccountInput): Promise<TypedCommandResult<UpdateAccountOutcome>>;
|
|
4254
|
+
updateAccountBatch(inputs: ReadonlyArray<UpdateAccountInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateAccountOutcome>>;
|
|
4255
|
+
updateAccountPasswords(input: UpdateAccountPasswordsInput): Promise<TypedCommandResult<UpdateAccountPasswordsOutcome>>;
|
|
4256
|
+
updateAccountPasswordsBatch(inputs: ReadonlyArray<UpdateAccountPasswordsInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateAccountPasswordsOutcome>>;
|
|
4257
|
+
updateCredentialPassword(input: UpdateCredentialPasswordInput): Promise<TypedCommandResult<UpdateCredentialPasswordOutcome>>;
|
|
4258
|
+
updateCredentialPasswordBatch(inputs: ReadonlyArray<UpdateCredentialPasswordInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateCredentialPasswordOutcome>>;
|
|
4259
|
+
updateInvitation(input: UpdateInvitationInput): Promise<TypedCommandResult<UpdateInvitationOutcome>>;
|
|
4260
|
+
updateInvitationBatch(inputs: ReadonlyArray<UpdateInvitationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateInvitationOutcome>>;
|
|
4261
|
+
updateMember(input: UpdateMemberInput): Promise<TypedCommandResult<UpdateMemberOutcome>>;
|
|
4262
|
+
updateMemberBatch(inputs: ReadonlyArray<UpdateMemberInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateMemberOutcome>>;
|
|
4263
|
+
updateOrganization(input: UpdateOrganizationInput): Promise<TypedCommandResult<UpdateOrganizationOutcome>>;
|
|
4264
|
+
updateOrganizationBatch(inputs: ReadonlyArray<UpdateOrganizationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateOrganizationOutcome>>;
|
|
4265
|
+
updateSession(input: UpdateSessionInput): Promise<TypedCommandResult<UpdateSessionOutcome>>;
|
|
4266
|
+
updateSessionBatch(inputs: ReadonlyArray<UpdateSessionInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateSessionOutcome>>;
|
|
4267
|
+
updateTwoFactor(input: UpdateTwoFactorInput): Promise<TypedCommandResult<UpdateTwoFactorOutcome>>;
|
|
4268
|
+
updateTwoFactorBatch(inputs: ReadonlyArray<UpdateTwoFactorInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateTwoFactorOutcome>>;
|
|
4269
|
+
updateUser(input: UpdateUserInput): Promise<TypedCommandResult<UpdateUserOutcome>>;
|
|
4270
|
+
updateUserBatch(inputs: ReadonlyArray<UpdateUserInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateUserOutcome>>;
|
|
4271
|
+
updateVerification(input: UpdateVerificationInput): Promise<TypedCommandResult<UpdateVerificationOutcome>>;
|
|
4272
|
+
updateVerificationBatch(inputs: ReadonlyArray<UpdateVerificationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateVerificationOutcome>>;
|
|
4273
|
+
}
|
|
4274
|
+
//# sourceMappingURL=client.d.ts.map
|