@ai-matrx/chat 0.3.15 → 0.3.20
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 +53 -0
- package/dist/agents/components/agent-widgets/chat-assistant/CompactAssistantInput.js +1 -1
- package/dist/agents/components/inputs/AgentVariablesInline.js +1 -1
- package/dist/agents/components/inputs/smart-input/AgentTextarea.js +1 -1
- package/dist/agents/components/inputs/smart-input/InputActionButtons.js +1 -1
- package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPeek.js +6 -6
- package/dist/agents/components/run/AgentRunHeader.js +1 -2
- package/dist/agents/components/shared/AgentConversationColumn.js +1 -1
- package/dist/agents/components/shared/AgentHeader.js +1 -2
- package/dist/agents/components/shared/AgentHeaderMobile.js +1 -2
- package/dist/agents/components/working-document/DocumentLinkPicker.d.ts +1 -1
- package/dist/agents/components/working-document/WorkingDocumentPanel.js +1 -1
- package/dist/agents/components/working-document/documents-workspace/DocumentsListRail.js +2 -2
- package/dist/agents/components/working-document/documents-workspace/DocumentsWorkspace.js +2 -2
- package/dist/agents/hooks/useInstanceInputUndoRedo.d.ts +1 -1
- package/dist/agents/hooks/useInstanceInputUndoRedo.js +1 -1
- package/dist/agents/hooks/useWorkingDocument.js +11 -7
- package/dist/agents/model-registry/model-classes.d.ts +1 -43
- package/dist/agents/model-registry/model-classes.js +1 -40
- package/dist/agents/model-registry/parse.d.ts +1 -88
- package/dist/agents/model-registry/parse.js +1 -246
- package/dist/agents/redux/agent-definition/selectors.d.ts +8 -8
- package/dist/agents/redux/execution-system/instance-working-document/cx-working-document.service.d.ts +18 -16
- package/dist/agents/redux/execution-system/instance-working-document/cx-working-document.service.js +101 -52
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.slice.d.ts +2 -2
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.thunks.d.ts +1 -1
- package/dist/agents/redux/execution-system/instance-working-document/scratchpad.thunks.d.ts +1 -1
- package/dist/agents/utils/platform-keys.d.ts +15 -0
- package/dist/agents/utils/platform-keys.js +69 -0
- package/dist/cx-chat/components/user-input/ConversationInput.js +1 -1
- package/dist/cx-conversation/ConversationInput.js +1 -1
- package/dist/host/db-types.d.ts +1123 -1691
- package/dist/host/ui-slots.d.ts +47 -64
- package/dist/host/ui-slots.js +10 -52
- package/dist/public-chat/components/GuidedVariableInputs.js +1 -1
- package/dist/public-chat/components/PublicVariableInputs.js +1 -1
- package/dist/react.cjs +11 -23
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +11 -23
- package/dist/react.js.map +1 -1
- package/dist/surfaces/manifests/_conversation-document.manifest.js +1 -1
- package/dist/tool-call-visualization/registry/registry.js +13 -0
- package/dist/tool-call-visualization/result-fields/KeyValueGrid.d.ts +6 -0
- package/dist/tool-call-visualization/result-fields/KeyValueGrid.js +10 -2
- package/dist/ui/composer/useTouchOnlyDevice.js +1 -1
- package/dist/ui/skills-types.d.ts +1 -275
- package/dist/ui/skills-types.js +1 -0
- package/package.json +59 -33
- package/dist/agents/components/run/run-sidebar/AgentRunsSidebar.d.ts +0 -15
- package/dist/agents/components/run/run-sidebar/AgentRunsSidebar.js +0 -201
- package/dist/agents/components/run-controls/AgentExecutionTestModal.d.ts +0 -36
- package/dist/agents/components/run-controls/AgentExecutionTestModal.js +0 -440
- package/dist/agents/components/run-controls/AgentLauncherSidebarTester.d.ts +0 -6
- package/dist/agents/components/run-controls/AgentLauncherSidebarTester.js +0 -127
- package/dist/agents/components/run-controls/AgentWidgetInvokerTester.d.ts +0 -6
- package/dist/agents/components/run-controls/AgentWidgetInvokerTester.js +0 -84
- package/dist/agents/components/run-controls/CreatorRunPanel.d.ts +0 -22
- package/dist/agents/components/run-controls/CreatorRunPanel.js +0 -108
- package/dist/agents/components/run-controls/CreatorRunTabContent.d.ts +0 -30
- package/dist/agents/components/run-controls/CreatorRunTabContent.js +0 -319
- package/dist/agents/components/run-controls/PayloadTab.d.ts +0 -5
- package/dist/agents/components/run-controls/PayloadTab.js +0 -388
- package/dist/agents/components/run-controls/TesterSettingsPanel.d.ts +0 -71
- package/dist/agents/components/run-controls/TesterSettingsPanel.js +0 -470
- package/dist/agents/components/shared/AgentOptionsMenu.d.ts +0 -8
- package/dist/agents/components/shared/AgentOptionsMenu.js +0 -776
- package/dist/agents/components/shared/AgentPeekDuplicateButton.d.ts +0 -8
- package/dist/agents/components/shared/AgentPeekDuplicateButton.js +0 -66
- package/dist/agents/components/shared/AgentSaveStatus.d.ts +0 -7
- package/dist/agents/components/shared/AgentSaveStatus.js +0 -128
- package/dist/agents/components/shared/AgentSaveTapButton.d.ts +0 -18
- package/dist/agents/components/shared/AgentSaveTapButton.js +0 -105
- package/dist/agents/components/shared/useAgentSaveAction.d.ts +0 -33
- package/dist/agents/components/shared/useAgentSaveAction.js +0 -179
- package/dist/agents/components/shell/AgentsListHeader.d.ts +0 -1
- package/dist/agents/components/shell/AgentsListHeader.js +0 -69
- package/dist/agents/components/undo-history/AgentEditHistory.d.ts +0 -9
- package/dist/agents/components/undo-history/AgentEditHistory.js +0 -244
- package/dist/agents/components/unused/AgentSharedHeader.d.ts +0 -3
- package/dist/agents/components/unused/AgentSharedHeader.js +0 -134
- package/dist/agents/components/widgets/AgentWidgetsPage.d.ts +0 -11
- package/dist/agents/components/widgets/AgentWidgetsPage.js +0 -571
- package/dist/agents/components/widgets/WidgetVariableInputs.d.ts +0 -8
- package/dist/agents/components/widgets/WidgetVariableInputs.js +0 -80
- package/dist/agents/components/widgets/build-widget-launch.d.ts +0 -70
- package/dist/agents/components/widgets/build-widget-launch.js +0 -90
- package/dist/agents/hooks/useAgentAutoSave.d.ts +0 -1
- package/dist/agents/hooks/useAgentAutoSave.js +0 -127
- package/dist/agents/hooks/useAgentBuilderWriteHandlers.d.ts +0 -9
- package/dist/agents/hooks/useAgentBuilderWriteHandlers.js +0 -102
- package/dist/agents/hooks/useAgentDuplicateFlow.d.ts +0 -25
- package/dist/agents/hooks/useAgentDuplicateFlow.js +0 -133
- package/dist/agents/hooks/useAgentUndoRedo.d.ts +0 -31
- package/dist/agents/hooks/useAgentUndoRedo.js +0 -134
- package/dist/agents/hooks/useAgentUsages.d.ts +0 -17
- package/dist/agents/hooks/useAgentUsages.js +0 -36
- package/dist/agents/hooks/useDriftAlerts.d.ts +0 -11
- package/dist/agents/hooks/useDriftAlerts.js +0 -36
- package/dist/agents/hooks/useDriftReport.d.ts +0 -20
- package/dist/agents/hooks/useDriftReport.js +0 -34
- package/dist/agents/lifecycle/useAgentLifecycleActions.d.ts +0 -17
- package/dist/agents/lifecycle/useAgentLifecycleActions.js +0 -63
- package/dist/agents/message-flags/useMessageFlags.d.ts +0 -8
- package/dist/agents/message-flags/useMessageFlags.js +0 -68
- package/dist/agents/services/agent-definition-snapshot.service.d.ts +0 -15
- package/dist/agents/services/agent-definition-snapshot.service.js +0 -20
- package/dist/agents/surface-catalog-profile.d.ts +0 -96
- package/dist/agents/surface-catalog-profile.js +0 -79
- package/dist/cx-chat/hooks/useAgentBootstrap.d.ts +0 -1
- package/dist/cx-chat/hooks/useAgentBootstrap.js +0 -110
- package/dist/host/builder-door.d.ts +0 -61
- package/dist/host/builder-door.js +0 -25
- package/dist/next/lazy/CreatorRunPanel.d.ts +0 -1
- package/dist/next/lazy/CreatorRunPanel.js +0 -11
- package/dist/ui/composer/composerSubmit.d.ts +0 -50
- package/dist/ui/composer/composerSubmit.js +0 -32
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 (17): admin, agent, ai, canvas, chat, content, deprecated, dictionary, education, iam, mandate, platform, public, scheduler, tool, ui, users
|
|
10
10
|
*/
|
|
11
11
|
export type Json = unknown;
|
|
12
12
|
export type ChatDatabase = {
|
|
@@ -8016,551 +8016,1083 @@ export type ChatDatabase = {
|
|
|
8016
8016
|
[_ in never]: never;
|
|
8017
8017
|
};
|
|
8018
8018
|
};
|
|
8019
|
-
|
|
8019
|
+
content: {
|
|
8020
8020
|
Tables: {
|
|
8021
|
-
|
|
8022
|
-
Row: {
|
|
8023
|
-
accessed_at: string;
|
|
8024
|
-
agent_id: string | null;
|
|
8025
|
-
app_source: string | null;
|
|
8026
|
-
char_count_served: number | null;
|
|
8027
|
-
context_item_id: string;
|
|
8028
|
-
created_at: string;
|
|
8029
|
-
fetch_reason: string | null;
|
|
8030
|
-
id: string;
|
|
8031
|
-
latency_ms: number | null;
|
|
8032
|
-
metadata: Json;
|
|
8033
|
-
organization_id: string;
|
|
8034
|
-
request_id: string | null;
|
|
8035
|
-
user_id: string | null;
|
|
8036
|
-
value_id: string | null;
|
|
8037
|
-
value_version: number | null;
|
|
8038
|
-
was_useful: boolean | null;
|
|
8039
|
-
};
|
|
8040
|
-
Insert: {
|
|
8041
|
-
accessed_at?: string;
|
|
8042
|
-
agent_id?: string | null;
|
|
8043
|
-
app_source?: string | null;
|
|
8044
|
-
char_count_served?: number | null;
|
|
8045
|
-
context_item_id: string;
|
|
8046
|
-
created_at?: string;
|
|
8047
|
-
fetch_reason?: string | null;
|
|
8048
|
-
id?: string;
|
|
8049
|
-
latency_ms?: number | null;
|
|
8050
|
-
metadata?: Json;
|
|
8051
|
-
organization_id: string;
|
|
8052
|
-
request_id?: string | null;
|
|
8053
|
-
user_id?: string | null;
|
|
8054
|
-
value_id?: string | null;
|
|
8055
|
-
value_version?: number | null;
|
|
8056
|
-
was_useful?: boolean | null;
|
|
8057
|
-
};
|
|
8058
|
-
Update: {
|
|
8059
|
-
accessed_at?: string;
|
|
8060
|
-
agent_id?: string | null;
|
|
8061
|
-
app_source?: string | null;
|
|
8062
|
-
char_count_served?: number | null;
|
|
8063
|
-
context_item_id?: string;
|
|
8064
|
-
created_at?: string;
|
|
8065
|
-
fetch_reason?: string | null;
|
|
8066
|
-
id?: string;
|
|
8067
|
-
latency_ms?: number | null;
|
|
8068
|
-
metadata?: Json;
|
|
8069
|
-
organization_id?: string;
|
|
8070
|
-
request_id?: string | null;
|
|
8071
|
-
user_id?: string | null;
|
|
8072
|
-
value_id?: string | null;
|
|
8073
|
-
value_version?: number | null;
|
|
8074
|
-
was_useful?: boolean | null;
|
|
8075
|
-
};
|
|
8076
|
-
Relationships: [];
|
|
8077
|
-
};
|
|
8078
|
-
scope_door_registry: {
|
|
8079
|
-
Row: {
|
|
8080
|
-
door_class: string;
|
|
8081
|
-
function_name: string;
|
|
8082
|
-
reason: string;
|
|
8083
|
-
reviewed_at: string;
|
|
8084
|
-
};
|
|
8085
|
-
Insert: {
|
|
8086
|
-
door_class: string;
|
|
8087
|
-
function_name: string;
|
|
8088
|
-
reason: string;
|
|
8089
|
-
reviewed_at?: string;
|
|
8090
|
-
};
|
|
8091
|
-
Update: {
|
|
8092
|
-
door_class?: string;
|
|
8093
|
-
function_name?: string;
|
|
8094
|
-
reason?: string;
|
|
8095
|
-
reviewed_at?: string;
|
|
8096
|
-
};
|
|
8097
|
-
Relationships: [];
|
|
8098
|
-
};
|
|
8099
|
-
system_context_item: {
|
|
8021
|
+
document: {
|
|
8100
8022
|
Row: {
|
|
8023
|
+
archived_at: string | null;
|
|
8024
|
+
body: string;
|
|
8025
|
+
char_count: number;
|
|
8026
|
+
content_hash: string;
|
|
8027
|
+
content_version: number;
|
|
8101
8028
|
created_at: string;
|
|
8102
8029
|
created_by: string | null;
|
|
8030
|
+
custom_fields: Json;
|
|
8031
|
+
data_class: Database["platform"]["Enums"]["data_class"];
|
|
8103
8032
|
deleted_at: string | null;
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
feed_type: Database["public"]["Enums"]["context_feed_type"];
|
|
8033
|
+
document_type_id: string;
|
|
8034
|
+
file_path: string | null;
|
|
8035
|
+
folder_id: string | null;
|
|
8036
|
+
format: string;
|
|
8037
|
+
icon: string | null;
|
|
8110
8038
|
id: string;
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
last_fed_at: string | null;
|
|
8039
|
+
last_conversation_id: string | null;
|
|
8040
|
+
last_device_id: string | null;
|
|
8041
|
+
last_origin: string;
|
|
8115
8042
|
metadata: Json;
|
|
8116
8043
|
organization_id: string;
|
|
8044
|
+
payload_hash: string | null;
|
|
8045
|
+
preview: string;
|
|
8046
|
+
published_at: string | null;
|
|
8047
|
+
published_content_version: number | null;
|
|
8117
8048
|
published_to_web: boolean;
|
|
8118
8049
|
published_to_web_at: string | null;
|
|
8119
8050
|
published_to_web_by: string | null;
|
|
8120
|
-
|
|
8051
|
+
sealed_at: string | null;
|
|
8052
|
+
search_engine_indexed: boolean | null;
|
|
8121
8053
|
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8122
|
-
|
|
8054
|
+
slug: string | null;
|
|
8055
|
+
source_hash: string | null;
|
|
8056
|
+
source_uri: string | null;
|
|
8057
|
+
summary: string | null;
|
|
8058
|
+
title: string;
|
|
8123
8059
|
updated_at: string;
|
|
8124
8060
|
updated_by: string | null;
|
|
8125
|
-
value: Json | null;
|
|
8126
|
-
value_type: Database["public"]["Enums"]["context_value_type"];
|
|
8127
8061
|
version: number;
|
|
8128
8062
|
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8063
|
+
web_allow_duplicate: boolean;
|
|
8064
|
+
web_include_sub_pages: boolean;
|
|
8065
|
+
word_count: number;
|
|
8129
8066
|
};
|
|
8130
8067
|
Insert: {
|
|
8068
|
+
archived_at?: string | null;
|
|
8069
|
+
body?: string;
|
|
8070
|
+
char_count?: number;
|
|
8071
|
+
content_hash: string;
|
|
8072
|
+
content_version?: number;
|
|
8131
8073
|
created_at?: string;
|
|
8132
8074
|
created_by?: string | null;
|
|
8075
|
+
custom_fields?: Json;
|
|
8076
|
+
data_class: Database["platform"]["Enums"]["data_class"];
|
|
8133
8077
|
deleted_at?: string | null;
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
feed_type?: Database["public"]["Enums"]["context_feed_type"];
|
|
8078
|
+
document_type_id: string;
|
|
8079
|
+
file_path?: string | null;
|
|
8080
|
+
folder_id?: string | null;
|
|
8081
|
+
format?: string;
|
|
8082
|
+
icon?: string | null;
|
|
8140
8083
|
id?: string;
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
last_fed_at?: string | null;
|
|
8084
|
+
last_conversation_id?: string | null;
|
|
8085
|
+
last_device_id?: string | null;
|
|
8086
|
+
last_origin?: string;
|
|
8145
8087
|
metadata?: Json;
|
|
8146
8088
|
organization_id: string;
|
|
8089
|
+
payload_hash?: string | null;
|
|
8090
|
+
preview?: string;
|
|
8091
|
+
published_at?: string | null;
|
|
8092
|
+
published_content_version?: number | null;
|
|
8147
8093
|
published_to_web?: boolean;
|
|
8148
8094
|
published_to_web_at?: string | null;
|
|
8149
8095
|
published_to_web_by?: string | null;
|
|
8150
|
-
|
|
8096
|
+
sealed_at?: string | null;
|
|
8097
|
+
search_engine_indexed?: boolean | null;
|
|
8151
8098
|
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8152
|
-
|
|
8099
|
+
slug?: string | null;
|
|
8100
|
+
source_hash?: string | null;
|
|
8101
|
+
source_uri?: string | null;
|
|
8102
|
+
summary?: string | null;
|
|
8103
|
+
title?: string;
|
|
8153
8104
|
updated_at?: string;
|
|
8154
8105
|
updated_by?: string | null;
|
|
8155
|
-
value?: Json | null;
|
|
8156
|
-
value_type?: Database["public"]["Enums"]["context_value_type"];
|
|
8157
8106
|
version?: number;
|
|
8158
|
-
visibility
|
|
8107
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8108
|
+
web_allow_duplicate?: boolean;
|
|
8109
|
+
web_include_sub_pages?: boolean;
|
|
8110
|
+
word_count?: number;
|
|
8159
8111
|
};
|
|
8160
8112
|
Update: {
|
|
8113
|
+
archived_at?: string | null;
|
|
8114
|
+
body?: string;
|
|
8115
|
+
char_count?: number;
|
|
8116
|
+
content_hash?: string;
|
|
8117
|
+
content_version?: number;
|
|
8161
8118
|
created_at?: string;
|
|
8162
8119
|
created_by?: string | null;
|
|
8120
|
+
custom_fields?: Json;
|
|
8121
|
+
data_class?: Database["platform"]["Enums"]["data_class"];
|
|
8163
8122
|
deleted_at?: string | null;
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
feed_type?: Database["public"]["Enums"]["context_feed_type"];
|
|
8123
|
+
document_type_id?: string;
|
|
8124
|
+
file_path?: string | null;
|
|
8125
|
+
folder_id?: string | null;
|
|
8126
|
+
format?: string;
|
|
8127
|
+
icon?: string | null;
|
|
8170
8128
|
id?: string;
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
last_fed_at?: string | null;
|
|
8129
|
+
last_conversation_id?: string | null;
|
|
8130
|
+
last_device_id?: string | null;
|
|
8131
|
+
last_origin?: string;
|
|
8175
8132
|
metadata?: Json;
|
|
8176
8133
|
organization_id?: string;
|
|
8134
|
+
payload_hash?: string | null;
|
|
8135
|
+
preview?: string;
|
|
8136
|
+
published_at?: string | null;
|
|
8137
|
+
published_content_version?: number | null;
|
|
8177
8138
|
published_to_web?: boolean;
|
|
8178
8139
|
published_to_web_at?: string | null;
|
|
8179
8140
|
published_to_web_by?: string | null;
|
|
8180
|
-
|
|
8141
|
+
sealed_at?: string | null;
|
|
8142
|
+
search_engine_indexed?: boolean | null;
|
|
8181
8143
|
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8182
|
-
|
|
8144
|
+
slug?: string | null;
|
|
8145
|
+
source_hash?: string | null;
|
|
8146
|
+
source_uri?: string | null;
|
|
8147
|
+
summary?: string | null;
|
|
8148
|
+
title?: string;
|
|
8183
8149
|
updated_at?: string;
|
|
8184
8150
|
updated_by?: string | null;
|
|
8185
|
-
value?: Json | null;
|
|
8186
|
-
value_type?: Database["public"]["Enums"]["context_value_type"];
|
|
8187
8151
|
version?: number;
|
|
8188
8152
|
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
template_context_items: {
|
|
8193
|
-
Row: {
|
|
8194
|
-
created_at: string;
|
|
8195
|
-
deleted_at: string | null;
|
|
8196
|
-
description: string;
|
|
8197
|
-
display_name: string;
|
|
8198
|
-
id: string;
|
|
8199
|
-
key: string;
|
|
8200
|
-
metadata: Json;
|
|
8201
|
-
sort_order: number;
|
|
8202
|
-
template_scope_type_id: string;
|
|
8203
|
-
value_type: Database["public"]["Enums"]["context_value_type"];
|
|
8204
|
-
};
|
|
8205
|
-
Insert: {
|
|
8206
|
-
created_at?: string;
|
|
8207
|
-
deleted_at?: string | null;
|
|
8208
|
-
description?: string;
|
|
8209
|
-
display_name: string;
|
|
8210
|
-
id?: string;
|
|
8211
|
-
key: string;
|
|
8212
|
-
metadata?: Json;
|
|
8213
|
-
sort_order?: number;
|
|
8214
|
-
template_scope_type_id: string;
|
|
8215
|
-
value_type?: Database["public"]["Enums"]["context_value_type"];
|
|
8216
|
-
};
|
|
8217
|
-
Update: {
|
|
8218
|
-
created_at?: string;
|
|
8219
|
-
deleted_at?: string | null;
|
|
8220
|
-
description?: string;
|
|
8221
|
-
display_name?: string;
|
|
8222
|
-
id?: string;
|
|
8223
|
-
key?: string;
|
|
8224
|
-
metadata?: Json;
|
|
8225
|
-
sort_order?: number;
|
|
8226
|
-
template_scope_type_id?: string;
|
|
8227
|
-
value_type?: Database["public"]["Enums"]["context_value_type"];
|
|
8153
|
+
web_allow_duplicate?: boolean;
|
|
8154
|
+
web_include_sub_pages?: boolean;
|
|
8155
|
+
word_count?: number;
|
|
8228
8156
|
};
|
|
8229
8157
|
Relationships: [
|
|
8230
8158
|
{
|
|
8231
|
-
foreignKeyName: "
|
|
8232
|
-
columns: ["
|
|
8159
|
+
foreignKeyName: "document_published_fk";
|
|
8160
|
+
columns: ["id", "published_content_version"];
|
|
8233
8161
|
isOneToOne: false;
|
|
8234
|
-
referencedRelation: "
|
|
8235
|
-
referencedColumns: ["
|
|
8162
|
+
referencedRelation: "document_version";
|
|
8163
|
+
referencedColumns: ["document_id", "content_version"];
|
|
8236
8164
|
}
|
|
8237
8165
|
];
|
|
8238
8166
|
};
|
|
8239
|
-
|
|
8167
|
+
document_version: {
|
|
8240
8168
|
Row: {
|
|
8169
|
+
actor_id: string | null;
|
|
8170
|
+
actor_tier: string | null;
|
|
8171
|
+
archived_at_capture: string | null;
|
|
8172
|
+
body: string | null;
|
|
8173
|
+
body_content_version: number;
|
|
8174
|
+
change_kind: string;
|
|
8175
|
+
content_hash: string;
|
|
8176
|
+
content_version: number;
|
|
8177
|
+
conversation_id: string | null;
|
|
8241
8178
|
created_at: string;
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8179
|
+
created_by: string | null;
|
|
8180
|
+
custom_fields: Json;
|
|
8181
|
+
data_class_at_capture: Database["platform"]["Enums"]["data_class"];
|
|
8182
|
+
deleted_at_capture: string | null;
|
|
8183
|
+
device_id: string | null;
|
|
8184
|
+
document_id: string;
|
|
8185
|
+
document_type_id: string;
|
|
8186
|
+
folder_id_at_capture: string | null;
|
|
8187
|
+
format: string;
|
|
8245
8188
|
id: string;
|
|
8246
|
-
|
|
8247
|
-
label_plural: string;
|
|
8248
|
-
label_singular: string;
|
|
8249
|
-
max_assignments_per_entity: number | null;
|
|
8189
|
+
label: string | null;
|
|
8250
8190
|
metadata: Json;
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8191
|
+
note: string | null;
|
|
8192
|
+
organization_id: string;
|
|
8193
|
+
origin: string;
|
|
8194
|
+
payload_hash: string | null;
|
|
8195
|
+
sealed_at_capture: string | null;
|
|
8196
|
+
source_ref: string | null;
|
|
8197
|
+
summary: string | null;
|
|
8198
|
+
title: string;
|
|
8199
|
+
updated_at: string;
|
|
8200
|
+
updated_by: string | null;
|
|
8201
|
+
version: number;
|
|
8202
|
+
visibility_at_capture: Database["platform"]["Enums"]["visibility"];
|
|
8254
8203
|
};
|
|
8255
8204
|
Insert: {
|
|
8205
|
+
actor_id?: string | null;
|
|
8206
|
+
actor_tier?: string | null;
|
|
8207
|
+
archived_at_capture?: string | null;
|
|
8208
|
+
body?: string | null;
|
|
8209
|
+
body_content_version: number;
|
|
8210
|
+
change_kind: string;
|
|
8211
|
+
content_hash: string;
|
|
8212
|
+
content_version: number;
|
|
8213
|
+
conversation_id?: string | null;
|
|
8256
8214
|
created_at?: string;
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8215
|
+
created_by?: string | null;
|
|
8216
|
+
custom_fields?: Json;
|
|
8217
|
+
data_class_at_capture: Database["platform"]["Enums"]["data_class"];
|
|
8218
|
+
deleted_at_capture?: string | null;
|
|
8219
|
+
device_id?: string | null;
|
|
8220
|
+
document_id: string;
|
|
8221
|
+
document_type_id: string;
|
|
8222
|
+
folder_id_at_capture?: string | null;
|
|
8223
|
+
format: string;
|
|
8260
8224
|
id?: string;
|
|
8261
|
-
|
|
8262
|
-
label_plural: string;
|
|
8263
|
-
label_singular: string;
|
|
8264
|
-
max_assignments_per_entity?: number | null;
|
|
8225
|
+
label?: string | null;
|
|
8265
8226
|
metadata?: Json;
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8227
|
+
note?: string | null;
|
|
8228
|
+
organization_id: string;
|
|
8229
|
+
origin: string;
|
|
8230
|
+
payload_hash?: string | null;
|
|
8231
|
+
sealed_at_capture?: string | null;
|
|
8232
|
+
source_ref?: string | null;
|
|
8233
|
+
summary?: string | null;
|
|
8234
|
+
title: string;
|
|
8235
|
+
updated_at?: string;
|
|
8236
|
+
updated_by?: string | null;
|
|
8237
|
+
version?: number;
|
|
8238
|
+
visibility_at_capture: Database["platform"]["Enums"]["visibility"];
|
|
8269
8239
|
};
|
|
8270
8240
|
Update: {
|
|
8241
|
+
actor_id?: string | null;
|
|
8242
|
+
actor_tier?: string | null;
|
|
8243
|
+
archived_at_capture?: string | null;
|
|
8244
|
+
body?: string | null;
|
|
8245
|
+
body_content_version?: number;
|
|
8246
|
+
change_kind?: string;
|
|
8247
|
+
content_hash?: string;
|
|
8248
|
+
content_version?: number;
|
|
8249
|
+
conversation_id?: string | null;
|
|
8271
8250
|
created_at?: string;
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8251
|
+
created_by?: string | null;
|
|
8252
|
+
custom_fields?: Json;
|
|
8253
|
+
data_class_at_capture?: Database["platform"]["Enums"]["data_class"];
|
|
8254
|
+
deleted_at_capture?: string | null;
|
|
8255
|
+
device_id?: string | null;
|
|
8256
|
+
document_id?: string;
|
|
8257
|
+
document_type_id?: string;
|
|
8258
|
+
folder_id_at_capture?: string | null;
|
|
8259
|
+
format?: string;
|
|
8275
8260
|
id?: string;
|
|
8276
|
-
|
|
8277
|
-
label_plural?: string;
|
|
8278
|
-
label_singular?: string;
|
|
8279
|
-
max_assignments_per_entity?: number | null;
|
|
8261
|
+
label?: string | null;
|
|
8280
8262
|
metadata?: Json;
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8263
|
+
note?: string | null;
|
|
8264
|
+
organization_id?: string;
|
|
8265
|
+
origin?: string;
|
|
8266
|
+
payload_hash?: string | null;
|
|
8267
|
+
sealed_at_capture?: string | null;
|
|
8268
|
+
source_ref?: string | null;
|
|
8269
|
+
summary?: string | null;
|
|
8270
|
+
title?: string;
|
|
8271
|
+
updated_at?: string;
|
|
8272
|
+
updated_by?: string | null;
|
|
8273
|
+
version?: number;
|
|
8274
|
+
visibility_at_capture?: Database["platform"]["Enums"]["visibility"];
|
|
8284
8275
|
};
|
|
8285
8276
|
Relationships: [
|
|
8286
8277
|
{
|
|
8287
|
-
foreignKeyName: "
|
|
8288
|
-
columns: ["
|
|
8289
|
-
isOneToOne: false;
|
|
8290
|
-
referencedRelation: "template_scope_types";
|
|
8291
|
-
referencedColumns: ["id"];
|
|
8292
|
-
},
|
|
8293
|
-
{
|
|
8294
|
-
foreignKeyName: "ctx_template_scope_types_template_id_fkey";
|
|
8295
|
-
columns: ["template_id"];
|
|
8278
|
+
foreignKeyName: "document_version_document_id_fkey";
|
|
8279
|
+
columns: ["document_id"];
|
|
8296
8280
|
isOneToOne: false;
|
|
8297
|
-
referencedRelation: "
|
|
8281
|
+
referencedRelation: "document";
|
|
8298
8282
|
referencedColumns: ["id"];
|
|
8299
8283
|
}
|
|
8300
8284
|
];
|
|
8301
8285
|
};
|
|
8302
|
-
|
|
8286
|
+
space_payload: {
|
|
8303
8287
|
Row: {
|
|
8304
|
-
|
|
8305
|
-
category: string;
|
|
8288
|
+
content_version: number;
|
|
8306
8289
|
created_at: string;
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
icon: string;
|
|
8290
|
+
created_by: string | null;
|
|
8291
|
+
document_id: string;
|
|
8310
8292
|
id: string;
|
|
8311
|
-
is_active: boolean;
|
|
8312
|
-
key: string;
|
|
8313
8293
|
metadata: Json;
|
|
8314
|
-
|
|
8315
|
-
|
|
8294
|
+
organization_id: string;
|
|
8295
|
+
snapshot: Json;
|
|
8316
8296
|
updated_at: string;
|
|
8297
|
+
updated_by: string | null;
|
|
8298
|
+
version: number;
|
|
8317
8299
|
};
|
|
8318
8300
|
Insert: {
|
|
8319
|
-
|
|
8320
|
-
category: string;
|
|
8301
|
+
content_version: number;
|
|
8321
8302
|
created_at?: string;
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
icon?: string;
|
|
8303
|
+
created_by?: string | null;
|
|
8304
|
+
document_id: string;
|
|
8325
8305
|
id?: string;
|
|
8326
|
-
is_active?: boolean;
|
|
8327
|
-
key: string;
|
|
8328
8306
|
metadata?: Json;
|
|
8329
|
-
|
|
8330
|
-
|
|
8307
|
+
organization_id: string;
|
|
8308
|
+
snapshot: Json;
|
|
8331
8309
|
updated_at?: string;
|
|
8310
|
+
updated_by?: string | null;
|
|
8311
|
+
version?: number;
|
|
8332
8312
|
};
|
|
8333
8313
|
Update: {
|
|
8334
|
-
|
|
8335
|
-
category?: string;
|
|
8314
|
+
content_version?: number;
|
|
8336
8315
|
created_at?: string;
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
icon?: string;
|
|
8316
|
+
created_by?: string | null;
|
|
8317
|
+
document_id?: string;
|
|
8340
8318
|
id?: string;
|
|
8341
|
-
is_active?: boolean;
|
|
8342
|
-
key?: string;
|
|
8343
8319
|
metadata?: Json;
|
|
8344
|
-
|
|
8345
|
-
|
|
8320
|
+
organization_id?: string;
|
|
8321
|
+
snapshot?: Json;
|
|
8346
8322
|
updated_at?: string;
|
|
8323
|
+
updated_by?: string | null;
|
|
8324
|
+
version?: number;
|
|
8347
8325
|
};
|
|
8348
|
-
Relationships: [
|
|
8326
|
+
Relationships: [
|
|
8327
|
+
{
|
|
8328
|
+
foreignKeyName: "space_payload_document_id_fkey";
|
|
8329
|
+
columns: ["document_id"];
|
|
8330
|
+
isOneToOne: false;
|
|
8331
|
+
referencedRelation: "document";
|
|
8332
|
+
referencedColumns: ["id"];
|
|
8333
|
+
}
|
|
8334
|
+
];
|
|
8349
8335
|
};
|
|
8350
|
-
|
|
8336
|
+
univer_payload: {
|
|
8351
8337
|
Row: {
|
|
8352
|
-
|
|
8353
|
-
active_entity_type: string | null;
|
|
8354
|
-
app_source: string;
|
|
8338
|
+
content_version: number;
|
|
8355
8339
|
created_at: string;
|
|
8356
8340
|
created_by: string | null;
|
|
8357
8341
|
custom_fields: Json;
|
|
8342
|
+
document_id: string;
|
|
8358
8343
|
id: string;
|
|
8359
|
-
last_activity: string;
|
|
8360
8344
|
metadata: Json;
|
|
8361
8345
|
organization_id: string;
|
|
8362
|
-
|
|
8363
|
-
task_id: string | null;
|
|
8346
|
+
snapshot: Json;
|
|
8364
8347
|
updated_at: string;
|
|
8365
8348
|
updated_by: string | null;
|
|
8366
|
-
user_id: string;
|
|
8367
8349
|
version: number;
|
|
8368
8350
|
};
|
|
8369
8351
|
Insert: {
|
|
8370
|
-
|
|
8371
|
-
active_entity_type?: string | null;
|
|
8372
|
-
app_source?: string;
|
|
8352
|
+
content_version: number;
|
|
8373
8353
|
created_at?: string;
|
|
8374
8354
|
created_by?: string | null;
|
|
8375
8355
|
custom_fields?: Json;
|
|
8356
|
+
document_id: string;
|
|
8376
8357
|
id?: string;
|
|
8377
|
-
last_activity?: string;
|
|
8378
8358
|
metadata?: Json;
|
|
8379
8359
|
organization_id: string;
|
|
8380
|
-
|
|
8381
|
-
task_id?: string | null;
|
|
8360
|
+
snapshot: Json;
|
|
8382
8361
|
updated_at?: string;
|
|
8383
8362
|
updated_by?: string | null;
|
|
8384
|
-
user_id: string;
|
|
8385
8363
|
version?: number;
|
|
8386
8364
|
};
|
|
8387
8365
|
Update: {
|
|
8388
|
-
|
|
8389
|
-
active_entity_type?: string | null;
|
|
8390
|
-
app_source?: string;
|
|
8366
|
+
content_version?: number;
|
|
8391
8367
|
created_at?: string;
|
|
8392
8368
|
created_by?: string | null;
|
|
8393
8369
|
custom_fields?: Json;
|
|
8370
|
+
document_id?: string;
|
|
8394
8371
|
id?: string;
|
|
8395
|
-
last_activity?: string;
|
|
8396
8372
|
metadata?: Json;
|
|
8397
8373
|
organization_id?: string;
|
|
8398
|
-
|
|
8399
|
-
task_id?: string | null;
|
|
8374
|
+
snapshot?: Json;
|
|
8400
8375
|
updated_at?: string;
|
|
8401
8376
|
updated_by?: string | null;
|
|
8402
|
-
user_id?: string;
|
|
8403
8377
|
version?: number;
|
|
8404
8378
|
};
|
|
8405
|
-
Relationships: [
|
|
8379
|
+
Relationships: [
|
|
8380
|
+
{
|
|
8381
|
+
foreignKeyName: "univer_payload_document_id_fkey";
|
|
8382
|
+
columns: ["document_id"];
|
|
8383
|
+
isOneToOne: false;
|
|
8384
|
+
referencedRelation: "document";
|
|
8385
|
+
referencedColumns: ["id"];
|
|
8386
|
+
}
|
|
8387
|
+
];
|
|
8406
8388
|
};
|
|
8407
8389
|
};
|
|
8408
8390
|
Views: {
|
|
8409
8391
|
[_ in never]: never;
|
|
8410
8392
|
};
|
|
8411
8393
|
Functions: {
|
|
8412
|
-
|
|
8394
|
+
_capture_bypassed: {
|
|
8395
|
+
Args: never;
|
|
8396
|
+
Returns: boolean;
|
|
8397
|
+
};
|
|
8398
|
+
_search_args_ok: {
|
|
8413
8399
|
Args: {
|
|
8414
|
-
|
|
8415
|
-
|
|
8400
|
+
p_archive: string;
|
|
8401
|
+
p_organization_id: string;
|
|
8402
|
+
p_scope: string;
|
|
8403
|
+
};
|
|
8404
|
+
Returns: boolean;
|
|
8405
|
+
};
|
|
8406
|
+
_space_derive_edges: {
|
|
8407
|
+
Args: {
|
|
8408
|
+
p_actor: string;
|
|
8409
|
+
p_document_id: string;
|
|
8410
|
+
p_organization_id: string;
|
|
8411
|
+
p_snapshot: Json;
|
|
8416
8412
|
};
|
|
8417
8413
|
Returns: undefined;
|
|
8418
8414
|
};
|
|
8419
|
-
|
|
8420
|
-
Args:
|
|
8421
|
-
|
|
8415
|
+
_space_mention_notify: {
|
|
8416
|
+
Args: {
|
|
8417
|
+
p_actor: string;
|
|
8418
|
+
p_document_id: string;
|
|
8419
|
+
p_organization_id: string;
|
|
8420
|
+
p_prev: Json;
|
|
8421
|
+
p_snapshot: Json;
|
|
8422
|
+
};
|
|
8423
|
+
Returns: undefined;
|
|
8422
8424
|
};
|
|
8423
|
-
|
|
8425
|
+
_space_on_web: {
|
|
8424
8426
|
Args: {
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
+
d: Database["content"]["Tables"]["document"]["Row"];
|
|
8428
|
+
};
|
|
8429
|
+
Returns: boolean;
|
|
8430
|
+
};
|
|
8431
|
+
_space_projection: {
|
|
8432
|
+
Args: {
|
|
8433
|
+
p_snapshot: Json;
|
|
8434
|
+
p_title: string;
|
|
8427
8435
|
};
|
|
8428
8436
|
Returns: string;
|
|
8429
8437
|
};
|
|
8430
|
-
|
|
8438
|
+
_space_public_databases: {
|
|
8431
8439
|
Args: {
|
|
8432
|
-
|
|
8433
|
-
|
|
8440
|
+
p_doc: Database["content"]["Tables"]["document"]["Row"];
|
|
8441
|
+
p_snap: Json;
|
|
8434
8442
|
};
|
|
8435
|
-
Returns:
|
|
8443
|
+
Returns: Json;
|
|
8436
8444
|
};
|
|
8437
|
-
|
|
8445
|
+
_space_public_entities: {
|
|
8438
8446
|
Args: {
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8447
|
+
p_doc: Database["content"]["Tables"]["document"]["Row"];
|
|
8448
|
+
p_snap: Json;
|
|
8449
|
+
};
|
|
8450
|
+
Returns: Json;
|
|
8451
|
+
};
|
|
8452
|
+
_space_public_media: {
|
|
8453
|
+
Args: {
|
|
8454
|
+
p_blob: Json;
|
|
8455
|
+
};
|
|
8456
|
+
Returns: Json;
|
|
8457
|
+
};
|
|
8458
|
+
_space_tree_ids: {
|
|
8459
|
+
Args: {
|
|
8460
|
+
p_space_id: string;
|
|
8461
|
+
};
|
|
8462
|
+
Returns: string[];
|
|
8463
|
+
};
|
|
8464
|
+
_write_came_through: {
|
|
8465
|
+
Args: {
|
|
8466
|
+
p_doors: string[];
|
|
8442
8467
|
};
|
|
8443
8468
|
Returns: boolean;
|
|
8444
8469
|
};
|
|
8445
|
-
|
|
8470
|
+
annotation_create: {
|
|
8446
8471
|
Args: {
|
|
8447
|
-
|
|
8472
|
+
p_anchor?: Json;
|
|
8473
|
+
p_body?: string;
|
|
8474
|
+
p_color?: string;
|
|
8475
|
+
p_id: string;
|
|
8476
|
+
p_organization_id: string;
|
|
8477
|
+
p_source_id: string;
|
|
8478
|
+
p_source_type: string;
|
|
8479
|
+
p_title?: string;
|
|
8448
8480
|
};
|
|
8449
|
-
Returns:
|
|
8481
|
+
Returns: {
|
|
8482
|
+
created: boolean;
|
|
8483
|
+
document_id: string;
|
|
8484
|
+
edge_id: string;
|
|
8485
|
+
}[];
|
|
8450
8486
|
};
|
|
8451
|
-
|
|
8452
|
-
Args:
|
|
8487
|
+
document_get: {
|
|
8488
|
+
Args: {
|
|
8489
|
+
p_document_id: string;
|
|
8490
|
+
p_include_body?: boolean;
|
|
8491
|
+
};
|
|
8453
8492
|
Returns: {
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8493
|
+
archived_at: string;
|
|
8494
|
+
body: string;
|
|
8495
|
+
body_omitted: boolean;
|
|
8496
|
+
char_count: number;
|
|
8497
|
+
content_hash: string;
|
|
8498
|
+
content_version: number;
|
|
8499
|
+
created_by: string;
|
|
8500
|
+
data_class: Database["platform"]["Enums"]["data_class"];
|
|
8501
|
+
folder_id: string;
|
|
8502
|
+
format: string;
|
|
8503
|
+
icon: string;
|
|
8463
8504
|
id: string;
|
|
8464
|
-
is_active: boolean;
|
|
8465
|
-
item_class: string;
|
|
8466
|
-
key: string;
|
|
8467
|
-
last_fed_at: string | null;
|
|
8468
|
-
metadata: Json;
|
|
8469
8505
|
organization_id: string;
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8506
|
+
preview: string;
|
|
8507
|
+
published_content_version: number;
|
|
8508
|
+
sealed_at: string;
|
|
8509
|
+
summary: string;
|
|
8510
|
+
title: string;
|
|
8511
|
+
type_slug: string;
|
|
8476
8512
|
updated_at: string;
|
|
8477
|
-
updated_by: string | null;
|
|
8478
|
-
value: Json | null;
|
|
8479
|
-
value_type: Database["public"]["Enums"]["context_value_type"];
|
|
8480
8513
|
version: number;
|
|
8481
8514
|
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8515
|
+
word_count: number;
|
|
8482
8516
|
}[];
|
|
8483
|
-
SetofOptions: {
|
|
8484
|
-
from: "*";
|
|
8485
|
-
to: "system_context_item";
|
|
8486
|
-
isOneToOne: false;
|
|
8487
|
-
isSetofReturn: true;
|
|
8488
|
-
};
|
|
8489
8517
|
};
|
|
8490
|
-
|
|
8518
|
+
document_origin: {
|
|
8491
8519
|
Args: {
|
|
8492
|
-
|
|
8520
|
+
p_document_id: string;
|
|
8493
8521
|
};
|
|
8494
8522
|
Returns: {
|
|
8495
|
-
created_at: string;
|
|
8496
|
-
created_by: string | null;
|
|
8497
|
-
deleted_at: string | null;
|
|
8498
|
-
description: string | null;
|
|
8499
|
-
display_name: string;
|
|
8500
|
-
feed_config: Json;
|
|
8501
|
-
feed_error: string | null;
|
|
8502
|
-
feed_status: string | null;
|
|
8503
|
-
feed_type: Database["public"]["Enums"]["context_feed_type"];
|
|
8504
|
-
id: string;
|
|
8505
|
-
is_active: boolean;
|
|
8506
|
-
item_class: string;
|
|
8507
|
-
key: string;
|
|
8508
|
-
last_fed_at: string | null;
|
|
8509
|
-
metadata: Json;
|
|
8510
8523
|
organization_id: string;
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
sensitivity: Database["public"]["Enums"]["context_sensitivity"];
|
|
8515
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8516
|
-
sort_order: number;
|
|
8517
|
-
updated_at: string;
|
|
8518
|
-
updated_by: string | null;
|
|
8519
|
-
value: Json | null;
|
|
8520
|
-
value_type: Database["public"]["Enums"]["context_value_type"];
|
|
8521
|
-
version: number;
|
|
8522
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8524
|
+
organization_name: string;
|
|
8525
|
+
owner_id: string;
|
|
8526
|
+
owner_name: string;
|
|
8523
8527
|
}[];
|
|
8524
|
-
SetofOptions: {
|
|
8525
|
-
from: "*";
|
|
8526
|
-
to: "system_context_item";
|
|
8527
|
-
isOneToOne: false;
|
|
8528
|
-
isSetofReturn: true;
|
|
8529
|
-
};
|
|
8530
8528
|
};
|
|
8531
|
-
|
|
8529
|
+
document_search_vector: {
|
|
8532
8530
|
Args: {
|
|
8533
|
-
|
|
8531
|
+
p_body: string;
|
|
8532
|
+
p_summary: string;
|
|
8533
|
+
p_title: string;
|
|
8534
8534
|
};
|
|
8535
|
-
Returns:
|
|
8535
|
+
Returns: unknown;
|
|
8536
8536
|
};
|
|
8537
|
-
|
|
8537
|
+
find_document: {
|
|
8538
8538
|
Args: {
|
|
8539
|
-
|
|
8540
|
-
|
|
8539
|
+
p_key: string;
|
|
8540
|
+
p_organization_id: string;
|
|
8541
|
+
p_type_slug: string;
|
|
8541
8542
|
};
|
|
8542
8543
|
Returns: string;
|
|
8543
8544
|
};
|
|
8544
|
-
|
|
8545
|
+
is_publicly_readable: {
|
|
8545
8546
|
Args: {
|
|
8546
|
-
|
|
8547
|
+
d: Database["content"]["Tables"]["document"]["Row"];
|
|
8547
8548
|
};
|
|
8548
|
-
Returns:
|
|
8549
|
+
Returns: boolean;
|
|
8549
8550
|
};
|
|
8550
|
-
|
|
8551
|
+
local_sync_changes: {
|
|
8551
8552
|
Args: {
|
|
8552
|
-
|
|
8553
|
+
p_limit?: number;
|
|
8554
|
+
p_since?: string;
|
|
8553
8555
|
};
|
|
8554
|
-
Returns:
|
|
8556
|
+
Returns: {
|
|
8557
|
+
content_hash: string;
|
|
8558
|
+
content_version: number;
|
|
8559
|
+
file_path: string;
|
|
8560
|
+
id: string;
|
|
8561
|
+
last_device_id: string;
|
|
8562
|
+
organization_id: string;
|
|
8563
|
+
title: string;
|
|
8564
|
+
type_slug: string;
|
|
8565
|
+
updated_at: string;
|
|
8566
|
+
version: number;
|
|
8567
|
+
}[];
|
|
8555
8568
|
};
|
|
8556
|
-
|
|
8569
|
+
read_published: {
|
|
8557
8570
|
Args: {
|
|
8558
|
-
|
|
8559
|
-
p_source: Json;
|
|
8571
|
+
p_document_id: string;
|
|
8560
8572
|
};
|
|
8561
|
-
Returns:
|
|
8562
|
-
|
|
8563
|
-
|
|
8573
|
+
Returns: {
|
|
8574
|
+
body: string;
|
|
8575
|
+
content_version: number;
|
|
8576
|
+
document_id: string;
|
|
8577
|
+
format: string;
|
|
8578
|
+
organization_id: string;
|
|
8579
|
+
published_at: string;
|
|
8580
|
+
summary: string;
|
|
8581
|
+
title: string;
|
|
8582
|
+
type_slug: string;
|
|
8583
|
+
}[];
|
|
8584
|
+
};
|
|
8585
|
+
read_published_by_slug: {
|
|
8586
|
+
Args: {
|
|
8587
|
+
p_organization_id: string;
|
|
8588
|
+
p_slug: string;
|
|
8589
|
+
p_type_slug: string;
|
|
8590
|
+
};
|
|
8591
|
+
Returns: {
|
|
8592
|
+
body: string;
|
|
8593
|
+
content_version: number;
|
|
8594
|
+
document_id: string;
|
|
8595
|
+
format: string;
|
|
8596
|
+
organization_id: string;
|
|
8597
|
+
published_at: string;
|
|
8598
|
+
summary: string;
|
|
8599
|
+
title: string;
|
|
8600
|
+
type_slug: string;
|
|
8601
|
+
}[];
|
|
8602
|
+
};
|
|
8603
|
+
realtime_topic_admits: {
|
|
8604
|
+
Args: {
|
|
8605
|
+
p_topic: string;
|
|
8606
|
+
};
|
|
8607
|
+
Returns: boolean;
|
|
8608
|
+
};
|
|
8609
|
+
search_documents: {
|
|
8610
|
+
Args: {
|
|
8611
|
+
p_archive?: string;
|
|
8612
|
+
p_limit?: number;
|
|
8613
|
+
p_offset?: number;
|
|
8614
|
+
p_organization_id?: string;
|
|
8615
|
+
p_query: string;
|
|
8616
|
+
p_scope?: string;
|
|
8617
|
+
p_type_slugs?: string[];
|
|
8618
|
+
};
|
|
8619
|
+
Returns: {
|
|
8620
|
+
archived_at: string;
|
|
8621
|
+
headline: string;
|
|
8622
|
+
id: string;
|
|
8623
|
+
organization_id: string;
|
|
8624
|
+
organization_name: string;
|
|
8625
|
+
owner_id: string;
|
|
8626
|
+
owner_name: string;
|
|
8627
|
+
preview: string;
|
|
8628
|
+
rank: number;
|
|
8629
|
+
summary: string;
|
|
8630
|
+
title: string;
|
|
8631
|
+
type_slug: string;
|
|
8632
|
+
updated_at: string;
|
|
8633
|
+
}[];
|
|
8634
|
+
};
|
|
8635
|
+
space_backlinks: {
|
|
8636
|
+
Args: {
|
|
8637
|
+
p_space_id: string;
|
|
8638
|
+
};
|
|
8639
|
+
Returns: {
|
|
8640
|
+
icon: string;
|
|
8641
|
+
id: string;
|
|
8642
|
+
title: string;
|
|
8643
|
+
}[];
|
|
8644
|
+
};
|
|
8645
|
+
space_children: {
|
|
8646
|
+
Args: {
|
|
8647
|
+
p_parent_id: string;
|
|
8648
|
+
};
|
|
8649
|
+
Returns: {
|
|
8650
|
+
deleted_at: string;
|
|
8651
|
+
edge_position: number;
|
|
8652
|
+
icon: string;
|
|
8653
|
+
id: string;
|
|
8654
|
+
organization_id: string;
|
|
8655
|
+
parent_id: string;
|
|
8656
|
+
title: string;
|
|
8657
|
+
updated_at: string;
|
|
8658
|
+
version: number;
|
|
8659
|
+
}[];
|
|
8660
|
+
};
|
|
8661
|
+
space_duplicate: {
|
|
8662
|
+
Args: {
|
|
8663
|
+
p_organization_id: string;
|
|
8664
|
+
p_parent_id?: string;
|
|
8665
|
+
p_position?: number;
|
|
8666
|
+
p_space_id: string;
|
|
8667
|
+
p_title?: string;
|
|
8668
|
+
p_with_children?: boolean;
|
|
8669
|
+
};
|
|
8670
|
+
Returns: string;
|
|
8671
|
+
};
|
|
8672
|
+
space_duplicate_published: {
|
|
8673
|
+
Args: {
|
|
8674
|
+
p_key: string;
|
|
8675
|
+
p_organization_id: string;
|
|
8676
|
+
};
|
|
8677
|
+
Returns: string;
|
|
8678
|
+
};
|
|
8679
|
+
space_list: {
|
|
8680
|
+
Args: {
|
|
8681
|
+
p_include_archived?: boolean;
|
|
8682
|
+
};
|
|
8683
|
+
Returns: {
|
|
8684
|
+
created_at: string;
|
|
8685
|
+
deleted_at: string;
|
|
8686
|
+
edge_position: number;
|
|
8687
|
+
icon: string;
|
|
8688
|
+
id: string;
|
|
8689
|
+
organization_id: string;
|
|
8690
|
+
parent_id: string;
|
|
8691
|
+
title: string;
|
|
8692
|
+
updated_at: string;
|
|
8693
|
+
version: number;
|
|
8694
|
+
}[];
|
|
8695
|
+
};
|
|
8696
|
+
space_public_view: {
|
|
8697
|
+
Args: {
|
|
8698
|
+
p_key: string;
|
|
8699
|
+
};
|
|
8700
|
+
Returns: Json;
|
|
8701
|
+
};
|
|
8702
|
+
space_publish: {
|
|
8703
|
+
Args: {
|
|
8704
|
+
p_allow_duplicate?: boolean;
|
|
8705
|
+
p_include_sub_pages?: boolean;
|
|
8706
|
+
p_published?: boolean;
|
|
8707
|
+
p_slug?: string;
|
|
8708
|
+
p_space_id: string;
|
|
8709
|
+
};
|
|
8710
|
+
Returns: Json;
|
|
8711
|
+
};
|
|
8712
|
+
space_save: {
|
|
8713
|
+
Args: {
|
|
8714
|
+
p_document_id: string;
|
|
8715
|
+
p_expected_version: number;
|
|
8716
|
+
p_origin?: string;
|
|
8717
|
+
p_projection?: string;
|
|
8718
|
+
p_snapshot: Json;
|
|
8719
|
+
p_title?: string;
|
|
8720
|
+
};
|
|
8721
|
+
Returns: {
|
|
8722
|
+
archived_at: string | null;
|
|
8723
|
+
body: string;
|
|
8724
|
+
char_count: number;
|
|
8725
|
+
content_hash: string;
|
|
8726
|
+
content_version: number;
|
|
8727
|
+
created_at: string;
|
|
8728
|
+
created_by: string | null;
|
|
8729
|
+
custom_fields: Json;
|
|
8730
|
+
data_class: Database["platform"]["Enums"]["data_class"];
|
|
8731
|
+
deleted_at: string | null;
|
|
8732
|
+
document_type_id: string;
|
|
8733
|
+
file_path: string | null;
|
|
8734
|
+
folder_id: string | null;
|
|
8735
|
+
format: string;
|
|
8736
|
+
icon: string | null;
|
|
8737
|
+
id: string;
|
|
8738
|
+
last_conversation_id: string | null;
|
|
8739
|
+
last_device_id: string | null;
|
|
8740
|
+
last_origin: string;
|
|
8741
|
+
metadata: Json;
|
|
8742
|
+
organization_id: string;
|
|
8743
|
+
payload_hash: string | null;
|
|
8744
|
+
preview: string;
|
|
8745
|
+
published_at: string | null;
|
|
8746
|
+
published_content_version: number | null;
|
|
8747
|
+
published_to_web: boolean;
|
|
8748
|
+
published_to_web_at: string | null;
|
|
8749
|
+
published_to_web_by: string | null;
|
|
8750
|
+
sealed_at: string | null;
|
|
8751
|
+
search_engine_indexed: boolean | null;
|
|
8752
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8753
|
+
slug: string | null;
|
|
8754
|
+
source_hash: string | null;
|
|
8755
|
+
source_uri: string | null;
|
|
8756
|
+
summary: string | null;
|
|
8757
|
+
title: string;
|
|
8758
|
+
updated_at: string;
|
|
8759
|
+
updated_by: string | null;
|
|
8760
|
+
version: number;
|
|
8761
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8762
|
+
web_allow_duplicate: boolean;
|
|
8763
|
+
web_include_sub_pages: boolean;
|
|
8764
|
+
word_count: number;
|
|
8765
|
+
};
|
|
8766
|
+
SetofOptions: {
|
|
8767
|
+
from: "*";
|
|
8768
|
+
to: "document";
|
|
8769
|
+
isOneToOne: true;
|
|
8770
|
+
isSetofReturn: false;
|
|
8771
|
+
};
|
|
8772
|
+
};
|
|
8773
|
+
space_snapshot_schema: {
|
|
8774
|
+
Args: never;
|
|
8775
|
+
Returns: Json;
|
|
8776
|
+
};
|
|
8777
|
+
space_upsert_external: {
|
|
8778
|
+
Args: {
|
|
8779
|
+
p_cover?: Json;
|
|
8780
|
+
p_external_key: string;
|
|
8781
|
+
p_icon?: Json;
|
|
8782
|
+
p_organization_id: string;
|
|
8783
|
+
p_origin?: string;
|
|
8784
|
+
p_parent_external_key?: string;
|
|
8785
|
+
p_parent_id?: string;
|
|
8786
|
+
p_position?: number;
|
|
8787
|
+
p_row_record_id?: string;
|
|
8788
|
+
p_snapshot?: Json;
|
|
8789
|
+
p_title: string;
|
|
8790
|
+
};
|
|
8791
|
+
Returns: {
|
|
8792
|
+
content_changed: boolean;
|
|
8793
|
+
content_version: number;
|
|
8794
|
+
created: boolean;
|
|
8795
|
+
placement: string;
|
|
8796
|
+
space_id: string;
|
|
8797
|
+
version: number;
|
|
8798
|
+
}[];
|
|
8799
|
+
};
|
|
8800
|
+
thin_autosave_versions: {
|
|
8801
|
+
Args: {
|
|
8802
|
+
p_dry_run?: boolean;
|
|
8803
|
+
};
|
|
8804
|
+
Returns: Json;
|
|
8805
|
+
};
|
|
8806
|
+
type_settings: {
|
|
8807
|
+
Args: {
|
|
8808
|
+
p_organization_id?: string;
|
|
8809
|
+
p_type_slug: string;
|
|
8810
|
+
};
|
|
8811
|
+
Returns: Json;
|
|
8812
|
+
};
|
|
8813
|
+
univer_save: {
|
|
8814
|
+
Args: {
|
|
8815
|
+
p_document_id: string;
|
|
8816
|
+
p_expected_version: number;
|
|
8817
|
+
p_origin?: string;
|
|
8818
|
+
p_projection: string;
|
|
8819
|
+
p_snapshot: Json;
|
|
8820
|
+
};
|
|
8821
|
+
Returns: {
|
|
8822
|
+
archived_at: string | null;
|
|
8823
|
+
body: string;
|
|
8824
|
+
char_count: number;
|
|
8825
|
+
content_hash: string;
|
|
8826
|
+
content_version: number;
|
|
8827
|
+
created_at: string;
|
|
8828
|
+
created_by: string | null;
|
|
8829
|
+
custom_fields: Json;
|
|
8830
|
+
data_class: Database["platform"]["Enums"]["data_class"];
|
|
8831
|
+
deleted_at: string | null;
|
|
8832
|
+
document_type_id: string;
|
|
8833
|
+
file_path: string | null;
|
|
8834
|
+
folder_id: string | null;
|
|
8835
|
+
format: string;
|
|
8836
|
+
icon: string | null;
|
|
8837
|
+
id: string;
|
|
8838
|
+
last_conversation_id: string | null;
|
|
8839
|
+
last_device_id: string | null;
|
|
8840
|
+
last_origin: string;
|
|
8841
|
+
metadata: Json;
|
|
8842
|
+
organization_id: string;
|
|
8843
|
+
payload_hash: string | null;
|
|
8844
|
+
preview: string;
|
|
8845
|
+
published_at: string | null;
|
|
8846
|
+
published_content_version: number | null;
|
|
8847
|
+
published_to_web: boolean;
|
|
8848
|
+
published_to_web_at: string | null;
|
|
8849
|
+
published_to_web_by: string | null;
|
|
8850
|
+
sealed_at: string | null;
|
|
8851
|
+
search_engine_indexed: boolean | null;
|
|
8852
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8853
|
+
slug: string | null;
|
|
8854
|
+
source_hash: string | null;
|
|
8855
|
+
source_uri: string | null;
|
|
8856
|
+
summary: string | null;
|
|
8857
|
+
title: string;
|
|
8858
|
+
updated_at: string;
|
|
8859
|
+
updated_by: string | null;
|
|
8860
|
+
version: number;
|
|
8861
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8862
|
+
web_allow_duplicate: boolean;
|
|
8863
|
+
web_include_sub_pages: boolean;
|
|
8864
|
+
word_count: number;
|
|
8865
|
+
};
|
|
8866
|
+
SetofOptions: {
|
|
8867
|
+
from: "*";
|
|
8868
|
+
to: "document";
|
|
8869
|
+
isOneToOne: true;
|
|
8870
|
+
isSetofReturn: false;
|
|
8871
|
+
};
|
|
8872
|
+
};
|
|
8873
|
+
version_diff: {
|
|
8874
|
+
Args: {
|
|
8875
|
+
p_document_id: string;
|
|
8876
|
+
p_from: number;
|
|
8877
|
+
p_to: number;
|
|
8878
|
+
};
|
|
8879
|
+
Returns: Json;
|
|
8880
|
+
};
|
|
8881
|
+
version_get: {
|
|
8882
|
+
Args: {
|
|
8883
|
+
p_content_version: number;
|
|
8884
|
+
p_document_id: string;
|
|
8885
|
+
};
|
|
8886
|
+
Returns: {
|
|
8887
|
+
actor_id: string;
|
|
8888
|
+
body: string;
|
|
8889
|
+
body_content_version: number;
|
|
8890
|
+
change_kind: string;
|
|
8891
|
+
content_hash: string;
|
|
8892
|
+
content_version: number;
|
|
8893
|
+
created_at: string;
|
|
8894
|
+
format: string;
|
|
8895
|
+
label: string;
|
|
8896
|
+
note: string;
|
|
8897
|
+
origin: string;
|
|
8898
|
+
payload_hash: string;
|
|
8899
|
+
summary: string;
|
|
8900
|
+
title: string;
|
|
8901
|
+
}[];
|
|
8902
|
+
};
|
|
8903
|
+
version_list: {
|
|
8904
|
+
Args: {
|
|
8905
|
+
p_before?: number;
|
|
8906
|
+
p_document_id: string;
|
|
8907
|
+
p_limit?: number;
|
|
8908
|
+
};
|
|
8909
|
+
Returns: {
|
|
8910
|
+
actor_id: string;
|
|
8911
|
+
actor_tier: string;
|
|
8912
|
+
body_content_version: number;
|
|
8913
|
+
change_kind: string;
|
|
8914
|
+
content_version: number;
|
|
8915
|
+
created_at: string;
|
|
8916
|
+
has_body: boolean;
|
|
8917
|
+
is_published: boolean;
|
|
8918
|
+
label: string;
|
|
8919
|
+
note: string;
|
|
8920
|
+
origin: string;
|
|
8921
|
+
title: string;
|
|
8922
|
+
}[];
|
|
8923
|
+
};
|
|
8924
|
+
version_publish: {
|
|
8925
|
+
Args: {
|
|
8926
|
+
p_content_version?: number;
|
|
8927
|
+
p_document_id: string;
|
|
8928
|
+
};
|
|
8929
|
+
Returns: {
|
|
8930
|
+
archived_at: string | null;
|
|
8931
|
+
body: string;
|
|
8932
|
+
char_count: number;
|
|
8933
|
+
content_hash: string;
|
|
8934
|
+
content_version: number;
|
|
8935
|
+
created_at: string;
|
|
8936
|
+
created_by: string | null;
|
|
8937
|
+
custom_fields: Json;
|
|
8938
|
+
data_class: Database["platform"]["Enums"]["data_class"];
|
|
8939
|
+
deleted_at: string | null;
|
|
8940
|
+
document_type_id: string;
|
|
8941
|
+
file_path: string | null;
|
|
8942
|
+
folder_id: string | null;
|
|
8943
|
+
format: string;
|
|
8944
|
+
icon: string | null;
|
|
8945
|
+
id: string;
|
|
8946
|
+
last_conversation_id: string | null;
|
|
8947
|
+
last_device_id: string | null;
|
|
8948
|
+
last_origin: string;
|
|
8949
|
+
metadata: Json;
|
|
8950
|
+
organization_id: string;
|
|
8951
|
+
payload_hash: string | null;
|
|
8952
|
+
preview: string;
|
|
8953
|
+
published_at: string | null;
|
|
8954
|
+
published_content_version: number | null;
|
|
8955
|
+
published_to_web: boolean;
|
|
8956
|
+
published_to_web_at: string | null;
|
|
8957
|
+
published_to_web_by: string | null;
|
|
8958
|
+
sealed_at: string | null;
|
|
8959
|
+
search_engine_indexed: boolean | null;
|
|
8960
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
8961
|
+
slug: string | null;
|
|
8962
|
+
source_hash: string | null;
|
|
8963
|
+
source_uri: string | null;
|
|
8964
|
+
summary: string | null;
|
|
8965
|
+
title: string;
|
|
8966
|
+
updated_at: string;
|
|
8967
|
+
updated_by: string | null;
|
|
8968
|
+
version: number;
|
|
8969
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
8970
|
+
web_allow_duplicate: boolean;
|
|
8971
|
+
web_include_sub_pages: boolean;
|
|
8972
|
+
word_count: number;
|
|
8973
|
+
};
|
|
8974
|
+
SetofOptions: {
|
|
8975
|
+
from: "*";
|
|
8976
|
+
to: "document";
|
|
8977
|
+
isOneToOne: true;
|
|
8978
|
+
isSetofReturn: false;
|
|
8979
|
+
};
|
|
8980
|
+
};
|
|
8981
|
+
version_restore: {
|
|
8982
|
+
Args: {
|
|
8983
|
+
p_content_version: number;
|
|
8984
|
+
p_document_id: string;
|
|
8985
|
+
p_expected_version: number;
|
|
8986
|
+
};
|
|
8987
|
+
Returns: {
|
|
8988
|
+
archived_at: string | null;
|
|
8989
|
+
body: string;
|
|
8990
|
+
char_count: number;
|
|
8991
|
+
content_hash: string;
|
|
8992
|
+
content_version: number;
|
|
8993
|
+
created_at: string;
|
|
8994
|
+
created_by: string | null;
|
|
8995
|
+
custom_fields: Json;
|
|
8996
|
+
data_class: Database["platform"]["Enums"]["data_class"];
|
|
8997
|
+
deleted_at: string | null;
|
|
8998
|
+
document_type_id: string;
|
|
8999
|
+
file_path: string | null;
|
|
9000
|
+
folder_id: string | null;
|
|
9001
|
+
format: string;
|
|
9002
|
+
icon: string | null;
|
|
9003
|
+
id: string;
|
|
9004
|
+
last_conversation_id: string | null;
|
|
9005
|
+
last_device_id: string | null;
|
|
9006
|
+
last_origin: string;
|
|
9007
|
+
metadata: Json;
|
|
9008
|
+
organization_id: string;
|
|
9009
|
+
payload_hash: string | null;
|
|
9010
|
+
preview: string;
|
|
9011
|
+
published_at: string | null;
|
|
9012
|
+
published_content_version: number | null;
|
|
9013
|
+
published_to_web: boolean;
|
|
9014
|
+
published_to_web_at: string | null;
|
|
9015
|
+
published_to_web_by: string | null;
|
|
9016
|
+
sealed_at: string | null;
|
|
9017
|
+
search_engine_indexed: boolean | null;
|
|
9018
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9019
|
+
slug: string | null;
|
|
9020
|
+
source_hash: string | null;
|
|
9021
|
+
source_uri: string | null;
|
|
9022
|
+
summary: string | null;
|
|
9023
|
+
title: string;
|
|
9024
|
+
updated_at: string;
|
|
9025
|
+
updated_by: string | null;
|
|
9026
|
+
version: number;
|
|
9027
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9028
|
+
web_allow_duplicate: boolean;
|
|
9029
|
+
web_include_sub_pages: boolean;
|
|
9030
|
+
word_count: number;
|
|
9031
|
+
};
|
|
9032
|
+
SetofOptions: {
|
|
9033
|
+
from: "*";
|
|
9034
|
+
to: "document";
|
|
9035
|
+
isOneToOne: true;
|
|
9036
|
+
isSetofReturn: false;
|
|
9037
|
+
};
|
|
9038
|
+
};
|
|
9039
|
+
version_unpublish: {
|
|
9040
|
+
Args: {
|
|
9041
|
+
p_document_id: string;
|
|
9042
|
+
};
|
|
9043
|
+
Returns: {
|
|
9044
|
+
archived_at: string | null;
|
|
9045
|
+
body: string;
|
|
9046
|
+
char_count: number;
|
|
9047
|
+
content_hash: string;
|
|
9048
|
+
content_version: number;
|
|
9049
|
+
created_at: string;
|
|
9050
|
+
created_by: string | null;
|
|
9051
|
+
custom_fields: Json;
|
|
9052
|
+
data_class: Database["platform"]["Enums"]["data_class"];
|
|
9053
|
+
deleted_at: string | null;
|
|
9054
|
+
document_type_id: string;
|
|
9055
|
+
file_path: string | null;
|
|
9056
|
+
folder_id: string | null;
|
|
9057
|
+
format: string;
|
|
9058
|
+
icon: string | null;
|
|
9059
|
+
id: string;
|
|
9060
|
+
last_conversation_id: string | null;
|
|
9061
|
+
last_device_id: string | null;
|
|
9062
|
+
last_origin: string;
|
|
9063
|
+
metadata: Json;
|
|
9064
|
+
organization_id: string;
|
|
9065
|
+
payload_hash: string | null;
|
|
9066
|
+
preview: string;
|
|
9067
|
+
published_at: string | null;
|
|
9068
|
+
published_content_version: number | null;
|
|
9069
|
+
published_to_web: boolean;
|
|
9070
|
+
published_to_web_at: string | null;
|
|
9071
|
+
published_to_web_by: string | null;
|
|
9072
|
+
sealed_at: string | null;
|
|
9073
|
+
search_engine_indexed: boolean | null;
|
|
9074
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
9075
|
+
slug: string | null;
|
|
9076
|
+
source_hash: string | null;
|
|
9077
|
+
source_uri: string | null;
|
|
9078
|
+
summary: string | null;
|
|
9079
|
+
title: string;
|
|
9080
|
+
updated_at: string;
|
|
9081
|
+
updated_by: string | null;
|
|
9082
|
+
version: number;
|
|
9083
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
9084
|
+
web_allow_duplicate: boolean;
|
|
9085
|
+
web_include_sub_pages: boolean;
|
|
9086
|
+
word_count: number;
|
|
9087
|
+
};
|
|
9088
|
+
SetofOptions: {
|
|
9089
|
+
from: "*";
|
|
9090
|
+
to: "document";
|
|
9091
|
+
isOneToOne: true;
|
|
9092
|
+
isSetofReturn: false;
|
|
9093
|
+
};
|
|
9094
|
+
};
|
|
9095
|
+
};
|
|
8564
9096
|
Enums: {
|
|
8565
9097
|
[_ in never]: never;
|
|
8566
9098
|
};
|
|
@@ -9652,6 +10184,113 @@ export type ChatDatabase = {
|
|
|
9652
10184
|
}
|
|
9653
10185
|
];
|
|
9654
10186
|
};
|
|
10187
|
+
udt_dataset_template_fields: {
|
|
10188
|
+
Row: {
|
|
10189
|
+
created_at: string;
|
|
10190
|
+
custom_fields: Json;
|
|
10191
|
+
data_type: Database["public"]["Enums"]["field_data_type"];
|
|
10192
|
+
default_value: Json | null;
|
|
10193
|
+
display_name: string;
|
|
10194
|
+
field_name: string;
|
|
10195
|
+
field_order: number;
|
|
10196
|
+
id: string;
|
|
10197
|
+
is_required: boolean;
|
|
10198
|
+
metadata: Json;
|
|
10199
|
+
organization_id: string;
|
|
10200
|
+
template_id: string;
|
|
10201
|
+
updated_at: string;
|
|
10202
|
+
validation_rules: Json | null;
|
|
10203
|
+
};
|
|
10204
|
+
Insert: {
|
|
10205
|
+
created_at?: string;
|
|
10206
|
+
custom_fields?: Json;
|
|
10207
|
+
data_type?: Database["public"]["Enums"]["field_data_type"];
|
|
10208
|
+
default_value?: Json | null;
|
|
10209
|
+
display_name: string;
|
|
10210
|
+
field_name: string;
|
|
10211
|
+
field_order?: number;
|
|
10212
|
+
id?: string;
|
|
10213
|
+
is_required?: boolean;
|
|
10214
|
+
metadata?: Json;
|
|
10215
|
+
organization_id: string;
|
|
10216
|
+
template_id: string;
|
|
10217
|
+
updated_at?: string;
|
|
10218
|
+
validation_rules?: Json | null;
|
|
10219
|
+
};
|
|
10220
|
+
Update: {
|
|
10221
|
+
created_at?: string;
|
|
10222
|
+
custom_fields?: Json;
|
|
10223
|
+
data_type?: Database["public"]["Enums"]["field_data_type"];
|
|
10224
|
+
default_value?: Json | null;
|
|
10225
|
+
display_name?: string;
|
|
10226
|
+
field_name?: string;
|
|
10227
|
+
field_order?: number;
|
|
10228
|
+
id?: string;
|
|
10229
|
+
is_required?: boolean;
|
|
10230
|
+
metadata?: Json;
|
|
10231
|
+
organization_id?: string;
|
|
10232
|
+
template_id?: string;
|
|
10233
|
+
updated_at?: string;
|
|
10234
|
+
validation_rules?: Json | null;
|
|
10235
|
+
};
|
|
10236
|
+
Relationships: [
|
|
10237
|
+
{
|
|
10238
|
+
foreignKeyName: "udt_dataset_template_fields_template_id_fkey";
|
|
10239
|
+
columns: ["template_id"];
|
|
10240
|
+
isOneToOne: false;
|
|
10241
|
+
referencedRelation: "udt_dataset_templates";
|
|
10242
|
+
referencedColumns: ["id"];
|
|
10243
|
+
}
|
|
10244
|
+
];
|
|
10245
|
+
};
|
|
10246
|
+
udt_dataset_templates: {
|
|
10247
|
+
Row: {
|
|
10248
|
+
created_at: string;
|
|
10249
|
+
created_by: string | null;
|
|
10250
|
+
custom_fields: Json;
|
|
10251
|
+
deleted_at: string | null;
|
|
10252
|
+
description: string;
|
|
10253
|
+
id: string;
|
|
10254
|
+
is_active: boolean;
|
|
10255
|
+
metadata: Json;
|
|
10256
|
+
name: string;
|
|
10257
|
+
organization_id: string;
|
|
10258
|
+
updated_at: string;
|
|
10259
|
+
updated_by: string | null;
|
|
10260
|
+
version: number;
|
|
10261
|
+
};
|
|
10262
|
+
Insert: {
|
|
10263
|
+
created_at?: string;
|
|
10264
|
+
created_by?: string | null;
|
|
10265
|
+
custom_fields?: Json;
|
|
10266
|
+
deleted_at?: string | null;
|
|
10267
|
+
description?: string;
|
|
10268
|
+
id?: string;
|
|
10269
|
+
is_active?: boolean;
|
|
10270
|
+
metadata?: Json;
|
|
10271
|
+
name: string;
|
|
10272
|
+
organization_id: string;
|
|
10273
|
+
updated_at?: string;
|
|
10274
|
+
updated_by?: string | null;
|
|
10275
|
+
version?: number;
|
|
10276
|
+
};
|
|
10277
|
+
Update: {
|
|
10278
|
+
created_at?: string;
|
|
10279
|
+
created_by?: string | null;
|
|
10280
|
+
custom_fields?: Json;
|
|
10281
|
+
deleted_at?: string | null;
|
|
10282
|
+
description?: string;
|
|
10283
|
+
id?: string;
|
|
10284
|
+
is_active?: boolean;
|
|
10285
|
+
metadata?: Json;
|
|
10286
|
+
name?: string;
|
|
10287
|
+
organization_id?: string;
|
|
10288
|
+
updated_at?: string;
|
|
10289
|
+
updated_by?: string | null;
|
|
10290
|
+
version?: number;
|
|
10291
|
+
};
|
|
10292
|
+
Relationships: [];
|
|
10293
|
+
};
|
|
9655
10294
|
udt_datasets: {
|
|
9656
10295
|
Row: {
|
|
9657
10296
|
created_at: string;
|
|
@@ -9893,7 +10532,126 @@ export type ChatDatabase = {
|
|
|
9893
10532
|
[_ in never]: never;
|
|
9894
10533
|
};
|
|
9895
10534
|
Functions: {
|
|
9896
|
-
|
|
10535
|
+
_ctx_dataset_field_holds: {
|
|
10536
|
+
Args: {
|
|
10537
|
+
p_org: string;
|
|
10538
|
+
p_spec: Json;
|
|
10539
|
+
};
|
|
10540
|
+
Returns: undefined;
|
|
10541
|
+
};
|
|
10542
|
+
_cutover_seam_apply: {
|
|
10543
|
+
Args: {
|
|
10544
|
+
p_actor: string;
|
|
10545
|
+
p_org: string;
|
|
10546
|
+
p_press: string;
|
|
10547
|
+
p_seam: string;
|
|
10548
|
+
p_to: string;
|
|
10549
|
+
};
|
|
10550
|
+
Returns: Json;
|
|
10551
|
+
};
|
|
10552
|
+
_udt_display_spec: {
|
|
10553
|
+
Args: {
|
|
10554
|
+
p_raw: Json;
|
|
10555
|
+
};
|
|
10556
|
+
Returns: Json;
|
|
10557
|
+
};
|
|
10558
|
+
_udt_row_granted: {
|
|
10559
|
+
Args: {
|
|
10560
|
+
p_row_id: string;
|
|
10561
|
+
};
|
|
10562
|
+
Returns: boolean;
|
|
10563
|
+
};
|
|
10564
|
+
_udt_row_words: {
|
|
10565
|
+
Args: {
|
|
10566
|
+
p_display?: Json;
|
|
10567
|
+
p_hop?: number;
|
|
10568
|
+
p_organization_id: string;
|
|
10569
|
+
p_row_id: string;
|
|
10570
|
+
};
|
|
10571
|
+
Returns: string;
|
|
10572
|
+
};
|
|
10573
|
+
list_udt_dataset_templates: {
|
|
10574
|
+
Args: {
|
|
10575
|
+
p_org_id: string;
|
|
10576
|
+
};
|
|
10577
|
+
Returns: Json;
|
|
10578
|
+
};
|
|
10579
|
+
udt_cast_jsonb_value: {
|
|
10580
|
+
Args: {
|
|
10581
|
+
p_new_type: Database["public"]["Enums"]["field_data_type"];
|
|
10582
|
+
p_value: Json;
|
|
10583
|
+
};
|
|
10584
|
+
Returns: Json;
|
|
10585
|
+
};
|
|
10586
|
+
udt_dataset_archive: {
|
|
10587
|
+
Args: {
|
|
10588
|
+
p_moved_to_table_id: string;
|
|
10589
|
+
p_reason?: string;
|
|
10590
|
+
p_table_id: string;
|
|
10591
|
+
};
|
|
10592
|
+
Returns: Json;
|
|
10593
|
+
};
|
|
10594
|
+
udt_dataset_row_versions_trim: {
|
|
10595
|
+
Args: never;
|
|
10596
|
+
Returns: Json;
|
|
10597
|
+
};
|
|
10598
|
+
udt_dataset_row_versions_trim_scoped: {
|
|
10599
|
+
Args: {
|
|
10600
|
+
p_dry_run?: boolean;
|
|
10601
|
+
p_table_id?: string;
|
|
10602
|
+
};
|
|
10603
|
+
Returns: Json;
|
|
10604
|
+
};
|
|
10605
|
+
udt_dataset_unarchive: {
|
|
10606
|
+
Args: {
|
|
10607
|
+
p_table_id: string;
|
|
10608
|
+
};
|
|
10609
|
+
Returns: Json;
|
|
10610
|
+
};
|
|
10611
|
+
udt_refuse_row_in_trash: {
|
|
10612
|
+
Args: never;
|
|
10613
|
+
Returns: undefined;
|
|
10614
|
+
};
|
|
10615
|
+
udt_row_words_many: {
|
|
10616
|
+
Args: {
|
|
10617
|
+
p_display: Json;
|
|
10618
|
+
p_organization_id: string;
|
|
10619
|
+
p_row_ids: string[];
|
|
10620
|
+
};
|
|
10621
|
+
Returns: {
|
|
10622
|
+
row_id: string;
|
|
10623
|
+
words: string;
|
|
10624
|
+
}[];
|
|
10625
|
+
};
|
|
10626
|
+
udt_structured_list_archive: {
|
|
10627
|
+
Args: {
|
|
10628
|
+
p_list_id: string;
|
|
10629
|
+
p_moved_to_table_id: string;
|
|
10630
|
+
p_reason?: string;
|
|
10631
|
+
};
|
|
10632
|
+
Returns: Json;
|
|
10633
|
+
};
|
|
10634
|
+
udt_structured_list_unarchive: {
|
|
10635
|
+
Args: {
|
|
10636
|
+
p_list_id: string;
|
|
10637
|
+
};
|
|
10638
|
+
Returns: Json;
|
|
10639
|
+
};
|
|
10640
|
+
udt_validate_cell_rules: {
|
|
10641
|
+
Args: {
|
|
10642
|
+
p_data_type: string;
|
|
10643
|
+
p_rules: Json;
|
|
10644
|
+
p_value: Json;
|
|
10645
|
+
};
|
|
10646
|
+
Returns: string;
|
|
10647
|
+
};
|
|
10648
|
+
validate_dataset_template_source: {
|
|
10649
|
+
Args: {
|
|
10650
|
+
p_org_id: string;
|
|
10651
|
+
p_source: Json;
|
|
10652
|
+
};
|
|
10653
|
+
Returns: string;
|
|
10654
|
+
};
|
|
9897
10655
|
};
|
|
9898
10656
|
Enums: {
|
|
9899
10657
|
[_ in never]: never;
|
|
@@ -42039,12 +42797,6 @@ export type ChatDatabase = {
|
|
|
42039
42797
|
};
|
|
42040
42798
|
Returns: Json;
|
|
42041
42799
|
};
|
|
42042
|
-
list_udt_dataset_templates: {
|
|
42043
|
-
Args: {
|
|
42044
|
-
p_org_id: string;
|
|
42045
|
-
};
|
|
42046
|
-
Returns: Json;
|
|
42047
|
-
};
|
|
42048
42800
|
list_user_organizations: {
|
|
42049
42801
|
Args: {
|
|
42050
42802
|
p_archived?: string;
|
|
@@ -44856,32 +45608,6 @@ export type ChatDatabase = {
|
|
|
44856
45608
|
};
|
|
44857
45609
|
Returns: boolean;
|
|
44858
45610
|
};
|
|
44859
|
-
udt_cast_jsonb_value: {
|
|
44860
|
-
Args: {
|
|
44861
|
-
p_new_type: Database["public"]["Enums"]["field_data_type"];
|
|
44862
|
-
p_value: Json;
|
|
44863
|
-
};
|
|
44864
|
-
Returns: Json;
|
|
44865
|
-
};
|
|
44866
|
-
udt_dataset_row_versions_trim: {
|
|
44867
|
-
Args: never;
|
|
44868
|
-
Returns: Json;
|
|
44869
|
-
};
|
|
44870
|
-
udt_dataset_row_versions_trim_scoped: {
|
|
44871
|
-
Args: {
|
|
44872
|
-
p_dry_run?: boolean;
|
|
44873
|
-
p_table_id?: string;
|
|
44874
|
-
};
|
|
44875
|
-
Returns: Json;
|
|
44876
|
-
};
|
|
44877
|
-
udt_validate_cell_rules: {
|
|
44878
|
-
Args: {
|
|
44879
|
-
p_data_type: string;
|
|
44880
|
-
p_rules: Json;
|
|
44881
|
-
p_value: Json;
|
|
44882
|
-
};
|
|
44883
|
-
Returns: string;
|
|
44884
|
-
};
|
|
44885
45611
|
ues_get_bulk: {
|
|
44886
45612
|
Args: {
|
|
44887
45613
|
p_entity_ids: string[];
|
|
@@ -50506,1300 +51232,6 @@ export type ChatDatabase = {
|
|
|
50506
51232
|
[_ in never]: never;
|
|
50507
51233
|
};
|
|
50508
51234
|
};
|
|
50509
|
-
workbench: {
|
|
50510
|
-
Tables: {
|
|
50511
|
-
google_document: {
|
|
50512
|
-
Row: {
|
|
50513
|
-
body_text: string | null;
|
|
50514
|
-
created_at: string;
|
|
50515
|
-
created_by: string | null;
|
|
50516
|
-
custom_fields: Json;
|
|
50517
|
-
deleted_at: string | null;
|
|
50518
|
-
external_id: string;
|
|
50519
|
-
external_modified_at: string | null;
|
|
50520
|
-
external_url: string | null;
|
|
50521
|
-
id: string;
|
|
50522
|
-
metadata: Json;
|
|
50523
|
-
mime_kind: string;
|
|
50524
|
-
organization_id: string;
|
|
50525
|
-
owner_email: string | null;
|
|
50526
|
-
published_to_web: boolean;
|
|
50527
|
-
published_to_web_at: string | null;
|
|
50528
|
-
published_to_web_by: string | null;
|
|
50529
|
-
resource_id: string;
|
|
50530
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50531
|
-
sync_status: string;
|
|
50532
|
-
sync_status_reason: string | null;
|
|
50533
|
-
synced_at: string | null;
|
|
50534
|
-
synced_via_connection_id: string | null;
|
|
50535
|
-
title: string;
|
|
50536
|
-
updated_at: string;
|
|
50537
|
-
updated_by: string | null;
|
|
50538
|
-
version: number;
|
|
50539
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
50540
|
-
};
|
|
50541
|
-
Insert: {
|
|
50542
|
-
body_text?: string | null;
|
|
50543
|
-
created_at?: string;
|
|
50544
|
-
created_by?: string | null;
|
|
50545
|
-
custom_fields?: Json;
|
|
50546
|
-
deleted_at?: string | null;
|
|
50547
|
-
external_id: string;
|
|
50548
|
-
external_modified_at?: string | null;
|
|
50549
|
-
external_url?: string | null;
|
|
50550
|
-
id?: string;
|
|
50551
|
-
metadata?: Json;
|
|
50552
|
-
mime_kind: string;
|
|
50553
|
-
organization_id: string;
|
|
50554
|
-
owner_email?: string | null;
|
|
50555
|
-
published_to_web?: boolean;
|
|
50556
|
-
published_to_web_at?: string | null;
|
|
50557
|
-
published_to_web_by?: string | null;
|
|
50558
|
-
resource_id: string;
|
|
50559
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50560
|
-
sync_status?: string;
|
|
50561
|
-
sync_status_reason?: string | null;
|
|
50562
|
-
synced_at?: string | null;
|
|
50563
|
-
synced_via_connection_id?: string | null;
|
|
50564
|
-
title: string;
|
|
50565
|
-
updated_at?: string;
|
|
50566
|
-
updated_by?: string | null;
|
|
50567
|
-
version?: number;
|
|
50568
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50569
|
-
};
|
|
50570
|
-
Update: {
|
|
50571
|
-
body_text?: string | null;
|
|
50572
|
-
created_at?: string;
|
|
50573
|
-
created_by?: string | null;
|
|
50574
|
-
custom_fields?: Json;
|
|
50575
|
-
deleted_at?: string | null;
|
|
50576
|
-
external_id?: string;
|
|
50577
|
-
external_modified_at?: string | null;
|
|
50578
|
-
external_url?: string | null;
|
|
50579
|
-
id?: string;
|
|
50580
|
-
metadata?: Json;
|
|
50581
|
-
mime_kind?: string;
|
|
50582
|
-
organization_id?: string;
|
|
50583
|
-
owner_email?: string | null;
|
|
50584
|
-
published_to_web?: boolean;
|
|
50585
|
-
published_to_web_at?: string | null;
|
|
50586
|
-
published_to_web_by?: string | null;
|
|
50587
|
-
resource_id?: string;
|
|
50588
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50589
|
-
sync_status?: string;
|
|
50590
|
-
sync_status_reason?: string | null;
|
|
50591
|
-
synced_at?: string | null;
|
|
50592
|
-
synced_via_connection_id?: string | null;
|
|
50593
|
-
title?: string;
|
|
50594
|
-
updated_at?: string;
|
|
50595
|
-
updated_by?: string | null;
|
|
50596
|
-
version?: number;
|
|
50597
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50598
|
-
};
|
|
50599
|
-
Relationships: [];
|
|
50600
|
-
};
|
|
50601
|
-
heatmap_saves: {
|
|
50602
|
-
Row: {
|
|
50603
|
-
created_at: string;
|
|
50604
|
-
created_by: string | null;
|
|
50605
|
-
custom_fields: Json;
|
|
50606
|
-
data: Json;
|
|
50607
|
-
deleted_at: string | null;
|
|
50608
|
-
description: string | null;
|
|
50609
|
-
id: string;
|
|
50610
|
-
metadata: Json;
|
|
50611
|
-
organization_id: string;
|
|
50612
|
-
published_to_web: boolean;
|
|
50613
|
-
published_to_web_at: string | null;
|
|
50614
|
-
published_to_web_by: string | null;
|
|
50615
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50616
|
-
title: string;
|
|
50617
|
-
updated_at: string;
|
|
50618
|
-
updated_by: string | null;
|
|
50619
|
-
user_id: string | null;
|
|
50620
|
-
version: number;
|
|
50621
|
-
view_settings: Json | null;
|
|
50622
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
50623
|
-
};
|
|
50624
|
-
Insert: {
|
|
50625
|
-
created_at?: string;
|
|
50626
|
-
created_by?: string | null;
|
|
50627
|
-
custom_fields?: Json;
|
|
50628
|
-
data: Json;
|
|
50629
|
-
deleted_at?: string | null;
|
|
50630
|
-
description?: string | null;
|
|
50631
|
-
id?: string;
|
|
50632
|
-
metadata?: Json;
|
|
50633
|
-
organization_id: string;
|
|
50634
|
-
published_to_web?: boolean;
|
|
50635
|
-
published_to_web_at?: string | null;
|
|
50636
|
-
published_to_web_by?: string | null;
|
|
50637
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50638
|
-
title?: string;
|
|
50639
|
-
updated_at?: string;
|
|
50640
|
-
updated_by?: string | null;
|
|
50641
|
-
user_id?: string | null;
|
|
50642
|
-
version?: number;
|
|
50643
|
-
view_settings?: Json | null;
|
|
50644
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50645
|
-
};
|
|
50646
|
-
Update: {
|
|
50647
|
-
created_at?: string;
|
|
50648
|
-
created_by?: string | null;
|
|
50649
|
-
custom_fields?: Json;
|
|
50650
|
-
data?: Json;
|
|
50651
|
-
deleted_at?: string | null;
|
|
50652
|
-
description?: string | null;
|
|
50653
|
-
id?: string;
|
|
50654
|
-
metadata?: Json;
|
|
50655
|
-
organization_id?: string;
|
|
50656
|
-
published_to_web?: boolean;
|
|
50657
|
-
published_to_web_at?: string | null;
|
|
50658
|
-
published_to_web_by?: string | null;
|
|
50659
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50660
|
-
title?: string;
|
|
50661
|
-
updated_at?: string;
|
|
50662
|
-
updated_by?: string | null;
|
|
50663
|
-
user_id?: string | null;
|
|
50664
|
-
version?: number;
|
|
50665
|
-
view_settings?: Json | null;
|
|
50666
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50667
|
-
};
|
|
50668
|
-
Relationships: [];
|
|
50669
|
-
};
|
|
50670
|
-
note_folders: {
|
|
50671
|
-
Row: {
|
|
50672
|
-
created_at: string;
|
|
50673
|
-
created_by: string | null;
|
|
50674
|
-
custom_fields: Json;
|
|
50675
|
-
deleted_at: string | null;
|
|
50676
|
-
id: string;
|
|
50677
|
-
metadata: Json;
|
|
50678
|
-
name: string;
|
|
50679
|
-
organization_id: string;
|
|
50680
|
-
parent_id: string | null;
|
|
50681
|
-
path: string;
|
|
50682
|
-
position: number | null;
|
|
50683
|
-
published_to_web: boolean;
|
|
50684
|
-
published_to_web_at: string | null;
|
|
50685
|
-
published_to_web_by: string | null;
|
|
50686
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50687
|
-
updated_at: string;
|
|
50688
|
-
updated_by: string | null;
|
|
50689
|
-
version: number;
|
|
50690
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
50691
|
-
};
|
|
50692
|
-
Insert: {
|
|
50693
|
-
created_at?: string;
|
|
50694
|
-
created_by?: string | null;
|
|
50695
|
-
custom_fields?: Json;
|
|
50696
|
-
deleted_at?: string | null;
|
|
50697
|
-
id?: string;
|
|
50698
|
-
metadata?: Json;
|
|
50699
|
-
name: string;
|
|
50700
|
-
organization_id: string;
|
|
50701
|
-
parent_id?: string | null;
|
|
50702
|
-
path?: string;
|
|
50703
|
-
position?: number | null;
|
|
50704
|
-
published_to_web?: boolean;
|
|
50705
|
-
published_to_web_at?: string | null;
|
|
50706
|
-
published_to_web_by?: string | null;
|
|
50707
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50708
|
-
updated_at?: string;
|
|
50709
|
-
updated_by?: string | null;
|
|
50710
|
-
version?: number;
|
|
50711
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50712
|
-
};
|
|
50713
|
-
Update: {
|
|
50714
|
-
created_at?: string;
|
|
50715
|
-
created_by?: string | null;
|
|
50716
|
-
custom_fields?: Json;
|
|
50717
|
-
deleted_at?: string | null;
|
|
50718
|
-
id?: string;
|
|
50719
|
-
metadata?: Json;
|
|
50720
|
-
name?: string;
|
|
50721
|
-
organization_id?: string;
|
|
50722
|
-
parent_id?: string | null;
|
|
50723
|
-
path?: string;
|
|
50724
|
-
position?: number | null;
|
|
50725
|
-
published_to_web?: boolean;
|
|
50726
|
-
published_to_web_at?: string | null;
|
|
50727
|
-
published_to_web_by?: string | null;
|
|
50728
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50729
|
-
updated_at?: string;
|
|
50730
|
-
updated_by?: string | null;
|
|
50731
|
-
version?: number;
|
|
50732
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50733
|
-
};
|
|
50734
|
-
Relationships: [
|
|
50735
|
-
{
|
|
50736
|
-
foreignKeyName: "note_folders_parent_id_fkey";
|
|
50737
|
-
columns: ["parent_id"];
|
|
50738
|
-
isOneToOne: false;
|
|
50739
|
-
referencedRelation: "note_folders";
|
|
50740
|
-
referencedColumns: ["id"];
|
|
50741
|
-
}
|
|
50742
|
-
];
|
|
50743
|
-
};
|
|
50744
|
-
notes: {
|
|
50745
|
-
Row: {
|
|
50746
|
-
content: string | null;
|
|
50747
|
-
content_hash: string | null;
|
|
50748
|
-
content_preview: string | null;
|
|
50749
|
-
created_at: string;
|
|
50750
|
-
created_by: string | null;
|
|
50751
|
-
custom_fields: Json;
|
|
50752
|
-
deleted_at: string | null;
|
|
50753
|
-
file_path: string | null;
|
|
50754
|
-
folder_id: string | null;
|
|
50755
|
-
folder_name: string | null;
|
|
50756
|
-
id: string;
|
|
50757
|
-
label: string;
|
|
50758
|
-
last_device_id: string | null;
|
|
50759
|
-
metadata: Json;
|
|
50760
|
-
organization_id: string;
|
|
50761
|
-
position: number | null;
|
|
50762
|
-
project_id: string | null;
|
|
50763
|
-
published_to_web: boolean;
|
|
50764
|
-
published_to_web_at: string | null;
|
|
50765
|
-
published_to_web_by: string | null;
|
|
50766
|
-
search_engine_indexed: boolean | null;
|
|
50767
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50768
|
-
sync_version: number;
|
|
50769
|
-
tags: string[] | null;
|
|
50770
|
-
task_id: string | null;
|
|
50771
|
-
updated_at: string;
|
|
50772
|
-
updated_by: string | null;
|
|
50773
|
-
version: number;
|
|
50774
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
50775
|
-
};
|
|
50776
|
-
Insert: {
|
|
50777
|
-
content?: string | null;
|
|
50778
|
-
content_hash?: string | null;
|
|
50779
|
-
content_preview?: string | null;
|
|
50780
|
-
created_at?: string;
|
|
50781
|
-
created_by?: string | null;
|
|
50782
|
-
custom_fields?: Json;
|
|
50783
|
-
deleted_at?: string | null;
|
|
50784
|
-
file_path?: string | null;
|
|
50785
|
-
folder_id?: string | null;
|
|
50786
|
-
folder_name?: string | null;
|
|
50787
|
-
id?: string;
|
|
50788
|
-
label?: string;
|
|
50789
|
-
last_device_id?: string | null;
|
|
50790
|
-
metadata?: Json;
|
|
50791
|
-
organization_id: string;
|
|
50792
|
-
position?: number | null;
|
|
50793
|
-
project_id?: string | null;
|
|
50794
|
-
published_to_web?: boolean;
|
|
50795
|
-
published_to_web_at?: string | null;
|
|
50796
|
-
published_to_web_by?: string | null;
|
|
50797
|
-
search_engine_indexed?: boolean | null;
|
|
50798
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50799
|
-
sync_version?: number;
|
|
50800
|
-
tags?: string[] | null;
|
|
50801
|
-
task_id?: string | null;
|
|
50802
|
-
updated_at?: string;
|
|
50803
|
-
updated_by?: string | null;
|
|
50804
|
-
version?: number;
|
|
50805
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50806
|
-
};
|
|
50807
|
-
Update: {
|
|
50808
|
-
content?: string | null;
|
|
50809
|
-
content_hash?: string | null;
|
|
50810
|
-
content_preview?: string | null;
|
|
50811
|
-
created_at?: string;
|
|
50812
|
-
created_by?: string | null;
|
|
50813
|
-
custom_fields?: Json;
|
|
50814
|
-
deleted_at?: string | null;
|
|
50815
|
-
file_path?: string | null;
|
|
50816
|
-
folder_id?: string | null;
|
|
50817
|
-
folder_name?: string | null;
|
|
50818
|
-
id?: string;
|
|
50819
|
-
label?: string;
|
|
50820
|
-
last_device_id?: string | null;
|
|
50821
|
-
metadata?: Json;
|
|
50822
|
-
organization_id?: string;
|
|
50823
|
-
position?: number | null;
|
|
50824
|
-
project_id?: string | null;
|
|
50825
|
-
published_to_web?: boolean;
|
|
50826
|
-
published_to_web_at?: string | null;
|
|
50827
|
-
published_to_web_by?: string | null;
|
|
50828
|
-
search_engine_indexed?: boolean | null;
|
|
50829
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50830
|
-
sync_version?: number;
|
|
50831
|
-
tags?: string[] | null;
|
|
50832
|
-
task_id?: string | null;
|
|
50833
|
-
updated_at?: string;
|
|
50834
|
-
updated_by?: string | null;
|
|
50835
|
-
version?: number;
|
|
50836
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50837
|
-
};
|
|
50838
|
-
Relationships: [
|
|
50839
|
-
{
|
|
50840
|
-
foreignKeyName: "notes_folder_id_fkey";
|
|
50841
|
-
columns: ["folder_id"];
|
|
50842
|
-
isOneToOne: false;
|
|
50843
|
-
referencedRelation: "note_folders";
|
|
50844
|
-
referencedColumns: ["id"];
|
|
50845
|
-
}
|
|
50846
|
-
];
|
|
50847
|
-
};
|
|
50848
|
-
product_capture_file: {
|
|
50849
|
-
Row: {
|
|
50850
|
-
created_at: string;
|
|
50851
|
-
created_by: string | null;
|
|
50852
|
-
custom_fields: Json;
|
|
50853
|
-
deleted_at: string | null;
|
|
50854
|
-
file_id: string;
|
|
50855
|
-
id: string;
|
|
50856
|
-
item_id: string;
|
|
50857
|
-
kind: string;
|
|
50858
|
-
metadata: Json;
|
|
50859
|
-
organization_id: string;
|
|
50860
|
-
updated_at: string;
|
|
50861
|
-
updated_by: string | null;
|
|
50862
|
-
version: number;
|
|
50863
|
-
};
|
|
50864
|
-
Insert: {
|
|
50865
|
-
created_at?: string;
|
|
50866
|
-
created_by?: string | null;
|
|
50867
|
-
custom_fields?: Json;
|
|
50868
|
-
deleted_at?: string | null;
|
|
50869
|
-
file_id: string;
|
|
50870
|
-
id?: string;
|
|
50871
|
-
item_id: string;
|
|
50872
|
-
kind: string;
|
|
50873
|
-
metadata?: Json;
|
|
50874
|
-
organization_id: string;
|
|
50875
|
-
updated_at?: string;
|
|
50876
|
-
updated_by?: string | null;
|
|
50877
|
-
version?: number;
|
|
50878
|
-
};
|
|
50879
|
-
Update: {
|
|
50880
|
-
created_at?: string;
|
|
50881
|
-
created_by?: string | null;
|
|
50882
|
-
custom_fields?: Json;
|
|
50883
|
-
deleted_at?: string | null;
|
|
50884
|
-
file_id?: string;
|
|
50885
|
-
id?: string;
|
|
50886
|
-
item_id?: string;
|
|
50887
|
-
kind?: string;
|
|
50888
|
-
metadata?: Json;
|
|
50889
|
-
organization_id?: string;
|
|
50890
|
-
updated_at?: string;
|
|
50891
|
-
updated_by?: string | null;
|
|
50892
|
-
version?: number;
|
|
50893
|
-
};
|
|
50894
|
-
Relationships: [
|
|
50895
|
-
{
|
|
50896
|
-
foreignKeyName: "product_capture_file_item_id_fkey";
|
|
50897
|
-
columns: ["item_id"];
|
|
50898
|
-
isOneToOne: false;
|
|
50899
|
-
referencedRelation: "product_capture_item";
|
|
50900
|
-
referencedColumns: ["id"];
|
|
50901
|
-
}
|
|
50902
|
-
];
|
|
50903
|
-
};
|
|
50904
|
-
product_capture_item: {
|
|
50905
|
-
Row: {
|
|
50906
|
-
code: string | null;
|
|
50907
|
-
code_source: string | null;
|
|
50908
|
-
created_at: string;
|
|
50909
|
-
created_by: string | null;
|
|
50910
|
-
custom_fields: Json;
|
|
50911
|
-
deleted_at: string | null;
|
|
50912
|
-
featured_file_id: string | null;
|
|
50913
|
-
folder_path: string;
|
|
50914
|
-
id: string;
|
|
50915
|
-
metadata: Json;
|
|
50916
|
-
notes: string;
|
|
50917
|
-
organization_id: string;
|
|
50918
|
-
published_to_web: boolean;
|
|
50919
|
-
published_to_web_at: string | null;
|
|
50920
|
-
published_to_web_by: string | null;
|
|
50921
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50922
|
-
stage: string;
|
|
50923
|
-
status: string;
|
|
50924
|
-
updated_at: string;
|
|
50925
|
-
updated_by: string | null;
|
|
50926
|
-
version: number;
|
|
50927
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
50928
|
-
};
|
|
50929
|
-
Insert: {
|
|
50930
|
-
code?: string | null;
|
|
50931
|
-
code_source?: string | null;
|
|
50932
|
-
created_at?: string;
|
|
50933
|
-
created_by?: string | null;
|
|
50934
|
-
custom_fields?: Json;
|
|
50935
|
-
deleted_at?: string | null;
|
|
50936
|
-
featured_file_id?: string | null;
|
|
50937
|
-
folder_path?: string;
|
|
50938
|
-
id?: string;
|
|
50939
|
-
metadata?: Json;
|
|
50940
|
-
notes?: string;
|
|
50941
|
-
organization_id: string;
|
|
50942
|
-
published_to_web?: boolean;
|
|
50943
|
-
published_to_web_at?: string | null;
|
|
50944
|
-
published_to_web_by?: string | null;
|
|
50945
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50946
|
-
stage?: string;
|
|
50947
|
-
status?: string;
|
|
50948
|
-
updated_at?: string;
|
|
50949
|
-
updated_by?: string | null;
|
|
50950
|
-
version?: number;
|
|
50951
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50952
|
-
};
|
|
50953
|
-
Update: {
|
|
50954
|
-
code?: string | null;
|
|
50955
|
-
code_source?: string | null;
|
|
50956
|
-
created_at?: string;
|
|
50957
|
-
created_by?: string | null;
|
|
50958
|
-
custom_fields?: Json;
|
|
50959
|
-
deleted_at?: string | null;
|
|
50960
|
-
featured_file_id?: string | null;
|
|
50961
|
-
folder_path?: string;
|
|
50962
|
-
id?: string;
|
|
50963
|
-
metadata?: Json;
|
|
50964
|
-
notes?: string;
|
|
50965
|
-
organization_id?: string;
|
|
50966
|
-
published_to_web?: boolean;
|
|
50967
|
-
published_to_web_at?: string | null;
|
|
50968
|
-
published_to_web_by?: string | null;
|
|
50969
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
50970
|
-
stage?: string;
|
|
50971
|
-
status?: string;
|
|
50972
|
-
updated_at?: string;
|
|
50973
|
-
updated_by?: string | null;
|
|
50974
|
-
version?: number;
|
|
50975
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
50976
|
-
};
|
|
50977
|
-
Relationships: [];
|
|
50978
|
-
};
|
|
50979
|
-
product_capture_payload: {
|
|
50980
|
-
Row: {
|
|
50981
|
-
created_at: string;
|
|
50982
|
-
created_by: string | null;
|
|
50983
|
-
custom_fields: Json;
|
|
50984
|
-
data: Json;
|
|
50985
|
-
id: string;
|
|
50986
|
-
item_id: string;
|
|
50987
|
-
kind: string;
|
|
50988
|
-
metadata: Json;
|
|
50989
|
-
organization_id: string;
|
|
50990
|
-
updated_at: string;
|
|
50991
|
-
updated_by: string | null;
|
|
50992
|
-
version: number;
|
|
50993
|
-
};
|
|
50994
|
-
Insert: {
|
|
50995
|
-
created_at?: string;
|
|
50996
|
-
created_by?: string | null;
|
|
50997
|
-
custom_fields?: Json;
|
|
50998
|
-
data?: Json;
|
|
50999
|
-
id?: string;
|
|
51000
|
-
item_id: string;
|
|
51001
|
-
kind: string;
|
|
51002
|
-
metadata?: Json;
|
|
51003
|
-
organization_id: string;
|
|
51004
|
-
updated_at?: string;
|
|
51005
|
-
updated_by?: string | null;
|
|
51006
|
-
version?: number;
|
|
51007
|
-
};
|
|
51008
|
-
Update: {
|
|
51009
|
-
created_at?: string;
|
|
51010
|
-
created_by?: string | null;
|
|
51011
|
-
custom_fields?: Json;
|
|
51012
|
-
data?: Json;
|
|
51013
|
-
id?: string;
|
|
51014
|
-
item_id?: string;
|
|
51015
|
-
kind?: string;
|
|
51016
|
-
metadata?: Json;
|
|
51017
|
-
organization_id?: string;
|
|
51018
|
-
updated_at?: string;
|
|
51019
|
-
updated_by?: string | null;
|
|
51020
|
-
version?: number;
|
|
51021
|
-
};
|
|
51022
|
-
Relationships: [
|
|
51023
|
-
{
|
|
51024
|
-
foreignKeyName: "product_capture_payload_item_id_fkey";
|
|
51025
|
-
columns: ["item_id"];
|
|
51026
|
-
isOneToOne: false;
|
|
51027
|
-
referencedRelation: "product_capture_item";
|
|
51028
|
-
referencedColumns: ["id"];
|
|
51029
|
-
}
|
|
51030
|
-
];
|
|
51031
|
-
};
|
|
51032
|
-
product_capture_product: {
|
|
51033
|
-
Row: {
|
|
51034
|
-
category: string;
|
|
51035
|
-
created_at: string;
|
|
51036
|
-
created_by: string | null;
|
|
51037
|
-
custom_fields: Json;
|
|
51038
|
-
id: string;
|
|
51039
|
-
intake: Json;
|
|
51040
|
-
item_id: string;
|
|
51041
|
-
metadata: Json;
|
|
51042
|
-
name: string;
|
|
51043
|
-
organization_id: string;
|
|
51044
|
-
product_index: number;
|
|
51045
|
-
realistic_used_range: string | null;
|
|
51046
|
-
research: Json | null;
|
|
51047
|
-
research_run_id: string | null;
|
|
51048
|
-
status: string;
|
|
51049
|
-
updated_at: string;
|
|
51050
|
-
updated_by: string | null;
|
|
51051
|
-
verdict: string | null;
|
|
51052
|
-
version: number;
|
|
51053
|
-
};
|
|
51054
|
-
Insert: {
|
|
51055
|
-
category?: string;
|
|
51056
|
-
created_at?: string;
|
|
51057
|
-
created_by?: string | null;
|
|
51058
|
-
custom_fields?: Json;
|
|
51059
|
-
id?: string;
|
|
51060
|
-
intake?: Json;
|
|
51061
|
-
item_id: string;
|
|
51062
|
-
metadata?: Json;
|
|
51063
|
-
name?: string;
|
|
51064
|
-
organization_id: string;
|
|
51065
|
-
product_index: number;
|
|
51066
|
-
realistic_used_range?: string | null;
|
|
51067
|
-
research?: Json | null;
|
|
51068
|
-
research_run_id?: string | null;
|
|
51069
|
-
status?: string;
|
|
51070
|
-
updated_at?: string;
|
|
51071
|
-
updated_by?: string | null;
|
|
51072
|
-
verdict?: string | null;
|
|
51073
|
-
version?: number;
|
|
51074
|
-
};
|
|
51075
|
-
Update: {
|
|
51076
|
-
category?: string;
|
|
51077
|
-
created_at?: string;
|
|
51078
|
-
created_by?: string | null;
|
|
51079
|
-
custom_fields?: Json;
|
|
51080
|
-
id?: string;
|
|
51081
|
-
intake?: Json;
|
|
51082
|
-
item_id?: string;
|
|
51083
|
-
metadata?: Json;
|
|
51084
|
-
name?: string;
|
|
51085
|
-
organization_id?: string;
|
|
51086
|
-
product_index?: number;
|
|
51087
|
-
realistic_used_range?: string | null;
|
|
51088
|
-
research?: Json | null;
|
|
51089
|
-
research_run_id?: string | null;
|
|
51090
|
-
status?: string;
|
|
51091
|
-
updated_at?: string;
|
|
51092
|
-
updated_by?: string | null;
|
|
51093
|
-
verdict?: string | null;
|
|
51094
|
-
version?: number;
|
|
51095
|
-
};
|
|
51096
|
-
Relationships: [
|
|
51097
|
-
{
|
|
51098
|
-
foreignKeyName: "product_capture_product_item_id_fkey";
|
|
51099
|
-
columns: ["item_id"];
|
|
51100
|
-
isOneToOne: false;
|
|
51101
|
-
referencedRelation: "product_capture_item";
|
|
51102
|
-
referencedColumns: ["id"];
|
|
51103
|
-
}
|
|
51104
|
-
];
|
|
51105
|
-
};
|
|
51106
|
-
product_capture_question: {
|
|
51107
|
-
Row: {
|
|
51108
|
-
answer: string | null;
|
|
51109
|
-
answered_at: string | null;
|
|
51110
|
-
context: string | null;
|
|
51111
|
-
created_at: string;
|
|
51112
|
-
created_by: string | null;
|
|
51113
|
-
custom_fields: Json;
|
|
51114
|
-
deferred_reason: string | null;
|
|
51115
|
-
id: string;
|
|
51116
|
-
item_id: string;
|
|
51117
|
-
kind: string;
|
|
51118
|
-
metadata: Json;
|
|
51119
|
-
options: Json;
|
|
51120
|
-
organization_id: string;
|
|
51121
|
-
priority: number;
|
|
51122
|
-
prompt: string;
|
|
51123
|
-
skip_count: number;
|
|
51124
|
-
source: string;
|
|
51125
|
-
status: string;
|
|
51126
|
-
updated_at: string;
|
|
51127
|
-
updated_by: string | null;
|
|
51128
|
-
version: number;
|
|
51129
|
-
};
|
|
51130
|
-
Insert: {
|
|
51131
|
-
answer?: string | null;
|
|
51132
|
-
answered_at?: string | null;
|
|
51133
|
-
context?: string | null;
|
|
51134
|
-
created_at?: string;
|
|
51135
|
-
created_by?: string | null;
|
|
51136
|
-
custom_fields?: Json;
|
|
51137
|
-
deferred_reason?: string | null;
|
|
51138
|
-
id?: string;
|
|
51139
|
-
item_id: string;
|
|
51140
|
-
kind?: string;
|
|
51141
|
-
metadata?: Json;
|
|
51142
|
-
options?: Json;
|
|
51143
|
-
organization_id: string;
|
|
51144
|
-
priority?: number;
|
|
51145
|
-
prompt: string;
|
|
51146
|
-
skip_count?: number;
|
|
51147
|
-
source?: string;
|
|
51148
|
-
status?: string;
|
|
51149
|
-
updated_at?: string;
|
|
51150
|
-
updated_by?: string | null;
|
|
51151
|
-
version?: number;
|
|
51152
|
-
};
|
|
51153
|
-
Update: {
|
|
51154
|
-
answer?: string | null;
|
|
51155
|
-
answered_at?: string | null;
|
|
51156
|
-
context?: string | null;
|
|
51157
|
-
created_at?: string;
|
|
51158
|
-
created_by?: string | null;
|
|
51159
|
-
custom_fields?: Json;
|
|
51160
|
-
deferred_reason?: string | null;
|
|
51161
|
-
id?: string;
|
|
51162
|
-
item_id?: string;
|
|
51163
|
-
kind?: string;
|
|
51164
|
-
metadata?: Json;
|
|
51165
|
-
options?: Json;
|
|
51166
|
-
organization_id?: string;
|
|
51167
|
-
priority?: number;
|
|
51168
|
-
prompt?: string;
|
|
51169
|
-
skip_count?: number;
|
|
51170
|
-
source?: string;
|
|
51171
|
-
status?: string;
|
|
51172
|
-
updated_at?: string;
|
|
51173
|
-
updated_by?: string | null;
|
|
51174
|
-
version?: number;
|
|
51175
|
-
};
|
|
51176
|
-
Relationships: [
|
|
51177
|
-
{
|
|
51178
|
-
foreignKeyName: "product_capture_question_item_id_fkey";
|
|
51179
|
-
columns: ["item_id"];
|
|
51180
|
-
isOneToOne: false;
|
|
51181
|
-
referencedRelation: "product_capture_item";
|
|
51182
|
-
referencedColumns: ["id"];
|
|
51183
|
-
}
|
|
51184
|
-
];
|
|
51185
|
-
};
|
|
51186
|
-
schema_templates: {
|
|
51187
|
-
Row: {
|
|
51188
|
-
created_at: string;
|
|
51189
|
-
deleted_at: string | null;
|
|
51190
|
-
description: string | null;
|
|
51191
|
-
fields: Json;
|
|
51192
|
-
id: string;
|
|
51193
|
-
metadata: Json;
|
|
51194
|
-
template_name: string;
|
|
51195
|
-
version: number;
|
|
51196
|
-
};
|
|
51197
|
-
Insert: {
|
|
51198
|
-
created_at?: string;
|
|
51199
|
-
deleted_at?: string | null;
|
|
51200
|
-
description?: string | null;
|
|
51201
|
-
fields: Json;
|
|
51202
|
-
id?: string;
|
|
51203
|
-
metadata?: Json;
|
|
51204
|
-
template_name: string;
|
|
51205
|
-
version?: number;
|
|
51206
|
-
};
|
|
51207
|
-
Update: {
|
|
51208
|
-
created_at?: string;
|
|
51209
|
-
deleted_at?: string | null;
|
|
51210
|
-
description?: string | null;
|
|
51211
|
-
fields?: Json;
|
|
51212
|
-
id?: string;
|
|
51213
|
-
metadata?: Json;
|
|
51214
|
-
template_name?: string;
|
|
51215
|
-
version?: number;
|
|
51216
|
-
};
|
|
51217
|
-
Relationships: [];
|
|
51218
|
-
};
|
|
51219
|
-
udt_dataset_template_fields: {
|
|
51220
|
-
Row: {
|
|
51221
|
-
created_at: string;
|
|
51222
|
-
custom_fields: Json;
|
|
51223
|
-
data_type: Database["public"]["Enums"]["field_data_type"];
|
|
51224
|
-
default_value: Json | null;
|
|
51225
|
-
display_name: string;
|
|
51226
|
-
field_name: string;
|
|
51227
|
-
field_order: number;
|
|
51228
|
-
id: string;
|
|
51229
|
-
is_required: boolean;
|
|
51230
|
-
metadata: Json;
|
|
51231
|
-
organization_id: string;
|
|
51232
|
-
template_id: string;
|
|
51233
|
-
updated_at: string;
|
|
51234
|
-
validation_rules: Json | null;
|
|
51235
|
-
};
|
|
51236
|
-
Insert: {
|
|
51237
|
-
created_at?: string;
|
|
51238
|
-
custom_fields?: Json;
|
|
51239
|
-
data_type?: Database["public"]["Enums"]["field_data_type"];
|
|
51240
|
-
default_value?: Json | null;
|
|
51241
|
-
display_name: string;
|
|
51242
|
-
field_name: string;
|
|
51243
|
-
field_order?: number;
|
|
51244
|
-
id?: string;
|
|
51245
|
-
is_required?: boolean;
|
|
51246
|
-
metadata?: Json;
|
|
51247
|
-
organization_id: string;
|
|
51248
|
-
template_id: string;
|
|
51249
|
-
updated_at?: string;
|
|
51250
|
-
validation_rules?: Json | null;
|
|
51251
|
-
};
|
|
51252
|
-
Update: {
|
|
51253
|
-
created_at?: string;
|
|
51254
|
-
custom_fields?: Json;
|
|
51255
|
-
data_type?: Database["public"]["Enums"]["field_data_type"];
|
|
51256
|
-
default_value?: Json | null;
|
|
51257
|
-
display_name?: string;
|
|
51258
|
-
field_name?: string;
|
|
51259
|
-
field_order?: number;
|
|
51260
|
-
id?: string;
|
|
51261
|
-
is_required?: boolean;
|
|
51262
|
-
metadata?: Json;
|
|
51263
|
-
organization_id?: string;
|
|
51264
|
-
template_id?: string;
|
|
51265
|
-
updated_at?: string;
|
|
51266
|
-
validation_rules?: Json | null;
|
|
51267
|
-
};
|
|
51268
|
-
Relationships: [
|
|
51269
|
-
{
|
|
51270
|
-
foreignKeyName: "udt_dataset_template_fields_template_id_fkey";
|
|
51271
|
-
columns: ["template_id"];
|
|
51272
|
-
isOneToOne: false;
|
|
51273
|
-
referencedRelation: "udt_dataset_templates";
|
|
51274
|
-
referencedColumns: ["id"];
|
|
51275
|
-
}
|
|
51276
|
-
];
|
|
51277
|
-
};
|
|
51278
|
-
udt_dataset_templates: {
|
|
51279
|
-
Row: {
|
|
51280
|
-
created_at: string;
|
|
51281
|
-
created_by: string | null;
|
|
51282
|
-
custom_fields: Json;
|
|
51283
|
-
deleted_at: string | null;
|
|
51284
|
-
description: string;
|
|
51285
|
-
id: string;
|
|
51286
|
-
is_active: boolean;
|
|
51287
|
-
metadata: Json;
|
|
51288
|
-
name: string;
|
|
51289
|
-
organization_id: string;
|
|
51290
|
-
updated_at: string;
|
|
51291
|
-
updated_by: string | null;
|
|
51292
|
-
version: number;
|
|
51293
|
-
};
|
|
51294
|
-
Insert: {
|
|
51295
|
-
created_at?: string;
|
|
51296
|
-
created_by?: string | null;
|
|
51297
|
-
custom_fields?: Json;
|
|
51298
|
-
deleted_at?: string | null;
|
|
51299
|
-
description?: string;
|
|
51300
|
-
id?: string;
|
|
51301
|
-
is_active?: boolean;
|
|
51302
|
-
metadata?: Json;
|
|
51303
|
-
name: string;
|
|
51304
|
-
organization_id: string;
|
|
51305
|
-
updated_at?: string;
|
|
51306
|
-
updated_by?: string | null;
|
|
51307
|
-
version?: number;
|
|
51308
|
-
};
|
|
51309
|
-
Update: {
|
|
51310
|
-
created_at?: string;
|
|
51311
|
-
created_by?: string | null;
|
|
51312
|
-
custom_fields?: Json;
|
|
51313
|
-
deleted_at?: string | null;
|
|
51314
|
-
description?: string;
|
|
51315
|
-
id?: string;
|
|
51316
|
-
is_active?: boolean;
|
|
51317
|
-
metadata?: Json;
|
|
51318
|
-
name?: string;
|
|
51319
|
-
organization_id?: string;
|
|
51320
|
-
updated_at?: string;
|
|
51321
|
-
updated_by?: string | null;
|
|
51322
|
-
version?: number;
|
|
51323
|
-
};
|
|
51324
|
-
Relationships: [];
|
|
51325
|
-
};
|
|
51326
|
-
udt_document_snapshots: {
|
|
51327
|
-
Row: {
|
|
51328
|
-
created_at: string;
|
|
51329
|
-
created_by: string | null;
|
|
51330
|
-
custom_fields: Json;
|
|
51331
|
-
document_id: string;
|
|
51332
|
-
id: string;
|
|
51333
|
-
label: string | null;
|
|
51334
|
-
metadata: Json;
|
|
51335
|
-
origin: string;
|
|
51336
|
-
snapshot: Json;
|
|
51337
|
-
};
|
|
51338
|
-
Insert: {
|
|
51339
|
-
created_at?: string;
|
|
51340
|
-
created_by?: string | null;
|
|
51341
|
-
custom_fields?: Json;
|
|
51342
|
-
document_id: string;
|
|
51343
|
-
id?: string;
|
|
51344
|
-
label?: string | null;
|
|
51345
|
-
metadata?: Json;
|
|
51346
|
-
origin?: string;
|
|
51347
|
-
snapshot: Json;
|
|
51348
|
-
};
|
|
51349
|
-
Update: {
|
|
51350
|
-
created_at?: string;
|
|
51351
|
-
created_by?: string | null;
|
|
51352
|
-
custom_fields?: Json;
|
|
51353
|
-
document_id?: string;
|
|
51354
|
-
id?: string;
|
|
51355
|
-
label?: string | null;
|
|
51356
|
-
metadata?: Json;
|
|
51357
|
-
origin?: string;
|
|
51358
|
-
snapshot?: Json;
|
|
51359
|
-
};
|
|
51360
|
-
Relationships: [
|
|
51361
|
-
{
|
|
51362
|
-
foreignKeyName: "udt_document_snapshots_document_id_fkey";
|
|
51363
|
-
columns: ["document_id"];
|
|
51364
|
-
isOneToOne: false;
|
|
51365
|
-
referencedRelation: "udt_documents";
|
|
51366
|
-
referencedColumns: ["id"];
|
|
51367
|
-
}
|
|
51368
|
-
];
|
|
51369
|
-
};
|
|
51370
|
-
udt_documents: {
|
|
51371
|
-
Row: {
|
|
51372
|
-
created_at: string;
|
|
51373
|
-
created_by: string;
|
|
51374
|
-
custom_fields: Json;
|
|
51375
|
-
deleted_at: string | null;
|
|
51376
|
-
description: string | null;
|
|
51377
|
-
document_name: string;
|
|
51378
|
-
id: string;
|
|
51379
|
-
is_public: boolean;
|
|
51380
|
-
metadata: Json | null;
|
|
51381
|
-
organization_id: string | null;
|
|
51382
|
-
original_file_id: string | null;
|
|
51383
|
-
project_id: string | null;
|
|
51384
|
-
published_to_web: boolean;
|
|
51385
|
-
published_to_web_at: string | null;
|
|
51386
|
-
published_to_web_by: string | null;
|
|
51387
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51388
|
-
source: Database["public"]["Enums"]["document_source"];
|
|
51389
|
-
task_id: string | null;
|
|
51390
|
-
updated_at: string;
|
|
51391
|
-
updated_by: string | null;
|
|
51392
|
-
user_id: string;
|
|
51393
|
-
version: number;
|
|
51394
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
51395
|
-
};
|
|
51396
|
-
Insert: {
|
|
51397
|
-
created_at?: string;
|
|
51398
|
-
created_by: string;
|
|
51399
|
-
custom_fields?: Json;
|
|
51400
|
-
deleted_at?: string | null;
|
|
51401
|
-
description?: string | null;
|
|
51402
|
-
document_name: string;
|
|
51403
|
-
id?: string;
|
|
51404
|
-
is_public?: boolean;
|
|
51405
|
-
metadata?: Json | null;
|
|
51406
|
-
organization_id?: string | null;
|
|
51407
|
-
original_file_id?: string | null;
|
|
51408
|
-
project_id?: string | null;
|
|
51409
|
-
published_to_web?: boolean;
|
|
51410
|
-
published_to_web_at?: string | null;
|
|
51411
|
-
published_to_web_by?: string | null;
|
|
51412
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51413
|
-
source?: Database["public"]["Enums"]["document_source"];
|
|
51414
|
-
task_id?: string | null;
|
|
51415
|
-
updated_at?: string;
|
|
51416
|
-
updated_by?: string | null;
|
|
51417
|
-
user_id?: string;
|
|
51418
|
-
version?: number;
|
|
51419
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
51420
|
-
};
|
|
51421
|
-
Update: {
|
|
51422
|
-
created_at?: string;
|
|
51423
|
-
created_by?: string;
|
|
51424
|
-
custom_fields?: Json;
|
|
51425
|
-
deleted_at?: string | null;
|
|
51426
|
-
description?: string | null;
|
|
51427
|
-
document_name?: string;
|
|
51428
|
-
id?: string;
|
|
51429
|
-
is_public?: boolean;
|
|
51430
|
-
metadata?: Json | null;
|
|
51431
|
-
organization_id?: string | null;
|
|
51432
|
-
original_file_id?: string | null;
|
|
51433
|
-
project_id?: string | null;
|
|
51434
|
-
published_to_web?: boolean;
|
|
51435
|
-
published_to_web_at?: string | null;
|
|
51436
|
-
published_to_web_by?: string | null;
|
|
51437
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51438
|
-
source?: Database["public"]["Enums"]["document_source"];
|
|
51439
|
-
task_id?: string | null;
|
|
51440
|
-
updated_at?: string;
|
|
51441
|
-
updated_by?: string | null;
|
|
51442
|
-
user_id?: string;
|
|
51443
|
-
version?: number;
|
|
51444
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
51445
|
-
};
|
|
51446
|
-
Relationships: [];
|
|
51447
|
-
};
|
|
51448
|
-
udt_workbook_snapshots: {
|
|
51449
|
-
Row: {
|
|
51450
|
-
created_at: string;
|
|
51451
|
-
created_by: string | null;
|
|
51452
|
-
custom_fields: Json;
|
|
51453
|
-
id: string;
|
|
51454
|
-
label: string | null;
|
|
51455
|
-
metadata: Json;
|
|
51456
|
-
organization_id: string;
|
|
51457
|
-
origin: string;
|
|
51458
|
-
snapshot: Json;
|
|
51459
|
-
workbook_id: string;
|
|
51460
|
-
};
|
|
51461
|
-
Insert: {
|
|
51462
|
-
created_at?: string;
|
|
51463
|
-
created_by?: string | null;
|
|
51464
|
-
custom_fields?: Json;
|
|
51465
|
-
id?: string;
|
|
51466
|
-
label?: string | null;
|
|
51467
|
-
metadata?: Json;
|
|
51468
|
-
organization_id: string;
|
|
51469
|
-
origin?: string;
|
|
51470
|
-
snapshot: Json;
|
|
51471
|
-
workbook_id: string;
|
|
51472
|
-
};
|
|
51473
|
-
Update: {
|
|
51474
|
-
created_at?: string;
|
|
51475
|
-
created_by?: string | null;
|
|
51476
|
-
custom_fields?: Json;
|
|
51477
|
-
id?: string;
|
|
51478
|
-
label?: string | null;
|
|
51479
|
-
metadata?: Json;
|
|
51480
|
-
organization_id?: string;
|
|
51481
|
-
origin?: string;
|
|
51482
|
-
snapshot?: Json;
|
|
51483
|
-
workbook_id?: string;
|
|
51484
|
-
};
|
|
51485
|
-
Relationships: [
|
|
51486
|
-
{
|
|
51487
|
-
foreignKeyName: "udt_workbook_snapshots_workbook_id_fkey";
|
|
51488
|
-
columns: ["workbook_id"];
|
|
51489
|
-
isOneToOne: false;
|
|
51490
|
-
referencedRelation: "udt_workbooks";
|
|
51491
|
-
referencedColumns: ["id"];
|
|
51492
|
-
}
|
|
51493
|
-
];
|
|
51494
|
-
};
|
|
51495
|
-
udt_workbooks: {
|
|
51496
|
-
Row: {
|
|
51497
|
-
created_at: string;
|
|
51498
|
-
created_by: string;
|
|
51499
|
-
custom_fields: Json;
|
|
51500
|
-
deleted_at: string | null;
|
|
51501
|
-
description: string | null;
|
|
51502
|
-
id: string;
|
|
51503
|
-
is_public: boolean;
|
|
51504
|
-
metadata: Json;
|
|
51505
|
-
organization_id: string;
|
|
51506
|
-
original_file_id: string | null;
|
|
51507
|
-
project_id: string | null;
|
|
51508
|
-
published_to_web: boolean;
|
|
51509
|
-
published_to_web_at: string | null;
|
|
51510
|
-
published_to_web_by: string | null;
|
|
51511
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51512
|
-
source: Database["public"]["Enums"]["workbook_source"];
|
|
51513
|
-
task_id: string | null;
|
|
51514
|
-
updated_at: string;
|
|
51515
|
-
updated_by: string | null;
|
|
51516
|
-
user_id: string;
|
|
51517
|
-
version: number;
|
|
51518
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
51519
|
-
workbook_name: string;
|
|
51520
|
-
};
|
|
51521
|
-
Insert: {
|
|
51522
|
-
created_at?: string;
|
|
51523
|
-
created_by: string;
|
|
51524
|
-
custom_fields?: Json;
|
|
51525
|
-
deleted_at?: string | null;
|
|
51526
|
-
description?: string | null;
|
|
51527
|
-
id?: string;
|
|
51528
|
-
is_public?: boolean;
|
|
51529
|
-
metadata?: Json;
|
|
51530
|
-
organization_id: string;
|
|
51531
|
-
original_file_id?: string | null;
|
|
51532
|
-
project_id?: string | null;
|
|
51533
|
-
published_to_web?: boolean;
|
|
51534
|
-
published_to_web_at?: string | null;
|
|
51535
|
-
published_to_web_by?: string | null;
|
|
51536
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51537
|
-
source?: Database["public"]["Enums"]["workbook_source"];
|
|
51538
|
-
task_id?: string | null;
|
|
51539
|
-
updated_at?: string;
|
|
51540
|
-
updated_by?: string | null;
|
|
51541
|
-
user_id?: string;
|
|
51542
|
-
version?: number;
|
|
51543
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
51544
|
-
workbook_name: string;
|
|
51545
|
-
};
|
|
51546
|
-
Update: {
|
|
51547
|
-
created_at?: string;
|
|
51548
|
-
created_by?: string;
|
|
51549
|
-
custom_fields?: Json;
|
|
51550
|
-
deleted_at?: string | null;
|
|
51551
|
-
description?: string | null;
|
|
51552
|
-
id?: string;
|
|
51553
|
-
is_public?: boolean;
|
|
51554
|
-
metadata?: Json;
|
|
51555
|
-
organization_id?: string;
|
|
51556
|
-
original_file_id?: string | null;
|
|
51557
|
-
project_id?: string | null;
|
|
51558
|
-
published_to_web?: boolean;
|
|
51559
|
-
published_to_web_at?: string | null;
|
|
51560
|
-
published_to_web_by?: string | null;
|
|
51561
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51562
|
-
source?: Database["public"]["Enums"]["workbook_source"];
|
|
51563
|
-
task_id?: string | null;
|
|
51564
|
-
updated_at?: string;
|
|
51565
|
-
updated_by?: string | null;
|
|
51566
|
-
user_id?: string;
|
|
51567
|
-
version?: number;
|
|
51568
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
51569
|
-
workbook_name?: string;
|
|
51570
|
-
};
|
|
51571
|
-
Relationships: [];
|
|
51572
|
-
};
|
|
51573
|
-
working_documents: {
|
|
51574
|
-
Row: {
|
|
51575
|
-
content: string;
|
|
51576
|
-
created_at: string;
|
|
51577
|
-
created_by: string | null;
|
|
51578
|
-
custom_fields: Json;
|
|
51579
|
-
deleted_at: string | null;
|
|
51580
|
-
id: string;
|
|
51581
|
-
kind: string;
|
|
51582
|
-
metadata: Json;
|
|
51583
|
-
organization_id: string;
|
|
51584
|
-
published_to_web: boolean;
|
|
51585
|
-
published_to_web_at: string | null;
|
|
51586
|
-
published_to_web_by: string | null;
|
|
51587
|
-
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51588
|
-
title: string;
|
|
51589
|
-
updated_at: string;
|
|
51590
|
-
updated_by: string | null;
|
|
51591
|
-
version: number;
|
|
51592
|
-
visibility: Database["platform"]["Enums"]["visibility"];
|
|
51593
|
-
};
|
|
51594
|
-
Insert: {
|
|
51595
|
-
content?: string;
|
|
51596
|
-
created_at?: string;
|
|
51597
|
-
created_by?: string | null;
|
|
51598
|
-
custom_fields?: Json;
|
|
51599
|
-
deleted_at?: string | null;
|
|
51600
|
-
id?: string;
|
|
51601
|
-
kind?: string;
|
|
51602
|
-
metadata?: Json;
|
|
51603
|
-
organization_id: string;
|
|
51604
|
-
published_to_web?: boolean;
|
|
51605
|
-
published_to_web_at?: string | null;
|
|
51606
|
-
published_to_web_by?: string | null;
|
|
51607
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51608
|
-
title?: string;
|
|
51609
|
-
updated_at?: string;
|
|
51610
|
-
updated_by?: string | null;
|
|
51611
|
-
version?: number;
|
|
51612
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
51613
|
-
};
|
|
51614
|
-
Update: {
|
|
51615
|
-
content?: string;
|
|
51616
|
-
created_at?: string;
|
|
51617
|
-
created_by?: string | null;
|
|
51618
|
-
custom_fields?: Json;
|
|
51619
|
-
deleted_at?: string | null;
|
|
51620
|
-
id?: string;
|
|
51621
|
-
kind?: string;
|
|
51622
|
-
metadata?: Json;
|
|
51623
|
-
organization_id?: string;
|
|
51624
|
-
published_to_web?: boolean;
|
|
51625
|
-
published_to_web_at?: string | null;
|
|
51626
|
-
published_to_web_by?: string | null;
|
|
51627
|
-
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
51628
|
-
title?: string;
|
|
51629
|
-
updated_at?: string;
|
|
51630
|
-
updated_by?: string | null;
|
|
51631
|
-
version?: number;
|
|
51632
|
-
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
51633
|
-
};
|
|
51634
|
-
Relationships: [];
|
|
51635
|
-
};
|
|
51636
|
-
};
|
|
51637
|
-
Views: {
|
|
51638
|
-
pick_list_item_live: {
|
|
51639
|
-
Row: {
|
|
51640
|
-
created_at: string | null;
|
|
51641
|
-
description: string | null;
|
|
51642
|
-
group_name: string | null;
|
|
51643
|
-
help_text: string | null;
|
|
51644
|
-
icon_name: string | null;
|
|
51645
|
-
id: string | null;
|
|
51646
|
-
label: string | null;
|
|
51647
|
-
list_id: string | null;
|
|
51648
|
-
lives_in: string | null;
|
|
51649
|
-
organization_id: string | null;
|
|
51650
|
-
updated_at: string | null;
|
|
51651
|
-
};
|
|
51652
|
-
Relationships: [];
|
|
51653
|
-
};
|
|
51654
|
-
pick_list_live: {
|
|
51655
|
-
Row: {
|
|
51656
|
-
created_at: string | null;
|
|
51657
|
-
description: string | null;
|
|
51658
|
-
id: string | null;
|
|
51659
|
-
is_public: boolean | null;
|
|
51660
|
-
list_name: string | null;
|
|
51661
|
-
lives_in: string | null;
|
|
51662
|
-
organization_id: string | null;
|
|
51663
|
-
public_read: boolean | null;
|
|
51664
|
-
updated_at: string | null;
|
|
51665
|
-
user_id: string | null;
|
|
51666
|
-
};
|
|
51667
|
-
Insert: {
|
|
51668
|
-
created_at?: string | null;
|
|
51669
|
-
description?: never;
|
|
51670
|
-
id?: string | null;
|
|
51671
|
-
is_public?: never;
|
|
51672
|
-
list_name?: never;
|
|
51673
|
-
lives_in?: never;
|
|
51674
|
-
organization_id?: string | null;
|
|
51675
|
-
public_read?: never;
|
|
51676
|
-
updated_at?: string | null;
|
|
51677
|
-
user_id?: string | null;
|
|
51678
|
-
};
|
|
51679
|
-
Update: {
|
|
51680
|
-
created_at?: string | null;
|
|
51681
|
-
description?: never;
|
|
51682
|
-
id?: string | null;
|
|
51683
|
-
is_public?: never;
|
|
51684
|
-
list_name?: never;
|
|
51685
|
-
lives_in?: never;
|
|
51686
|
-
organization_id?: string | null;
|
|
51687
|
-
public_read?: never;
|
|
51688
|
-
updated_at?: string | null;
|
|
51689
|
-
user_id?: string | null;
|
|
51690
|
-
};
|
|
51691
|
-
Relationships: [];
|
|
51692
|
-
};
|
|
51693
|
-
};
|
|
51694
|
-
Functions: {
|
|
51695
|
-
_udt_display_spec: {
|
|
51696
|
-
Args: {
|
|
51697
|
-
p_raw: Json;
|
|
51698
|
-
};
|
|
51699
|
-
Returns: Json;
|
|
51700
|
-
};
|
|
51701
|
-
_udt_row_granted: {
|
|
51702
|
-
Args: {
|
|
51703
|
-
p_row_id: string;
|
|
51704
|
-
};
|
|
51705
|
-
Returns: boolean;
|
|
51706
|
-
};
|
|
51707
|
-
_udt_row_words: {
|
|
51708
|
-
Args: {
|
|
51709
|
-
p_display?: Json;
|
|
51710
|
-
p_hop?: number;
|
|
51711
|
-
p_organization_id: string;
|
|
51712
|
-
p_row_id: string;
|
|
51713
|
-
};
|
|
51714
|
-
Returns: string;
|
|
51715
|
-
};
|
|
51716
|
-
dataset_readable_by: {
|
|
51717
|
-
Args: {
|
|
51718
|
-
p_dataset_id: string;
|
|
51719
|
-
p_user: string;
|
|
51720
|
-
};
|
|
51721
|
-
Returns: boolean;
|
|
51722
|
-
};
|
|
51723
|
-
note_folder_counts: {
|
|
51724
|
-
Args: {
|
|
51725
|
-
p_scope?: string;
|
|
51726
|
-
};
|
|
51727
|
-
Returns: {
|
|
51728
|
-
folder_name: string;
|
|
51729
|
-
note_count: number;
|
|
51730
|
-
}[];
|
|
51731
|
-
};
|
|
51732
|
-
note_folder_get_or_create: {
|
|
51733
|
-
Args: {
|
|
51734
|
-
p_name: string;
|
|
51735
|
-
p_organization_id: string;
|
|
51736
|
-
};
|
|
51737
|
-
Returns: string;
|
|
51738
|
-
};
|
|
51739
|
-
older_table_moved_to: {
|
|
51740
|
-
Args: {
|
|
51741
|
-
p_id: string;
|
|
51742
|
-
};
|
|
51743
|
-
Returns: Json;
|
|
51744
|
-
};
|
|
51745
|
-
udt_dataset_access: {
|
|
51746
|
-
Args: {
|
|
51747
|
-
p_required?: Database["public"]["Enums"]["permission_level"];
|
|
51748
|
-
p_table_id: string;
|
|
51749
|
-
};
|
|
51750
|
-
Returns: boolean;
|
|
51751
|
-
};
|
|
51752
|
-
udt_dataset_archive: {
|
|
51753
|
-
Args: {
|
|
51754
|
-
p_moved_to_table_id: string;
|
|
51755
|
-
p_reason?: string;
|
|
51756
|
-
p_table_id: string;
|
|
51757
|
-
};
|
|
51758
|
-
Returns: Json;
|
|
51759
|
-
};
|
|
51760
|
-
udt_dataset_unarchive: {
|
|
51761
|
-
Args: {
|
|
51762
|
-
p_table_id: string;
|
|
51763
|
-
};
|
|
51764
|
-
Returns: Json;
|
|
51765
|
-
};
|
|
51766
|
-
udt_refuse_row_in_trash: {
|
|
51767
|
-
Args: never;
|
|
51768
|
-
Returns: undefined;
|
|
51769
|
-
};
|
|
51770
|
-
udt_row_words_many: {
|
|
51771
|
-
Args: {
|
|
51772
|
-
p_display: Json;
|
|
51773
|
-
p_organization_id: string;
|
|
51774
|
-
p_row_ids: string[];
|
|
51775
|
-
};
|
|
51776
|
-
Returns: {
|
|
51777
|
-
row_id: string;
|
|
51778
|
-
words: string;
|
|
51779
|
-
}[];
|
|
51780
|
-
};
|
|
51781
|
-
udt_structured_list_archive: {
|
|
51782
|
-
Args: {
|
|
51783
|
-
p_list_id: string;
|
|
51784
|
-
p_moved_to_table_id: string;
|
|
51785
|
-
p_reason?: string;
|
|
51786
|
-
};
|
|
51787
|
-
Returns: Json;
|
|
51788
|
-
};
|
|
51789
|
-
udt_structured_list_unarchive: {
|
|
51790
|
-
Args: {
|
|
51791
|
-
p_list_id: string;
|
|
51792
|
-
};
|
|
51793
|
-
Returns: Json;
|
|
51794
|
-
};
|
|
51795
|
-
};
|
|
51796
|
-
Enums: {
|
|
51797
|
-
[_ in never]: never;
|
|
51798
|
-
};
|
|
51799
|
-
CompositeTypes: {
|
|
51800
|
-
[_ in never]: never;
|
|
51801
|
-
};
|
|
51802
|
-
};
|
|
51803
51235
|
};
|
|
51804
51236
|
/** The name every call site imports — the same name the full platform file uses. */
|
|
51805
51237
|
export type Database = ChatDatabase;
|