@ai-matrx/chat 0.3.11 → 0.3.15
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 +36 -0
- package/dist/agent-copy/export.d.ts +10 -2
- package/dist/agent-copy/export.js +3 -2
- package/dist/agents/components/debug/SandboxFileViewer.js +1 -3
- package/dist/agents/components/messages-display/TranscriptIntegrityCopyButton.js +4 -4
- package/dist/agents/components/messages-display/user/UserActionBar.js +3 -18
- package/dist/agents/prompt-preview/PromptPreviewContent.js +1 -3
- package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.d.ts +14 -0
- package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.js +30 -0
- package/dist/agents/redux/execution-system/client-capabilities/desktop-native.provider.js +10 -1
- package/dist/agents/redux/execution-system/message-crud/refetch-single-message.thunk.js +5 -0
- package/dist/agents/redux/execution-system/thunks/process-stream.js +2 -2
- package/dist/agents/redux/execution-system/utils/stream-block-accumulator.d.ts +14 -0
- package/dist/agents/redux/execution-system/utils/stream-block-accumulator.js +28 -0
- package/dist/context/sources/scopes.d.ts +1 -1
- package/dist/host/db-types.d.ts +1338 -492
- package/dist/host/ui-slots.d.ts +3 -0
- package/dist/host/ui-slots.js +2 -0
- package/dist/voice-agent/components/VoiceDebugPanel.js +1 -3
- package/package.json +8 -8
package/dist/host/db-types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The host's `db` is a `SupabaseClient<ChatDatabase>`; a host typed with the
|
|
7
7
|
* full platform `Database` passes its client unchanged.
|
|
8
8
|
*
|
|
9
|
-
* Schemas (
|
|
9
|
+
* Schemas (18): admin, agent, ai, canvas, chat, context, deprecated, dictionary, education, iam, mandate, platform, public, scheduler, tool, ui, users, workbench
|
|
10
10
|
*/
|
|
11
11
|
export type Json = unknown;
|
|
12
12
|
export type ChatDatabase = {
|
|
@@ -8073,327 +8073,6 @@ export type ChatDatabase = {
|
|
|
8073
8073
|
value_version?: number | null;
|
|
8074
8074
|
was_useful?: boolean | null;
|
|
8075
8075
|
};
|
|
8076
|
-
Relationships: [
|
|
8077
|
-
{
|
|
8078
|
-
foreignKeyName: "context_access_log_value_id_fkey";
|
|
8079
|
-
columns: ["value_id"];
|
|
8080
|
-
isOneToOne: false;
|
|
8081
|
-
referencedRelation: "context_item_values";
|
|
8082
|
-
referencedColumns: ["id"];
|
|
8083
|
-
}
|
|
8084
|
-
];
|
|
8085
|
-
};
|
|
8086
|
-
context_item_values: {
|
|
8087
|
-
Row: {
|
|
8088
|
-
authored_by: string | null;
|
|
8089
|
-
change_summary: string | null;
|
|
8090
|
-
char_count: number | null;
|
|
8091
|
-
context_item_id: string;
|
|
8092
|
-
created_at: string;
|
|
8093
|
-
custom_fields: Json;
|
|
8094
|
-
data_point_count: number | null;
|
|
8095
|
-
has_nested_objects: boolean;
|
|
8096
|
-
id: string;
|
|
8097
|
-
is_current: boolean;
|
|
8098
|
-
metadata: Json;
|
|
8099
|
-
organization_id: string;
|
|
8100
|
-
scope_id: string;
|
|
8101
|
-
source_type: Database["public"]["Enums"]["context_source_type"];
|
|
8102
|
-
value_boolean: boolean | null;
|
|
8103
|
-
value_date: string | null;
|
|
8104
|
-
value_document_size_bytes: number | null;
|
|
8105
|
-
value_document_url: string | null;
|
|
8106
|
-
value_json: Json | null;
|
|
8107
|
-
value_number: number | null;
|
|
8108
|
-
value_reference_id: string | null;
|
|
8109
|
-
value_reference_type: string | null;
|
|
8110
|
-
value_text: string | null;
|
|
8111
|
-
value_time: string | null;
|
|
8112
|
-
value_timestamp: string | null;
|
|
8113
|
-
version: number;
|
|
8114
|
-
};
|
|
8115
|
-
Insert: {
|
|
8116
|
-
authored_by?: string | null;
|
|
8117
|
-
change_summary?: string | null;
|
|
8118
|
-
char_count?: number | null;
|
|
8119
|
-
context_item_id: string;
|
|
8120
|
-
created_at?: string;
|
|
8121
|
-
custom_fields?: Json;
|
|
8122
|
-
data_point_count?: number | null;
|
|
8123
|
-
has_nested_objects?: boolean;
|
|
8124
|
-
id?: string;
|
|
8125
|
-
is_current?: boolean;
|
|
8126
|
-
metadata?: Json;
|
|
8127
|
-
organization_id: string;
|
|
8128
|
-
scope_id: string;
|
|
8129
|
-
source_type?: Database["public"]["Enums"]["context_source_type"];
|
|
8130
|
-
value_boolean?: boolean | null;
|
|
8131
|
-
value_date?: string | null;
|
|
8132
|
-
value_document_size_bytes?: number | null;
|
|
8133
|
-
value_document_url?: string | null;
|
|
8134
|
-
value_json?: Json | null;
|
|
8135
|
-
value_number?: number | null;
|
|
8136
|
-
value_reference_id?: string | null;
|
|
8137
|
-
value_reference_type?: string | null;
|
|
8138
|
-
value_text?: string | null;
|
|
8139
|
-
value_time?: string | null;
|
|
8140
|
-
value_timestamp?: string | null;
|
|
8141
|
-
version?: number;
|
|
8142
|
-
};
|
|
8143
|
-
Update: {
|
|
8144
|
-
authored_by?: string | null;
|
|
8145
|
-
change_summary?: string | null;
|
|
8146
|
-
char_count?: number | null;
|
|
8147
|
-
context_item_id?: string;
|
|
8148
|
-
created_at?: string;
|
|
8149
|
-
custom_fields?: Json;
|
|
8150
|
-
data_point_count?: number | null;
|
|
8151
|
-
has_nested_objects?: boolean;
|
|
8152
|
-
id?: string;
|
|
8153
|
-
is_current?: boolean;
|
|
8154
|
-
metadata?: Json;
|
|
8155
|
-
organization_id?: string;
|
|
8156
|
-
scope_id?: string;
|
|
8157
|
-
source_type?: Database["public"]["Enums"]["context_source_type"];
|
|
8158
|
-
value_boolean?: boolean | null;
|
|
8159
|
-
value_date?: string | null;
|
|
8160
|
-
value_document_size_bytes?: number | null;
|
|
8161
|
-
value_document_url?: string | null;
|
|
8162
|
-
value_json?: Json | null;
|
|
8163
|
-
value_number?: number | null;
|
|
8164
|
-
value_reference_id?: string | null;
|
|
8165
|
-
value_reference_type?: string | null;
|
|
8166
|
-
value_text?: string | null;
|
|
8167
|
-
value_time?: string | null;
|
|
8168
|
-
value_timestamp?: string | null;
|
|
8169
|
-
version?: number;
|
|
8170
|
-
};
|
|
8171
|
-
Relationships: [];
|
|
8172
|
-
};
|
|
8173
|
-
context_items: {
|
|
8174
|
-
Row: {
|
|
8175
|
-
allowed_reference_types: string[] | null;
|
|
8176
|
-
allowed_scope_type_ids: string[] | null;
|
|
8177
|
-
category: string | null;
|
|
8178
|
-
created_at: string;
|
|
8179
|
-
created_by: string | null;
|
|
8180
|
-
custom_component: Json | null;
|
|
8181
|
-
custom_fields: Json;
|
|
8182
|
-
deleted_at: string | null;
|
|
8183
|
-
depends_on: string[];
|
|
8184
|
-
description: string;
|
|
8185
|
-
display_name: string;
|
|
8186
|
-
feed_config: Json;
|
|
8187
|
-
feed_error: string | null;
|
|
8188
|
-
feed_status: string | null;
|
|
8189
|
-
feed_type: Database["public"]["Enums"]["context_feed_type"];
|
|
8190
|
-
fetch_hint: Database["public"]["Enums"]["context_fetch_hint"];
|
|
8191
|
-
id: string;
|
|
8192
|
-
is_active: boolean;
|
|
8193
|
-
key: string;
|
|
8194
|
-
last_fed_at: string | null;
|
|
8195
|
-
last_verified_at: string | null;
|
|
8196
|
-
max_items: number;
|
|
8197
|
-
metadata: Json;
|
|
8198
|
-
next_review_at: string | null;
|
|
8199
|
-
reference_source: Json | null;
|
|
8200
|
-
refresh_task_id: string | null;
|
|
8201
|
-
review_interval_days: number | null;
|
|
8202
|
-
scope_type_id: string;
|
|
8203
|
-
sensitivity: Database["public"]["Enums"]["context_sensitivity"];
|
|
8204
|
-
slug: string;
|
|
8205
|
-
sort_order: number;
|
|
8206
|
-
source_type: Database["public"]["Enums"]["context_source_type"];
|
|
8207
|
-
status: Database["public"]["Enums"]["context_item_status"];
|
|
8208
|
-
status_note: string | null;
|
|
8209
|
-
status_updated_at: string;
|
|
8210
|
-
status_updated_by: string | null;
|
|
8211
|
-
tags: string[];
|
|
8212
|
-
template_item_key: string | null;
|
|
8213
|
-
updated_at: string;
|
|
8214
|
-
updated_by: string | null;
|
|
8215
|
-
value_type: Database["public"]["Enums"]["context_value_type"];
|
|
8216
|
-
version: number;
|
|
8217
|
-
};
|
|
8218
|
-
Insert: {
|
|
8219
|
-
allowed_reference_types?: string[] | null;
|
|
8220
|
-
allowed_scope_type_ids?: string[] | null;
|
|
8221
|
-
category?: string | null;
|
|
8222
|
-
created_at?: string;
|
|
8223
|
-
created_by?: string | null;
|
|
8224
|
-
custom_component?: Json | null;
|
|
8225
|
-
custom_fields?: Json;
|
|
8226
|
-
deleted_at?: string | null;
|
|
8227
|
-
depends_on?: string[];
|
|
8228
|
-
description?: string;
|
|
8229
|
-
display_name: string;
|
|
8230
|
-
feed_config?: Json;
|
|
8231
|
-
feed_error?: string | null;
|
|
8232
|
-
feed_status?: string | null;
|
|
8233
|
-
feed_type?: Database["public"]["Enums"]["context_feed_type"];
|
|
8234
|
-
fetch_hint?: Database["public"]["Enums"]["context_fetch_hint"];
|
|
8235
|
-
id?: string;
|
|
8236
|
-
is_active?: boolean;
|
|
8237
|
-
key: string;
|
|
8238
|
-
last_fed_at?: string | null;
|
|
8239
|
-
last_verified_at?: string | null;
|
|
8240
|
-
max_items?: number;
|
|
8241
|
-
metadata?: Json;
|
|
8242
|
-
next_review_at?: string | null;
|
|
8243
|
-
reference_source?: Json | null;
|
|
8244
|
-
refresh_task_id?: string | null;
|
|
8245
|
-
review_interval_days?: number | null;
|
|
8246
|
-
scope_type_id: string;
|
|
8247
|
-
sensitivity?: Database["public"]["Enums"]["context_sensitivity"];
|
|
8248
|
-
slug: string;
|
|
8249
|
-
sort_order?: number;
|
|
8250
|
-
source_type?: Database["public"]["Enums"]["context_source_type"];
|
|
8251
|
-
status?: Database["public"]["Enums"]["context_item_status"];
|
|
8252
|
-
status_note?: string | null;
|
|
8253
|
-
status_updated_at?: string;
|
|
8254
|
-
status_updated_by?: string | null;
|
|
8255
|
-
tags?: string[];
|
|
8256
|
-
template_item_key?: string | null;
|
|
8257
|
-
updated_at?: string;
|
|
8258
|
-
updated_by?: string | null;
|
|
8259
|
-
value_type?: Database["public"]["Enums"]["context_value_type"];
|
|
8260
|
-
version?: number;
|
|
8261
|
-
};
|
|
8262
|
-
Update: {
|
|
8263
|
-
allowed_reference_types?: string[] | null;
|
|
8264
|
-
allowed_scope_type_ids?: string[] | null;
|
|
8265
|
-
category?: string | null;
|
|
8266
|
-
created_at?: string;
|
|
8267
|
-
created_by?: string | null;
|
|
8268
|
-
custom_component?: Json | null;
|
|
8269
|
-
custom_fields?: Json;
|
|
8270
|
-
deleted_at?: string | null;
|
|
8271
|
-
depends_on?: string[];
|
|
8272
|
-
description?: string;
|
|
8273
|
-
display_name?: string;
|
|
8274
|
-
feed_config?: Json;
|
|
8275
|
-
feed_error?: string | null;
|
|
8276
|
-
feed_status?: string | null;
|
|
8277
|
-
feed_type?: Database["public"]["Enums"]["context_feed_type"];
|
|
8278
|
-
fetch_hint?: Database["public"]["Enums"]["context_fetch_hint"];
|
|
8279
|
-
id?: string;
|
|
8280
|
-
is_active?: boolean;
|
|
8281
|
-
key?: string;
|
|
8282
|
-
last_fed_at?: string | null;
|
|
8283
|
-
last_verified_at?: string | null;
|
|
8284
|
-
max_items?: number;
|
|
8285
|
-
metadata?: Json;
|
|
8286
|
-
next_review_at?: string | null;
|
|
8287
|
-
reference_source?: Json | null;
|
|
8288
|
-
refresh_task_id?: string | null;
|
|
8289
|
-
review_interval_days?: number | null;
|
|
8290
|
-
scope_type_id?: string;
|
|
8291
|
-
sensitivity?: Database["public"]["Enums"]["context_sensitivity"];
|
|
8292
|
-
slug?: string;
|
|
8293
|
-
sort_order?: number;
|
|
8294
|
-
source_type?: Database["public"]["Enums"]["context_source_type"];
|
|
8295
|
-
status?: Database["public"]["Enums"]["context_item_status"];
|
|
8296
|
-
status_note?: string | null;
|
|
8297
|
-
status_updated_at?: string;
|
|
8298
|
-
status_updated_by?: string | null;
|
|
8299
|
-
tags?: string[];
|
|
8300
|
-
template_item_key?: string | null;
|
|
8301
|
-
updated_at?: string;
|
|
8302
|
-
updated_by?: string | null;
|
|
8303
|
-
value_type?: Database["public"]["Enums"]["context_value_type"];
|
|
8304
|
-
version?: number;
|
|
8305
|
-
};
|
|
8306
|
-
Relationships: [
|
|
8307
|
-
{
|
|
8308
|
-
foreignKeyName: "ctx_context_items_scope_type_id_fkey";
|
|
8309
|
-
columns: ["scope_type_id"];
|
|
8310
|
-
isOneToOne: false;
|
|
8311
|
-
referencedRelation: "scope_types";
|
|
8312
|
-
referencedColumns: ["id"];
|
|
8313
|
-
}
|
|
8314
|
-
];
|
|
8315
|
-
};
|
|
8316
|
-
context_value_refs: {
|
|
8317
|
-
Row: {
|
|
8318
|
-
context_item_id: string;
|
|
8319
|
-
created_at: string;
|
|
8320
|
-
custom_fields: Json;
|
|
8321
|
-
id: string;
|
|
8322
|
-
ref_key: string;
|
|
8323
|
-
ref_type: string;
|
|
8324
|
-
scope_id: string;
|
|
8325
|
-
value_id: string;
|
|
8326
|
-
};
|
|
8327
|
-
Insert: {
|
|
8328
|
-
context_item_id: string;
|
|
8329
|
-
created_at?: string;
|
|
8330
|
-
custom_fields?: Json;
|
|
8331
|
-
id?: string;
|
|
8332
|
-
ref_key: string;
|
|
8333
|
-
ref_type: string;
|
|
8334
|
-
scope_id: string;
|
|
8335
|
-
value_id: string;
|
|
8336
|
-
};
|
|
8337
|
-
Update: {
|
|
8338
|
-
context_item_id?: string;
|
|
8339
|
-
created_at?: string;
|
|
8340
|
-
custom_fields?: Json;
|
|
8341
|
-
id?: string;
|
|
8342
|
-
ref_key?: string;
|
|
8343
|
-
ref_type?: string;
|
|
8344
|
-
scope_id?: string;
|
|
8345
|
-
value_id?: string;
|
|
8346
|
-
};
|
|
8347
|
-
Relationships: [
|
|
8348
|
-
{
|
|
8349
|
-
foreignKeyName: "context_value_refs_value_id_fkey";
|
|
8350
|
-
columns: ["value_id"];
|
|
8351
|
-
isOneToOne: false;
|
|
8352
|
-
referencedRelation: "context_item_values";
|
|
8353
|
-
referencedColumns: ["id"];
|
|
8354
|
-
}
|
|
8355
|
-
];
|
|
8356
|
-
};
|
|
8357
|
-
scope_dataset_instances: {
|
|
8358
|
-
Row: {
|
|
8359
|
-
context_item_id: string;
|
|
8360
|
-
created_at: string;
|
|
8361
|
-
created_by: string | null;
|
|
8362
|
-
custom_fields: Json;
|
|
8363
|
-
dataset_id: string;
|
|
8364
|
-
id: string;
|
|
8365
|
-
metadata: Json;
|
|
8366
|
-
organization_id: string;
|
|
8367
|
-
scope_id: string;
|
|
8368
|
-
template_id: string;
|
|
8369
|
-
template_version: number;
|
|
8370
|
-
};
|
|
8371
|
-
Insert: {
|
|
8372
|
-
context_item_id: string;
|
|
8373
|
-
created_at?: string;
|
|
8374
|
-
created_by?: string | null;
|
|
8375
|
-
custom_fields?: Json;
|
|
8376
|
-
dataset_id: string;
|
|
8377
|
-
id?: string;
|
|
8378
|
-
metadata?: Json;
|
|
8379
|
-
organization_id: string;
|
|
8380
|
-
scope_id: string;
|
|
8381
|
-
template_id: string;
|
|
8382
|
-
template_version: number;
|
|
8383
|
-
};
|
|
8384
|
-
Update: {
|
|
8385
|
-
context_item_id?: string;
|
|
8386
|
-
created_at?: string;
|
|
8387
|
-
created_by?: string | null;
|
|
8388
|
-
custom_fields?: Json;
|
|
8389
|
-
dataset_id?: string;
|
|
8390
|
-
id?: string;
|
|
8391
|
-
metadata?: Json;
|
|
8392
|
-
organization_id?: string;
|
|
8393
|
-
scope_id?: string;
|
|
8394
|
-
template_id?: string;
|
|
8395
|
-
template_version?: number;
|
|
8396
|
-
};
|
|
8397
8076
|
Relationships: [];
|
|
8398
8077
|
};
|
|
8399
8078
|
scope_door_registry: {
|
|
@@ -8417,173 +8096,6 @@ export type ChatDatabase = {
|
|
|
8417
8096
|
};
|
|
8418
8097
|
Relationships: [];
|
|
8419
8098
|
};
|
|
8420
|
-
scope_types: {
|
|
8421
|
-
Row: {
|
|
8422
|
-
color: string;
|
|
8423
|
-
created_at: string;
|
|
8424
|
-
created_by: string | null;
|
|
8425
|
-
custom_fields: Json;
|
|
8426
|
-
default_variable_keys: string[];
|
|
8427
|
-
deleted_at: string | null;
|
|
8428
|
-
description: string;
|
|
8429
|
-
icon: string;
|
|
8430
|
-
id: string;
|
|
8431
|
-
label_plural: string;
|
|
8432
|
-
label_singular: string;
|
|
8433
|
-
max_assignments_per_entity: number | null;
|
|
8434
|
-
metadata: Json;
|
|
8435
|
-
organization_id: string;
|
|
8436
|
-
parent_type_id: string | null;
|
|
8437
|
-
slug: string;
|
|
8438
|
-
sort_order: number;
|
|
8439
|
-
updated_at: string;
|
|
8440
|
-
updated_by: string | null;
|
|
8441
|
-
version: number;
|
|
8442
|
-
};
|
|
8443
|
-
Insert: {
|
|
8444
|
-
color?: string;
|
|
8445
|
-
created_at?: string;
|
|
8446
|
-
created_by?: string | null;
|
|
8447
|
-
custom_fields?: Json;
|
|
8448
|
-
default_variable_keys?: string[];
|
|
8449
|
-
deleted_at?: string | null;
|
|
8450
|
-
description?: string;
|
|
8451
|
-
icon?: string;
|
|
8452
|
-
id?: string;
|
|
8453
|
-
label_plural: string;
|
|
8454
|
-
label_singular: string;
|
|
8455
|
-
max_assignments_per_entity?: number | null;
|
|
8456
|
-
metadata?: Json;
|
|
8457
|
-
organization_id: string;
|
|
8458
|
-
parent_type_id?: string | null;
|
|
8459
|
-
slug: string;
|
|
8460
|
-
sort_order?: number;
|
|
8461
|
-
updated_at?: string;
|
|
8462
|
-
updated_by?: string | null;
|
|
8463
|
-
version?: number;
|
|
8464
|
-
};
|
|
8465
|
-
Update: {
|
|
8466
|
-
color?: string;
|
|
8467
|
-
created_at?: string;
|
|
8468
|
-
created_by?: string | null;
|
|
8469
|
-
custom_fields?: Json;
|
|
8470
|
-
default_variable_keys?: string[];
|
|
8471
|
-
deleted_at?: string | null;
|
|
8472
|
-
description?: string;
|
|
8473
|
-
icon?: string;
|
|
8474
|
-
id?: string;
|
|
8475
|
-
label_plural?: string;
|
|
8476
|
-
label_singular?: string;
|
|
8477
|
-
max_assignments_per_entity?: number | null;
|
|
8478
|
-
metadata?: Json;
|
|
8479
|
-
organization_id?: string;
|
|
8480
|
-
parent_type_id?: string | null;
|
|
8481
|
-
slug?: string;
|
|
8482
|
-
sort_order?: number;
|
|
8483
|
-
updated_at?: string;
|
|
8484
|
-
updated_by?: string | null;
|
|
8485
|
-
version?: number;
|
|
8486
|
-
};
|
|
8487
|
-
Relationships: [
|
|
8488
|
-
{
|
|
8489
|
-
foreignKeyName: "ctx_scope_types_parent_type_id_fkey";
|
|
8490
|
-
columns: ["parent_type_id"];
|
|
8491
|
-
isOneToOne: false;
|
|
8492
|
-
referencedRelation: "scope_types";
|
|
8493
|
-
referencedColumns: ["id"];
|
|
8494
|
-
}
|
|
8495
|
-
];
|
|
8496
|
-
};
|
|
8497
|
-
scopes: {
|
|
8498
|
-
Row: {
|
|
8499
|
-
created_at: string;
|
|
8500
|
-
created_by: string | null;
|
|
8501
|
-
custom_fields: Json;
|
|
8502
|
-
deleted_at: string | null;
|
|
8503
|
-
description: string;
|
|
8504
|
-
id: string;
|
|
8505
|
-
metadata: Json;
|
|
8506
|
-
name: string;
|
|
8507
|
-
organization_id: string;
|
|
8508
|
-
parent_scope_id: string | null;
|
|
8509
|
-
published_to_web: boolean;
|
|
8510
|
-
published_to_web_at: string | null;
|
|
8511
|
-
published_to_web_by: string | null;
|
|
8512
|
-
scope_type_id: string;
|
|
8513
|
-
settings: Json;
|
|
8514
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8515
|
-
slug: string;
|
|
8516
|
-
sort_order: number;
|
|
8517
|
-
updated_at: string;
|
|
8518
|
-
updated_by: string | null;
|
|
8519
|
-
version: number;
|
|
8520
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8521
|
-
};
|
|
8522
|
-
Insert: {
|
|
8523
|
-
created_at?: string;
|
|
8524
|
-
created_by?: string | null;
|
|
8525
|
-
custom_fields?: Json;
|
|
8526
|
-
deleted_at?: string | null;
|
|
8527
|
-
description?: string;
|
|
8528
|
-
id?: string;
|
|
8529
|
-
metadata?: Json;
|
|
8530
|
-
name: string;
|
|
8531
|
-
organization_id: string;
|
|
8532
|
-
parent_scope_id?: string | null;
|
|
8533
|
-
published_to_web?: boolean;
|
|
8534
|
-
published_to_web_at?: string | null;
|
|
8535
|
-
published_to_web_by?: string | null;
|
|
8536
|
-
scope_type_id: string;
|
|
8537
|
-
settings?: Json;
|
|
8538
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8539
|
-
slug: string;
|
|
8540
|
-
sort_order?: number;
|
|
8541
|
-
updated_at?: string;
|
|
8542
|
-
updated_by?: string | null;
|
|
8543
|
-
version?: number;
|
|
8544
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
8545
|
-
};
|
|
8546
|
-
Update: {
|
|
8547
|
-
created_at?: string;
|
|
8548
|
-
created_by?: string | null;
|
|
8549
|
-
custom_fields?: Json;
|
|
8550
|
-
deleted_at?: string | null;
|
|
8551
|
-
description?: string;
|
|
8552
|
-
id?: string;
|
|
8553
|
-
metadata?: Json;
|
|
8554
|
-
name?: string;
|
|
8555
|
-
organization_id?: string;
|
|
8556
|
-
parent_scope_id?: string | null;
|
|
8557
|
-
published_to_web?: boolean;
|
|
8558
|
-
published_to_web_at?: string | null;
|
|
8559
|
-
published_to_web_by?: string | null;
|
|
8560
|
-
scope_type_id?: string;
|
|
8561
|
-
settings?: Json;
|
|
8562
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8563
|
-
slug?: string;
|
|
8564
|
-
sort_order?: number;
|
|
8565
|
-
updated_at?: string;
|
|
8566
|
-
updated_by?: string | null;
|
|
8567
|
-
version?: number;
|
|
8568
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
8569
|
-
};
|
|
8570
|
-
Relationships: [
|
|
8571
|
-
{
|
|
8572
|
-
foreignKeyName: "ctx_scopes_parent_scope_id_fkey";
|
|
8573
|
-
columns: ["parent_scope_id"];
|
|
8574
|
-
isOneToOne: false;
|
|
8575
|
-
referencedRelation: "scopes";
|
|
8576
|
-
referencedColumns: ["id"];
|
|
8577
|
-
},
|
|
8578
|
-
{
|
|
8579
|
-
foreignKeyName: "ctx_scopes_scope_type_id_fkey";
|
|
8580
|
-
columns: ["scope_type_id"];
|
|
8581
|
-
isOneToOne: false;
|
|
8582
|
-
referencedRelation: "scope_types";
|
|
8583
|
-
referencedColumns: ["id"];
|
|
8584
|
-
}
|
|
8585
|
-
];
|
|
8586
|
-
};
|
|
8587
8099
|
system_context_item: {
|
|
8588
8100
|
Row: {
|
|
8589
8101
|
created_at: string;
|
|
@@ -9056,6 +8568,1340 @@ export type ChatDatabase = {
|
|
|
9056
8568
|
[_ in never]: never;
|
|
9057
8569
|
};
|
|
9058
8570
|
};
|
|
8571
|
+
deprecated: {
|
|
8572
|
+
Tables: {
|
|
8573
|
+
context_item_values: {
|
|
8574
|
+
Row: {
|
|
8575
|
+
authored_by: string | null;
|
|
8576
|
+
change_summary: string | null;
|
|
8577
|
+
char_count: number | null;
|
|
8578
|
+
context_item_id: string;
|
|
8579
|
+
created_at: string;
|
|
8580
|
+
custom_fields: Json;
|
|
8581
|
+
data_point_count: number | null;
|
|
8582
|
+
has_nested_objects: boolean;
|
|
8583
|
+
id: string;
|
|
8584
|
+
is_current: boolean;
|
|
8585
|
+
metadata: Json;
|
|
8586
|
+
organization_id: string;
|
|
8587
|
+
scope_id: string;
|
|
8588
|
+
source_type: Database["public"]["Enums"]["context_source_type"];
|
|
8589
|
+
value_boolean: boolean | null;
|
|
8590
|
+
value_date: string | null;
|
|
8591
|
+
value_document_size_bytes: number | null;
|
|
8592
|
+
value_document_url: string | null;
|
|
8593
|
+
value_json: Json | null;
|
|
8594
|
+
value_number: number | null;
|
|
8595
|
+
value_reference_id: string | null;
|
|
8596
|
+
value_reference_type: string | null;
|
|
8597
|
+
value_text: string | null;
|
|
8598
|
+
value_time: string | null;
|
|
8599
|
+
value_timestamp: string | null;
|
|
8600
|
+
version: number;
|
|
8601
|
+
};
|
|
8602
|
+
Insert: {
|
|
8603
|
+
authored_by?: string | null;
|
|
8604
|
+
change_summary?: string | null;
|
|
8605
|
+
char_count?: number | null;
|
|
8606
|
+
context_item_id: string;
|
|
8607
|
+
created_at?: string;
|
|
8608
|
+
custom_fields?: Json;
|
|
8609
|
+
data_point_count?: number | null;
|
|
8610
|
+
has_nested_objects?: boolean;
|
|
8611
|
+
id?: string;
|
|
8612
|
+
is_current?: boolean;
|
|
8613
|
+
metadata?: Json;
|
|
8614
|
+
organization_id: string;
|
|
8615
|
+
scope_id: string;
|
|
8616
|
+
source_type?: Database["public"]["Enums"]["context_source_type"];
|
|
8617
|
+
value_boolean?: boolean | null;
|
|
8618
|
+
value_date?: string | null;
|
|
8619
|
+
value_document_size_bytes?: number | null;
|
|
8620
|
+
value_document_url?: string | null;
|
|
8621
|
+
value_json?: Json | null;
|
|
8622
|
+
value_number?: number | null;
|
|
8623
|
+
value_reference_id?: string | null;
|
|
8624
|
+
value_reference_type?: string | null;
|
|
8625
|
+
value_text?: string | null;
|
|
8626
|
+
value_time?: string | null;
|
|
8627
|
+
value_timestamp?: string | null;
|
|
8628
|
+
version?: number;
|
|
8629
|
+
};
|
|
8630
|
+
Update: {
|
|
8631
|
+
authored_by?: string | null;
|
|
8632
|
+
change_summary?: string | null;
|
|
8633
|
+
char_count?: number | null;
|
|
8634
|
+
context_item_id?: string;
|
|
8635
|
+
created_at?: string;
|
|
8636
|
+
custom_fields?: Json;
|
|
8637
|
+
data_point_count?: number | null;
|
|
8638
|
+
has_nested_objects?: boolean;
|
|
8639
|
+
id?: string;
|
|
8640
|
+
is_current?: boolean;
|
|
8641
|
+
metadata?: Json;
|
|
8642
|
+
organization_id?: string;
|
|
8643
|
+
scope_id?: string;
|
|
8644
|
+
source_type?: Database["public"]["Enums"]["context_source_type"];
|
|
8645
|
+
value_boolean?: boolean | null;
|
|
8646
|
+
value_date?: string | null;
|
|
8647
|
+
value_document_size_bytes?: number | null;
|
|
8648
|
+
value_document_url?: string | null;
|
|
8649
|
+
value_json?: Json | null;
|
|
8650
|
+
value_number?: number | null;
|
|
8651
|
+
value_reference_id?: string | null;
|
|
8652
|
+
value_reference_type?: string | null;
|
|
8653
|
+
value_text?: string | null;
|
|
8654
|
+
value_time?: string | null;
|
|
8655
|
+
value_timestamp?: string | null;
|
|
8656
|
+
version?: number;
|
|
8657
|
+
};
|
|
8658
|
+
Relationships: [];
|
|
8659
|
+
};
|
|
8660
|
+
context_items: {
|
|
8661
|
+
Row: {
|
|
8662
|
+
allowed_reference_types: string[] | null;
|
|
8663
|
+
allowed_scope_type_ids: string[] | null;
|
|
8664
|
+
category: string | null;
|
|
8665
|
+
created_at: string;
|
|
8666
|
+
created_by: string | null;
|
|
8667
|
+
custom_component: Json | null;
|
|
8668
|
+
custom_fields: Json;
|
|
8669
|
+
deleted_at: string | null;
|
|
8670
|
+
depends_on: string[];
|
|
8671
|
+
description: string;
|
|
8672
|
+
display_name: string;
|
|
8673
|
+
feed_config: Json;
|
|
8674
|
+
feed_error: string | null;
|
|
8675
|
+
feed_status: string | null;
|
|
8676
|
+
feed_type: Database["public"]["Enums"]["context_feed_type"];
|
|
8677
|
+
fetch_hint: Database["public"]["Enums"]["context_fetch_hint"];
|
|
8678
|
+
id: string;
|
|
8679
|
+
is_active: boolean;
|
|
8680
|
+
key: string;
|
|
8681
|
+
last_fed_at: string | null;
|
|
8682
|
+
last_verified_at: string | null;
|
|
8683
|
+
max_items: number;
|
|
8684
|
+
metadata: Json;
|
|
8685
|
+
next_review_at: string | null;
|
|
8686
|
+
reference_source: Json | null;
|
|
8687
|
+
refresh_task_id: string | null;
|
|
8688
|
+
review_interval_days: number | null;
|
|
8689
|
+
scope_type_id: string;
|
|
8690
|
+
sensitivity: Database["public"]["Enums"]["context_sensitivity"];
|
|
8691
|
+
slug: string;
|
|
8692
|
+
sort_order: number;
|
|
8693
|
+
source_type: Database["public"]["Enums"]["context_source_type"];
|
|
8694
|
+
status: Database["public"]["Enums"]["context_item_status"];
|
|
8695
|
+
status_note: string | null;
|
|
8696
|
+
status_updated_at: string;
|
|
8697
|
+
status_updated_by: string | null;
|
|
8698
|
+
tags: string[];
|
|
8699
|
+
template_item_key: string | null;
|
|
8700
|
+
updated_at: string;
|
|
8701
|
+
updated_by: string | null;
|
|
8702
|
+
value_type: Database["public"]["Enums"]["context_value_type"];
|
|
8703
|
+
version: number;
|
|
8704
|
+
};
|
|
8705
|
+
Insert: {
|
|
8706
|
+
allowed_reference_types?: string[] | null;
|
|
8707
|
+
allowed_scope_type_ids?: string[] | null;
|
|
8708
|
+
category?: string | null;
|
|
8709
|
+
created_at?: string;
|
|
8710
|
+
created_by?: string | null;
|
|
8711
|
+
custom_component?: Json | null;
|
|
8712
|
+
custom_fields?: Json;
|
|
8713
|
+
deleted_at?: string | null;
|
|
8714
|
+
depends_on?: string[];
|
|
8715
|
+
description?: string;
|
|
8716
|
+
display_name: string;
|
|
8717
|
+
feed_config?: Json;
|
|
8718
|
+
feed_error?: string | null;
|
|
8719
|
+
feed_status?: string | null;
|
|
8720
|
+
feed_type?: Database["public"]["Enums"]["context_feed_type"];
|
|
8721
|
+
fetch_hint?: Database["public"]["Enums"]["context_fetch_hint"];
|
|
8722
|
+
id?: string;
|
|
8723
|
+
is_active?: boolean;
|
|
8724
|
+
key: string;
|
|
8725
|
+
last_fed_at?: string | null;
|
|
8726
|
+
last_verified_at?: string | null;
|
|
8727
|
+
max_items?: number;
|
|
8728
|
+
metadata?: Json;
|
|
8729
|
+
next_review_at?: string | null;
|
|
8730
|
+
reference_source?: Json | null;
|
|
8731
|
+
refresh_task_id?: string | null;
|
|
8732
|
+
review_interval_days?: number | null;
|
|
8733
|
+
scope_type_id: string;
|
|
8734
|
+
sensitivity?: Database["public"]["Enums"]["context_sensitivity"];
|
|
8735
|
+
slug: string;
|
|
8736
|
+
sort_order?: number;
|
|
8737
|
+
source_type?: Database["public"]["Enums"]["context_source_type"];
|
|
8738
|
+
status?: Database["public"]["Enums"]["context_item_status"];
|
|
8739
|
+
status_note?: string | null;
|
|
8740
|
+
status_updated_at?: string;
|
|
8741
|
+
status_updated_by?: string | null;
|
|
8742
|
+
tags?: string[];
|
|
8743
|
+
template_item_key?: string | null;
|
|
8744
|
+
updated_at?: string;
|
|
8745
|
+
updated_by?: string | null;
|
|
8746
|
+
value_type?: Database["public"]["Enums"]["context_value_type"];
|
|
8747
|
+
version?: number;
|
|
8748
|
+
};
|
|
8749
|
+
Update: {
|
|
8750
|
+
allowed_reference_types?: string[] | null;
|
|
8751
|
+
allowed_scope_type_ids?: string[] | null;
|
|
8752
|
+
category?: string | null;
|
|
8753
|
+
created_at?: string;
|
|
8754
|
+
created_by?: string | null;
|
|
8755
|
+
custom_component?: Json | null;
|
|
8756
|
+
custom_fields?: Json;
|
|
8757
|
+
deleted_at?: string | null;
|
|
8758
|
+
depends_on?: string[];
|
|
8759
|
+
description?: string;
|
|
8760
|
+
display_name?: string;
|
|
8761
|
+
feed_config?: Json;
|
|
8762
|
+
feed_error?: string | null;
|
|
8763
|
+
feed_status?: string | null;
|
|
8764
|
+
feed_type?: Database["public"]["Enums"]["context_feed_type"];
|
|
8765
|
+
fetch_hint?: Database["public"]["Enums"]["context_fetch_hint"];
|
|
8766
|
+
id?: string;
|
|
8767
|
+
is_active?: boolean;
|
|
8768
|
+
key?: string;
|
|
8769
|
+
last_fed_at?: string | null;
|
|
8770
|
+
last_verified_at?: string | null;
|
|
8771
|
+
max_items?: number;
|
|
8772
|
+
metadata?: Json;
|
|
8773
|
+
next_review_at?: string | null;
|
|
8774
|
+
reference_source?: Json | null;
|
|
8775
|
+
refresh_task_id?: string | null;
|
|
8776
|
+
review_interval_days?: number | null;
|
|
8777
|
+
scope_type_id?: string;
|
|
8778
|
+
sensitivity?: Database["public"]["Enums"]["context_sensitivity"];
|
|
8779
|
+
slug?: string;
|
|
8780
|
+
sort_order?: number;
|
|
8781
|
+
source_type?: Database["public"]["Enums"]["context_source_type"];
|
|
8782
|
+
status?: Database["public"]["Enums"]["context_item_status"];
|
|
8783
|
+
status_note?: string | null;
|
|
8784
|
+
status_updated_at?: string;
|
|
8785
|
+
status_updated_by?: string | null;
|
|
8786
|
+
tags?: string[];
|
|
8787
|
+
template_item_key?: string | null;
|
|
8788
|
+
updated_at?: string;
|
|
8789
|
+
updated_by?: string | null;
|
|
8790
|
+
value_type?: Database["public"]["Enums"]["context_value_type"];
|
|
8791
|
+
version?: number;
|
|
8792
|
+
};
|
|
8793
|
+
Relationships: [
|
|
8794
|
+
{
|
|
8795
|
+
foreignKeyName: "ctx_context_items_scope_type_id_fkey";
|
|
8796
|
+
columns: ["scope_type_id"];
|
|
8797
|
+
isOneToOne: false;
|
|
8798
|
+
referencedRelation: "scope_types";
|
|
8799
|
+
referencedColumns: ["id"];
|
|
8800
|
+
}
|
|
8801
|
+
];
|
|
8802
|
+
};
|
|
8803
|
+
context_value_refs: {
|
|
8804
|
+
Row: {
|
|
8805
|
+
context_item_id: string;
|
|
8806
|
+
created_at: string;
|
|
8807
|
+
custom_fields: Json;
|
|
8808
|
+
id: string;
|
|
8809
|
+
ref_key: string;
|
|
8810
|
+
ref_type: string;
|
|
8811
|
+
scope_id: string;
|
|
8812
|
+
value_id: string;
|
|
8813
|
+
};
|
|
8814
|
+
Insert: {
|
|
8815
|
+
context_item_id: string;
|
|
8816
|
+
created_at?: string;
|
|
8817
|
+
custom_fields?: Json;
|
|
8818
|
+
id?: string;
|
|
8819
|
+
ref_key: string;
|
|
8820
|
+
ref_type: string;
|
|
8821
|
+
scope_id: string;
|
|
8822
|
+
value_id: string;
|
|
8823
|
+
};
|
|
8824
|
+
Update: {
|
|
8825
|
+
context_item_id?: string;
|
|
8826
|
+
created_at?: string;
|
|
8827
|
+
custom_fields?: Json;
|
|
8828
|
+
id?: string;
|
|
8829
|
+
ref_key?: string;
|
|
8830
|
+
ref_type?: string;
|
|
8831
|
+
scope_id?: string;
|
|
8832
|
+
value_id?: string;
|
|
8833
|
+
};
|
|
8834
|
+
Relationships: [
|
|
8835
|
+
{
|
|
8836
|
+
foreignKeyName: "context_value_refs_value_id_fkey";
|
|
8837
|
+
columns: ["value_id"];
|
|
8838
|
+
isOneToOne: false;
|
|
8839
|
+
referencedRelation: "context_item_values";
|
|
8840
|
+
referencedColumns: ["id"];
|
|
8841
|
+
}
|
|
8842
|
+
];
|
|
8843
|
+
};
|
|
8844
|
+
custom_entity_definition: {
|
|
8845
|
+
Row: {
|
|
8846
|
+
ai_exposure: string;
|
|
8847
|
+
allow_record_sharing: boolean;
|
|
8848
|
+
archived_at: string | null;
|
|
8849
|
+
color: string | null;
|
|
8850
|
+
created_at: string;
|
|
8851
|
+
created_by: string | null;
|
|
8852
|
+
custom_fields: Json;
|
|
8853
|
+
deleted_at: string | null;
|
|
8854
|
+
description: string | null;
|
|
8855
|
+
icon: string | null;
|
|
8856
|
+
id: string;
|
|
8857
|
+
is_searchable: boolean;
|
|
8858
|
+
max_fields: number | null;
|
|
8859
|
+
max_records: number | null;
|
|
8860
|
+
metadata: Json;
|
|
8861
|
+
name: string;
|
|
8862
|
+
name_plural: string;
|
|
8863
|
+
organization_id: string;
|
|
8864
|
+
published_to_web: boolean;
|
|
8865
|
+
published_to_web_at: string | null;
|
|
8866
|
+
published_to_web_by: string | null;
|
|
8867
|
+
record_name_backfill_done: number;
|
|
8868
|
+
record_name_backfill_error: string | null;
|
|
8869
|
+
record_name_backfill_state: string;
|
|
8870
|
+
record_name_template: string | null;
|
|
8871
|
+
sensitivity_tier: string;
|
|
8872
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8873
|
+
slug: string;
|
|
8874
|
+
updated_at: string;
|
|
8875
|
+
updated_by: string | null;
|
|
8876
|
+
validation_mode: string;
|
|
8877
|
+
version: number;
|
|
8878
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8879
|
+
};
|
|
8880
|
+
Insert: {
|
|
8881
|
+
ai_exposure?: string;
|
|
8882
|
+
allow_record_sharing?: boolean;
|
|
8883
|
+
archived_at?: string | null;
|
|
8884
|
+
color?: string | null;
|
|
8885
|
+
created_at?: string;
|
|
8886
|
+
created_by?: string | null;
|
|
8887
|
+
custom_fields?: Json;
|
|
8888
|
+
deleted_at?: string | null;
|
|
8889
|
+
description?: string | null;
|
|
8890
|
+
icon?: string | null;
|
|
8891
|
+
id?: string;
|
|
8892
|
+
is_searchable?: boolean;
|
|
8893
|
+
max_fields?: number | null;
|
|
8894
|
+
max_records?: number | null;
|
|
8895
|
+
metadata?: Json;
|
|
8896
|
+
name: string;
|
|
8897
|
+
name_plural: string;
|
|
8898
|
+
organization_id: string;
|
|
8899
|
+
published_to_web?: boolean;
|
|
8900
|
+
published_to_web_at?: string | null;
|
|
8901
|
+
published_to_web_by?: string | null;
|
|
8902
|
+
record_name_backfill_done?: number;
|
|
8903
|
+
record_name_backfill_error?: string | null;
|
|
8904
|
+
record_name_backfill_state?: string;
|
|
8905
|
+
record_name_template?: string | null;
|
|
8906
|
+
sensitivity_tier?: string;
|
|
8907
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8908
|
+
slug: string;
|
|
8909
|
+
updated_at?: string;
|
|
8910
|
+
updated_by?: string | null;
|
|
8911
|
+
validation_mode?: string;
|
|
8912
|
+
version?: number;
|
|
8913
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
8914
|
+
};
|
|
8915
|
+
Update: {
|
|
8916
|
+
ai_exposure?: string;
|
|
8917
|
+
allow_record_sharing?: boolean;
|
|
8918
|
+
archived_at?: string | null;
|
|
8919
|
+
color?: string | null;
|
|
8920
|
+
created_at?: string;
|
|
8921
|
+
created_by?: string | null;
|
|
8922
|
+
custom_fields?: Json;
|
|
8923
|
+
deleted_at?: string | null;
|
|
8924
|
+
description?: string | null;
|
|
8925
|
+
icon?: string | null;
|
|
8926
|
+
id?: string;
|
|
8927
|
+
is_searchable?: boolean;
|
|
8928
|
+
max_fields?: number | null;
|
|
8929
|
+
max_records?: number | null;
|
|
8930
|
+
metadata?: Json;
|
|
8931
|
+
name?: string;
|
|
8932
|
+
name_plural?: string;
|
|
8933
|
+
organization_id?: string;
|
|
8934
|
+
published_to_web?: boolean;
|
|
8935
|
+
published_to_web_at?: string | null;
|
|
8936
|
+
published_to_web_by?: string | null;
|
|
8937
|
+
record_name_backfill_done?: number;
|
|
8938
|
+
record_name_backfill_error?: string | null;
|
|
8939
|
+
record_name_backfill_state?: string;
|
|
8940
|
+
record_name_template?: string | null;
|
|
8941
|
+
sensitivity_tier?: string;
|
|
8942
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8943
|
+
slug?: string;
|
|
8944
|
+
updated_at?: string;
|
|
8945
|
+
updated_by?: string | null;
|
|
8946
|
+
validation_mode?: string;
|
|
8947
|
+
version?: number;
|
|
8948
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
8949
|
+
};
|
|
8950
|
+
Relationships: [];
|
|
8951
|
+
};
|
|
8952
|
+
custom_record: {
|
|
8953
|
+
Row: {
|
|
8954
|
+
created_at: string;
|
|
8955
|
+
created_by: string | null;
|
|
8956
|
+
custom_fields: Json;
|
|
8957
|
+
data: Json;
|
|
8958
|
+
deleted_at: string | null;
|
|
8959
|
+
entity_definition_id: string;
|
|
8960
|
+
external_key: string | null;
|
|
8961
|
+
id: string;
|
|
8962
|
+
metadata: Json;
|
|
8963
|
+
organization_id: string;
|
|
8964
|
+
record_name: string | null;
|
|
8965
|
+
search_vector: unknown;
|
|
8966
|
+
updated_at: string;
|
|
8967
|
+
updated_by: string | null;
|
|
8968
|
+
version: number;
|
|
8969
|
+
};
|
|
8970
|
+
Insert: {
|
|
8971
|
+
created_at?: string;
|
|
8972
|
+
created_by?: string | null;
|
|
8973
|
+
custom_fields?: Json;
|
|
8974
|
+
data?: Json;
|
|
8975
|
+
deleted_at?: string | null;
|
|
8976
|
+
entity_definition_id: string;
|
|
8977
|
+
external_key?: string | null;
|
|
8978
|
+
id?: string;
|
|
8979
|
+
metadata?: Json;
|
|
8980
|
+
organization_id: string;
|
|
8981
|
+
record_name?: string | null;
|
|
8982
|
+
search_vector?: unknown;
|
|
8983
|
+
updated_at?: string;
|
|
8984
|
+
updated_by?: string | null;
|
|
8985
|
+
version?: number;
|
|
8986
|
+
};
|
|
8987
|
+
Update: {
|
|
8988
|
+
created_at?: string;
|
|
8989
|
+
created_by?: string | null;
|
|
8990
|
+
custom_fields?: Json;
|
|
8991
|
+
data?: Json;
|
|
8992
|
+
deleted_at?: string | null;
|
|
8993
|
+
entity_definition_id?: string;
|
|
8994
|
+
external_key?: string | null;
|
|
8995
|
+
id?: string;
|
|
8996
|
+
metadata?: Json;
|
|
8997
|
+
organization_id?: string;
|
|
8998
|
+
record_name?: string | null;
|
|
8999
|
+
search_vector?: unknown;
|
|
9000
|
+
updated_at?: string;
|
|
9001
|
+
updated_by?: string | null;
|
|
9002
|
+
version?: number;
|
|
9003
|
+
};
|
|
9004
|
+
Relationships: [
|
|
9005
|
+
{
|
|
9006
|
+
foreignKeyName: "custom_record_entity_definition_id_fkey";
|
|
9007
|
+
columns: ["entity_definition_id"];
|
|
9008
|
+
isOneToOne: false;
|
|
9009
|
+
referencedRelation: "custom_entity_definition";
|
|
9010
|
+
referencedColumns: ["id"];
|
|
9011
|
+
}
|
|
9012
|
+
];
|
|
9013
|
+
};
|
|
9014
|
+
flexible_data: {
|
|
9015
|
+
Row: {
|
|
9016
|
+
category_id: string | null;
|
|
9017
|
+
created_at: string;
|
|
9018
|
+
created_by: string | null;
|
|
9019
|
+
custom_fields: Json;
|
|
9020
|
+
data: Json;
|
|
9021
|
+
deleted_at: string | null;
|
|
9022
|
+
id: string;
|
|
9023
|
+
label: string;
|
|
9024
|
+
metadata: Json;
|
|
9025
|
+
organization_id: string;
|
|
9026
|
+
published_to_web: boolean;
|
|
9027
|
+
published_to_web_at: string | null;
|
|
9028
|
+
published_to_web_by: string | null;
|
|
9029
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9030
|
+
slug: string | null;
|
|
9031
|
+
updated_at: string;
|
|
9032
|
+
updated_by: string | null;
|
|
9033
|
+
version: number;
|
|
9034
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9035
|
+
};
|
|
9036
|
+
Insert: {
|
|
9037
|
+
category_id?: string | null;
|
|
9038
|
+
created_at?: string;
|
|
9039
|
+
created_by?: string | null;
|
|
9040
|
+
custom_fields?: Json;
|
|
9041
|
+
data?: Json;
|
|
9042
|
+
deleted_at?: string | null;
|
|
9043
|
+
id?: string;
|
|
9044
|
+
label: string;
|
|
9045
|
+
metadata?: Json;
|
|
9046
|
+
organization_id: string;
|
|
9047
|
+
published_to_web?: boolean;
|
|
9048
|
+
published_to_web_at?: string | null;
|
|
9049
|
+
published_to_web_by?: string | null;
|
|
9050
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9051
|
+
slug?: string | null;
|
|
9052
|
+
updated_at?: string;
|
|
9053
|
+
updated_by?: string | null;
|
|
9054
|
+
version?: number;
|
|
9055
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9056
|
+
};
|
|
9057
|
+
Update: {
|
|
9058
|
+
category_id?: string | null;
|
|
9059
|
+
created_at?: string;
|
|
9060
|
+
created_by?: string | null;
|
|
9061
|
+
custom_fields?: Json;
|
|
9062
|
+
data?: Json;
|
|
9063
|
+
deleted_at?: string | null;
|
|
9064
|
+
id?: string;
|
|
9065
|
+
label?: string;
|
|
9066
|
+
metadata?: Json;
|
|
9067
|
+
organization_id?: string;
|
|
9068
|
+
published_to_web?: boolean;
|
|
9069
|
+
published_to_web_at?: string | null;
|
|
9070
|
+
published_to_web_by?: string | null;
|
|
9071
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9072
|
+
slug?: string | null;
|
|
9073
|
+
updated_at?: string;
|
|
9074
|
+
updated_by?: string | null;
|
|
9075
|
+
version?: number;
|
|
9076
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9077
|
+
};
|
|
9078
|
+
Relationships: [];
|
|
9079
|
+
};
|
|
9080
|
+
pb_claim_appeals_fd31de: {
|
|
9081
|
+
Row: {
|
|
9082
|
+
claim_id: string;
|
|
9083
|
+
created_at: string;
|
|
9084
|
+
created_by: string | null;
|
|
9085
|
+
custom_fields: Json;
|
|
9086
|
+
deleted_at: string | null;
|
|
9087
|
+
filed_on: string | null;
|
|
9088
|
+
id: string;
|
|
9089
|
+
metadata: Json;
|
|
9090
|
+
organization_id: string;
|
|
9091
|
+
published_to_web: boolean;
|
|
9092
|
+
published_to_web_at: string | null;
|
|
9093
|
+
published_to_web_by: string | null;
|
|
9094
|
+
reason: string;
|
|
9095
|
+
updated_at: string;
|
|
9096
|
+
updated_by: string | null;
|
|
9097
|
+
version: number;
|
|
9098
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9099
|
+
};
|
|
9100
|
+
Insert: {
|
|
9101
|
+
claim_id: string;
|
|
9102
|
+
created_at?: string;
|
|
9103
|
+
created_by?: string | null;
|
|
9104
|
+
custom_fields?: Json;
|
|
9105
|
+
deleted_at?: string | null;
|
|
9106
|
+
filed_on?: string | null;
|
|
9107
|
+
id?: string;
|
|
9108
|
+
metadata?: Json;
|
|
9109
|
+
organization_id: string;
|
|
9110
|
+
published_to_web?: boolean;
|
|
9111
|
+
published_to_web_at?: string | null;
|
|
9112
|
+
published_to_web_by?: string | null;
|
|
9113
|
+
reason: string;
|
|
9114
|
+
updated_at?: string;
|
|
9115
|
+
updated_by?: string | null;
|
|
9116
|
+
version?: number;
|
|
9117
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9118
|
+
};
|
|
9119
|
+
Update: {
|
|
9120
|
+
claim_id?: string;
|
|
9121
|
+
created_at?: string;
|
|
9122
|
+
created_by?: string | null;
|
|
9123
|
+
custom_fields?: Json;
|
|
9124
|
+
deleted_at?: string | null;
|
|
9125
|
+
filed_on?: string | null;
|
|
9126
|
+
id?: string;
|
|
9127
|
+
metadata?: Json;
|
|
9128
|
+
organization_id?: string;
|
|
9129
|
+
published_to_web?: boolean;
|
|
9130
|
+
published_to_web_at?: string | null;
|
|
9131
|
+
published_to_web_by?: string | null;
|
|
9132
|
+
reason?: string;
|
|
9133
|
+
updated_at?: string;
|
|
9134
|
+
updated_by?: string | null;
|
|
9135
|
+
version?: number;
|
|
9136
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9137
|
+
};
|
|
9138
|
+
Relationships: [];
|
|
9139
|
+
};
|
|
9140
|
+
pb_insurance_claims_fd31de: {
|
|
9141
|
+
Row: {
|
|
9142
|
+
billed_cents: number | null;
|
|
9143
|
+
carrier: string;
|
|
9144
|
+
created_at: string;
|
|
9145
|
+
created_by: string | null;
|
|
9146
|
+
custom_fields: Json;
|
|
9147
|
+
deleted_at: string | null;
|
|
9148
|
+
id: string;
|
|
9149
|
+
metadata: Json;
|
|
9150
|
+
organization_id: string;
|
|
9151
|
+
published_to_web: boolean;
|
|
9152
|
+
published_to_web_at: string | null;
|
|
9153
|
+
published_to_web_by: string | null;
|
|
9154
|
+
status: string | null;
|
|
9155
|
+
updated_at: string;
|
|
9156
|
+
updated_by: string | null;
|
|
9157
|
+
version: number;
|
|
9158
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9159
|
+
};
|
|
9160
|
+
Insert: {
|
|
9161
|
+
billed_cents?: number | null;
|
|
9162
|
+
carrier: string;
|
|
9163
|
+
created_at?: string;
|
|
9164
|
+
created_by?: string | null;
|
|
9165
|
+
custom_fields?: Json;
|
|
9166
|
+
deleted_at?: string | null;
|
|
9167
|
+
id?: string;
|
|
9168
|
+
metadata?: Json;
|
|
9169
|
+
organization_id: string;
|
|
9170
|
+
published_to_web?: boolean;
|
|
9171
|
+
published_to_web_at?: string | null;
|
|
9172
|
+
published_to_web_by?: string | null;
|
|
9173
|
+
status?: string | null;
|
|
9174
|
+
updated_at?: string;
|
|
9175
|
+
updated_by?: string | null;
|
|
9176
|
+
version?: number;
|
|
9177
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9178
|
+
};
|
|
9179
|
+
Update: {
|
|
9180
|
+
billed_cents?: number | null;
|
|
9181
|
+
carrier?: string;
|
|
9182
|
+
created_at?: string;
|
|
9183
|
+
created_by?: string | null;
|
|
9184
|
+
custom_fields?: Json;
|
|
9185
|
+
deleted_at?: string | null;
|
|
9186
|
+
id?: string;
|
|
9187
|
+
metadata?: Json;
|
|
9188
|
+
organization_id?: string;
|
|
9189
|
+
published_to_web?: boolean;
|
|
9190
|
+
published_to_web_at?: string | null;
|
|
9191
|
+
published_to_web_by?: string | null;
|
|
9192
|
+
status?: string | null;
|
|
9193
|
+
updated_at?: string;
|
|
9194
|
+
updated_by?: string | null;
|
|
9195
|
+
version?: number;
|
|
9196
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9197
|
+
};
|
|
9198
|
+
Relationships: [];
|
|
9199
|
+
};
|
|
9200
|
+
provlock_recall_visits_all8u5: {
|
|
9201
|
+
Row: {
|
|
9202
|
+
booked: boolean | null;
|
|
9203
|
+
created_at: string;
|
|
9204
|
+
created_by: string | null;
|
|
9205
|
+
custom_fields: Json;
|
|
9206
|
+
deleted_at: string | null;
|
|
9207
|
+
due_on: string | null;
|
|
9208
|
+
id: string;
|
|
9209
|
+
metadata: Json;
|
|
9210
|
+
organization_id: string;
|
|
9211
|
+
patient_ref: string;
|
|
9212
|
+
published_to_web: boolean;
|
|
9213
|
+
published_to_web_at: string | null;
|
|
9214
|
+
published_to_web_by: string | null;
|
|
9215
|
+
updated_at: string;
|
|
9216
|
+
updated_by: string | null;
|
|
9217
|
+
version: number;
|
|
9218
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9219
|
+
};
|
|
9220
|
+
Insert: {
|
|
9221
|
+
booked?: boolean | null;
|
|
9222
|
+
created_at?: string;
|
|
9223
|
+
created_by?: string | null;
|
|
9224
|
+
custom_fields?: Json;
|
|
9225
|
+
deleted_at?: string | null;
|
|
9226
|
+
due_on?: string | null;
|
|
9227
|
+
id?: string;
|
|
9228
|
+
metadata?: Json;
|
|
9229
|
+
organization_id: string;
|
|
9230
|
+
patient_ref: string;
|
|
9231
|
+
published_to_web?: boolean;
|
|
9232
|
+
published_to_web_at?: string | null;
|
|
9233
|
+
published_to_web_by?: string | null;
|
|
9234
|
+
updated_at?: string;
|
|
9235
|
+
updated_by?: string | null;
|
|
9236
|
+
version?: number;
|
|
9237
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9238
|
+
};
|
|
9239
|
+
Update: {
|
|
9240
|
+
booked?: boolean | null;
|
|
9241
|
+
created_at?: string;
|
|
9242
|
+
created_by?: string | null;
|
|
9243
|
+
custom_fields?: Json;
|
|
9244
|
+
deleted_at?: string | null;
|
|
9245
|
+
due_on?: string | null;
|
|
9246
|
+
id?: string;
|
|
9247
|
+
metadata?: Json;
|
|
9248
|
+
organization_id?: string;
|
|
9249
|
+
patient_ref?: string;
|
|
9250
|
+
published_to_web?: boolean;
|
|
9251
|
+
published_to_web_at?: string | null;
|
|
9252
|
+
published_to_web_by?: string | null;
|
|
9253
|
+
updated_at?: string;
|
|
9254
|
+
updated_by?: string | null;
|
|
9255
|
+
version?: number;
|
|
9256
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9257
|
+
};
|
|
9258
|
+
Relationships: [];
|
|
9259
|
+
};
|
|
9260
|
+
scope_dataset_instances: {
|
|
9261
|
+
Row: {
|
|
9262
|
+
context_item_id: string;
|
|
9263
|
+
created_at: string;
|
|
9264
|
+
created_by: string | null;
|
|
9265
|
+
custom_fields: Json;
|
|
9266
|
+
dataset_id: string;
|
|
9267
|
+
id: string;
|
|
9268
|
+
metadata: Json;
|
|
9269
|
+
organization_id: string;
|
|
9270
|
+
scope_id: string;
|
|
9271
|
+
template_id: string;
|
|
9272
|
+
template_version: number;
|
|
9273
|
+
};
|
|
9274
|
+
Insert: {
|
|
9275
|
+
context_item_id: string;
|
|
9276
|
+
created_at?: string;
|
|
9277
|
+
created_by?: string | null;
|
|
9278
|
+
custom_fields?: Json;
|
|
9279
|
+
dataset_id: string;
|
|
9280
|
+
id?: string;
|
|
9281
|
+
metadata?: Json;
|
|
9282
|
+
organization_id: string;
|
|
9283
|
+
scope_id: string;
|
|
9284
|
+
template_id: string;
|
|
9285
|
+
template_version: number;
|
|
9286
|
+
};
|
|
9287
|
+
Update: {
|
|
9288
|
+
context_item_id?: string;
|
|
9289
|
+
created_at?: string;
|
|
9290
|
+
created_by?: string | null;
|
|
9291
|
+
custom_fields?: Json;
|
|
9292
|
+
dataset_id?: string;
|
|
9293
|
+
id?: string;
|
|
9294
|
+
metadata?: Json;
|
|
9295
|
+
organization_id?: string;
|
|
9296
|
+
scope_id?: string;
|
|
9297
|
+
template_id?: string;
|
|
9298
|
+
template_version?: number;
|
|
9299
|
+
};
|
|
9300
|
+
Relationships: [
|
|
9301
|
+
{
|
|
9302
|
+
foreignKeyName: "scope_dataset_instances_dataset_id_fkey";
|
|
9303
|
+
columns: ["dataset_id"];
|
|
9304
|
+
isOneToOne: true;
|
|
9305
|
+
referencedRelation: "udt_datasets";
|
|
9306
|
+
referencedColumns: ["id"];
|
|
9307
|
+
}
|
|
9308
|
+
];
|
|
9309
|
+
};
|
|
9310
|
+
scope_types: {
|
|
9311
|
+
Row: {
|
|
9312
|
+
color: string;
|
|
9313
|
+
created_at: string;
|
|
9314
|
+
created_by: string | null;
|
|
9315
|
+
custom_fields: Json;
|
|
9316
|
+
default_variable_keys: string[];
|
|
9317
|
+
deleted_at: string | null;
|
|
9318
|
+
description: string;
|
|
9319
|
+
icon: string;
|
|
9320
|
+
id: string;
|
|
9321
|
+
label_plural: string;
|
|
9322
|
+
label_singular: string;
|
|
9323
|
+
max_assignments_per_entity: number | null;
|
|
9324
|
+
metadata: Json;
|
|
9325
|
+
organization_id: string;
|
|
9326
|
+
parent_type_id: string | null;
|
|
9327
|
+
slug: string;
|
|
9328
|
+
sort_order: number;
|
|
9329
|
+
updated_at: string;
|
|
9330
|
+
updated_by: string | null;
|
|
9331
|
+
version: number;
|
|
9332
|
+
};
|
|
9333
|
+
Insert: {
|
|
9334
|
+
color?: string;
|
|
9335
|
+
created_at?: string;
|
|
9336
|
+
created_by?: string | null;
|
|
9337
|
+
custom_fields?: Json;
|
|
9338
|
+
default_variable_keys?: string[];
|
|
9339
|
+
deleted_at?: string | null;
|
|
9340
|
+
description?: string;
|
|
9341
|
+
icon?: string;
|
|
9342
|
+
id?: string;
|
|
9343
|
+
label_plural: string;
|
|
9344
|
+
label_singular: string;
|
|
9345
|
+
max_assignments_per_entity?: number | null;
|
|
9346
|
+
metadata?: Json;
|
|
9347
|
+
organization_id: string;
|
|
9348
|
+
parent_type_id?: string | null;
|
|
9349
|
+
slug: string;
|
|
9350
|
+
sort_order?: number;
|
|
9351
|
+
updated_at?: string;
|
|
9352
|
+
updated_by?: string | null;
|
|
9353
|
+
version?: number;
|
|
9354
|
+
};
|
|
9355
|
+
Update: {
|
|
9356
|
+
color?: string;
|
|
9357
|
+
created_at?: string;
|
|
9358
|
+
created_by?: string | null;
|
|
9359
|
+
custom_fields?: Json;
|
|
9360
|
+
default_variable_keys?: string[];
|
|
9361
|
+
deleted_at?: string | null;
|
|
9362
|
+
description?: string;
|
|
9363
|
+
icon?: string;
|
|
9364
|
+
id?: string;
|
|
9365
|
+
label_plural?: string;
|
|
9366
|
+
label_singular?: string;
|
|
9367
|
+
max_assignments_per_entity?: number | null;
|
|
9368
|
+
metadata?: Json;
|
|
9369
|
+
organization_id?: string;
|
|
9370
|
+
parent_type_id?: string | null;
|
|
9371
|
+
slug?: string;
|
|
9372
|
+
sort_order?: number;
|
|
9373
|
+
updated_at?: string;
|
|
9374
|
+
updated_by?: string | null;
|
|
9375
|
+
version?: number;
|
|
9376
|
+
};
|
|
9377
|
+
Relationships: [
|
|
9378
|
+
{
|
|
9379
|
+
foreignKeyName: "ctx_scope_types_parent_type_id_fkey";
|
|
9380
|
+
columns: ["parent_type_id"];
|
|
9381
|
+
isOneToOne: false;
|
|
9382
|
+
referencedRelation: "scope_types";
|
|
9383
|
+
referencedColumns: ["id"];
|
|
9384
|
+
}
|
|
9385
|
+
];
|
|
9386
|
+
};
|
|
9387
|
+
scopes: {
|
|
9388
|
+
Row: {
|
|
9389
|
+
created_at: string;
|
|
9390
|
+
created_by: string | null;
|
|
9391
|
+
custom_fields: Json;
|
|
9392
|
+
deleted_at: string | null;
|
|
9393
|
+
description: string;
|
|
9394
|
+
id: string;
|
|
9395
|
+
metadata: Json;
|
|
9396
|
+
name: string;
|
|
9397
|
+
organization_id: string;
|
|
9398
|
+
parent_scope_id: string | null;
|
|
9399
|
+
published_to_web: boolean;
|
|
9400
|
+
published_to_web_at: string | null;
|
|
9401
|
+
published_to_web_by: string | null;
|
|
9402
|
+
scope_type_id: string;
|
|
9403
|
+
settings: Json;
|
|
9404
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9405
|
+
slug: string;
|
|
9406
|
+
sort_order: number;
|
|
9407
|
+
updated_at: string;
|
|
9408
|
+
updated_by: string | null;
|
|
9409
|
+
version: number;
|
|
9410
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9411
|
+
};
|
|
9412
|
+
Insert: {
|
|
9413
|
+
created_at?: string;
|
|
9414
|
+
created_by?: string | null;
|
|
9415
|
+
custom_fields?: Json;
|
|
9416
|
+
deleted_at?: string | null;
|
|
9417
|
+
description?: string;
|
|
9418
|
+
id?: string;
|
|
9419
|
+
metadata?: Json;
|
|
9420
|
+
name: string;
|
|
9421
|
+
organization_id: string;
|
|
9422
|
+
parent_scope_id?: string | null;
|
|
9423
|
+
published_to_web?: boolean;
|
|
9424
|
+
published_to_web_at?: string | null;
|
|
9425
|
+
published_to_web_by?: string | null;
|
|
9426
|
+
scope_type_id: string;
|
|
9427
|
+
settings?: Json;
|
|
9428
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9429
|
+
slug: string;
|
|
9430
|
+
sort_order?: number;
|
|
9431
|
+
updated_at?: string;
|
|
9432
|
+
updated_by?: string | null;
|
|
9433
|
+
version?: number;
|
|
9434
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9435
|
+
};
|
|
9436
|
+
Update: {
|
|
9437
|
+
created_at?: string;
|
|
9438
|
+
created_by?: string | null;
|
|
9439
|
+
custom_fields?: Json;
|
|
9440
|
+
deleted_at?: string | null;
|
|
9441
|
+
description?: string;
|
|
9442
|
+
id?: string;
|
|
9443
|
+
metadata?: Json;
|
|
9444
|
+
name?: string;
|
|
9445
|
+
organization_id?: string;
|
|
9446
|
+
parent_scope_id?: string | null;
|
|
9447
|
+
published_to_web?: boolean;
|
|
9448
|
+
published_to_web_at?: string | null;
|
|
9449
|
+
published_to_web_by?: string | null;
|
|
9450
|
+
scope_type_id?: string;
|
|
9451
|
+
settings?: Json;
|
|
9452
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9453
|
+
slug?: string;
|
|
9454
|
+
sort_order?: number;
|
|
9455
|
+
updated_at?: string;
|
|
9456
|
+
updated_by?: string | null;
|
|
9457
|
+
version?: number;
|
|
9458
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9459
|
+
};
|
|
9460
|
+
Relationships: [
|
|
9461
|
+
{
|
|
9462
|
+
foreignKeyName: "ctx_scopes_parent_scope_id_fkey";
|
|
9463
|
+
columns: ["parent_scope_id"];
|
|
9464
|
+
isOneToOne: false;
|
|
9465
|
+
referencedRelation: "scopes";
|
|
9466
|
+
referencedColumns: ["id"];
|
|
9467
|
+
},
|
|
9468
|
+
{
|
|
9469
|
+
foreignKeyName: "ctx_scopes_scope_type_id_fkey";
|
|
9470
|
+
columns: ["scope_type_id"];
|
|
9471
|
+
isOneToOne: false;
|
|
9472
|
+
referencedRelation: "scope_types";
|
|
9473
|
+
referencedColumns: ["id"];
|
|
9474
|
+
}
|
|
9475
|
+
];
|
|
9476
|
+
};
|
|
9477
|
+
udt_dataset_fields: {
|
|
9478
|
+
Row: {
|
|
9479
|
+
created_at: string;
|
|
9480
|
+
created_by: string | null;
|
|
9481
|
+
custom_fields: Json;
|
|
9482
|
+
data_type: Database["public"]["Enums"]["field_data_type"];
|
|
9483
|
+
default_value: Json | null;
|
|
9484
|
+
deleted_at: string | null;
|
|
9485
|
+
display_name: string;
|
|
9486
|
+
field_name: string;
|
|
9487
|
+
field_order: number;
|
|
9488
|
+
id: string;
|
|
9489
|
+
is_public: boolean;
|
|
9490
|
+
is_required: boolean;
|
|
9491
|
+
metadata: Json;
|
|
9492
|
+
organization_id: string;
|
|
9493
|
+
table_id: string;
|
|
9494
|
+
updated_at: string;
|
|
9495
|
+
updated_by: string | null;
|
|
9496
|
+
user_id: string;
|
|
9497
|
+
validation_rules: Json | null;
|
|
9498
|
+
version: number;
|
|
9499
|
+
};
|
|
9500
|
+
Insert: {
|
|
9501
|
+
created_at?: string;
|
|
9502
|
+
created_by?: string | null;
|
|
9503
|
+
custom_fields?: Json;
|
|
9504
|
+
data_type?: Database["public"]["Enums"]["field_data_type"];
|
|
9505
|
+
default_value?: Json | null;
|
|
9506
|
+
deleted_at?: string | null;
|
|
9507
|
+
display_name: string;
|
|
9508
|
+
field_name: string;
|
|
9509
|
+
field_order?: number;
|
|
9510
|
+
id?: string;
|
|
9511
|
+
is_public?: boolean;
|
|
9512
|
+
is_required?: boolean;
|
|
9513
|
+
metadata?: Json;
|
|
9514
|
+
organization_id: string;
|
|
9515
|
+
table_id: string;
|
|
9516
|
+
updated_at?: string;
|
|
9517
|
+
updated_by?: string | null;
|
|
9518
|
+
user_id: string;
|
|
9519
|
+
validation_rules?: Json | null;
|
|
9520
|
+
version?: number;
|
|
9521
|
+
};
|
|
9522
|
+
Update: {
|
|
9523
|
+
created_at?: string;
|
|
9524
|
+
created_by?: string | null;
|
|
9525
|
+
custom_fields?: Json;
|
|
9526
|
+
data_type?: Database["public"]["Enums"]["field_data_type"];
|
|
9527
|
+
default_value?: Json | null;
|
|
9528
|
+
deleted_at?: string | null;
|
|
9529
|
+
display_name?: string;
|
|
9530
|
+
field_name?: string;
|
|
9531
|
+
field_order?: number;
|
|
9532
|
+
id?: string;
|
|
9533
|
+
is_public?: boolean;
|
|
9534
|
+
is_required?: boolean;
|
|
9535
|
+
metadata?: Json;
|
|
9536
|
+
organization_id?: string;
|
|
9537
|
+
table_id?: string;
|
|
9538
|
+
updated_at?: string;
|
|
9539
|
+
updated_by?: string | null;
|
|
9540
|
+
user_id?: string;
|
|
9541
|
+
validation_rules?: Json | null;
|
|
9542
|
+
version?: number;
|
|
9543
|
+
};
|
|
9544
|
+
Relationships: [
|
|
9545
|
+
{
|
|
9546
|
+
foreignKeyName: "udt_dataset_fields_dataset_id_fkey";
|
|
9547
|
+
columns: ["table_id"];
|
|
9548
|
+
isOneToOne: false;
|
|
9549
|
+
referencedRelation: "udt_datasets";
|
|
9550
|
+
referencedColumns: ["id"];
|
|
9551
|
+
}
|
|
9552
|
+
];
|
|
9553
|
+
};
|
|
9554
|
+
udt_dataset_row_versions: {
|
|
9555
|
+
Row: {
|
|
9556
|
+
change_kind: Database["public"]["Enums"]["row_change_kind"];
|
|
9557
|
+
changed_at: string;
|
|
9558
|
+
changed_by: string | null;
|
|
9559
|
+
custom_fields: Json;
|
|
9560
|
+
data: Json | null;
|
|
9561
|
+
id: number;
|
|
9562
|
+
prior_data: Json | null;
|
|
9563
|
+
reason: string | null;
|
|
9564
|
+
row_id: string;
|
|
9565
|
+
table_id: string;
|
|
9566
|
+
};
|
|
9567
|
+
Insert: {
|
|
9568
|
+
change_kind: Database["public"]["Enums"]["row_change_kind"];
|
|
9569
|
+
changed_at?: string;
|
|
9570
|
+
changed_by?: string | null;
|
|
9571
|
+
custom_fields?: Json;
|
|
9572
|
+
data?: Json | null;
|
|
9573
|
+
id?: number;
|
|
9574
|
+
prior_data?: Json | null;
|
|
9575
|
+
reason?: string | null;
|
|
9576
|
+
row_id: string;
|
|
9577
|
+
table_id: string;
|
|
9578
|
+
};
|
|
9579
|
+
Update: {
|
|
9580
|
+
change_kind?: Database["public"]["Enums"]["row_change_kind"];
|
|
9581
|
+
changed_at?: string;
|
|
9582
|
+
changed_by?: string | null;
|
|
9583
|
+
custom_fields?: Json;
|
|
9584
|
+
data?: Json | null;
|
|
9585
|
+
id?: number;
|
|
9586
|
+
prior_data?: Json | null;
|
|
9587
|
+
reason?: string | null;
|
|
9588
|
+
row_id?: string;
|
|
9589
|
+
table_id?: string;
|
|
9590
|
+
};
|
|
9591
|
+
Relationships: [];
|
|
9592
|
+
};
|
|
9593
|
+
udt_dataset_rows: {
|
|
9594
|
+
Row: {
|
|
9595
|
+
created_at: string;
|
|
9596
|
+
created_by: string | null;
|
|
9597
|
+
custom_fields: Json;
|
|
9598
|
+
data: Json;
|
|
9599
|
+
deleted_at: string | null;
|
|
9600
|
+
id: string;
|
|
9601
|
+
is_public: boolean;
|
|
9602
|
+
metadata: Json;
|
|
9603
|
+
organization_id: string;
|
|
9604
|
+
source_row_ref: string | null;
|
|
9605
|
+
table_id: string;
|
|
9606
|
+
updated_at: string;
|
|
9607
|
+
updated_by: string | null;
|
|
9608
|
+
user_id: string;
|
|
9609
|
+
version: number;
|
|
9610
|
+
};
|
|
9611
|
+
Insert: {
|
|
9612
|
+
created_at?: string;
|
|
9613
|
+
created_by?: string | null;
|
|
9614
|
+
custom_fields?: Json;
|
|
9615
|
+
data: Json;
|
|
9616
|
+
deleted_at?: string | null;
|
|
9617
|
+
id?: string;
|
|
9618
|
+
is_public?: boolean;
|
|
9619
|
+
metadata?: Json;
|
|
9620
|
+
organization_id: string;
|
|
9621
|
+
source_row_ref?: string | null;
|
|
9622
|
+
table_id: string;
|
|
9623
|
+
updated_at?: string;
|
|
9624
|
+
updated_by?: string | null;
|
|
9625
|
+
user_id: string;
|
|
9626
|
+
version?: number;
|
|
9627
|
+
};
|
|
9628
|
+
Update: {
|
|
9629
|
+
created_at?: string;
|
|
9630
|
+
created_by?: string | null;
|
|
9631
|
+
custom_fields?: Json;
|
|
9632
|
+
data?: Json;
|
|
9633
|
+
deleted_at?: string | null;
|
|
9634
|
+
id?: string;
|
|
9635
|
+
is_public?: boolean;
|
|
9636
|
+
metadata?: Json;
|
|
9637
|
+
organization_id?: string;
|
|
9638
|
+
source_row_ref?: string | null;
|
|
9639
|
+
table_id?: string;
|
|
9640
|
+
updated_at?: string;
|
|
9641
|
+
updated_by?: string | null;
|
|
9642
|
+
user_id?: string;
|
|
9643
|
+
version?: number;
|
|
9644
|
+
};
|
|
9645
|
+
Relationships: [
|
|
9646
|
+
{
|
|
9647
|
+
foreignKeyName: "udt_dataset_rows_dataset_id_fkey";
|
|
9648
|
+
columns: ["table_id"];
|
|
9649
|
+
isOneToOne: false;
|
|
9650
|
+
referencedRelation: "udt_datasets";
|
|
9651
|
+
referencedColumns: ["id"];
|
|
9652
|
+
}
|
|
9653
|
+
];
|
|
9654
|
+
};
|
|
9655
|
+
udt_datasets: {
|
|
9656
|
+
Row: {
|
|
9657
|
+
created_at: string;
|
|
9658
|
+
created_by: string;
|
|
9659
|
+
custom_fields: Json;
|
|
9660
|
+
deleted_at: string | null;
|
|
9661
|
+
description: string | null;
|
|
9662
|
+
id: string;
|
|
9663
|
+
is_public: boolean;
|
|
9664
|
+
metadata: Json;
|
|
9665
|
+
organization_id: string;
|
|
9666
|
+
project_id: string | null;
|
|
9667
|
+
published_to_web: boolean;
|
|
9668
|
+
published_to_web_at: string | null;
|
|
9669
|
+
published_to_web_by: string | null;
|
|
9670
|
+
row_ordering_config: Json | null;
|
|
9671
|
+
sheet_index: number | null;
|
|
9672
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9673
|
+
sync_source: Json | null;
|
|
9674
|
+
table_name: string;
|
|
9675
|
+
task_id: string | null;
|
|
9676
|
+
template_id: string | null;
|
|
9677
|
+
template_version: number | null;
|
|
9678
|
+
updated_at: string;
|
|
9679
|
+
updated_by: string | null;
|
|
9680
|
+
user_id: string;
|
|
9681
|
+
validation_mode: string;
|
|
9682
|
+
version: number;
|
|
9683
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9684
|
+
workbook_id: string | null;
|
|
9685
|
+
};
|
|
9686
|
+
Insert: {
|
|
9687
|
+
created_at?: string;
|
|
9688
|
+
created_by: string;
|
|
9689
|
+
custom_fields?: Json;
|
|
9690
|
+
deleted_at?: string | null;
|
|
9691
|
+
description?: string | null;
|
|
9692
|
+
id?: string;
|
|
9693
|
+
is_public?: boolean;
|
|
9694
|
+
metadata?: Json;
|
|
9695
|
+
organization_id: string;
|
|
9696
|
+
project_id?: string | null;
|
|
9697
|
+
published_to_web?: boolean;
|
|
9698
|
+
published_to_web_at?: string | null;
|
|
9699
|
+
published_to_web_by?: string | null;
|
|
9700
|
+
row_ordering_config?: Json | null;
|
|
9701
|
+
sheet_index?: number | null;
|
|
9702
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9703
|
+
sync_source?: Json | null;
|
|
9704
|
+
table_name: string;
|
|
9705
|
+
task_id?: string | null;
|
|
9706
|
+
template_id?: string | null;
|
|
9707
|
+
template_version?: number | null;
|
|
9708
|
+
updated_at?: string;
|
|
9709
|
+
updated_by?: string | null;
|
|
9710
|
+
user_id: string;
|
|
9711
|
+
validation_mode?: string;
|
|
9712
|
+
version?: number;
|
|
9713
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9714
|
+
workbook_id?: string | null;
|
|
9715
|
+
};
|
|
9716
|
+
Update: {
|
|
9717
|
+
created_at?: string;
|
|
9718
|
+
created_by?: string;
|
|
9719
|
+
custom_fields?: Json;
|
|
9720
|
+
deleted_at?: string | null;
|
|
9721
|
+
description?: string | null;
|
|
9722
|
+
id?: string;
|
|
9723
|
+
is_public?: boolean;
|
|
9724
|
+
metadata?: Json;
|
|
9725
|
+
organization_id?: string;
|
|
9726
|
+
project_id?: string | null;
|
|
9727
|
+
published_to_web?: boolean;
|
|
9728
|
+
published_to_web_at?: string | null;
|
|
9729
|
+
published_to_web_by?: string | null;
|
|
9730
|
+
row_ordering_config?: Json | null;
|
|
9731
|
+
sheet_index?: number | null;
|
|
9732
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9733
|
+
sync_source?: Json | null;
|
|
9734
|
+
table_name?: string;
|
|
9735
|
+
task_id?: string | null;
|
|
9736
|
+
template_id?: string | null;
|
|
9737
|
+
template_version?: number | null;
|
|
9738
|
+
updated_at?: string;
|
|
9739
|
+
updated_by?: string | null;
|
|
9740
|
+
user_id?: string;
|
|
9741
|
+
validation_mode?: string;
|
|
9742
|
+
version?: number;
|
|
9743
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9744
|
+
workbook_id?: string | null;
|
|
9745
|
+
};
|
|
9746
|
+
Relationships: [];
|
|
9747
|
+
};
|
|
9748
|
+
udt_structured_list_items: {
|
|
9749
|
+
Row: {
|
|
9750
|
+
created_at: string;
|
|
9751
|
+
created_by: string | null;
|
|
9752
|
+
custom_fields: Json;
|
|
9753
|
+
deleted_at: string | null;
|
|
9754
|
+
description: string | null;
|
|
9755
|
+
group_name: string | null;
|
|
9756
|
+
help_text: string | null;
|
|
9757
|
+
icon_name: string | null;
|
|
9758
|
+
id: string;
|
|
9759
|
+
is_public: boolean | null;
|
|
9760
|
+
label: string | null;
|
|
9761
|
+
list_id: string | null;
|
|
9762
|
+
metadata: Json;
|
|
9763
|
+
organization_id: string | null;
|
|
9764
|
+
public_read: boolean | null;
|
|
9765
|
+
updated_at: string | null;
|
|
9766
|
+
updated_by: string | null;
|
|
9767
|
+
user_id: string | null;
|
|
9768
|
+
version: number;
|
|
9769
|
+
};
|
|
9770
|
+
Insert: {
|
|
9771
|
+
created_at?: string;
|
|
9772
|
+
created_by?: string | null;
|
|
9773
|
+
custom_fields?: Json;
|
|
9774
|
+
deleted_at?: string | null;
|
|
9775
|
+
description?: string | null;
|
|
9776
|
+
group_name?: string | null;
|
|
9777
|
+
help_text?: string | null;
|
|
9778
|
+
icon_name?: string | null;
|
|
9779
|
+
id?: string;
|
|
9780
|
+
is_public?: boolean | null;
|
|
9781
|
+
label?: string | null;
|
|
9782
|
+
list_id?: string | null;
|
|
9783
|
+
metadata?: Json;
|
|
9784
|
+
organization_id?: string | null;
|
|
9785
|
+
public_read?: boolean | null;
|
|
9786
|
+
updated_at?: string | null;
|
|
9787
|
+
updated_by?: string | null;
|
|
9788
|
+
user_id?: string | null;
|
|
9789
|
+
version?: number;
|
|
9790
|
+
};
|
|
9791
|
+
Update: {
|
|
9792
|
+
created_at?: string;
|
|
9793
|
+
created_by?: string | null;
|
|
9794
|
+
custom_fields?: Json;
|
|
9795
|
+
deleted_at?: string | null;
|
|
9796
|
+
description?: string | null;
|
|
9797
|
+
group_name?: string | null;
|
|
9798
|
+
help_text?: string | null;
|
|
9799
|
+
icon_name?: string | null;
|
|
9800
|
+
id?: string;
|
|
9801
|
+
is_public?: boolean | null;
|
|
9802
|
+
label?: string | null;
|
|
9803
|
+
list_id?: string | null;
|
|
9804
|
+
metadata?: Json;
|
|
9805
|
+
organization_id?: string | null;
|
|
9806
|
+
public_read?: boolean | null;
|
|
9807
|
+
updated_at?: string | null;
|
|
9808
|
+
updated_by?: string | null;
|
|
9809
|
+
user_id?: string | null;
|
|
9810
|
+
version?: number;
|
|
9811
|
+
};
|
|
9812
|
+
Relationships: [
|
|
9813
|
+
{
|
|
9814
|
+
foreignKeyName: "udt_structured_list_items_list_id_fkey";
|
|
9815
|
+
columns: ["list_id"];
|
|
9816
|
+
isOneToOne: false;
|
|
9817
|
+
referencedRelation: "udt_structured_lists";
|
|
9818
|
+
referencedColumns: ["id"];
|
|
9819
|
+
}
|
|
9820
|
+
];
|
|
9821
|
+
};
|
|
9822
|
+
udt_structured_lists: {
|
|
9823
|
+
Row: {
|
|
9824
|
+
created_at: string;
|
|
9825
|
+
created_by: string;
|
|
9826
|
+
custom_fields: Json;
|
|
9827
|
+
deleted_at: string | null;
|
|
9828
|
+
description: string | null;
|
|
9829
|
+
id: string;
|
|
9830
|
+
is_public: boolean | null;
|
|
9831
|
+
list_name: string | null;
|
|
9832
|
+
metadata: Json;
|
|
9833
|
+
organization_id: string | null;
|
|
9834
|
+
public_read: boolean | null;
|
|
9835
|
+
published_to_web: boolean;
|
|
9836
|
+
published_to_web_at: string | null;
|
|
9837
|
+
published_to_web_by: string | null;
|
|
9838
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9839
|
+
updated_at: string | null;
|
|
9840
|
+
updated_by: string | null;
|
|
9841
|
+
user_id: string | null;
|
|
9842
|
+
version: number;
|
|
9843
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9844
|
+
};
|
|
9845
|
+
Insert: {
|
|
9846
|
+
created_at?: string;
|
|
9847
|
+
created_by: string;
|
|
9848
|
+
custom_fields?: Json;
|
|
9849
|
+
deleted_at?: string | null;
|
|
9850
|
+
description?: string | null;
|
|
9851
|
+
id?: string;
|
|
9852
|
+
is_public?: boolean | null;
|
|
9853
|
+
list_name?: string | null;
|
|
9854
|
+
metadata?: Json;
|
|
9855
|
+
organization_id?: string | null;
|
|
9856
|
+
public_read?: boolean | null;
|
|
9857
|
+
published_to_web?: boolean;
|
|
9858
|
+
published_to_web_at?: string | null;
|
|
9859
|
+
published_to_web_by?: string | null;
|
|
9860
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9861
|
+
updated_at?: string | null;
|
|
9862
|
+
updated_by?: string | null;
|
|
9863
|
+
user_id?: string | null;
|
|
9864
|
+
version?: number;
|
|
9865
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9866
|
+
};
|
|
9867
|
+
Update: {
|
|
9868
|
+
created_at?: string;
|
|
9869
|
+
created_by?: string;
|
|
9870
|
+
custom_fields?: Json;
|
|
9871
|
+
deleted_at?: string | null;
|
|
9872
|
+
description?: string | null;
|
|
9873
|
+
id?: string;
|
|
9874
|
+
is_public?: boolean | null;
|
|
9875
|
+
list_name?: string | null;
|
|
9876
|
+
metadata?: Json;
|
|
9877
|
+
organization_id?: string | null;
|
|
9878
|
+
public_read?: boolean | null;
|
|
9879
|
+
published_to_web?: boolean;
|
|
9880
|
+
published_to_web_at?: string | null;
|
|
9881
|
+
published_to_web_by?: string | null;
|
|
9882
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9883
|
+
updated_at?: string | null;
|
|
9884
|
+
updated_by?: string | null;
|
|
9885
|
+
user_id?: string | null;
|
|
9886
|
+
version?: number;
|
|
9887
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
9888
|
+
};
|
|
9889
|
+
Relationships: [];
|
|
9890
|
+
};
|
|
9891
|
+
};
|
|
9892
|
+
Views: {
|
|
9893
|
+
[_ in never]: never;
|
|
9894
|
+
};
|
|
9895
|
+
Functions: {
|
|
9896
|
+
[_ in never]: never;
|
|
9897
|
+
};
|
|
9898
|
+
Enums: {
|
|
9899
|
+
[_ in never]: never;
|
|
9900
|
+
};
|
|
9901
|
+
CompositeTypes: {
|
|
9902
|
+
[_ in never]: never;
|
|
9903
|
+
};
|
|
9904
|
+
};
|
|
9059
9905
|
dictionary: {
|
|
9060
9906
|
Tables: {
|
|
9061
9907
|
dict_entries: {
|
|
@@ -32521,7 +33367,7 @@ export type ChatDatabase = {
|
|
|
32521
33367
|
} & "Could not choose the best candidate function between: public._edu_access_mode(p_scope => scopes), public._edu_access_mode(p_scope => _edu_class_row). Try renaming the parameters or the function itself in the database so function overloading can be resolved";
|
|
32522
33368
|
} | {
|
|
32523
33369
|
Args: {
|
|
32524
|
-
p_scope: Database["
|
|
33370
|
+
p_scope: Database["deprecated"]["Tables"]["scopes"]["Row"];
|
|
32525
33371
|
};
|
|
32526
33372
|
Returns: {
|
|
32527
33373
|
error: true;
|
|
@@ -32574,7 +33420,7 @@ export type ChatDatabase = {
|
|
|
32574
33420
|
} & "Could not choose the best candidate function between: public._edu_ensure_owner_membership(p_scope => scopes), public._edu_ensure_owner_membership(p_scope => _edu_class_row). Try renaming the parameters or the function itself in the database so function overloading can be resolved";
|
|
32575
33421
|
} | {
|
|
32576
33422
|
Args: {
|
|
32577
|
-
p_scope: Database["
|
|
33423
|
+
p_scope: Database["deprecated"]["Tables"]["scopes"]["Row"];
|
|
32578
33424
|
};
|
|
32579
33425
|
Returns: {
|
|
32580
33426
|
error: true;
|
|
@@ -32606,7 +33452,7 @@ export type ChatDatabase = {
|
|
|
32606
33452
|
} & "Could not choose the best candidate function between: public._edu_is_owner(p_scope => scopes), public._edu_is_owner(p_scope => _edu_class_row). Try renaming the parameters or the function itself in the database so function overloading can be resolved";
|
|
32607
33453
|
} | {
|
|
32608
33454
|
Args: {
|
|
32609
|
-
p_scope: Database["
|
|
33455
|
+
p_scope: Database["deprecated"]["Tables"]["scopes"]["Row"];
|
|
32610
33456
|
};
|
|
32611
33457
|
Returns: {
|
|
32612
33458
|
error: true;
|