@hexclave/shared 1.0.18 → 1.0.19

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 (63) hide show
  1. package/dist/ai/unified-prompts/reminders.js +10 -7
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +2 -1
  4. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  5. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +238 -10
  6. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  7. package/dist/ai/unified-prompts/skill-site-prompt.js +1 -1
  8. package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  9. package/dist/apps/apps-config.d.ts +7 -3
  10. package/dist/apps/apps-config.d.ts.map +1 -1
  11. package/dist/apps/apps-config.js +12 -4
  12. package/dist/apps/apps-config.js.map +1 -1
  13. package/dist/config/schema.d.ts +217 -217
  14. package/dist/esm/ai/unified-prompts/reminders.js +10 -7
  15. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  16. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +2 -1
  17. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  18. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +238 -11
  19. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  20. package/dist/esm/ai/unified-prompts/skill-site-prompt.js +1 -1
  21. package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  22. package/dist/esm/apps/apps-config.d.ts +7 -3
  23. package/dist/esm/apps/apps-config.d.ts.map +1 -1
  24. package/dist/esm/apps/apps-config.js +12 -5
  25. package/dist/esm/apps/apps-config.js.map +1 -1
  26. package/dist/esm/config/schema.d.ts +217 -217
  27. package/dist/esm/interface/admin-metrics.d.ts +15 -15
  28. package/dist/esm/interface/conversations.d.ts +12 -12
  29. package/dist/esm/interface/crud/current-user.d.ts +10 -10
  30. package/dist/esm/interface/crud/email-outbox.d.ts +146 -146
  31. package/dist/esm/interface/crud/products.d.ts +16 -16
  32. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  33. package/dist/esm/interface/crud/project-api-keys.d.ts +6 -6
  34. package/dist/esm/interface/crud/projects.d.ts +35 -35
  35. package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
  36. package/dist/esm/interface/crud/transactions.d.ts +21 -21
  37. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  38. package/dist/esm/interface/crud/users.d.ts +16 -16
  39. package/dist/esm/interface/webhooks.d.ts +4 -4
  40. package/dist/esm/known-errors.d.ts +5 -5
  41. package/dist/esm/schema-fields.d.ts +5 -5
  42. package/dist/esm/sessions.d.ts +7 -7
  43. package/dist/interface/admin-metrics.d.ts +15 -15
  44. package/dist/interface/conversations.d.ts +12 -12
  45. package/dist/interface/crud/current-user.d.ts +10 -10
  46. package/dist/interface/crud/email-outbox.d.ts +146 -146
  47. package/dist/interface/crud/products.d.ts +16 -16
  48. package/dist/interface/crud/products.d.ts.map +1 -1
  49. package/dist/interface/crud/project-api-keys.d.ts +6 -6
  50. package/dist/interface/crud/projects.d.ts +35 -35
  51. package/dist/interface/crud/team-member-profiles.d.ts +20 -20
  52. package/dist/interface/crud/transactions.d.ts +21 -21
  53. package/dist/interface/crud/transactions.d.ts.map +1 -1
  54. package/dist/interface/crud/users.d.ts +16 -16
  55. package/dist/interface/webhooks.d.ts +4 -4
  56. package/dist/known-errors.d.ts +5 -5
  57. package/dist/schema-fields.d.ts +5 -5
  58. package/dist/sessions.d.ts +7 -7
  59. package/package.json +1 -1
  60. package/src/ai/unified-prompts/reminders.ts +10 -7
  61. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +244 -10
  62. package/src/ai/unified-prompts/skill-site-prompt.ts +1 -1
  63. package/src/apps/apps-config.ts +13 -2
@@ -81,10 +81,10 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
81
81
  client_metadata?: {} | null | undefined;
82
82
  client_read_only_metadata?: {} | null | undefined;
83
83
  server_metadata?: {} | null | undefined;
84
- id: string;
85
84
  display_name: string;
86
- profile_image_url: string | null;
85
+ id: string;
87
86
  created_at_millis: number;
87
+ profile_image_url: string | null;
88
88
  } | null;
89
89
  selected_team_id: string | null;
90
90
  profile_image_url: string | null;
@@ -163,13 +163,14 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
163
163
  requires_totp_mfa: undefined;
164
164
  }, "">;
165
165
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
166
- primary_email: string | null | undefined;
167
- password: string | null | undefined;
168
166
  display_name: string | null | undefined;
