@hexclave/shared 1.0.12 → 1.0.14

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 +173 -173
  2. package/dist/esm/config/schema.d.ts +173 -173
  3. package/dist/esm/interface/admin-metrics.d.ts +8 -8
  4. package/dist/esm/interface/conversations.d.ts +31 -31
  5. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  6. package/dist/esm/interface/crud/email-outbox.d.ts +212 -212
  7. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  8. package/dist/esm/interface/crud/products.d.ts +4 -4
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +3 -3
  10. package/dist/esm/interface/crud/projects.d.ts +16 -16
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +18 -18
  12. package/dist/esm/interface/crud/transactions.d.ts +2 -2
  13. package/dist/esm/interface/crud/users.d.ts +10 -10
  14. package/dist/esm/interface/webhooks.d.ts +2 -2
  15. package/dist/esm/schema-fields.d.ts +3 -3
  16. package/dist/esm/sessions.d.ts +8 -8
  17. package/dist/interface/admin-metrics.d.ts +8 -8
  18. package/dist/interface/conversations.d.ts +31 -31
  19. package/dist/interface/crud/current-user.d.ts +7 -7
  20. package/dist/interface/crud/email-outbox.d.ts +212 -212
  21. package/dist/interface/crud/invoices.d.ts +2 -2
  22. package/dist/interface/crud/products.d.ts +4 -4
  23. package/dist/interface/crud/project-api-keys.d.ts +3 -3
  24. package/dist/interface/crud/projects.d.ts +16 -16
  25. package/dist/interface/crud/team-member-profiles.d.ts +18 -18
  26. package/dist/interface/crud/transactions.d.ts +2 -2
  27. package/dist/interface/crud/users.d.ts +10 -10
  28. package/dist/interface/webhooks.d.ts +2 -2
  29. package/dist/schema-fields.d.ts +3 -3
  30. package/dist/sessions.d.ts +8 -8
  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
- date: string;
154
- error: number;
155
153
  ok: number;
154
+ error: number;
155
+ date: string;
156
156
  in_progress: number;
157
157
  }[];
158
158
  emails_sent: number;
159
159
  recent_emails: {
160
160
  status: string;
161
161
  id: string;
162
- subject: string;
163
162
  created_at_millis: number;
163
+ subject: string;
164
164
  }[];
165
165
  deliverability_status: {
166
166
  error: number;
167
+ bounced: number;
167
168
  in_progress: number;
168
169
  delivered: number;
169
- bounced: number;
170
170
  };
171
171
  deliverability_rate: number;
172
172
  bounce_rate: number;
@@ -489,23 +489,23 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
489
489
  emails_by_status: Record<string, number>;
490
490
  total_emails: number;
491
491
  daily_emails_by_status: {
492
- date: string;
493
- error: number;
494
492
  ok: number;
493
+ error: number;
494
+ date: string;
495
495
  in_progress: number;
496
496
  }[];
497
497
  emails_sent: number;
498
498
  recent_emails: {
499
499
  status: string;
500
500
  id: string;
501
- subject: string;
502
501
  created_at_millis: number;
502
+ subject: string;
503
503
  }[];
504
504
  deliverability_status: {
505
505
  error: number;
506
+ bounced: number;
506
507
  in_progress: number;
507
508
  delivered: number;
508
- bounced: number;
509
509
  };
510
510
  deliverability_rate: number;
511
511
  bounce_rate: number;
@@ -49,7 +49,7 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
49
49
  userPrimaryEmail: string | null;
50
50
  userProfileImageUrl: string | null;
51
51
  subject: string;
52
- status: "open" | "pending" | "closed";
52
+ status: "pending" | "open" | "closed";
53
53
  priority: "low" | "normal" | "high" | "urgent";
54
54
  source: "email" | "manual" | "chat" | "api";
55
55
  lastMessageType: "message" | "internal-note" | "status-change";
@@ -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: "open" | "pending" | "closed";
132
+ status: "pending" | "open" | "closed";
133
133
  priority: "low" | "normal" | "high" | "urgent";
134
134
  source: "email" | "manual" | "chat" | "api";
135
135
  messageType: "message" | "internal-note" | "status-change";
