@opengeni/db 3.6.0 → 3.7.4-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/automations.d.ts +4 -0
- package/dist/canonical-human-identities.js +3 -3
- package/dist/{chunk-UGDVSQ6U.js → chunk-3ZMN4EXC.js} +2 -2
- package/dist/{chunk-744DFC65.js → chunk-6FIVOJ3V.js} +96 -6
- package/dist/chunk-6FIVOJ3V.js.map +1 -0
- package/dist/{chunk-UJ2EW3QI.js → chunk-DXJ2WY6W.js} +427 -85
- package/dist/chunk-DXJ2WY6W.js.map +1 -0
- package/dist/{chunk-CDMMSUWJ.js → chunk-JP6IYGYI.js} +3 -3
- package/dist/{chunk-Q5YUGQVK.js → chunk-JS3AWDKZ.js} +3 -3
- package/dist/{chunk-G3732M3T.js → chunk-LHKB62GC.js} +2 -2
- package/dist/{chunk-2NT476HD.js → chunk-QL4AHBYD.js} +2 -2
- package/dist/{chunk-IW6O6G7R.js → chunk-VDXHLVDE.js} +2 -2
- package/dist/{chunk-WW7AJ5IC.js → chunk-ZTSJPFDH.js} +5 -7
- package/dist/chunk-ZTSJPFDH.js.map +1 -0
- package/dist/codex-token-resolver.d.ts +12 -1
- package/dist/company-profile-agent-admin.d.ts +4 -2
- package/dist/company-profile-agent-policy.d.ts +20 -0
- package/dist/company-profile-schema.d.ts +573 -0
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.d.ts +487 -20
- package/dist/index.js +9489 -6041
- package/dist/index.js.map +1 -1
- package/dist/managed-auth-session-sets.js +3 -3
- package/dist/managed-human-provisioning.d.ts +3 -3
- package/dist/memory-domain.d.ts +5 -3
- package/dist/model-catalog.d.ts +153 -0
- package/dist/pr-review.d.ts +9 -0
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +7 -7
- package/dist/schema.d.ts +1069 -6
- package/dist/schema.js +17 -1
- package/dist/session-background-commands.js +3 -3
- package/dist/session-control.d.ts +75 -5
- package/dist/session-queue-commands.d.ts +19 -0
- package/dist/session-tenancy.js +3 -3
- package/dist/user-resource-authority.d.ts +8 -0
- package/dist/video-generation.js +3 -3
- package/dist/xai-subscription.d.ts +8 -0
- package/drizzle/0369_local_human_personal_authority.sql +350 -0
- package/drizzle/0370_workspace_member_management_scope.sql +98 -0
- package/drizzle/0371_workspace_member_candidate_inventory.sql +128 -0
- package/drizzle/0372_ordered_variable_set_runtime_authority.sql +287 -0
- package/drizzle/0373_sandbox_shared_preparation.sql +59 -0
- package/drizzle/0374_session_event_cursors.sql +315 -0
- package/drizzle/0375_session_recovery_observability.sql +73 -0
- package/drizzle/0376_organization_workspace_inventory.sql +88 -0
- package/drizzle/0377_scoped_rig_health_projection.sql +80 -0
- package/drizzle/0378_scoped_rig_health_audit_timestamp.sql +77 -0
- package/drizzle/0379_session_event_raw_lane_activation.sql +518 -0
- package/drizzle/0380_autonomous_company_profile_agent_policy.sql +829 -0
- package/drizzle/0381_organization_codex_subscription_inheritance.sql +720 -0
- package/drizzle/0382_organization_api_key_provenance.sql +91 -0
- package/drizzle/0383_codex_cooldown_reconciliation.sql +51 -0
- package/drizzle/0384_codex_cooldown_revision_guard_privileges.sql +6 -0
- package/drizzle/0385_connected_machine_legacy_tilde_workdirs.sql +25 -0
- package/drizzle/0386_local_organization_administration.sql +157 -0
- package/drizzle/0387_bound_host_export_session_payloads.sql +165 -0
- package/drizzle/0388_sandbox_provider_deadline_interactions.sql +491 -0
- package/drizzle/0389_model_catalog_and_gateway_custom_models.sql +241 -0
- package/package.json +6 -6
- package/src/automations.ts +9 -1
- package/src/codex-token-resolver.ts +26 -1
- package/src/company-brain-governed-writes.ts +30 -1
- package/src/company-profile-agent-admin.ts +68 -1
- package/src/company-profile-agent-policy.ts +126 -0
- package/src/company-profile-schema.ts +115 -1
- package/src/database.ts +3 -5
- package/src/index.ts +4473 -570
- package/src/insights.ts +21 -7
- package/src/managed-human-provisioning.ts +3 -3
- package/src/memory-domain.ts +9 -4
- package/src/model-catalog.ts +682 -0
- package/src/organization-membership-lifecycle.ts +0 -1
- package/src/pr-review.ts +19 -0
- package/src/provision-roles.ts +83 -4
- package/src/runtime-posture.ts +26 -0
- package/src/schema.ts +259 -10
- package/src/session-control.ts +347 -59
- package/src/session-queue-commands.ts +303 -122
- package/src/session-tool-call-settlement.ts +34 -7
- package/src/user-resource-authority.ts +56 -0
- package/src/xai-subscription.ts +66 -14
- package/dist/chunk-744DFC65.js.map +0 -1
- package/dist/chunk-UJ2EW3QI.js.map +0 -1
- package/dist/chunk-WW7AJ5IC.js.map +0 -1
- /package/dist/{chunk-UGDVSQ6U.js.map → chunk-3ZMN4EXC.js.map} +0 -0
- /package/dist/{chunk-CDMMSUWJ.js.map → chunk-JP6IYGYI.js.map} +0 -0
- /package/dist/{chunk-Q5YUGQVK.js.map → chunk-JS3AWDKZ.js.map} +0 -0
- /package/dist/{chunk-G3732M3T.js.map → chunk-LHKB62GC.js.map} +0 -0
- /package/dist/{chunk-2NT476HD.js.map → chunk-QL4AHBYD.js.map} +0 -0
- /package/dist/{chunk-IW6O6G7R.js.map → chunk-VDXHLVDE.js.map} +0 -0
package/dist/automations.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ export declare function createAutomationTrigger(db: Database, input: {
|
|
|
75
75
|
createdBySubjectId: string;
|
|
76
76
|
request: CreateAutomationTriggerRequest;
|
|
77
77
|
adapterId: string;
|
|
78
|
+
/** Trusted database-only admission seam. Throwing rolls creation back. */
|
|
79
|
+
beforeCreateCommit?: (tx: Database) => Promise<void>;
|
|
78
80
|
}): Promise<AutomationTrigger>;
|
|
79
81
|
export declare function listAutomationTriggers(db: Database, workspaceId: string): Promise<AutomationTrigger[]>;
|
|
80
82
|
export declare function listActiveAutomationTriggersForSource(db: Database, input: {
|
|
@@ -94,6 +96,8 @@ export declare function updateAutomationTrigger(db: Database, input: {
|
|
|
94
96
|
triggerId: string;
|
|
95
97
|
subjectId: string;
|
|
96
98
|
request: UpdateAutomationTriggerRequest;
|
|
99
|
+
/** Trusted database-only admission seam. Throwing rolls the revision back. */
|
|
100
|
+
beforeUpdateCommit?: (tx: Database) => Promise<void>;
|
|
97
101
|
}): Promise<AutomationTrigger | null>;
|
|
98
102
|
export declare function recordAutomationEvent(db: Database, input: {
|
|
99
103
|
accountId: string;
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
getCanonicalHumanIdentityProjection,
|
|
12
12
|
synchronizeCanonicalHumanLoginBindings,
|
|
13
13
|
validateCanonicalHumanSession
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-3ZMN4EXC.js";
|
|
15
|
+
import "./chunk-ZTSJPFDH.js";
|
|
16
|
+
import "./chunk-DXJ2WY6W.js";
|
|
17
17
|
import "./chunk-PZ5AY32C.js";
|
|
18
18
|
export {
|
|
19
19
|
CanonicalHumanIdentityAuthorityError,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nestedPostgresSqlState,
|
|
3
3
|
rawRows
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZTSJPFDH.js";
|
|
5
5
|
|
|
6
6
|
// src/canonical-human-identities.ts
|
|
7
7
|
import { createHash } from "crypto";
|
|
@@ -309,4 +309,4 @@ export {
|
|
|
309
309
|
getCanonicalHumanIdentityProjection,
|
|
310
310
|
applyCanonicalHumanIdentityOperation
|
|
311
311
|
};
|
|
312
|
-
//# sourceMappingURL=chunk-
|
|
312
|
+
//# sourceMappingURL=chunk-3ZMN4EXC.js.map
|
|
@@ -158,6 +158,8 @@ var ORGANIZATION_MEMBERSHIP_LIFECYCLE_ROUTINES = [
|
|
|
158
158
|
"list_organization_administration_members(uuid, text)",
|
|
159
159
|
"get_organization_administration_overview(uuid, text)",
|
|
160
160
|
"get_workspace_kind(uuid, uuid)",
|
|
161
|
+
"resolve_workspace_codex_subscription_source(uuid, uuid)",
|
|
162
|
+
"list_organization_workspace_ids(uuid)",
|
|
161
163
|
"organization_workspace_command(jsonb)",
|
|
162
164
|
"resolve_organization_workspace_removal_subject(uuid, text, uuid)",
|
|
163
165
|
"prepare_organization_workspace_member_removal(jsonb)",
|
|
@@ -275,6 +277,7 @@ var USER_RESOURCE_LIFECYCLE_ROUTINES = [
|
|
|
275
277
|
"accept_turn_personal_resource_attachment(uuid, uuid, uuid, uuid, text, integer, boolean, integer)",
|
|
276
278
|
"list_self_user_resource_authorities(uuid, uuid, text, uuid, integer)",
|
|
277
279
|
"issue_self_user_resource_grant(uuid, uuid, uuid, text, text, text, uuid, integer, boolean)",
|
|
280
|
+
"issue_self_local_connection_use_grant(uuid, uuid, uuid, text, boolean)",
|
|
278
281
|
"revoke_self_user_resource_grant(uuid, uuid, uuid)",
|
|
279
282
|
"authorize_session_attempt_personal_resource_reads(uuid, uuid, uuid)"
|
|
280
283
|
];
|
|
@@ -460,15 +463,21 @@ var GOVERNED_LEARNING_INSPECTION_AUTHORITY_TABLES = [
|
|
|
460
463
|
];
|
|
461
464
|
var COMPANY_PROFILE_AGENT_ADMIN_ROUTINES = [
|
|
462
465
|
"propose_company_profile_for_attempt(uuid, uuid, uuid, uuid, uuid, integer, uuid, text, text, text)",
|
|
463
|
-
"
|
|
466
|
+
"propose_company_profile_for_attempt_v2(uuid, uuid, uuid, uuid, uuid, integer, uuid, uuid, text, text, text)",
|
|
467
|
+
"confirm_company_profile_for_attempt(uuid, uuid, uuid, uuid, uuid, integer, uuid, uuid, uuid)",
|
|
468
|
+
"get_company_profile_agent_policy(uuid, uuid, text)",
|
|
469
|
+
"update_company_profile_agent_policy(uuid, uuid, text, text, bigint, uuid)"
|
|
464
470
|
];
|
|
465
471
|
var COMPANY_PROFILE_AGENT_ADMIN_AUTHORITY_TABLES = [
|
|
466
472
|
"company_profile_activation_events",
|
|
473
|
+
"company_profile_agent_automatic_activation_receipts",
|
|
467
474
|
"company_profile_agent_confirmation_receipts",
|
|
468
475
|
"company_profile_agent_proposal_receipts",
|
|
469
476
|
"company_profile_heads",
|
|
470
477
|
"company_profile_revisions",
|
|
471
478
|
"managed_accounts",
|
|
479
|
+
"organization_company_profile_agent_policies",
|
|
480
|
+
"organization_company_profile_agent_policy_events",
|
|
472
481
|
"organization_memberships",
|
|
473
482
|
"session_human_input_requests",
|
|
474
483
|
"session_turn_attempts",
|
|
@@ -627,6 +636,7 @@ var RUNTIME_TARGET_SCHEMA_FORBIDDEN_ROUTINES = [
|
|
|
627
636
|
...DOCUMENT_MIGRATION_AUDIT_INTERNAL_ROUTINES
|
|
628
637
|
];
|
|
629
638
|
var RUNTIME_TARGET_SCHEMA_INVOKER_ROUTINES = [
|
|
639
|
+
"resolve_workspace_codex_subscription_source(uuid, uuid)",
|
|
630
640
|
SESSION_REFERENCE_VISIBLE_ROUTINE,
|
|
631
641
|
XAI_SNAPSHOT_VALIDATOR_ROUTINE
|
|
632
642
|
];
|
|
@@ -683,6 +693,7 @@ var FORCE_RLS_TABLES = [
|
|
|
683
693
|
"company_brain_preference_proposal_receipts",
|
|
684
694
|
"company_brain_turn_context_snapshots",
|
|
685
695
|
"company_profile_activation_events",
|
|
696
|
+
"company_profile_agent_automatic_activation_receipts",
|
|
686
697
|
"company_profile_agent_confirmation_receipts",
|
|
687
698
|
"company_profile_agent_proposal_receipts",
|
|
688
699
|
"company_profile_heads",
|
|
@@ -791,6 +802,9 @@ var FORCE_RLS_TABLES = [
|
|
|
791
802
|
"model_call_facts",
|
|
792
803
|
"network_routes",
|
|
793
804
|
"new_session_drafts",
|
|
805
|
+
"organization_codex_rotation_settings",
|
|
806
|
+
"organization_company_profile_agent_policies",
|
|
807
|
+
"organization_company_profile_agent_policy_events",
|
|
794
808
|
"organization_invitation_binding_events",
|
|
795
809
|
"organization_membership_invitations",
|
|
796
810
|
"organization_membership_lifecycle_events",
|
|
@@ -873,6 +887,7 @@ var FORCE_RLS_TABLES = [
|
|
|
873
887
|
"session_attempt_tool_catalogs",
|
|
874
888
|
"session_background_commands",
|
|
875
889
|
"session_command_receipts",
|
|
890
|
+
"session_event_cursors",
|
|
876
891
|
"session_events",
|
|
877
892
|
"session_goal_revisions",
|
|
878
893
|
"session_goals",
|
|
@@ -949,7 +964,9 @@ var FORCE_RLS_TABLES = [
|
|
|
949
964
|
"workspace_artifact_versions",
|
|
950
965
|
"workspace_artifacts",
|
|
951
966
|
"workspace_captures",
|
|
967
|
+
"workspace_codex_subscription_preferences",
|
|
952
968
|
"workspace_control_events",
|
|
969
|
+
"workspace_gateway_custom_models",
|
|
953
970
|
"workspace_inference_controls",
|
|
954
971
|
"workspace_instruction_policy_activation_events",
|
|
955
972
|
"workspace_instruction_policy_deactivation_events",
|
|
@@ -983,6 +1000,7 @@ var NON_RLS_RUNTIME_TABLES = [
|
|
|
983
1000
|
"auth_users",
|
|
984
1001
|
"auth_verifications",
|
|
985
1002
|
"automation_webhook_endpoints",
|
|
1003
|
+
"deployment_model_catalog",
|
|
986
1004
|
"integration_oauth_clients",
|
|
987
1005
|
"managed_accounts",
|
|
988
1006
|
"nested_agent_depth_configuration",
|
|
@@ -1062,6 +1080,7 @@ var RUNTIME_FULL_DML_TABLES = [
|
|
|
1062
1080
|
"memory_slack_publications",
|
|
1063
1081
|
"model_call_facts",
|
|
1064
1082
|
"new_session_drafts",
|
|
1083
|
+
"organization_codex_rotation_settings",
|
|
1065
1084
|
"pack_installation_components",
|
|
1066
1085
|
"pack_installations",
|
|
1067
1086
|
"pr_review_app_registrations",
|
|
@@ -1082,6 +1101,7 @@ var RUNTIME_FULL_DML_TABLES = [
|
|
|
1082
1101
|
"session_attempt_interruptions",
|
|
1083
1102
|
"session_background_commands",
|
|
1084
1103
|
"session_command_receipts",
|
|
1104
|
+
"session_event_cursors",
|
|
1085
1105
|
"session_events",
|
|
1086
1106
|
"session_goals",
|
|
1087
1107
|
"session_history_items",
|
|
@@ -1127,7 +1147,9 @@ var RUNTIME_FULL_DML_TABLES = [
|
|
|
1127
1147
|
"video_generation_references",
|
|
1128
1148
|
"workspace_artifacts",
|
|
1129
1149
|
"workspace_captures",
|
|
1150
|
+
"workspace_codex_subscription_preferences",
|
|
1130
1151
|
"workspace_control_events",
|
|
1152
|
+
"workspace_gateway_custom_models",
|
|
1131
1153
|
"workspace_inference_controls",
|
|
1132
1154
|
"workspace_instruction_policy_heads",
|
|
1133
1155
|
"workspace_memberships",
|
|
@@ -1147,6 +1169,7 @@ var RUNTIME_READ_ONLY_TABLES = [
|
|
|
1147
1169
|
"company_profile_activation_events",
|
|
1148
1170
|
"company_profile_heads",
|
|
1149
1171
|
"company_profile_snapshots",
|
|
1172
|
+
"deployment_model_catalog",
|
|
1150
1173
|
"document_authority_reclassifications",
|
|
1151
1174
|
"knowledge_lifecycle_events",
|
|
1152
1175
|
"knowledge_memory_lifecycle_events",
|
|
@@ -1257,6 +1280,7 @@ var PROTECTED_NO_DIRECT_DML_TABLES = [
|
|
|
1257
1280
|
"company_brain_context_selection_receipts",
|
|
1258
1281
|
"company_brain_preference_proposal_receipts",
|
|
1259
1282
|
"company_brain_turn_context_snapshots",
|
|
1283
|
+
"company_profile_agent_automatic_activation_receipts",
|
|
1260
1284
|
"company_profile_agent_confirmation_receipts",
|
|
1261
1285
|
"company_profile_agent_proposal_receipts",
|
|
1262
1286
|
"connection_use_audit_facts",
|
|
@@ -1282,6 +1306,8 @@ var PROTECTED_NO_DIRECT_DML_TABLES = [
|
|
|
1282
1306
|
"managed_auth_login_transactions",
|
|
1283
1307
|
"managed_auth_session_set_operations",
|
|
1284
1308
|
"managed_auth_session_sets",
|
|
1309
|
+
"organization_company_profile_agent_policies",
|
|
1310
|
+
"organization_company_profile_agent_policy_events",
|
|
1285
1311
|
"organization_invitation_binding_events",
|
|
1286
1312
|
"organization_membership_invitations",
|
|
1287
1313
|
"organization_membership_lifecycle_events",
|
|
@@ -3118,7 +3144,9 @@ END $$;
|
|
|
3118
3144
|
`);
|
|
3119
3145
|
}
|
|
3120
3146
|
async function ensureLoginRole(sql2, role, password) {
|
|
3121
|
-
await
|
|
3147
|
+
await executeRoleConvergence(
|
|
3148
|
+
sql2,
|
|
3149
|
+
`
|
|
3122
3150
|
DO $$
|
|
3123
3151
|
BEGIN
|
|
3124
3152
|
IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = ${literal(role)}) THEN
|
|
@@ -3127,10 +3155,13 @@ BEGIN
|
|
|
3127
3155
|
EXECUTE format('ALTER ROLE %I LOGIN PASSWORD %L', ${literal(role)}, ${literal(password)});
|
|
3128
3156
|
END IF;
|
|
3129
3157
|
END $$;
|
|
3130
|
-
`
|
|
3158
|
+
`
|
|
3159
|
+
);
|
|
3131
3160
|
}
|
|
3132
3161
|
async function ensureRestrictedAppLoginRole(sql2, role, password) {
|
|
3133
|
-
await
|
|
3162
|
+
await executeRoleConvergence(
|
|
3163
|
+
sql2,
|
|
3164
|
+
`
|
|
3134
3165
|
DO $$
|
|
3135
3166
|
BEGIN
|
|
3136
3167
|
IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = ${literal(role)}) THEN
|
|
@@ -3158,7 +3189,26 @@ BEGIN
|
|
|
3158
3189
|
);
|
|
3159
3190
|
END IF;
|
|
3160
3191
|
END $$;
|
|
3161
|
-
`
|
|
3192
|
+
`
|
|
3193
|
+
);
|
|
3194
|
+
}
|
|
3195
|
+
var ROLE_CONVERGENCE_MAX_ATTEMPTS = 20;
|
|
3196
|
+
function isRetryableConcurrentRoleMutation(error) {
|
|
3197
|
+
const details = error;
|
|
3198
|
+
return details.code === "XX000" && details.message === "tuple concurrently updated" && details.routine === "simple_heap_update" || details.code === "42710" && typeof details.message === "string" && /^role ".+" already exists$/u.test(details.message);
|
|
3199
|
+
}
|
|
3200
|
+
async function executeRoleConvergence(sql2, statement) {
|
|
3201
|
+
for (let attempt = 1; attempt <= ROLE_CONVERGENCE_MAX_ATTEMPTS; attempt += 1) {
|
|
3202
|
+
try {
|
|
3203
|
+
await sql2.unsafe(statement);
|
|
3204
|
+
return;
|
|
3205
|
+
} catch (error) {
|
|
3206
|
+
if (!isRetryableConcurrentRoleMutation(error) || attempt === ROLE_CONVERGENCE_MAX_ATTEMPTS) {
|
|
3207
|
+
throw error;
|
|
3208
|
+
}
|
|
3209
|
+
await new Promise((resolve) => setTimeout(resolve, Math.min(25 * attempt, 250)));
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3162
3212
|
}
|
|
3163
3213
|
async function assertAppRoleSafeToNormalize(sql2, role) {
|
|
3164
3214
|
const exists = await sql2`
|
|
@@ -3277,6 +3327,8 @@ async function grantAppRoleIfSchemaExists(sql2, role, schema) {
|
|
|
3277
3327
|
"list_organization_invitations(uuid,text,uuid,integer)",
|
|
3278
3328
|
"get_organization_administration_overview(uuid,text)",
|
|
3279
3329
|
"get_workspace_kind(uuid,uuid)",
|
|
3330
|
+
"resolve_workspace_codex_subscription_source(uuid,uuid)",
|
|
3331
|
+
"list_organization_workspace_ids(uuid)",
|
|
3280
3332
|
"organization_workspace_command(jsonb)",
|
|
3281
3333
|
"resolve_organization_workspace_removal_subject(uuid,text,uuid)",
|
|
3282
3334
|
"prepare_organization_workspace_member_removal(jsonb)",
|
|
@@ -3840,6 +3892,18 @@ BEGIN
|
|
|
3840
3892
|
${literal(role)}
|
|
3841
3893
|
);
|
|
3842
3894
|
END IF;
|
|
3895
|
+
IF to_regprocedure(
|
|
3896
|
+
format(
|
|
3897
|
+
'%I.propose_company_profile_for_attempt_v2(uuid,uuid,uuid,uuid,uuid,integer,uuid,uuid,text,text,text)',
|
|
3898
|
+
${literal(schema)}
|
|
3899
|
+
)
|
|
3900
|
+
) IS NOT NULL THEN
|
|
3901
|
+
EXECUTE format(
|
|
3902
|
+
'GRANT EXECUTE ON FUNCTION %I.propose_company_profile_for_attempt_v2(uuid, uuid, uuid, uuid, uuid, integer, uuid, uuid, text, text, text) TO %I',
|
|
3903
|
+
${literal(schema)},
|
|
3904
|
+
${literal(role)}
|
|
3905
|
+
);
|
|
3906
|
+
END IF;
|
|
3843
3907
|
IF to_regprocedure(
|
|
3844
3908
|
format(
|
|
3845
3909
|
'%I.confirm_company_profile_for_attempt(uuid,uuid,uuid,uuid,uuid,integer,uuid,uuid,uuid)',
|
|
@@ -3852,6 +3916,27 @@ BEGIN
|
|
|
3852
3916
|
${literal(role)}
|
|
3853
3917
|
);
|
|
3854
3918
|
END IF;
|
|
3919
|
+
IF to_regprocedure(
|
|
3920
|
+
format('%I.get_company_profile_agent_policy(uuid,uuid,text)', ${literal(schema)})
|
|
3921
|
+
) IS NOT NULL THEN
|
|
3922
|
+
EXECUTE format(
|
|
3923
|
+
'GRANT EXECUTE ON FUNCTION %I.get_company_profile_agent_policy(uuid, uuid, text) TO %I',
|
|
3924
|
+
${literal(schema)},
|
|
3925
|
+
${literal(role)}
|
|
3926
|
+
);
|
|
3927
|
+
END IF;
|
|
3928
|
+
IF to_regprocedure(
|
|
3929
|
+
format(
|
|
3930
|
+
'%I.update_company_profile_agent_policy(uuid,uuid,text,text,bigint,uuid)',
|
|
3931
|
+
${literal(schema)}
|
|
3932
|
+
)
|
|
3933
|
+
) IS NOT NULL THEN
|
|
3934
|
+
EXECUTE format(
|
|
3935
|
+
'GRANT EXECUTE ON FUNCTION %I.update_company_profile_agent_policy(uuid, uuid, text, text, bigint, uuid) TO %I',
|
|
3936
|
+
${literal(schema)},
|
|
3937
|
+
${literal(role)}
|
|
3938
|
+
);
|
|
3939
|
+
END IF;
|
|
3855
3940
|
IF to_regprocedure(
|
|
3856
3941
|
format(
|
|
3857
3942
|
'%I.workspace_learning_policy_apply_activation(uuid,text,uuid,uuid,uuid,uuid,bigint,text,text,text)',
|
|
@@ -4438,6 +4523,11 @@ BEGIN
|
|
|
4438
4523
|
EXECUTE format('REVOKE ALL ON FUNCTION %I.authorize_session_attempt_personal_resource_reads(uuid, uuid, uuid) FROM PUBLIC', ${literal(schema)});
|
|
4439
4524
|
EXECUTE format('GRANT EXECUTE ON FUNCTION %I.authorize_session_attempt_personal_resource_reads(uuid, uuid, uuid) TO %I', ${literal(schema)}, ${literal(role)});
|
|
4440
4525
|
END IF;
|
|
4526
|
+
IF to_regprocedure(format('%I.issue_self_local_connection_use_grant(uuid,uuid,uuid,text,boolean)', ${literal(schema)}))
|
|
4527
|
+
IS NOT NULL THEN
|
|
4528
|
+
EXECUTE format('REVOKE ALL ON FUNCTION %I.issue_self_local_connection_use_grant(uuid, uuid, uuid, text, boolean) FROM PUBLIC', ${literal(schema)});
|
|
4529
|
+
EXECUTE format('GRANT EXECUTE ON FUNCTION %I.issue_self_local_connection_use_grant(uuid, uuid, uuid, text, boolean) TO %I', ${literal(schema)}, ${literal(role)});
|
|
4530
|
+
END IF;
|
|
4441
4531
|
IF to_regprocedure(format('%I.resolve_connection_use_authority(uuid,uuid,uuid,jsonb)', ${literal(schema)}))
|
|
4442
4532
|
IS NOT NULL THEN
|
|
4443
4533
|
EXECUTE format('REVOKE ALL ON FUNCTION %I.list_self_connection_authorities(uuid) FROM PUBLIC', ${literal(schema)});
|
|
@@ -5016,4 +5106,4 @@ export {
|
|
|
5016
5106
|
runtimeDatabaseReadyCheck,
|
|
5017
5107
|
provisionRoles
|
|
5018
5108
|
};
|
|
5019
|
-
//# sourceMappingURL=chunk-
|
|
5109
|
+
//# sourceMappingURL=chunk-6FIVOJ3V.js.map
|