@hexclave/shared 1.0.35 → 1.0.36

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 (35) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -1
  2. package/dist/config/schema.d.ts +8 -8
  3. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  4. package/dist/esm/config/schema.d.ts +8 -8
  5. package/dist/esm/interface/admin-metrics.d.ts +11 -11
  6. package/dist/esm/interface/conversations.d.ts +31 -31
  7. package/dist/esm/interface/crud/current-user.d.ts +5 -5
  8. package/dist/esm/interface/crud/email-outbox.d.ts +202 -202
  9. package/dist/esm/interface/crud/products.d.ts +15 -15
  10. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  11. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  12. package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
  13. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  14. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  15. package/dist/esm/interface/crud/users.d.ts +6 -6
  16. package/dist/esm/interface/plan-usage.d.ts +1 -1
  17. package/dist/esm/known-errors.d.ts +1 -1
  18. package/dist/esm/schema-fields.d.ts +1 -1
  19. package/dist/esm/sessions.d.ts +7 -7
  20. package/dist/interface/admin-metrics.d.ts +11 -11
  21. package/dist/interface/conversations.d.ts +31 -31
  22. package/dist/interface/crud/current-user.d.ts +5 -5
  23. package/dist/interface/crud/email-outbox.d.ts +202 -202
  24. package/dist/interface/crud/products.d.ts +15 -15
  25. package/dist/interface/crud/products.d.ts.map +1 -1
  26. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  27. package/dist/interface/crud/team-member-profiles.d.ts +8 -8
  28. package/dist/interface/crud/transactions.d.ts +20 -20
  29. package/dist/interface/crud/transactions.d.ts.map +1 -1
  30. package/dist/interface/crud/users.d.ts +6 -6
  31. package/dist/interface/plan-usage.d.ts +1 -1
  32. package/dist/known-errors.d.ts +1 -1
  33. package/dist/schema-fields.d.ts +1 -1
  34. package/dist/sessions.d.ts +7 -7
  35. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../../chunk-BE-pF4vm.js');
3
- let ______apps_apps_config_js = require("../../apps/apps-config.js");
4
3
  let ______utils_strings_js = require("../../utils/strings.js");
4
+ let ______apps_apps_config_js = require("../../apps/apps-config.js");
5
5
 
6
6
  //#region src/ai/unified-prompts/reminders.ts
7
7
  const remindersPrompt = ______utils_strings_js.deindent`
@@ -147,8 +147,8 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
147
147
  };
148
148
  signUpRules: Record<string, {
149
149
  displayName?: string | undefined;
150
- priority?: number | undefined;
151
150
  enabled?: boolean | undefined;
151
+ priority?: number | undefined;
152
152
  condition?: string | undefined;
153
153
  action: {
154
154
  message?: string | undefined;
@@ -356,8 +356,8 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
356
356
  };
357
357
  signUpRules: Record<string, {
358
358
  displayName?: string | undefined;
359
- priority?: number | undefined;
360
359
  enabled?: boolean | undefined;
360
+ priority?: number | undefined;
361
361
  condition?: string | undefined;
362
362
  action: {
363
363
  message?: string | undefined;
@@ -487,8 +487,8 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
487
487
  };
488
488
  signUpRules: Record<string, {
489
489
  displayName?: string | undefined;
490
- priority?: number | undefined;
491
490
  enabled?: boolean | undefined;
491
+ priority?: number | undefined;
492
492
  condition?: string | undefined;
493
493
  action: {
494
494
  message?: string | undefined;
@@ -1104,8 +1104,8 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1104
1104
  };
1105
1105
  signUpRules: Record<string, {
1106
1106
  displayName?: string | undefined;
1107
- priority?: number | undefined;
1108
1107
  enabled?: boolean | undefined;
1108
+ priority?: number | undefined;
1109
1109
  condition?: string | undefined;
1110
1110
  action: {
1111
1111
  message?: string | undefined;
@@ -1235,8 +1235,8 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1235
1235
  };
1236
1236
  signUpRules: Record<string, {
1237
1237
  displayName?: string | undefined;
1238
- priority?: number | undefined;
1239
1238
  enabled?: boolean | undefined;
1239
+ priority?: number | undefined;
1240
1240
  condition?: string | undefined;
1241
1241
  action: {
1242
1242
  message?: string | undefined;
@@ -2073,12 +2073,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2073
2073
  };
2074
2074
  signUpRules: Record<string, {
2075
2075
  displayName: string | undefined;
2076
- priority: number;
2077
2076
  enabled: boolean;
2077
+ priority: number;
2078
2078
  condition: string | undefined;
2079
2079
  action: {
2080
- message: string | undefined;
2081
2080
  type: "allow" | "reject" | "restrict" | "log";
2081
+ message: string | undefined;
2082
2082
  };
2083
2083
  }>;
2084
2084
  allowSignUp: boolean;
@@ -2146,8 +2146,8 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2146
2146
  stackable: boolean | undefined;
2147
2147
  includedItems: {
2148
2148
  [x: string]: {
2149
- quantity: number;
2150
2149
  repeat: "never" | [number, "day" | "week" | "month" | "year"];
2150
+ quantity: number;
2151
2151
  expires: "never" | "when-purchase-expires" | "when-repeated";
2152
2152
  };
2153
2153
  };
@@ -1,5 +1,5 @@
1
- import { ALL_APPS } from "../../apps/apps-config.js";
2
1
  import { deindent } from "../../utils/strings.js";
2
+ import { ALL_APPS } from "../../apps/apps-config.js";
3
3
 
4
4
  //#region src/ai/unified-prompts/reminders.ts
5
5
  const remindersPrompt = deindent`
