@hexclave/shared 1.0.26 → 1.0.27

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 (31) hide show
  1. package/dist/config/schema.d.ts +167 -167
  2. package/dist/esm/config/schema.d.ts +167 -167
  3. package/dist/esm/interface/admin-metrics.d.ts +16 -16
  4. package/dist/esm/interface/conversations.d.ts +36 -36
  5. package/dist/esm/interface/crud/current-user.d.ts +9 -9
  6. package/dist/esm/interface/crud/email-outbox.d.ts +226 -226
  7. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  8. package/dist/esm/interface/crud/products.d.ts +5 -5
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +3 -3
  10. package/dist/esm/interface/crud/projects.d.ts +50 -50
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +22 -22
  12. package/dist/esm/interface/crud/transactions.d.ts +2 -2
  13. package/dist/esm/interface/crud/users.d.ts +18 -18
  14. package/dist/esm/interface/webhooks.d.ts +4 -4
  15. package/dist/esm/schema-fields.d.ts +1 -1
  16. package/dist/esm/sessions.d.ts +3 -3
  17. package/dist/interface/admin-metrics.d.ts +16 -16
  18. package/dist/interface/conversations.d.ts +36 -36
  19. package/dist/interface/crud/current-user.d.ts +9 -9
  20. package/dist/interface/crud/email-outbox.d.ts +226 -226
  21. package/dist/interface/crud/invoices.d.ts +2 -2
  22. package/dist/interface/crud/products.d.ts +5 -5
  23. package/dist/interface/crud/project-api-keys.d.ts +3 -3
  24. package/dist/interface/crud/projects.d.ts +50 -50
  25. package/dist/interface/crud/team-member-profiles.d.ts +22 -22
  26. package/dist/interface/crud/transactions.d.ts +2 -2
  27. package/dist/interface/crud/users.d.ts +18 -18
  28. package/dist/interface/webhooks.d.ts +4 -4
  29. package/dist/schema-fields.d.ts +1 -1
  30. package/dist/sessions.d.ts +3 -3
  31. package/package.json +1 -1
@@ -150,23 +150,23 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
150
150
  activity: number;
151
151
  }[];
152
152
  daily_emails_by_status: {
153
- error: number;
154
153
  ok: number;
154
+ error: number;
155
155
  date: string;
156
156
  in_progress: number;
157
157
  }[];
158
158
  emails_sent: number;
159
159
  recent_emails: {
160
- status: string;
161
160
  id: string;
162
- created_at_millis: number;
161
+ status: string;
163
162
  subject: string;
163
+ created_at_millis: number;
164
164
  }[];
165
165
  deliverability_status: {
166
166
  error: number;
167
- bounced: number;
168
167
  in_progress: number;
169
168
  delivered: number;
169
+ bounced: number;
170
170
  };
171
171
  deliverability_rate: number;
172
172
  bounce_rate: number;
@@ -369,7 +369,7 @@ declare const UserActivityResponseBodySchema: yup.ObjectSchema<{
369
369
  data_points: undefined;
370
370
  }, "">;
371
371
  declare const AnalyticsClickmapKindSchema: yup.StringSchema<"team_user_hour_of_week" | "session_replay_clicks", yup.AnyObject, undefined, "">;
372
- declare const AnalyticsClickmapDeviceSchema: yup.StringSchema<"mobile" | "tv" | "widescreen" | "desktop" | "laptop" | "tablet", yup.AnyObject, undefined, "">;
372
+ declare const AnalyticsClickmapDeviceSchema: yup.StringSchema<"tv" | "widescreen" | "desktop" | "laptop" | "tablet" | "mobile", yup.AnyObject, undefined, "">;
373
373
  declare const AnalyticsClickmapTokenResponseBodySchema: yup.ObjectSchema<{
374
374
  token: string;
375
375
  origin: string;
@@ -397,23 +397,23 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
397
397
  }[];
398
398
  sampling: number;
399
399
  routes: {
400
- path: string;
401
400
  users: number;
401
+ path: string;
402
402
  clicks: number;
403
403
  replays: number;
404
404
  }[];
405
405
  users: {
406
+ id: string;
406
407
  primary_email: string | null;
407
408
  display_name: string | null;
408
- id: string;
409
409
  profile_image_url: string | null;
410
410
  clicks: number;
411
411
  replays: number;
412
412
  last_event_at_millis: number;
413
413
  }[];
