@ai-matrx/media 0.7.16 → 0.9.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/CHANGELOG.md +25 -0
- package/dist/files/engine/api/assets.d.ts +223 -0
- package/dist/files/engine/api/assets.js +124 -0
- package/dist/files/engine/api/assets.js.map +1 -0
- package/dist/files/engine/api/direct.d.ts +43 -0
- package/dist/files/engine/api/direct.js +73 -0
- package/dist/files/engine/api/direct.js.map +1 -0
- package/dist/files/engine/api/fileOrganization.d.ts +34 -0
- package/dist/files/engine/api/fileOrganization.js +38 -0
- package/dist/files/engine/api/fileOrganization.js.map +1 -0
- package/dist/files/engine/api/files.d.ts +249 -0
- package/dist/files/engine/api/files.js +231 -0
- package/dist/files/engine/api/files.js.map +1 -0
- package/dist/files/engine/api/folders.d.ts +63 -0
- package/dist/files/engine/api/folders.js +56 -0
- package/dist/files/engine/api/folders.js.map +1 -0
- package/dist/files/engine/api/office.d.ts +27 -0
- package/dist/files/engine/api/office.js +19 -0
- package/dist/files/engine/api/office.js.map +1 -0
- package/dist/files/engine/api/permissions.d.ts +37 -0
- package/dist/files/engine/api/permissions.js +109 -0
- package/dist/files/engine/api/permissions.js.map +1 -0
- package/dist/files/engine/api/versions.d.ts +26 -0
- package/dist/files/engine/api/versions.js +37 -0
- package/dist/files/engine/api/versions.js.map +1 -0
- package/dist/files/engine/cache/idb-store.d.ts +95 -0
- package/dist/files/engine/cache/idb-store.js +172 -0
- package/dist/files/engine/cache/idb-store.js.map +1 -0
- package/dist/files/engine/cache/policy.d.ts +14 -0
- package/dist/files/engine/cache/policy.js +40 -0
- package/dist/files/engine/cache/policy.js.map +1 -0
- package/dist/files/engine/cache/register-service-worker.d.ts +57 -0
- package/dist/files/engine/cache/register-service-worker.js +80 -0
- package/dist/files/engine/cache/register-service-worker.js.map +1 -0
- package/dist/files/engine/db-types.d.ts +48865 -0
- package/dist/files/engine/db-types.js +1 -0
- package/dist/files/engine/db-types.js.map +1 -0
- package/dist/files/engine/filesDb.d.ts +1913 -0
- package/dist/files/engine/filesDb.js +28 -0
- package/dist/files/engine/filesDb.js.map +1 -0
- package/dist/files/engine/handler/handler.d.ts +82 -0
- package/dist/files/engine/handler/handler.js +124 -0
- package/dist/files/engine/handler/handler.js.map +1 -0
- package/dist/files/engine/handler/hooks/useFile.d.ts +17 -0
- package/dist/files/engine/handler/hooks/useFile.js +75 -0
- package/dist/files/engine/handler/hooks/useFile.js.map +1 -0
- package/dist/files/engine/handler/hooks/useFileUpload.d.ts +76 -0
- package/dist/files/engine/handler/hooks/useFileUpload.js +67 -0
- package/dist/files/engine/handler/hooks/useFileUpload.js.map +1 -0
- package/dist/files/engine/handler/input/normalize.d.ts +14 -0
- package/dist/files/engine/handler/input/normalize.js +365 -0
- package/dist/files/engine/handler/input/normalize.js.map +1 -0
- package/dist/files/engine/handler/intelligence/access.d.ts +35 -0
- package/dist/files/engine/handler/intelligence/access.js +85 -0
- package/dist/files/engine/handler/intelligence/access.js.map +1 -0
- package/dist/files/engine/handler/intelligence/magic-bytes.d.ts +21 -0
- package/dist/files/engine/handler/intelligence/magic-bytes.js +67 -0
- package/dist/files/engine/handler/intelligence/magic-bytes.js.map +1 -0
- package/dist/files/engine/handler/output/target.d.ts +19 -0
- package/dist/files/engine/handler/output/target.js +222 -0
- package/dist/files/engine/handler/output/target.js.map +1 -0
- package/dist/files/engine/handler/resolver.d.ts +34 -0
- package/dist/files/engine/handler/resolver.js +133 -0
- package/dist/files/engine/handler/resolver.js.map +1 -0
- package/dist/files/engine/handler/types.d.ts +367 -0
- package/dist/files/engine/handler/types.js +1 -0
- package/dist/files/engine/handler/types.js.map +1 -0
- package/dist/files/engine/handler/upload.d.ts +32 -0
- package/dist/files/engine/handler/upload.js +295 -0
- package/dist/files/engine/handler/upload.js.map +1 -0
- package/dist/files/engine/handler/utils/classify.d.ts +14 -0
- package/dist/files/engine/handler/utils/classify.js +27 -0
- package/dist/files/engine/handler/utils/classify.js.map +1 -0
- package/dist/files/engine/handler/utils/prefer-locator.d.ts +32 -0
- package/dist/files/engine/handler/utils/prefer-locator.js +34 -0
- package/dist/files/engine/handler/utils/prefer-locator.js.map +1 -0
- package/dist/files/engine/handler/utils/python-base.d.ts +129 -0
- package/dist/files/engine/handler/utils/python-base.js +60 -0
- package/dist/files/engine/handler/utils/python-base.js.map +1 -0
- package/dist/files/engine/hooks/blob-cache.d.ts +130 -0
- package/dist/files/engine/hooks/blob-cache.js +162 -0
- package/dist/files/engine/hooks/blob-cache.js.map +1 -0
- package/dist/files/engine/hooks/office-extraction-cache.d.ts +28 -0
- package/dist/files/engine/hooks/office-extraction-cache.js +67 -0
- package/dist/files/engine/hooks/office-extraction-cache.js.map +1 -0
- package/dist/files/engine/host/configure.d.ts +166 -0
- package/dist/files/engine/host/configure.js +30 -0
- package/dist/files/engine/host/configure.js.map +1 -0
- package/dist/files/engine/host/org.d.ts +8 -0
- package/dist/files/engine/host/org.js +16 -0
- package/dist/files/engine/host/org.js.map +1 -0
- package/dist/files/engine/host/python-client.d.ts +60 -0
- package/dist/files/engine/host/python-client.js +46 -0
- package/dist/files/engine/host/python-client.js.map +1 -0
- package/dist/files/engine/host/share-links.d.ts +20 -0
- package/dist/files/engine/host/share-links.js +32 -0
- package/dist/files/engine/host/share-links.js.map +1 -0
- package/dist/files/engine/host/store.d.ts +24 -0
- package/dist/files/engine/host/store.js +23 -0
- package/dist/files/engine/host/store.js.map +1 -0
- package/dist/files/engine/host/supabase.d.ts +3808 -0
- package/dist/files/engine/host/supabase.js +33 -0
- package/dist/files/engine/host/supabase.js.map +1 -0
- package/dist/files/engine/host/toast.d.ts +14 -0
- package/dist/files/engine/host/toast.js +20 -0
- package/dist/files/engine/host/toast.js.map +1 -0
- package/dist/files/engine/host/typed-client.d.ts +136 -0
- package/dist/files/engine/host/typed-client.js +66 -0
- package/dist/files/engine/host/typed-client.js.map +1 -0
- package/dist/files/engine/index.d.ts +22 -0
- package/dist/files/engine/index.js +49 -0
- package/dist/files/engine/index.js.map +1 -0
- package/dist/files/engine/media/our-file-sources.d.ts +39 -0
- package/dist/files/engine/media/our-file-sources.js +83 -0
- package/dist/files/engine/media/our-file-sources.js.map +1 -0
- package/dist/files/engine/media/signed-url.d.ts +1 -0
- package/dist/files/engine/media/signed-url.js +6 -0
- package/dist/files/engine/media/signed-url.js.map +1 -0
- package/dist/files/engine/redux/converters.d.ts +73 -0
- package/dist/files/engine/redux/converters.js +286 -0
- package/dist/files/engine/redux/converters.js.map +1 -0
- package/dist/files/engine/redux/file-hydration.d.ts +15 -0
- package/dist/files/engine/redux/file-hydration.js +46 -0
- package/dist/files/engine/redux/file-hydration.js.map +1 -0
- package/dist/files/engine/redux/file-tree-auth-boundary.d.ts +5 -0
- package/dist/files/engine/redux/file-tree-auth-boundary.js +28 -0
- package/dist/files/engine/redux/file-tree-auth-boundary.js.map +1 -0
- package/dist/files/engine/redux/file-tree-timeout.d.ts +32 -0
- package/dist/files/engine/redux/file-tree-timeout.js +73 -0
- package/dist/files/engine/redux/file-tree-timeout.js.map +1 -0
- package/dist/files/engine/redux/mutation-toast-middleware.d.ts +27 -0
- package/dist/files/engine/redux/mutation-toast-middleware.js +103 -0
- package/dist/files/engine/redux/mutation-toast-middleware.js.map +1 -0
- package/dist/files/engine/redux/realtime-middleware.d.ts +61 -0
- package/dist/files/engine/redux/realtime-middleware.js +431 -0
- package/dist/files/engine/redux/realtime-middleware.js.map +1 -0
- package/dist/files/engine/redux/request-ledger.d.ts +68 -0
- package/dist/files/engine/redux/request-ledger.js +66 -0
- package/dist/files/engine/redux/request-ledger.js.map +1 -0
- package/dist/files/engine/redux/selectors.d.ts +3254 -0
- package/dist/files/engine/redux/selectors.js +428 -0
- package/dist/files/engine/redux/selectors.js.map +1 -0
- package/dist/files/engine/redux/slice.d.ts +157 -0
- package/dist/files/engine/redux/slice.js +836 -0
- package/dist/files/engine/redux/slice.js.map +1 -0
- package/dist/files/engine/redux/thunks.d.ts +449 -0
- package/dist/files/engine/redux/thunks.js +1684 -0
- package/dist/files/engine/redux/thunks.js.map +1 -0
- package/dist/files/engine/redux/tree-utils.d.ts +90 -0
- package/dist/files/engine/redux/tree-utils.js +200 -0
- package/dist/files/engine/redux/tree-utils.js.map +1 -0
- package/dist/files/engine/support/claimsUser.d.ts +77 -0
- package/dist/files/engine/support/claimsUser.js +48 -0
- package/dist/files/engine/support/claimsUser.js.map +1 -0
- package/dist/files/engine/support/datetime.d.ts +6 -0
- package/dist/files/engine/support/datetime.js +15 -0
- package/dist/files/engine/support/datetime.js.map +1 -0
- package/dist/files/engine/support/document-visibility.d.ts +14 -0
- package/dist/files/engine/support/document-visibility.js +28 -0
- package/dist/files/engine/support/document-visibility.js.map +1 -0
- package/dist/files/engine/support/logger.d.ts +28 -0
- package/dist/files/engine/support/logger.js +36 -0
- package/dist/files/engine/support/logger.js.map +1 -0
- package/dist/files/engine/types.d.ts +1081 -0
- package/dist/files/engine/types.js +30 -0
- package/dist/files/engine/types.js.map +1 -0
- package/dist/files/engine/upload/cloudUpload.d.ts +182 -0
- package/dist/files/engine/upload/cloudUpload.js +418 -0
- package/dist/files/engine/upload/cloudUpload.js.map +1 -0
- package/dist/files/engine/upload/tusUpload.d.ts +100 -0
- package/dist/files/engine/upload/tusUpload.js +258 -0
- package/dist/files/engine/upload/tusUpload.js.map +1 -0
- package/dist/files/engine/upload/uploadDedupGuard.d.ts +58 -0
- package/dist/files/engine/upload/uploadDedupGuard.js +41 -0
- package/dist/files/engine/upload/uploadDedupGuard.js.map +1 -0
- package/dist/files/engine/upload/uploadGuardOpeners.d.ts +70 -0
- package/dist/files/engine/upload/uploadGuardOpeners.js +54 -0
- package/dist/files/engine/upload/uploadGuardOpeners.js.map +1 -0
- package/dist/files/engine/utils/file-types.d.ts +243 -0
- package/dist/files/engine/utils/file-types.js +1722 -0
- package/dist/files/engine/utils/file-types.js.map +1 -0
- package/dist/files/engine/utils/user-visible.d.ts +133 -0
- package/dist/files/engine/utils/user-visible.js +115 -0
- package/dist/files/engine/utils/user-visible.js.map +1 -0
- package/dist/files.cjs +1298 -0
- package/dist/files.cjs.map +1 -0
- package/dist/files.d.cts +1171 -0
- package/dist/files.d.ts +1171 -0
- package/dist/files.js +1275 -0
- package/dist/files.js.map +1 -0
- package/package.json +404 -9
|
@@ -0,0 +1,3808 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Database seam — the host's supabase-js client, read at CALL time. Same
|
|
3
|
+
* names the call sites imported from matrx-frontend's `utils/supabase/*` and
|
|
4
|
+
* `lib/supabase/authRetry`.
|
|
5
|
+
*/
|
|
6
|
+
import type { SupabaseClient } from "@supabase/supabase-js";
|
|
7
|
+
import type { FilesDatabase } from "../db-types.js";
|
|
8
|
+
export { isMissingSessionError, SessionUnavailableError, type AuthRetryableResult, } from "@ai-matrx/data/db";
|
|
9
|
+
export { getClaimsUser } from "../support/claimsUser.js";
|
|
10
|
+
export type FilesDb = SupabaseClient<FilesDatabase>;
|
|
11
|
+
/** The configured host's database client. */
|
|
12
|
+
export declare function createClient(): FilesDb;
|
|
13
|
+
/**
|
|
14
|
+
* `supabase` as the call sites knew it: every property read goes to the
|
|
15
|
+
* configured host's client at that moment (methods stay bound to it).
|
|
16
|
+
*/
|
|
17
|
+
export declare const supabase: FilesDb;
|
|
18
|
+
export declare function iamDb<C extends FilesDb>(client: C): import("@supabase/postgrest-js").PostgrestClient<FilesDatabase, {
|
|
19
|
+
PostgrestVersion: "14.5";
|
|
20
|
+
}, "iam", {
|
|
21
|
+
Tables: {
|
|
22
|
+
_org_availability_key: {
|
|
23
|
+
Row: {
|
|
24
|
+
key: string;
|
|
25
|
+
};
|
|
26
|
+
Insert: {
|
|
27
|
+
key: string;
|
|
28
|
+
};
|
|
29
|
+
Update: {
|
|
30
|
+
key?: string;
|
|
31
|
+
};
|
|
32
|
+
Relationships: [];
|
|
33
|
+
};
|
|
34
|
+
access_audit: {
|
|
35
|
+
Row: {
|
|
36
|
+
action: string;
|
|
37
|
+
actor_user_id: string | null;
|
|
38
|
+
basis: string;
|
|
39
|
+
created_at: string;
|
|
40
|
+
created_by: string | null;
|
|
41
|
+
data_class: string;
|
|
42
|
+
deleted_at: string | null;
|
|
43
|
+
denial_reason: string | null;
|
|
44
|
+
grant_expires_at: string | null;
|
|
45
|
+
granted: boolean;
|
|
46
|
+
granted_to_user_id: string | null;
|
|
47
|
+
id: string;
|
|
48
|
+
is_emergency_door: boolean;
|
|
49
|
+
justification: string | null;
|
|
50
|
+
metadata: import("../db-types.js").Json;
|
|
51
|
+
occurred_at: string;
|
|
52
|
+
organization_id: string;
|
|
53
|
+
permission_id: string | null;
|
|
54
|
+
purpose: string;
|
|
55
|
+
request_context: import("../db-types.js").Json;
|
|
56
|
+
request_id: string | null;
|
|
57
|
+
row_count: number | null;
|
|
58
|
+
shown_to: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
59
|
+
subject_user_id: string | null;
|
|
60
|
+
target_ids: string[];
|
|
61
|
+
target_token: string;
|
|
62
|
+
updated_at: string;
|
|
63
|
+
updated_by: string | null;
|
|
64
|
+
version: number;
|
|
65
|
+
visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
66
|
+
};
|
|
67
|
+
Insert: {
|
|
68
|
+
action: string;
|
|
69
|
+
actor_user_id?: string | null;
|
|
70
|
+
basis: string;
|
|
71
|
+
created_at?: string;
|
|
72
|
+
created_by?: string | null;
|
|
73
|
+
data_class: string;
|
|
74
|
+
deleted_at?: string | null;
|
|
75
|
+
denial_reason?: string | null;
|
|
76
|
+
grant_expires_at?: string | null;
|
|
77
|
+
granted: boolean;
|
|
78
|
+
granted_to_user_id?: string | null;
|
|
79
|
+
id?: string;
|
|
80
|
+
is_emergency_door?: boolean;
|
|
81
|
+
justification?: string | null;
|
|
82
|
+
metadata?: import("../db-types.js").Json;
|
|
83
|
+
occurred_at?: string;
|
|
84
|
+
organization_id: string;
|
|
85
|
+
permission_id?: string | null;
|
|
86
|
+
purpose: string;
|
|
87
|
+
request_context?: import("../db-types.js").Json;
|
|
88
|
+
request_id?: string | null;
|
|
89
|
+
row_count?: number | null;
|
|
90
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
91
|
+
subject_user_id?: string | null;
|
|
92
|
+
target_ids?: string[];
|
|
93
|
+
target_token: string;
|
|
94
|
+
updated_at?: string;
|
|
95
|
+
updated_by?: string | null;
|
|
96
|
+
version?: number;
|
|
97
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
98
|
+
};
|
|
99
|
+
Update: {
|
|
100
|
+
action?: string;
|
|
101
|
+
actor_user_id?: string | null;
|
|
102
|
+
basis?: string;
|
|
103
|
+
created_at?: string;
|
|
104
|
+
created_by?: string | null;
|
|
105
|
+
data_class?: string;
|
|
106
|
+
deleted_at?: string | null;
|
|
107
|
+
denial_reason?: string | null;
|
|
108
|
+
grant_expires_at?: string | null;
|
|
109
|
+
granted?: boolean;
|
|
110
|
+
granted_to_user_id?: string | null;
|
|
111
|
+
id?: string;
|
|
112
|
+
is_emergency_door?: boolean;
|
|
113
|
+
justification?: string | null;
|
|
114
|
+
metadata?: import("../db-types.js").Json;
|
|
115
|
+
occurred_at?: string;
|
|
116
|
+
organization_id?: string;
|
|
117
|
+
permission_id?: string | null;
|
|
118
|
+
purpose?: string;
|
|
119
|
+
request_context?: import("../db-types.js").Json;
|
|
120
|
+
request_id?: string | null;
|
|
121
|
+
row_count?: number | null;
|
|
122
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
123
|
+
subject_user_id?: string | null;
|
|
124
|
+
target_ids?: string[];
|
|
125
|
+
target_token?: string;
|
|
126
|
+
updated_at?: string;
|
|
127
|
+
updated_by?: string | null;
|
|
128
|
+
version?: number;
|
|
129
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
130
|
+
};
|
|
131
|
+
Relationships: [{
|
|
132
|
+
foreignKeyName: "access_audit_actor_user_id_fkey";
|
|
133
|
+
columns: ["actor_user_id"];
|
|
134
|
+
isOneToOne: false;
|
|
135
|
+
referencedRelation: "users";
|
|
136
|
+
referencedColumns: ["id"];
|
|
137
|
+
}, {
|
|
138
|
+
foreignKeyName: "access_audit_created_by_fkey";
|
|
139
|
+
columns: ["created_by"];
|
|
140
|
+
isOneToOne: false;
|
|
141
|
+
referencedRelation: "users";
|
|
142
|
+
referencedColumns: ["id"];
|
|
143
|
+
}, {
|
|
144
|
+
foreignKeyName: "access_audit_granted_to_user_id_fkey";
|
|
145
|
+
columns: ["granted_to_user_id"];
|
|
146
|
+
isOneToOne: false;
|
|
147
|
+
referencedRelation: "users";
|
|
148
|
+
referencedColumns: ["id"];
|
|
149
|
+
}, {
|
|
150
|
+
foreignKeyName: "access_audit_organization_id_fkey";
|
|
151
|
+
columns: ["organization_id"];
|
|
152
|
+
isOneToOne: false;
|
|
153
|
+
referencedRelation: "organizations";
|
|
154
|
+
referencedColumns: ["id"];
|
|
155
|
+
}, {
|
|
156
|
+
foreignKeyName: "access_audit_subject_user_id_fkey";
|
|
157
|
+
columns: ["subject_user_id"];
|
|
158
|
+
isOneToOne: false;
|
|
159
|
+
referencedRelation: "users";
|
|
160
|
+
referencedColumns: ["id"];
|
|
161
|
+
}, {
|
|
162
|
+
foreignKeyName: "access_audit_updated_by_fkey";
|
|
163
|
+
columns: ["updated_by"];
|
|
164
|
+
isOneToOne: false;
|
|
165
|
+
referencedRelation: "users";
|
|
166
|
+
referencedColumns: ["id"];
|
|
167
|
+
}];
|
|
168
|
+
};
|
|
169
|
+
access_delta_probe: {
|
|
170
|
+
Row: {
|
|
171
|
+
error_text: string | null;
|
|
172
|
+
id_hash: string | null;
|
|
173
|
+
ids: string[] | null;
|
|
174
|
+
principal_id: string;
|
|
175
|
+
principal_label: string;
|
|
176
|
+
probed_at: string;
|
|
177
|
+
readable_columns: string[] | null;
|
|
178
|
+
readable_count: number | null;
|
|
179
|
+
run_id: string;
|
|
180
|
+
sampled: boolean;
|
|
181
|
+
schema_name: string;
|
|
182
|
+
table_name: string;
|
|
183
|
+
token: string;
|
|
184
|
+
};
|
|
185
|
+
Insert: {
|
|
186
|
+
error_text?: string | null;
|
|
187
|
+
id_hash?: string | null;
|
|
188
|
+
ids?: string[] | null;
|
|
189
|
+
principal_id: string;
|
|
190
|
+
principal_label: string;
|
|
191
|
+
probed_at?: string;
|
|
192
|
+
readable_columns?: string[] | null;
|
|
193
|
+
readable_count?: number | null;
|
|
194
|
+
run_id: string;
|
|
195
|
+
sampled?: boolean;
|
|
196
|
+
schema_name: string;
|
|
197
|
+
table_name: string;
|
|
198
|
+
token: string;
|
|
199
|
+
};
|
|
200
|
+
Update: {
|
|
201
|
+
error_text?: string | null;
|
|
202
|
+
id_hash?: string | null;
|
|
203
|
+
ids?: string[] | null;
|
|
204
|
+
principal_id?: string;
|
|
205
|
+
principal_label?: string;
|
|
206
|
+
probed_at?: string;
|
|
207
|
+
readable_columns?: string[] | null;
|
|
208
|
+
readable_count?: number | null;
|
|
209
|
+
run_id?: string;
|
|
210
|
+
sampled?: boolean;
|
|
211
|
+
schema_name?: string;
|
|
212
|
+
table_name?: string;
|
|
213
|
+
token?: string;
|
|
214
|
+
};
|
|
215
|
+
Relationships: [{
|
|
216
|
+
foreignKeyName: "access_delta_probe_run_id_fkey";
|
|
217
|
+
columns: ["run_id"];
|
|
218
|
+
isOneToOne: false;
|
|
219
|
+
referencedRelation: "access_delta_run";
|
|
220
|
+
referencedColumns: ["id"];
|
|
221
|
+
}];
|
|
222
|
+
};
|
|
223
|
+
access_delta_run: {
|
|
224
|
+
Row: {
|
|
225
|
+
finished_at: string | null;
|
|
226
|
+
id: string;
|
|
227
|
+
label: string;
|
|
228
|
+
note: string | null;
|
|
229
|
+
started_at: string;
|
|
230
|
+
};
|
|
231
|
+
Insert: {
|
|
232
|
+
finished_at?: string | null;
|
|
233
|
+
id?: string;
|
|
234
|
+
label: string;
|
|
235
|
+
note?: string | null;
|
|
236
|
+
started_at?: string;
|
|
237
|
+
};
|
|
238
|
+
Update: {
|
|
239
|
+
finished_at?: string | null;
|
|
240
|
+
id?: string;
|
|
241
|
+
label?: string;
|
|
242
|
+
note?: string | null;
|
|
243
|
+
started_at?: string;
|
|
244
|
+
};
|
|
245
|
+
Relationships: [];
|
|
246
|
+
};
|
|
247
|
+
access_requests: {
|
|
248
|
+
Row: {
|
|
249
|
+
created_at: string;
|
|
250
|
+
created_by: string;
|
|
251
|
+
decided_at: string | null;
|
|
252
|
+
decided_by: string | null;
|
|
253
|
+
decision_note: string | null;
|
|
254
|
+
deleted_at: string | null;
|
|
255
|
+
id: string;
|
|
256
|
+
message: string | null;
|
|
257
|
+
metadata: import("../db-types.js").Json;
|
|
258
|
+
organization_id: string;
|
|
259
|
+
published_to_web: boolean;
|
|
260
|
+
published_to_web_at: string | null;
|
|
261
|
+
published_to_web_by: string | null;
|
|
262
|
+
request_key: string;
|
|
263
|
+
request_kind: string;
|
|
264
|
+
request_payload: import("../db-types.js").Json;
|
|
265
|
+
requested_level: string;
|
|
266
|
+
resource_id: string;
|
|
267
|
+
resource_type: string;
|
|
268
|
+
shown_to: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
269
|
+
status: string;
|
|
270
|
+
updated_at: string;
|
|
271
|
+
updated_by: string | null;
|
|
272
|
+
version: number;
|
|
273
|
+
visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
274
|
+
};
|
|
275
|
+
Insert: {
|
|
276
|
+
created_at?: string;
|
|
277
|
+
created_by: string;
|
|
278
|
+
decided_at?: string | null;
|
|
279
|
+
decided_by?: string | null;
|
|
280
|
+
decision_note?: string | null;
|
|
281
|
+
deleted_at?: string | null;
|
|
282
|
+
id?: string;
|
|
283
|
+
message?: string | null;
|
|
284
|
+
metadata?: import("../db-types.js").Json;
|
|
285
|
+
organization_id: string;
|
|
286
|
+
published_to_web?: boolean;
|
|
287
|
+
published_to_web_at?: string | null;
|
|
288
|
+
published_to_web_by?: string | null;
|
|
289
|
+
request_key?: string;
|
|
290
|
+
request_kind?: string;
|
|
291
|
+
request_payload?: import("../db-types.js").Json;
|
|
292
|
+
requested_level?: string;
|
|
293
|
+
resource_id: string;
|
|
294
|
+
resource_type: string;
|
|
295
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
296
|
+
status?: string;
|
|
297
|
+
updated_at?: string;
|
|
298
|
+
updated_by?: string | null;
|
|
299
|
+
version?: number;
|
|
300
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
301
|
+
};
|
|
302
|
+
Update: {
|
|
303
|
+
created_at?: string;
|
|
304
|
+
created_by?: string;
|
|
305
|
+
decided_at?: string | null;
|
|
306
|
+
decided_by?: string | null;
|
|
307
|
+
decision_note?: string | null;
|
|
308
|
+
deleted_at?: string | null;
|
|
309
|
+
id?: string;
|
|
310
|
+
message?: string | null;
|
|
311
|
+
metadata?: import("../db-types.js").Json;
|
|
312
|
+
organization_id?: string;
|
|
313
|
+
published_to_web?: boolean;
|
|
314
|
+
published_to_web_at?: string | null;
|
|
315
|
+
published_to_web_by?: string | null;
|
|
316
|
+
request_key?: string;
|
|
317
|
+
request_kind?: string;
|
|
318
|
+
request_payload?: import("../db-types.js").Json;
|
|
319
|
+
requested_level?: string;
|
|
320
|
+
resource_id?: string;
|
|
321
|
+
resource_type?: string;
|
|
322
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
323
|
+
status?: string;
|
|
324
|
+
updated_at?: string;
|
|
325
|
+
updated_by?: string | null;
|
|
326
|
+
version?: number;
|
|
327
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
328
|
+
};
|
|
329
|
+
Relationships: [{
|
|
330
|
+
foreignKeyName: "access_requests_created_by_fkey";
|
|
331
|
+
columns: ["created_by"];
|
|
332
|
+
isOneToOne: false;
|
|
333
|
+
referencedRelation: "users";
|
|
334
|
+
referencedColumns: ["id"];
|
|
335
|
+
}, {
|
|
336
|
+
foreignKeyName: "access_requests_decided_by_fkey";
|
|
337
|
+
columns: ["decided_by"];
|
|
338
|
+
isOneToOne: false;
|
|
339
|
+
referencedRelation: "users";
|
|
340
|
+
referencedColumns: ["id"];
|
|
341
|
+
}, {
|
|
342
|
+
foreignKeyName: "access_requests_organization_id_fkey";
|
|
343
|
+
columns: ["organization_id"];
|
|
344
|
+
isOneToOne: false;
|
|
345
|
+
referencedRelation: "organizations";
|
|
346
|
+
referencedColumns: ["id"];
|
|
347
|
+
}, {
|
|
348
|
+
foreignKeyName: "access_requests_updated_by_fkey";
|
|
349
|
+
columns: ["updated_by"];
|
|
350
|
+
isOneToOne: false;
|
|
351
|
+
referencedRelation: "users";
|
|
352
|
+
referencedColumns: ["id"];
|
|
353
|
+
}];
|
|
354
|
+
};
|
|
355
|
+
api_keys: {
|
|
356
|
+
Row: {
|
|
357
|
+
created_at: string;
|
|
358
|
+
created_by: string | null;
|
|
359
|
+
custom_fields: import("../db-types.js").Json;
|
|
360
|
+
deleted_at: string | null;
|
|
361
|
+
display_prefix: string;
|
|
362
|
+
expires_at: string | null;
|
|
363
|
+
id: string;
|
|
364
|
+
key_id: string;
|
|
365
|
+
last_used_at: string | null;
|
|
366
|
+
metadata: import("../db-types.js").Json;
|
|
367
|
+
name: string;
|
|
368
|
+
organization_id: string;
|
|
369
|
+
published_to_web: boolean;
|
|
370
|
+
published_to_web_at: string | null;
|
|
371
|
+
published_to_web_by: string | null;
|
|
372
|
+
revoked_at: string | null;
|
|
373
|
+
secret_hash: string;
|
|
374
|
+
service_user_id: string;
|
|
375
|
+
shown_to: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
376
|
+
status: string;
|
|
377
|
+
updated_at: string;
|
|
378
|
+
updated_by: string | null;
|
|
379
|
+
version: number;
|
|
380
|
+
visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
381
|
+
};
|
|
382
|
+
Insert: {
|
|
383
|
+
created_at?: string;
|
|
384
|
+
created_by?: string | null;
|
|
385
|
+
custom_fields?: import("../db-types.js").Json;
|
|
386
|
+
deleted_at?: string | null;
|
|
387
|
+
display_prefix: string;
|
|
388
|
+
expires_at?: string | null;
|
|
389
|
+
id?: string;
|
|
390
|
+
key_id: string;
|
|
391
|
+
last_used_at?: string | null;
|
|
392
|
+
metadata?: import("../db-types.js").Json;
|
|
393
|
+
name: string;
|
|
394
|
+
organization_id: string;
|
|
395
|
+
published_to_web?: boolean;
|
|
396
|
+
published_to_web_at?: string | null;
|
|
397
|
+
published_to_web_by?: string | null;
|
|
398
|
+
revoked_at?: string | null;
|
|
399
|
+
secret_hash: string;
|
|
400
|
+
service_user_id: string;
|
|
401
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
402
|
+
status?: string;
|
|
403
|
+
updated_at?: string;
|
|
404
|
+
updated_by?: string | null;
|
|
405
|
+
version?: number;
|
|
406
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
407
|
+
};
|
|
408
|
+
Update: {
|
|
409
|
+
created_at?: string;
|
|
410
|
+
created_by?: string | null;
|
|
411
|
+
custom_fields?: import("../db-types.js").Json;
|
|
412
|
+
deleted_at?: string | null;
|
|
413
|
+
display_prefix?: string;
|
|
414
|
+
expires_at?: string | null;
|
|
415
|
+
id?: string;
|
|
416
|
+
key_id?: string;
|
|
417
|
+
last_used_at?: string | null;
|
|
418
|
+
metadata?: import("../db-types.js").Json;
|
|
419
|
+
name?: string;
|
|
420
|
+
organization_id?: string;
|
|
421
|
+
published_to_web?: boolean;
|
|
422
|
+
published_to_web_at?: string | null;
|
|
423
|
+
published_to_web_by?: string | null;
|
|
424
|
+
revoked_at?: string | null;
|
|
425
|
+
secret_hash?: string;
|
|
426
|
+
service_user_id?: string;
|
|
427
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
428
|
+
status?: string;
|
|
429
|
+
updated_at?: string;
|
|
430
|
+
updated_by?: string | null;
|
|
431
|
+
version?: number;
|
|
432
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
433
|
+
};
|
|
434
|
+
Relationships: [{
|
|
435
|
+
foreignKeyName: "api_keys_created_by_fkey";
|
|
436
|
+
columns: ["created_by"];
|
|
437
|
+
isOneToOne: false;
|
|
438
|
+
referencedRelation: "users";
|
|
439
|
+
referencedColumns: ["id"];
|
|
440
|
+
}, {
|
|
441
|
+
foreignKeyName: "api_keys_organization_id_fkey";
|
|
442
|
+
columns: ["organization_id"];
|
|
443
|
+
isOneToOne: false;
|
|
444
|
+
referencedRelation: "organizations";
|
|
445
|
+
referencedColumns: ["id"];
|
|
446
|
+
}, {
|
|
447
|
+
foreignKeyName: "api_keys_service_user_id_fkey";
|
|
448
|
+
columns: ["service_user_id"];
|
|
449
|
+
isOneToOne: false;
|
|
450
|
+
referencedRelation: "users";
|
|
451
|
+
referencedColumns: ["id"];
|
|
452
|
+
}, {
|
|
453
|
+
foreignKeyName: "api_keys_updated_by_fkey";
|
|
454
|
+
columns: ["updated_by"];
|
|
455
|
+
isOneToOne: false;
|
|
456
|
+
referencedRelation: "users";
|
|
457
|
+
referencedColumns: ["id"];
|
|
458
|
+
}];
|
|
459
|
+
};
|
|
460
|
+
content_lane: {
|
|
461
|
+
Row: {
|
|
462
|
+
created_at: string;
|
|
463
|
+
discoverable: boolean;
|
|
464
|
+
entered_world_at: string | null;
|
|
465
|
+
entered_world_by: string | null;
|
|
466
|
+
lane: string;
|
|
467
|
+
link_sharing: boolean;
|
|
468
|
+
organization_id: string;
|
|
469
|
+
resource_id: string;
|
|
470
|
+
resource_type: string;
|
|
471
|
+
unlisted: boolean;
|
|
472
|
+
updated_at: string;
|
|
473
|
+
};
|
|
474
|
+
Insert: {
|
|
475
|
+
created_at?: string;
|
|
476
|
+
discoverable?: boolean;
|
|
477
|
+
entered_world_at?: string | null;
|
|
478
|
+
entered_world_by?: string | null;
|
|
479
|
+
lane?: string;
|
|
480
|
+
link_sharing?: boolean;
|
|
481
|
+
organization_id: string;
|
|
482
|
+
resource_id: string;
|
|
483
|
+
resource_type: string;
|
|
484
|
+
unlisted?: boolean;
|
|
485
|
+
updated_at?: string;
|
|
486
|
+
};
|
|
487
|
+
Update: {
|
|
488
|
+
created_at?: string;
|
|
489
|
+
discoverable?: boolean;
|
|
490
|
+
entered_world_at?: string | null;
|
|
491
|
+
entered_world_by?: string | null;
|
|
492
|
+
lane?: string;
|
|
493
|
+
link_sharing?: boolean;
|
|
494
|
+
organization_id?: string;
|
|
495
|
+
resource_id?: string;
|
|
496
|
+
resource_type?: string;
|
|
497
|
+
unlisted?: boolean;
|
|
498
|
+
updated_at?: string;
|
|
499
|
+
};
|
|
500
|
+
Relationships: [{
|
|
501
|
+
foreignKeyName: "content_lane_entered_world_by_fkey";
|
|
502
|
+
columns: ["entered_world_by"];
|
|
503
|
+
isOneToOne: false;
|
|
504
|
+
referencedRelation: "users";
|
|
505
|
+
referencedColumns: ["id"];
|
|
506
|
+
}, {
|
|
507
|
+
foreignKeyName: "content_lane_organization_id_fkey";
|
|
508
|
+
columns: ["organization_id"];
|
|
509
|
+
isOneToOne: false;
|
|
510
|
+
referencedRelation: "organizations";
|
|
511
|
+
referencedColumns: ["id"];
|
|
512
|
+
}];
|
|
513
|
+
};
|
|
514
|
+
definer_class_exemption: {
|
|
515
|
+
Row: {
|
|
516
|
+
declared_at: string;
|
|
517
|
+
declared_by: string;
|
|
518
|
+
function_name: string;
|
|
519
|
+
id: string;
|
|
520
|
+
identity_args: string;
|
|
521
|
+
reason: string;
|
|
522
|
+
schema_name: string;
|
|
523
|
+
};
|
|
524
|
+
Insert: {
|
|
525
|
+
declared_at?: string;
|
|
526
|
+
declared_by: string;
|
|
527
|
+
function_name: string;
|
|
528
|
+
id?: string;
|
|
529
|
+
identity_args?: string;
|
|
530
|
+
reason: string;
|
|
531
|
+
schema_name: string;
|
|
532
|
+
};
|
|
533
|
+
Update: {
|
|
534
|
+
declared_at?: string;
|
|
535
|
+
declared_by?: string;
|
|
536
|
+
function_name?: string;
|
|
537
|
+
id?: string;
|
|
538
|
+
identity_args?: string;
|
|
539
|
+
reason?: string;
|
|
540
|
+
schema_name?: string;
|
|
541
|
+
};
|
|
542
|
+
Relationships: [];
|
|
543
|
+
};
|
|
544
|
+
emergency_door_request: {
|
|
545
|
+
Row: {
|
|
546
|
+
created_at: string;
|
|
547
|
+
created_by: string | null;
|
|
548
|
+
data_class: string;
|
|
549
|
+
decided_at: string | null;
|
|
550
|
+
decided_by: string | null;
|
|
551
|
+
decision_note: string | null;
|
|
552
|
+
deleted_at: string | null;
|
|
553
|
+
grant_expires_at: string | null;
|
|
554
|
+
id: string;
|
|
555
|
+
justification: string;
|
|
556
|
+
metadata: import("../db-types.js").Json;
|
|
557
|
+
organization_id: string;
|
|
558
|
+
permission_id: string | null;
|
|
559
|
+
published_to_web: boolean;
|
|
560
|
+
published_to_web_at: string | null;
|
|
561
|
+
published_to_web_by: string | null;
|
|
562
|
+
purpose: string;
|
|
563
|
+
request_expires_at: string;
|
|
564
|
+
requested_by: string;
|
|
565
|
+
shown_to: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
566
|
+
status: string;
|
|
567
|
+
subject_user_id: string | null;
|
|
568
|
+
target_id: string;
|
|
569
|
+
target_token: string;
|
|
570
|
+
updated_at: string;
|
|
571
|
+
updated_by: string | null;
|
|
572
|
+
version: number;
|
|
573
|
+
visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
574
|
+
};
|
|
575
|
+
Insert: {
|
|
576
|
+
created_at?: string;
|
|
577
|
+
created_by?: string | null;
|
|
578
|
+
data_class: string;
|
|
579
|
+
decided_at?: string | null;
|
|
580
|
+
decided_by?: string | null;
|
|
581
|
+
decision_note?: string | null;
|
|
582
|
+
deleted_at?: string | null;
|
|
583
|
+
grant_expires_at?: string | null;
|
|
584
|
+
id?: string;
|
|
585
|
+
justification: string;
|
|
586
|
+
metadata?: import("../db-types.js").Json;
|
|
587
|
+
organization_id: string;
|
|
588
|
+
permission_id?: string | null;
|
|
589
|
+
published_to_web?: boolean;
|
|
590
|
+
published_to_web_at?: string | null;
|
|
591
|
+
published_to_web_by?: string | null;
|
|
592
|
+
purpose: string;
|
|
593
|
+
request_expires_at: string;
|
|
594
|
+
requested_by: string;
|
|
595
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
596
|
+
status?: string;
|
|
597
|
+
subject_user_id?: string | null;
|
|
598
|
+
target_id: string;
|
|
599
|
+
target_token: string;
|
|
600
|
+
updated_at?: string;
|
|
601
|
+
updated_by?: string | null;
|
|
602
|
+
version?: number;
|
|
603
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
604
|
+
};
|
|
605
|
+
Update: {
|
|
606
|
+
created_at?: string;
|
|
607
|
+
created_by?: string | null;
|
|
608
|
+
data_class?: string;
|
|
609
|
+
decided_at?: string | null;
|
|
610
|
+
decided_by?: string | null;
|
|
611
|
+
decision_note?: string | null;
|
|
612
|
+
deleted_at?: string | null;
|
|
613
|
+
grant_expires_at?: string | null;
|
|
614
|
+
id?: string;
|
|
615
|
+
justification?: string;
|
|
616
|
+
metadata?: import("../db-types.js").Json;
|
|
617
|
+
organization_id?: string;
|
|
618
|
+
permission_id?: string | null;
|
|
619
|
+
published_to_web?: boolean;
|
|
620
|
+
published_to_web_at?: string | null;
|
|
621
|
+
published_to_web_by?: string | null;
|
|
622
|
+
purpose?: string;
|
|
623
|
+
request_expires_at?: string;
|
|
624
|
+
requested_by?: string;
|
|
625
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
626
|
+
status?: string;
|
|
627
|
+
subject_user_id?: string | null;
|
|
628
|
+
target_id?: string;
|
|
629
|
+
target_token?: string;
|
|
630
|
+
updated_at?: string;
|
|
631
|
+
updated_by?: string | null;
|
|
632
|
+
version?: number;
|
|
633
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
634
|
+
};
|
|
635
|
+
Relationships: [{
|
|
636
|
+
foreignKeyName: "emergency_door_request_created_by_fkey";
|
|
637
|
+
columns: ["created_by"];
|
|
638
|
+
isOneToOne: false;
|
|
639
|
+
referencedRelation: "users";
|
|
640
|
+
referencedColumns: ["id"];
|
|
641
|
+
}, {
|
|
642
|
+
foreignKeyName: "emergency_door_request_decided_by_fkey";
|
|
643
|
+
columns: ["decided_by"];
|
|
644
|
+
isOneToOne: false;
|
|
645
|
+
referencedRelation: "users";
|
|
646
|
+
referencedColumns: ["id"];
|
|
647
|
+
}, {
|
|
648
|
+
foreignKeyName: "emergency_door_request_organization_id_fkey";
|
|
649
|
+
columns: ["organization_id"];
|
|
650
|
+
isOneToOne: false;
|
|
651
|
+
referencedRelation: "organizations";
|
|
652
|
+
referencedColumns: ["id"];
|
|
653
|
+
}, {
|
|
654
|
+
foreignKeyName: "emergency_door_request_requested_by_fkey";
|
|
655
|
+
columns: ["requested_by"];
|
|
656
|
+
isOneToOne: false;
|
|
657
|
+
referencedRelation: "users";
|
|
658
|
+
referencedColumns: ["id"];
|
|
659
|
+
}, {
|
|
660
|
+
foreignKeyName: "emergency_door_request_subject_user_id_fkey";
|
|
661
|
+
columns: ["subject_user_id"];
|
|
662
|
+
isOneToOne: false;
|
|
663
|
+
referencedRelation: "users";
|
|
664
|
+
referencedColumns: ["id"];
|
|
665
|
+
}, {
|
|
666
|
+
foreignKeyName: "emergency_door_request_updated_by_fkey";
|
|
667
|
+
columns: ["updated_by"];
|
|
668
|
+
isOneToOne: false;
|
|
669
|
+
referencedRelation: "users";
|
|
670
|
+
referencedColumns: ["id"];
|
|
671
|
+
}];
|
|
672
|
+
};
|
|
673
|
+
industries: {
|
|
674
|
+
Row: {
|
|
675
|
+
created_at: string;
|
|
676
|
+
created_by: string | null;
|
|
677
|
+
default_template_id: string | null;
|
|
678
|
+
deleted_at: string | null;
|
|
679
|
+
description: string | null;
|
|
680
|
+
facet: string;
|
|
681
|
+
id: string;
|
|
682
|
+
is_active: boolean;
|
|
683
|
+
metadata: import("../db-types.js").Json;
|
|
684
|
+
name: string;
|
|
685
|
+
organization_id: string;
|
|
686
|
+
parent_id: string | null;
|
|
687
|
+
published_to_web: boolean;
|
|
688
|
+
published_to_web_at: string | null;
|
|
689
|
+
published_to_web_by: string | null;
|
|
690
|
+
shown_to: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
691
|
+
slug: string;
|
|
692
|
+
sort_order: number;
|
|
693
|
+
updated_at: string;
|
|
694
|
+
updated_by: string | null;
|
|
695
|
+
version: number;
|
|
696
|
+
visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
697
|
+
};
|
|
698
|
+
Insert: {
|
|
699
|
+
created_at?: string;
|
|
700
|
+
created_by?: string | null;
|
|
701
|
+
default_template_id?: string | null;
|
|
702
|
+
deleted_at?: string | null;
|
|
703
|
+
description?: string | null;
|
|
704
|
+
facet?: string;
|
|
705
|
+
id?: string;
|
|
706
|
+
is_active?: boolean;
|
|
707
|
+
metadata?: import("../db-types.js").Json;
|
|
708
|
+
name: string;
|
|
709
|
+
organization_id: string;
|
|
710
|
+
parent_id?: string | null;
|
|
711
|
+
published_to_web?: boolean;
|
|
712
|
+
published_to_web_at?: string | null;
|
|
713
|
+
published_to_web_by?: string | null;
|
|
714
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
715
|
+
slug: string;
|
|
716
|
+
sort_order?: number;
|
|
717
|
+
updated_at?: string;
|
|
718
|
+
updated_by?: string | null;
|
|
719
|
+
version?: number;
|
|
720
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
721
|
+
};
|
|
722
|
+
Update: {
|
|
723
|
+
created_at?: string;
|
|
724
|
+
created_by?: string | null;
|
|
725
|
+
default_template_id?: string | null;
|
|
726
|
+
deleted_at?: string | null;
|
|
727
|
+
description?: string | null;
|
|
728
|
+
facet?: string;
|
|
729
|
+
id?: string;
|
|
730
|
+
is_active?: boolean;
|
|
731
|
+
metadata?: import("../db-types.js").Json;
|
|
732
|
+
name?: string;
|
|
733
|
+
organization_id?: string;
|
|
734
|
+
parent_id?: string | null;
|
|
735
|
+
published_to_web?: boolean;
|
|
736
|
+
published_to_web_at?: string | null;
|
|
737
|
+
published_to_web_by?: string | null;
|
|
738
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
739
|
+
slug?: string;
|
|
740
|
+
sort_order?: number;
|
|
741
|
+
updated_at?: string;
|
|
742
|
+
updated_by?: string | null;
|
|
743
|
+
version?: number;
|
|
744
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
745
|
+
};
|
|
746
|
+
Relationships: [{
|
|
747
|
+
foreignKeyName: "iam_industries_created_by_fkey";
|
|
748
|
+
columns: ["created_by"];
|
|
749
|
+
isOneToOne: false;
|
|
750
|
+
referencedRelation: "users";
|
|
751
|
+
referencedColumns: ["id"];
|
|
752
|
+
}, {
|
|
753
|
+
foreignKeyName: "iam_industries_organization_id_fkey";
|
|
754
|
+
columns: ["organization_id"];
|
|
755
|
+
isOneToOne: false;
|
|
756
|
+
referencedRelation: "organizations";
|
|
757
|
+
referencedColumns: ["id"];
|
|
758
|
+
}, {
|
|
759
|
+
foreignKeyName: "iam_industries_updated_by_fkey";
|
|
760
|
+
columns: ["updated_by"];
|
|
761
|
+
isOneToOne: false;
|
|
762
|
+
referencedRelation: "users";
|
|
763
|
+
referencedColumns: ["id"];
|
|
764
|
+
}, {
|
|
765
|
+
foreignKeyName: "industries_parent_id_fkey";
|
|
766
|
+
columns: ["parent_id"];
|
|
767
|
+
isOneToOne: false;
|
|
768
|
+
referencedRelation: "industries";
|
|
769
|
+
referencedColumns: ["id"];
|
|
770
|
+
}];
|
|
771
|
+
};
|
|
772
|
+
industry_curators: {
|
|
773
|
+
Row: {
|
|
774
|
+
created_at: string;
|
|
775
|
+
created_by: string | null;
|
|
776
|
+
deleted_at: string | null;
|
|
777
|
+
granted_by: string | null;
|
|
778
|
+
industry_id: string;
|
|
779
|
+
metadata: import("../db-types.js").Json;
|
|
780
|
+
organization_id: string;
|
|
781
|
+
updated_at: string;
|
|
782
|
+
updated_by: string | null;
|
|
783
|
+
user_id: string;
|
|
784
|
+
version: number;
|
|
785
|
+
};
|
|
786
|
+
Insert: {
|
|
787
|
+
created_at?: string;
|
|
788
|
+
created_by?: string | null;
|
|
789
|
+
deleted_at?: string | null;
|
|
790
|
+
granted_by?: string | null;
|
|
791
|
+
industry_id: string;
|
|
792
|
+
metadata?: import("../db-types.js").Json;
|
|
793
|
+
organization_id: string;
|
|
794
|
+
updated_at?: string;
|
|
795
|
+
updated_by?: string | null;
|
|
796
|
+
user_id: string;
|
|
797
|
+
version?: number;
|
|
798
|
+
};
|
|
799
|
+
Update: {
|
|
800
|
+
created_at?: string;
|
|
801
|
+
created_by?: string | null;
|
|
802
|
+
deleted_at?: string | null;
|
|
803
|
+
granted_by?: string | null;
|
|
804
|
+
industry_id?: string;
|
|
805
|
+
metadata?: import("../db-types.js").Json;
|
|
806
|
+
organization_id?: string;
|
|
807
|
+
updated_at?: string;
|
|
808
|
+
updated_by?: string | null;
|
|
809
|
+
user_id?: string;
|
|
810
|
+
version?: number;
|
|
811
|
+
};
|
|
812
|
+
Relationships: [{
|
|
813
|
+
foreignKeyName: "industry_curators_industry_id_fkey";
|
|
814
|
+
columns: ["industry_id"];
|
|
815
|
+
isOneToOne: false;
|
|
816
|
+
referencedRelation: "industries";
|
|
817
|
+
referencedColumns: ["id"];
|
|
818
|
+
}, {
|
|
819
|
+
foreignKeyName: "industry_curators_user_id_fkey";
|
|
820
|
+
columns: ["user_id"];
|
|
821
|
+
isOneToOne: false;
|
|
822
|
+
referencedRelation: "users";
|
|
823
|
+
referencedColumns: ["id"];
|
|
824
|
+
}];
|
|
825
|
+
};
|
|
826
|
+
invitations: {
|
|
827
|
+
Row: {
|
|
828
|
+
accepted_at: string | null;
|
|
829
|
+
created_at: string;
|
|
830
|
+
created_by: string | null;
|
|
831
|
+
deleted_at: string | null;
|
|
832
|
+
email: string | null;
|
|
833
|
+
expires_at: string | null;
|
|
834
|
+
id: string;
|
|
835
|
+
invited_user_id: string | null;
|
|
836
|
+
metadata: import("../db-types.js").Json;
|
|
837
|
+
organization_id: string;
|
|
838
|
+
role: string;
|
|
839
|
+
status: string;
|
|
840
|
+
target_id: string;
|
|
841
|
+
target_type: string;
|
|
842
|
+
token: string | null;
|
|
843
|
+
updated_at: string;
|
|
844
|
+
updated_by: string | null;
|
|
845
|
+
version: number;
|
|
846
|
+
};
|
|
847
|
+
Insert: {
|
|
848
|
+
accepted_at?: string | null;
|
|
849
|
+
created_at?: string;
|
|
850
|
+
created_by?: string | null;
|
|
851
|
+
deleted_at?: string | null;
|
|
852
|
+
email?: string | null;
|
|
853
|
+
expires_at?: string | null;
|
|
854
|
+
id?: string;
|
|
855
|
+
invited_user_id?: string | null;
|
|
856
|
+
metadata?: import("../db-types.js").Json;
|
|
857
|
+
organization_id: string;
|
|
858
|
+
role?: string;
|
|
859
|
+
status?: string;
|
|
860
|
+
target_id: string;
|
|
861
|
+
target_type: string;
|
|
862
|
+
token?: string | null;
|
|
863
|
+
updated_at?: string;
|
|
864
|
+
updated_by?: string | null;
|
|
865
|
+
version?: number;
|
|
866
|
+
};
|
|
867
|
+
Update: {
|
|
868
|
+
accepted_at?: string | null;
|
|
869
|
+
created_at?: string;
|
|
870
|
+
created_by?: string | null;
|
|
871
|
+
deleted_at?: string | null;
|
|
872
|
+
email?: string | null;
|
|
873
|
+
expires_at?: string | null;
|
|
874
|
+
id?: string;
|
|
875
|
+
invited_user_id?: string | null;
|
|
876
|
+
metadata?: import("../db-types.js").Json;
|
|
877
|
+
organization_id?: string;
|
|
878
|
+
role?: string;
|
|
879
|
+
status?: string;
|
|
880
|
+
target_id?: string;
|
|
881
|
+
target_type?: string;
|
|
882
|
+
token?: string | null;
|
|
883
|
+
updated_at?: string;
|
|
884
|
+
updated_by?: string | null;
|
|
885
|
+
version?: number;
|
|
886
|
+
};
|
|
887
|
+
Relationships: [{
|
|
888
|
+
foreignKeyName: "invitations_created_by_fkey";
|
|
889
|
+
columns: ["created_by"];
|
|
890
|
+
isOneToOne: false;
|
|
891
|
+
referencedRelation: "users";
|
|
892
|
+
referencedColumns: ["id"];
|
|
893
|
+
}, {
|
|
894
|
+
foreignKeyName: "invitations_organization_id_fkey";
|
|
895
|
+
columns: ["organization_id"];
|
|
896
|
+
isOneToOne: false;
|
|
897
|
+
referencedRelation: "organizations";
|
|
898
|
+
referencedColumns: ["id"];
|
|
899
|
+
}, {
|
|
900
|
+
foreignKeyName: "invitations_updated_by_fkey";
|
|
901
|
+
columns: ["updated_by"];
|
|
902
|
+
isOneToOne: false;
|
|
903
|
+
referencedRelation: "users";
|
|
904
|
+
referencedColumns: ["id"];
|
|
905
|
+
}];
|
|
906
|
+
};
|
|
907
|
+
membership_grant: {
|
|
908
|
+
Row: {
|
|
909
|
+
confers: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
910
|
+
container_type: string;
|
|
911
|
+
member_role: string;
|
|
912
|
+
};
|
|
913
|
+
Insert: {
|
|
914
|
+
confers: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
915
|
+
container_type: string;
|
|
916
|
+
member_role: string;
|
|
917
|
+
};
|
|
918
|
+
Update: {
|
|
919
|
+
confers?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
920
|
+
container_type?: string;
|
|
921
|
+
member_role?: string;
|
|
922
|
+
};
|
|
923
|
+
Relationships: [];
|
|
924
|
+
};
|
|
925
|
+
memberships: {
|
|
926
|
+
Row: {
|
|
927
|
+
container_id: string;
|
|
928
|
+
container_type: string;
|
|
929
|
+
created_at: string;
|
|
930
|
+
created_by: string | null;
|
|
931
|
+
deleted_at: string | null;
|
|
932
|
+
id: string;
|
|
933
|
+
invited_by: string | null;
|
|
934
|
+
metadata: import("../db-types.js").Json;
|
|
935
|
+
organization_id: string;
|
|
936
|
+
role: string;
|
|
937
|
+
status: string;
|
|
938
|
+
updated_at: string;
|
|
939
|
+
updated_by: string | null;
|
|
940
|
+
user_id: string;
|
|
941
|
+
vault_access: string | null;
|
|
942
|
+
version: number;
|
|
943
|
+
};
|
|
944
|
+
Insert: {
|
|
945
|
+
container_id: string;
|
|
946
|
+
container_type: string;
|
|
947
|
+
created_at?: string;
|
|
948
|
+
created_by?: string | null;
|
|
949
|
+
deleted_at?: string | null;
|
|
950
|
+
id?: string;
|
|
951
|
+
invited_by?: string | null;
|
|
952
|
+
metadata?: import("../db-types.js").Json;
|
|
953
|
+
organization_id: string;
|
|
954
|
+
role?: string;
|
|
955
|
+
status?: string;
|
|
956
|
+
updated_at?: string;
|
|
957
|
+
updated_by?: string | null;
|
|
958
|
+
user_id: string;
|
|
959
|
+
vault_access?: string | null;
|
|
960
|
+
version?: number;
|
|
961
|
+
};
|
|
962
|
+
Update: {
|
|
963
|
+
container_id?: string;
|
|
964
|
+
container_type?: string;
|
|
965
|
+
created_at?: string;
|
|
966
|
+
created_by?: string | null;
|
|
967
|
+
deleted_at?: string | null;
|
|
968
|
+
id?: string;
|
|
969
|
+
invited_by?: string | null;
|
|
970
|
+
metadata?: import("../db-types.js").Json;
|
|
971
|
+
organization_id?: string;
|
|
972
|
+
role?: string;
|
|
973
|
+
status?: string;
|
|
974
|
+
updated_at?: string;
|
|
975
|
+
updated_by?: string | null;
|
|
976
|
+
user_id?: string;
|
|
977
|
+
vault_access?: string | null;
|
|
978
|
+
version?: number;
|
|
979
|
+
};
|
|
980
|
+
Relationships: [{
|
|
981
|
+
foreignKeyName: "memberships_created_by_fkey_p";
|
|
982
|
+
columns: ["created_by"];
|
|
983
|
+
isOneToOne: false;
|
|
984
|
+
referencedRelation: "users";
|
|
985
|
+
referencedColumns: ["id"];
|
|
986
|
+
}, {
|
|
987
|
+
foreignKeyName: "memberships_invited_by_fkey_p";
|
|
988
|
+
columns: ["invited_by"];
|
|
989
|
+
isOneToOne: false;
|
|
990
|
+
referencedRelation: "users";
|
|
991
|
+
referencedColumns: ["id"];
|
|
992
|
+
}, {
|
|
993
|
+
foreignKeyName: "memberships_organization_id_fkey";
|
|
994
|
+
columns: ["organization_id"];
|
|
995
|
+
isOneToOne: false;
|
|
996
|
+
referencedRelation: "organizations";
|
|
997
|
+
referencedColumns: ["id"];
|
|
998
|
+
}, {
|
|
999
|
+
foreignKeyName: "memberships_updated_by_fkey_p";
|
|
1000
|
+
columns: ["updated_by"];
|
|
1001
|
+
isOneToOne: false;
|
|
1002
|
+
referencedRelation: "users";
|
|
1003
|
+
referencedColumns: ["id"];
|
|
1004
|
+
}, {
|
|
1005
|
+
foreignKeyName: "memberships_user_id_fkey_p";
|
|
1006
|
+
columns: ["user_id"];
|
|
1007
|
+
isOneToOne: false;
|
|
1008
|
+
referencedRelation: "users";
|
|
1009
|
+
referencedColumns: ["id"];
|
|
1010
|
+
}];
|
|
1011
|
+
};
|
|
1012
|
+
org_admin_audit: {
|
|
1013
|
+
Row: {
|
|
1014
|
+
action: string;
|
|
1015
|
+
actor_user_id: string | null;
|
|
1016
|
+
created_at: string;
|
|
1017
|
+
detail: import("../db-types.js").Json;
|
|
1018
|
+
id: string;
|
|
1019
|
+
metadata: import("../db-types.js").Json;
|
|
1020
|
+
organization_id: string;
|
|
1021
|
+
target_user_id: string | null;
|
|
1022
|
+
};
|
|
1023
|
+
Insert: {
|
|
1024
|
+
action: string;
|
|
1025
|
+
actor_user_id?: string | null;
|
|
1026
|
+
created_at?: string;
|
|
1027
|
+
detail?: import("../db-types.js").Json;
|
|
1028
|
+
id?: string;
|
|
1029
|
+
metadata?: import("../db-types.js").Json;
|
|
1030
|
+
organization_id: string;
|
|
1031
|
+
target_user_id?: string | null;
|
|
1032
|
+
};
|
|
1033
|
+
Update: {
|
|
1034
|
+
action?: string;
|
|
1035
|
+
actor_user_id?: string | null;
|
|
1036
|
+
created_at?: string;
|
|
1037
|
+
detail?: import("../db-types.js").Json;
|
|
1038
|
+
id?: string;
|
|
1039
|
+
metadata?: import("../db-types.js").Json;
|
|
1040
|
+
organization_id?: string;
|
|
1041
|
+
target_user_id?: string | null;
|
|
1042
|
+
};
|
|
1043
|
+
Relationships: [{
|
|
1044
|
+
foreignKeyName: "org_admin_audit_organization_id_fkey";
|
|
1045
|
+
columns: ["organization_id"];
|
|
1046
|
+
isOneToOne: false;
|
|
1047
|
+
referencedRelation: "organizations";
|
|
1048
|
+
referencedColumns: ["id"];
|
|
1049
|
+
}];
|
|
1050
|
+
};
|
|
1051
|
+
org_industries: {
|
|
1052
|
+
Row: {
|
|
1053
|
+
assigned_by: string | null;
|
|
1054
|
+
created_at: string;
|
|
1055
|
+
custom_fields: import("../db-types.js").Json;
|
|
1056
|
+
id: string;
|
|
1057
|
+
industry_id: string;
|
|
1058
|
+
is_primary: boolean;
|
|
1059
|
+
metadata: import("../db-types.js").Json;
|
|
1060
|
+
organization_id: string;
|
|
1061
|
+
};
|
|
1062
|
+
Insert: {
|
|
1063
|
+
assigned_by?: string | null;
|
|
1064
|
+
created_at?: string;
|
|
1065
|
+
custom_fields?: import("../db-types.js").Json;
|
|
1066
|
+
id?: string;
|
|
1067
|
+
industry_id: string;
|
|
1068
|
+
is_primary?: boolean;
|
|
1069
|
+
metadata?: import("../db-types.js").Json;
|
|
1070
|
+
organization_id: string;
|
|
1071
|
+
};
|
|
1072
|
+
Update: {
|
|
1073
|
+
assigned_by?: string | null;
|
|
1074
|
+
created_at?: string;
|
|
1075
|
+
custom_fields?: import("../db-types.js").Json;
|
|
1076
|
+
id?: string;
|
|
1077
|
+
industry_id?: string;
|
|
1078
|
+
is_primary?: boolean;
|
|
1079
|
+
metadata?: import("../db-types.js").Json;
|
|
1080
|
+
organization_id?: string;
|
|
1081
|
+
};
|
|
1082
|
+
Relationships: [{
|
|
1083
|
+
foreignKeyName: "org_industries_industry_id_fkey";
|
|
1084
|
+
columns: ["industry_id"];
|
|
1085
|
+
isOneToOne: false;
|
|
1086
|
+
referencedRelation: "industries";
|
|
1087
|
+
referencedColumns: ["id"];
|
|
1088
|
+
}, {
|
|
1089
|
+
foreignKeyName: "org_industries_organization_id_fkey";
|
|
1090
|
+
columns: ["organization_id"];
|
|
1091
|
+
isOneToOne: false;
|
|
1092
|
+
referencedRelation: "organizations";
|
|
1093
|
+
referencedColumns: ["id"];
|
|
1094
|
+
}];
|
|
1095
|
+
};
|
|
1096
|
+
org_member_controls: {
|
|
1097
|
+
Row: {
|
|
1098
|
+
created_at: string;
|
|
1099
|
+
created_by: string | null;
|
|
1100
|
+
custom_fields: import("../db-types.js").Json;
|
|
1101
|
+
deleted_at: string | null;
|
|
1102
|
+
id: string;
|
|
1103
|
+
member_level: string | null;
|
|
1104
|
+
metadata: import("../db-types.js").Json;
|
|
1105
|
+
monthly_budget_mcents: number | null;
|
|
1106
|
+
notes: string | null;
|
|
1107
|
+
organization_id: string;
|
|
1108
|
+
status: string;
|
|
1109
|
+
storage_cap_bytes: number | null;
|
|
1110
|
+
suspend_reason: string | null;
|
|
1111
|
+
suspended_at: string | null;
|
|
1112
|
+
suspended_by: string | null;
|
|
1113
|
+
tier_override: string | null;
|
|
1114
|
+
updated_at: string;
|
|
1115
|
+
updated_by: string | null;
|
|
1116
|
+
user_id: string;
|
|
1117
|
+
version: number;
|
|
1118
|
+
};
|
|
1119
|
+
Insert: {
|
|
1120
|
+
created_at?: string;
|
|
1121
|
+
created_by?: string | null;
|
|
1122
|
+
custom_fields?: import("../db-types.js").Json;
|
|
1123
|
+
deleted_at?: string | null;
|
|
1124
|
+
id?: string;
|
|
1125
|
+
member_level?: string | null;
|
|
1126
|
+
metadata?: import("../db-types.js").Json;
|
|
1127
|
+
monthly_budget_mcents?: number | null;
|
|
1128
|
+
notes?: string | null;
|
|
1129
|
+
organization_id: string;
|
|
1130
|
+
status?: string;
|
|
1131
|
+
storage_cap_bytes?: number | null;
|
|
1132
|
+
suspend_reason?: string | null;
|
|
1133
|
+
suspended_at?: string | null;
|
|
1134
|
+
suspended_by?: string | null;
|
|
1135
|
+
tier_override?: string | null;
|
|
1136
|
+
updated_at?: string;
|
|
1137
|
+
updated_by?: string | null;
|
|
1138
|
+
user_id: string;
|
|
1139
|
+
version?: number;
|
|
1140
|
+
};
|
|
1141
|
+
Update: {
|
|
1142
|
+
created_at?: string;
|
|
1143
|
+
created_by?: string | null;
|
|
1144
|
+
custom_fields?: import("../db-types.js").Json;
|
|
1145
|
+
deleted_at?: string | null;
|
|
1146
|
+
id?: string;
|
|
1147
|
+
member_level?: string | null;
|
|
1148
|
+
metadata?: import("../db-types.js").Json;
|
|
1149
|
+
monthly_budget_mcents?: number | null;
|
|
1150
|
+
notes?: string | null;
|
|
1151
|
+
organization_id?: string;
|
|
1152
|
+
status?: string;
|
|
1153
|
+
storage_cap_bytes?: number | null;
|
|
1154
|
+
suspend_reason?: string | null;
|
|
1155
|
+
suspended_at?: string | null;
|
|
1156
|
+
suspended_by?: string | null;
|
|
1157
|
+
tier_override?: string | null;
|
|
1158
|
+
updated_at?: string;
|
|
1159
|
+
updated_by?: string | null;
|
|
1160
|
+
user_id?: string;
|
|
1161
|
+
version?: number;
|
|
1162
|
+
};
|
|
1163
|
+
Relationships: [{
|
|
1164
|
+
foreignKeyName: "org_member_controls_created_by_fkey";
|
|
1165
|
+
columns: ["created_by"];
|
|
1166
|
+
isOneToOne: false;
|
|
1167
|
+
referencedRelation: "users";
|
|
1168
|
+
referencedColumns: ["id"];
|
|
1169
|
+
}, {
|
|
1170
|
+
foreignKeyName: "org_member_controls_organization_id_fkey";
|
|
1171
|
+
columns: ["organization_id"];
|
|
1172
|
+
isOneToOne: false;
|
|
1173
|
+
referencedRelation: "organizations";
|
|
1174
|
+
referencedColumns: ["id"];
|
|
1175
|
+
}, {
|
|
1176
|
+
foreignKeyName: "org_member_controls_updated_by_fkey";
|
|
1177
|
+
columns: ["updated_by"];
|
|
1178
|
+
isOneToOne: false;
|
|
1179
|
+
referencedRelation: "users";
|
|
1180
|
+
referencedColumns: ["id"];
|
|
1181
|
+
}, {
|
|
1182
|
+
foreignKeyName: "org_member_controls_user_id_fkey";
|
|
1183
|
+
columns: ["user_id"];
|
|
1184
|
+
isOneToOne: false;
|
|
1185
|
+
referencedRelation: "users";
|
|
1186
|
+
referencedColumns: ["id"];
|
|
1187
|
+
}];
|
|
1188
|
+
};
|
|
1189
|
+
organization_preferences: {
|
|
1190
|
+
Row: {
|
|
1191
|
+
auto_rag_enabled: boolean;
|
|
1192
|
+
coding_session_provider_pin_wins: boolean | null;
|
|
1193
|
+
created_at: string;
|
|
1194
|
+
custom_fields: import("../db-types.js").Json;
|
|
1195
|
+
daily_auto_rag_budget_usd: number;
|
|
1196
|
+
daily_auto_rag_cost_used_usd: number;
|
|
1197
|
+
daily_auto_rag_window_start: string;
|
|
1198
|
+
id: string;
|
|
1199
|
+
memory_context_instructions: string | null;
|
|
1200
|
+
memory_context_preamble: string | null;
|
|
1201
|
+
metadata: import("../db-types.js").Json;
|
|
1202
|
+
organization_id: string;
|
|
1203
|
+
suggestion_sweeps_enabled: boolean | null;
|
|
1204
|
+
updated_at: string;
|
|
1205
|
+
};
|
|
1206
|
+
Insert: {
|
|
1207
|
+
auto_rag_enabled?: boolean;
|
|
1208
|
+
coding_session_provider_pin_wins?: boolean | null;
|
|
1209
|
+
created_at?: string;
|
|
1210
|
+
custom_fields?: import("../db-types.js").Json;
|
|
1211
|
+
daily_auto_rag_budget_usd?: number;
|
|
1212
|
+
daily_auto_rag_cost_used_usd?: number;
|
|
1213
|
+
daily_auto_rag_window_start?: string;
|
|
1214
|
+
id?: string;
|
|
1215
|
+
memory_context_instructions?: string | null;
|
|
1216
|
+
memory_context_preamble?: string | null;
|
|
1217
|
+
metadata?: import("../db-types.js").Json;
|
|
1218
|
+
organization_id: string;
|
|
1219
|
+
suggestion_sweeps_enabled?: boolean | null;
|
|
1220
|
+
updated_at?: string;
|
|
1221
|
+
};
|
|
1222
|
+
Update: {
|
|
1223
|
+
auto_rag_enabled?: boolean;
|
|
1224
|
+
coding_session_provider_pin_wins?: boolean | null;
|
|
1225
|
+
created_at?: string;
|
|
1226
|
+
custom_fields?: import("../db-types.js").Json;
|
|
1227
|
+
daily_auto_rag_budget_usd?: number;
|
|
1228
|
+
daily_auto_rag_cost_used_usd?: number;
|
|
1229
|
+
daily_auto_rag_window_start?: string;
|
|
1230
|
+
id?: string;
|
|
1231
|
+
memory_context_instructions?: string | null;
|
|
1232
|
+
memory_context_preamble?: string | null;
|
|
1233
|
+
metadata?: import("../db-types.js").Json;
|
|
1234
|
+
organization_id?: string;
|
|
1235
|
+
suggestion_sweeps_enabled?: boolean | null;
|
|
1236
|
+
updated_at?: string;
|
|
1237
|
+
};
|
|
1238
|
+
Relationships: [{
|
|
1239
|
+
foreignKeyName: "organization_preferences_organization_id_fkey";
|
|
1240
|
+
columns: ["organization_id"];
|
|
1241
|
+
isOneToOne: true;
|
|
1242
|
+
referencedRelation: "organizations";
|
|
1243
|
+
referencedColumns: ["id"];
|
|
1244
|
+
}];
|
|
1245
|
+
};
|
|
1246
|
+
organizations: {
|
|
1247
|
+
Row: {
|
|
1248
|
+
abbreviation: string;
|
|
1249
|
+
archive_reason: string | null;
|
|
1250
|
+
archived_at: string | null;
|
|
1251
|
+
archived_by: string | null;
|
|
1252
|
+
created_at: string | null;
|
|
1253
|
+
created_by: string | null;
|
|
1254
|
+
description: string | null;
|
|
1255
|
+
id: string;
|
|
1256
|
+
is_system: boolean;
|
|
1257
|
+
logo_file_id: string | null;
|
|
1258
|
+
logo_url: string | null;
|
|
1259
|
+
metadata: import("../db-types.js").Json;
|
|
1260
|
+
name: string;
|
|
1261
|
+
settings: import("../db-types.js").Json | null;
|
|
1262
|
+
slug: string;
|
|
1263
|
+
updated_at: string | null;
|
|
1264
|
+
updated_by: string | null;
|
|
1265
|
+
website: string | null;
|
|
1266
|
+
};
|
|
1267
|
+
Insert: {
|
|
1268
|
+
abbreviation: string;
|
|
1269
|
+
archive_reason?: string | null;
|
|
1270
|
+
archived_at?: string | null;
|
|
1271
|
+
archived_by?: string | null;
|
|
1272
|
+
created_at?: string | null;
|
|
1273
|
+
created_by?: string | null;
|
|
1274
|
+
description?: string | null;
|
|
1275
|
+
id?: string;
|
|
1276
|
+
is_system?: boolean;
|
|
1277
|
+
logo_file_id?: string | null;
|
|
1278
|
+
logo_url?: string | null;
|
|
1279
|
+
metadata?: import("../db-types.js").Json;
|
|
1280
|
+
name: string;
|
|
1281
|
+
settings?: import("../db-types.js").Json | null;
|
|
1282
|
+
slug: string;
|
|
1283
|
+
updated_at?: string | null;
|
|
1284
|
+
updated_by?: string | null;
|
|
1285
|
+
website?: string | null;
|
|
1286
|
+
};
|
|
1287
|
+
Update: {
|
|
1288
|
+
abbreviation?: string;
|
|
1289
|
+
archive_reason?: string | null;
|
|
1290
|
+
archived_at?: string | null;
|
|
1291
|
+
archived_by?: string | null;
|
|
1292
|
+
created_at?: string | null;
|
|
1293
|
+
created_by?: string | null;
|
|
1294
|
+
description?: string | null;
|
|
1295
|
+
id?: string;
|
|
1296
|
+
is_system?: boolean;
|
|
1297
|
+
logo_file_id?: string | null;
|
|
1298
|
+
logo_url?: string | null;
|
|
1299
|
+
metadata?: import("../db-types.js").Json;
|
|
1300
|
+
name?: string;
|
|
1301
|
+
settings?: import("../db-types.js").Json | null;
|
|
1302
|
+
slug?: string;
|
|
1303
|
+
updated_at?: string | null;
|
|
1304
|
+
updated_by?: string | null;
|
|
1305
|
+
website?: string | null;
|
|
1306
|
+
};
|
|
1307
|
+
Relationships: [{
|
|
1308
|
+
foreignKeyName: "organizations_created_by_fkey_p";
|
|
1309
|
+
columns: ["created_by"];
|
|
1310
|
+
isOneToOne: false;
|
|
1311
|
+
referencedRelation: "users";
|
|
1312
|
+
referencedColumns: ["id"];
|
|
1313
|
+
}, {
|
|
1314
|
+
foreignKeyName: "organizations_updated_by_fkey_p";
|
|
1315
|
+
columns: ["updated_by"];
|
|
1316
|
+
isOneToOne: false;
|
|
1317
|
+
referencedRelation: "users";
|
|
1318
|
+
referencedColumns: ["id"];
|
|
1319
|
+
}];
|
|
1320
|
+
};
|
|
1321
|
+
permissions: {
|
|
1322
|
+
Row: {
|
|
1323
|
+
created_at: string | null;
|
|
1324
|
+
created_by: string | null;
|
|
1325
|
+
expires_at: string | null;
|
|
1326
|
+
granted_to_organization_id: string | null;
|
|
1327
|
+
granted_to_user_id: string | null;
|
|
1328
|
+
granted_via: string | null;
|
|
1329
|
+
id: string;
|
|
1330
|
+
is_public: boolean | null;
|
|
1331
|
+
permission_level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
1332
|
+
resource_id: string;
|
|
1333
|
+
resource_type: string;
|
|
1334
|
+
review_note: string | null;
|
|
1335
|
+
reviewed_at: string | null;
|
|
1336
|
+
reviewed_by: string | null;
|
|
1337
|
+
status: string;
|
|
1338
|
+
};
|
|
1339
|
+
Insert: {
|
|
1340
|
+
created_at?: string | null;
|
|
1341
|
+
created_by?: string | null;
|
|
1342
|
+
expires_at?: string | null;
|
|
1343
|
+
granted_to_organization_id?: string | null;
|
|
1344
|
+
granted_to_user_id?: string | null;
|
|
1345
|
+
granted_via?: string | null;
|
|
1346
|
+
id?: string;
|
|
1347
|
+
is_public?: boolean | null;
|
|
1348
|
+
permission_level?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
1349
|
+
resource_id: string;
|
|
1350
|
+
resource_type: string;
|
|
1351
|
+
review_note?: string | null;
|
|
1352
|
+
reviewed_at?: string | null;
|
|
1353
|
+
reviewed_by?: string | null;
|
|
1354
|
+
status?: string;
|
|
1355
|
+
};
|
|
1356
|
+
Update: {
|
|
1357
|
+
created_at?: string | null;
|
|
1358
|
+
created_by?: string | null;
|
|
1359
|
+
expires_at?: string | null;
|
|
1360
|
+
granted_to_organization_id?: string | null;
|
|
1361
|
+
granted_to_user_id?: string | null;
|
|
1362
|
+
granted_via?: string | null;
|
|
1363
|
+
id?: string;
|
|
1364
|
+
is_public?: boolean | null;
|
|
1365
|
+
permission_level?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
1366
|
+
resource_id?: string;
|
|
1367
|
+
resource_type?: string;
|
|
1368
|
+
review_note?: string | null;
|
|
1369
|
+
reviewed_at?: string | null;
|
|
1370
|
+
reviewed_by?: string | null;
|
|
1371
|
+
status?: string;
|
|
1372
|
+
};
|
|
1373
|
+
Relationships: [{
|
|
1374
|
+
foreignKeyName: "org_reference";
|
|
1375
|
+
columns: ["granted_to_organization_id"];
|
|
1376
|
+
isOneToOne: false;
|
|
1377
|
+
referencedRelation: "organizations";
|
|
1378
|
+
referencedColumns: ["id"];
|
|
1379
|
+
}, {
|
|
1380
|
+
foreignKeyName: "permissions_created_by_fkey_p";
|
|
1381
|
+
columns: ["created_by"];
|
|
1382
|
+
isOneToOne: false;
|
|
1383
|
+
referencedRelation: "users";
|
|
1384
|
+
referencedColumns: ["id"];
|
|
1385
|
+
}, {
|
|
1386
|
+
foreignKeyName: "permissions_granted_to_user_id_fkey_p";
|
|
1387
|
+
columns: ["granted_to_user_id"];
|
|
1388
|
+
isOneToOne: false;
|
|
1389
|
+
referencedRelation: "users";
|
|
1390
|
+
referencedColumns: ["id"];
|
|
1391
|
+
}, {
|
|
1392
|
+
foreignKeyName: "permissions_reviewed_by_fkey_p";
|
|
1393
|
+
columns: ["reviewed_by"];
|
|
1394
|
+
isOneToOne: false;
|
|
1395
|
+
referencedRelation: "users";
|
|
1396
|
+
referencedColumns: ["id"];
|
|
1397
|
+
}];
|
|
1398
|
+
};
|
|
1399
|
+
publish_binding: {
|
|
1400
|
+
Row: {
|
|
1401
|
+
bound_at: string;
|
|
1402
|
+
bound_by: string | null;
|
|
1403
|
+
created_at: string;
|
|
1404
|
+
id: string;
|
|
1405
|
+
is_active: boolean;
|
|
1406
|
+
organization_id: string;
|
|
1407
|
+
render_mode: string;
|
|
1408
|
+
resource_id: string;
|
|
1409
|
+
resource_type: string;
|
|
1410
|
+
revoked_at: string | null;
|
|
1411
|
+
revoked_by: string | null;
|
|
1412
|
+
slug: string;
|
|
1413
|
+
updated_at: string;
|
|
1414
|
+
};
|
|
1415
|
+
Insert: {
|
|
1416
|
+
bound_at?: string;
|
|
1417
|
+
bound_by?: string | null;
|
|
1418
|
+
created_at?: string;
|
|
1419
|
+
id?: string;
|
|
1420
|
+
is_active?: boolean;
|
|
1421
|
+
organization_id: string;
|
|
1422
|
+
render_mode: string;
|
|
1423
|
+
resource_id: string;
|
|
1424
|
+
resource_type: string;
|
|
1425
|
+
revoked_at?: string | null;
|
|
1426
|
+
revoked_by?: string | null;
|
|
1427
|
+
slug: string;
|
|
1428
|
+
updated_at?: string;
|
|
1429
|
+
};
|
|
1430
|
+
Update: {
|
|
1431
|
+
bound_at?: string;
|
|
1432
|
+
bound_by?: string | null;
|
|
1433
|
+
created_at?: string;
|
|
1434
|
+
id?: string;
|
|
1435
|
+
is_active?: boolean;
|
|
1436
|
+
organization_id?: string;
|
|
1437
|
+
render_mode?: string;
|
|
1438
|
+
resource_id?: string;
|
|
1439
|
+
resource_type?: string;
|
|
1440
|
+
revoked_at?: string | null;
|
|
1441
|
+
revoked_by?: string | null;
|
|
1442
|
+
slug?: string;
|
|
1443
|
+
updated_at?: string;
|
|
1444
|
+
};
|
|
1445
|
+
Relationships: [];
|
|
1446
|
+
};
|
|
1447
|
+
publisher_verification: {
|
|
1448
|
+
Row: {
|
|
1449
|
+
created_at: string;
|
|
1450
|
+
evidence: string | null;
|
|
1451
|
+
method: string | null;
|
|
1452
|
+
organization_id: string;
|
|
1453
|
+
updated_at: string;
|
|
1454
|
+
verified: boolean;
|
|
1455
|
+
verified_at: string | null;
|
|
1456
|
+
verified_by: string | null;
|
|
1457
|
+
};
|
|
1458
|
+
Insert: {
|
|
1459
|
+
created_at?: string;
|
|
1460
|
+
evidence?: string | null;
|
|
1461
|
+
method?: string | null;
|
|
1462
|
+
organization_id: string;
|
|
1463
|
+
updated_at?: string;
|
|
1464
|
+
verified?: boolean;
|
|
1465
|
+
verified_at?: string | null;
|
|
1466
|
+
verified_by?: string | null;
|
|
1467
|
+
};
|
|
1468
|
+
Update: {
|
|
1469
|
+
created_at?: string;
|
|
1470
|
+
evidence?: string | null;
|
|
1471
|
+
method?: string | null;
|
|
1472
|
+
organization_id?: string;
|
|
1473
|
+
updated_at?: string;
|
|
1474
|
+
verified?: boolean;
|
|
1475
|
+
verified_at?: string | null;
|
|
1476
|
+
verified_by?: string | null;
|
|
1477
|
+
};
|
|
1478
|
+
Relationships: [{
|
|
1479
|
+
foreignKeyName: "publisher_verification_organization_id_fkey";
|
|
1480
|
+
columns: ["organization_id"];
|
|
1481
|
+
isOneToOne: true;
|
|
1482
|
+
referencedRelation: "organizations";
|
|
1483
|
+
referencedColumns: ["id"];
|
|
1484
|
+
}];
|
|
1485
|
+
};
|
|
1486
|
+
read_lane_v2_rollout: {
|
|
1487
|
+
Row: {
|
|
1488
|
+
batch: string;
|
|
1489
|
+
enrolled_at: string;
|
|
1490
|
+
token: string;
|
|
1491
|
+
};
|
|
1492
|
+
Insert: {
|
|
1493
|
+
batch: string;
|
|
1494
|
+
enrolled_at?: string;
|
|
1495
|
+
token: string;
|
|
1496
|
+
};
|
|
1497
|
+
Update: {
|
|
1498
|
+
batch?: string;
|
|
1499
|
+
enrolled_at?: string;
|
|
1500
|
+
token?: string;
|
|
1501
|
+
};
|
|
1502
|
+
Relationships: [];
|
|
1503
|
+
};
|
|
1504
|
+
superseded_policy: {
|
|
1505
|
+
Row: {
|
|
1506
|
+
id: string;
|
|
1507
|
+
policy_name: string;
|
|
1508
|
+
reason: string;
|
|
1509
|
+
schema_name: string;
|
|
1510
|
+
superseded_at: string;
|
|
1511
|
+
superseded_by: string;
|
|
1512
|
+
table_name: string;
|
|
1513
|
+
};
|
|
1514
|
+
Insert: {
|
|
1515
|
+
id?: string;
|
|
1516
|
+
policy_name: string;
|
|
1517
|
+
reason: string;
|
|
1518
|
+
schema_name: string;
|
|
1519
|
+
superseded_at?: string;
|
|
1520
|
+
superseded_by?: string;
|
|
1521
|
+
table_name: string;
|
|
1522
|
+
};
|
|
1523
|
+
Update: {
|
|
1524
|
+
id?: string;
|
|
1525
|
+
policy_name?: string;
|
|
1526
|
+
reason?: string;
|
|
1527
|
+
schema_name?: string;
|
|
1528
|
+
superseded_at?: string;
|
|
1529
|
+
superseded_by?: string;
|
|
1530
|
+
table_name?: string;
|
|
1531
|
+
};
|
|
1532
|
+
Relationships: [];
|
|
1533
|
+
};
|
|
1534
|
+
system_orgs: {
|
|
1535
|
+
Row: {
|
|
1536
|
+
created_at: string;
|
|
1537
|
+
description: string | null;
|
|
1538
|
+
global_readable: boolean;
|
|
1539
|
+
key: string;
|
|
1540
|
+
organization_id: string;
|
|
1541
|
+
};
|
|
1542
|
+
Insert: {
|
|
1543
|
+
created_at?: string;
|
|
1544
|
+
description?: string | null;
|
|
1545
|
+
global_readable?: boolean;
|
|
1546
|
+
key: string;
|
|
1547
|
+
organization_id: string;
|
|
1548
|
+
};
|
|
1549
|
+
Update: {
|
|
1550
|
+
created_at?: string;
|
|
1551
|
+
description?: string | null;
|
|
1552
|
+
global_readable?: boolean;
|
|
1553
|
+
key?: string;
|
|
1554
|
+
organization_id?: string;
|
|
1555
|
+
};
|
|
1556
|
+
Relationships: [{
|
|
1557
|
+
foreignKeyName: "system_orgs_organization_id_fkey";
|
|
1558
|
+
columns: ["organization_id"];
|
|
1559
|
+
isOneToOne: false;
|
|
1560
|
+
referencedRelation: "organizations";
|
|
1561
|
+
referencedColumns: ["id"];
|
|
1562
|
+
}];
|
|
1563
|
+
};
|
|
1564
|
+
team: {
|
|
1565
|
+
Row: {
|
|
1566
|
+
created_at: string;
|
|
1567
|
+
created_by: string | null;
|
|
1568
|
+
custom_fields: import("../db-types.js").Json;
|
|
1569
|
+
deleted_at: string | null;
|
|
1570
|
+
description: string | null;
|
|
1571
|
+
hr_department_id: string | null;
|
|
1572
|
+
id: string;
|
|
1573
|
+
metadata: import("../db-types.js").Json;
|
|
1574
|
+
name: string;
|
|
1575
|
+
organization_id: string;
|
|
1576
|
+
published_to_web: boolean;
|
|
1577
|
+
published_to_web_at: string | null;
|
|
1578
|
+
published_to_web_by: string | null;
|
|
1579
|
+
shown_to: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
1580
|
+
updated_at: string;
|
|
1581
|
+
updated_by: string | null;
|
|
1582
|
+
version: number;
|
|
1583
|
+
visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
1584
|
+
};
|
|
1585
|
+
Insert: {
|
|
1586
|
+
created_at?: string;
|
|
1587
|
+
created_by?: string | null;
|
|
1588
|
+
custom_fields?: import("../db-types.js").Json;
|
|
1589
|
+
deleted_at?: string | null;
|
|
1590
|
+
description?: string | null;
|
|
1591
|
+
hr_department_id?: string | null;
|
|
1592
|
+
id?: string;
|
|
1593
|
+
metadata?: import("../db-types.js").Json;
|
|
1594
|
+
name: string;
|
|
1595
|
+
organization_id: string;
|
|
1596
|
+
published_to_web?: boolean;
|
|
1597
|
+
published_to_web_at?: string | null;
|
|
1598
|
+
published_to_web_by?: string | null;
|
|
1599
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
1600
|
+
updated_at?: string;
|
|
1601
|
+
updated_by?: string | null;
|
|
1602
|
+
version?: number;
|
|
1603
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
1604
|
+
};
|
|
1605
|
+
Update: {
|
|
1606
|
+
created_at?: string;
|
|
1607
|
+
created_by?: string | null;
|
|
1608
|
+
custom_fields?: import("../db-types.js").Json;
|
|
1609
|
+
deleted_at?: string | null;
|
|
1610
|
+
description?: string | null;
|
|
1611
|
+
hr_department_id?: string | null;
|
|
1612
|
+
id?: string;
|
|
1613
|
+
metadata?: import("../db-types.js").Json;
|
|
1614
|
+
name?: string;
|
|
1615
|
+
organization_id?: string;
|
|
1616
|
+
published_to_web?: boolean;
|
|
1617
|
+
published_to_web_at?: string | null;
|
|
1618
|
+
published_to_web_by?: string | null;
|
|
1619
|
+
shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
1620
|
+
updated_at?: string;
|
|
1621
|
+
updated_by?: string | null;
|
|
1622
|
+
version?: number;
|
|
1623
|
+
visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
1624
|
+
};
|
|
1625
|
+
Relationships: [{
|
|
1626
|
+
foreignKeyName: "team_created_by_fkey";
|
|
1627
|
+
columns: ["created_by"];
|
|
1628
|
+
isOneToOne: false;
|
|
1629
|
+
referencedRelation: "users";
|
|
1630
|
+
referencedColumns: ["id"];
|
|
1631
|
+
}, {
|
|
1632
|
+
foreignKeyName: "team_organization_id_fkey";
|
|
1633
|
+
columns: ["organization_id"];
|
|
1634
|
+
isOneToOne: false;
|
|
1635
|
+
referencedRelation: "organizations";
|
|
1636
|
+
referencedColumns: ["id"];
|
|
1637
|
+
}, {
|
|
1638
|
+
foreignKeyName: "team_updated_by_fkey";
|
|
1639
|
+
columns: ["updated_by"];
|
|
1640
|
+
isOneToOne: false;
|
|
1641
|
+
referencedRelation: "users";
|
|
1642
|
+
referencedColumns: ["id"];
|
|
1643
|
+
}];
|
|
1644
|
+
};
|
|
1645
|
+
users: {
|
|
1646
|
+
Row: {
|
|
1647
|
+
created_at: string;
|
|
1648
|
+
id: string;
|
|
1649
|
+
is_anonymous: boolean;
|
|
1650
|
+
updated_at: string;
|
|
1651
|
+
};
|
|
1652
|
+
Insert: {
|
|
1653
|
+
created_at?: string;
|
|
1654
|
+
id: string;
|
|
1655
|
+
is_anonymous?: boolean;
|
|
1656
|
+
updated_at?: string;
|
|
1657
|
+
};
|
|
1658
|
+
Update: {
|
|
1659
|
+
created_at?: string;
|
|
1660
|
+
id?: string;
|
|
1661
|
+
is_anonymous?: boolean;
|
|
1662
|
+
updated_at?: string;
|
|
1663
|
+
};
|
|
1664
|
+
Relationships: [];
|
|
1665
|
+
};
|
|
1666
|
+
world_namespace: {
|
|
1667
|
+
Row: {
|
|
1668
|
+
claimed_at: string;
|
|
1669
|
+
claimed_by: string | null;
|
|
1670
|
+
created_at: string;
|
|
1671
|
+
namespace: string;
|
|
1672
|
+
organization_id: string;
|
|
1673
|
+
updated_at: string;
|
|
1674
|
+
};
|
|
1675
|
+
Insert: {
|
|
1676
|
+
claimed_at?: string;
|
|
1677
|
+
claimed_by?: string | null;
|
|
1678
|
+
created_at?: string;
|
|
1679
|
+
namespace: string;
|
|
1680
|
+
organization_id: string;
|
|
1681
|
+
updated_at?: string;
|
|
1682
|
+
};
|
|
1683
|
+
Update: {
|
|
1684
|
+
claimed_at?: string;
|
|
1685
|
+
claimed_by?: string | null;
|
|
1686
|
+
created_at?: string;
|
|
1687
|
+
namespace?: string;
|
|
1688
|
+
organization_id?: string;
|
|
1689
|
+
updated_at?: string;
|
|
1690
|
+
};
|
|
1691
|
+
Relationships: [{
|
|
1692
|
+
foreignKeyName: "world_namespace_organization_id_fkey";
|
|
1693
|
+
columns: ["organization_id"];
|
|
1694
|
+
isOneToOne: true;
|
|
1695
|
+
referencedRelation: "organizations";
|
|
1696
|
+
referencedColumns: ["id"];
|
|
1697
|
+
}];
|
|
1698
|
+
};
|
|
1699
|
+
world_publish_admission: {
|
|
1700
|
+
Row: {
|
|
1701
|
+
created_at: string;
|
|
1702
|
+
id: string;
|
|
1703
|
+
namespace: string;
|
|
1704
|
+
organization_id: string;
|
|
1705
|
+
published_at: string;
|
|
1706
|
+
published_by: string | null;
|
|
1707
|
+
ranking_state: string;
|
|
1708
|
+
resource_id: string;
|
|
1709
|
+
resource_type: string;
|
|
1710
|
+
scan_remedy: string;
|
|
1711
|
+
scan_state: string;
|
|
1712
|
+
updated_at: string;
|
|
1713
|
+
verification_method: string | null;
|
|
1714
|
+
};
|
|
1715
|
+
Insert: {
|
|
1716
|
+
created_at?: string;
|
|
1717
|
+
id?: string;
|
|
1718
|
+
namespace: string;
|
|
1719
|
+
organization_id: string;
|
|
1720
|
+
published_at?: string;
|
|
1721
|
+
published_by?: string | null;
|
|
1722
|
+
ranking_state?: string;
|
|
1723
|
+
resource_id: string;
|
|
1724
|
+
resource_type: string;
|
|
1725
|
+
scan_remedy: string;
|
|
1726
|
+
scan_state?: string;
|
|
1727
|
+
updated_at?: string;
|
|
1728
|
+
verification_method?: string | null;
|
|
1729
|
+
};
|
|
1730
|
+
Update: {
|
|
1731
|
+
created_at?: string;
|
|
1732
|
+
id?: string;
|
|
1733
|
+
namespace?: string;
|
|
1734
|
+
organization_id?: string;
|
|
1735
|
+
published_at?: string;
|
|
1736
|
+
published_by?: string | null;
|
|
1737
|
+
ranking_state?: string;
|
|
1738
|
+
resource_id?: string;
|
|
1739
|
+
resource_type?: string;
|
|
1740
|
+
scan_remedy?: string;
|
|
1741
|
+
scan_state?: string;
|
|
1742
|
+
updated_at?: string;
|
|
1743
|
+
verification_method?: string | null;
|
|
1744
|
+
};
|
|
1745
|
+
Relationships: [];
|
|
1746
|
+
};
|
|
1747
|
+
};
|
|
1748
|
+
Views: {
|
|
1749
|
+
definer_class_census: {
|
|
1750
|
+
Row: {
|
|
1751
|
+
anon_rule_declared: boolean | null;
|
|
1752
|
+
asks_an_admin: boolean | null;
|
|
1753
|
+
asks_the_gate: boolean | null;
|
|
1754
|
+
asks_the_ladder: boolean | null;
|
|
1755
|
+
classed_tokens: string | null;
|
|
1756
|
+
declared: boolean | null;
|
|
1757
|
+
exempt_reason: string | null;
|
|
1758
|
+
function_name: unknown;
|
|
1759
|
+
identity_args: string | null;
|
|
1760
|
+
is_trigger: boolean | null;
|
|
1761
|
+
narrows_to_caller: boolean | null;
|
|
1762
|
+
org_scoped: boolean | null;
|
|
1763
|
+
reachable_by: string | null;
|
|
1764
|
+
reads_classed: boolean | null;
|
|
1765
|
+
schema_name: unknown;
|
|
1766
|
+
writes_identity: boolean | null;
|
|
1767
|
+
};
|
|
1768
|
+
Relationships: [];
|
|
1769
|
+
};
|
|
1770
|
+
fk_coverage_gaps: {
|
|
1771
|
+
Row: {
|
|
1772
|
+
column_name: unknown;
|
|
1773
|
+
confidence: string | null;
|
|
1774
|
+
inferred_target: string | null;
|
|
1775
|
+
schema_name: unknown;
|
|
1776
|
+
suggested_ddl: string | null;
|
|
1777
|
+
table_name: unknown;
|
|
1778
|
+
target_resolves: boolean | null;
|
|
1779
|
+
};
|
|
1780
|
+
Relationships: [];
|
|
1781
|
+
};
|
|
1782
|
+
organization_member: {
|
|
1783
|
+
Row: {
|
|
1784
|
+
id: string | null;
|
|
1785
|
+
invited_by: string | null;
|
|
1786
|
+
joined_at: string | null;
|
|
1787
|
+
organization_id: string | null;
|
|
1788
|
+
role: import("../db-types.js").Database["public"]["Enums"]["org_role"] | null;
|
|
1789
|
+
user_id: string | null;
|
|
1790
|
+
};
|
|
1791
|
+
Insert: {
|
|
1792
|
+
id?: string | null;
|
|
1793
|
+
invited_by?: string | null;
|
|
1794
|
+
joined_at?: string | null;
|
|
1795
|
+
organization_id?: string | null;
|
|
1796
|
+
role?: never;
|
|
1797
|
+
user_id?: string | null;
|
|
1798
|
+
};
|
|
1799
|
+
Update: {
|
|
1800
|
+
id?: string | null;
|
|
1801
|
+
invited_by?: string | null;
|
|
1802
|
+
joined_at?: string | null;
|
|
1803
|
+
organization_id?: string | null;
|
|
1804
|
+
role?: never;
|
|
1805
|
+
user_id?: string | null;
|
|
1806
|
+
};
|
|
1807
|
+
Relationships: [{
|
|
1808
|
+
foreignKeyName: "memberships_invited_by_fkey_p";
|
|
1809
|
+
columns: ["invited_by"];
|
|
1810
|
+
isOneToOne: false;
|
|
1811
|
+
referencedRelation: "users";
|
|
1812
|
+
referencedColumns: ["id"];
|
|
1813
|
+
}, {
|
|
1814
|
+
foreignKeyName: "memberships_organization_id_fkey";
|
|
1815
|
+
columns: ["organization_id"];
|
|
1816
|
+
isOneToOne: false;
|
|
1817
|
+
referencedRelation: "organizations";
|
|
1818
|
+
referencedColumns: ["id"];
|
|
1819
|
+
}, {
|
|
1820
|
+
foreignKeyName: "memberships_user_id_fkey_p";
|
|
1821
|
+
columns: ["user_id"];
|
|
1822
|
+
isOneToOne: false;
|
|
1823
|
+
referencedRelation: "users";
|
|
1824
|
+
referencedColumns: ["id"];
|
|
1825
|
+
}];
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
Functions: {
|
|
1829
|
+
_agent_open_to_every_member: {
|
|
1830
|
+
Args: {
|
|
1831
|
+
p_agent_id: string;
|
|
1832
|
+
p_organization_id: string;
|
|
1833
|
+
};
|
|
1834
|
+
Returns: boolean;
|
|
1835
|
+
};
|
|
1836
|
+
_api_key_base62: {
|
|
1837
|
+
Args: {
|
|
1838
|
+
p_bytes: string;
|
|
1839
|
+
};
|
|
1840
|
+
Returns: string;
|
|
1841
|
+
};
|
|
1842
|
+
_apply_rls_unchecked: {
|
|
1843
|
+
Args: {
|
|
1844
|
+
p_schema: string;
|
|
1845
|
+
p_table: string;
|
|
1846
|
+
p_token: string;
|
|
1847
|
+
p_variant?: string;
|
|
1848
|
+
};
|
|
1849
|
+
Returns: undefined;
|
|
1850
|
+
};
|
|
1851
|
+
_audience_plan: {
|
|
1852
|
+
Args: {
|
|
1853
|
+
p_actor: string;
|
|
1854
|
+
p_exclude?: string[];
|
|
1855
|
+
p_kind: string;
|
|
1856
|
+
p_level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
1857
|
+
p_source_id: string;
|
|
1858
|
+
};
|
|
1859
|
+
Returns: import("../db-types.js").Json;
|
|
1860
|
+
};
|
|
1861
|
+
_client_grant_column_list: {
|
|
1862
|
+
Args: {
|
|
1863
|
+
p_excluded: string[];
|
|
1864
|
+
p_rel: unknown;
|
|
1865
|
+
};
|
|
1866
|
+
Returns: string;
|
|
1867
|
+
};
|
|
1868
|
+
_container_authz: {
|
|
1869
|
+
Args: {
|
|
1870
|
+
p_actor: string;
|
|
1871
|
+
p_container_id: string;
|
|
1872
|
+
p_container_type: string;
|
|
1873
|
+
p_require_role?: boolean;
|
|
1874
|
+
};
|
|
1875
|
+
Returns: {
|
|
1876
|
+
actor_role: string;
|
|
1877
|
+
resource_creator: string;
|
|
1878
|
+
resource_org_id: string;
|
|
1879
|
+
}[];
|
|
1880
|
+
};
|
|
1881
|
+
_dd171_containment_filter: {
|
|
1882
|
+
Args: {
|
|
1883
|
+
p_alias: string;
|
|
1884
|
+
p_has_vis: boolean;
|
|
1885
|
+
p_joiner: string;
|
|
1886
|
+
};
|
|
1887
|
+
Returns: string;
|
|
1888
|
+
};
|
|
1889
|
+
_discovery_class_selftest_once: {
|
|
1890
|
+
Args: never;
|
|
1891
|
+
Returns: {
|
|
1892
|
+
check_name: string;
|
|
1893
|
+
detail: string;
|
|
1894
|
+
status: string;
|
|
1895
|
+
}[];
|
|
1896
|
+
};
|
|
1897
|
+
_door_target: {
|
|
1898
|
+
Args: {
|
|
1899
|
+
p_id: string;
|
|
1900
|
+
p_token: string;
|
|
1901
|
+
};
|
|
1902
|
+
Returns: Record<string, unknown>;
|
|
1903
|
+
};
|
|
1904
|
+
_door_target_lock: {
|
|
1905
|
+
Args: {
|
|
1906
|
+
p_id: string;
|
|
1907
|
+
p_token: string;
|
|
1908
|
+
};
|
|
1909
|
+
Returns: boolean;
|
|
1910
|
+
};
|
|
1911
|
+
_fk_check13: {
|
|
1912
|
+
Args: never;
|
|
1913
|
+
Returns: {
|
|
1914
|
+
col: unknown;
|
|
1915
|
+
is_nullable: string;
|
|
1916
|
+
nonnull: number;
|
|
1917
|
+
orphans: number;
|
|
1918
|
+
sch: unknown;
|
|
1919
|
+
tbl: unknown;
|
|
1920
|
+
tgt: string;
|
|
1921
|
+
}[];
|
|
1922
|
+
};
|
|
1923
|
+
_fk_gap_orphans: {
|
|
1924
|
+
Args: never;
|
|
1925
|
+
Returns: {
|
|
1926
|
+
column_name: unknown;
|
|
1927
|
+
inferred_target: string;
|
|
1928
|
+
orphans: number;
|
|
1929
|
+
schema_name: unknown;
|
|
1930
|
+
table_name: unknown;
|
|
1931
|
+
total_nonnull: number;
|
|
1932
|
+
}[];
|
|
1933
|
+
};
|
|
1934
|
+
_fk_high_orphans: {
|
|
1935
|
+
Args: never;
|
|
1936
|
+
Returns: {
|
|
1937
|
+
col: unknown;
|
|
1938
|
+
nonnull: number;
|
|
1939
|
+
orphans: number;
|
|
1940
|
+
sch: unknown;
|
|
1941
|
+
tbl: unknown;
|
|
1942
|
+
tgt: string;
|
|
1943
|
+
}[];
|
|
1944
|
+
};
|
|
1945
|
+
_managed_invitation: {
|
|
1946
|
+
Args: {
|
|
1947
|
+
p_invitation_id: string;
|
|
1948
|
+
};
|
|
1949
|
+
Returns: {
|
|
1950
|
+
accepted_at: string | null;
|
|
1951
|
+
created_at: string;
|
|
1952
|
+
created_by: string | null;
|
|
1953
|
+
deleted_at: string | null;
|
|
1954
|
+
email: string | null;
|
|
1955
|
+
expires_at: string | null;
|
|
1956
|
+
id: string;
|
|
1957
|
+
invited_user_id: string | null;
|
|
1958
|
+
metadata: import("../db-types.js").Json;
|
|
1959
|
+
organization_id: string;
|
|
1960
|
+
role: string;
|
|
1961
|
+
status: string;
|
|
1962
|
+
target_id: string;
|
|
1963
|
+
target_type: string;
|
|
1964
|
+
token: string | null;
|
|
1965
|
+
updated_at: string;
|
|
1966
|
+
updated_by: string | null;
|
|
1967
|
+
version: number;
|
|
1968
|
+
};
|
|
1969
|
+
SetofOptions: {
|
|
1970
|
+
from: "*";
|
|
1971
|
+
to: "invitations";
|
|
1972
|
+
isOneToOne: true;
|
|
1973
|
+
isSetofReturn: false;
|
|
1974
|
+
};
|
|
1975
|
+
};
|
|
1976
|
+
_notify_door: {
|
|
1977
|
+
Args: {
|
|
1978
|
+
p_dedupe: string;
|
|
1979
|
+
p_deep_link: string;
|
|
1980
|
+
p_event_key: string;
|
|
1981
|
+
p_organization_id: string;
|
|
1982
|
+
p_payload: import("../db-types.js").Json;
|
|
1983
|
+
p_recipient: string;
|
|
1984
|
+
p_target_id: string;
|
|
1985
|
+
};
|
|
1986
|
+
Returns: number;
|
|
1987
|
+
};
|
|
1988
|
+
_org_audit: {
|
|
1989
|
+
Args: {
|
|
1990
|
+
p_action: string;
|
|
1991
|
+
p_detail: import("../db-types.js").Json;
|
|
1992
|
+
p_org: string;
|
|
1993
|
+
p_target: string;
|
|
1994
|
+
};
|
|
1995
|
+
Returns: undefined;
|
|
1996
|
+
};
|
|
1997
|
+
_org_availability_arm: {
|
|
1998
|
+
Args: never;
|
|
1999
|
+
Returns: undefined;
|
|
2000
|
+
};
|
|
2001
|
+
_org_availability_token: {
|
|
2002
|
+
Args: never;
|
|
2003
|
+
Returns: string;
|
|
2004
|
+
};
|
|
2005
|
+
_org_records_owned_by: {
|
|
2006
|
+
Args: {
|
|
2007
|
+
p_org_id: string;
|
|
2008
|
+
p_user_id: string;
|
|
2009
|
+
};
|
|
2010
|
+
Returns: {
|
|
2011
|
+
data_class: string;
|
|
2012
|
+
label: string;
|
|
2013
|
+
owner_column: string;
|
|
2014
|
+
row_count: number;
|
|
2015
|
+
schema_name: string;
|
|
2016
|
+
table_name: string;
|
|
2017
|
+
token: string;
|
|
2018
|
+
}[];
|
|
2019
|
+
};
|
|
2020
|
+
_person_name: {
|
|
2021
|
+
Args: {
|
|
2022
|
+
p_user_id: string;
|
|
2023
|
+
};
|
|
2024
|
+
Returns: string;
|
|
2025
|
+
};
|
|
2026
|
+
_policy_probe_read_as_signed_in: {
|
|
2027
|
+
Args: {
|
|
2028
|
+
p_key: string;
|
|
2029
|
+
p_tbl: unknown;
|
|
2030
|
+
p_val: string;
|
|
2031
|
+
};
|
|
2032
|
+
Returns: undefined;
|
|
2033
|
+
};
|
|
2034
|
+
_reach_node_lanes: {
|
|
2035
|
+
Args: {
|
|
2036
|
+
p_gr: string[];
|
|
2037
|
+
p_ids: string[];
|
|
2038
|
+
p_orgs: string[];
|
|
2039
|
+
p_types: string[];
|
|
2040
|
+
p_uid: string;
|
|
2041
|
+
};
|
|
2042
|
+
Returns: {
|
|
2043
|
+
blocked: boolean;
|
|
2044
|
+
hit: boolean;
|
|
2045
|
+
node_id: string;
|
|
2046
|
+
node_type: string;
|
|
2047
|
+
}[];
|
|
2048
|
+
};
|
|
2049
|
+
_record_access_audit: {
|
|
2050
|
+
Args: {
|
|
2051
|
+
p_action: string;
|
|
2052
|
+
p_actor_user_id?: string;
|
|
2053
|
+
p_basis: string;
|
|
2054
|
+
p_data_class: string;
|
|
2055
|
+
p_denial_reason?: string;
|
|
2056
|
+
p_grant_expires_at?: string;
|
|
2057
|
+
p_granted: boolean;
|
|
2058
|
+
p_granted_to_user_id?: string;
|
|
2059
|
+
p_is_emergency_door?: boolean;
|
|
2060
|
+
p_justification?: string;
|
|
2061
|
+
p_organization_id: string;
|
|
2062
|
+
p_permission_id?: string;
|
|
2063
|
+
p_purpose: string;
|
|
2064
|
+
p_request_id?: string;
|
|
2065
|
+
p_row_count?: number;
|
|
2066
|
+
p_subject_user_id?: string;
|
|
2067
|
+
p_target_ids?: string[];
|
|
2068
|
+
p_target_token: string;
|
|
2069
|
+
};
|
|
2070
|
+
Returns: string;
|
|
2071
|
+
};
|
|
2072
|
+
_record_share_invite: {
|
|
2073
|
+
Args: {
|
|
2074
|
+
p_actor: string;
|
|
2075
|
+
p_email: string;
|
|
2076
|
+
p_level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2077
|
+
p_plan: import("../db-types.js").Json;
|
|
2078
|
+
};
|
|
2079
|
+
Returns: import("../db-types.js").Json;
|
|
2080
|
+
};
|
|
2081
|
+
_resolve_owner_column: {
|
|
2082
|
+
Args: {
|
|
2083
|
+
p_pref: string;
|
|
2084
|
+
p_schema: string;
|
|
2085
|
+
p_table: string;
|
|
2086
|
+
};
|
|
2087
|
+
Returns: string;
|
|
2088
|
+
};
|
|
2089
|
+
_rls_emit_policies: {
|
|
2090
|
+
Args: {
|
|
2091
|
+
p_create: string[];
|
|
2092
|
+
p_drop: string[];
|
|
2093
|
+
};
|
|
2094
|
+
Returns: undefined;
|
|
2095
|
+
};
|
|
2096
|
+
_rls_plan_is: {
|
|
2097
|
+
Args: {
|
|
2098
|
+
p_create: string[];
|
|
2099
|
+
p_kept: string[];
|
|
2100
|
+
p_tbl: string;
|
|
2101
|
+
};
|
|
2102
|
+
Returns: undefined;
|
|
2103
|
+
};
|
|
2104
|
+
_share_with_audience: {
|
|
2105
|
+
Args: {
|
|
2106
|
+
p_actor: string;
|
|
2107
|
+
p_exclude?: string[];
|
|
2108
|
+
p_kind: string;
|
|
2109
|
+
p_level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2110
|
+
p_source_id: string;
|
|
2111
|
+
p_via?: string;
|
|
2112
|
+
};
|
|
2113
|
+
Returns: import("../db-types.js").Json;
|
|
2114
|
+
};
|
|
2115
|
+
_team_caller: {
|
|
2116
|
+
Args: {
|
|
2117
|
+
p_team_id: string;
|
|
2118
|
+
};
|
|
2119
|
+
Returns: Record<string, unknown>;
|
|
2120
|
+
};
|
|
2121
|
+
access_arms_from_sources: {
|
|
2122
|
+
Args: {
|
|
2123
|
+
p_id: string;
|
|
2124
|
+
p_organization_id: string;
|
|
2125
|
+
p_table_id?: string;
|
|
2126
|
+
p_type: string;
|
|
2127
|
+
p_user_id: string;
|
|
2128
|
+
};
|
|
2129
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2130
|
+
};
|
|
2131
|
+
access_delta_assert_no_widening: {
|
|
2132
|
+
Args: {
|
|
2133
|
+
p_after: string;
|
|
2134
|
+
p_before: string;
|
|
2135
|
+
};
|
|
2136
|
+
Returns: string;
|
|
2137
|
+
};
|
|
2138
|
+
access_delta_compare: {
|
|
2139
|
+
Args: {
|
|
2140
|
+
p_after: string;
|
|
2141
|
+
p_before: string;
|
|
2142
|
+
};
|
|
2143
|
+
Returns: {
|
|
2144
|
+
columns_gained: string[];
|
|
2145
|
+
columns_lost: string[];
|
|
2146
|
+
columns_measured: boolean;
|
|
2147
|
+
count_after: number;
|
|
2148
|
+
count_before: number;
|
|
2149
|
+
gained_sample: string[];
|
|
2150
|
+
lost_sample: string[];
|
|
2151
|
+
principal_id: string;
|
|
2152
|
+
principal_label: string;
|
|
2153
|
+
rows_gained: number;
|
|
2154
|
+
rows_lost: number;
|
|
2155
|
+
token: string;
|
|
2156
|
+
verdict: string;
|
|
2157
|
+
}[];
|
|
2158
|
+
};
|
|
2159
|
+
access_delta_snapshot: {
|
|
2160
|
+
Args: {
|
|
2161
|
+
p_as_of?: string;
|
|
2162
|
+
p_id_cap?: number;
|
|
2163
|
+
p_label: string;
|
|
2164
|
+
p_note?: string;
|
|
2165
|
+
p_principals: string[];
|
|
2166
|
+
p_tokens: string[];
|
|
2167
|
+
};
|
|
2168
|
+
Returns: string;
|
|
2169
|
+
};
|
|
2170
|
+
access_level: {
|
|
2171
|
+
Args: {
|
|
2172
|
+
p_id: string;
|
|
2173
|
+
p_org: string;
|
|
2174
|
+
p_owner: string;
|
|
2175
|
+
p_type: string;
|
|
2176
|
+
};
|
|
2177
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2178
|
+
};
|
|
2179
|
+
access_request_recipients: {
|
|
2180
|
+
Args: {
|
|
2181
|
+
p_id: string;
|
|
2182
|
+
p_type: string;
|
|
2183
|
+
};
|
|
2184
|
+
Returns: {
|
|
2185
|
+
reason: string;
|
|
2186
|
+
user_id: string;
|
|
2187
|
+
}[];
|
|
2188
|
+
};
|
|
2189
|
+
access_resolver_disagreements: {
|
|
2190
|
+
Args: {
|
|
2191
|
+
p_rows?: number;
|
|
2192
|
+
p_token?: string;
|
|
2193
|
+
p_users?: number;
|
|
2194
|
+
};
|
|
2195
|
+
Returns: {
|
|
2196
|
+
compared: number;
|
|
2197
|
+
disagreements: number;
|
|
2198
|
+
token: string;
|
|
2199
|
+
}[];
|
|
2200
|
+
};
|
|
2201
|
+
accessible_child_parents: {
|
|
2202
|
+
Args: {
|
|
2203
|
+
p_child_type: string;
|
|
2204
|
+
};
|
|
2205
|
+
Returns: {
|
|
2206
|
+
parent_id: string;
|
|
2207
|
+
parent_type: string;
|
|
2208
|
+
}[];
|
|
2209
|
+
};
|
|
2210
|
+
accessible_entity_candidates: {
|
|
2211
|
+
Args: {
|
|
2212
|
+
p_type: string;
|
|
2213
|
+
};
|
|
2214
|
+
Returns: string[];
|
|
2215
|
+
};
|
|
2216
|
+
accessible_entity_ids: {
|
|
2217
|
+
Args: {
|
|
2218
|
+
p_depth?: number;
|
|
2219
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2220
|
+
p_type: string;
|
|
2221
|
+
};
|
|
2222
|
+
Returns: string[];
|
|
2223
|
+
} | {
|
|
2224
|
+
Args: {
|
|
2225
|
+
p_depth: number;
|
|
2226
|
+
p_include_public: boolean;
|
|
2227
|
+
p_required: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2228
|
+
p_type: string;
|
|
2229
|
+
};
|
|
2230
|
+
Returns: string[];
|
|
2231
|
+
};
|
|
2232
|
+
admin_policy_findings: {
|
|
2233
|
+
Args: {
|
|
2234
|
+
p_tbl: unknown;
|
|
2235
|
+
};
|
|
2236
|
+
Returns: {
|
|
2237
|
+
check_name: string;
|
|
2238
|
+
detail: string;
|
|
2239
|
+
status: string;
|
|
2240
|
+
}[];
|
|
2241
|
+
};
|
|
2242
|
+
api_key_create: {
|
|
2243
|
+
Args: {
|
|
2244
|
+
p_expires_at?: string;
|
|
2245
|
+
p_name: string;
|
|
2246
|
+
p_organization_id: string;
|
|
2247
|
+
};
|
|
2248
|
+
Returns: import("../db-types.js").Json;
|
|
2249
|
+
};
|
|
2250
|
+
api_key_revoke: {
|
|
2251
|
+
Args: {
|
|
2252
|
+
p_id: string;
|
|
2253
|
+
};
|
|
2254
|
+
Returns: import("../db-types.js").Json;
|
|
2255
|
+
};
|
|
2256
|
+
apply_config_rls: {
|
|
2257
|
+
Args: {
|
|
2258
|
+
p_schema: string;
|
|
2259
|
+
p_table: string;
|
|
2260
|
+
};
|
|
2261
|
+
Returns: undefined;
|
|
2262
|
+
};
|
|
2263
|
+
apply_governance_guard: {
|
|
2264
|
+
Args: {
|
|
2265
|
+
p_schema: string;
|
|
2266
|
+
p_table: string;
|
|
2267
|
+
p_token: string;
|
|
2268
|
+
};
|
|
2269
|
+
Returns: undefined;
|
|
2270
|
+
};
|
|
2271
|
+
apply_platform_admin_access: {
|
|
2272
|
+
Args: {
|
|
2273
|
+
p_lock_out_non_admins?: boolean;
|
|
2274
|
+
p_schema: string;
|
|
2275
|
+
p_table: string;
|
|
2276
|
+
};
|
|
2277
|
+
Returns: undefined;
|
|
2278
|
+
};
|
|
2279
|
+
apply_reference_rls: {
|
|
2280
|
+
Args: {
|
|
2281
|
+
p_schema: string;
|
|
2282
|
+
p_table: string;
|
|
2283
|
+
};
|
|
2284
|
+
Returns: undefined;
|
|
2285
|
+
};
|
|
2286
|
+
apply_rls: {
|
|
2287
|
+
Args: {
|
|
2288
|
+
p_schema: string;
|
|
2289
|
+
p_table: string;
|
|
2290
|
+
p_token: string;
|
|
2291
|
+
p_variant?: string;
|
|
2292
|
+
};
|
|
2293
|
+
Returns: undefined;
|
|
2294
|
+
};
|
|
2295
|
+
apply_scraper_rls: {
|
|
2296
|
+
Args: {
|
|
2297
|
+
p_mode: string;
|
|
2298
|
+
p_schema: string;
|
|
2299
|
+
p_table: string;
|
|
2300
|
+
};
|
|
2301
|
+
Returns: undefined;
|
|
2302
|
+
};
|
|
2303
|
+
apply_table_grants: {
|
|
2304
|
+
Args: {
|
|
2305
|
+
p_schema: string;
|
|
2306
|
+
p_table: string;
|
|
2307
|
+
p_variant?: string;
|
|
2308
|
+
};
|
|
2309
|
+
Returns: undefined;
|
|
2310
|
+
};
|
|
2311
|
+
archived_org_ids: {
|
|
2312
|
+
Args: never;
|
|
2313
|
+
Returns: string[];
|
|
2314
|
+
};
|
|
2315
|
+
asks_about_caller: {
|
|
2316
|
+
Args: {
|
|
2317
|
+
p_function?: string;
|
|
2318
|
+
p_user: string;
|
|
2319
|
+
};
|
|
2320
|
+
Returns: boolean;
|
|
2321
|
+
};
|
|
2322
|
+
assert_class_allows: {
|
|
2323
|
+
Args: {
|
|
2324
|
+
p_action: string;
|
|
2325
|
+
p_row_org?: string;
|
|
2326
|
+
p_token: string;
|
|
2327
|
+
};
|
|
2328
|
+
Returns: undefined;
|
|
2329
|
+
};
|
|
2330
|
+
assert_class_read: {
|
|
2331
|
+
Args: {
|
|
2332
|
+
p_row_org?: string;
|
|
2333
|
+
p_token: string;
|
|
2334
|
+
};
|
|
2335
|
+
Returns: undefined;
|
|
2336
|
+
};
|
|
2337
|
+
assert_may_transfer: {
|
|
2338
|
+
Args: {
|
|
2339
|
+
p_container_id?: string;
|
|
2340
|
+
p_container_type?: string;
|
|
2341
|
+
p_row_org?: string;
|
|
2342
|
+
p_row_owner: string;
|
|
2343
|
+
p_target_owner: string;
|
|
2344
|
+
p_token: string;
|
|
2345
|
+
};
|
|
2346
|
+
Returns: undefined;
|
|
2347
|
+
};
|
|
2348
|
+
assoc_side_readable: {
|
|
2349
|
+
Args: {
|
|
2350
|
+
p_id: string;
|
|
2351
|
+
p_token: string;
|
|
2352
|
+
};
|
|
2353
|
+
Returns: boolean;
|
|
2354
|
+
};
|
|
2355
|
+
audience_kinds: {
|
|
2356
|
+
Args: never;
|
|
2357
|
+
Returns: {
|
|
2358
|
+
assets_fn: string;
|
|
2359
|
+
describe_fn: string;
|
|
2360
|
+
kind: string;
|
|
2361
|
+
label: string;
|
|
2362
|
+
level_knob_feature: string;
|
|
2363
|
+
level_knob_key: string;
|
|
2364
|
+
members_fn: string;
|
|
2365
|
+
offer_knob_feature: string;
|
|
2366
|
+
offer_knob_key: string;
|
|
2367
|
+
source_noun: string;
|
|
2368
|
+
source_token: string;
|
|
2369
|
+
}[];
|
|
2370
|
+
};
|
|
2371
|
+
auth_users_hands_off: {
|
|
2372
|
+
Args: never;
|
|
2373
|
+
Returns: {
|
|
2374
|
+
con_oid: unknown;
|
|
2375
|
+
kind: string;
|
|
2376
|
+
name: string;
|
|
2377
|
+
relation: unknown;
|
|
2378
|
+
}[];
|
|
2379
|
+
};
|
|
2380
|
+
auto_organization_name: {
|
|
2381
|
+
Args: {
|
|
2382
|
+
p_email: string;
|
|
2383
|
+
p_meta: import("../db-types.js").Json;
|
|
2384
|
+
};
|
|
2385
|
+
Returns: string;
|
|
2386
|
+
};
|
|
2387
|
+
can_access_conversation: {
|
|
2388
|
+
Args: {
|
|
2389
|
+
p_conv: string;
|
|
2390
|
+
};
|
|
2391
|
+
Returns: boolean;
|
|
2392
|
+
};
|
|
2393
|
+
can_access_run: {
|
|
2394
|
+
Args: {
|
|
2395
|
+
p_run: string;
|
|
2396
|
+
};
|
|
2397
|
+
Returns: boolean;
|
|
2398
|
+
};
|
|
2399
|
+
can_decide_access_request: {
|
|
2400
|
+
Args: {
|
|
2401
|
+
p_id: string;
|
|
2402
|
+
p_type: string;
|
|
2403
|
+
p_user_id: string;
|
|
2404
|
+
};
|
|
2405
|
+
Returns: boolean;
|
|
2406
|
+
};
|
|
2407
|
+
candidate_admits: {
|
|
2408
|
+
Args: {
|
|
2409
|
+
p_id: string;
|
|
2410
|
+
p_type: string;
|
|
2411
|
+
};
|
|
2412
|
+
Returns: boolean;
|
|
2413
|
+
};
|
|
2414
|
+
canonical_certify: {
|
|
2415
|
+
Args: {
|
|
2416
|
+
p_schema: string;
|
|
2417
|
+
p_table: string;
|
|
2418
|
+
p_token: string;
|
|
2419
|
+
};
|
|
2420
|
+
Returns: {
|
|
2421
|
+
category: string;
|
|
2422
|
+
detail: string;
|
|
2423
|
+
status: string;
|
|
2424
|
+
}[];
|
|
2425
|
+
};
|
|
2426
|
+
canonical_certify_ok: {
|
|
2427
|
+
Args: {
|
|
2428
|
+
p_schema: string;
|
|
2429
|
+
p_table: string;
|
|
2430
|
+
p_token: string;
|
|
2431
|
+
};
|
|
2432
|
+
Returns: boolean;
|
|
2433
|
+
};
|
|
2434
|
+
children_with_own_read_arms: {
|
|
2435
|
+
Args: never;
|
|
2436
|
+
Returns: {
|
|
2437
|
+
check_name: string;
|
|
2438
|
+
policy_name: string;
|
|
2439
|
+
table_name: string;
|
|
2440
|
+
token: string;
|
|
2441
|
+
}[];
|
|
2442
|
+
};
|
|
2443
|
+
claim_world_namespace: {
|
|
2444
|
+
Args: {
|
|
2445
|
+
p_namespace: string;
|
|
2446
|
+
p_organization_id: string;
|
|
2447
|
+
};
|
|
2448
|
+
Returns: {
|
|
2449
|
+
claimed_at: string;
|
|
2450
|
+
claimed_by: string | null;
|
|
2451
|
+
created_at: string;
|
|
2452
|
+
namespace: string;
|
|
2453
|
+
organization_id: string;
|
|
2454
|
+
updated_at: string;
|
|
2455
|
+
};
|
|
2456
|
+
SetofOptions: {
|
|
2457
|
+
from: "*";
|
|
2458
|
+
to: "world_namespace";
|
|
2459
|
+
isOneToOne: true;
|
|
2460
|
+
isSetofReturn: false;
|
|
2461
|
+
};
|
|
2462
|
+
};
|
|
2463
|
+
class_allows: {
|
|
2464
|
+
Args: {
|
|
2465
|
+
p_action: string;
|
|
2466
|
+
p_row_org?: string;
|
|
2467
|
+
p_token: string;
|
|
2468
|
+
};
|
|
2469
|
+
Returns: boolean;
|
|
2470
|
+
};
|
|
2471
|
+
class_gate_class: {
|
|
2472
|
+
Args: {
|
|
2473
|
+
p_token: string;
|
|
2474
|
+
};
|
|
2475
|
+
Returns: string;
|
|
2476
|
+
};
|
|
2477
|
+
class_lanes: {
|
|
2478
|
+
Args: {
|
|
2479
|
+
p_token: string;
|
|
2480
|
+
};
|
|
2481
|
+
Returns: import("../db-types.js").Database["platform"]["CompositeTypes"]["lane_set"];
|
|
2482
|
+
SetofOptions: {
|
|
2483
|
+
from: "*";
|
|
2484
|
+
to: "lane_set";
|
|
2485
|
+
isOneToOne: true;
|
|
2486
|
+
isSetofReturn: false;
|
|
2487
|
+
};
|
|
2488
|
+
};
|
|
2489
|
+
client_role_can_read: {
|
|
2490
|
+
Args: {
|
|
2491
|
+
p_rel: unknown;
|
|
2492
|
+
p_role?: string;
|
|
2493
|
+
};
|
|
2494
|
+
Returns: boolean;
|
|
2495
|
+
};
|
|
2496
|
+
component_original_lane: {
|
|
2497
|
+
Args: {
|
|
2498
|
+
p_schema: string;
|
|
2499
|
+
p_table: string;
|
|
2500
|
+
p_token: string;
|
|
2501
|
+
};
|
|
2502
|
+
Returns: string;
|
|
2503
|
+
};
|
|
2504
|
+
component_wider_than_parent: {
|
|
2505
|
+
Args: {
|
|
2506
|
+
p_principals?: string[];
|
|
2507
|
+
p_token?: string;
|
|
2508
|
+
};
|
|
2509
|
+
Returns: {
|
|
2510
|
+
component_table: string;
|
|
2511
|
+
component_token: string;
|
|
2512
|
+
fk_column: string;
|
|
2513
|
+
parent_ids_admitted: number;
|
|
2514
|
+
parent_ids_refused: number;
|
|
2515
|
+
parent_type: string;
|
|
2516
|
+
principal: string;
|
|
2517
|
+
principal_email: string;
|
|
2518
|
+
probe_error: string;
|
|
2519
|
+
rows_readable_under_refused_parent: number;
|
|
2520
|
+
}[];
|
|
2521
|
+
};
|
|
2522
|
+
content_levels: {
|
|
2523
|
+
Args: never;
|
|
2524
|
+
Returns: {
|
|
2525
|
+
level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2526
|
+
noun: string;
|
|
2527
|
+
ordinal: number;
|
|
2528
|
+
}[];
|
|
2529
|
+
};
|
|
2530
|
+
converge_legacy_column: {
|
|
2531
|
+
Args: {
|
|
2532
|
+
p_column: string;
|
|
2533
|
+
p_execute?: boolean;
|
|
2534
|
+
p_schema: string;
|
|
2535
|
+
p_table: string;
|
|
2536
|
+
};
|
|
2537
|
+
Returns: string;
|
|
2538
|
+
};
|
|
2539
|
+
default_organization_id: {
|
|
2540
|
+
Args: {
|
|
2541
|
+
p_user_id: string;
|
|
2542
|
+
};
|
|
2543
|
+
Returns: string;
|
|
2544
|
+
};
|
|
2545
|
+
derive_organization_abbreviation: {
|
|
2546
|
+
Args: {
|
|
2547
|
+
p_name: string;
|
|
2548
|
+
};
|
|
2549
|
+
Returns: string;
|
|
2550
|
+
};
|
|
2551
|
+
discoverable_card: {
|
|
2552
|
+
Args: {
|
|
2553
|
+
p_resource_id: string;
|
|
2554
|
+
p_resource_type: string;
|
|
2555
|
+
};
|
|
2556
|
+
Returns: {
|
|
2557
|
+
resource_id: string;
|
|
2558
|
+
resource_type: string;
|
|
2559
|
+
title: string;
|
|
2560
|
+
}[];
|
|
2561
|
+
};
|
|
2562
|
+
discoverable_ids: {
|
|
2563
|
+
Args: {
|
|
2564
|
+
p_depth?: number;
|
|
2565
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2566
|
+
p_type: string;
|
|
2567
|
+
p_user_id: string;
|
|
2568
|
+
};
|
|
2569
|
+
Returns: string[];
|
|
2570
|
+
} | {
|
|
2571
|
+
Args: {
|
|
2572
|
+
p_depth: number;
|
|
2573
|
+
p_include_public: boolean;
|
|
2574
|
+
p_required: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2575
|
+
p_type: string;
|
|
2576
|
+
p_user_id: string;
|
|
2577
|
+
};
|
|
2578
|
+
Returns: string[];
|
|
2579
|
+
};
|
|
2580
|
+
discovery_class_selftest: {
|
|
2581
|
+
Args: never;
|
|
2582
|
+
Returns: {
|
|
2583
|
+
check_name: string;
|
|
2584
|
+
detail: string;
|
|
2585
|
+
status: string;
|
|
2586
|
+
}[];
|
|
2587
|
+
};
|
|
2588
|
+
door_identity_args: {
|
|
2589
|
+
Args: {
|
|
2590
|
+
p_oid: unknown;
|
|
2591
|
+
};
|
|
2592
|
+
Returns: string;
|
|
2593
|
+
};
|
|
2594
|
+
doors_only_refusals: {
|
|
2595
|
+
Args: {
|
|
2596
|
+
p_tbl: unknown;
|
|
2597
|
+
};
|
|
2598
|
+
Returns: string[];
|
|
2599
|
+
};
|
|
2600
|
+
drop_governance_guard: {
|
|
2601
|
+
Args: {
|
|
2602
|
+
p_schema: string;
|
|
2603
|
+
p_table: string;
|
|
2604
|
+
};
|
|
2605
|
+
Returns: undefined;
|
|
2606
|
+
};
|
|
2607
|
+
effective_level: {
|
|
2608
|
+
Args: {
|
|
2609
|
+
p_organization_id?: string;
|
|
2610
|
+
p_resource_id: string;
|
|
2611
|
+
p_resource_type: string;
|
|
2612
|
+
p_table_id?: string;
|
|
2613
|
+
p_user_id: string;
|
|
2614
|
+
};
|
|
2615
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2616
|
+
};
|
|
2617
|
+
entity_read_equivalence: {
|
|
2618
|
+
Args: {
|
|
2619
|
+
p_baseline?: string;
|
|
2620
|
+
p_limit?: number;
|
|
2621
|
+
p_schema: string;
|
|
2622
|
+
p_table: string;
|
|
2623
|
+
p_token: string;
|
|
2624
|
+
p_user: string;
|
|
2625
|
+
};
|
|
2626
|
+
Returns: {
|
|
2627
|
+
compared: number;
|
|
2628
|
+
gained: number;
|
|
2629
|
+
lost: number;
|
|
2630
|
+
}[];
|
|
2631
|
+
};
|
|
2632
|
+
entity_read_expr: {
|
|
2633
|
+
Args: {
|
|
2634
|
+
p_schema: string;
|
|
2635
|
+
p_table: string;
|
|
2636
|
+
p_token: string;
|
|
2637
|
+
p_variant?: string;
|
|
2638
|
+
};
|
|
2639
|
+
Returns: string;
|
|
2640
|
+
};
|
|
2641
|
+
entity_read_kernel_expected: {
|
|
2642
|
+
Args: never;
|
|
2643
|
+
Returns: string;
|
|
2644
|
+
};
|
|
2645
|
+
entity_read_kernel_fingerprint: {
|
|
2646
|
+
Args: never;
|
|
2647
|
+
Returns: string;
|
|
2648
|
+
};
|
|
2649
|
+
entity_read_kernel_members: {
|
|
2650
|
+
Args: never;
|
|
2651
|
+
Returns: {
|
|
2652
|
+
function_name: string;
|
|
2653
|
+
schema_name: string;
|
|
2654
|
+
}[];
|
|
2655
|
+
};
|
|
2656
|
+
entity_read_kernel_members_expected: {
|
|
2657
|
+
Args: never;
|
|
2658
|
+
Returns: import("../db-types.js").Json;
|
|
2659
|
+
};
|
|
2660
|
+
entity_read_kernel_members_live: {
|
|
2661
|
+
Args: never;
|
|
2662
|
+
Returns: import("../db-types.js").Json;
|
|
2663
|
+
};
|
|
2664
|
+
entity_read_lane_correct: {
|
|
2665
|
+
Args: never;
|
|
2666
|
+
Returns: {
|
|
2667
|
+
schemaname: string;
|
|
2668
|
+
tablename: string;
|
|
2669
|
+
}[];
|
|
2670
|
+
};
|
|
2671
|
+
entity_read_lane_done: {
|
|
2672
|
+
Args: never;
|
|
2673
|
+
Returns: {
|
|
2674
|
+
schemaname: string;
|
|
2675
|
+
tablename: string;
|
|
2676
|
+
}[];
|
|
2677
|
+
};
|
|
2678
|
+
entity_read_lane_preflight: {
|
|
2679
|
+
Args: never;
|
|
2680
|
+
Returns: {
|
|
2681
|
+
function_signature: string;
|
|
2682
|
+
role_name: string;
|
|
2683
|
+
}[];
|
|
2684
|
+
};
|
|
2685
|
+
entity_read_probe_users: {
|
|
2686
|
+
Args: {
|
|
2687
|
+
p_limit?: number;
|
|
2688
|
+
};
|
|
2689
|
+
Returns: {
|
|
2690
|
+
user_id: string;
|
|
2691
|
+
}[];
|
|
2692
|
+
};
|
|
2693
|
+
external_principal_card: {
|
|
2694
|
+
Args: {
|
|
2695
|
+
p_user_id?: string;
|
|
2696
|
+
};
|
|
2697
|
+
Returns: import("../db-types.js").Json;
|
|
2698
|
+
};
|
|
2699
|
+
external_principal_reach: {
|
|
2700
|
+
Args: {
|
|
2701
|
+
p_resource_type: string;
|
|
2702
|
+
p_user_id?: string;
|
|
2703
|
+
};
|
|
2704
|
+
Returns: {
|
|
2705
|
+
resource_id: string;
|
|
2706
|
+
}[];
|
|
2707
|
+
};
|
|
2708
|
+
field_sensitivity_level: {
|
|
2709
|
+
Args: {
|
|
2710
|
+
p_action?: string;
|
|
2711
|
+
p_organization_id?: string;
|
|
2712
|
+
p_sensitivity: string;
|
|
2713
|
+
};
|
|
2714
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2715
|
+
};
|
|
2716
|
+
fn_grant_resource_permission: {
|
|
2717
|
+
Args: {
|
|
2718
|
+
p_expires_at?: string;
|
|
2719
|
+
p_grantee_id: string;
|
|
2720
|
+
p_grantee_type?: string;
|
|
2721
|
+
p_level?: string;
|
|
2722
|
+
p_resource_id: string;
|
|
2723
|
+
p_resource_type: string;
|
|
2724
|
+
};
|
|
2725
|
+
Returns: import("../db-types.js").Json;
|
|
2726
|
+
};
|
|
2727
|
+
fn_list_resource_permissions: {
|
|
2728
|
+
Args: {
|
|
2729
|
+
p_resource_id: string;
|
|
2730
|
+
p_resource_type: string;
|
|
2731
|
+
};
|
|
2732
|
+
Returns: import("../db-types.js").Json;
|
|
2733
|
+
};
|
|
2734
|
+
fn_revoke_resource_permission: {
|
|
2735
|
+
Args: {
|
|
2736
|
+
p_grantee_id: string;
|
|
2737
|
+
p_grantee_type?: string;
|
|
2738
|
+
p_resource_id: string;
|
|
2739
|
+
p_resource_type: string;
|
|
2740
|
+
};
|
|
2741
|
+
Returns: boolean;
|
|
2742
|
+
};
|
|
2743
|
+
generated_policy_names: {
|
|
2744
|
+
Args: never;
|
|
2745
|
+
Returns: string[];
|
|
2746
|
+
};
|
|
2747
|
+
governance_columns: {
|
|
2748
|
+
Args: {
|
|
2749
|
+
p_token: string;
|
|
2750
|
+
};
|
|
2751
|
+
Returns: string[];
|
|
2752
|
+
};
|
|
2753
|
+
grant_addressed_level: {
|
|
2754
|
+
Args: {
|
|
2755
|
+
p_resource_id: string;
|
|
2756
|
+
p_resource_type: string;
|
|
2757
|
+
p_user_id: string;
|
|
2758
|
+
};
|
|
2759
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2760
|
+
};
|
|
2761
|
+
grant_path_blanket_refusals: {
|
|
2762
|
+
Args: never;
|
|
2763
|
+
Returns: {
|
|
2764
|
+
guard_function: string;
|
|
2765
|
+
on_table: string;
|
|
2766
|
+
remedy: string;
|
|
2767
|
+
trigger_name: string;
|
|
2768
|
+
unreadable_table: string;
|
|
2769
|
+
what_happens: string;
|
|
2770
|
+
}[];
|
|
2771
|
+
};
|
|
2772
|
+
granted_level: {
|
|
2773
|
+
Args: {
|
|
2774
|
+
p_resource_id: string;
|
|
2775
|
+
p_resource_type: string;
|
|
2776
|
+
p_user_id: string;
|
|
2777
|
+
};
|
|
2778
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2779
|
+
};
|
|
2780
|
+
has_access: {
|
|
2781
|
+
Args: {
|
|
2782
|
+
p_id: string;
|
|
2783
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2784
|
+
p_type: string;
|
|
2785
|
+
};
|
|
2786
|
+
Returns: boolean;
|
|
2787
|
+
};
|
|
2788
|
+
has_access_as: {
|
|
2789
|
+
Args: {
|
|
2790
|
+
p_id: string;
|
|
2791
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2792
|
+
p_type: string;
|
|
2793
|
+
p_user: string;
|
|
2794
|
+
};
|
|
2795
|
+
Returns: boolean;
|
|
2796
|
+
};
|
|
2797
|
+
has_access_for: {
|
|
2798
|
+
Args: {
|
|
2799
|
+
p_id: string;
|
|
2800
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2801
|
+
p_type: string;
|
|
2802
|
+
p_user_id: string;
|
|
2803
|
+
};
|
|
2804
|
+
Returns: boolean;
|
|
2805
|
+
};
|
|
2806
|
+
has_access_for_base: {
|
|
2807
|
+
Args: {
|
|
2808
|
+
p_id: string;
|
|
2809
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2810
|
+
p_type: string;
|
|
2811
|
+
p_user_id: string;
|
|
2812
|
+
};
|
|
2813
|
+
Returns: boolean;
|
|
2814
|
+
} | {
|
|
2815
|
+
Args: {
|
|
2816
|
+
p_id: string;
|
|
2817
|
+
p_include_public: boolean;
|
|
2818
|
+
p_required: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2819
|
+
p_type: string;
|
|
2820
|
+
p_user_id: string;
|
|
2821
|
+
};
|
|
2822
|
+
Returns: boolean;
|
|
2823
|
+
} | {
|
|
2824
|
+
Args: {
|
|
2825
|
+
p_id: string;
|
|
2826
|
+
p_include_public: boolean;
|
|
2827
|
+
p_path: string[];
|
|
2828
|
+
p_required: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2829
|
+
p_type: string;
|
|
2830
|
+
p_user_id: string;
|
|
2831
|
+
};
|
|
2832
|
+
Returns: boolean;
|
|
2833
|
+
};
|
|
2834
|
+
has_org_access: {
|
|
2835
|
+
Args: {
|
|
2836
|
+
p_org: string;
|
|
2837
|
+
};
|
|
2838
|
+
Returns: boolean;
|
|
2839
|
+
};
|
|
2840
|
+
has_org_access_for: {
|
|
2841
|
+
Args: {
|
|
2842
|
+
p_org: string;
|
|
2843
|
+
p_user_id: string;
|
|
2844
|
+
};
|
|
2845
|
+
Returns: boolean;
|
|
2846
|
+
};
|
|
2847
|
+
has_org_admin: {
|
|
2848
|
+
Args: {
|
|
2849
|
+
p_org: string;
|
|
2850
|
+
};
|
|
2851
|
+
Returns: boolean;
|
|
2852
|
+
};
|
|
2853
|
+
has_org_owner: {
|
|
2854
|
+
Args: {
|
|
2855
|
+
p_org: string;
|
|
2856
|
+
};
|
|
2857
|
+
Returns: boolean;
|
|
2858
|
+
};
|
|
2859
|
+
invitation_has_its_own_door: {
|
|
2860
|
+
Args: {
|
|
2861
|
+
p_target_type: string;
|
|
2862
|
+
};
|
|
2863
|
+
Returns: string;
|
|
2864
|
+
};
|
|
2865
|
+
is_client_lane: {
|
|
2866
|
+
Args: never;
|
|
2867
|
+
Returns: boolean;
|
|
2868
|
+
};
|
|
2869
|
+
is_discoverable: {
|
|
2870
|
+
Args: {
|
|
2871
|
+
p_id: string;
|
|
2872
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2873
|
+
p_type: string;
|
|
2874
|
+
p_user_id: string;
|
|
2875
|
+
};
|
|
2876
|
+
Returns: boolean;
|
|
2877
|
+
};
|
|
2878
|
+
is_discoverable_base: {
|
|
2879
|
+
Args: {
|
|
2880
|
+
p_id: string;
|
|
2881
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2882
|
+
p_type: string;
|
|
2883
|
+
p_user_id: string;
|
|
2884
|
+
};
|
|
2885
|
+
Returns: boolean;
|
|
2886
|
+
} | {
|
|
2887
|
+
Args: {
|
|
2888
|
+
p_id: string;
|
|
2889
|
+
p_include_public: boolean;
|
|
2890
|
+
p_required: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2891
|
+
p_type: string;
|
|
2892
|
+
p_user_id: string;
|
|
2893
|
+
};
|
|
2894
|
+
Returns: boolean;
|
|
2895
|
+
};
|
|
2896
|
+
is_doors_only_refusal: {
|
|
2897
|
+
Args: {
|
|
2898
|
+
p_cmd: unknown;
|
|
2899
|
+
p_name: string;
|
|
2900
|
+
p_permissive: boolean;
|
|
2901
|
+
p_qual: string;
|
|
2902
|
+
p_roles: unknown[];
|
|
2903
|
+
p_withcheck: string;
|
|
2904
|
+
};
|
|
2905
|
+
Returns: boolean;
|
|
2906
|
+
};
|
|
2907
|
+
is_external_principal: {
|
|
2908
|
+
Args: {
|
|
2909
|
+
p_user_id?: string;
|
|
2910
|
+
};
|
|
2911
|
+
Returns: boolean;
|
|
2912
|
+
};
|
|
2913
|
+
is_last_organization: {
|
|
2914
|
+
Args: {
|
|
2915
|
+
p_org_id: string;
|
|
2916
|
+
p_user_id: string;
|
|
2917
|
+
};
|
|
2918
|
+
Returns: boolean;
|
|
2919
|
+
};
|
|
2920
|
+
is_org_manager: {
|
|
2921
|
+
Args: {
|
|
2922
|
+
p_org_id: string;
|
|
2923
|
+
p_user_id: string;
|
|
2924
|
+
};
|
|
2925
|
+
Returns: boolean;
|
|
2926
|
+
};
|
|
2927
|
+
is_org_member: {
|
|
2928
|
+
Args: {
|
|
2929
|
+
p_org: string;
|
|
2930
|
+
p_user: string;
|
|
2931
|
+
};
|
|
2932
|
+
Returns: boolean;
|
|
2933
|
+
};
|
|
2934
|
+
is_org_owner: {
|
|
2935
|
+
Args: {
|
|
2936
|
+
p_org_id: string;
|
|
2937
|
+
p_user_id: string;
|
|
2938
|
+
};
|
|
2939
|
+
Returns: boolean;
|
|
2940
|
+
};
|
|
2941
|
+
is_trusted_backend: {
|
|
2942
|
+
Args: never;
|
|
2943
|
+
Returns: boolean;
|
|
2944
|
+
};
|
|
2945
|
+
lane_of: {
|
|
2946
|
+
Args: {
|
|
2947
|
+
p_resource_id: string;
|
|
2948
|
+
p_resource_type: string;
|
|
2949
|
+
};
|
|
2950
|
+
Returns: string;
|
|
2951
|
+
};
|
|
2952
|
+
legacy_column_worklist: {
|
|
2953
|
+
Args: never;
|
|
2954
|
+
Returns: {
|
|
2955
|
+
canonical_column: string;
|
|
2956
|
+
disposition: string;
|
|
2957
|
+
legacy_column: string;
|
|
2958
|
+
schema_name: string;
|
|
2959
|
+
statement: string;
|
|
2960
|
+
table_name: string;
|
|
2961
|
+
token: string;
|
|
2962
|
+
variant: string;
|
|
2963
|
+
}[];
|
|
2964
|
+
};
|
|
2965
|
+
level_label: {
|
|
2966
|
+
Args: {
|
|
2967
|
+
p_level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2968
|
+
p_scope_noun: string;
|
|
2969
|
+
};
|
|
2970
|
+
Returns: string;
|
|
2971
|
+
};
|
|
2972
|
+
may_address_user_in_org: {
|
|
2973
|
+
Args: {
|
|
2974
|
+
p_org: string;
|
|
2975
|
+
p_user: string;
|
|
2976
|
+
};
|
|
2977
|
+
Returns: boolean;
|
|
2978
|
+
};
|
|
2979
|
+
may_manage_sharing_as: {
|
|
2980
|
+
Args: {
|
|
2981
|
+
p_actor: string;
|
|
2982
|
+
p_resource_id: string;
|
|
2983
|
+
p_resource_type: string;
|
|
2984
|
+
};
|
|
2985
|
+
Returns: boolean;
|
|
2986
|
+
};
|
|
2987
|
+
may_touch_field: {
|
|
2988
|
+
Args: {
|
|
2989
|
+
p_action?: string;
|
|
2990
|
+
p_field_id: string;
|
|
2991
|
+
p_level_on_record: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
2992
|
+
p_organization_id: string;
|
|
2993
|
+
p_user_id: string;
|
|
2994
|
+
};
|
|
2995
|
+
Returns: boolean;
|
|
2996
|
+
};
|
|
2997
|
+
may_touch_field_itself: {
|
|
2998
|
+
Args: {
|
|
2999
|
+
p_action?: string;
|
|
3000
|
+
p_field_id: string;
|
|
3001
|
+
p_level_on_record: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3002
|
+
p_organization_id: string;
|
|
3003
|
+
p_user_id: string;
|
|
3004
|
+
};
|
|
3005
|
+
Returns: boolean;
|
|
3006
|
+
};
|
|
3007
|
+
member_default_level: {
|
|
3008
|
+
Args: {
|
|
3009
|
+
p_organization_id: string;
|
|
3010
|
+
p_table_id?: string;
|
|
3011
|
+
};
|
|
3012
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3013
|
+
};
|
|
3014
|
+
member_default_level_as_of: {
|
|
3015
|
+
Args: {
|
|
3016
|
+
p_at: string;
|
|
3017
|
+
p_organization_id: string;
|
|
3018
|
+
p_table_id: string;
|
|
3019
|
+
};
|
|
3020
|
+
Returns: {
|
|
3021
|
+
level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3022
|
+
replayed: boolean;
|
|
3023
|
+
}[];
|
|
3024
|
+
};
|
|
3025
|
+
member_lane_confers: {
|
|
3026
|
+
Args: {
|
|
3027
|
+
p_id?: string;
|
|
3028
|
+
p_organization_id: string;
|
|
3029
|
+
p_personal_hides?: boolean;
|
|
3030
|
+
p_table_id?: string;
|
|
3031
|
+
p_type?: string;
|
|
3032
|
+
p_user_id: string;
|
|
3033
|
+
};
|
|
3034
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3035
|
+
};
|
|
3036
|
+
member_lane_open: {
|
|
3037
|
+
Args: {
|
|
3038
|
+
p_organization_id: string;
|
|
3039
|
+
};
|
|
3040
|
+
Returns: boolean;
|
|
3041
|
+
};
|
|
3042
|
+
member_lane_open_as_of: {
|
|
3043
|
+
Args: {
|
|
3044
|
+
p_at: string;
|
|
3045
|
+
p_organization_id: string;
|
|
3046
|
+
};
|
|
3047
|
+
Returns: {
|
|
3048
|
+
lane_open: boolean;
|
|
3049
|
+
replayed: boolean;
|
|
3050
|
+
}[];
|
|
3051
|
+
};
|
|
3052
|
+
member_level_justified: {
|
|
3053
|
+
Args: {
|
|
3054
|
+
p_organization_id: string;
|
|
3055
|
+
p_record_id: string;
|
|
3056
|
+
p_user_id: string;
|
|
3057
|
+
};
|
|
3058
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3059
|
+
};
|
|
3060
|
+
member_level_overreach: {
|
|
3061
|
+
Args: never;
|
|
3062
|
+
Returns: {
|
|
3063
|
+
example_record_id: string;
|
|
3064
|
+
member_email: string;
|
|
3065
|
+
member_id: string;
|
|
3066
|
+
organization_id: string;
|
|
3067
|
+
organization_name: string;
|
|
3068
|
+
records_over: number;
|
|
3069
|
+
worst_actual: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3070
|
+
worst_justified: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3071
|
+
}[];
|
|
3072
|
+
};
|
|
3073
|
+
membership_change_refusal: {
|
|
3074
|
+
Args: {
|
|
3075
|
+
p_actor_id: string;
|
|
3076
|
+
p_new_role: string;
|
|
3077
|
+
p_organization_id: string;
|
|
3078
|
+
p_target_user_id: string;
|
|
3079
|
+
};
|
|
3080
|
+
Returns: string;
|
|
3081
|
+
};
|
|
3082
|
+
membership_readers_missing_container: {
|
|
3083
|
+
Args: never;
|
|
3084
|
+
Returns: {
|
|
3085
|
+
function_ref: string;
|
|
3086
|
+
}[];
|
|
3087
|
+
};
|
|
3088
|
+
membership_row_visible: {
|
|
3089
|
+
Args: {
|
|
3090
|
+
p_membership_id: string;
|
|
3091
|
+
};
|
|
3092
|
+
Returns: boolean;
|
|
3093
|
+
};
|
|
3094
|
+
my_access_log: {
|
|
3095
|
+
Args: {
|
|
3096
|
+
p_limit?: number;
|
|
3097
|
+
p_offset?: number;
|
|
3098
|
+
};
|
|
3099
|
+
Returns: import("../db-types.js").Json;
|
|
3100
|
+
};
|
|
3101
|
+
my_admin_orgs: {
|
|
3102
|
+
Args: never;
|
|
3103
|
+
Returns: string[];
|
|
3104
|
+
};
|
|
3105
|
+
my_orgs: {
|
|
3106
|
+
Args: never;
|
|
3107
|
+
Returns: string[];
|
|
3108
|
+
};
|
|
3109
|
+
my_orgs_all: {
|
|
3110
|
+
Args: never;
|
|
3111
|
+
Returns: string[];
|
|
3112
|
+
};
|
|
3113
|
+
my_team_ids: {
|
|
3114
|
+
Args: {
|
|
3115
|
+
p_organization_id: string;
|
|
3116
|
+
};
|
|
3117
|
+
Returns: string[];
|
|
3118
|
+
};
|
|
3119
|
+
my_team_reach: {
|
|
3120
|
+
Args: {
|
|
3121
|
+
p_organization_id?: string;
|
|
3122
|
+
};
|
|
3123
|
+
Returns: {
|
|
3124
|
+
organization_id: string;
|
|
3125
|
+
user_id: string;
|
|
3126
|
+
}[];
|
|
3127
|
+
};
|
|
3128
|
+
my_teammate_user_ids: {
|
|
3129
|
+
Args: {
|
|
3130
|
+
p_organization_id: string;
|
|
3131
|
+
};
|
|
3132
|
+
Returns: string[];
|
|
3133
|
+
};
|
|
3134
|
+
oauth_client_is_dynamic: {
|
|
3135
|
+
Args: {
|
|
3136
|
+
p_client_id: string;
|
|
3137
|
+
};
|
|
3138
|
+
Returns: boolean;
|
|
3139
|
+
};
|
|
3140
|
+
org_access_ids: {
|
|
3141
|
+
Args: never;
|
|
3142
|
+
Returns: string[];
|
|
3143
|
+
};
|
|
3144
|
+
org_access_log: {
|
|
3145
|
+
Args: {
|
|
3146
|
+
p_limit?: number;
|
|
3147
|
+
p_organization_id: string;
|
|
3148
|
+
};
|
|
3149
|
+
Returns: import("../db-types.js").Json;
|
|
3150
|
+
};
|
|
3151
|
+
org_lane_visibility_sql: {
|
|
3152
|
+
Args: {
|
|
3153
|
+
p_alias?: string;
|
|
3154
|
+
p_token: string;
|
|
3155
|
+
};
|
|
3156
|
+
Returns: string;
|
|
3157
|
+
};
|
|
3158
|
+
org_open_gate_applies: {
|
|
3159
|
+
Args: {
|
|
3160
|
+
p_schema: string;
|
|
3161
|
+
p_table: string;
|
|
3162
|
+
};
|
|
3163
|
+
Returns: boolean;
|
|
3164
|
+
};
|
|
3165
|
+
org_open_gate_deparsed: {
|
|
3166
|
+
Args: never;
|
|
3167
|
+
Returns: string;
|
|
3168
|
+
};
|
|
3169
|
+
org_open_predicate: {
|
|
3170
|
+
Args: never;
|
|
3171
|
+
Returns: string;
|
|
3172
|
+
};
|
|
3173
|
+
org_peer_user_ids: {
|
|
3174
|
+
Args: never;
|
|
3175
|
+
Returns: string[];
|
|
3176
|
+
};
|
|
3177
|
+
org_readable: {
|
|
3178
|
+
Args: {
|
|
3179
|
+
p_org: string;
|
|
3180
|
+
p_token: string;
|
|
3181
|
+
};
|
|
3182
|
+
Returns: boolean;
|
|
3183
|
+
};
|
|
3184
|
+
organization_archive: {
|
|
3185
|
+
Args: {
|
|
3186
|
+
p_confirm_name: string;
|
|
3187
|
+
p_org: string;
|
|
3188
|
+
p_reason?: string;
|
|
3189
|
+
};
|
|
3190
|
+
Returns: import("../db-types.js").Json;
|
|
3191
|
+
};
|
|
3192
|
+
organization_archive_state: {
|
|
3193
|
+
Args: {
|
|
3194
|
+
p_org: string;
|
|
3195
|
+
};
|
|
3196
|
+
Returns: import("../db-types.js").Json;
|
|
3197
|
+
};
|
|
3198
|
+
organization_restore: {
|
|
3199
|
+
Args: {
|
|
3200
|
+
p_confirm_name: string;
|
|
3201
|
+
p_org: string;
|
|
3202
|
+
};
|
|
3203
|
+
Returns: import("../db-types.js").Json;
|
|
3204
|
+
};
|
|
3205
|
+
organization_roles: {
|
|
3206
|
+
Args: never;
|
|
3207
|
+
Returns: {
|
|
3208
|
+
rank: number;
|
|
3209
|
+
role: string;
|
|
3210
|
+
what_it_means: string;
|
|
3211
|
+
}[];
|
|
3212
|
+
};
|
|
3213
|
+
owner_of: {
|
|
3214
|
+
Args: {
|
|
3215
|
+
p_resource_id: string;
|
|
3216
|
+
p_resource_type: string;
|
|
3217
|
+
};
|
|
3218
|
+
Returns: string;
|
|
3219
|
+
};
|
|
3220
|
+
people_lists_a_non_member_can_read: {
|
|
3221
|
+
Args: never;
|
|
3222
|
+
Returns: {
|
|
3223
|
+
policy_name: string;
|
|
3224
|
+
relation: string;
|
|
3225
|
+
why: string;
|
|
3226
|
+
}[];
|
|
3227
|
+
};
|
|
3228
|
+
people_shaped_relations_with_no_verdict: {
|
|
3229
|
+
Args: never;
|
|
3230
|
+
Returns: {
|
|
3231
|
+
relation: string;
|
|
3232
|
+
why: string;
|
|
3233
|
+
}[];
|
|
3234
|
+
};
|
|
3235
|
+
permission_means: {
|
|
3236
|
+
Args: {
|
|
3237
|
+
p_level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3238
|
+
};
|
|
3239
|
+
Returns: string;
|
|
3240
|
+
};
|
|
3241
|
+
personal_api_key_create: {
|
|
3242
|
+
Args: {
|
|
3243
|
+
p_expires_at?: string;
|
|
3244
|
+
p_name: string;
|
|
3245
|
+
p_organization_id: string;
|
|
3246
|
+
};
|
|
3247
|
+
Returns: import("../db-types.js").Json;
|
|
3248
|
+
};
|
|
3249
|
+
personal_api_key_list: {
|
|
3250
|
+
Args: never;
|
|
3251
|
+
Returns: import("../db-types.js").Json;
|
|
3252
|
+
};
|
|
3253
|
+
personal_api_key_revoke: {
|
|
3254
|
+
Args: {
|
|
3255
|
+
p_id: string;
|
|
3256
|
+
};
|
|
3257
|
+
Returns: import("../db-types.js").Json;
|
|
3258
|
+
};
|
|
3259
|
+
personal_data_relations: {
|
|
3260
|
+
Args: never;
|
|
3261
|
+
Returns: {
|
|
3262
|
+
names_a_person: boolean;
|
|
3263
|
+
relation: string;
|
|
3264
|
+
why: string;
|
|
3265
|
+
}[];
|
|
3266
|
+
};
|
|
3267
|
+
personal_opens_row: {
|
|
3268
|
+
Args: {
|
|
3269
|
+
p_id: string;
|
|
3270
|
+
p_schema: string;
|
|
3271
|
+
p_table: string;
|
|
3272
|
+
p_token: string;
|
|
3273
|
+
};
|
|
3274
|
+
Returns: boolean;
|
|
3275
|
+
};
|
|
3276
|
+
placeholder_in_a_name: {
|
|
3277
|
+
Args: {
|
|
3278
|
+
p_name: string;
|
|
3279
|
+
p_slug?: string;
|
|
3280
|
+
};
|
|
3281
|
+
Returns: string;
|
|
3282
|
+
};
|
|
3283
|
+
platform_admin_read_prefix: {
|
|
3284
|
+
Args: {
|
|
3285
|
+
p_token: string;
|
|
3286
|
+
};
|
|
3287
|
+
Returns: string;
|
|
3288
|
+
};
|
|
3289
|
+
policy_carries_a_plain_system_org_arm: {
|
|
3290
|
+
Args: {
|
|
3291
|
+
p_expr: string;
|
|
3292
|
+
};
|
|
3293
|
+
Returns: boolean;
|
|
3294
|
+
};
|
|
3295
|
+
privacy_wall_read_lane_parity: {
|
|
3296
|
+
Args: {
|
|
3297
|
+
p_limit?: number;
|
|
3298
|
+
};
|
|
3299
|
+
Returns: {
|
|
3300
|
+
compared: number;
|
|
3301
|
+
gained: number;
|
|
3302
|
+
lost: number;
|
|
3303
|
+
schema_name: string;
|
|
3304
|
+
table_name: string;
|
|
3305
|
+
token: string;
|
|
3306
|
+
}[];
|
|
3307
|
+
};
|
|
3308
|
+
provision_signup_organization: {
|
|
3309
|
+
Args: {
|
|
3310
|
+
p_user_id: string;
|
|
3311
|
+
};
|
|
3312
|
+
Returns: string;
|
|
3313
|
+
};
|
|
3314
|
+
publish_binding_create: {
|
|
3315
|
+
Args: {
|
|
3316
|
+
p_organization_id: string;
|
|
3317
|
+
p_render_mode?: string;
|
|
3318
|
+
p_resource_id: string;
|
|
3319
|
+
p_resource_type: string;
|
|
3320
|
+
p_slug: string;
|
|
3321
|
+
};
|
|
3322
|
+
Returns: {
|
|
3323
|
+
bound_at: string;
|
|
3324
|
+
bound_by: string | null;
|
|
3325
|
+
created_at: string;
|
|
3326
|
+
id: string;
|
|
3327
|
+
is_active: boolean;
|
|
3328
|
+
organization_id: string;
|
|
3329
|
+
render_mode: string;
|
|
3330
|
+
resource_id: string;
|
|
3331
|
+
resource_type: string;
|
|
3332
|
+
revoked_at: string | null;
|
|
3333
|
+
revoked_by: string | null;
|
|
3334
|
+
slug: string;
|
|
3335
|
+
updated_at: string;
|
|
3336
|
+
};
|
|
3337
|
+
SetofOptions: {
|
|
3338
|
+
from: "*";
|
|
3339
|
+
to: "publish_binding";
|
|
3340
|
+
isOneToOne: true;
|
|
3341
|
+
isSetofReturn: false;
|
|
3342
|
+
};
|
|
3343
|
+
};
|
|
3344
|
+
publish_binding_revoke: {
|
|
3345
|
+
Args: {
|
|
3346
|
+
p_slug: string;
|
|
3347
|
+
};
|
|
3348
|
+
Returns: import("../db-types.js").Json;
|
|
3349
|
+
};
|
|
3350
|
+
publish_to_world: {
|
|
3351
|
+
Args: {
|
|
3352
|
+
p_discoverable?: boolean;
|
|
3353
|
+
p_organization_id: string;
|
|
3354
|
+
p_resource_id: string;
|
|
3355
|
+
p_resource_type: string;
|
|
3356
|
+
};
|
|
3357
|
+
Returns: {
|
|
3358
|
+
created_at: string;
|
|
3359
|
+
discoverable: boolean;
|
|
3360
|
+
entered_world_at: string | null;
|
|
3361
|
+
entered_world_by: string | null;
|
|
3362
|
+
lane: string;
|
|
3363
|
+
link_sharing: boolean;
|
|
3364
|
+
organization_id: string;
|
|
3365
|
+
resource_id: string;
|
|
3366
|
+
resource_type: string;
|
|
3367
|
+
unlisted: boolean;
|
|
3368
|
+
updated_at: string;
|
|
3369
|
+
};
|
|
3370
|
+
SetofOptions: {
|
|
3371
|
+
from: "*";
|
|
3372
|
+
to: "content_lane";
|
|
3373
|
+
isOneToOne: true;
|
|
3374
|
+
isSetofReturn: false;
|
|
3375
|
+
};
|
|
3376
|
+
};
|
|
3377
|
+
reach_containers_worth_asking: {
|
|
3378
|
+
Args: {
|
|
3379
|
+
p_ids: string[];
|
|
3380
|
+
p_types: string[];
|
|
3381
|
+
p_uid: string;
|
|
3382
|
+
};
|
|
3383
|
+
Returns: {
|
|
3384
|
+
container_id: string;
|
|
3385
|
+
container_type: string;
|
|
3386
|
+
}[];
|
|
3387
|
+
};
|
|
3388
|
+
read_lane_v2_auth_reads_id: {
|
|
3389
|
+
Args: {
|
|
3390
|
+
p_rel: unknown;
|
|
3391
|
+
};
|
|
3392
|
+
Returns: boolean;
|
|
3393
|
+
};
|
|
3394
|
+
read_lane_v2_depth: {
|
|
3395
|
+
Args: {
|
|
3396
|
+
p_path?: string[];
|
|
3397
|
+
p_token: string;
|
|
3398
|
+
};
|
|
3399
|
+
Returns: number;
|
|
3400
|
+
};
|
|
3401
|
+
read_lane_v2_edge_emits: {
|
|
3402
|
+
Args: {
|
|
3403
|
+
p_child: string;
|
|
3404
|
+
p_fk: string;
|
|
3405
|
+
p_parent: string;
|
|
3406
|
+
};
|
|
3407
|
+
Returns: boolean;
|
|
3408
|
+
};
|
|
3409
|
+
read_lane_v2_edge_structural_ok: {
|
|
3410
|
+
Args: {
|
|
3411
|
+
p_child: string;
|
|
3412
|
+
p_fk: string;
|
|
3413
|
+
p_parent: string;
|
|
3414
|
+
};
|
|
3415
|
+
Returns: boolean;
|
|
3416
|
+
};
|
|
3417
|
+
read_lane_v2_enrolled: {
|
|
3418
|
+
Args: {
|
|
3419
|
+
p_token: string;
|
|
3420
|
+
};
|
|
3421
|
+
Returns: boolean;
|
|
3422
|
+
};
|
|
3423
|
+
read_lane_v2_guard: {
|
|
3424
|
+
Args: never;
|
|
3425
|
+
Returns: string;
|
|
3426
|
+
};
|
|
3427
|
+
read_lane_v2_guard_deparsed: {
|
|
3428
|
+
Args: never;
|
|
3429
|
+
Returns: string;
|
|
3430
|
+
};
|
|
3431
|
+
read_lane_v2_lock_parents: {
|
|
3432
|
+
Args: {
|
|
3433
|
+
p_token: string;
|
|
3434
|
+
};
|
|
3435
|
+
Returns: undefined;
|
|
3436
|
+
};
|
|
3437
|
+
read_lane_v2_lock_policy_reads: {
|
|
3438
|
+
Args: {
|
|
3439
|
+
p_schema: string;
|
|
3440
|
+
p_table: string;
|
|
3441
|
+
p_token: string;
|
|
3442
|
+
};
|
|
3443
|
+
Returns: undefined;
|
|
3444
|
+
};
|
|
3445
|
+
read_lane_v2_parent_arm: {
|
|
3446
|
+
Args: {
|
|
3447
|
+
p_fk: string;
|
|
3448
|
+
p_parent: string;
|
|
3449
|
+
};
|
|
3450
|
+
Returns: string;
|
|
3451
|
+
};
|
|
3452
|
+
read_lane_v2_refuse_withdraw: {
|
|
3453
|
+
Args: {
|
|
3454
|
+
p_had_read: boolean;
|
|
3455
|
+
p_rel: unknown;
|
|
3456
|
+
};
|
|
3457
|
+
Returns: undefined;
|
|
3458
|
+
};
|
|
3459
|
+
read_lane_v2_stale_edges: {
|
|
3460
|
+
Args: {
|
|
3461
|
+
p_schema: string;
|
|
3462
|
+
p_table: string;
|
|
3463
|
+
p_token: string;
|
|
3464
|
+
};
|
|
3465
|
+
Returns: string;
|
|
3466
|
+
};
|
|
3467
|
+
realtime_field_exposure: {
|
|
3468
|
+
Args: never;
|
|
3469
|
+
Returns: {
|
|
3470
|
+
schema_name: string;
|
|
3471
|
+
table_name: string;
|
|
3472
|
+
why: string;
|
|
3473
|
+
}[];
|
|
3474
|
+
};
|
|
3475
|
+
record_transfer_refusal: {
|
|
3476
|
+
Args: {
|
|
3477
|
+
p_refusal: import("../db-types.js").Json;
|
|
3478
|
+
};
|
|
3479
|
+
Returns: string;
|
|
3480
|
+
};
|
|
3481
|
+
record_visible_in_org: {
|
|
3482
|
+
Args: {
|
|
3483
|
+
p_created_by: string;
|
|
3484
|
+
p_id: string;
|
|
3485
|
+
p_organization_id: string;
|
|
3486
|
+
p_required?: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3487
|
+
p_table_id: string;
|
|
3488
|
+
p_visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
|
|
3489
|
+
};
|
|
3490
|
+
Returns: boolean;
|
|
3491
|
+
};
|
|
3492
|
+
refuse_unreadable_policies: {
|
|
3493
|
+
Args: {
|
|
3494
|
+
p_tbl: unknown;
|
|
3495
|
+
};
|
|
3496
|
+
Returns: undefined;
|
|
3497
|
+
};
|
|
3498
|
+
registry_owner_of: {
|
|
3499
|
+
Args: {
|
|
3500
|
+
p_id: string;
|
|
3501
|
+
p_resource_type: string;
|
|
3502
|
+
};
|
|
3503
|
+
Returns: Record<string, unknown>;
|
|
3504
|
+
};
|
|
3505
|
+
remove_grant: {
|
|
3506
|
+
Args: {
|
|
3507
|
+
p_actor: string;
|
|
3508
|
+
p_by_person?: boolean;
|
|
3509
|
+
p_permission_id: string;
|
|
3510
|
+
};
|
|
3511
|
+
Returns: import("../db-types.js").Json;
|
|
3512
|
+
};
|
|
3513
|
+
reserved_namespace: {
|
|
3514
|
+
Args: never;
|
|
3515
|
+
Returns: {
|
|
3516
|
+
namespace: string;
|
|
3517
|
+
reason: string;
|
|
3518
|
+
}[];
|
|
3519
|
+
};
|
|
3520
|
+
resolve_publish_binding: {
|
|
3521
|
+
Args: {
|
|
3522
|
+
p_slug: string;
|
|
3523
|
+
};
|
|
3524
|
+
Returns: {
|
|
3525
|
+
namespace: string;
|
|
3526
|
+
notice: string;
|
|
3527
|
+
organization_id: string;
|
|
3528
|
+
render_mode: string;
|
|
3529
|
+
resource_id: string;
|
|
3530
|
+
resource_type: string;
|
|
3531
|
+
slug: string;
|
|
3532
|
+
}[];
|
|
3533
|
+
};
|
|
3534
|
+
resolve_publish_binding_kind: {
|
|
3535
|
+
Args: {
|
|
3536
|
+
p_slug: string;
|
|
3537
|
+
};
|
|
3538
|
+
Returns: {
|
|
3539
|
+
kind: string;
|
|
3540
|
+
namespace: string;
|
|
3541
|
+
notice: string;
|
|
3542
|
+
organization_id: string;
|
|
3543
|
+
render_mode: string;
|
|
3544
|
+
resource_id: string;
|
|
3545
|
+
resource_type: string;
|
|
3546
|
+
slug: string;
|
|
3547
|
+
table_id: string;
|
|
3548
|
+
title: string;
|
|
3549
|
+
}[];
|
|
3550
|
+
};
|
|
3551
|
+
role_label: {
|
|
3552
|
+
Args: {
|
|
3553
|
+
p_role: string;
|
|
3554
|
+
};
|
|
3555
|
+
Returns: string;
|
|
3556
|
+
};
|
|
3557
|
+
role_vocabulary_offenders: {
|
|
3558
|
+
Args: never;
|
|
3559
|
+
Returns: {
|
|
3560
|
+
detail: string;
|
|
3561
|
+
how_many: number;
|
|
3562
|
+
object: string;
|
|
3563
|
+
}[];
|
|
3564
|
+
};
|
|
3565
|
+
rulebook_ids_curated_by: {
|
|
3566
|
+
Args: {
|
|
3567
|
+
p_uid: string;
|
|
3568
|
+
};
|
|
3569
|
+
Returns: string[];
|
|
3570
|
+
};
|
|
3571
|
+
runnable_agent_fields: {
|
|
3572
|
+
Args: {
|
|
3573
|
+
p_agent_id: string;
|
|
3574
|
+
};
|
|
3575
|
+
Returns: {
|
|
3576
|
+
auto_context_disabled: boolean;
|
|
3577
|
+
context_policies: import("../db-types.js").Json;
|
|
3578
|
+
name: string;
|
|
3579
|
+
variable_definitions: import("../db-types.js").Json;
|
|
3580
|
+
version: number;
|
|
3581
|
+
}[];
|
|
3582
|
+
};
|
|
3583
|
+
runnable_agent_fields_for: {
|
|
3584
|
+
Args: {
|
|
3585
|
+
p_agent_id: string;
|
|
3586
|
+
p_user_id: string;
|
|
3587
|
+
};
|
|
3588
|
+
Returns: {
|
|
3589
|
+
auto_context_disabled: boolean;
|
|
3590
|
+
context_policies: import("../db-types.js").Json;
|
|
3591
|
+
name: string;
|
|
3592
|
+
variable_definitions: import("../db-types.js").Json;
|
|
3593
|
+
version: number;
|
|
3594
|
+
}[];
|
|
3595
|
+
};
|
|
3596
|
+
runnable_agent_for_org: {
|
|
3597
|
+
Args: {
|
|
3598
|
+
p_agent_id: string;
|
|
3599
|
+
p_organization_id: string;
|
|
3600
|
+
};
|
|
3601
|
+
Returns: boolean;
|
|
3602
|
+
};
|
|
3603
|
+
runnable_version_fields: {
|
|
3604
|
+
Args: {
|
|
3605
|
+
p_version_id: string;
|
|
3606
|
+
};
|
|
3607
|
+
Returns: {
|
|
3608
|
+
auto_context_disabled: boolean;
|
|
3609
|
+
context_policies: import("../db-types.js").Json;
|
|
3610
|
+
name: string;
|
|
3611
|
+
variable_definitions: import("../db-types.js").Json;
|
|
3612
|
+
version_number: number;
|
|
3613
|
+
}[];
|
|
3614
|
+
};
|
|
3615
|
+
runnable_version_fields_for: {
|
|
3616
|
+
Args: {
|
|
3617
|
+
p_user_id: string;
|
|
3618
|
+
p_version_id: string;
|
|
3619
|
+
};
|
|
3620
|
+
Returns: {
|
|
3621
|
+
auto_context_disabled: boolean;
|
|
3622
|
+
context_policies: import("../db-types.js").Json;
|
|
3623
|
+
name: string;
|
|
3624
|
+
variable_definitions: import("../db-types.js").Json;
|
|
3625
|
+
version_number: number;
|
|
3626
|
+
}[];
|
|
3627
|
+
};
|
|
3628
|
+
runnable_version_for_org: {
|
|
3629
|
+
Args: {
|
|
3630
|
+
p_organization_id: string;
|
|
3631
|
+
p_version_id: string;
|
|
3632
|
+
};
|
|
3633
|
+
Returns: boolean;
|
|
3634
|
+
};
|
|
3635
|
+
scraper_visible: {
|
|
3636
|
+
Args: {
|
|
3637
|
+
p_id: string;
|
|
3638
|
+
p_schema: string;
|
|
3639
|
+
p_table: string;
|
|
3640
|
+
};
|
|
3641
|
+
Returns: boolean;
|
|
3642
|
+
};
|
|
3643
|
+
share_with_person: {
|
|
3644
|
+
Args: {
|
|
3645
|
+
p_actor: string;
|
|
3646
|
+
p_basis?: string;
|
|
3647
|
+
p_exact?: boolean;
|
|
3648
|
+
p_expires_at?: string;
|
|
3649
|
+
p_level: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3650
|
+
p_note?: string;
|
|
3651
|
+
p_resource_id: string;
|
|
3652
|
+
p_resource_type: string;
|
|
3653
|
+
p_restore_removed?: boolean;
|
|
3654
|
+
p_target_user_id: string;
|
|
3655
|
+
};
|
|
3656
|
+
Returns: import("../db-types.js").Json;
|
|
3657
|
+
};
|
|
3658
|
+
shareable_registry_repoint_plan: {
|
|
3659
|
+
Args: never;
|
|
3660
|
+
Returns: {
|
|
3661
|
+
already_done: boolean;
|
|
3662
|
+
from_target: string;
|
|
3663
|
+
resource_type: string;
|
|
3664
|
+
to_target: string;
|
|
3665
|
+
}[];
|
|
3666
|
+
};
|
|
3667
|
+
starter_pack_ids_curated_by: {
|
|
3668
|
+
Args: {
|
|
3669
|
+
p_uid: string;
|
|
3670
|
+
};
|
|
3671
|
+
Returns: string[];
|
|
3672
|
+
};
|
|
3673
|
+
statement_memo_epoch: {
|
|
3674
|
+
Args: never;
|
|
3675
|
+
Returns: string;
|
|
3676
|
+
};
|
|
3677
|
+
supersede_bespoke_policies: {
|
|
3678
|
+
Args: {
|
|
3679
|
+
p_policy_names: string[];
|
|
3680
|
+
p_reason: string;
|
|
3681
|
+
p_schema: string;
|
|
3682
|
+
p_table: string;
|
|
3683
|
+
};
|
|
3684
|
+
Returns: undefined;
|
|
3685
|
+
};
|
|
3686
|
+
table_has_visibility: {
|
|
3687
|
+
Args: {
|
|
3688
|
+
p_schema: string;
|
|
3689
|
+
p_table: string;
|
|
3690
|
+
};
|
|
3691
|
+
Returns: boolean;
|
|
3692
|
+
};
|
|
3693
|
+
take_sign_in_freeze: {
|
|
3694
|
+
Args: {
|
|
3695
|
+
p_for: string;
|
|
3696
|
+
p_rel: unknown;
|
|
3697
|
+
};
|
|
3698
|
+
Returns: import("../db-types.js").Json;
|
|
3699
|
+
};
|
|
3700
|
+
team_ids_of: {
|
|
3701
|
+
Args: {
|
|
3702
|
+
p_organization_id: string;
|
|
3703
|
+
p_user_id: string;
|
|
3704
|
+
};
|
|
3705
|
+
Returns: string[];
|
|
3706
|
+
};
|
|
3707
|
+
team_member_user_ids: {
|
|
3708
|
+
Args: {
|
|
3709
|
+
p_team_id: string;
|
|
3710
|
+
};
|
|
3711
|
+
Returns: string[];
|
|
3712
|
+
};
|
|
3713
|
+
team_members_resolved: {
|
|
3714
|
+
Args: {
|
|
3715
|
+
p_team_ids: string[];
|
|
3716
|
+
};
|
|
3717
|
+
Returns: {
|
|
3718
|
+
is_from_hr: boolean;
|
|
3719
|
+
is_listed: boolean;
|
|
3720
|
+
listed_since: string;
|
|
3721
|
+
role: string;
|
|
3722
|
+
team_id: string;
|
|
3723
|
+
user_id: string;
|
|
3724
|
+
}[];
|
|
3725
|
+
};
|
|
3726
|
+
teammate_user_ids: {
|
|
3727
|
+
Args: {
|
|
3728
|
+
p_organization_id: string;
|
|
3729
|
+
p_user_id: string;
|
|
3730
|
+
};
|
|
3731
|
+
Returns: string[];
|
|
3732
|
+
};
|
|
3733
|
+
token_is_parented_component: {
|
|
3734
|
+
Args: {
|
|
3735
|
+
p_token: string;
|
|
3736
|
+
};
|
|
3737
|
+
Returns: boolean;
|
|
3738
|
+
};
|
|
3739
|
+
top_content_level: {
|
|
3740
|
+
Args: never;
|
|
3741
|
+
Returns: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3742
|
+
};
|
|
3743
|
+
unnest_uuids: {
|
|
3744
|
+
Args: {
|
|
3745
|
+
p_ids: string[];
|
|
3746
|
+
};
|
|
3747
|
+
Returns: string[];
|
|
3748
|
+
};
|
|
3749
|
+
verify_canonical: {
|
|
3750
|
+
Args: {
|
|
3751
|
+
p_schema: string;
|
|
3752
|
+
p_table: string;
|
|
3753
|
+
p_token: string;
|
|
3754
|
+
p_variant?: string;
|
|
3755
|
+
};
|
|
3756
|
+
Returns: {
|
|
3757
|
+
check_name: string;
|
|
3758
|
+
detail: string;
|
|
3759
|
+
status: string;
|
|
3760
|
+
}[];
|
|
3761
|
+
};
|
|
3762
|
+
verify_canonical_ok: {
|
|
3763
|
+
Args: {
|
|
3764
|
+
p_schema: string;
|
|
3765
|
+
p_table: string;
|
|
3766
|
+
p_token: string;
|
|
3767
|
+
p_variant?: string;
|
|
3768
|
+
};
|
|
3769
|
+
Returns: boolean;
|
|
3770
|
+
};
|
|
3771
|
+
visible_field_ids: {
|
|
3772
|
+
Args: {
|
|
3773
|
+
p_action?: string;
|
|
3774
|
+
p_level_on_record: import("../db-types.js").Database["public"]["Enums"]["permission_level"];
|
|
3775
|
+
p_organization_id: string;
|
|
3776
|
+
p_table_id: string;
|
|
3777
|
+
p_user_id: string;
|
|
3778
|
+
};
|
|
3779
|
+
Returns: {
|
|
3780
|
+
field_id: string;
|
|
3781
|
+
field_key: string;
|
|
3782
|
+
}[];
|
|
3783
|
+
};
|
|
3784
|
+
world_publish_admit: {
|
|
3785
|
+
Args: {
|
|
3786
|
+
p_organization_id: string;
|
|
3787
|
+
};
|
|
3788
|
+
Returns: import("../db-types.js").Json;
|
|
3789
|
+
};
|
|
3790
|
+
world_publish_announcement: {
|
|
3791
|
+
Args: {
|
|
3792
|
+
p_resource_id: string;
|
|
3793
|
+
p_resource_type: string;
|
|
3794
|
+
};
|
|
3795
|
+
Returns: import("../db-types.js").Json;
|
|
3796
|
+
};
|
|
3797
|
+
world_publish_gap_notice: {
|
|
3798
|
+
Args: never;
|
|
3799
|
+
Returns: string;
|
|
3800
|
+
};
|
|
3801
|
+
};
|
|
3802
|
+
Enums: { [_ in never]: never; };
|
|
3803
|
+
CompositeTypes: { [_ in never]: never; };
|
|
3804
|
+
}>;
|
|
3805
|
+
export declare const runWithSessionRetry: <T>(run: () => PromiseLike<import("@ai-matrx/data/db").AuthRetryableResult<T>>) => Promise<import("@ai-matrx/data/db").AuthRetryableResult<T> & {
|
|
3806
|
+
retried: boolean;
|
|
3807
|
+
sessionRecovered: boolean;
|
|
3808
|
+
}>;
|