169
167
  client_metadata: {} | null | undefined;
170
168
  client_read_only_metadata: {} | null | undefined;
171
169
  server_metadata: {} | null | undefined;
172
170
  is_anonymous: boolean | undefined;
171
+ password: string | null | undefined;
172
+ primary_email: string | null | undefined;
173
+ country_code: string | null | undefined;
173
174
  profile_image_url: string | null | undefined;
174
175
  primary_email_verified: boolean | undefined;
175
176
  primary_email_auth_enabled: boolean | undefined;
@@ -178,7 +179,6 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
178
179
  restricted_by_admin: boolean | undefined;
179
180
  restricted_by_admin_reason: string | null | undefined;
180
181
  restricted_by_admin_private_details: string | null | undefined;
181
- country_code: string | null | undefined;
182
182
  risk_scores: {
183
183
  sign_up: {
184
184
  bot: number;
@@ -189,8 +189,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
189
189
  totp_secret_base64: string | null | undefined;
190
190
  } & {
191
191
  oauth_providers: {
192
- email: string | null;
193
192
  id: string;
193
+ email: string | null;
194
194
  account_id: string;
195
195
  }[] | undefined;
196
196
  is_anonymous: boolean | undefined;
@@ -234,10 +234,10 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
234
234
  client_metadata?: {} | null | undefined;
235
235
  client_read_only_metadata?: {} | null | undefined;
236
236
  server_metadata?: {} | null | undefined;
237
- id: string;
238
237
  display_name: string;
239
- profile_image_url: string | null;
238
+ id: string;
240
239
  created_at_millis: number;
240
+ profile_image_url: string | null;
241
241
  } | null;
242
242
  selected_team_id: string | null;
243
243
  profile_image_url: string | null;
@@ -369,13 +369,14 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
369
369
  };
370
370
  }, "">;
371
371
  serverCreateSchema: yup$1.ObjectSchema<{
372
- primary_email: string | null | undefined;
373
- password: string | null | undefined;
374
372
  display_name: string | null | undefined;
375
373
  client_metadata: {} | null | undefined;
376
374
  client_read_only_metadata: {} | null | undefined;
377
375
  server_metadata: {} | null | undefined;
378
376
  is_anonymous: boolean | undefined;
377
+ password: string | null | undefined;
378
+ primary_email: string | null | undefined;
379
+ country_code: string | null | undefined;
379
380
  profile_image_url: string | null | undefined;
380
381
  primary_email_verified: boolean | undefined;
381
382
  primary_email_auth_enabled: boolean | undefined;
@@ -384,7 +385,6 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
384
385
  restricted_by_admin: boolean | undefined;
385
386
  restricted_by_admin_reason: string | null | undefined;
386
387
  restricted_by_admin_private_details: string | null | undefined;
387
- country_code: string | null | undefined;
388
388
  risk_scores: {
389
389
  sign_up: {
390
390
  bot: number;
@@ -395,8 +395,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
395
395
  totp_secret_base64: string | null | undefined;
396
396
  } & {
397
397
  oauth_providers: {
398
- email: string | null;
399
398
  id: string;
399
+ email: string | null;
400
400
  account_id: string;
401
401
  }[] | undefined;
402
402
  is_anonymous: boolean | undefined;
@@ -468,10 +468,10 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
468
468
  client_metadata?: {} | null | undefined;
469
469
  client_read_only_metadata?: {} | null | undefined;
470
470
  server_metadata?: {} | null | undefined;
471
- id: string;
472
471
  display_name: string;
473
- profile_image_url: string | null;
472
+ id: string;
474
473
  created_at_millis: number;
474
+ profile_image_url: string | null;
475
475
  } | null;
476
476
  selected_team_id: string | null;
477
477
  profile_image_url: string | null;
@@ -559,10 +559,10 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
559
559
  client_metadata?: {} | null | undefined;
560
560
  client_read_only_metadata?: {} | null | undefined;
561
561
  server_metadata?: {} | null | undefined;
562
- id: string;
563
562
  display_name: string;
564
- profile_image_url: string | null;
563
+ id: string;
565
564
  created_at_millis: number;
565
+ profile_image_url: string | null;
566
566
  } | null;
567
567
  selected_team_id: string | null;
568
568
  profile_image_url: string | null;
@@ -20,10 +20,10 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
20
20
  client_metadata?: {} | null | undefined;
21
21
  client_read_only_metadata?: {} | null | undefined;
22
22
  server_metadata?: {} | null | undefined;
23
- id: string;
24
23
  display_name: string;
25
- profile_image_url: string | null;
24
+ id: string;
26
25
  created_at_millis: number;
26
+ profile_image_url: string | null;
27
27
  } | null;
