@hexclave/shared 1.0.22 → 1.0.23

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.
@@ -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,8 +2073,8 @@ 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
2080
  message: string | undefined;
@@ -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,8 +2073,8 @@ 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
2080
  message: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { Result } from "../utils/results.js";
2
- import { KnownErrors } from "../known-errors.js";
3
2
  import { urlString } from "../utils/urls.js";
3
+ import { KnownErrors } from "../known-errors.js";
4
4
  import { HexclaveServerInterface } from "./server-interface.js";
5
5
 
6
6
  //#region src/interface/admin-interface.ts
@@ -159,14 +159,14 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
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;
@@ -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<"tv" | "widescreen" | "desktop" | "laptop" | "tablet" | "mobile", yup.AnyObject, undefined, "">;
372
+ declare const AnalyticsClickmapDeviceSchema: yup.StringSchema<"mobile" | "tv" | "widescreen" | "desktop" | "laptop" | "tablet", yup.AnyObject, undefined, "">;
373
373
  declare const AnalyticsClickmapTokenResponseBodySchema: yup.ObjectSchema<{
374
374
  token: string;
375
375
  origin: string;
@@ -572,14 +572,14 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
572
572
  recent_emails: {
573
573
  status: string;
574
574
  id: string;
575
- subject: string;
576
575
  created_at_millis: number;
576
+ subject: string;
577
577
  }[];
578
578
  deliverability_status: {
579
579
  error: number;
580
+ bounced: number;
580
581
  in_progress: number;
581
582
  delivered: number;
582
- bounced: number;
583
583
  };
584
584
  deliverability_rate: number;
585
585
  bounce_rate: number;
@@ -3,8 +3,8 @@ import { filterUndefined, filterUndefinedOrNull } from "../utils/objects.js";
3
3
  import { deindent } from "../utils/strings.js";
4
4
  import { publishableClientKeyNotNecessarySentinel } from "../utils/oauth.js";
5
5
  import { Result } from "../utils/results.js";
6
- import { KnownError, KnownErrors } from "../known-errors.js";
7
6
  import { urlString } from "../utils/urls.js";
7
+ import { KnownError, KnownErrors } from "../known-errors.js";
8
8
  import { AccessToken, InternalSession } from "../sessions.js";
9
9
  import { generateSecureRandomString } from "../utils/crypto.js";
10
10
  import { globalVar } from "../utils/globals.js";
@@ -56,9 +56,9 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
56
56
  preview: string | null;
57
57
  lastActivityAt: string;
58
58
  metadata: {
59
+ tags: string[];
59
60
  assignedToUserId: string | null;
60
61
  assignedToDisplayName: string | null;
61
- tags: string[];
62
62
  firstResponseDueAt: string | null;
63
63
  firstResponseAt: string | null;
64
64
  nextResponseDueAt: string | null;
@@ -174,28 +174,28 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
174
174
  closedAt?: string | null | undefined;
175
175
  recordMetadata?: {} | null | undefined;
176
176
  status: "open" | "pending" | "closed";
177
- conversationId: string;
178
- userId: string | null;
179
- teamId: string | null;
180
- userDisplayName: string | null;
181
- userPrimaryEmail: string | null;
182
- userProfileImageUrl: string | null;
183
- subject: string;
184
177
  priority: "low" | "normal" | "high" | "urgent";
185
178
  source: "email" | "manual" | "chat" | "api";
186
- lastMessageType: "message" | "internal-note" | "status-change";
187
- preview: string | null;
188
- lastActivityAt: string;
189
179
  metadata: {
180
+ tags: string[];
190
181
  assignedToUserId: string | null;
191
182
  assignedToDisplayName: string | null;
192
- tags: string[];
193
183
  firstResponseDueAt: string | null;
194
184
  firstResponseAt: string | null;
195
185
  nextResponseDueAt: string | null;
196
186
  lastCustomerReplyAt: string | null;
197
187
  lastAgentReplyAt: string | null;
198
188
  };
189
+ conversationId: string;
190
+ userId: string | null;
191
+ teamId: string | null;
192
+ userDisplayName: string | null;
193
+ userPrimaryEmail: string | null;
194
+ userProfileImageUrl: string | null;
195
+ subject: string;
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, {
@@ -212,42 +212,42 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
212
212
  closedAt?: string | null | undefined;
213
213
  recordMetadata?: {} | null | undefined;
214
214
  status: "open" | "pending" | "closed";
215
- conversationId: string;
216
- userId: string | null;
217
- teamId: string | null;
218
- userDisplayName: string | null;
219
- userPrimaryEmail: string | null;
220
- userProfileImageUrl: string | null;
221
- subject: string;
222
215
  priority: "low" | "normal" | "high" | "urgent";
223
216
  source: "email" | "manual" | "chat" | "api";
224
- lastMessageType: "message" | "internal-note" | "status-change";
225
- preview: string | null;
226
- lastActivityAt: string;
227
217
  metadata: {
218
+ tags: string[];
228
219
  assignedToUserId: string | null;
229
220
  assignedToDisplayName: string | null;
230
- tags: string[];
231
221
  firstResponseDueAt: string | null;
232
222
  firstResponseAt: string | null;
233
223
  nextResponseDueAt: string | null;
234
224
  lastCustomerReplyAt: string | null;
235
225
  lastAgentReplyAt: string | null;
236
226
  };
227
+ conversationId: string;
228
+ userId: string | null;
229
+ teamId: string | null;
230
+ userDisplayName: string | null;
231
+ userPrimaryEmail: string | null;
232
+ userProfileImageUrl: string | null;
233
+ subject: string;
234
+ lastMessageType: "message" | "internal-note" | "status-change";
235
+ preview: string | null;
236
+ lastActivityAt: string;
237
237
  };
238
238
  messages: {
239
239
  status: "open" | "pending" | "closed";
240
240
  id: string;
241
+ priority: "low" | "normal" | "high" | "urgent";
242
+ body: string | null;
243
+ source: "email" | "manual" | "chat" | "api";
244
+ metadata: {} | null;
241
245
  conversationId: string;
242
246
  userId: string | null;
243
247
  teamId: string | null;
244
248
  subject: string;
245
- priority: "low" | "normal" | "high" | "urgent";
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";
@@ -17,9 +17,9 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
17
17
  is_anonymous: boolean;
18
18
  is_restricted: boolean;
19
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;