@opengeni/db 3.4.0-canary.1 → 3.5.2-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canonical-human-identities.d.ts +20 -0
- package/dist/canonical-human-identities.js +7 -3
- package/dist/{chunk-C2AFP7SB.js → chunk-6NYKC5DD.js} +6507 -6040
- package/dist/chunk-6NYKC5DD.js.map +1 -0
- package/dist/{chunk-O6FTELKH.js → chunk-FJHEWYV5.js} +3 -3
- package/dist/{chunk-ZWRIPCTR.js → chunk-NRGUX3M5.js} +2 -2
- package/dist/{chunk-TRBOWUG3.js → chunk-ORKVXHL2.js} +2 -2
- package/dist/{chunk-PYMY3AJW.js → chunk-PERPE2UY.js} +172 -7
- package/dist/chunk-PERPE2UY.js.map +1 -0
- package/dist/chunk-TRCYF26N.js +299 -0
- package/dist/chunk-TRCYF26N.js.map +1 -0
- package/dist/{chunk-V3TRUXFJ.js → chunk-U7NKCX5E.js} +72 -19
- package/dist/chunk-U7NKCX5E.js.map +1 -0
- package/dist/{chunk-H7MXYG7R.js → chunk-X6T2P3L3.js} +2 -2
- package/dist/{chunk-HY3F5Q4E.js → chunk-Y44FKTYU.js} +3 -3
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.d.ts +21 -3
- package/dist/index.js +1698 -995
- package/dist/index.js.map +1 -1
- package/dist/managed-auth-session-set-schema.d.ts +1399 -0
- package/dist/managed-auth-session-sets.d.ts +145 -0
- package/dist/managed-auth-session-sets.js +50 -0
- package/dist/managed-auth-session-sets.js.map +1 -0
- package/dist/organization-recovery-schema.d.ts +2144 -0
- package/dist/organization-recovery.d.ts +186 -0
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +5 -3
- package/dist/schema.d.ts +2 -0
- package/dist/schema.js +37 -1
- package/dist/session-background-commands.js +3 -3
- package/dist/session-control.d.ts +5 -3
- package/dist/session-queue-commands.d.ts +2 -0
- package/dist/session-tenancy.js +3 -3
- package/dist/video-generation.js +3 -3
- package/drizzle/0362_managed_auth_session_sets.sql +2347 -0
- package/drizzle/0363_organization_recovery_custody.sql +2418 -0
- package/drizzle/0364_workspace_learning_policy_snapshot_lock_order.sql +221 -0
- package/package.json +10 -6
- package/src/canonical-human-identities.ts +105 -27
- package/src/index.ts +420 -103
- package/src/managed-auth-session-set-schema.ts +176 -0
- package/src/managed-auth-session-sets.ts +430 -0
- package/src/organization-recovery-schema.ts +277 -0
- package/src/organization-recovery.ts +424 -0
- package/src/provision-roles.ts +49 -0
- package/src/runtime-posture.ts +132 -6
- package/src/schema.ts +2 -0
- package/src/session-control.ts +255 -16
- package/src/session-queue-commands.ts +10 -1
- package/src/session-tool-call-settlement.ts +6 -1
- package/dist/chunk-C2AFP7SB.js.map +0 -1
- package/dist/chunk-PYMY3AJW.js.map +0 -1
- package/dist/chunk-V3TRUXFJ.js.map +0 -1
- /package/dist/{chunk-O6FTELKH.js.map → chunk-FJHEWYV5.js.map} +0 -0
- /package/dist/{chunk-ZWRIPCTR.js.map → chunk-NRGUX3M5.js.map} +0 -0
- /package/dist/{chunk-TRBOWUG3.js.map → chunk-ORKVXHL2.js.map} +0 -0
- /package/dist/{chunk-H7MXYG7R.js.map → chunk-X6T2P3L3.js.map} +0 -0
- /package/dist/{chunk-HY3F5Q4E.js.map → chunk-Y44FKTYU.js.map} +0 -0
|
@@ -6,6 +6,16 @@ export type CanonicalHumanSessionAuthority = {
|
|
|
6
6
|
authRevision: number;
|
|
7
7
|
identityStatus: "active" | "recovery_required" | "disputed" | "disabled";
|
|
8
8
|
};
|
|
9
|
+
export type CanonicalHumanExactLoginBinding = {
|
|
10
|
+
id: string;
|
|
11
|
+
identityId: string;
|
|
12
|
+
revision: number;
|
|
13
|
+
status: "active" | "recovery_pending" | "stale" | "disputed" | "revoked";
|
|
14
|
+
};
|
|
15
|
+
export declare function getCanonicalHumanExactLoginBindingForAuthUser(db: Database, input: {
|
|
16
|
+
authUserId: string;
|
|
17
|
+
providerId: string;
|
|
18
|
+
}): Promise<CanonicalHumanExactLoginBinding>;
|
|
9
19
|
export declare class CanonicalHumanIdentityConflictError extends Error {
|
|
10
20
|
readonly name = "CanonicalHumanIdentityConflictError";
|
|
11
21
|
readonly code = "CANONICAL_HUMAN_IDENTITY_CONFLICT";
|
|
@@ -16,6 +26,11 @@ export declare class CanonicalHumanIdentityOperationReuseError extends Error {
|
|
|
16
26
|
readonly code = "CANONICAL_HUMAN_IDENTITY_OPERATION_REUSED";
|
|
17
27
|
constructor();
|
|
18
28
|
}
|
|
29
|
+
export declare class CanonicalHumanIdentityMutationInFlightError extends Error {
|
|
30
|
+
readonly name = "CanonicalHumanIdentityMutationInFlightError";
|
|
31
|
+
readonly code = "CANONICAL_HUMAN_IDENTITY_MUTATION_IN_FLIGHT";
|
|
32
|
+
constructor();
|
|
33
|
+
}
|
|
19
34
|
export declare class CanonicalHumanIdentityNotFoundError extends Error {
|
|
20
35
|
readonly name = "CanonicalHumanIdentityNotFoundError";
|
|
21
36
|
constructor(message?: string);
|
|
@@ -44,5 +59,10 @@ export type ApplyCanonicalHumanIdentityOperationInput = {
|
|
|
44
59
|
providerId?: string | null;
|
|
45
60
|
providerAccountId?: string | null;
|
|
46
61
|
reason: string;
|
|
62
|
+
actorFence?: {
|
|
63
|
+
authorityHash: string;
|
|
64
|
+
actorEpoch: string;
|
|
65
|
+
requestId: string;
|
|
66
|
+
};
|
|
47
67
|
};
|
|
48
68
|
export declare function applyCanonicalHumanIdentityOperation(db: Database, input: ApplyCanonicalHumanIdentityOperationInput): Promise<CanonicalHumanIdentityMutationResponseType>;
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CanonicalHumanIdentityAuthorityError,
|
|
3
3
|
CanonicalHumanIdentityConflictError,
|
|
4
|
+
CanonicalHumanIdentityMutationInFlightError,
|
|
4
5
|
CanonicalHumanIdentityNotFoundError,
|
|
5
6
|
CanonicalHumanIdentityOperationReuseError,
|
|
6
7
|
applyCanonicalHumanIdentityOperation,
|
|
7
8
|
ensureCanonicalHumanIdentity,
|
|
8
9
|
ensureCanonicalHumanIdentityForAuthUser,
|
|
10
|
+
getCanonicalHumanExactLoginBindingForAuthUser,
|
|
9
11
|
getCanonicalHumanIdentityProjection,
|
|
10
12
|
synchronizeCanonicalHumanLoginBindings,
|
|
11
13
|
validateCanonicalHumanSession
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-U7NKCX5E.js";
|
|
15
|
+
import "./chunk-X6T2P3L3.js";
|
|
16
|
+
import "./chunk-6NYKC5DD.js";
|
|
15
17
|
import "./chunk-PZ5AY32C.js";
|
|
16
18
|
export {
|
|
17
19
|
CanonicalHumanIdentityAuthorityError,
|
|
18
20
|
CanonicalHumanIdentityConflictError,
|
|
21
|
+
CanonicalHumanIdentityMutationInFlightError,
|
|
19
22
|
CanonicalHumanIdentityNotFoundError,
|
|
20
23
|
CanonicalHumanIdentityOperationReuseError,
|
|
21
24
|
applyCanonicalHumanIdentityOperation,
|
|
22
25
|
ensureCanonicalHumanIdentity,
|
|
23
26
|
ensureCanonicalHumanIdentityForAuthUser,
|
|
27
|
+
getCanonicalHumanExactLoginBindingForAuthUser,
|
|
24
28
|
getCanonicalHumanIdentityProjection,
|
|
25
29
|
synchronizeCanonicalHumanLoginBindings,
|
|
26
30
|
validateCanonicalHumanSession
|