@hexclave/shared 1.0.13 → 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.
@@ -26,8 +26,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
26
26
  }>;
27
27
  display_name: string;
28
28
  included_items: Record<string, {
29
- quantity?: number | undefined;
30
29
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
30
+ quantity?: number | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -61,8 +61,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
61
61
  }>;
62
62
  display_name: string;
63
63
  included_items: Record<string, {
64
- quantity?: number | undefined;
65
64
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
65
+ quantity?: number | undefined;
66
66
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
67
67
  }>;
68
68
  };
@@ -124,8 +124,8 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
124
124
  }>;
125
125
  display_name: string;
126
126
  included_items: Record<string, {
127
- quantity?: number | undefined;
128
127
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
128
+ quantity?: number | undefined;
129
129
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
130
  }>;
131
131
  };
@@ -152,8 +152,8 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
152
152
  }>;
153
153
  display_name: string;
154
154
  included_items: Record<string, {
155
- quantity?: number | undefined;
156
155
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
156
+ quantity?: number | undefined;
157
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
158
158
  }>;
159
159
  };
@@ -79,9 +79,9 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
79
79
  is_public: undefined;
80
80
  user_id: undefined;
81
81
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
82
+ description: string;
82
83
  user_id: string;
83
84
  type: "user";
84
- description: string;
85
85
  id: string;
86
86
  created_at_millis: number;
87
87
  expires_at_millis: number | undefined;
@@ -177,9 +177,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
177
177
  is_public: undefined;
178
178
  team_id: undefined;
179
179
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
180
+ description: string;
180
181
  type: "team";
181
182
  team_id: string;
182
- description: string;
183
183
  id: string;
184
184
  created_at_millis: number;
185
185
  expires_at_millis: number | undefined;
@@ -4,7 +4,7 @@ import { CrudTypeOf } from "../../crud";
4
4
 
5
5
  //#region src/interface/crud/projects.d.ts
6
6
  declare const emailConfigSchema: yup$1.ObjectSchema<{
7
- type: "shared" | "standard";
7
+ type: "standard" | "shared";
8
8
  host: string | undefined;
9
9
  port: number | undefined;
10
10
  username: string | undefined;
@@ -21,7 +21,7 @@ declare const emailConfigSchema: yup$1.ObjectSchema<{
21
21
  sender_email: undefined;
22
22
  }, "">;
23
23
  declare const emailConfigWithoutPasswordSchema: yup$1.ObjectSchema<{
24
- type: "shared" | "standard";
24
+ type: "standard" | "shared";
25
25
  host: string | undefined;
26
26
  port: number | undefined;
27
27
  username: string | undefined;
@@ -67,7 +67,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
67
67
  facebook_config_id?: string | undefined;
68
68
  microsoft_tenant_id?: string | undefined;
69
69
  apple_bundle_ids?: string[] | undefined;
70
- type: "shared" | "standard";
70
+ type: "standard" | "shared";
71
71
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
72
72
  provider_config_id: string;
73
73
  }[];
@@ -90,7 +90,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
90
90
  username?: string | undefined;
91
91
  sender_name?: string | undefined;
92
92
  sender_email?: string | undefined;
93
- type: "shared" | "standard";
93
+ type: "standard" | "shared";
94
94
  };
95
95
  email_theme: string;
96
96
  create_team_on_sign_up: boolean;
@@ -220,7 +220,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
220
220
  facebook_config_id?: string | undefined;
221
221
  microsoft_tenant_id?: string | undefined;
222
222
  apple_bundle_ids?: string[] | undefined;
223
- type: "shared" | "standard";
223
+ type: "standard" | "shared";
224
224
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
225
225
  }[] | undefined;
226
226
  allow_localhost?: boolean | undefined;
@@ -239,7 +239,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
239
239
  username?: string | undefined;
240
240
  sender_name?: string | undefined;
241
241
  sender_email?: string | undefined;
242
- type: "shared" | "standard";
242
+ type: "standard" | "shared";
243
243
  } | undefined;
244
244
  email_theme?: string | undefined;
245
245
  create_team_on_sign_up?: boolean | undefined;
@@ -300,7 +300,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
300
300
  facebook_config_id?: string | undefined;
301
301
  microsoft_tenant_id?: string | undefined;
302
302
  apple_bundle_ids?: string[] | undefined;
303
- type: "shared" | "standard";
303
+ type: "standard" | "shared";
304
304
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
305
305
  }[] | undefined;
306
306
  allow_localhost?: boolean | undefined;