414
414
  replays: {
415
- user_id: string | null;
416
415
  id: string;
416
+ user_id: string | null;
417
417
  clicks: number;
418
418
  last_event_at_millis: number;
419
419
  route_path: string | null;
@@ -443,9 +443,9 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
443
443
  elements: never[];
444
444
  }, "">;
445
445
  declare const MetricsActiveUsersByCountrySchema: yup.MixedSchema<Record<string, {
446
+ id: string;
446
447
  primary_email: string | null;
447
448
  display_name: string | null;
448
- id: string;
449
449
  profile_image_url: string | null;
450
450
  signed_up_at_millis: number;
451
451
  last_active_at_millis: number | null;
@@ -471,25 +471,25 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
471
471
  }[];
472
472
  users_by_country: Record<string, number>;
473
473
  active_users_by_country: Record<string, {
474
+ id: string;
474
475
  primary_email: string | null;
475
476
  display_name: string | null;
476
- id: string;
477
477
  profile_image_url: string | null;
478
478
  signed_up_at_millis: number;
479
479
  last_active_at_millis: number | null;
480
480
  }[]>;
481
481
  recently_registered: {
482
+ id: string;
482
483
  primary_email: string | null;
483
484
  display_name: string | null;
484
- id: string;
485
485
  profile_image_url: string | null;
486
486
  signed_up_at_millis: number;
487
487
  last_active_at_millis: number | null;
488
488
  }[];
489
489
  recently_active: {
490
+ id: string;
490
491
  primary_email: string | null;
491
492
  display_name: string | null;
492
- id: string;
493
493
  profile_image_url: string | null;
494
494
  signed_up_at_millis: number;
495
495
  last_active_at_millis: number | null;
@@ -563,23 +563,23 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
563
563
  emails_by_status: Record<string, number>;
564
564
  total_emails: number;
565
565
  daily_emails_by_status: {
566
- error: number;
567
566
  ok: number;
567
+ error: number;
568
568
  date: string;
569
569
  in_progress: number;
570
570
  }[];
571
571
  emails_sent: number;
572
572
  recent_emails: {
573
- status: string;
574
573
  id: string;
575
- created_at_millis: number;
574
+ status: string;
576
575
  subject: string;
576
+ created_at_millis: number;
577
577
  }[];
578
578
  deliverability_status: {
579
579
  error: number;
580
- bounced: number;
581
580
  in_progress: number;
582
581
  delivered: number;
582
+ bounced: number;
583
583
  };
584
584
  deliverability_rate: number;
585
585
  bounce_rate: number;
@@ -49,16 +49,16 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
49
49
  userPrimaryEmail: string | null;
50
50
  userProfileImageUrl: string | null;
51
51
  subject: string;
52
- status: "pending" | "open" | "closed";
52
+ status: "open" | "pending" | "closed";
53
53
  priority: "low" | "normal" | "high" | "urgent";
54
54
  source: "email" | "manual" | "chat" | "api";
55
55
  lastMessageType: "message" | "internal-note" | "status-change";
56
56
  preview: string | null;
57
57
  lastActivityAt: string;
58
58
  metadata: {
59
- tags: string[];
60
59
  assignedToUserId: string | null;
61
60
  assignedToDisplayName: string | null;
61
+ tags: string[];
62
62
  firstResponseDueAt: string | null;
63
63
  firstResponseAt: string | null;
64
64
  nextResponseDueAt: string | null;
@@ -129,7 +129,7 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
129
129
  userId: string | null;
130
130
  teamId: string | null;
131
131
  subject: string;
132
- status: "pending" | "open" | "closed";
132
+ status: "open" | "pending" | "closed";
133
133
  priority: "low" | "normal" | "high" | "urgent";
134
134
  source: "email" | "manual" | "chat" | "api";
135
135
  messageType: "message" | "internal-note" | "status-change";
@@ -138,9 +138,9 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
138
138
  metadata: {} | null;
139
139
  createdAt: string;
140
140
  sender: {
141
+ id: string | null;
141
142
  type: "user" | "agent" | "system";
142
143
  displayName: string | null;
143
- id: string | null;
144
144
  primaryEmail: string | null;
145
145
  };
146
146
  }, yup$1.AnyObject, {
@@ -173,29 +173,29 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
173
173
  lastOutboundAt?: string | null | undefined;
174
174
  closedAt?: string | null | undefined;
175
175
  recordMetadata?: {} | null | undefined;
176
- status: "pending" | "open" | "closed";
177
- source: "email" | "manual" | "chat" | "api";
178
- metadata: {
179
- tags: string[];
180
- assignedToUserId: string | null;
181
- assignedToDisplayName: string | null;
182
- firstResponseDueAt: string | null;
183
- firstResponseAt: string | null;
184
- nextResponseDueAt: string | null;
185
- lastCustomerReplyAt: string | null;
186
- lastAgentReplyAt: string | null;
187
- };
176
+ status: "open" | "pending" | "closed";
188
177
  subject: string;
189
- priority: "low" | "normal" | "high" | "urgent";
190
178
  conversationId: string;
191
179
  userId: string | null;
192
180
  teamId: string | null;
193
181
  userDisplayName: string | null;
194
182
  userPrimaryEmail: string | null;
195
183
  userProfileImageUrl: string | null;
184
+ 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,48 +211,48 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
211
211
  lastOutboundAt?: string | null | undefined;
212
212
  closedAt?: string | null | undefined;
213
213
  recordMetadata?: {} | null | undefined;
214
- status: "pending" | "open" | "closed";
215
- source: "email" | "manual" | "chat" | "api";
216
- metadata: {
217
- tags: string[];
218
- assignedToUserId: string | null;
219
- assignedToDisplayName: string | null;
220
- firstResponseDueAt: string | null;
221
- firstResponseAt: string | null;
222
- nextResponseDueAt: string | null;
223
- lastCustomerReplyAt: string | null;
224
- lastAgentReplyAt: string | null;
225
- };
214
+ status: "open" | "pending" | "closed";
226
215
  subject: string;
227
- priority: "low" | "normal" | "high" | "urgent";
228
216
  conversationId: string;
229
217
  userId: string | null;
230
218
  teamId: string | null;
231
219
  userDisplayName: string | null;
232
220
  userPrimaryEmail: string | null;
233
221
  userProfileImageUrl: string | null;
222
+ 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
- status: "pending" | "open" | "closed";
240
239
  id: string;
241
- body: string | null;
242
- source: "email" | "manual" | "chat" | "api";
243
- metadata: {} | null;
240
+ status: "open" | "pending" | "closed";
244
241
  subject: string;
245
- priority: "low" | "normal" | "high" | "urgent";
246
242
  conversationId: string;
247
243
  userId: string | null;
248
244
  teamId: string | null;
245
+ 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
+ id: string | null;
253
254
  type: "user" | "agent" | "system";
254
255
  displayName: string | null;
255
- id: string | null;
256
256
  primaryEmail: string | null;
257
257
  };
258
258
  }[];
