@hexclave/shared 1.0.32 → 1.0.34

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 (42) hide show
  1. package/dist/config/schema.d.ts +106 -106
  2. package/dist/esm/config/schema.d.ts +106 -106
  3. package/dist/esm/helpers/init-prompt.js +1 -1
  4. package/dist/esm/helpers/init-prompt.js.map +1 -1
  5. package/dist/esm/interface/admin-metrics.d.ts +16 -16
  6. package/dist/esm/interface/conversations.d.ts +4 -4
  7. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  8. package/dist/esm/interface/crud/email-outbox.d.ts +271 -271
  9. package/dist/esm/interface/crud/products.d.ts +23 -23
  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/projects.d.ts +7 -7
  13. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  14. package/dist/esm/interface/crud/transactions.d.ts +25 -25
  15. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  16. package/dist/esm/interface/crud/users.d.ts +16 -16
  17. package/dist/esm/interface/plan-usage.d.ts +1 -1
  18. package/dist/esm/interface/webhooks.d.ts +2 -2
  19. package/dist/esm/known-errors.d.ts +6 -6
  20. package/dist/esm/schema-fields.d.ts +17 -17
  21. package/dist/esm/sessions.d.ts +8 -8
  22. package/dist/helpers/init-prompt.js +1 -1
  23. package/dist/helpers/init-prompt.js.map +1 -1
  24. package/dist/interface/admin-metrics.d.ts +16 -16
  25. package/dist/interface/conversations.d.ts +4 -4
  26. package/dist/interface/crud/current-user.d.ts +14 -14
  27. package/dist/interface/crud/email-outbox.d.ts +271 -271
  28. package/dist/interface/crud/products.d.ts +23 -23
  29. package/dist/interface/crud/products.d.ts.map +1 -1
  30. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  31. package/dist/interface/crud/projects.d.ts +7 -7
  32. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  33. package/dist/interface/crud/transactions.d.ts +25 -25
  34. package/dist/interface/crud/transactions.d.ts.map +1 -1
  35. package/dist/interface/crud/users.d.ts +16 -16
  36. package/dist/interface/plan-usage.d.ts +1 -1
  37. package/dist/interface/webhooks.d.ts +2 -2
  38. package/dist/known-errors.d.ts +6 -6
  39. package/dist/schema-fields.d.ts +17 -17
  40. package/dist/sessions.d.ts +8 -8
  41. package/package.json +1 -1
  42. package/src/helpers/init-prompt.ts +1 -1
@@ -98,7 +98,7 @@ declare const KnownErrors: {
98
98
  };
99
99
  AccessTypeWithoutProjectId: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
100
100
  constructorArgs: [statusCode: number, humanReadableMessage: string, details?: Json | undefined];
101
- } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "client" | "server" | "admin"]> & {
101
+ } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "server" | "admin" | "client"]> & {
102
102
  errorCode: "ACCESS_TYPE_WITHOUT_PROJECT_ID";
103
103
  };
104
104
  AccessTypeRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
@@ -111,7 +111,7 @@ declare const KnownErrors: {
111
111
  };
112
112
  InsufficientAccessType: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
113
113
  constructorArgs: [statusCode: number, humanReadableMessage: string, details?: Json | undefined];
114
- } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "client" | "server" | "admin", allowedAccessTypes: ("client" | "server" | "admin")[]]> & {
114
+ } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "server" | "admin" | "client", allowedAccessTypes: ("server" | "admin" | "client")[]]> & {
115
115
  errorCode: "INSUFFICIENT_ACCESS_TYPE";
116
116
  };
117
117
  InvalidPublishableClientKey: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