@@ -173,7 +173,18 @@ 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: "open" | "pending" | "closed";
176
+ metadata: {
177
+ tags: string[];
178
+ assignedToUserId: string | null;
179
+ assignedToDisplayName: string | null;
180
+ firstResponseDueAt: string | null;
181
+ firstResponseAt: string | null;
182
+ nextResponseDueAt: string | null;
183
+ lastCustomerReplyAt: string | null;
184
+ lastAgentReplyAt: string | null;
185
+ };
186
+ source: "email" | "manual" | "chat" | "api";
187
+ status: "pending" | "open" | "closed";
177
188
  priority: "low" | "normal" | "high" | "urgent";
178
189
  subject: string;
179
190
  conversationId: string;
@@ -182,20 +193,9 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
182
193
  userDisplayName: string | null;
183
194
  userPrimaryEmail: string | null;
184
195
  userProfileImageUrl: string | null;
185
- source: "email" | "manual" | "chat" | "api";
186
196
  lastMessageType: "message" | "internal-note" | "status-change";
187
197
  preview: string | null;
188
198
  lastActivityAt: string;
189
- metadata: {
190
- tags: string[];
191
- assignedToUserId: string | null;
192
- assignedToDisplayName: string | null;
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,7 +211,18 @@ 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: "open" | "pending" | "closed";
214
+ metadata: {
215
+ tags: string[];
216
+ assignedToUserId: string | null;
217
+ assignedToDisplayName: string | null;
218
+ firstResponseDueAt: string | null;
219
+ firstResponseAt: string | null;
220
+ nextResponseDueAt: string | null;
221
+ lastCustomerReplyAt: string | null;
222
+ lastAgentReplyAt: string | null;
223
+ };
224
+ source: "email" | "manual" | "chat" | "api";
225
+ status: "pending" | "open" | "closed";
215
226
  priority: "low" | "normal" | "high" | "urgent";
216
227
  subject: string;
217
228
  conversationId: string;
@@ -220,34 +231,23 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
220
231
  userDisplayName: string | null;
221
232
  userPrimaryEmail: string | null;
222
233
  userProfileImageUrl: string | null;
223
- source: "email" | "manual" | "chat" | "api";
224
234
  lastMessageType: "message" | "internal-note" | "status-change";
225
235
  preview: string | null;
226
236
  lastActivityAt: string;
227
- metadata: {
228
- tags: string[];
229
- assignedToUserId: string | null;
230
- assignedToDisplayName: string | null;
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: "open" | "pending" | "closed";
239
+ metadata: {} | null;
240
+ body: string | null;
241
+ source: "email" | "manual" | "chat" | "api";
242
+ status: "pending" | "open" | "closed";
240
243
  id: string;
241
244
  priority: "low" | "normal" | "high" | "urgent";
242
245
  subject: string;
243
246
  conversationId: string;
244
247
  userId: string | null;
245
248
  teamId: string | null;
246
- source: "email" | "manual" | "chat" | "api";
247
- metadata: {} | null;
248
249
  createdAt: string;
249
250
  messageType: "message" | "internal-note" | "status-change";
250
- body: string | null;
251
251
  attachments: {}[];
252
252
  sender: {
253
253
  type: "user" | "agent" | "system";
@@ -257,8 +257,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
257
257
  };
258
258
  }[];
259
259
  entryPoints: {
260
- id: string;
261
260
  metadata: {} | null;
261
+ id: string;
262
262
  createdAt: string;
263
263
  updatedAt: string;
264
264
  channelType: string;
@@ -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
- 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
11
  primary_email: string | null;
16
12
  display_name: string | null;
17
13
  client_metadata: {} | null;
18
14
  client_read_only_metadata: {} | null;
19
15
  id: string;
16
+ selected_team_id: string | null;
17
+ is_anonymous: boolean;
18
+ is_restricted: boolean;
19
+ requires_totp_mfa: boolean;
20
+ primary_email_verified: boolean;
20
21
  profile_image_url: string | null;
21
22
  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;
@@ -93,8 +93,8 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
93
93
  server_metadata?: {} | null | undefined;
94
94
  display_name: string;
95
95
  id: string;
96
- created_at_millis: number;
97
96
  profile_image_url: string | null;
97
+ created_at_millis: number;
98
98
  } | null;
99
99
  selected_team_id: string | null;
100
100
  profile_image_url: string | null;
@@ -173,10 +173,10 @@ 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
176
  primary_email: 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;