@hexclave/shared 1.0.2 → 1.0.3
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/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/config/schema.d.ts +55 -55
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/config/schema.d.ts +55 -55
- package/dist/esm/interface/admin-metrics.d.ts +12 -12
- package/dist/esm/interface/conversations.d.ts +32 -32
- package/dist/esm/interface/crud/current-user.d.ts +13 -13
- package/dist/esm/interface/crud/email-outbox.d.ts +313 -313
- package/dist/esm/interface/crud/products.d.ts +13 -13
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +36 -36
- package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
- package/dist/esm/interface/crud/transactions.d.ts +6 -6
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +14 -14
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +2 -2
- package/dist/esm/schema-fields.d.ts +2 -2
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/interface/admin-metrics.d.ts +12 -12
- package/dist/interface/conversations.d.ts +32 -32
- package/dist/interface/crud/current-user.d.ts +13 -13
- package/dist/interface/crud/email-outbox.d.ts +313 -313
- package/dist/interface/crud/products.d.ts +13 -13
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/interface/crud/projects.d.ts +36 -36
- package/dist/interface/crud/team-member-profiles.d.ts +20 -20
- package/dist/interface/crud/transactions.d.ts +6 -6
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +14 -14
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +2 -2
- package/dist/schema-fields.d.ts +2 -2
- package/dist/sessions.d.ts +7 -7
- package/package.json +1 -1
|
@@ -150,15 +150,15 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
150
150
|
activity: number;
|
|
151
151
|
}[];
|
|
152
152
|
daily_emails_by_status: {
|
|
153
|
-
ok: number;
|
|
154
153
|
error: number;
|
|
155
154
|
date: string;
|
|
155
|
+
ok: number;
|
|
156
156
|
in_progress: number;
|
|
157
157
|
}[];
|
|
158
158
|
emails_sent: number;
|
|
159
159
|
recent_emails: {
|
|
160
|
-
id: string;
|
|
161
160
|
status: string;
|
|
161
|
+
id: string;
|
|
162
162
|
subject: string;
|
|
163
163
|
created_at_millis: number;
|
|
164
164
|
}[];
|
|
@@ -310,9 +310,9 @@ declare const UserActivityResponseBodySchema: yup.ObjectSchema<{
|
|
|
310
310
|
data_points: undefined;
|
|
311
311
|
}, "">;
|
|
312
312
|
declare const MetricsActiveUsersByCountrySchema: yup.MixedSchema<Record<string, {
|
|
313
|
-
id: string;
|
|
314
|
-
display_name: string | null;
|
|
315
313
|
primary_email: string | null;
|
|
314
|
+
display_name: string | null;
|
|
315
|
+
id: string;
|
|
316
316
|
profile_image_url: string | null;
|
|
317
317
|
signed_up_at_millis: number;
|
|
318
318
|
last_active_at_millis: number | null;
|
|
@@ -330,25 +330,25 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
330
330
|
}[];
|
|
331
331
|
users_by_country: Record<string, number>;
|
|
332
332
|
active_users_by_country: Record<string, {
|
|
333
|
-
id: string;
|
|
334
|
-
display_name: string | null;
|
|
335
333
|
primary_email: string | null;
|
|
334
|
+
display_name: string | null;
|
|
335
|
+
id: string;
|
|
336
336
|
profile_image_url: string | null;
|
|
337
337
|
signed_up_at_millis: number;
|
|
338
338
|
last_active_at_millis: number | null;
|
|
339
339
|
}[]>;
|
|
340
340
|
recently_registered: {
|
|
341
|
-
id: string;
|
|
342
|
-
display_name: string | null;
|
|
343
341
|
primary_email: string | null;
|
|
342
|
+
display_name: string | null;
|
|
343
|
+
id: string;
|
|
344
344
|
profile_image_url: string | null;
|
|
345
345
|
signed_up_at_millis: number;
|
|
346
346
|
last_active_at_millis: number | null;
|
|
347
347
|
}[];
|
|
348
348
|
recently_active: {
|
|
349
|
-
id: string;
|
|
350
|
-
display_name: string | null;
|
|
351
349
|
primary_email: string | null;
|
|
350
|
+
display_name: string | null;
|
|
351
|
+
id: string;
|
|
352
352
|
profile_image_url: string | null;
|
|
353
353
|
signed_up_at_millis: number;
|
|
354
354
|
last_active_at_millis: number | null;
|
|
@@ -422,15 +422,15 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
422
422
|
emails_by_status: Record<string, number>;
|
|
423
423
|
total_emails: number;
|
|
424
424
|
daily_emails_by_status: {
|
|
425
|
-
ok: number;
|
|
426
425
|
error: number;
|
|
427
426
|
date: string;
|
|
427
|
+
ok: number;
|
|
428
428
|
in_progress: number;
|
|
429
429
|
}[];
|
|
430
430
|
emails_sent: number;
|
|
431
431
|
recent_emails: {
|
|
432
|
-
id: string;
|
|
433
432
|
status: string;
|
|
433
|
+
id: string;
|
|
434
434
|
subject: string;
|
|
435
435
|
created_at_millis: number;
|
|
436
436
|
}[];
|
|
@@ -139,8 +139,8 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
sender: {
|
|
141
141
|
type: "user" | "agent" | "system";
|
|
142
|
-
id: string | null;
|
|
143
142
|
displayName: string | null;
|
|
143
|
+
id: string | null;
|
|
144
144
|
primaryEmail: string | null;
|
|
145
145
|
};
|
|
146
146
|
}, yup$1.AnyObject, {
|
|
@@ -173,18 +173,8 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
173
173
|
lastOutboundAt?: string | null | undefined;
|
|
174
174
|
closedAt?: string | null | undefined;
|
|
175
175
|
recordMetadata?: {} | null | undefined;
|
|
176
|
-
source: "email" | "manual" | "chat" | "api";
|
|
177
|
-
metadata: {
|
|
178
|
-
assignedToUserId: string | null;
|
|
179
|
-
assignedToDisplayName: string | null;
|
|
180
|
-
tags: string[];
|
|
181
|
-
firstResponseDueAt: string | null;
|
|
182
|
-
firstResponseAt: string | null;
|
|
183
|
-
nextResponseDueAt: string | null;
|
|
184
|
-
lastCustomerReplyAt: string | null;
|
|
185
|
-
lastAgentReplyAt: string | null;
|
|
186
|
-
};
|
|
187
176
|
status: "pending" | "open" | "closed";
|
|
177
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
188
178
|
subject: string;
|
|
189
179
|
conversationId: string;
|
|
190
180
|
userId: string | null;
|
|
@@ -192,10 +182,20 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
192
182
|
userDisplayName: string | null;
|
|
193
183
|
userPrimaryEmail: string | null;
|
|
194
184
|
userProfileImageUrl: string | null;
|
|
195
|
-
|
|
185
|
+
source: "email" | "manual" | "chat" | "api";
|
|
196
186
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
197
187
|
preview: string | null;
|
|
198
188
|
lastActivityAt: string;
|
|
189
|
+
metadata: {
|
|
190
|
+
assignedToUserId: string | null;
|
|
191
|
+
assignedToDisplayName: string | null;
|
|
192
|
+
tags: string[];
|
|
193
|
+
firstResponseDueAt: string | null;
|
|
194
|
+
firstResponseAt: string | null;
|
|
195
|
+
nextResponseDueAt: string | null;
|
|
196
|
+
lastCustomerReplyAt: string | null;
|
|
197
|
+
lastAgentReplyAt: string | null;
|
|
198
|
+
};
|
|
199
199
|
}[];
|
|
200
200
|
hasMore: boolean;
|
|
201
201
|
}, yup$1.AnyObject, {
|
|
@@ -211,18 +211,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
211
211
|
lastOutboundAt?: string | null | undefined;
|
|
212
212
|
closedAt?: string | null | undefined;
|
|
213
213
|
recordMetadata?: {} | null | undefined;
|
|
214
|
-
source: "email" | "manual" | "chat" | "api";
|
|
215
|
-
metadata: {
|
|
216
|
-
assignedToUserId: string | null;
|
|
217
|
-
assignedToDisplayName: string | null;
|
|
218
|
-
tags: string[];
|
|
219
|
-
firstResponseDueAt: string | null;
|
|
220
|
-
firstResponseAt: string | null;
|
|
221
|
-
nextResponseDueAt: string | null;
|
|
222
|
-
lastCustomerReplyAt: string | null;
|
|
223
|
-
lastAgentReplyAt: string | null;
|
|
224
|
-
};
|
|
225
214
|
status: "pending" | "open" | "closed";
|
|
215
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
226
216
|
subject: string;
|
|
227
217
|
conversationId: string;
|
|
228
218
|
userId: string | null;
|
|
@@ -230,35 +220,45 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
230
220
|
userDisplayName: string | null;
|
|
231
221
|
userPrimaryEmail: string | null;
|
|
232
222
|
userProfileImageUrl: string | null;
|
|
233
|
-
|
|
223
|
+
source: "email" | "manual" | "chat" | "api";
|
|
234
224
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
235
225
|
preview: string | null;
|
|
236
226
|
lastActivityAt: string;
|
|
227
|
+
metadata: {
|
|
228
|
+
assignedToUserId: string | null;
|
|
229
|
+
assignedToDisplayName: string | null;
|
|
230
|
+
tags: string[];
|
|
231
|
+
firstResponseDueAt: string | null;
|
|
232
|
+
firstResponseAt: string | null;
|
|
233
|
+
nextResponseDueAt: string | null;
|
|
234
|
+
lastCustomerReplyAt: string | null;
|
|
235
|
+
lastAgentReplyAt: string | null;
|
|
236
|
+
};
|
|
237
237
|
};
|
|
238
238
|
messages: {
|
|
239
|
-
body: string | null;
|
|
240
|
-
source: "email" | "manual" | "chat" | "api";
|
|
241
|
-
metadata: {} | null;
|
|
242
|
-
id: string;
|
|
243
239
|
status: "pending" | "open" | "closed";
|
|
240
|
+
id: string;
|
|
241
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
244
242
|
subject: string;
|
|
245
243
|
conversationId: string;
|
|
246
244
|
userId: string | null;
|
|
247
245
|
teamId: string | null;
|
|
248
|
-
|
|
246
|
+
source: "email" | "manual" | "chat" | "api";
|
|
247
|
+
metadata: {} | null;
|
|
249
248
|
createdAt: string;
|
|
250
249
|
messageType: "message" | "internal-note" | "status-change";
|
|
250
|
+
body: string | null;
|
|
251
251
|
attachments: {}[];
|
|
252
252
|
sender: {
|
|
253
253
|
type: "user" | "agent" | "system";
|
|
254
|
-
id: string | null;
|
|
255
254
|
displayName: string | null;
|
|
255
|
+
id: string | null;
|
|
256
256
|
primaryEmail: string | null;
|
|
257
257
|
};
|
|
258
258
|
}[];
|
|
259
259
|
entryPoints: {
|
|
260
|
-
metadata: {} | null;
|
|
261
260
|
id: string;
|
|
261
|
+
metadata: {} | null;
|
|
262
262
|
createdAt: string;
|
|
263
263
|
updatedAt: string;
|
|
264
264
|
channelType: string;
|
|
@@ -4,20 +4,20 @@ import * as yup$1 from "yup";
|
|
|
4
4
|
//#region src/interface/crud/current-user.d.ts
|
|
5
5
|
declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
6
6
|
clientReadSchema: yup$1.ObjectSchema<{
|
|
7
|
-
selected_team_id: string | null;
|
|
8
|
-
is_anonymous: boolean;
|
|
9
|
-
is_restricted: boolean;
|
|
10
7
|
restricted_reason: {
|
|
11
8
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
12
9
|
} | null;
|
|
13
|
-
requires_totp_mfa: boolean;
|
|
14
|
-
id: string;
|
|
15
|
-
display_name: string | null;
|
|
16
10
|
primary_email: string | null;
|
|
17
|
-
|
|
18
|
-
signed_up_at_millis: number;
|
|
11
|
+
display_name: string | null;
|
|
19
12
|
client_metadata: {} | null;
|
|
20
13
|
client_read_only_metadata: {} | null;
|
|
14
|
+
id: string;
|
|
15
|
+
selected_team_id: string | null;
|
|
16
|
+
is_anonymous: boolean;
|
|
17
|
+
is_restricted: boolean;
|
|
18
|
+
requires_totp_mfa: boolean;
|
|
19
|
+
profile_image_url: string | null;
|
|
20
|
+
signed_up_at_millis: number;
|
|
21
21
|
primary_email_verified: boolean;
|
|
22
22
|
has_password: boolean;
|
|
23
23
|
otp_auth_enabled: boolean;
|
|
@@ -34,8 +34,8 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
34
34
|
selected_team: {
|
|
35
35
|
client_metadata?: {} | null | undefined;
|
|
36
36
|
client_read_only_metadata?: {} | null | undefined;
|
|
37
|
-
id: string;
|
|
38
37
|
display_name: string;
|
|
38
|
+
id: string;
|
|
39
39
|
profile_image_url: string | null;
|
|
40
40
|
} | null;
|
|
41
41
|
}, yup$1.AnyObject, {
|
|
@@ -90,9 +90,9 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
90
90
|
client_metadata?: {} | null | undefined;
|
|
91
91
|
client_read_only_metadata?: {} | null | undefined;
|
|
92
92
|
server_metadata?: {} | null | undefined;
|
|
93
|
+
display_name: string;
|
|
93
94
|
id: string;
|
|
94
95
|
created_at_millis: number;
|
|
95
|
-
display_name: string;
|
|
96
96
|
profile_image_url: string | null;
|
|
97
97
|
} | null;
|
|
98
98
|
selected_team_id: string | null;
|
|
@@ -172,11 +172,11 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
172
172
|
requires_totp_mfa: undefined;
|
|
173
173
|
}, "">;
|
|
174
174
|
clientUpdateSchema: yup$1.ObjectSchema<{
|
|
175
|
-
selected_team_id: string | null | undefined;
|
|
176
|
-
display_name: string | null | undefined;
|
|
177
175
|
primary_email: string | null | undefined;
|
|
178
|
-
|
|
176
|
+
display_name: string | null | undefined;
|
|
179
177
|
client_metadata: {} | null | undefined;
|
|
178
|
+
selected_team_id: string | null | undefined;
|
|
179
|
+
profile_image_url: string | null | undefined;
|
|
180
180
|
otp_auth_enabled: boolean | undefined;
|
|
181
181
|
passkey_auth_enabled: boolean | undefined;
|
|
182
182
|
totp_secret_base64: string | null | undefined;
|