28
28
  selected_team_id: string | null;
29
29
  profile_image_url: string | null;
@@ -110,10 +110,10 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
110
110
  client_metadata?: {} | null | undefined;
111
111
  client_read_only_metadata?: {} | null | undefined;
112
112
  server_metadata?: {} | null | undefined;
113
- id: string;
114
113
  display_name: string;
115
- profile_image_url: string | null;
114
+ id: string;
116
115
  created_at_millis: number;
116
+ profile_image_url: string | null;
117
117
  } | null;
118
118
  selected_team_id: string | null;
119
119
  profile_image_url: string | null;
@@ -369,7 +369,7 @@ declare const KnownErrors: {
369
369
  PermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"PERMISSION_NOT_FOUND">, [permissionId: string]> & {
370
370
  errorCode: "PERMISSION_NOT_FOUND";
371
371
  };
372
- PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "team" | "project", actualScope: "team" | "project" | null]> & {
372
+ PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "project" | "team", actualScope: "project" | "team" | null]> & {
373
373
  errorCode: "WRONG_PERMISSION_SCOPE";
374
374
  };
375
375
  ContainedPermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"CONTAINED_PERMISSION_NOT_FOUND">, [permissionId: string]> & {
@@ -512,16 +512,16 @@ declare const KnownErrors: {
512
512
  ItemNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_NOT_FOUND">, [itemId: string]> & {
513
513
  errorCode: "ITEM_NOT_FOUND";
514
514
  };
515
- ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
515
+ ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
516
516
  errorCode: "ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH";
517
517
  };
518
518
  CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
519
519
  errorCode: "CUSTOMER_DOES_NOT_EXIST";
520
520
  };
521
- ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "item_exists" | "server_only" | null]> & {
521
+ ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "server_only" | "item_exists" | null]> & {
522
522
  errorCode: "PRODUCT_DOES_NOT_EXIST";
523
523
  };
524
- ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
524
+ ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
525
525
  errorCode: "PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH";
526
526
  };
527
527
  ProductAlreadyGranted: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_ALREADY_GRANTED">, [productId: string, customerId: string]> & {
@@ -548,7 +548,7 @@ declare const KnownErrors: {
548
548
  StripeAccountInfoNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"STRIPE_ACCOUNT_INFO_NOT_FOUND">, []> & {
549
549
  errorCode: "STRIPE_ACCOUNT_INFO_NOT_FOUND";
550
550
  };
551
- DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "team" | "user", customerId: string]> & {
551
+ DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "user" | "team", customerId: string]> & {
552
552
  errorCode: "DEFAULT_PAYMENT_METHOD_REQUIRED";
553
553
  };