@@ -5,21 +5,21 @@ 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
+ id: string;
8
9
  restricted_reason: {
9
10
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
10
11
  } | null;
11
12
  primary_email: string | null;
13
+ display_name: string | null;
14
+ client_metadata: {} | null;
15
+ client_read_only_metadata: {} | null;
12
16
  selected_team_id: string | null;
13
17
  is_anonymous: boolean;
14
18
  is_restricted: boolean;
15
19
  requires_totp_mfa: boolean;
16
- display_name: string | null;
17
- client_metadata: {} | null;
18
- client_read_only_metadata: {} | null;
19
- id: string;
20
- primary_email_verified: boolean;
21
20
  profile_image_url: string | null;
22
21
  signed_up_at_millis: number;
22
+ primary_email_verified: boolean;
23
23
  has_password: boolean;
24
24
  otp_auth_enabled: boolean;
25
25
  passkey_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
- display_name: string;
39
38
  id: string;
39
+ display_name: string;
40
40
  profile_image_url: string | null;
41
41
  } | null;
42
42
  }, yup$1.AnyObject, {
@@ -91,10 +91,10 @@ 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;
95
94
  id: string;
96
- profile_image_url: string | null;
95
+ display_name: string;
97
96
  created_at_millis: number;
97
+ profile_image_url: string | null;
98
98
  } | null;
99
99
  selected_team_id: string | null;
100
100
  profile_image_url: string | null;
@@ -174,9 +174,9 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
174
174
  }, "">;
175
175
  clientUpdateSchema: yup$1.ObjectSchema<{
176
176
  primary_email: string | null | undefined;
177
- selected_team_id: string | null | undefined;
178
177
  display_name: string | null | undefined;
179
178
  client_metadata: {} | null | undefined;
179
+ selected_team_id: string | null | undefined;
180
180
  profile_image_url: string | null | undefined;
181
181
  otp_auth_enabled: boolean | undefined;
182
182
  passkey_auth_enabled: boolean | undefined;