@periskope/types 0.6.187 → 0.6.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rules.types.d.ts +1 -0
- package/dist/rules.types.js +1 -0
- package/dist/supabase.columns.d.ts +19 -0
- package/dist/supabase.columns.js +290 -0
- package/dist/supabase.types.d.ts +150 -17
- package/dist/types.d.ts +27 -0
- package/mod_json_type.ps1 +108 -108
- package/mod_json_type.sh +22 -22
- package/package.json +1 -1
- package/rules.types.ts +2 -0
- package/supabase.types.ts +67 -24
- package/tsconfig.json +105 -105
- package/types.ts +29 -0
- package/update_package.ps1 +21 -21
package/dist/rules.types.d.ts
CHANGED
|
@@ -296,6 +296,7 @@ export declare const ActionNameMap: Record<Action['type'], {
|
|
|
296
296
|
required: boolean;
|
|
297
297
|
description?: string;
|
|
298
298
|
}>;
|
|
299
|
+
info?: string;
|
|
299
300
|
validTriggers: Rule['trigger'][];
|
|
300
301
|
}>;
|
|
301
302
|
type editorVariablesList = 'chat.assigned_to' | 'chat.chat_id' | 'chat.chat_name' | 'chat.chat_type' | 'chat.org_phone' | 'chat.org_id' | 'chat.group_description' | 'ticket.assignee' | 'ticket.due_date' | 'ticket.priority' | 'ticket.status' | 'ticket.subject' | 'ticket.ticket_id' | 'ticket.raised_by' | 'ticket.created_at' | 'sender.is_internal' | 'sender.is_admin' | 'sender.contact_name' | 'sender.contact_id' | 'reaction.sender_id' | 'reaction.reaction' | 'message.message_id' | 'message.timestamp' | 'message.sender_phone' | 'message.message_type' | 'message.media' | 'message.body';
|
package/dist/rules.types.js
CHANGED
|
@@ -922,6 +922,7 @@ exports.ActionNameMap = {
|
|
|
922
922
|
close_ticket: {
|
|
923
923
|
title: 'Close Ticket',
|
|
924
924
|
description: 'Close a ticket',
|
|
925
|
+
info: 'This action will close the ticket. This doesn\'t check for mandatory ticket custom properties.',
|
|
925
926
|
inputs: {
|
|
926
927
|
closing_note: {
|
|
927
928
|
id: 'closing_note',
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const TableColumns: {
|
|
2
|
+
readonly tbl_broadcast_messages: readonly ["broadcast_id", "created_at", "chat_ids", "scheduled_at", "org_id", "message_payload", "completed_at", "performed_by"];
|
|
3
|
+
readonly tbl_broadcast_templates: readonly ["template_id", "created_at", "template_name", "org_id", "updated_at", "message_payload"];
|
|
4
|
+
readonly tbl_chat_access: readonly ["org_id", "email", "chat_id", "has_access", "last_read_timestamp", "active_phone"];
|
|
5
|
+
readonly tbl_chat_messages: readonly ["message_id", "org_id", "ack", "author", "body", "broadcast", "device_type", "duration", "forwarding_score", "from", "from_me", "has_media", "has_quoted_msg", "has_reaction", "id", "invite_v4", "is_ephemeral", "is_forwarded", "is_gif", "is_starred", "is_status", "links", "location", "media_key", "mentioned_ids", "order_id", "raw_data", "to", "token", "message_type", "vcards", "chat_id", "timestamp", "org_phone", "broadcast_id", "is_deleted", "media", "performed_by", "prev_body", "quoted_message_id", "sent_message_id", "delivery_info", "updated_at", "message_ticket_id"];
|
|
6
|
+
readonly tbl_chat_notifications: readonly ["org_id", "notification_id", "chat_id", "author", "body", "id", "recipientids", "type", "timestamp", "org_phone"];
|
|
7
|
+
readonly tbl_chat_participants: readonly ["org_id", "chat_id", "contact_id", "id", "is_admin", "is_super_admin", "org_phone"];
|
|
8
|
+
readonly tbl_chat_reactions: readonly ["org_id", "message_id", "ack", "id", "orphan", "reaction", "read", "reaction_id", "timestamp", "msg_id", "orphan_reason", "sender_id", "org_phone"];
|
|
9
|
+
readonly tbl_chat_tickets: readonly ["created_at", "ticket_id", "subject", "status", "assignee", "assigned_by", "chat_id", "due_date", "org_id", "label_ids", "quoted_message_id", "raised_by", "priority", "last_updated_at", "is_deleted"];
|
|
10
|
+
readonly tbl_chats: readonly ["org_id", "chat_id", "archived", "id", "is_group", "is_muted", "is_read_only", "mute_expiration", "name", "pinned", "unread_count", "group_metadata", "chat_image", "timestamp", "invite_link", "org_phone", "label_ids", "updated_at"];
|
|
11
|
+
readonly tbl_contacts: readonly ["org_id", "contact_id", "id", "number", "is_business", "is_enterprise", "name", "pushname", "short_name", "contact_type", "is_me", "is_user", "is_group", "is_wa_contact", "is_my_contact", "is_blocked", "contact_image", "contact_color", "business_profile", "verified_name", "is_internal", "label_ids", "verified_level", "updated_at"];
|
|
12
|
+
readonly tbl_org: readonly ["org_id", "created_at", "org_image", "org_name", "support_link", "org_metadata", "org_plan", "stripe_customer_details", "stripe_customer_id", "stripe_subscription_details"];
|
|
13
|
+
readonly tbl_org_labels: readonly ["label_id", "created_at", "org_id", "name", "color", "type"];
|
|
14
|
+
readonly tbl_org_members: readonly ["created_at", "email", "user_id", "invited_at", "invited_by", "org_id", "role", "member_image", "member_name", "is_active", "member_color"];
|
|
15
|
+
readonly tbl_org_phones: readonly ["org_id", "org_phone", "created_at", "updated_at", "wa_state", "phone_id", "qr_code", "phone_image", "phone_name", "server_ip"];
|
|
16
|
+
readonly view_broadcast_logs: readonly ["broadcast_id", "org_id", "message_payload", "created_at", "total_chats", "sent_chats", "failed_chats", "total_member_count", "delivered_member_count", "read_member_count", "completed_at", "scheduled_at", "performed_by", "delivery_percentage", "read_percentage"];
|
|
17
|
+
readonly view_chat_messages: readonly ["message_id", "org_id", "ack", "author", "body", "from_me", "invite_v4", "links", "location", "mentioned_ids", "message_type", "vcards", "chat_id", "timestamp", "org_phone", "broadcast_id", "is_deleted", "media", "performed_by", "prev_body", "quoted_message_id", "sender_phone", "sent_message_id", "delivery_info", "updated_at", "message_ticket_id", "unique_id", "is_gif", "is_forwarded", "is_starred"];
|
|
18
|
+
readonly view_chats: readonly ["org_id", "chat_id", "org_phone", "chat_image", "invite_link", "label_ids", "updated_at", "chat_name", "latest_message", "message_unread_count", "member_count", "chat_type", "chat_access", "has_access", "last_read_timestamp", "chat_org_phones", "active_phone", "group_description"];
|
|
19
|
+
};
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TableColumns = void 0;
|
|
4
|
+
exports.TableColumns = {
|
|
5
|
+
"tbl_broadcast_messages": [
|
|
6
|
+
"broadcast_id",
|
|
7
|
+
"created_at",
|
|
8
|
+
"chat_ids",
|
|
9
|
+
"scheduled_at",
|
|
10
|
+
"org_id",
|
|
11
|
+
"message_payload",
|
|
12
|
+
"completed_at",
|
|
13
|
+
"performed_by"
|
|
14
|
+
],
|
|
15
|
+
"tbl_broadcast_templates": [
|
|
16
|
+
"template_id",
|
|
17
|
+
"created_at",
|
|
18
|
+
"template_name",
|
|
19
|
+
"org_id",
|
|
20
|
+
"updated_at",
|
|
21
|
+
"message_payload"
|
|
22
|
+
],
|
|
23
|
+
"tbl_chat_access": [
|
|
24
|
+
"org_id",
|
|
25
|
+
"email",
|
|
26
|
+
"chat_id",
|
|
27
|
+
"has_access",
|
|
28
|
+
"last_read_timestamp",
|
|
29
|
+
"active_phone"
|
|
30
|
+
],
|
|
31
|
+
"tbl_chat_messages": [
|
|
32
|
+
"message_id",
|
|
33
|
+
"org_id",
|
|
34
|
+
"ack",
|
|
35
|
+
"author",
|
|
36
|
+
"body",
|
|
37
|
+
"broadcast",
|
|
38
|
+
"device_type",
|
|
39
|
+
"duration",
|
|
40
|
+
"forwarding_score",
|
|
41
|
+
"from",
|
|
42
|
+
"from_me",
|
|
43
|
+
"has_media",
|
|
44
|
+
"has_quoted_msg",
|
|
45
|
+
"has_reaction",
|
|
46
|
+
"id",
|
|
47
|
+
"invite_v4",
|
|
48
|
+
"is_ephemeral",
|
|
49
|
+
"is_forwarded",
|
|
50
|
+
"is_gif",
|
|
51
|
+
"is_starred",
|
|
52
|
+
"is_status",
|
|
53
|
+
"links",
|
|
54
|
+
"location",
|
|
55
|
+
"media_key",
|
|
56
|
+
"mentioned_ids",
|
|
57
|
+
"order_id",
|
|
58
|
+
"raw_data",
|
|
59
|
+
"to",
|
|
60
|
+
"token",
|
|
61
|
+
"message_type",
|
|
62
|
+
"vcards",
|
|
63
|
+
"chat_id",
|
|
64
|
+
"timestamp",
|
|
65
|
+
"org_phone",
|
|
66
|
+
"broadcast_id",
|
|
67
|
+
"is_deleted",
|
|
68
|
+
"media",
|
|
69
|
+
"performed_by",
|
|
70
|
+
"prev_body",
|
|
71
|
+
"quoted_message_id",
|
|
72
|
+
"sent_message_id",
|
|
73
|
+
"delivery_info",
|
|
74
|
+
"updated_at",
|
|
75
|
+
"message_ticket_id"
|
|
76
|
+
],
|
|
77
|
+
"tbl_chat_notifications": [
|
|
78
|
+
"org_id",
|
|
79
|
+
"notification_id",
|
|
80
|
+
"chat_id",
|
|
81
|
+
"author",
|
|
82
|
+
"body",
|
|
83
|
+
"id",
|
|
84
|
+
"recipientids",
|
|
85
|
+
"type",
|
|
86
|
+
"timestamp",
|
|
87
|
+
"org_phone"
|
|
88
|
+
],
|
|
89
|
+
"tbl_chat_participants": [
|
|
90
|
+
"org_id",
|
|
91
|
+
"chat_id",
|
|
92
|
+
"contact_id",
|
|
93
|
+
"id",
|
|
94
|
+
"is_admin",
|
|
95
|
+
"is_super_admin",
|
|
96
|
+
"org_phone"
|
|
97
|
+
],
|
|
98
|
+
"tbl_chat_reactions": [
|
|
99
|
+
"org_id",
|
|
100
|
+
"message_id",
|
|
101
|
+
"ack",
|
|
102
|
+
"id",
|
|
103
|
+
"orphan",
|
|
104
|
+
"reaction",
|
|
105
|
+
"read",
|
|
106
|
+
"reaction_id",
|
|
107
|
+
"timestamp",
|
|
108
|
+
"msg_id",
|
|
109
|
+
"orphan_reason",
|
|
110
|
+
"sender_id",
|
|
111
|
+
"org_phone"
|
|
112
|
+
],
|
|
113
|
+
"tbl_chat_tickets": [
|
|
114
|
+
"created_at",
|
|
115
|
+
"ticket_id",
|
|
116
|
+
"subject",
|
|
117
|
+
"status",
|
|
118
|
+
"assignee",
|
|
119
|
+
"assigned_by",
|
|
120
|
+
"chat_id",
|
|
121
|
+
"due_date",
|
|
122
|
+
"org_id",
|
|
123
|
+
"label_ids",
|
|
124
|
+
"quoted_message_id",
|
|
125
|
+
"raised_by",
|
|
126
|
+
"priority",
|
|
127
|
+
"last_updated_at",
|
|
128
|
+
"is_deleted"
|
|
129
|
+
],
|
|
130
|
+
"tbl_chats": [
|
|
131
|
+
"org_id",
|
|
132
|
+
"chat_id",
|
|
133
|
+
"archived",
|
|
134
|
+
"id",
|
|
135
|
+
"is_group",
|
|
136
|
+
"is_muted",
|
|
137
|
+
"is_read_only",
|
|
138
|
+
"mute_expiration",
|
|
139
|
+
"name",
|
|
140
|
+
"pinned",
|
|
141
|
+
"unread_count",
|
|
142
|
+
"group_metadata",
|
|
143
|
+
"chat_image",
|
|
144
|
+
"timestamp",
|
|
145
|
+
"invite_link",
|
|
146
|
+
"org_phone",
|
|
147
|
+
"label_ids",
|
|
148
|
+
"updated_at"
|
|
149
|
+
],
|
|
150
|
+
"tbl_contacts": [
|
|
151
|
+
"org_id",
|
|
152
|
+
"contact_id",
|
|
153
|
+
"id",
|
|
154
|
+
"number",
|
|
155
|
+
"is_business",
|
|
156
|
+
"is_enterprise",
|
|
157
|
+
"name",
|
|
158
|
+
"pushname",
|
|
159
|
+
"short_name",
|
|
160
|
+
"contact_type",
|
|
161
|
+
"is_me",
|
|
162
|
+
"is_user",
|
|
163
|
+
"is_group",
|
|
164
|
+
"is_wa_contact",
|
|
165
|
+
"is_my_contact",
|
|
166
|
+
"is_blocked",
|
|
167
|
+
"contact_image",
|
|
168
|
+
"contact_color",
|
|
169
|
+
"business_profile",
|
|
170
|
+
"verified_name",
|
|
171
|
+
"is_internal",
|
|
172
|
+
"label_ids",
|
|
173
|
+
"verified_level",
|
|
174
|
+
"updated_at"
|
|
175
|
+
],
|
|
176
|
+
"tbl_org": [
|
|
177
|
+
"org_id",
|
|
178
|
+
"created_at",
|
|
179
|
+
"org_image",
|
|
180
|
+
"org_name",
|
|
181
|
+
"support_link",
|
|
182
|
+
"org_metadata",
|
|
183
|
+
"org_plan",
|
|
184
|
+
"stripe_customer_details",
|
|
185
|
+
"stripe_customer_id",
|
|
186
|
+
"stripe_subscription_details"
|
|
187
|
+
],
|
|
188
|
+
"tbl_org_labels": [
|
|
189
|
+
"label_id",
|
|
190
|
+
"created_at",
|
|
191
|
+
"org_id",
|
|
192
|
+
"name",
|
|
193
|
+
"color",
|
|
194
|
+
"type"
|
|
195
|
+
],
|
|
196
|
+
"tbl_org_members": [
|
|
197
|
+
"created_at",
|
|
198
|
+
"email",
|
|
199
|
+
"user_id",
|
|
200
|
+
"invited_at",
|
|
201
|
+
"invited_by",
|
|
202
|
+
"org_id",
|
|
203
|
+
"role",
|
|
204
|
+
"member_image",
|
|
205
|
+
"member_name",
|
|
206
|
+
"is_active",
|
|
207
|
+
"member_color"
|
|
208
|
+
],
|
|
209
|
+
"tbl_org_phones": [
|
|
210
|
+
"org_id",
|
|
211
|
+
"org_phone",
|
|
212
|
+
"created_at",
|
|
213
|
+
"updated_at",
|
|
214
|
+
"wa_state",
|
|
215
|
+
"phone_id",
|
|
216
|
+
"qr_code",
|
|
217
|
+
"phone_image",
|
|
218
|
+
"phone_name",
|
|
219
|
+
"server_ip"
|
|
220
|
+
],
|
|
221
|
+
"view_broadcast_logs": [
|
|
222
|
+
"broadcast_id",
|
|
223
|
+
"org_id",
|
|
224
|
+
"message_payload",
|
|
225
|
+
"created_at",
|
|
226
|
+
"total_chats",
|
|
227
|
+
"sent_chats",
|
|
228
|
+
"failed_chats",
|
|
229
|
+
"total_member_count",
|
|
230
|
+
"delivered_member_count",
|
|
231
|
+
"read_member_count",
|
|
232
|
+
"completed_at",
|
|
233
|
+
"scheduled_at",
|
|
234
|
+
"performed_by",
|
|
235
|
+
"delivery_percentage",
|
|
236
|
+
"read_percentage"
|
|
237
|
+
],
|
|
238
|
+
"view_chat_messages": [
|
|
239
|
+
"message_id",
|
|
240
|
+
"org_id",
|
|
241
|
+
"ack",
|
|
242
|
+
"author",
|
|
243
|
+
"body",
|
|
244
|
+
"from_me",
|
|
245
|
+
"invite_v4",
|
|
246
|
+
"links",
|
|
247
|
+
"location",
|
|
248
|
+
"mentioned_ids",
|
|
249
|
+
"message_type",
|
|
250
|
+
"vcards",
|
|
251
|
+
"chat_id",
|
|
252
|
+
"timestamp",
|
|
253
|
+
"org_phone",
|
|
254
|
+
"broadcast_id",
|
|
255
|
+
"is_deleted",
|
|
256
|
+
"media",
|
|
257
|
+
"performed_by",
|
|
258
|
+
"prev_body",
|
|
259
|
+
"quoted_message_id",
|
|
260
|
+
"sender_phone",
|
|
261
|
+
"sent_message_id",
|
|
262
|
+
"delivery_info",
|
|
263
|
+
"updated_at",
|
|
264
|
+
"message_ticket_id",
|
|
265
|
+
"unique_id",
|
|
266
|
+
"is_gif",
|
|
267
|
+
"is_forwarded",
|
|
268
|
+
"is_starred"
|
|
269
|
+
],
|
|
270
|
+
"view_chats": [
|
|
271
|
+
"org_id",
|
|
272
|
+
"chat_id",
|
|
273
|
+
"org_phone",
|
|
274
|
+
"chat_image",
|
|
275
|
+
"invite_link",
|
|
276
|
+
"label_ids",
|
|
277
|
+
"updated_at",
|
|
278
|
+
"chat_name",
|
|
279
|
+
"latest_message",
|
|
280
|
+
"message_unread_count",
|
|
281
|
+
"member_count",
|
|
282
|
+
"chat_type",
|
|
283
|
+
"chat_access",
|
|
284
|
+
"has_access",
|
|
285
|
+
"last_read_timestamp",
|
|
286
|
+
"chat_org_phones",
|
|
287
|
+
"active_phone",
|
|
288
|
+
"group_description"
|
|
289
|
+
]
|
|
290
|
+
};
|
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,6 +2,31 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
+
graphql_public: {
|
|
6
|
+
Tables: {
|
|
7
|
+
[_ in never]: never;
|
|
8
|
+
};
|
|
9
|
+
Views: {
|
|
10
|
+
[_ in never]: never;
|
|
11
|
+
};
|
|
12
|
+
Functions: {
|
|
13
|
+
graphql: {
|
|
14
|
+
Args: {
|
|
15
|
+
operationName?: string;
|
|
16
|
+
query?: string;
|
|
17
|
+
variables?: Json;
|
|
18
|
+
extensions?: Json;
|
|
19
|
+
};
|
|
20
|
+
Returns: Json;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
Enums: {
|
|
24
|
+
[_ in never]: never;
|
|
25
|
+
};
|
|
26
|
+
CompositeTypes: {
|
|
27
|
+
[_ in never]: never;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
5
30
|
internal: {
|
|
6
31
|
Tables: {
|
|
7
32
|
config: {
|
|
@@ -188,6 +213,48 @@ export type Database = {
|
|
|
188
213
|
};
|
|
189
214
|
public: {
|
|
190
215
|
Tables: {
|
|
216
|
+
return_data: {
|
|
217
|
+
Row: {
|
|
218
|
+
json_agg: Json | null;
|
|
219
|
+
};
|
|
220
|
+
Insert: {
|
|
221
|
+
json_agg?: Json | null;
|
|
222
|
+
};
|
|
223
|
+
Update: {
|
|
224
|
+
json_agg?: Json | null;
|
|
225
|
+
};
|
|
226
|
+
Relationships: [];
|
|
227
|
+
};
|
|
228
|
+
tbl_ai_contexts: {
|
|
229
|
+
Row: {
|
|
230
|
+
answer: string;
|
|
231
|
+
attachments: string[] | null;
|
|
232
|
+
created_at: string | null;
|
|
233
|
+
embedding: string;
|
|
234
|
+
id: string;
|
|
235
|
+
org_id: string;
|
|
236
|
+
question: string;
|
|
237
|
+
};
|
|
238
|
+
Insert: {
|
|
239
|
+
answer: string;
|
|
240
|
+
attachments?: string[] | null;
|
|
241
|
+
created_at?: string | null;
|
|
242
|
+
embedding: string;
|
|
243
|
+
id?: string;
|
|
244
|
+
org_id: string;
|
|
245
|
+
question: string;
|
|
246
|
+
};
|
|
247
|
+
Update: {
|
|
248
|
+
answer?: string;
|
|
249
|
+
attachments?: string[] | null;
|
|
250
|
+
created_at?: string | null;
|
|
251
|
+
embedding?: string;
|
|
252
|
+
id?: string;
|
|
253
|
+
org_id?: string;
|
|
254
|
+
question?: string;
|
|
255
|
+
};
|
|
256
|
+
Relationships: [];
|
|
257
|
+
};
|
|
191
258
|
tbl_api_logs: {
|
|
192
259
|
Row: {
|
|
193
260
|
org_id: string;
|
|
@@ -819,6 +886,7 @@ export type Database = {
|
|
|
819
886
|
};
|
|
820
887
|
tbl_chat_properties: {
|
|
821
888
|
Row: {
|
|
889
|
+
ai_metadata: Json | null;
|
|
822
890
|
assigned_to: string | null;
|
|
823
891
|
chat_access: Json | null;
|
|
824
892
|
chat_id: string;
|
|
@@ -829,14 +897,17 @@ export type Database = {
|
|
|
829
897
|
closed_at: number | null;
|
|
830
898
|
custom_properties: Json | null;
|
|
831
899
|
flag_count_map: Json | null;
|
|
900
|
+
freshdesk_metadata: Json | null;
|
|
832
901
|
hubspot_metadata: Json | null;
|
|
833
902
|
label_ids: Json | null;
|
|
834
903
|
latest_message_timestamp: string | null;
|
|
835
904
|
org_id: string;
|
|
836
905
|
unread_count: Json | null;
|
|
837
906
|
updated_at: string | null;
|
|
907
|
+
zohodesk_metadata: Json | null;
|
|
838
908
|
};
|
|
839
909
|
Insert: {
|
|
910
|
+
ai_metadata?: Json | null;
|
|
840
911
|
assigned_to?: string | null;
|
|
841
912
|
chat_access?: Json | null;
|
|
842
913
|
chat_id: string;
|
|
@@ -847,14 +918,17 @@ export type Database = {
|
|
|
847
918
|
closed_at?: number | null;
|
|
848
919
|
custom_properties?: Json | null;
|
|
849
920
|
flag_count_map?: Json | null;
|
|
921
|
+
freshdesk_metadata?: Json | null;
|
|
850
922
|
hubspot_metadata?: Json | null;
|
|
851
923
|
label_ids?: Json | null;
|
|
852
924
|
latest_message_timestamp?: string | null;
|
|
853
925
|
org_id: string;
|
|
854
926
|
unread_count?: Json | null;
|
|
855
927
|
updated_at?: string | null;
|
|
928
|
+
zohodesk_metadata?: Json | null;
|
|
856
929
|
};
|
|
857
930
|
Update: {
|
|
931
|
+
ai_metadata?: Json | null;
|
|
858
932
|
assigned_to?: string | null;
|
|
859
933
|
chat_access?: Json | null;
|
|
860
934
|
chat_id?: string;
|
|
@@ -865,12 +939,14 @@ export type Database = {
|
|
|
865
939
|
closed_at?: number | null;
|
|
866
940
|
custom_properties?: Json | null;
|
|
867
941
|
flag_count_map?: Json | null;
|
|
942
|
+
freshdesk_metadata?: Json | null;
|
|
868
943
|
hubspot_metadata?: Json | null;
|
|
869
944
|
label_ids?: Json | null;
|
|
870
945
|
latest_message_timestamp?: string | null;
|
|
871
946
|
org_id?: string;
|
|
872
947
|
unread_count?: Json | null;
|
|
873
948
|
updated_at?: string | null;
|
|
949
|
+
zohodesk_metadata?: Json | null;
|
|
874
950
|
};
|
|
875
951
|
Relationships: [];
|
|
876
952
|
};
|
|
@@ -1211,6 +1287,7 @@ export type Database = {
|
|
|
1211
1287
|
Row: {
|
|
1212
1288
|
created_at: string;
|
|
1213
1289
|
created_by: string | null;
|
|
1290
|
+
is_required: boolean;
|
|
1214
1291
|
org_id: string | null;
|
|
1215
1292
|
property_id: string;
|
|
1216
1293
|
property_name: string;
|
|
@@ -1221,6 +1298,7 @@ export type Database = {
|
|
|
1221
1298
|
Insert: {
|
|
1222
1299
|
created_at?: string;
|
|
1223
1300
|
created_by?: string | null;
|
|
1301
|
+
is_required?: boolean;
|
|
1224
1302
|
org_id?: string | null;
|
|
1225
1303
|
property_id?: string;
|
|
1226
1304
|
property_name: string;
|
|
@@ -1231,6 +1309,7 @@ export type Database = {
|
|
|
1231
1309
|
Update: {
|
|
1232
1310
|
created_at?: string;
|
|
1233
1311
|
created_by?: string | null;
|
|
1312
|
+
is_required?: boolean;
|
|
1234
1313
|
org_id?: string | null;
|
|
1235
1314
|
property_id?: string;
|
|
1236
1315
|
property_name?: string;
|
|
@@ -1551,6 +1630,13 @@ export type Database = {
|
|
|
1551
1630
|
user_id?: string | null;
|
|
1552
1631
|
};
|
|
1553
1632
|
Relationships: [
|
|
1633
|
+
{
|
|
1634
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1635
|
+
columns: ["user_id"];
|
|
1636
|
+
isOneToOne: false;
|
|
1637
|
+
referencedRelation: "users";
|
|
1638
|
+
referencedColumns: ["id"];
|
|
1639
|
+
},
|
|
1554
1640
|
{
|
|
1555
1641
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1556
1642
|
columns: ["org_id"];
|
|
@@ -2143,6 +2229,7 @@ export type Database = {
|
|
|
2143
2229
|
created_at: string | null;
|
|
2144
2230
|
custom_properties: Json | null;
|
|
2145
2231
|
flag_count_map: Json | null;
|
|
2232
|
+
freshdesk_metadata: Json | null;
|
|
2146
2233
|
group_description: string | null;
|
|
2147
2234
|
hubspot_metadata: Json | null;
|
|
2148
2235
|
info_admins_only: boolean | null;
|
|
@@ -2157,6 +2244,7 @@ export type Database = {
|
|
|
2157
2244
|
org_id: string | null;
|
|
2158
2245
|
org_phone: string | null;
|
|
2159
2246
|
updated_at: string | null;
|
|
2247
|
+
zohodesk_metadata: Json | null;
|
|
2160
2248
|
};
|
|
2161
2249
|
Relationships: [];
|
|
2162
2250
|
};
|
|
@@ -2384,6 +2472,13 @@ export type Database = {
|
|
|
2384
2472
|
};
|
|
2385
2473
|
Returns: Json;
|
|
2386
2474
|
};
|
|
2475
|
+
get_export_members_data: {
|
|
2476
|
+
Args: {
|
|
2477
|
+
org_id_input: string;
|
|
2478
|
+
chat_id_input?: string[];
|
|
2479
|
+
};
|
|
2480
|
+
Returns: Json;
|
|
2481
|
+
};
|
|
2387
2482
|
get_export_tickets_data: {
|
|
2388
2483
|
Args: {
|
|
2389
2484
|
org_id_input: string;
|
|
@@ -2456,6 +2551,13 @@ export type Database = {
|
|
|
2456
2551
|
};
|
|
2457
2552
|
Returns: Json;
|
|
2458
2553
|
};
|
|
2554
|
+
get_relevant_context: {
|
|
2555
|
+
Args: {
|
|
2556
|
+
org_id_input: string;
|
|
2557
|
+
query_embedding_input: string;
|
|
2558
|
+
};
|
|
2559
|
+
Returns: Json;
|
|
2560
|
+
};
|
|
2459
2561
|
get_team_metrics_between_dates: {
|
|
2460
2562
|
Args: {
|
|
2461
2563
|
org_id_input: string;
|
|
@@ -2494,6 +2596,18 @@ export type Database = {
|
|
|
2494
2596
|
result: Json;
|
|
2495
2597
|
}[];
|
|
2496
2598
|
};
|
|
2599
|
+
hnswhandler: {
|
|
2600
|
+
Args: {
|
|
2601
|
+
"": unknown;
|
|
2602
|
+
};
|
|
2603
|
+
Returns: unknown;
|
|
2604
|
+
};
|
|
2605
|
+
ivfflathandler: {
|
|
2606
|
+
Args: {
|
|
2607
|
+
"": unknown;
|
|
2608
|
+
};
|
|
2609
|
+
Returns: unknown;
|
|
2610
|
+
};
|
|
2497
2611
|
list_org_from_user: {
|
|
2498
2612
|
Args: Record<PropertyKey, never>;
|
|
2499
2613
|
Returns: string[];
|
|
@@ -2599,6 +2713,42 @@ export type Database = {
|
|
|
2599
2713
|
};
|
|
2600
2714
|
Returns: undefined;
|
|
2601
2715
|
};
|
|
2716
|
+
vector_avg: {
|
|
2717
|
+
Args: {
|
|
2718
|
+
"": number[];
|
|
2719
|
+
};
|
|
2720
|
+
Returns: string;
|
|
2721
|
+
};
|
|
2722
|
+
vector_dims: {
|
|
2723
|
+
Args: {
|
|
2724
|
+
"": string;
|
|
2725
|
+
};
|
|
2726
|
+
Returns: number;
|
|
2727
|
+
};
|
|
2728
|
+
vector_norm: {
|
|
2729
|
+
Args: {
|
|
2730
|
+
"": string;
|
|
2731
|
+
};
|
|
2732
|
+
Returns: number;
|
|
2733
|
+
};
|
|
2734
|
+
vector_out: {
|
|
2735
|
+
Args: {
|
|
2736
|
+
"": string;
|
|
2737
|
+
};
|
|
2738
|
+
Returns: unknown;
|
|
2739
|
+
};
|
|
2740
|
+
vector_send: {
|
|
2741
|
+
Args: {
|
|
2742
|
+
"": string;
|
|
2743
|
+
};
|
|
2744
|
+
Returns: string;
|
|
2745
|
+
};
|
|
2746
|
+
vector_typmod_in: {
|
|
2747
|
+
Args: {
|
|
2748
|
+
"": unknown[];
|
|
2749
|
+
};
|
|
2750
|
+
Returns: number;
|
|
2751
|
+
};
|
|
2602
2752
|
};
|
|
2603
2753
|
Enums: {
|
|
2604
2754
|
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired";
|
|
@@ -2687,7 +2837,6 @@ export type Database = {
|
|
|
2687
2837
|
owner_id: string | null;
|
|
2688
2838
|
path_tokens: string[] | null;
|
|
2689
2839
|
updated_at: string | null;
|
|
2690
|
-
user_metadata: Json | null;
|
|
2691
2840
|
version: string | null;
|
|
2692
2841
|
};
|
|
2693
2842
|
Insert: {
|
|
@@ -2701,7 +2850,6 @@ export type Database = {
|
|
|
2701
2850
|
owner_id?: string | null;
|
|
2702
2851
|
path_tokens?: string[] | null;
|
|
2703
2852
|
updated_at?: string | null;
|
|
2704
|
-
user_metadata?: Json | null;
|
|
2705
2853
|
version?: string | null;
|
|
2706
2854
|
};
|
|
2707
2855
|
Update: {
|
|
@@ -2715,7 +2863,6 @@ export type Database = {
|
|
|
2715
2863
|
owner_id?: string | null;
|
|
2716
2864
|
path_tokens?: string[] | null;
|
|
2717
2865
|
updated_at?: string | null;
|
|
2718
|
-
user_metadata?: Json | null;
|
|
2719
2866
|
version?: string | null;
|
|
2720
2867
|
};
|
|
2721
2868
|
Relationships: [
|
|
@@ -2737,7 +2884,6 @@ export type Database = {
|
|
|
2737
2884
|
key: string;
|
|
2738
2885
|
owner_id: string | null;
|
|
2739
2886
|
upload_signature: string;
|
|
2740
|
-
user_metadata: Json | null;
|
|
2741
2887
|
version: string;
|
|
2742
2888
|
};
|
|
2743
2889
|
Insert: {
|
|
@@ -2748,7 +2894,6 @@ export type Database = {
|
|
|
2748
2894
|
key: string;
|
|
2749
2895
|
owner_id?: string | null;
|
|
2750
2896
|
upload_signature: string;
|
|
2751
|
-
user_metadata?: Json | null;
|
|
2752
2897
|
version: string;
|
|
2753
2898
|
};
|
|
2754
2899
|
Update: {
|
|
@@ -2759,7 +2904,6 @@ export type Database = {
|
|
|
2759
2904
|
key?: string;
|
|
2760
2905
|
owner_id?: string | null;
|
|
2761
2906
|
upload_signature?: string;
|
|
2762
|
-
user_metadata?: Json | null;
|
|
2763
2907
|
version?: string;
|
|
2764
2908
|
};
|
|
2765
2909
|
Relationships: [
|
|
@@ -2896,10 +3040,6 @@ export type Database = {
|
|
|
2896
3040
|
updated_at: string;
|
|
2897
3041
|
}[];
|
|
2898
3042
|
};
|
|
2899
|
-
operation: {
|
|
2900
|
-
Args: Record<PropertyKey, never>;
|
|
2901
|
-
Returns: string;
|
|
2902
|
-
};
|
|
2903
3043
|
search: {
|
|
2904
3044
|
Args: {
|
|
2905
3045
|
prefix: string;
|
|
@@ -2970,11 +3110,4 @@ export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] |
|
|
|
2970
3110
|
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2971
3111
|
schema: keyof Database;
|
|
2972
3112
|
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2973
|
-
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] | {
|
|
2974
|
-
schema: keyof Database;
|
|
2975
|
-
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
2976
|
-
schema: keyof Database;
|
|
2977
|
-
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
2978
|
-
schema: keyof Database;
|
|
2979
|
-
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] ? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
2980
3113
|
export {};
|