554
554
  NewPurchasesBlocked: KnownErrorConstructor<KnownError & KnownErrorBrand<"NEW_PURCHASES_BLOCKED">, []> & {
@@ -172,7 +172,7 @@ declare const customDashboardsSchema: yup$1.MixedSchema<Record<string, {
172
172
  displayName: string;
173
173
  tsxSource: string;
174
174
  }>, yup$1.AnyObject, undefined, "">;
175
- declare const customerTypeSchema: yup$1.StringSchema<"team" | "user" | "custom" | undefined, yup$1.AnyObject, undefined, "">;
175
+ declare const customerTypeSchema: yup$1.StringSchema<"user" | "team" | "custom" | undefined, yup$1.AnyObject, undefined, "">;
176
176
  /**
177
177
  * Schema for a single product price. Each currency field (USD, EUR, etc.) is a decimal string
178
178
  * like `"9.99"` or `"1000"` — never cent integers. See `MoneyAmount` for the exact format.
@@ -216,7 +216,7 @@ declare const productSchema: yup$1.ObjectSchema<{
216
216
  displayName: string | undefined;
217
217
  productLineId: string | undefined;
218
218
  isAddOnTo: false | Record<string, true> | undefined;
219
- customerType: "team" | "user" | "custom";
219
+ customerType: "user" | "team" | "custom";
220
220
  freeTrial: DayInterval | undefined;
221
221
  serverOnly: boolean | undefined;
222
222
  stackable: boolean | undefined;
@@ -255,7 +255,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
255
255
  displayName: string | undefined;
256
256
  productLineId: string | undefined;
257
257
  isAddOnTo: false | Record<string, true> | undefined;
258
- customerType: "team" | "user" | "custom";
258
+ customerType: "user" | "team" | "custom";
259
259
  freeTrial: DayInterval | undefined;
260
260
  serverOnly: boolean | undefined;
261
261
  stackable: boolean | undefined;
@@ -296,7 +296,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
296
296
  }, "">;
297
297
  declare const inlineProductSchema: yup$1.ObjectSchema<{
298
298
  display_name: string;
299
- customer_type: "team" | "user" | "custom";
299
+ customer_type: "user" | "team" | "custom";
300
300
  free_trial: DayInterval | undefined;
301
301
  server_only: boolean;
302
302
  stackable: boolean;
@@ -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,24 +9,24 @@ declare class AccessToken {
9
9
  private constructor();
10
10
  get payload(): {
11
11
  exp?: number | undefined;
12
- project_id: string;
13
- refresh_token_id: string;
14
- email: string | null;
15
- restricted_reason: {
16
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
17
- } | null;
18
- branch_id: string;
19
12
  sub: string;
20
13
  iat: number;
21
14
  iss: string;
22
15
  aud: string;
16
+ project_id: string;
17
+ branch_id: string;
18
+ refresh_token_id: string;
23
19
  role: "authenticated";
24
20
  name: string | null;
21
+ email: string | null;
25
22
  email_verified: boolean;
26
23
  selected_team_id: string | null;
27
24
  signed_up_at: number;
28
25
  is_anonymous: boolean;
29
26
  is_restricted: boolean;
27
+ restricted_reason: {
28
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
29
+ } | null;
30
30
  requires_totp_mfa: boolean;
31
31
  };
32
32
  get expiresAt(): Date;
@@ -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;
154
+ error: number;
155
155
  ok: 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
  }[];
@@ -403,17 +403,17 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
403
403
  replays: number;
404
404
  }[];
405
405
  users: {
406
- primary_email: string | null;
407
- id: string;
408
406
  display_name: string | null;
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
- id: string;
448
446
  display_name: string | null;
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
- id: string;
476
474
  display_name: string | null;
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
- id: string;
484
482
  display_name: string | null;
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
- id: string;
492
490
  display_name: string | null;
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;
567
+ error: number;
568
568
  ok: 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
  }[];
@@ -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[];
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;
@@ -139,8 +139,8 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
139
139
  createdAt: string;
140
140
  sender: {
141
141
  type: "user" | "agent" | "system";
142
- id: string | null;
143
142
  displayName: string | null;
143
+ id: string | null;
144
144
  primaryEmail: string | null;
145
145
  };
146
146
  }, yup$1.AnyObject, {
@@ -173,23 +173,23 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
173
173
  lastOutboundAt?: string | null | undefined;
174
174
  closedAt?: string | null | undefined;
175
175
  recordMetadata?: {} | null | undefined;
176
+ priority: "low" | "normal" | "high" | "urgent";
176
177
  status: "open" | "pending" | "closed";
177
- subject: string;
178
178
  conversationId: string;
179
179
  userId: string | null;
180
180
  teamId: string | null;
181
181
  userDisplayName: string | null;
182
182
  userPrimaryEmail: string | null;
183
183
  userProfileImageUrl: string | null;
184
- priority: "low" | "normal" | "high" | "urgent";
184
+ subject: string;
185
185
  source: "email" | "manual" | "chat" | "api";
186
186
  lastMessageType: "message" | "internal-note" | "status-change";
187
187
  preview: string | null;
188
188
  lastActivityAt: string;
189
189
  metadata: {
190
- tags: string[];
191
190
  assignedToUserId: string | null;
192
191
  assignedToDisplayName: string | null;
192
+ tags: string[];
193
193
  firstResponseDueAt: string | null;
194
194
  firstResponseAt: string | null;
195
195
  nextResponseDueAt: string | null;
@@ -211,23 +211,23 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
211
211
  lastOutboundAt?: string | null | undefined;
212
212
  closedAt?: string | null | undefined;
213
213
  recordMetadata?: {} | null | undefined;
214
+ priority: "low" | "normal" | "high" | "urgent";
214
215
  status: "open" | "pending" | "closed";
215
- subject: string;
216
216
  conversationId: string;
217
217
  userId: string | null;
218
218
  teamId: string | null;
219
219
  userDisplayName: string | null;
220
220
  userPrimaryEmail: string | null;
221
221
  userProfileImageUrl: string | null;
222
- priority: "low" | "normal" | "high" | "urgent";
222
+ subject: string;
223
223
  source: "email" | "manual" | "chat" | "api";
224
224
  lastMessageType: "message" | "internal-note" | "status-change";
225
225
  preview: string | null;
226
226
  lastActivityAt: string;
227
227
  metadata: {
228
- tags: string[];
229
228
  assignedToUserId: string | null;
230
229
  assignedToDisplayName: string | null;
230
+ tags: string[];
231
231
  firstResponseDueAt: string | null;
232
232
  firstResponseAt: string | null;
233
233
  nextResponseDueAt: string | null;
@@ -236,13 +236,13 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
236
236
  };
237
237
  };
238
238
  messages: {
239
- status: "open" | "pending" | "closed";
240
239
  id: string;
241
- subject: string;
240
+ priority: "low" | "normal" | "high" | "urgent";
241
+ status: "open" | "pending" | "closed";
242
242
  conversationId: string;
243
243
  userId: string | null;
244
244
  teamId: string | null;
245
- priority: "low" | "normal" | "high" | "urgent";
245
+ subject: string;
246
246
  source: "email" | "manual" | "chat" | "api";
247
247
  metadata: {} | null;
248
248
  createdAt: string;
@@ -251,8 +251,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
251
251
  attachments: {}[];
252
252
  sender: {
253
253
  type: "user" | "agent" | "system";
254
- id: string | null;
255
254
  displayName: string | null;
255
+ id: string | null;
256
256
  primaryEmail: string | null;
257
257
  };
258
258
  }[];
@@ -4,21 +4,21 @@ import * as yup$1 from "yup";
4
4
  //#region src/interface/crud/current-user.d.ts
5
5
  declare const currentUserCrud: CrudSchemaFromOptions<{
6
6
  clientReadSchema: yup$1.ObjectSchema<{
7
- restricted_reason: {
8
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
9
- } | null;
10
- primary_email: string | null;
11
- id: string;
12
7
  display_name: string | null;
13
8
  client_metadata: {} | null;
14
9
  client_read_only_metadata: {} | null;
10
+ id: string;
15
11
  selected_team_id: string | null;
16
12
  is_anonymous: boolean;
17
13
  is_restricted: boolean;
14
+ restricted_reason: {
15
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
16
+ } | null;
18
17
  requires_totp_mfa: boolean;
18
+ primary_email: string | null;
19
19
  profile_image_url: string | null;
20
- primary_email_verified: boolean;
21
20
  signed_up_at_millis: number;
21
+ primary_email_verified: boolean;
22
22
  has_password: boolean;
23
23
  otp_auth_enabled: boolean;
24
24
  passkey_auth_enabled: boolean;
@@ -34,8 +34,8 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
34
34
  selected_team: {
35
35
  client_metadata?: {} | null | undefined;
36
36
  client_read_only_metadata?: {} | null | undefined;
37
- id: string;
38
37
  display_name: string;
38
+ id: string;
39
39
  profile_image_url: string | null;
40
40
  } | null;
41
41
  }, yup$1.AnyObject, {
@@ -90,10 +90,10 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
90
90
  client_metadata?: {} | null | undefined;
91
91
  client_read_only_metadata?: {} | null | undefined;
92
92
  server_metadata?: {} | null | undefined;
93
- id: string;
94
93
  display_name: string;
95
- profile_image_url: string | null;
94
+ id: string;
96
95
  created_at_millis: number;
96
+ profile_image_url: string | null;
97
97
  } | null;
98
98
  selected_team_id: string | null;
99
99
  profile_image_url: string | null;
@@ -172,10 +172,10 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
172
172
  requires_totp_mfa: undefined;
173
173
  }, "">;
174
174
  clientUpdateSchema: yup$1.ObjectSchema<{
175
- primary_email: string | null | undefined;
176
175
  display_name: string | null | undefined;
177
176
  client_metadata: {} | null | undefined;
178
177
  selected_team_id: string | null | undefined;
178
+ primary_email: string | null | undefined;
179
179
  profile_image_url: string | null | undefined;
180
180
  otp_auth_enabled: boolean | undefined;
181
181
  passkey_auth_enabled: boolean | undefined;