@@ -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,7 +512,7 @@ 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]> & {
@@ -521,7 +521,7 @@ declare const KnownErrors: {
521
521
  ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "item_exists" | "server_only" | 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">, []> & {
@@ -113,7 +113,7 @@ declare const moneyAmountSchema: (currency: Currency) => yup$1.StringSchema<stri
113
113
  */
114
114
  declare const strictEmailSchema: (message: string | undefined) => yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
115
115
  declare const emailSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
116
- declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"client" | "server" | "admin", yup$1.AnyObject, undefined, "">;
116
+ declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin" | "client", yup$1.AnyObject, undefined, "">;
117
117
  declare const serverOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin", yup$1.AnyObject, undefined, "">;
118
118
  declare const adminAuthTypeSchema: yup$1.StringSchema<"admin", yup$1.AnyObject, undefined, "">;
119
119
  declare const projectIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
@@ -174,7 +174,7 @@ declare const customDashboardsSchema: yup$1.MixedSchema<Record<string, {
174
174
  displayName: string;
175
175
  tsxSource: string;
176
176
  }>, yup$1.AnyObject, undefined, "">;
177
- declare const customerTypeSchema: yup$1.StringSchema<"team" | "user" | "custom" | undefined, yup$1.AnyObject, undefined, "">;
177
+ declare const customerTypeSchema: yup$1.StringSchema<"user" | "team" | "custom" | undefined, yup$1.AnyObject, undefined, "">;
178
178
  /**
179
179
  * Schema for a single product price. Each currency field (USD, EUR, etc.) is a decimal string
180
180
  * like `"9.99"` or `"1000"` — never cent integers. See `MoneyAmount` for the exact format.
@@ -203,6 +203,9 @@ declare const productPriceSchema: yup$1.ObjectSchema<{
203
203
  CAD: undefined;
204
204
  }, "">;
205
205
  declare const pricesSchema: yup$1.MixedSchema<Record<string, {
206
+ interval?: DayInterval | undefined;
207
+ freeTrial?: DayInterval | undefined;
208
+ serverOnly?: boolean | undefined;
206
209
  USD?: string | undefined;
207
210
  EUR?: string | undefined;
208
211
  GBP?: string | undefined;
@@ -210,19 +213,19 @@ declare const pricesSchema: yup$1.MixedSchema<Record<string, {
210
213
  INR?: string | undefined;
211
214
  AUD?: string | undefined;
212
215
  CAD?: string | undefined;
213
- interval?: DayInterval | undefined;
214
- serverOnly?: boolean | undefined;
215
- freeTrial?: DayInterval | undefined;
216
216
  }>, yup$1.AnyObject, undefined, "">;
217
217
  declare const productSchema: yup$1.ObjectSchema<{
218
218
  displayName: string | undefined;
219
219
  productLineId: string | undefined;
220
220
  isAddOnTo: false | Record<string, true> | undefined;
221
- customerType: "team" | "user" | "custom";
221
+ customerType: "user" | "team" | "custom";
222
222
  freeTrial: DayInterval | undefined;
223
223
  serverOnly: boolean | undefined;
224
224
  stackable: boolean | undefined;
225
225
  prices: Record<string, {
226
+ interval?: DayInterval | undefined;
227
+ freeTrial?: DayInterval | undefined;
228
+ serverOnly?: boolean | undefined;
226
229
  USD?: string | undefined;
227
230
  EUR?: string | undefined;
228
231
  GBP?: string | undefined;
@@ -230,9 +233,6 @@ declare const productSchema: yup$1.ObjectSchema<{
230
233
  INR?: string | undefined;
231
234
  AUD?: string | undefined;
232
235
  CAD?: string | undefined;
233
- interval?: DayInterval | undefined;
234
- serverOnly?: boolean | undefined;
235
- freeTrial?: DayInterval | undefined;
236
236
  }>;
237
237
  includedItems: Record<string, {
238
238
  repeat?: "never" | DayInterval | undefined;
@@ -257,11 +257,14 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
257
257
  displayName: string | undefined;
258
258
  productLineId: string | undefined;
259
259
  isAddOnTo: false | Record<string, true> | undefined;
260
- customerType: "team" | "user" | "custom";
260
+ customerType: "user" | "team" | "custom";
261
261
  freeTrial: DayInterval | undefined;
262
262
  serverOnly: boolean | undefined;
263
263
  stackable: boolean | undefined;
264
264
  prices: Record<string, {
265
+ interval?: DayInterval | undefined;
266
+ freeTrial?: DayInterval | undefined;
267
+ serverOnly?: boolean | undefined;
265
268
  USD?: string | undefined;
266
269
  EUR?: string | undefined;
267
270
  GBP?: string | undefined;
@@ -269,9 +272,6 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
269
272
  INR?: string | undefined;
270
273
  AUD?: string | undefined;
271
274
  CAD?: string | undefined;
272
- interval?: DayInterval | undefined;
273
- serverOnly?: boolean | undefined;
274
- freeTrial?: DayInterval | undefined;
275
275
  }>;
276
276
  includedItems: Record<string, {
277
277
  repeat?: "never" | DayInterval | undefined;
@@ -298,11 +298,12 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
298
298
  }, "">;
299
299
  declare const inlineProductSchema: yup$1.ObjectSchema<{
300
300
  display_name: string;
301
- customer_type: "team" | "user" | "custom";
301
+ customer_type: "user" | "team" | "custom";
302
302
  free_trial: DayInterval | undefined;
303
303
  server_only: boolean;
304
304
  stackable: boolean;
305
305
  prices: Record<string, {
306
+ interval?: DayInterval | undefined;
306
307
  USD?: string | undefined;
307
308
  EUR?: string | undefined;
308
309
  GBP?: string | undefined;
@@ -310,12 +311,11 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
310
311
  INR?: string | undefined;
311
312
  AUD?: string | undefined;
312
313
  CAD?: string | undefined;
313
- interval?: DayInterval | undefined;
314
314
  free_trial?: DayInterval | undefined;
315
315
  }>;
316
316
  included_items: Record<string, {
317
- quantity?: number | undefined;
318
317
  repeat?: "never" | DayInterval | undefined;
318
+ quantity?: number | undefined;
319
319
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
320
320
  }>;
321
321
  client_metadata: {} | null | undefined;
@@ -469,10 +469,10 @@ declare function yupDefinedWhen<S extends yup$1.AnyObject>(schema: S, triggers:
469
469
  declare function yupDefinedAndNonEmptyWhen<S extends yup$1.StringSchema>(schema: S, triggers: Record<string, any>): S;
470
470
  declare const branchConfigSourceSchema: yup$1.MixedSchema<{
471
471
  workflow_path?: string | undefined;
472
+ branch: string;
472
473
  type: "pushed-from-github";
473
474
  owner: string;
474
475
  repo: string;
475
- branch: string;
476
476
  commit_hash: string;
477
477
  config_file_path: string;
478
478
  } | {
@@ -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;
13
+ name: string | null;
20
14
  iat: number;
21
15
  iss: string;
22
16
  aud: string;
17
+ project_id: string;
18
+ branch_id: string;
19
+ refresh_token_id: string;
23
20
  role: "authenticated";
24
- 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;
@@ -25,7 +25,7 @@ HEXCLAVE SETUP INSTRUCTIONS
25
25
 
26
26
  These instructions describe how to set up Hexclave.
27
27
  ${web ? `
28
- First of all, if you have access to a terminal, it is better to use \`npx @hexclave/cli init\`.
28
+ First of all, use the full setup prompt below as the source of truth. Do not run the Hexclave CLI initializer unless the user explicitly asks for the CLI workflow.
29
29
  ` : ""}
30
30
 
31
31
  ${getCliProjectSetupContext(configPath)}
@@ -1 +1 @@
1
- {"version":3,"file":"init-prompt.js","names":["aiSetupPrompt"],"sources":["../../src/helpers/init-prompt.ts"],"sourcesContent":["import { aiSetupPrompt } from \"../ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt\";\n\nfunction getCliProjectSetupContext(configPath?: string): string {\n if (configPath != null) {\n return `\nThe Hexclave CLI already created or linked this project to a local Hexclave development environment config file:\n\n\\`\\`\\`text\n${configPath}\n\\`\\`\\`\n\nDo not create or link another Hexclave project. When the SDK setup instructions mention creating \\`stack.config.ts\\` or wrapping the dev script with \\`stack dev --config-file\\`, use the config file path above.\n`;\n }\n\n return `\nThe Hexclave CLI already created or linked this project to a hosted Hexclave cloud project and wrote or printed the Hexclave environment variables.\n\nDo not create or link another Hexclave project. Use the existing environment variables in this workspace. If the variables were printed instead of written because the user declined to append them to an env file, tell the user exactly which variables still need to be added.\n`;\n}\n\nexport const createInitPrompt = (web: boolean, configPath?: string) => `=============================\nHEXCLAVE SETUP INSTRUCTIONS\n=============================\n\nThese instructions describe how to set up Hexclave.\n${web ? `\nFirst of all, if you have access to a terminal, it is better to use \\`npx @hexclave/cli init\\`.\n` : \"\"}\n\n${getCliProjectSetupContext(configPath)}\n\nUse the full setup guide below as the source of truth, with one important CLI-specific adjustment: the \"Setting up the project\" step is already complete. Use that section only to understand how the existing config/env files should connect to the SDK wiring; do not ask the user for project IDs or keys that the CLI already generated or linked.\n\nApply only the sections relevant to this project. For example, do not add Convex, Supabase, or command-line-app authentication unless the existing project already uses that surface or the user explicitly asked for it.\n\n${aiSetupPrompt}\n`;\n"],"mappings":";;;;;AAEA,SAAS,0BAA0B,YAA6B;AAC9D,KAAI,cAAc,KAChB,QAAO;;;;EAIT,WAAW;;;;;AAOX,QAAO;;;;;;AAOT,MAAa,oBAAoB,KAAc,eAAwB;;;;;EAKrE,MAAM;;IAEJ,GAAG;;EAEL,0BAA0B,WAAW,CAAC;;;;;;EAMtCA,+EAAc"}
1
+ {"version":3,"file":"init-prompt.js","names":["aiSetupPrompt"],"sources":["../../src/helpers/init-prompt.ts"],"sourcesContent":["import { aiSetupPrompt } from \"../ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt\";\n\nfunction getCliProjectSetupContext(configPath?: string): string {\n if (configPath != null) {\n return `\nThe Hexclave CLI already created or linked this project to a local Hexclave development environment config file:\n\n\\`\\`\\`text\n${configPath}\n\\`\\`\\`\n\nDo not create or link another Hexclave project. When the SDK setup instructions mention creating \\`stack.config.ts\\` or wrapping the dev script with \\`stack dev --config-file\\`, use the config file path above.\n`;\n }\n\n return `\nThe Hexclave CLI already created or linked this project to a hosted Hexclave cloud project and wrote or printed the Hexclave environment variables.\n\nDo not create or link another Hexclave project. Use the existing environment variables in this workspace. If the variables were printed instead of written because the user declined to append them to an env file, tell the user exactly which variables still need to be added.\n`;\n}\n\nexport const createInitPrompt = (web: boolean, configPath?: string) => `=============================\nHEXCLAVE SETUP INSTRUCTIONS\n=============================\n\nThese instructions describe how to set up Hexclave.\n${web ? `\nFirst of all, use the full setup prompt below as the source of truth. Do not run the Hexclave CLI initializer unless the user explicitly asks for the CLI workflow.\n` : \"\"}\n\n${getCliProjectSetupContext(configPath)}\n\nUse the full setup guide below as the source of truth, with one important CLI-specific adjustment: the \"Setting up the project\" step is already complete. Use that section only to understand how the existing config/env files should connect to the SDK wiring; do not ask the user for project IDs or keys that the CLI already generated or linked.\n\nApply only the sections relevant to this project. For example, do not add Convex, Supabase, or command-line-app authentication unless the existing project already uses that surface or the user explicitly asked for it.\n\n${aiSetupPrompt}\n`;\n"],"mappings":";;;;;AAEA,SAAS,0BAA0B,YAA6B;AAC9D,KAAI,cAAc,KAChB,QAAO;;;;EAIT,WAAW;;;;;AAOX,QAAO;;;;;;AAOT,MAAa,oBAAoB,KAAc,eAAwB;;;;;EAKrE,MAAM;;IAEJ,GAAG;;EAEL,0BAA0B,WAAW,CAAC;;;;;;EAMtCA,+EAAc"}
@@ -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
  }[];
@@ -392,8 +392,8 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
392
392
  kind: "team_user_hour_of_week" | "session_replay_clicks";
393
393
  cells: {
394
394
  value: number;
395
- hour: number;
396
395
  weekday: number;
396
+ hour: number;
397
397
  }[];
398
398
  sampling: number;
399
399
  routes: {
@@ -403,19 +403,19 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
403
403
  replays: number;
404
404
  }[];
405
405
  users: {
406
- primary_email: string | null;
407
- display_name: string | null;
408
406
  id: string;
407
+ display_name: string | null;
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;
417
416
  clicks: number;
418
417
  last_event_at_millis: number;
418
+ user_id: string | null;
419
419
  route_path: string | null;
420
420
  viewport_width: number | null;
421
421
  viewport_height: number | 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
- display_name: string | null;
448
446
  id: string;
447
+ display_name: string | null;
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
- display_name: string | null;
476
474
  id: string;
475
+ display_name: string | null;
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
- display_name: string | null;
484
482
  id: string;
483
+ display_name: string | null;
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
- display_name: string | null;
492
490
  id: string;
491
+ display_name: string | null;
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
  }[];
@@ -173,8 +173,8 @@ 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";
177
176
  priority: "low" | "normal" | "high" | "urgent";
177
+ status: "open" | "pending" | "closed";
178
178
  subject: string;
179
179
  conversationId: string;
180
180
  userId: string | null;
@@ -211,8 +211,8 @@ 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";
215
214
  priority: "low" | "normal" | "high" | "urgent";
215
+ status: "open" | "pending" | "closed";
216
216
  subject: string;
217
217
  conversationId: string;
218
218
  userId: string | null;
@@ -236,9 +236,9 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
236
236
  };
237
237
  };
238
238
  messages: {
239
- status: "open" | "pending" | "closed";
240
- id: string;
241
239
  priority: "low" | "normal" | "high" | "urgent";
240
+ id: string;
241
+ status: "open" | "pending" | "closed";
242
242
  subject: string;
243
243
  conversationId: string;
244
244
  userId: string | null;
@@ -4,20 +4,20 @@ 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
- display_name: string | null;
12
- client_metadata: {} | null;
13
- client_read_only_metadata: {} | null;
14
7
  id: string;
8
+ display_name: string | null;
9
+ primary_email: string | null;
10
+ profile_image_url: string | null;
11
+ signed_up_at_millis: number;
15
12
  selected_team_id: string | null;
16
13
  is_anonymous: boolean;
17
14
  is_restricted: boolean;
15
+ restricted_reason: {
16
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
17
+ } | null;
18
18
  requires_totp_mfa: boolean;
19
- profile_image_url: string | null;
20
- signed_up_at_millis: number;
19
+ client_metadata: {} | null;
20
+ client_read_only_metadata: {} | null;
21
21
  primary_email_verified: boolean;
22
22
  has_password: boolean;
23
23
  otp_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
- display_name: string;
38
37
  id: string;
38
+ display_name: string;
39
39
  profile_image_url: string | null;
40
40
  } | null;
41
41
  }, yup$1.AnyObject, {
@@ -90,9 +90,9 @@ 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
- display_name: string;
94
93
  id: string;
95
94
  created_at_millis: number;
95
+ display_name: string;
96
96
  profile_image_url: string | null;
97
97
  } | null;
98
98
  selected_team_id: string | null;
@@ -172,11 +172,11 @@ 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
- client_metadata: {} | null | undefined;
178
- selected_team_id: string | null | undefined;
176
+ primary_email: string | null | undefined;
179
177
  profile_image_url: string | null | undefined;
178
+ selected_team_id: string | null | undefined;
179
+ client_metadata: {} | null | undefined;
180
180
  otp_auth_enabled: boolean | undefined;
181
181
  passkey_auth_enabled: boolean | undefined;
182
182
  totp_secret_base64: string | null | undefined;