@davoodmehraban89 / Factor-easy / commits / cad3bfa
Fork 0

سامانه صدور فاکتور و حسابداری

test(phase1a): capture read-only 154 function bodies hash and security metadata without raw source

davoodmehraban89 committed Oct 16, 2026 at 14:07 UTC cad3bfadf7df6dfb0f730419907ed571fe2cb4ba
1 file changed +1854
supabase/tests/fixtures/phase1a_production_function_semantics_20261016.json new
+1854
@@ -0,0 +1,1854 @@
1 +{
2 + "source": "production-readonly-proc-metadata",
3 + "date": "2026-10-16",
4 + "functions": [
5 + {
6 + "key": "private.assert_legacy_request_type_code_uniqueness()",
7 + "exact": "42c26d9f9f131f8bcf520bd76fc4ce13",
8 + "config": [
9 + "search_path=\"\""
10 + ],
11 + "return": "void",
12 + "secdef": false,
13 + "compact": "55507907b38de99fa817a081dbfeba57",
14 + "volatile": "v",
15 + "arguments": ""
16 + },
17 + {
18 + "key": "private.can_access_office_storage(p_name text, p_capability text)",
19 + "exact": "28ebb761f58f45d3ab517782113fe854",
20 + "config": [
21 + "search_path=\"\""
22 + ],
23 + "return": "boolean",
24 + "secdef": true,
25 + "compact": "73aebb8d67d6a93b0c662b0d53a06387",
26 + "volatile": "s",
27 + "arguments": "p_name text, p_capability text"
28 + },
29 + {
30 + "key": "private.can_access_record(p_organization_id uuid, p_collection text, p_owner_id uuid, p_data jsonb, p_capability text)",
31 + "exact": "b03c9c707c9ef24dba0261b75de225d3",
32 + "config": [
33 + "search_path=\"\""
34 + ],
35 + "return": "boolean",
36 + "secdef": true,
37 + "compact": "c1402da5e67e0cdc4b5005cf04ab4961",
38 + "volatile": "s",
39 + "arguments": "p_organization_id uuid, p_collection text, p_owner_id uuid, p_data jsonb, p_capability text"
40 + },
41 + {
42 + "key": "private.collection_module(collection_key text)",
43 + "exact": "6324ee8ac8138046ef045abccec16628",
44 + "config": [
45 + "search_path=\"\""
46 + ],
47 + "return": "text",
48 + "secdef": false,
49 + "compact": "b76b846f12e9a83640995b6469a38a4d",
50 + "volatile": "i",
51 + "arguments": "collection_key text"
52 + },
53 + {
54 + "key": "private.current_organization_ids()",
55 + "exact": "091771b3c219053a8858b98c1eb9308e",
56 + "config": [
57 + "search_path=\"\""
58 + ],
59 + "return": "SETOF uuid",
60 + "secdef": true,
61 + "compact": "e872ee92609d05e34af62440f5272f89",
62 + "volatile": "s",
63 + "arguments": ""
64 + },
65 + {
66 + "key": "private.default_organization_id()",
67 + "exact": "d9d978d2773eb0b126c4c0739ed9bf32",
68 + "config": [
69 + "search_path=\"\""
70 + ],
71 + "return": "uuid",
72 + "secdef": true,
73 + "compact": "4c2ea7d7f127b89fbb924ceff8e5c37e",
74 + "volatile": "s",
75 + "arguments": ""
76 + },
77 + {
78 + "key": "private.enforce_invitation_role_tenant_integrity()",
79 + "exact": "e434b428bf1d3f705965749a8c03f762",
80 + "config": [
81 + "search_path=\"\""
82 + ],
83 + "return": "trigger",
84 + "secdef": true,
85 + "compact": "0c88d5bea923d0dcb244698c95448679",
86 + "volatile": "v",
87 + "arguments": ""
88 + },
89 + {
90 + "key": "private.enforce_organization_member_seat()",
91 + "exact": "799ae974db64a16d15d2706dcaef7f1a",
92 + "config": [
93 + "search_path=\"\""
94 + ],
95 + "return": "trigger",
96 + "secdef": true,
97 + "compact": "4312eed1824f3987636f8eb079ff061f",
98 + "volatile": "v",
99 + "arguments": ""
100 + },
101 + {
102 + "key": "private.enforce_organization_role_tenant_integrity()",
103 + "exact": "12f954634f2cad611fdd72e4f88c6dbd",
104 + "config": [
105 + "search_path=\"\""
106 + ],
107 + "return": "trigger",
108 + "secdef": true,
109 + "compact": "603e97e5319091596de3795a04997415",
110 + "volatile": "v",
111 + "arguments": ""
112 + },
113 + {
114 + "key": "private.enforce_organization_unit_tree()",
115 + "exact": "dadc24dd46d327e248b975ed98705ced",
116 + "config": [
117 + "search_path=\"\""
118 + ],
119 + "return": "trigger",
120 + "secdef": true,
121 + "compact": "0802bbbeef2a2e73b9850f8c46599e7e",
122 + "volatile": "v",
123 + "arguments": ""
124 + },
125 + {
126 + "key": "private.enqueue_request_outbox(p_request_instance_id uuid, p_workflow_schema jsonb, p_revision bigint)",
127 + "exact": "2fc338cbd7be1ec25837c2adad2af147",
128 + "config": [
129 + "search_path=\"\""
130 + ],
131 + "return": "integer",
132 + "secdef": true,
133 + "compact": "fa9751db7d547e1a1dcc9c17d3bd34b8",
134 + "volatile": "v",
135 + "arguments": "p_request_instance_id uuid, p_workflow_schema jsonb, p_revision bigint"
136 + },
137 + {
138 + "key": "private.evaluate_request_condition(p_condition jsonb, p_values jsonb)",
139 + "exact": "d961ec7f5642652b94771842645f7b84",
140 + "config": [
141 + "search_path=\"\""
142 + ],
143 + "return": "boolean",
144 + "secdef": false,
145 + "compact": "97f1678c71c4f32e2ad90df9d141d2e0",
146 + "volatile": "i",
147 + "arguments": "p_condition jsonb, p_values jsonb"
148 + },
149 + {
150 + "key": "private.has_any_configure(p_organization_id uuid)",
151 + "exact": "b4acbc4bf881d1bb2f2d2ee7fe079792",
152 + "config": [
153 + "search_path=\"\""
154 + ],
155 + "return": "boolean",
156 + "secdef": true,
157 + "compact": "e3a885e698dbc5f7e07f279bbdb84c14",
158 + "volatile": "s",
159 + "arguments": "p_organization_id uuid"
160 + },
161 + {
162 + "key": "private.has_collection_entitlement(collection_key text)",
163 + "exact": "2f6d18e5520b15a4cd032e75370e1266",
164 + "config": [
165 + "search_path=\"\""
166 + ],
167 + "return": "boolean",
168 + "secdef": false,
169 + "compact": "e36b86cad98d100426181494d5eb8638",
170 + "volatile": "s",
171 + "arguments": "collection_key text"
172 + },
173 + {
174 + "key": "private.has_module_entitlement(module_key text)",
175 + "exact": "a8fe925ea81f209e8431891c3985c76e",
176 + "config": [
177 + "search_path=\"\""
178 + ],
179 + "return": "boolean",
180 + "secdef": true,
181 + "compact": "368ebbda1fd7e3376923d1a317eb09a4",
182 + "volatile": "s",
183 + "arguments": "module_key text"
184 + },
185 + {
186 + "key": "private.has_org_capability(p_organization_id uuid, p_module_key text, p_capability text)",
187 + "exact": "daccf0b86852e0a2ea6822e6e73c4807",
188 + "config": [
189 + "search_path=\"\""
190 + ],
191 + "return": "boolean",
192 + "secdef": true,
193 + "compact": "b5710e0e5565c592f310f8c34294f496",
194 + "volatile": "s",
195 + "arguments": "p_organization_id uuid, p_module_key text, p_capability text"
196 + },
197 + {
198 + "key": "private.invitation_token_hash(p_token text)",
199 + "exact": "28703e7acca5bd7c22f89fcbad51ee49",
200 + "config": [
201 + "search_path=\"\""
202 + ],
203 + "return": "text",
204 + "secdef": true,
205 + "compact": "cbabf02716ffdd06c7f8a9326d175c67",
206 + "volatile": "i",
207 + "arguments": "p_token text"
208 + },
209 + {
210 + "key": "private.is_org_owner(p_organization_id uuid)",
211 + "exact": "dc749ffc77670c8507c8a09f7df4fbbd",
212 + "config": [
213 + "search_path=\"\""
214 + ],
215 + "return": "boolean",
216 + "secdef": true,
217 + "compact": "aa7c55ee1103cb2800aa0b70c844fb62",
218 + "volatile": "s",
219 + "arguments": "p_organization_id uuid"
220 + },
221 + {
222 + "key": "private.is_valid_finora_module(module_key text)",
223 + "exact": "996d6adf104083e95ff6eb38f2d44512",
224 + "config": [
225 + "search_path=\"\""
226 + ],
227 + "return": "boolean",
228 + "secdef": false,
229 + "compact": "8dfb730a83b329627f3a17e209830831",
230 + "volatile": "i",
231 + "arguments": "module_key text"
232 + },
233 + {
234 + "key": "private.member_can_access_record(p_member_id uuid, p_module_key text, p_owner_id uuid, p_data jsonb, p_capability text)",
235 + "exact": "2703e6487e23c964ff80f7489ffb52f0",
236 + "config": [
237 + "search_path=\"\""
238 + ],
239 + "return": "boolean",
240 + "secdef": true,
241 + "compact": "a0953873d04b893e9ab32a79028ce426",
242 + "volatile": "s",
243 + "arguments": "p_member_id uuid, p_module_key text, p_owner_id uuid, p_data jsonb, p_capability text"
244 + },
245 + {
246 + "key": "private.office_act_on_approval_impl(p_organization_id uuid, p_approval_id text, p_action text, p_note text)",
247 + "exact": "03605e019d2a109447d26acaea649d69",
248 + "config": [
249 + "search_path=\"\""
250 + ],
251 + "return": "text",
252 + "secdef": true,
253 + "compact": "13467e06dacf0199cf1ab18f101ce8fe",
254 + "volatile": "v",
255 + "arguments": "p_organization_id uuid, p_approval_id text, p_action text, p_note text"
256 + },
257 + {
258 + "key": "private.office_approval_work_queue_impl(p_organization_id uuid)",
259 + "exact": "c4359e81c8d0428547160e1861827747",
260 + "config": [
261 + "search_path=\"\""
262 + ],
263 + "return": "TABLE(approval_id text, correspondence_id text, register_number text, subject text, requested_by_user_id uuid, approver_user_id uuid, note text, due_at timestamp with time zone, requested_at timestamp with time zone, state text, overdue boolean, content_changed boolean, decision_note text, decision_at timestamp with time zone, decision_aal text)",
264 + "secdef": true,
265 + "compact": "b342019431ac770e2298668d0c1a98a6",
266 + "volatile": "s",
267 + "arguments": "p_organization_id uuid"
268 + },
269 + {
270 + "key": "private.office_archive_search_v2_impl(p_organization_id uuid, p_query text, p_folder text, p_classification_code text, p_related_to text, p_limit integer)",
271 + "exact": "86e60a6b01e6c94747ffbd36a2197516",
272 + "config": [
273 + "search_path=\"\""
274 + ],
275 + "return": "TABLE(correspondence_id text, register_number text, subject text, counterparty text, status text, folder text, classification_code text, tags text[], related_count bigint, match_source text, ocr_evidence_id text, ocr_provider text, ocr_language text, ocr_confidence numeric, ocr_corrected boolean)",
276 + "secdef": true,
277 + "compact": "e3de5583168741ce625c887b74b96c6a",
278 + "volatile": "s",
279 + "arguments": "p_organization_id uuid, p_query text, p_folder text, p_classification_code text, p_related_to text, p_limit integer"
280 + },
281 + {
282 + "key": "private.office_audit_immutable()",
283 + "exact": "c93c72f49c21bcf854535b53231e9f5b",
284 + "config": [
285 + "search_path=\"\""
286 + ],
287 + "return": "trigger",
288 + "secdef": false,
289 + "compact": "90bcd93b2f05badf804ae03c438a8923",
290 + "volatile": "v",
291 + "arguments": ""
292 + },
293 + {
294 + "key": "private.office_correct_ocr_evidence_impl(p_organization_id uuid, p_ocr_evidence_id text, p_corrected_text text, p_note text)",
295 + "exact": "c97870c1b734fa446ef2e28e866076f7",
296 + "config": [
297 + "search_path=\"\""
298 + ],
299 + "return": "text",
300 + "secdef": true,
301 + "compact": "ccf7d507324d6e8019d13039e2dc2a56",
302 + "volatile": "v",
303 + "arguments": "p_organization_id uuid, p_ocr_evidence_id text, p_corrected_text text, p_note text"
304 + },
305 + {
306 + "key": "private.office_correspondence_audit_capture()",
307 + "exact": "0f3faad4b9c6034d5694d35386601297",
308 + "config": [
309 + "search_path=\"\""
310 + ],
311 + "return": "trigger",
312 + "secdef": true,
313 + "compact": "1ebade153c70f2410f8e29cbe9d6b824",
314 + "volatile": "v",
315 + "arguments": ""
316 + },
317 + {
318 + "key": "private.office_correspondence_content_digest(p_data jsonb)",
319 + "exact": "9f8f4a403edbdd8d4b7bc9c474904d7e",
320 + "config": [
321 + "search_path=\"\""
322 + ],
323 + "return": "text",
324 + "secdef": false,
325 + "compact": "17bf0f3be4030375703543a8ad2ec4f2",
326 + "volatile": "i",
327 + "arguments": "p_data jsonb"
328 + },
329 + {
330 + "key": "private.office_correspondence_digest(p_data jsonb)",
331 + "exact": "9f8f4a403edbdd8d4b7bc9c474904d7e",
332 + "config": [
333 + "search_path=\"\""
334 + ],
335 + "return": "text",
336 + "secdef": false,
337 + "compact": "17bf0f3be4030375703543a8ad2ec4f2",
338 + "volatile": "i",
339 + "arguments": "p_data jsonb"
340 + },
341 + {
342 + "key": "private.office_create_template_version_impl(p_organization_id uuid, p_template_key text, p_name text, p_subject_template text, p_body_template text, p_active boolean)",
343 + "exact": "62949beaa449181599f2196b0c84b08b",
344 + "config": [
345 + "search_path=\"\""
346 + ],
347 + "return": "integer",
348 + "secdef": true,
349 + "compact": "c44d1d87b2df87cd200bd76103aa7f89",
350 + "volatile": "v",
351 + "arguments": "p_organization_id uuid, p_template_key text, p_name text, p_subject_template text, p_body_template text, p_active boolean"
352 + },
353 + {
354 + "key": "private.office_emit_sla_event_impl(p_organization_id uuid, p_work_type text, p_work_id text, p_event text)",
355 + "exact": "5d9e90ca9f18539e228f1e055511860e",
356 + "config": [
357 + "search_path=\"\""
358 + ],
359 + "return": "text",
360 + "secdef": true,
361 + "compact": "2f353f3fdb8a4be2de3a30e5908fdd87",
362 + "volatile": "v",
363 + "arguments": "p_organization_id uuid, p_work_type text, p_work_id text, p_event text"
364 + },
365 + {
366 + "key": "private.office_record_ocr_evidence_impl(p_organization_id uuid, p_correspondence_id text, p_source_ref text, p_provider text, p_language text, p_confidence numeric, p_text text)",
367 + "exact": "e97fc4dd606657115c93aededeec65d9",
368 + "config": [
369 + "search_path=\"\""
370 + ],
371 + "return": "text",
372 + "secdef": true,
373 + "compact": "eda5fb215f4a424642d589bade3005ee",
374 + "volatile": "v",
375 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_source_ref text, p_provider text, p_language text, p_confidence numeric, p_text text"
376 + },
377 + {
378 + "key": "private.office_request_approval_impl(p_organization_id uuid, p_correspondence_id text, p_approver_member_id uuid, p_note text, p_due_at timestamp with time zone)",
379 + "exact": "99964f635857b2fb502ee7e0ec5a249f",
380 + "config": [
381 + "search_path=\"\""
382 + ],
383 + "return": "text",
384 + "secdef": true,
385 + "compact": "530e017530bcd24d5ba503531606d8fc",
386 + "volatile": "v",
387 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_approver_member_id uuid, p_note text, p_due_at timestamp with time zone"
388 + },
389 + {
390 + "key": "private.office_sla_work_queue_impl(p_organization_id uuid)",
391 + "exact": "151b44eece1f74175723b7a4fce47ffc",
392 + "config": [
393 + "search_path=\"\""
394 + ],
395 + "return": "TABLE(work_type text, work_id text, correspondence_id text, register_number text, subject text, requester_user_id uuid, target_user_id uuid, due_at timestamp with time zone, work_state text, overdue boolean, overdue_hours integer, last_reminder_at timestamp with time zone, escalated_at timestamp with time zone, can_emit boolean)",
396 + "secdef": true,
397 + "compact": "4579fe7a28b6fc12dc7f94a4e936f677",
398 + "volatile": "s",
399 + "arguments": "p_organization_id uuid"
400 + },
401 + {
402 + "key": "private.office_template_catalog_impl(p_organization_id uuid, p_include_inactive boolean)",
403 + "exact": "39cc0871d984ff48acb8085cf5df390f",
404 + "config": [
405 + "search_path=\"\""
406 + ],
407 + "return": "TABLE(template_key text, version integer, name text, subject_template text, body_template text, active boolean, created_by uuid, created_at timestamp with time zone)",
408 + "secdef": true,
409 + "compact": "80c87a85c1775af2d24f6423cc18b4a7",
410 + "volatile": "s",
411 + "arguments": "p_organization_id uuid, p_include_inactive boolean"
412 + },
413 + {
414 + "key": "private.office_template_version_exists(p_organization_id uuid, p_template_key text, p_version integer)",
415 + "exact": "b78ff37c19602e3c4b0153a26fe5090b",
416 + "config": [
417 + "search_path=\"\""
418 + ],
419 + "return": "boolean",
420 + "secdef": true,
421 + "compact": "11bc358483984f0beb17d20f67b8d36e",
422 + "volatile": "s",
423 + "arguments": "p_organization_id uuid, p_template_key text, p_version integer"
424 + },
425 + {
426 + "key": "private.office_workflow_attach_impl(p_organization_id uuid, p_correspondence_id text, p_policy_key text, p_policy_version integer, p_request_id uuid)",
427 + "exact": "181164325e5a071969c268407d3d61c0",
428 + "config": [
429 + "search_path=\"\""
430 + ],
431 + "return": "jsonb",
432 + "secdef": true,
433 + "compact": "a94101adc324e9454cb1d012cadafa76",
434 + "volatile": "v",
435 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_policy_key text, p_policy_version integer, p_request_id uuid"
436 + },
437 + {
438 + "key": "private.office_workflow_catalog_impl(p_organization_id uuid)",
439 + "exact": "b40140e9839a87fa63553d589bec7560",
440 + "config": [
441 + "search_path=\"\""
442 + ],
443 + "return": "jsonb",
444 + "secdef": true,
445 + "compact": "0794176e961a27c9cc97cf4243865dd6",
446 + "volatile": "s",
447 + "arguments": "p_organization_id uuid"
448 + },
449 + {
450 + "key": "private.office_workflow_event_immutable()",
451 + "exact": "0143b163c3c1bff35cbc185e8c703ed5",
452 + "config": [
453 + "search_path=\"\""
454 + ],
455 + "return": "trigger",
456 + "secdef": true,
457 + "compact": "e164f26f61a54d8e1f59a5bd27a72152",
458 + "volatile": "v",
459 + "arguments": ""
460 + },
461 + {
462 + "key": "private.office_workflow_instance_guard()",
463 + "exact": "b346e092e5a43cc7d62b6934dc9fd8bd",
464 + "config": [
465 + "search_path=\"\""
466 + ],
467 + "return": "trigger",
468 + "secdef": true,
469 + "compact": "25bc27696211400aa5f9573bad13055e",
470 + "volatile": "v",
471 + "arguments": ""
472 + },
473 + {
474 + "key": "private.office_workflow_policy_immutable()",
475 + "exact": "4eb8bc3e9fc1b158ed1a728920aaad83",
476 + "config": [
477 + "search_path=\"\""
478 + ],
479 + "return": "trigger",
480 + "secdef": true,
481 + "compact": "11f3585eae8a53b3aea9981581d5d992",
482 + "volatile": "v",
483 + "arguments": ""
484 + },
485 + {
486 + "key": "private.office_workflow_publish_impl(p_organization_id uuid, p_policy_key text, p_title text, p_definition jsonb)",
487 + "exact": "095496c69c4b7dc3d442bddc8a6d94d4",
488 + "config": [
489 + "search_path=\"\""
490 + ],
491 + "return": "integer",
492 + "secdef": true,
493 + "compact": "0cbbb03ef2fe30706d755d1fd4d4f0d9",
494 + "volatile": "v",
495 + "arguments": "p_organization_id uuid, p_policy_key text, p_title text, p_definition jsonb"
496 + },
497 + {
498 + "key": "private.office_workflow_read_impl(p_organization_id uuid, p_correspondence_id text, p_after_revision bigint, p_limit integer)",
499 + "exact": "cb8d25c3481c738952979c9b9cef347a",
500 + "config": [
501 + "search_path=\"\""
502 + ],
503 + "return": "jsonb",
504 + "secdef": true,
505 + "compact": "98c296db4cf3b81bbd96f7571941eb8a",
506 + "volatile": "s",
507 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_after_revision bigint, p_limit integer"
508 + },
509 + {
510 + "key": "private.office_workflow_transition_impl(p_organization_id uuid, p_instance_id uuid, p_edge_id text, p_expected_revision bigint, p_request_id uuid, p_note text)",
511 + "exact": "5d07baa66158ecdc11140541577d0882",
512 + "config": [
513 + "search_path=\"\""
514 + ],
515 + "return": "jsonb",
516 + "secdef": true,
517 + "compact": "a5d4ec34374f574b308a287ac1911e80",
518 + "volatile": "v",
519 + "arguments": "p_organization_id uuid, p_instance_id uuid, p_edge_id text, p_expected_revision bigint, p_request_id uuid, p_note text"
520 + },
521 + {
522 + "key": "private.office_workflow_validate_definition(p_definition jsonb)",
523 + "exact": "8c68631a67cdeafa572cf09237dc7ae4",
524 + "config": [
525 + "search_path=\"\""
526 + ],
527 + "return": "void",
528 + "secdef": true,
529 + "compact": "1706839ac6d39180b8811130271a7548",
530 + "volatile": "i",
531 + "arguments": "p_definition jsonb"
532 + },
533 + {
534 + "key": "private.organization_active_member_count(p_organization_id uuid)",
535 + "exact": "6d1cb9ca48efa759b6c9c1dfeadd115e",
536 + "config": [
537 + "search_path=\"\""
538 + ],
539 + "return": "integer",
540 + "secdef": true,
541 + "compact": "59f71504fbf4c4ba4a6f524d3d0830c2",
542 + "volatile": "s",
543 + "arguments": "p_organization_id uuid"
544 + },
545 + {
546 + "key": "private.organization_audit_capture()",
547 + "exact": "b83dbbd035d81d47096ce1b0544ae985",
548 + "config": [
549 + "search_path=\"\""
550 + ],
551 + "return": "trigger",
552 + "secdef": true,
553 + "compact": "631360d011d3e08af6a8952ef4636232",
554 + "volatile": "v",
555 + "arguments": ""
556 + },
557 + {
558 + "key": "private.organization_audit_immutable()",
559 + "exact": "1a5c3995e5bb57d0bd588f95923c62a3",
560 + "config": [
561 + "search_path=\"\""
562 + ],
563 + "return": "trigger",
564 + "secdef": false,
565 + "compact": "0d5a3b8067b414cec4589ce2cee14c26",
566 + "volatile": "v",
567 + "arguments": ""
568 + },
569 + {
570 + "key": "private.organization_has_module_entitlement(p_organization_id uuid, p_module_key text, p_require_active boolean)",
571 + "exact": "e43d9cb805204f7ac7854cd3f3beebb5",
572 + "config": [
573 + "search_path=\"\""
574 + ],
575 + "return": "boolean",
576 + "secdef": true,
577 + "compact": "8bcfa268336cddacd6028059e7e6c0f5",
578 + "volatile": "s",
579 + "arguments": "p_organization_id uuid, p_module_key text, p_require_active boolean DEFAULT false"
580 + },
581 + {
582 + "key": "private.organization_has_seat(p_organization_id uuid, p_excluding_member uuid)",
583 + "exact": "d98a228a7d7834224b8943dd509384a6",
584 + "config": [
585 + "search_path=\"\""
586 + ],
587 + "return": "boolean",
588 + "secdef": true,
589 + "compact": "9ba929e78a859f09f5d744434268ba71",
590 + "volatile": "s",
591 + "arguments": "p_organization_id uuid, p_excluding_member uuid DEFAULT NULL::uuid"
592 + },
593 + {
594 + "key": "private.organization_invitation_audit_capture()",
595 + "exact": "e7dcb641c263476ae4e8930e9c6ea681",
596 + "config": [
597 + "search_path=\"\""
598 + ],
599 + "return": "trigger",
600 + "secdef": true,
601 + "compact": "1f4ac5e5ae90528c2995352394133ec0",
602 + "volatile": "v",
603 + "arguments": ""
604 + },
605 + {
606 + "key": "private.organization_role_audit_capture()",
607 + "exact": "f9b00bbbd0dfe87a8261c01d6fc11290",
608 + "config": [
609 + "search_path=\"\""
610 + ],
611 + "return": "trigger",
612 + "secdef": true,
613 + "compact": "de5a828864f4295dbb79b26891a64a00",
614 + "volatile": "v",
615 + "arguments": ""
616 + },
617 + {
618 + "key": "private.organization_unit_audit_capture()",
619 + "exact": "0758940a759184de7da6f011f2dc9071",
620 + "config": [
621 + "search_path=\"\""
622 + ],
623 + "return": "trigger",
624 + "secdef": true,
625 + "compact": "b1dacbe679e547fca96f1f22c5b6ab8f",
626 + "volatile": "v",
627 + "arguments": ""
628 + },
629 + {
630 + "key": "private.profile_id_by_email(p_email text)",
631 + "exact": "04bdeef632a89f4ac93433ec4a20bd79",
632 + "config": [
633 + "search_path=\"\""
634 + ],
635 + "return": "uuid",
636 + "secdef": true,
637 + "compact": "945b03285daa7b943fe23ebac7cb6752",
638 + "volatile": "s",
639 + "arguments": "p_email text"
640 + },
641 + {
642 + "key": "private.protect_office_evidence_insert()",
643 + "exact": "49fcae82da36af6a2f69ab44f965f8b7",
644 + "config": [
645 + "search_path=\"\""
646 + ],
647 + "return": "trigger",
648 + "secdef": false,
649 + "compact": "9f1f31695b40a97bc13514f535472c0b",
650 + "volatile": "v",
651 + "arguments": ""
652 + },
653 + {
654 + "key": "private.protect_registered_correspondence_history()",
655 + "exact": "dc30c74aec0c70c9acb09e210762a162",
656 + "config": [
657 + "search_path=\"\""
658 + ],
659 + "return": "trigger",
660 + "secdef": false,
661 + "compact": "955fa1436bae4d5809eedc4224c3d595",
662 + "volatile": "v",
663 + "arguments": ""
664 + },
665 + {
666 + "key": "private.protect_system_organization_role()",
667 + "exact": "01f46d0511f8810f1a79da81f4347be1",
668 + "config": [
669 + "search_path=\"\""
670 + ],
671 + "return": "trigger",
672 + "secdef": false,
673 + "compact": "c29e0f1146ba5414d9e605a0d89b749c",
674 + "volatile": "v",
675 + "arguments": ""
676 + },
677 + {
678 + "key": "private.record_confidentiality_allowed(p_organization_id uuid, p_module_key text, p_data jsonb)",
679 + "exact": "c755323e4222b469fe29601240da35c4",
680 + "config": [
681 + "search_path=\"\""
682 + ],
683 + "return": "boolean",
684 + "secdef": true,
685 + "compact": "77c679638f69c64adce735c72725acbc",
686 + "volatile": "s",
687 + "arguments": "p_organization_id uuid, p_module_key text, p_data jsonb"
688 + },
689 + {
690 + "key": "private.record_in_member_scope(p_organization_id uuid, p_module_key text, p_owner_id uuid, p_data jsonb, p_capability text)",
691 + "exact": "03bb517652b8d0ac2d710ee93c2487b3",
692 + "config": [
693 + "search_path=\"\""
694 + ],
695 + "return": "boolean",
696 + "secdef": true,
697 + "compact": "3287026da2d7d32edaace7a79bf040bf",
698 + "volatile": "s",
699 + "arguments": "p_organization_id uuid, p_module_key text, p_owner_id uuid, p_data jsonb, p_capability text"
700 + },
701 + {
702 + "key": "private.referral_immutable()",
703 + "exact": "acb3eb6d73b8672369dcc64e76518c91",
704 + "config": [
705 + "search_path=\"\""
706 + ],
707 + "return": "trigger",
708 + "secdef": false,
709 + "compact": "7828eaa7057e6db27e0e551cefd357c6",
710 + "volatile": "v",
711 + "arguments": ""
712 + },
713 + {
714 + "key": "private.request_claim_outbox(p_worker_id text, p_limit integer)",
715 + "exact": "de511e08335b95af17da0673d16ae6c2",
716 + "config": [
717 + "search_path=\"\""
718 + ],
719 + "return": "TABLE(outbox_id uuid, organization_id uuid, request_instance_id uuid, target_module text, action_key text, payload jsonb, destination_command_key text, claim_token uuid, attempts integer, server_clock timestamp with time zone)",
720 + "secdef": true,
721 + "compact": "78d14640e122bb312e0c4e748ac61d91",
722 + "volatile": "v",
723 + "arguments": "p_worker_id text, p_limit integer DEFAULT 25"
724 + },
725 + {
726 + "key": "private.request_complete_outbox(p_outbox_id uuid, p_claim_token uuid, p_destination_receipt text)",
727 + "exact": "1ba3ae8687bf250f59a2ee78873fa652",
728 + "config": [
729 + "search_path=\"\""
730 + ],
731 + "return": "boolean",
732 + "secdef": true,
733 + "compact": "4a9224ea1a2f458fc7b6be3548fa4e36",
734 + "volatile": "v",
735 + "arguments": "p_outbox_id uuid, p_claim_token uuid, p_destination_receipt text DEFAULT NULL::text"
736 + },
737 + {
738 + "key": "private.request_create_delegation(p_organization_id uuid, p_to_user_id uuid, p_capability text, p_valid_from timestamp with time zone, p_valid_to timestamp with time zone, p_reason text)",
739 + "exact": "39ac0ec042723c7882c14e0768b1944a",
740 + "config": [
741 + "search_path=\"\""
742 + ],
743 + "return": "uuid",
744 + "secdef": true,
745 + "compact": "8729c116f89eea7b83285e919213cabd",
746 + "volatile": "v",
747 + "arguments": "p_organization_id uuid, p_to_user_id uuid, p_capability text, p_valid_from timestamp with time zone, p_valid_to timestamp with time zone, p_reason text DEFAULT NULL::text"
748 + },
749 + {
750 + "key": "private.request_create_delegation(p_organization_id uuid, p_to_user_id uuid, p_capability text, p_valid_from timestamp with time zone, p_valid_to timestamp with time zone, p_reason text, p_idempotency_key text)",
751 + "exact": "958289da96850d9b01ef2502cfacc735",
752 + "config": [
753 + "search_path=\"\""
754 + ],
755 + "return": "uuid",
756 + "secdef": true,
757 + "compact": "c217b916c9142f90ccb0347bf47dbad6",
758 + "volatile": "v",
759 + "arguments": "p_organization_id uuid, p_to_user_id uuid, p_capability text, p_valid_from timestamp with time zone, p_valid_to timestamp with time zone, p_reason text, p_idempotency_key text"
760 + },
761 + {
762 + "key": "private.request_create_instance(p_organization_id uuid, p_request_type_version_id uuid, p_values jsonb, p_idempotency_key text)",
763 + "exact": "8e9df8914eb59641aa437db8243e3364",
764 + "config": [
765 + "search_path=\"\""
766 + ],
767 + "return": "uuid",
768 + "secdef": true,
769 + "compact": "b812a63e4c61c5900b853fe3a20444aa",
770 + "volatile": "v",
771 + "arguments": "p_organization_id uuid, p_request_type_version_id uuid, p_values jsonb, p_idempotency_key text"
772 + },
773 + {
774 + "key": "private.request_escalate_overdue(p_organization_id uuid)",
775 + "exact": "73c12cbf7821b20831c808d0eb47df06",
776 + "config": [
777 + "search_path=\"\""
778 + ],
779 + "return": "integer",
780 + "secdef": true,
781 + "compact": "548218087e4e18d7ce0a9a213b7330a3",
782 + "volatile": "v",
783 + "arguments": "p_organization_id uuid"
784 + },
785 + {
786 + "key": "private.request_fail_outbox(p_outbox_id uuid, p_claim_token uuid, p_error text)",
787 + "exact": "678485a89e4313b5984e80231194f9a7",
788 + "config": [
789 + "search_path=\"\""
790 + ],
791 + "return": "text",
792 + "secdef": true,
793 + "compact": "a350d7909e0cee98106b15dd67500387",
794 + "volatile": "v",
795 + "arguments": "p_outbox_id uuid, p_claim_token uuid, p_error text"
796 + },
797 + {
798 + "key": "private.request_list_delegations(p_organization_id uuid)",
799 + "exact": "0d2746503add3bcce23c85ac5f372968",
800 + "config": [
801 + "search_path=\"\""
802 + ],
803 + "return": "jsonb",
804 + "secdef": true,
805 + "compact": "8f9a38b8ede95d3b431588fea51c039e",
806 + "volatile": "v",
807 + "arguments": "p_organization_id uuid"
808 + },
809 + {
810 + "key": "private.request_outbox_status(p_request_instance_id uuid)",
811 + "exact": "2007c2bd0d046c104960a53dbb1f594a",
812 + "config": [
813 + "search_path=\"\""
814 + ],
815 + "return": "jsonb",
816 + "secdef": true,
817 + "compact": "c96fac319bc62c115d9004e520e6cc48",
818 + "volatile": "v",
819 + "arguments": "p_request_instance_id uuid"
820 + },
821 + {
822 + "key": "private.request_publish_type_version(p_organization_id uuid, p_code text, p_title text, p_category text, p_form_schema jsonb, p_workflow_schema jsonb, p_expected_definition_revision bigint)",
823 + "exact": "1e4f4d9f59373484a4ba1da1da2407aa",
824 + "config": [
825 + "search_path=\"\""
826 + ],
827 + "return": "TABLE(request_type_id uuid, request_type_version_id uuid, workflow_version_id uuid, version_no integer, definition_revision bigint)",
828 + "secdef": true,
829 + "compact": "3ed38fba4623b7a87252699e8afebd45",
830 + "volatile": "v",
831 + "arguments": "p_organization_id uuid, p_code text, p_title text, p_category text DEFAULT NULL::text, p_form_schema jsonb DEFAULT '{}'::jsonb, p_workflow_schema jsonb DEFAULT '{}'::jsonb, p_expected_definition_revision bigint DEFAULT NULL::bigint"
832 + },
833 + {
834 + "key": "private.request_replay_dead_letter(p_organization_id uuid, p_outbox_id uuid, p_idempotency_key text, p_reason text)",
835 + "exact": "c3be1e539498d31d776a7b20ac714060",
836 + "config": [
837 + "search_path=\"\""
838 + ],
839 + "return": "boolean",
840 + "secdef": true,
841 + "compact": "5b10ef8e07655626e52a78b583adf3e8",
842 + "volatile": "v",
843 + "arguments": "p_organization_id uuid, p_outbox_id uuid, p_idempotency_key text, p_reason text"
844 + },
845 + {
846 + "key": "private.request_revoke_delegation(p_organization_id uuid, p_delegation_id uuid)",
847 + "exact": "b6b7ff1f2e520842450bedb14290bac1",
848 + "config": [
849 + "search_path=\"\""
850 + ],
851 + "return": "boolean",
852 + "secdef": true,
853 + "compact": "b8a62bb8aac5dc9e3535f9e03a5eaeda",
854 + "volatile": "v",
855 + "arguments": "p_organization_id uuid, p_delegation_id uuid"
856 + },
857 + {
858 + "key": "private.request_run_sla_scheduler(p_organization_id uuid, p_run_key text, p_schedule_slot timestamp with time zone, p_limit integer)",
859 + "exact": "bcf924aca49fdd030dbfa3df819d8ef2",
860 + "config": [
861 + "search_path=\"\""
862 + ],
863 + "return": "TABLE(run_id uuid, processed_count integer, server_clock timestamp with time zone, replayed boolean)",
864 + "secdef": true,
865 + "compact": "7511c05924dea9adae0109abcdc1e69d",
866 + "volatile": "v",
867 + "arguments": "p_organization_id uuid, p_run_key text, p_schedule_slot timestamp with time zone, p_limit integer DEFAULT 100"
868 + },
869 + {
870 + "key": "private.request_step_decide(p_request_instance_id uuid, p_decision text, p_expected_revision bigint, p_idempotency_key text, p_note text)",
871 + "exact": "4aea9e9268fcda084360ac628e44745a",
872 + "config": [
873 + "search_path=\"\""
874 + ],
875 + "return": "TABLE(request_instance_id uuid, status text, revision bigint, step_key text, step_state text, approvals_received integer, approvals_required integer)",
876 + "secdef": true,
877 + "compact": "8d362274e50c407730e70ce966809930",
878 + "volatile": "v",
879 + "arguments": "p_request_instance_id uuid, p_decision text, p_expected_revision bigint, p_idempotency_key text, p_note text DEFAULT NULL::text"
880 + },
881 + {
882 + "key": "private.request_transition_instance(p_request_instance_id uuid, p_action text, p_expected_revision bigint, p_idempotency_key text, p_note text)",
883 + "exact": "1ba51670dbb51f05c2c85110f8034df7",
884 + "config": [
885 + "search_path=\"\""
886 + ],
887 + "return": "TABLE(request_instance_id uuid, status text, revision bigint)",
888 + "secdef": true,
889 + "compact": "50d5978309eab729db9f451b83102d63",
890 + "volatile": "v",
891 + "arguments": "p_request_instance_id uuid, p_action text, p_expected_revision bigint, p_idempotency_key text, p_note text DEFAULT NULL::text"
892 + },
893 + {
894 + "key": "private.request_valid_delegator(p_organization_id uuid, p_to_user_id uuid, p_capability text, p_at timestamp with time zone)",
895 + "exact": "c2e593c4133cf9bf3dbd4048b3856258",
896 + "config": [
897 + "search_path=\"\""
898 + ],
899 + "return": "uuid",
900 + "secdef": true,
901 + "compact": "80f4a07e23ef6eba2357518cbe32e3df",
902 + "volatile": "s",
903 + "arguments": "p_organization_id uuid, p_to_user_id uuid, p_capability text, p_at timestamp with time zone DEFAULT now()"
904 + },
905 + {
906 + "key": "private.request_work_queue(p_organization_id uuid)",
907 + "exact": "a25f1e46289e0266f07e0f424abbd0be",
908 + "config": [
909 + "search_path=\"\""
910 + ],
911 + "return": "jsonb",
912 + "secdef": true,
913 + "compact": "9a19a79c6bb180bf28580f0e1d0aa573",
914 + "volatile": "v",
915 + "arguments": "p_organization_id uuid"
916 + },
917 + {
918 + "key": "private.request_workflow_timeline(p_request_instance_id uuid)",
919 + "exact": "d7afb37412bd8905f889009dea9620d6",
920 + "config": [
921 + "search_path=\"\""
922 + ],
923 + "return": "jsonb",
924 + "secdef": true,
925 + "compact": "a52ec80e49b02c440f3d90f76fd697ce",
926 + "volatile": "v",
927 + "arguments": "p_request_instance_id uuid"
928 + },
929 + {
930 + "key": "private.role_permission_allowed(p_organization_id uuid, p_module_key text)",
931 + "exact": "770cffcf0facfb6051143af498285a65",
932 + "config": [
933 + "search_path=\"\""
934 + ],
935 + "return": "boolean",
936 + "secdef": true,
937 + "compact": "59133189d00c1a74407397a460fd7cae",
938 + "volatile": "s",
939 + "arguments": "p_organization_id uuid, p_module_key text"
940 + },
941 + {
942 + "key": "private.user_has_org_capability(p_organization_id uuid, p_user_id uuid, p_module_key text, p_capability text)",
943 + "exact": "872f678fbb27462d5ff0727f31c0e9d6",
944 + "config": [
945 + "search_path=\"\""
946 + ],
947 + "return": "boolean",
948 + "secdef": true,
949 + "compact": "cb3b9374a0ec1154617fc02195269916",
950 + "volatile": "s",
951 + "arguments": "p_organization_id uuid, p_user_id uuid, p_module_key text, p_capability text"
952 + },
953 + {
954 + "key": "private.validate_request_condition(p_condition jsonb)",
955 + "exact": "9e53f5389925b1a606a7d4956848e3c4",
956 + "config": [
957 + "search_path=\"\""
958 + ],
959 + "return": "void",
960 + "secdef": false,
961 + "compact": "002e3c4a6e3b78a722ea35394519527e",
962 + "volatile": "v",
963 + "arguments": "p_condition jsonb"
964 + },
965 + {
966 + "key": "private.validate_request_form_schema(p_schema jsonb)",
967 + "exact": "ea954d86dddbbe6441e6f6b3cfc37a13",
968 + "config": [
969 + "search_path=\"\""
970 + ],
971 + "return": "void",
972 + "secdef": false,
973 + "compact": "de629da2762141afa0fe534cc1f6d11d",
974 + "volatile": "v",
975 + "arguments": "p_schema jsonb"
976 + },
977 + {
978 + "key": "private.validate_request_values(p_schema jsonb, p_values jsonb)",
979 + "exact": "6c004f60adbab3921d4fa3fa5204c83f",
980 + "config": [
981 + "search_path=\"\""
982 + ],
983 + "return": "void",
984 + "secdef": false,
985 + "compact": "d666355e5cf15d55a8ca84ea96f03dec",
986 + "volatile": "v",
987 + "arguments": "p_schema jsonb, p_values jsonb"
988 + },
989 + {
990 + "key": "private.validate_request_workflow_schema(p_schema jsonb)",
991 + "exact": "7594df0fa714b486a7d82e731983c9d7",
992 + "config": [
993 + "search_path=\"\""
994 + ],
995 + "return": "void",
996 + "secdef": false,
997 + "compact": "f9d65dc080e5c7d2550898000c237a10",
998 + "volatile": "v",
999 + "arguments": "p_schema jsonb"
1000 + },
1001 + {
1002 + "key": "private.validate_request_workflow_schema_bound(p_schema jsonb, p_form_schema jsonb)",
1003 + "exact": "0e6b66285f4f315257e0786f63f5ccab",
1004 + "config": [
1005 + "search_path=\"\""
1006 + ],
1007 + "return": "void",
1008 + "secdef": false,
1009 + "compact": "c7becf8b23fe303600312df29c030683",
1010 + "volatile": "v",
1011 + "arguments": "p_schema jsonb, p_form_schema jsonb"
1012 + },
1013 + {
1014 + "key": "public.admin_cancel_license(target uuid)",
1015 + "exact": "0f276242d54311b1f80e4b70aabdfd5d",
1016 + "config": [
1017 + "search_path=\"\""
1018 + ],
1019 + "return": "void",
1020 + "secdef": true,
1021 + "compact": "9ff069ac27585d69bb9a56e0e1d99cc9",
1022 + "volatile": "v",
1023 + "arguments": "target uuid"
1024 + },
1025 + {
1026 + "key": "public.admin_extend_license(target uuid, days integer)",
1027 + "exact": "d3378e025b72322d9805885a2cec0365",
1028 + "config": [
1029 + "search_path=\"\""
1030 + ],
1031 + "return": "void",
1032 + "secdef": true,
1033 + "compact": "c46577638b82e5596eaa4c5c3a125e76",
1034 + "volatile": "v",
1035 + "arguments": "target uuid, days integer"
1036 + },
1037 + {
1038 + "key": "public.admin_set_company_limit(target uuid, new_max_companies integer)",
1039 + "exact": "89a4536bfdc6473e75d7c377d2b61d7e",
1040 + "config": [
1041 + "search_path=\"\""
1042 + ],
1043 + "return": "void",
1044 + "secdef": true,
1045 + "compact": "1a4ac355ef4a22a4c402f995f8e3e3b2",
1046 + "volatile": "v",
1047 + "arguments": "target uuid, new_max_companies integer"
1048 + },
1049 + {
1050 + "key": "public.admin_set_license(target uuid, new_plan text, days integer, new_status text)",
1051 + "exact": "7850f0fa161487666182045eac7969da",
1052 + "config": [
1053 + "search_path=\"\""
1054 + ],
1055 + "return": "void",
1056 + "secdef": true,
1057 + "compact": "c61aeb694b212ad80c8c6462a4b97333",
1058 + "volatile": "v",
1059 + "arguments": "target uuid, new_plan text, days integer DEFAULT NULL::integer, new_status text DEFAULT 'active'::text"
1060 + },
1061 + {
1062 + "key": "public.admin_set_license_modules(target uuid, new_modules text[])",
1063 + "exact": "26428d9af3d9763bc57740bf3c0a6cde",
1064 + "config": [
1065 + "search_path=\"\""
1066 + ],
1067 + "return": "void",
1068 + "secdef": true,
1069 + "compact": "1d8c62c611d69aea53611f6b97d39c43",
1070 + "volatile": "v",
1071 + "arguments": "target uuid, new_modules text[]"
1072 + },
1073 + {
1074 + "key": "public.admin_set_user_limit(target uuid, new_max_users integer)",
1075 + "exact": "725ab8abd68727b9645541a8e8652d28",
1076 + "config": [
1077 + "search_path=\"\""
1078 + ],
1079 + "return": "void",
1080 + "secdef": true,
1081 + "compact": "1a900ed8a18be61b5040710e074df672",
1082 + "volatile": "v",
1083 + "arguments": "target uuid, new_max_users integer"
1084 + },
1085 + {
1086 + "key": "public.finora_enforce_company_license_limit()",
1087 + "exact": "42839c8a6c5a5bd1b781a656c4b57100",
1088 + "config": [
1089 + "search_path=\"\""
1090 + ],
1091 + "return": "trigger",
1092 + "secdef": true,
1093 + "compact": "6ebd06f9469972894e5d894bf1369578",
1094 + "volatile": "v",
1095 + "arguments": ""
1096 + },
1097 + {
1098 + "key": "public.finora_guard_phase5_posted_records()",
1099 + "exact": "99d14dca2dcaf9dd053e5c33d89187f5",
1100 + "config": [
1101 + "search_path=public"
1102 + ],
1103 + "return": "trigger",
1104 + "secdef": false,
1105 + "compact": "121ef379b44117f7ae47f16eab95e74d",
1106 + "volatile": "v",
1107 + "arguments": ""
1108 + },
1109 + {
1110 + "key": "public.finora_guard_posted_journal()",
1111 + "exact": "2ab22dad4a95911f9c6f7aba15980311",
1112 + "config": [
1113 + "search_path=public"
1114 + ],
1115 + "return": "trigger",
1116 + "secdef": false,
1117 + "compact": "446f24201a23bc41888471220f4eeb82",
1118 + "volatile": "v",
1119 + "arguments": ""
1120 + },
1121 + {
1122 + "key": "public.finora_guard_posted_journal_children()",
1123 + "exact": "10551554db4a8669175d6c1e6586942d",
1124 + "config": [
1125 + "search_path=public"
1126 + ],
1127 + "return": "trigger",
1128 + "secdef": false,
1129 + "compact": "270be147a882c537339632eeb383c2a6",
1130 + "volatile": "v",
1131 + "arguments": ""
1132 + },
1133 + {
1134 + "key": "public.finora_guard_posted_source_records()",
1135 + "exact": "195a3029b6e2a6c793b37a6e7df14359",
1136 + "config": [
1137 + "search_path=public"
1138 + ],
1139 + "return": "trigger",
1140 + "secdef": false,
1141 + "compact": "ca398ea22d2570f514e63c1d1fa436d8",
1142 + "volatile": "v",
1143 + "arguments": ""
1144 + },
1145 + {
1146 + "key": "public.finora_sync_records(p_upserts jsonb, p_deletes jsonb)",
1147 + "exact": "9304d40137799cb649d93d25b758fe4c",
1148 + "config": [
1149 + "search_path=public"
1150 + ],
1151 + "return": "void",
1152 + "secdef": false,
1153 + "compact": "322dc6e2cbd3a93fbf670074c3f451a1",
1154 + "volatile": "v",
1155 + "arguments": "p_upserts jsonb DEFAULT '[]'::jsonb, p_deletes jsonb DEFAULT '[]'::jsonb"
1156 + },
1157 + {
1158 + "key": "public.finora_sync_records(p_upserts jsonb, p_deletes jsonb, p_organization_id uuid)",
1159 + "exact": "eb6326d52ec461f509bf12f022d05bfb",
1160 + "config": [
1161 + "search_path=\"\""
1162 + ],
1163 + "return": "void",
1164 + "secdef": false,
1165 + "compact": "a3ad45e4146b9b91dd0a338818461428",
1166 + "volatile": "v",
1167 + "arguments": "p_upserts jsonb DEFAULT '[]'::jsonb, p_deletes jsonb DEFAULT '[]'::jsonb, p_organization_id uuid DEFAULT NULL::uuid"
1168 + },
1169 + {
1170 + "key": "public.handle_new_user()",
1171 + "exact": "dc409c9f6dc953e09f215d7e06e64559",
1172 + "config": [
1173 + "search_path=\"\""
1174 + ],
1175 + "return": "trigger",
1176 + "secdef": true,
1177 + "compact": "e022a960cb40a3686aa1793a60626959",
1178 + "volatile": "v",
1179 + "arguments": ""
1180 + },
1181 + {
1182 + "key": "public.has_active_license()",
1183 + "exact": "f3c0ece042891a03aec7f06d76e3a9c3",
1184 + "config": [
1185 + "search_path=\"\""
1186 + ],
1187 + "return": "boolean",
1188 + "secdef": true,
1189 + "compact": "c46514e2dd3a866725126990d00681dc",
1190 + "volatile": "s",
1191 + "arguments": ""
1192 + },
1193 + {
1194 + "key": "public.is_admin()",
1195 + "exact": "d5808500f03173b4303120b0ddea4332",
1196 + "config": [
1197 + "search_path=\"\""
1198 + ],
1199 + "return": "boolean",
1200 + "secdef": true,
1201 + "compact": "73a769e5d5855f2780c456ffa6dd6957",
1202 + "volatile": "s",
1203 + "arguments": ""
1204 + },
1205 + {
1206 + "key": "public.office_act_on_approval(p_organization_id uuid, p_approval_id text, p_action text, p_note text)",
1207 + "exact": "c03911c29e5f1043802b018fe44001e9",
1208 + "config": [
1209 + "search_path=\"\""
1210 + ],
1211 + "return": "text",
1212 + "secdef": false,
1213 + "compact": "87489c07544b13886fb22b1d88e889ff",
1214 + "volatile": "v",
1215 + "arguments": "p_organization_id uuid, p_approval_id text, p_action text, p_note text DEFAULT NULL::text"
1216 + },
1217 + {
1218 + "key": "public.office_act_on_referral(p_organization_id uuid, p_referral_id text, p_action text, p_note text)",
1219 + "exact": "2d3299a8634b7052c09323e14488e422",
1220 + "config": [
1221 + "search_path=\"\""
1222 + ],
1223 + "return": "text",
1224 + "secdef": true,
1225 + "compact": "f667e22fe376d879c00fa78e0c8f738b",
1226 + "volatile": "v",
1227 + "arguments": "p_organization_id uuid, p_referral_id text, p_action text, p_note text DEFAULT NULL::text"
1228 + },
1229 + {
1230 + "key": "public.office_approval_work_queue(p_organization_id uuid)",
1231 + "exact": "8019e99c685fc8217a5d6b0480d7dcb5",
1232 + "config": [
1233 + "search_path=\"\""
1234 + ],
1235 + "return": "TABLE(approval_id text, correspondence_id text, register_number text, subject text, requested_by_user_id uuid, approver_user_id uuid, note text, due_at timestamp with time zone, requested_at timestamp with time zone, state text, overdue boolean, content_changed boolean, decision_note text, decision_at timestamp with time zone, decision_aal text)",
1236 + "secdef": false,
1237 + "compact": "7b882f1a7f8035b3a10d798f29f7837e",
1238 + "volatile": "s",
1239 + "arguments": "p_organization_id uuid"
1240 + },
1241 + {
1242 + "key": "public.office_archive_search(p_organization_id uuid, p_query text, p_folder text, p_classification_code text, p_related_to text)",
1243 + "exact": "c6bc02d96e9b810c6895284f5317f234",
1244 + "config": [
1245 + "search_path=\"\""
1246 + ],
1247 + "return": "TABLE(correspondence_id text, register_number text, subject text, counterparty text, status text, folder text, classification_code text, tags text[], related_count bigint)",
1248 + "secdef": true,
1249 + "compact": "fc346ad6e624fe287057ed72f7b77e60",
1250 + "volatile": "s",
1251 + "arguments": "p_organization_id uuid, p_query text DEFAULT NULL::text, p_folder text DEFAULT NULL::text, p_classification_code text DEFAULT NULL::text, p_related_to text DEFAULT NULL::text"
1252 + },
1253 + {
1254 + "key": "public.office_archive_search_v2(p_organization_id uuid, p_query text, p_folder text, p_classification_code text, p_related_to text, p_limit integer)",
1255 + "exact": "374db09656f524a7e4573a5b233fe256",
1256 + "config": [
1257 + "search_path=\"\""
1258 + ],
1259 + "return": "TABLE(correspondence_id text, register_number text, subject text, counterparty text, status text, folder text, classification_code text, tags text[], related_count bigint, match_source text, ocr_evidence_id text, ocr_provider text, ocr_language text, ocr_confidence numeric, ocr_corrected boolean)",
1260 + "secdef": false,
1261 + "compact": "890f10d0f28a9d2925cb3f9740599abd",
1262 + "volatile": "s",
1263 + "arguments": "p_organization_id uuid, p_query text DEFAULT NULL::text, p_folder text DEFAULT NULL::text, p_classification_code text DEFAULT NULL::text, p_related_to text DEFAULT NULL::text, p_limit integer DEFAULT 100"
1264 + },
1265 + {
1266 + "key": "public.office_classify_correspondence(p_organization_id uuid, p_correspondence_id text, p_folder text, p_classification_code text, p_tags text[])",
1267 + "exact": "addab4ccdbfb9ae03bdc0271f79b0c4e",
1268 + "config": [
1269 + "search_path=\"\""
1270 + ],
1271 + "return": "text",
1272 + "secdef": true,
1273 + "compact": "d45fe882393f463a3a6b4c3ca90a308c",
1274 + "volatile": "v",
1275 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_folder text, p_classification_code text, p_tags text[]"
1276 + },
1277 + {
1278 + "key": "public.office_correct_ocr_evidence(p_organization_id uuid, p_ocr_evidence_id text, p_corrected_text text, p_note text)",
1279 + "exact": "d9c9f4f270a28f02be6062128f5c964c",
1280 + "config": [
1281 + "search_path=\"\""
1282 + ],
1283 + "return": "text",
1284 + "secdef": false,
1285 + "compact": "7991bc5ca161104120d928481bc3234a",
1286 + "volatile": "v",
1287 + "arguments": "p_organization_id uuid, p_ocr_evidence_id text, p_corrected_text text, p_note text DEFAULT NULL::text"
1288 + },
1289 + {
1290 + "key": "public.office_create_template_version(p_organization_id uuid, p_template_key text, p_name text, p_subject_template text, p_body_template text, p_active boolean)",
1291 + "exact": "8df2c6afe4deeba708ca9ed407919a93",
1292 + "config": [
1293 + "search_path=\"\""
1294 + ],
1295 + "return": "integer",
1296 + "secdef": false,
1297 + "compact": "9b48832bb7423a856d9ce6c9d2f679c6",
1298 + "volatile": "v",
1299 + "arguments": "p_organization_id uuid, p_template_key text, p_name text, p_subject_template text, p_body_template text, p_active boolean DEFAULT true"
1300 + },
1301 + {
1302 + "key": "public.office_emit_sla_event(p_organization_id uuid, p_work_type text, p_work_id text, p_event text)",
1303 + "exact": "d54fbb531f5ee1a07c127c1b4c626f63",
1304 + "config": [
1305 + "search_path=\"\""
1306 + ],
1307 + "return": "text",
1308 + "secdef": false,
1309 + "compact": "55b7ea2a020c5e87fefac77b4457d8cc",
1310 + "volatile": "v",
1311 + "arguments": "p_organization_id uuid, p_work_type text, p_work_id text, p_event text"
1312 + },
1313 + {
1314 + "key": "public.office_link_correspondence(p_organization_id uuid, p_source_id text, p_target_id text, p_relation_type text)",
1315 + "exact": "fcb729add178c17f059646fb32bde1d5",
1316 + "config": [
1317 + "search_path=\"\""
1318 + ],
1319 + "return": "text",
1320 + "secdef": true,
1321 + "compact": "abc976693d6f8627046c3cfbbfff0642",
1322 + "volatile": "v",
1323 + "arguments": "p_organization_id uuid, p_source_id text, p_target_id text, p_relation_type text"
1324 + },
1325 + {
1326 + "key": "public.office_mark_correspondence_read(p_organization_id uuid, p_correspondence_id text)",
1327 + "exact": "7253bcab7a109dae194be16a83195dfa",
1328 + "config": [
1329 + "search_path=\"\""
1330 + ],
1331 + "return": "text",
1332 + "secdef": true,
1333 + "compact": "ab91c465405e539b6b3af98d48687035",
1334 + "volatile": "v",
1335 + "arguments": "p_organization_id uuid, p_correspondence_id text"
1336 + },
1337 + {
1338 + "key": "public.office_record_ocr_evidence(p_organization_id uuid, p_correspondence_id text, p_source_ref text, p_provider text, p_language text, p_confidence numeric, p_text text)",
1339 + "exact": "23c403b97d2e60c697fc3e9b06de708d",
1340 + "config": [
1341 + "search_path=\"\""
1342 + ],
1343 + "return": "text",
1344 + "secdef": false,
1345 + "compact": "18a2647c809f6532583e639b1f30eea3",
1346 + "volatile": "v",
1347 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_source_ref text, p_provider text, p_language text, p_confidence numeric, p_text text"
1348 + },
1349 + {
1350 + "key": "public.office_refer_correspondence(p_organization_id uuid, p_correspondence_id text, p_to_member_id uuid, p_note text)",
1351 + "exact": "11368182da842a6940e860d2f22607e1",
1352 + "config": [
1353 + "search_path=\"\""
1354 + ],
1355 + "return": "text",
1356 + "secdef": false,
1357 + "compact": "99c07b0e26cf43a967c723a0bea6432f",
1358 + "volatile": "v",
1359 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_to_member_id uuid, p_note text DEFAULT NULL::text"
1360 + },
1361 + {
1362 + "key": "public.office_refer_correspondence_v2(p_organization_id uuid, p_correspondence_id text, p_to_member_id uuid, p_note text, p_due_at timestamp with time zone)",
1363 + "exact": "4607541f1b10421120259d7c03f06306",
1364 + "config": [
1365 + "search_path=\"\""
1366 + ],
1367 + "return": "text",
1368 + "secdef": true,
1369 + "compact": "f9e3d6122772ccce149a3664bf749167",
1370 + "volatile": "v",
1371 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_to_member_id uuid, p_note text, p_due_at timestamp with time zone"
1372 + },
1373 + {
1374 + "key": "public.office_referral_work_queue(p_organization_id uuid)",
1375 + "exact": "aa32f4c614f3a05fd34da3b25090ad7c",
1376 + "config": [
1377 + "search_path=\"\""
1378 + ],
1379 + "return": "TABLE(referral_id text, correspondence_id text, register_number text, subject text, from_user_id uuid, to_user_id uuid, note text, created_at timestamp with time zone, due_at timestamp with time zone, state text, overdue boolean)",
1380 + "secdef": true,
1381 + "compact": "e9e3e2d267bbc75093ee06ae0989642c",
1382 + "volatile": "s",
1383 + "arguments": "p_organization_id uuid"
1384 + },
1385 + {
1386 + "key": "public.office_register_correspondence(p_id text, p_registry_id text, p_payload jsonb, p_organization_id uuid)",
1387 + "exact": "6c8db403a96cea0c9fba1313964ee28e",
1388 + "config": [
1389 + "search_path=\"\""
1390 + ],
1391 + "return": "text",
1392 + "secdef": false,
1393 + "compact": "1927b38fad838ecc1f33cd885b1f71d8",
1394 + "volatile": "v",
1395 + "arguments": "p_id text, p_registry_id text, p_payload jsonb, p_organization_id uuid DEFAULT NULL::uuid"
1396 + },
1397 + {
1398 + "key": "public.office_request_approval(p_organization_id uuid, p_correspondence_id text, p_approver_member_id uuid, p_note text, p_due_at timestamp with time zone)",
1399 + "exact": "566c76afda9c52884e69e82af9031aca",
1400 + "config": [
1401 + "search_path=\"\""
1402 + ],
1403 + "return": "text",
1404 + "secdef": false,
1405 + "compact": "a2886f24639504aca4063af518aab19a",
1406 + "volatile": "v",
1407 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_approver_member_id uuid, p_note text DEFAULT NULL::text, p_due_at timestamp with time zone DEFAULT NULL::timestamp with time zone"
1408 + },
1409 + {
1410 + "key": "public.office_sla_work_queue(p_organization_id uuid)",
1411 + "exact": "178cf5f262ffd9110edf9b29d5e37624",
1412 + "config": [
1413 + "search_path=\"\""
1414 + ],
1415 + "return": "TABLE(work_type text, work_id text, correspondence_id text, register_number text, subject text, requester_user_id uuid, target_user_id uuid, due_at timestamp with time zone, work_state text, overdue boolean, overdue_hours integer, last_reminder_at timestamp with time zone, escalated_at timestamp with time zone, can_emit boolean)",
1416 + "secdef": false,
1417 + "compact": "eaf60e89b23b6ea8d8e4f0f65e706690",
1418 + "volatile": "s",
1419 + "arguments": "p_organization_id uuid"
1420 + },
1421 + {
1422 + "key": "public.office_template_catalog(p_organization_id uuid, p_include_inactive boolean)",
1423 + "exact": "74c0cbc27e2c5dc810583a0b23c808ca",
1424 + "config": [
1425 + "search_path=\"\""
1426 + ],
1427 + "return": "TABLE(template_key text, version integer, name text, subject_template text, body_template text, active boolean, created_by uuid, created_at timestamp with time zone)",
1428 + "secdef": false,
1429 + "compact": "4934db64aca6774ad2f0d214ebf041cb",
1430 + "volatile": "s",
1431 + "arguments": "p_organization_id uuid, p_include_inactive boolean DEFAULT false"
1432 + },
1433 + {
1434 + "key": "public.office_workflow_attach(p_organization_id uuid, p_correspondence_id text, p_policy_key text, p_policy_version integer, p_request_id uuid)",
1435 + "exact": "f0f20a8b2c4b36ff9bf993e82f2b06a9",
1436 + "config": [
1437 + "search_path=\"\""
1438 + ],
1439 + "return": "jsonb",
1440 + "secdef": false,
1441 + "compact": "cfb02f702207cbf25f16f8fbbadc18f2",
1442 + "volatile": "v",
1443 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_policy_key text, p_policy_version integer, p_request_id uuid"
1444 + },
1445 + {
1446 + "key": "public.office_workflow_catalog(p_organization_id uuid)",
1447 + "exact": "36c38595136aa22fb6cc459efe8c60ae",
1448 + "config": [
1449 + "search_path=\"\""
1450 + ],
1451 + "return": "jsonb",
1452 + "secdef": false,
1453 + "compact": "7e26c37ce4f53bd7753eab3dbc6115ac",
1454 + "volatile": "s",
1455 + "arguments": "p_organization_id uuid"
1456 + },
1457 + {
1458 + "key": "public.office_workflow_publish(p_organization_id uuid, p_policy_key text, p_title text, p_definition jsonb)",
1459 + "exact": "2f2149c6abaf1ef97bb5d0d4e9af616f",
1460 + "config": [
1461 + "search_path=\"\""
1462 + ],
1463 + "return": "integer",
1464 + "secdef": false,
1465 + "compact": "85d75de4b537f4fcf7075efc2f7bba56",
1466 + "volatile": "v",
1467 + "arguments": "p_organization_id uuid, p_policy_key text, p_title text, p_definition jsonb"
1468 + },
1469 + {
1470 + "key": "public.office_workflow_read(p_organization_id uuid, p_correspondence_id text, p_after_revision bigint, p_limit integer)",
1471 + "exact": "d372439d0a01a5516a5f19926d2fd49f",
1472 + "config": [
1473 + "search_path=\"\""
1474 + ],
1475 + "return": "jsonb",
1476 + "secdef": false,
1477 + "compact": "ac2eabe33d49b7e0e9615d8e51bdd68e",
1478 + "volatile": "s",
1479 + "arguments": "p_organization_id uuid, p_correspondence_id text, p_after_revision bigint, p_limit integer"
1480 + },
1481 + {
1482 + "key": "public.office_workflow_transition(p_organization_id uuid, p_instance_id uuid, p_edge_id text, p_expected_revision bigint, p_request_id uuid, p_note text)",
1483 + "exact": "a546de8fa642128d92d25fd7b8a3b204",
1484 + "config": [
1485 + "search_path=\"\""
1486 + ],
1487 + "return": "jsonb",
1488 + "secdef": false,
1489 + "compact": "b613e1c925cae7d55379458f1dee044b",
1490 + "volatile": "v",
1491 + "arguments": "p_organization_id uuid, p_instance_id uuid, p_edge_id text, p_expected_revision bigint, p_request_id uuid, p_note text"
1492 + },
1493 + {
1494 + "key": "public.organization_accept_invitation(p_token text)",
1495 + "exact": "b14c35245a4c67d40ac565b7657e45eb",
1496 + "config": [
1497 + "search_path=\"\""
1498 + ],
1499 + "return": "uuid",
1500 + "secdef": true,
1501 + "compact": "ff45797dcd5a41f871927290461baff9",
1502 + "volatile": "v",
1503 + "arguments": "p_token text"
1504 + },
1505 + {
1506 + "key": "public.organization_add_member(p_organization_id uuid, p_email text, p_unit_id uuid, p_position_title text)",
1507 + "exact": "94e5019f8bed9de63248b47808da4414",
1508 + "config": [
1509 + "search_path=\"\""
1510 + ],
1511 + "return": "uuid",
1512 + "secdef": false,
1513 + "compact": "5f8a27dfd9fb7cfdf448840fa03cc29e",
1514 + "volatile": "v",
1515 + "arguments": "p_organization_id uuid, p_email text, p_unit_id uuid DEFAULT NULL::uuid, p_position_title text DEFAULT NULL::text"
1516 + },
1517 + {
1518 + "key": "public.organization_assign_member_role(p_organization_id uuid, p_member_id uuid, p_role_id uuid, p_active boolean)",
1519 + "exact": "b1ec082607f0f59cef2dd0e3bb257d30",
1520 + "config": [
1521 + "search_path=\"\""
1522 + ],
1523 + "return": "uuid",
1524 + "secdef": false,
1525 + "compact": "3dc300606630af40854f1d887fef25ba",
1526 + "volatile": "v",
1527 + "arguments": "p_organization_id uuid, p_member_id uuid, p_role_id uuid, p_active boolean DEFAULT true"
1528 + },
1529 + {
1530 + "key": "public.organization_capacity_summary(p_organization_id uuid)",
1531 + "exact": "5a02d38e968b05ffd31d2e2a64d4665e",
1532 + "config": [
1533 + "search_path=\"\""
1534 + ],
1535 + "return": "jsonb",
1536 + "secdef": true,
1537 + "compact": "5fa567f3f8a215030b643924343d9110",
1538 + "volatile": "s",
1539 + "arguments": "p_organization_id uuid"
1540 + },
1541 + {
1542 + "key": "public.organization_create_invitation(p_organization_id uuid, p_email text, p_unit_id uuid, p_position_title text, p_role_ids uuid[], p_expires_hours integer)",
1543 + "exact": "30a64eae4246f548463cd26d1cab1567",
1544 + "config": [
1545 + "search_path=\"\""
1546 + ],
1547 + "return": "jsonb",
1548 + "secdef": true,
1549 + "compact": "35039b14dcbe5f69c5cc0cbd0dcdf337",
1550 + "volatile": "v",
1551 + "arguments": "p_organization_id uuid, p_email text, p_unit_id uuid DEFAULT NULL::uuid, p_position_title text DEFAULT NULL::text, p_role_ids uuid[] DEFAULT '{}'::uuid[], p_expires_hours integer DEFAULT 168"
1552 + },
1553 + {
1554 + "key": "public.organization_expire_invitations(p_organization_id uuid)",
1555 + "exact": "99c0383ac8a18aec5e9178d019e46bf4",
1556 + "config": [
1557 + "search_path=\"\""
1558 + ],
1559 + "return": "integer",
1560 + "secdef": true,
1561 + "compact": "b821fe699a9ae7a587e7259960fb7541",
1562 + "volatile": "v",
1563 + "arguments": "p_organization_id uuid"
1564 + },
1565 + {
1566 + "key": "public.organization_revoke_invitation(p_organization_id uuid, p_invitation_id uuid)",
1567 + "exact": "4ab851b5368d283c9d13ba68ef342e14",
1568 + "config": [
1569 + "search_path=\"\""
1570 + ],
1571 + "return": "void",
1572 + "secdef": true,
1573 + "compact": "5e8375c99a1c413f1c6e2aaa5eb64479",
1574 + "volatile": "v",
1575 + "arguments": "p_organization_id uuid, p_invitation_id uuid"
1576 + },
1577 + {
1578 + "key": "public.organization_set_member_permission(p_organization_id uuid, p_member_id uuid, p_module_key text, p_capabilities text[], p_scope_type text, p_scope_id text, p_confidentiality_level smallint)",
1579 + "exact": "4c12600674815a3b018bacc16ae8b96f",
1580 + "config": [
1581 + "search_path=\"\""
1582 + ],
1583 + "return": "uuid",
1584 + "secdef": false,
1585 + "compact": "1fe7bc3bb10c9192181e9581e1321b27",
1586 + "volatile": "v",
1587 + "arguments": "p_organization_id uuid, p_member_id uuid, p_module_key text, p_capabilities text[], p_scope_type text DEFAULT 'own'::text, p_scope_id text DEFAULT NULL::text, p_confidentiality_level smallint DEFAULT 0"
1588 + },
1589 + {
1590 + "key": "public.organization_set_member_status(p_organization_id uuid, p_member_id uuid, p_status text)",
1591 + "exact": "93890850a9936f2842ef70447a2b2c1b",
1592 + "config": [
1593 + "search_path=\"\""
1594 + ],
1595 + "return": "void",
1596 + "secdef": false,
1597 + "compact": "61e86bb51027908d7fdcbd59c3d7aa3c",
1598 + "volatile": "v",
1599 + "arguments": "p_organization_id uuid, p_member_id uuid, p_status text"
1600 + },
1601 + {
1602 + "key": "public.organization_set_role_permission(p_organization_id uuid, p_role_id uuid, p_module_key text, p_capabilities text[], p_scope_type text, p_scope_id text, p_confidentiality_level smallint)",
1603 + "exact": "53a22dfd9a7463fa11560835c525c9a5",
1604 + "config": [
1605 + "search_path=\"\""
1606 + ],
1607 + "return": "uuid",
1608 + "secdef": false,
1609 + "compact": "ef006e7b3b55f6fa6bfa10d94946e4bf",
1610 + "volatile": "v",
1611 + "arguments": "p_organization_id uuid, p_role_id uuid, p_module_key text, p_capabilities text[], p_scope_type text DEFAULT 'organization'::text, p_scope_id text DEFAULT NULL::text, p_confidentiality_level smallint DEFAULT 0"
1612 + },
1613 + {
1614 + "key": "public.organization_upsert_role(p_organization_id uuid, p_role_key text, p_title text, p_description text, p_active boolean)",
1615 + "exact": "6b11668efffa702c7b5cbe3974f7532c",
1616 + "config": [
1617 + "search_path=\"\""
1618 + ],
1619 + "return": "uuid",
1620 + "secdef": false,
1621 + "compact": "db43b09fed8575d18c9ac07bb7bdb5ca",
1622 + "volatile": "v",
1623 + "arguments": "p_organization_id uuid, p_role_key text, p_title text, p_description text DEFAULT NULL::text, p_active boolean DEFAULT true"
1624 + },
1625 + {
1626 + "key": "public.request_claim_outbox(p_worker_id text, p_limit integer)",
1627 + "exact": "c5e73730cde7c475efe3dc6a08b00e1a",
1628 + "config": [
1629 + "search_path=\"\""
1630 + ],
1631 + "return": "TABLE(outbox_id uuid, organization_id uuid, request_instance_id uuid, target_module text, action_key text, payload jsonb, destination_command_key text, claim_token uuid, attempts integer, server_clock timestamp with time zone)",
1632 + "secdef": true,
1633 + "compact": "39395c1f4d230136c3e450b988778239",
1634 + "volatile": "v",
1635 + "arguments": "p_worker_id text, p_limit integer DEFAULT 25"
1636 + },
1637 + {
1638 + "key": "public.request_complete_outbox(p_outbox_id uuid, p_claim_token uuid, p_destination_receipt text)",
1639 + "exact": "f492e725bbd0542f63bc4571a43c759d",
1640 + "config": [
1641 + "search_path=\"\""
1642 + ],
1643 + "return": "boolean",
1644 + "secdef": true,
1645 + "compact": "e21747c11cd985e6643f42caeccb8a4e",
1646 + "volatile": "v",
1647 + "arguments": "p_outbox_id uuid, p_claim_token uuid, p_destination_receipt text DEFAULT NULL::text"
1648 + },
1649 + {
1650 + "key": "public.request_create_delegation(p_organization_id uuid, p_to_user_id uuid, p_capability text, p_valid_from timestamp with time zone, p_valid_to timestamp with time zone, p_reason text)",
1651 + "exact": "85344fe3888cc81425408c2a850a3354",
1652 + "config": [
1653 + "search_path=\"\""
1654 + ],
1655 + "return": "uuid",
1656 + "secdef": false,
1657 + "compact": "d3a7b42e1ca654e1f46acb7dac9d8617",
1658 + "volatile": "v",
1659 + "arguments": "p_organization_id uuid, p_to_user_id uuid, p_capability text, p_valid_from timestamp with time zone, p_valid_to timestamp with time zone, p_reason text DEFAULT NULL::text"
1660 + },
1661 + {
1662 + "key": "public.request_create_delegation(p_organization_id uuid, p_to_user_id uuid, p_capability text, p_valid_from timestamp with time zone, p_valid_to timestamp with time zone, p_reason text, p_idempotency_key text)",
1663 + "exact": "2fea52d51a99fb5371ba6cc1c9628b45",
1664 + "config": [
1665 + "search_path=\"\""
1666 + ],
1667 + "return": "uuid",
1668 + "secdef": false,
1669 + "compact": "d3a5aa5d0960a3c53c36d9e735c18ea3",
1670 + "volatile": "v",
1671 + "arguments": "p_organization_id uuid, p_to_user_id uuid, p_capability text, p_valid_from timestamp with time zone, p_valid_to timestamp with time zone, p_reason text, p_idempotency_key text"
1672 + },
1673 + {
1674 + "key": "public.request_create_instance(p_organization_id uuid, p_request_type_version_id uuid, p_values jsonb, p_idempotency_key text)",
1675 + "exact": "05270bbcbf97cedf2075ab2bdbc61554",
1676 + "config": [
1677 + "search_path=\"\""
1678 + ],
1679 + "return": "uuid",
1680 + "secdef": false,
1681 + "compact": "bc0e3dfadcfe247ca45c825a478f870d",
1682 + "volatile": "v",
1683 + "arguments": "p_organization_id uuid, p_request_type_version_id uuid, p_values jsonb, p_idempotency_key text"
1684 + },
1685 + {
1686 + "key": "public.request_escalate_overdue(p_organization_id uuid)",
1687 + "exact": "8c7f5e34517563dc81c2bbbdb98a12f9",
1688 + "config": [
1689 + "search_path=\"\""
1690 + ],
1691 + "return": "integer",
1692 + "secdef": false,
1693 + "compact": "644c24d09b7b228a88f6fc3c367324a4",
1694 + "volatile": "v",
1695 + "arguments": "p_organization_id uuid"
1696 + },
1697 + {
1698 + "key": "public.request_fail_outbox(p_outbox_id uuid, p_claim_token uuid, p_error text)",
1699 + "exact": "723108a95d43a2f824aa787c100bd740",
1700 + "config": [
1701 + "search_path=\"\""
1702 + ],
1703 + "return": "text",
1704 + "secdef": true,
1705 + "compact": "e138ffe0543afa2999001cb62bf161ba",
1706 + "volatile": "v",
1707 + "arguments": "p_outbox_id uuid, p_claim_token uuid, p_error text"
1708 + },
1709 + {
1710 + "key": "public.request_list_delegations(p_organization_id uuid)",
1711 + "exact": "7eea21e8c3595964ac5e6c73bb688647",
1712 + "config": [
1713 + "search_path=\"\""
1714 + ],
1715 + "return": "jsonb",
1716 + "secdef": false,
1717 + "compact": "265caaa5b8d504cde56a8fc30605b254",
1718 + "volatile": "v",
1719 + "arguments": "p_organization_id uuid"
1720 + },
1721 + {
1722 + "key": "public.request_outbox_status(p_request_instance_id uuid)",
1723 + "exact": "6b95d75ded77eecad292f891424335eb",
1724 + "config": [
1725 + "search_path=\"\""
1726 + ],
1727 + "return": "jsonb",
1728 + "secdef": false,
1729 + "compact": "ce7a0ebee42060d4c3f719f5bd13cbb2",
1730 + "volatile": "v",
1731 + "arguments": "p_request_instance_id uuid"
1732 + },
1733 + {
1734 + "key": "public.request_publish_type_version(p_organization_id uuid, p_code text, p_title text, p_category text, p_form_schema jsonb, p_workflow_schema jsonb, p_expected_definition_revision bigint)",
1735 + "exact": "dcf4c042b66038d76b39105fc27dd768",
1736 + "config": [
1737 + "search_path=\"\""
1738 + ],
1739 + "return": "TABLE(request_type_id uuid, request_type_version_id uuid, workflow_version_id uuid, version_no integer, definition_revision bigint)",
1740 + "secdef": false,
1741 + "compact": "616fd05b3d70988c6098acd21fc60d07",
1742 + "volatile": "v",
1743 + "arguments": "p_organization_id uuid, p_code text, p_title text, p_category text DEFAULT NULL::text, p_form_schema jsonb DEFAULT '{}'::jsonb, p_workflow_schema jsonb DEFAULT '{}'::jsonb, p_expected_definition_revision bigint DEFAULT NULL::bigint"
1744 + },
1745 + {
1746 + "key": "public.request_replay_dead_letter(p_organization_id uuid, p_outbox_id uuid, p_idempotency_key text, p_reason text)",
1747 + "exact": "cf3a3b3a5d0c392330f04bdd987c77bd",
1748 + "config": [
1749 + "search_path=\"\""
1750 + ],
1751 + "return": "boolean",
1752 + "secdef": false,
1753 + "compact": "0e276aa76ba1e4d196f66f48ea1e8654",
1754 + "volatile": "v",
1755 + "arguments": "p_organization_id uuid, p_outbox_id uuid, p_idempotency_key text, p_reason text DEFAULT NULL::text"
1756 + },
1757 + {
1758 + "key": "public.request_revoke_delegation(p_organization_id uuid, p_delegation_id uuid)",
1759 + "exact": "5d93c64b1feef5fbc6d1946573b8a53c",
1760 + "config": [
1761 + "search_path=\"\""
1762 + ],
1763 + "return": "boolean",
1764 + "secdef": false,
1765 + "compact": "c2a1b2e993830e98e9d49d971107fc13",
1766 + "volatile": "v",
1767 + "arguments": "p_organization_id uuid, p_delegation_id uuid"
1768 + },
1769 + {
1770 + "key": "public.request_run_sla_scheduler(p_organization_id uuid, p_run_key text, p_schedule_slot timestamp with time zone, p_limit integer)",
1771 + "exact": "cd703d0978652b935efc9ee590ba23ea",
1772 + "config": [
1773 + "search_path=\"\""
1774 + ],
1775 + "return": "TABLE(run_id uuid, processed_count integer, server_clock timestamp with time zone, replayed boolean)",
1776 + "secdef": true,
1777 + "compact": "30b281b34ecc48d09df293a9571061eb",
1778 + "volatile": "v",
1779 + "arguments": "p_organization_id uuid, p_run_key text, p_schedule_slot timestamp with time zone, p_limit integer DEFAULT 100"
1780 + },
1781 + {
1782 + "key": "public.request_step_decide(p_request_instance_id uuid, p_decision text, p_expected_revision bigint, p_idempotency_key text, p_note text)",
1783 + "exact": "8f57c64ec74d5b38fa85ab477c3290d9",
1784 + "config": [
1785 + "search_path=\"\""
1786 + ],
1787 + "return": "TABLE(request_instance_id uuid, status text, revision bigint, step_key text, step_state text, approvals_received integer, approvals_required integer)",
1788 + "secdef": false,
1789 + "compact": "fa5a51bb8a46854d38ddb0afaaa59db3",
1790 + "volatile": "v",
1791 + "arguments": "p_request_instance_id uuid, p_decision text, p_expected_revision bigint, p_idempotency_key text, p_note text DEFAULT NULL::text"
1792 + },
1793 + {
1794 + "key": "public.request_transition_instance(p_request_instance_id uuid, p_action text, p_expected_revision bigint, p_idempotency_key text, p_note text)",
1795 + "exact": "38370605c523e350f4741a012cc57c2a",
1796 + "config": [
1797 + "search_path=\"\""
1798 + ],
1799 + "return": "TABLE(request_instance_id uuid, status text, revision bigint)",
1800 + "secdef": false,
1801 + "compact": "ec5c1018fb9a4f68ec8736088767ca7c",
1802 + "volatile": "v",
1803 + "arguments": "p_request_instance_id uuid, p_action text, p_expected_revision bigint, p_idempotency_key text, p_note text DEFAULT NULL::text"
1804 + },
1805 + {
1806 + "key": "public.request_work_queue(p_organization_id uuid)",
1807 + "exact": "f02cdea533eacc6f4dc4351433db9623",
1808 + "config": [
1809 + "search_path=\"\""
1810 + ],
1811 + "return": "jsonb",
1812 + "secdef": false,
1813 + "compact": "54f7c9c8f64024af63d829223d9c36ae",
1814 + "volatile": "v",
1815 + "arguments": "p_organization_id uuid"
1816 + },
1817 + {
1818 + "key": "public.request_workflow_timeline(p_request_instance_id uuid)",
1819 + "exact": "b3d1d7aebca23168bc2a5d672f8a5673",
1820 + "config": [
1821 + "search_path=\"\""
1822 + ],
1823 + "return": "jsonb",
1824 + "secdef": false,
1825 + "compact": "57ec4d3b286e18efbb02f5a0663214e3",
1826 + "volatile": "v",
1827 + "arguments": "p_request_instance_id uuid"
1828 + },
1829 + {
1830 + "key": "public.touch_updated_at()",
1831 + "exact": "b3eadeda82f2c43bf8e450434ea42a7a",
1832 + "config": [
1833 + "search_path=public"
1834 + ],
1835 + "return": "trigger",
1836 + "secdef": false,
1837 + "compact": "fa6e76dbdc52fe3c022e152185807dba",
1838 + "volatile": "v",
1839 + "arguments": ""
1840 + },
1841 + {
1842 + "key": "public.update_my_identity_profile(new_username text, new_full_name text)",
1843 + "exact": "de2f6fa7fe03c84abbe2c76f510e00a8",
1844 + "config": [
1845 + "search_path=\"\""
1846 + ],
1847 + "return": "void",
1848 + "secdef": true,
1849 + "compact": "291c508fb32b11685d3bee1859813e75",
1850 + "volatile": "v",
1851 + "arguments": "new_username text, new_full_name text DEFAULT NULL::text"
1852 + }
1853 + ]
1854 +}