@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.
Files changed (39) hide show
  1. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  3. package/dist/config/schema.d.ts +55 -55
  4. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  5. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +55 -55
  7. package/dist/esm/interface/admin-metrics.d.ts +12 -12
  8. package/dist/esm/interface/conversations.d.ts +32 -32
  9. package/dist/esm/interface/crud/current-user.d.ts +13 -13
  10. package/dist/esm/interface/crud/email-outbox.d.ts +313 -313
  11. package/dist/esm/interface/crud/products.d.ts +13 -13
  12. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  13. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  14. package/dist/esm/interface/crud/projects.d.ts +36 -36
  15. package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
  16. package/dist/esm/interface/crud/transactions.d.ts +6 -6
  17. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  18. package/dist/esm/interface/crud/users.d.ts +14 -14
  19. package/dist/esm/interface/webhooks.d.ts +2 -2
  20. package/dist/esm/known-errors.d.ts +2 -2
  21. package/dist/esm/schema-fields.d.ts +2 -2
  22. package/dist/esm/sessions.d.ts +7 -7
  23. package/dist/interface/admin-metrics.d.ts +12 -12
  24. package/dist/interface/conversations.d.ts +32 -32
  25. package/dist/interface/crud/current-user.d.ts +13 -13
  26. package/dist/interface/crud/email-outbox.d.ts +313 -313
  27. package/dist/interface/crud/products.d.ts +13 -13
  28. package/dist/interface/crud/products.d.ts.map +1 -1
  29. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  30. package/dist/interface/crud/projects.d.ts +36 -36
  31. package/dist/interface/crud/team-member-profiles.d.ts +20 -20
  32. package/dist/interface/crud/transactions.d.ts +6 -6
  33. package/dist/interface/crud/transactions.d.ts.map +1 -1
  34. package/dist/interface/crud/users.d.ts +14 -14
  35. package/dist/interface/webhooks.d.ts +2 -2
  36. package/dist/known-errors.d.ts +2 -2
  37. package/dist/schema-fields.d.ts +2 -2
  38. package/dist/sessions.d.ts +7 -7
  39. 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
- priority: "low" | "normal" | "high" | "urgent";
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
- priority: "low" | "normal" | "high" | "urgent";
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
- priority: "low" | "normal" | "high" | "urgent";
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;
@@ -5,20 +5,20 @@ import { CrudTypeOf } from "../../crud";
5
5
  //#region src/interface/crud/current-user.d.ts
6
6
  declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
7
7
  clientReadSchema: yup$1.ObjectSchema<{
8
- selected_team_id: string | null;
9
- is_anonymous: boolean;
10
- is_restricted: boolean;
11
8
  restricted_reason: {
12
9
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
13
10
  } | null;
14
- requires_totp_mfa: boolean;
15
- id: string;
16
- display_name: string | null;
17
11
  primary_email: string | null;
18
- profile_image_url: string | null;
19
- signed_up_at_millis: number;
12
+ display_name: string | null;
20
13
  client_metadata: {} | null;
21
14
  client_read_only_metadata: {} | null;
15
+ id: string;
16
+ selected_team_id: string | null;
17
+ is_anonymous: boolean;
18
+ is_restricted: boolean;
19
+ requires_totp_mfa: boolean;
20
+ profile_image_url: string | null;
21
+ signed_up_at_millis: number;
22
22
  primary_email_verified: boolean;
23
23
  has_password: boolean;
24
24
  otp_auth_enabled: boolean;
@@ -35,8 +35,8 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
35
35
  selected_team: {
36
36
  client_metadata?: {} | null | undefined;
37
37
  client_read_only_metadata?: {} | null | undefined;
38
- id: string;
39
38
  display_name: string;
39
+ id: string;
40
40
  profile_image_url: string | null;
41
41
  } | null;
42
42
  }, yup$1.AnyObject, {
@@ -91,9 +91,9 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
91
91
  client_metadata?: {} | null | undefined;
92
92
  client_read_only_metadata?: {} | null | undefined;
93
93
  server_metadata?: {} | null | undefined;
94
+ display_name: string;
94
95
  id: string;
95
96
  created_at_millis: number;
96
- display_name: string;
97
97
  profile_image_url: string | null;
98
98
  } | null;
99
99
  selected_team_id: string | null;
@@ -173,11 +173,11 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
173
173
  requires_totp_mfa: undefined;
174
174
  }, "">;
175
175
  clientUpdateSchema: yup$1.ObjectSchema<{
176
- selected_team_id: string | null | undefined;
177
- display_name: string | null | undefined;
178
176
  primary_email: string | null | undefined;
179
- profile_image_url: string | null | undefined;
177
+ display_name: string | null | undefined;
180
178
  client_metadata: {} | null | undefined;
179
+ selected_team_id: string | null | undefined;
180
+ profile_image_url: string | null | undefined;
181
181
  otp_auth_enabled: boolean | undefined;
182
182
  passkey_auth_enabled: boolean | undefined;
183
183
  totp_secret_base64: string | null | undefined;