@@ -319,7 +319,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
319
319
  username?: string | undefined;
320
320
  sender_name?: string | undefined;
321
321
  sender_email?: string | undefined;
322
- type: "shared" | "standard";
322
+ type: "standard" | "shared";
323
323
  } | undefined;
324
324
  email_theme?: string | undefined;
325
325
  create_team_on_sign_up?: boolean | undefined;
@@ -440,7 +440,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
440
440
  facebook_config_id?: string | undefined;
441
441
  microsoft_tenant_id?: string | undefined;
442
442
  apple_bundle_ids?: string[] | undefined;
443
- type: "shared" | "standard";
443
+ type: "standard" | "shared";
444
444
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
445
445
  provider_config_id: string;
446
446
  }[];
@@ -463,7 +463,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
463
463
  username?: string | undefined;
464
464
  sender_name?: string | undefined;
465
465
  sender_email?: string | undefined;
466
- type: "shared" | "standard";
466
+ type: "standard" | "shared";
467
467
  };
468
468
  email_theme: string;
469
469
  create_team_on_sign_up: boolean;
@@ -555,7 +555,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
555
555
  facebook_config_id?: string | undefined;
556
556
  microsoft_tenant_id?: string | undefined;
557
557
  apple_bundle_ids?: string[] | undefined;
558
- type: "shared" | "standard";
558
+ type: "standard" | "shared";
559
559
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
560
560
  }[] | undefined;
561
561
  allow_localhost?: boolean | undefined;
@@ -574,7 +574,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
574
574
  username?: string | undefined;
575
575
  sender_name?: string | undefined;
576
576
  sender_email?: string | undefined;
577
- type: "shared" | "standard";
577
+ type: "standard" | "shared";
578
578
  } | undefined;
579
579
  email_theme?: string | undefined;
580
580
  create_team_on_sign_up?: boolean | undefined;
@@ -663,7 +663,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
663
663
  facebook_config_id?: string | undefined;
664
664
  microsoft_tenant_id?: string | undefined;
665
665
  apple_bundle_ids?: string[] | undefined;
666
- type: "shared" | "standard";
666
+ type: "standard" | "shared";
667
667
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
668
668
  provider_config_id: string;
669
669
  }[];
@@ -686,7 +686,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
686
686
  username?: string | undefined;
687
687
  sender_name?: string | undefined;
688
688
  sender_email?: string | undefined;
689
- type: "shared" | "standard";
689
+ type: "standard" | "shared";
690
690
  };
691
691
  email_theme: string;
692
692
  create_team_on_sign_up: boolean;
@@ -778,7 +778,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
778
778
  facebook_config_id?: string | undefined;
779
779
  microsoft_tenant_id?: string | undefined;
780
780
  apple_bundle_ids?: string[] | undefined;
781
- type: "shared" | "standard";
781
+ type: "standard" | "shared";
782
782
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
783
783
  }[] | undefined;
784
784
  allow_localhost?: boolean | undefined;
@@ -797,7 +797,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
797
797
  username?: string | undefined;
798
798
  sender_name?: string | undefined;
799
799
  sender_email?: string | undefined;
800
- type: "shared" | "standard";
800
+ type: "standard" | "shared";
801
801
  } | undefined;
802
802
  email_theme?: string | undefined;
803
803
  create_team_on_sign_up?: boolean | undefined;
@@ -58,8 +58,8 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
58
58
  }>;
59
59
  display_name: string;
60
60
  included_items: Record<string, {
61
- quantity?: number | undefined;
62
61
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
62
+ quantity?: number | undefined;
63
63
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
64
64
  }>;
65
65
  };
@@ -142,8 +142,8 @@ declare const transactionSchema: yup$1.ObjectSchema<{
142
142
  }>;
143
143
  display_name: string;
144
144
  included_items: Record<string, {
145
- quantity?: number | undefined;
146
145
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
146
+ quantity?: number | undefined;
147
147
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
148
148
  }>;
149
149
  };
@@ -140,7 +140,7 @@ declare const projectSignUpEnabledSchema: yup$1.BooleanSchema<boolean | undefine
140
140
  declare const projectCredentialEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
141
141
  declare const oauthIdSchema: yup$1.StringSchema<"google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined, yup$1.AnyObject, undefined, "">;
142
142
  declare const oauthEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
143
- declare const oauthTypeSchema: yup$1.StringSchema<"shared" | "standard" | undefined, yup$1.AnyObject, undefined, "">;
143
+ declare const oauthTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
144
144
  declare const oauthClientIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
