@opengeni/db 5.0.1-canary.2 → 5.0.1-canary.4
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 +4 -0
- package/dist/canonical-human-identities.js +1 -1
- package/dist/capability-components.d.ts +1 -1
- package/dist/{chunk-VRS7M7FP.js → chunk-FBQIJZRB.js} +15 -1
- package/dist/chunk-FBQIJZRB.js.map +1 -0
- package/dist/{chunk-E4X5HQ5P.js → chunk-VTQOLZ6H.js} +15 -6
- package/dist/chunk-VTQOLZ6H.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +237 -36
- package/dist/index.js.map +1 -1
- package/dist/plugin-packages.d.ts +9 -12
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +3 -3
- package/dist/skill-source-release-impact.d.ts +18 -0
- package/dist/skill-source-release.d.ts +9 -0
- package/drizzle/0475_session_event_history_statistics.sql +15 -0
- package/drizzle/0476_session_event_history_policy_planning.sql +29 -0
- package/drizzle/0477_managed_sign_in_methods.sql +303 -0
- package/package.json +6 -6
- package/src/canonical-human-identities.ts +17 -5
- package/src/capability-components.ts +2 -0
- package/src/index.ts +1 -0
- package/src/plugin-packages.ts +232 -42
- package/src/provision-roles.ts +7 -0
- package/src/runtime-posture.ts +7 -0
- package/src/skill-source-release-impact.ts +33 -0
- package/src/skill-source-release.ts +67 -26
- package/dist/chunk-E4X5HQ5P.js.map +0 -1
- package/dist/chunk-VRS7M7FP.js.map +0 -1
|
@@ -59,6 +59,10 @@ export type ApplyCanonicalHumanIdentityOperationInput = {
|
|
|
59
59
|
providerId?: string | null;
|
|
60
60
|
providerAccountId?: string | null;
|
|
61
61
|
reason: string;
|
|
62
|
+
verifiedRecovery?: {
|
|
63
|
+
authSessionId: string;
|
|
64
|
+
requestDigest: string;
|
|
65
|
+
};
|
|
62
66
|
actorFence?: {
|
|
63
67
|
authorityHash: string;
|
|
64
68
|
actorEpoch: string;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getCanonicalHumanIdentityProjection,
|
|
12
12
|
synchronizeCanonicalHumanLoginBindings,
|
|
13
13
|
validateCanonicalHumanSession
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VTQOLZ6H.js";
|
|
15
15
|
import "./chunk-TDXX22IZ.js";
|
|
16
16
|
import "./chunk-BGMK3XV6.js";
|
|
17
17
|
import "./chunk-S2TZ3F4L.js";
|
|
@@ -36,4 +36,4 @@ export declare function assertCapabilityComponentVersionCanChange(db: Database,
|
|
|
36
36
|
* have claimed a component while its installation is pending or repairing,
|
|
37
37
|
* even though that owner is intentionally hidden from runtime reads.
|
|
38
38
|
*/
|
|
39
|
-
export declare function cleanupOrphanedCapabilityComponents(db: Database, workspaceId: string, facetInstallationIds: string[], skillActor?: SkillActor): Promise<SkillSourceReleaseReceipt[]>;
|
|
39
|
+
export declare function cleanupOrphanedCapabilityComponents(db: Database, workspaceId: string, facetInstallationIds: string[], skillActor?: SkillActor, lockedSkillHeadIds?: readonly string[]): Promise<SkillSourceReleaseReceipt[]>;
|
|
@@ -413,6 +413,11 @@ var SCOPED_COMPUTE_AUTHORITY_ROUTINES = [
|
|
|
413
413
|
"detach_scoped_machine_dependent_sessions(uuid, uuid, uuid)"
|
|
414
414
|
];
|
|
415
415
|
var CANONICAL_HUMAN_IDENTITY_ROUTINES = [
|
|
416
|
+
"mutate_managed_sign_in_method(text, text, jsonb)",
|
|
417
|
+
"assert_managed_sign_in_recovery(text, text, uuid, jsonb)",
|
|
418
|
+
"replay_managed_sign_in_method(text, text, jsonb)",
|
|
419
|
+
"claim_managed_sign_in_notification(uuid, text, text, integer)",
|
|
420
|
+
"settle_managed_sign_in_notification(uuid, uuid, text)",
|
|
416
421
|
"ensure_canonical_human_identity(text, text)",
|
|
417
422
|
"validate_canonical_human_session(text, text, boolean)",
|
|
418
423
|
"get_canonical_human_identity_projection(text)",
|
|
@@ -899,6 +904,7 @@ var FORCE_RLS_TABLES = [
|
|
|
899
904
|
"managed_auth_login_transactions",
|
|
900
905
|
"managed_auth_session_set_operations",
|
|
901
906
|
"managed_auth_session_sets",
|
|
907
|
+
"managed_sign_in_method_operations",
|
|
902
908
|
"mcp_operations",
|
|
903
909
|
"memory_slack_publication_configurations",
|
|
904
910
|
"memory_slack_publication_receipts",
|
|
@@ -1467,6 +1473,7 @@ var PROTECTED_NO_DIRECT_DML_TABLES = [
|
|
|
1467
1473
|
"managed_auth_login_transactions",
|
|
1468
1474
|
"managed_auth_session_set_operations",
|
|
1469
1475
|
"managed_auth_session_sets",
|
|
1476
|
+
"managed_sign_in_method_operations",
|
|
1470
1477
|
"mcp_operations",
|
|
1471
1478
|
"organization_company_profile_agent_policies",
|
|
1472
1479
|
"organization_company_profile_agent_policy_events",
|
|
@@ -3735,6 +3742,10 @@ async function grantAppRoleIfSchemaExists(sql2, role, schema) {
|
|
|
3735
3742
|
"complete_organization_retention_deletion(uuid,uuid,uuid,text)"
|
|
3736
3743
|
].map(literal).join(", ")}]`;
|
|
3737
3744
|
const managedAuthSessionSetRoutines = `ARRAY[${[
|
|
3745
|
+
"assert_managed_sign_in_recovery(text,text,uuid,jsonb)",
|
|
3746
|
+
"replay_managed_sign_in_method(text,text,jsonb)",
|
|
3747
|
+
"claim_managed_sign_in_notification(uuid,text,text,integer)",
|
|
3748
|
+
"settle_managed_sign_in_notification(uuid,uuid,text)",
|
|
3738
3749
|
"get_canonical_human_exact_login_binding(text,text)",
|
|
3739
3750
|
"managed_auth_session_set_authority_state(text)",
|
|
3740
3751
|
"managed_auth_session_set_snapshot(text,text,boolean,boolean,boolean)",
|
|
@@ -4468,6 +4479,9 @@ BEGIN
|
|
|
4468
4479
|
${literal(role)}
|
|
4469
4480
|
);
|
|
4470
4481
|
END IF;
|
|
4482
|
+
IF to_regprocedure(format('%I.mutate_managed_sign_in_method(text,text,jsonb)', ${literal(schema)})) IS NOT NULL THEN
|
|
4483
|
+
EXECUTE format('GRANT EXECUTE ON FUNCTION %I.mutate_managed_sign_in_method(text,text,jsonb) TO %I', ${literal(schema)}, ${literal(role)});
|
|
4484
|
+
END IF;
|
|
4471
4485
|
FOREACH routine_signature IN ARRAY ${managedAuthSessionSetRoutines} LOOP
|
|
4472
4486
|
IF to_regprocedure(format('%I.%s', ${literal(schema)}, routine_signature)) IS NOT NULL THEN
|
|
4473
4487
|
EXECUTE format(
|
|
@@ -5482,4 +5496,4 @@ export {
|
|
|
5482
5496
|
runtimeDatabaseReadyCheck,
|
|
5483
5497
|
provisionRoles
|
|
5484
5498
|
};
|
|
5485
|
-
//# sourceMappingURL=chunk-
|
|
5499
|
+
//# sourceMappingURL=chunk-FBQIJZRB.js.map
|