@@ -147,8 +147,8 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
147
147
  };
148
148
  signUpRules: Record<string, {
149
149
  displayName?: string | undefined;
150
- priority?: number | undefined;
151
150
  enabled?: boolean | undefined;
151
+ priority?: number | undefined;
152
152
  condition?: string | undefined;
153
153
  action: {
154
154
  message?: string | undefined;
@@ -356,8 +356,8 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
356
356
  };
357
357
  signUpRules: Record<string, {
358
358
  displayName?: string | undefined;
359
- priority?: number | undefined;
360
359
  enabled?: boolean | undefined;
360
+ priority?: number | undefined;
361
361
  condition?: string | undefined;
362
362
  action: {
363
363
  message?: string | undefined;
@@ -487,8 +487,8 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
487
487
  };
488
488
  signUpRules: Record<string, {
489
489
  displayName?: string | undefined;
490
- priority?: number | undefined;
491
490
  enabled?: boolean | undefined;
491
+ priority?: number | undefined;
492
492
  condition?: string | undefined;
493
493
  action: {
494
494
  message?: string | undefined;
@@ -1104,8 +1104,8 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1104
1104
  };
1105
1105
  signUpRules: Record<string, {
1106
1106
  displayName?: string | undefined;
1107
- priority?: number | undefined;
1108
1107
  enabled?: boolean | undefined;
1108
+ priority?: number | undefined;
1109
1109
  condition?: string | undefined;
1110
1110
  action: {
1111
1111
  message?: string | undefined;
@@ -1235,8 +1235,8 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1235
1235
  };
1236
1236
  signUpRules: Record<string, {
1237
1237
  displayName?: string | undefined;
1238
- priority?: number | undefined;
1239
1238
  enabled?: boolean | undefined;
1239
+ priority?: number | undefined;
1240
1240
  condition?: string | undefined;
1241
1241
  action: {
1242
1242
  message?: string | undefined;
@@ -2073,12 +2073,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2073
2073
  };
2074
2074
  signUpRules: Record<string, {
2075
2075
  displayName: string | undefined;
2076
- priority: number;
2077
2076
  enabled: boolean;
2077
+ priority: number;
2078
2078
  condition: string | undefined;
2079
2079
  action: {
2080
- message: string | undefined;
2081
2080
  type: "allow" | "reject" | "restrict" | "log";
2081
+ message: string | undefined;
2082
2082
  };
2083
2083
  }>;
2084
2084
  allowSignUp: boolean;
@@ -2146,8 +2146,8 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2146
2146
  stackable: boolean | undefined;
2147
2147
  includedItems: {
2148
2148
  [x: string]: {
2149
- quantity: number;
2150
2149
  repeat: "never" | [number, "day" | "week" | "month" | "year"];
2150
+ quantity: number;
2151
2151
  expires: "never" | "when-purchase-expires" | "when-repeated";
2152
2152
  };
2153
2153
  };
@@ -150,15 +150,15 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
150
150
  activity: number;
151
151
  }[];
152
152
  daily_emails_by_status: {
153
- error: number;
154
153
  date: string;
155
154
  ok: number;
155
+ error: number;
156
156
  in_progress: number;
157
157
  }[];
158
158
  emails_sent: number;
159
159
  recent_emails: {
160
- status: string;
161
160
  id: string;
161
+ status: string;
162
162
  subject: string;
163
163
  created_at_millis: number;
164
164
  }[];
@@ -398,22 +398,22 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
398
398
  sampling: number;
399
399
  routes: {
400
400
  path: string;
401
- clicks: number;
402
401
  users: number;
402
+ clicks: number;
403
403
  replays: number;
404
404
  }[];
405
405
  users: {
406
- primary_email: string | null;
407
406
  display_name: string | null;
408
407
  id: string;
408
+ primary_email: string | null;
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
- primary_email: string | null;
447
446
  display_name: string | null;
448
447
  id: string;
448
+ primary_email: string | null;
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
- primary_email: string | null;
475
474
  display_name: string | null;
476
475
  id: string;
476
+ primary_email: string | null;
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
- primary_email: string | null;
483
482
  display_name: string | null;
484
483
  id: string;
484
+ primary_email: string | null;
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
- primary_email: string | null;
491
490
  display_name: string | null;
492
491
  id: string;
492
+ primary_email: string | null;
493
493
  profile_image_url: string | null;
494
494
  signed_up_at_millis: number;
495
495
  last_active_at_millis: number | null;
@@ -563,15 +563,15 @@ 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
  date: string;
568
567
  ok: number;
568
+ error: number;
569
569
  in_progress: number;
570
570
  }[];
571
571
  emails_sent: number;
572
572
  recent_emails: {
573
- status: string;
574
573
  id: string;
574
+ status: string;
575
575
  subject: string;
576
576
  created_at_millis: number;
577
577
  }[];
@@ -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: "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";
@@ -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";
@@ -173,8 +173,19 @@ 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";
176
+ status: "open" | "pending" | "closed";
177
+ priority: "low" | "normal" | "high" | "urgent";
178
+ subject: string;
179
+ conversationId: string;
180
+ userId: string | null;
181
+ teamId: string | null;
182
+ userDisplayName: string | null;
183
+ userPrimaryEmail: string | null;
184
+ userProfileImageUrl: string | null;
177
185
  source: "email" | "manual" | "chat" | "api";
186
+ lastMessageType: "message" | "internal-note" | "status-change";
187
+ preview: string | null;
188
+ lastActivityAt: string;
178
189
  metadata: {
179
190
  assignedToUserId: string | null;
180
191
  assignedToDisplayName: string | null;
@@ -185,17 +196,6 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
185
196
  lastCustomerReplyAt: string | null;
186
197
  lastAgentReplyAt: string | null;
187
198
  };
188
- subject: string;
189
- conversationId: string;
190
- userId: string | null;
191
- teamId: string | null;
192
- userDisplayName: string | null;
193
- userPrimaryEmail: string | null;
194
- userProfileImageUrl: string | null;
195
- priority: "low" | "normal" | "high" | "urgent";
196
- lastMessageType: "message" | "internal-note" | "status-change";
197
- preview: string | null;
198
- lastActivityAt: string;
199
199
  }[];
200
200
  hasMore: boolean;
201
201
  }, yup$1.AnyObject, {
@@ -211,8 +211,19 @@ 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";
214
+ status: "open" | "pending" | "closed";
215
+ priority: "low" | "normal" | "high" | "urgent";
216
+ subject: string;
217
+ conversationId: string;
218
+ userId: string | null;
219
+ teamId: string | null;
220
+ userDisplayName: string | null;
221
+ userPrimaryEmail: string | null;
222
+ userProfileImageUrl: string | null;
215
223
  source: "email" | "manual" | "chat" | "api";
224
+ lastMessageType: "message" | "internal-note" | "status-change";
225
+ preview: string | null;
226
+ lastActivityAt: string;
216
227
  metadata: {
217
228
  assignedToUserId: string | null;
218
229
  assignedToDisplayName: string | null;
@@ -223,31 +234,20 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
223
234
  lastCustomerReplyAt: string | null;
224
235
  lastAgentReplyAt: string | null;
225
236
  };
226
- subject: string;
227
- conversationId: string;
228
- userId: string | null;
229
- teamId: string | null;
230
- userDisplayName: string | null;
231
- userPrimaryEmail: string | null;
232
- userProfileImageUrl: string | null;
233
- priority: "low" | "normal" | "high" | "urgent";
234
- lastMessageType: "message" | "internal-note" | "status-change";
235
- preview: string | null;
236
- lastActivityAt: string;
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";
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";
@@ -5,10 +5,6 @@ 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
- restricted_reason: {
9
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
10
- } | null;
11
- primary_email: string | null;
12
8
  display_name: string | null;
13
9
  client_metadata: {} | null;
14
10
  client_read_only_metadata: {} | null;
@@ -16,7 +12,11 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
16
12
  selected_team_id: string | null;
17
13
  is_anonymous: boolean;
18
14
  is_restricted: boolean;
15
+ restricted_reason: {
16
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
17
+ } | null;
19
18
  requires_totp_mfa: boolean;
19
+ primary_email: string | null;
20
20
  profile_image_url: string | null;
21
21
  signed_up_at_millis: number;
22
22
  primary_email_verified: boolean;
@@ -173,10 +173,10 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
173
173
  requires_totp_mfa: undefined;
174
174
  }, "">;
175
175
  clientUpdateSchema: yup$1.ObjectSchema<{
176
- primary_email: string | null | undefined;
177
176
  display_name: string | null | undefined;
178
177
  client_metadata: {} | null | undefined;
179
178
  selected_team_id: string | null | undefined;
179
+ primary_email: 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;