145
145
  declare const oauthClientSecretSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
146
146
  declare const oauthCustomCallbackUrlSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
@@ -149,7 +149,7 @@ declare const oauthMicrosoftTenantIdSchema: yup$1.StringSchema<string | undefine
149
149
  declare const oauthAppleBundleIdsSchema: yup$1.ArraySchema<string[] | undefined, yup$1.AnyObject, undefined, "">;
150
150
  declare const oauthAppleBundleIdSchema: yup$1.StringSchema<string, yup$1.AnyObject, undefined, "">;
151
151
  declare const oauthAccountMergeStrategySchema: yup$1.StringSchema<"link_method" | "raise_error" | "allow_duplicates" | undefined, yup$1.AnyObject, undefined, "">;
152
- declare const emailTypeSchema: yup$1.StringSchema<"shared" | "standard" | undefined, yup$1.AnyObject, undefined, "">;
152
+ declare const emailTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
153
153
  declare const emailSenderNameSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
154
154
  declare const emailHostSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
155
155
  declare const emailPortSchema: yup$1.NumberSchema<number | undefined, yup$1.AnyObject, undefined, "">;
@@ -312,8 +312,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
312
312
  free_trial?: DayInterval | undefined;
313
313
  }>;
314
314
  included_items: Record<string, {
315
- quantity?: number | undefined;
316
315
  repeat?: "never" | DayInterval | undefined;
316
+ quantity?: number | undefined;
317
317
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
318
318
  }>;
319
319
  client_metadata: {} | null | undefined;
@@ -9,6 +9,8 @@ declare class AccessToken {
9
9
  private constructor();
10
10
  get payload(): {
11
11
  exp?: number | undefined;
12
+ name: string | null;
13
+ sub: string;
12
14
  project_id: string;
13
15
  refresh_token_id: string;
14
16
  email: string | null;
@@ -16,12 +18,10 @@ declare class AccessToken {
16
18
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
17
19
  } | null;
18
20
  branch_id: string;
19
- sub: string;
20
21
  iat: number;
21
22
  iss: string;
22
23
  aud: string;
23
24
  role: "authenticated";
24
- name: string | null;
25
25
  email_verified: boolean;
26
26
  selected_team_id: string | null;
27
27
  signed_up_at: number;
@@ -150,9 +150,9 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
150
150
  activity: number;
151
151
  }[];
152
152
  daily_emails_by_status: {
153
+ ok: number;
153
154
  error: number;
154
155
  date: string;
155
- ok: number;
156
156
  in_progress: number;
157
157
  }[];
158
158
  emails_sent: number;
@@ -489,9 +489,9 @@ 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
+ ok: number;
492
493
  error: number;
493
494
  date: string;
494
- ok: number;
495
495
  in_progress: number;
496
496
  }[];
497
497
  emails_sent: number;
@@ -173,8 +173,6 @@ 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
176
  metadata: {
179
177
  tags: string[];
180
178
  assignedToUserId: string | null;
@@ -185,6 +183,8 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
185
183
  lastCustomerReplyAt: string | null;
186
184
  lastAgentReplyAt: string | null;
187
185
  };
186
+ source: "email" | "manual" | "chat" | "api";
187
+ status: "pending" | "open" | "closed";
188
188
  priority: "low" | "normal" | "high" | "urgent";
189
189
  subject: string;
190
190
  conversationId: string;
@@ -211,8 +211,6 @@ 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
214
  metadata: {
217
215
  tags: string[];
218
216
  assignedToUserId: string | null;
@@ -223,6 +221,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
223
221
  lastCustomerReplyAt: string | null;
224
222
  lastAgentReplyAt: string | null;
225
223
  };
224
+ source: "email" | "manual" | "chat" | "api";
225
+ status: "pending" | "open" | "closed";
226
226
  priority: "low" | "normal" | "high" | "urgent";
227
227
  subject: string;
228
228
  conversationId: string;
@@ -236,11 +236,11 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
236
236
  lastActivityAt: string;
237
237
  };
238
238
  messages: {
239
- status: "pending" | "open" | "closed";
240
- id: string;
239
+ metadata: {} | null;
241
240
  body: string | null;
242
241
  source: "email" | "manual" | "chat" | "api";
243
- metadata: {} | null;
242
+ status: "pending" | "open" | "closed";
243
+ id: string;
244
244
  priority: "low" | "normal" | "high" | "urgent";
245
245
  subject: string;
246
246
  conversationId: string;
@@ -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;