@hexclave/shared 1.0.34 → 1.0.35

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 (47) hide show
  1. package/dist/ai/unified-prompts/reminders.js +2 -2
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/config/schema.d.ts +112 -112
  4. package/dist/esm/ai/unified-prompts/reminders.js +2 -2
  5. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +112 -112
  7. package/dist/esm/helpers/init-prompt.js +1 -1
  8. package/dist/esm/helpers/init-prompt.js.map +1 -1
  9. package/dist/esm/interface/admin-metrics.d.ts +17 -17
  10. package/dist/esm/interface/conversations.d.ts +31 -31
  11. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  12. package/dist/esm/interface/crud/email-outbox.d.ts +138 -138
  13. package/dist/esm/interface/crud/products.d.ts +23 -23
  14. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  15. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  16. package/dist/esm/interface/crud/projects.d.ts +7 -7
  17. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  18. package/dist/esm/interface/crud/transactions.d.ts +25 -25
  19. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  20. package/dist/esm/interface/crud/users.d.ts +16 -16
  21. package/dist/esm/interface/plan-usage.d.ts +2 -2
  22. package/dist/esm/interface/webhooks.d.ts +2 -2
  23. package/dist/esm/known-errors.d.ts +6 -6
  24. package/dist/esm/schema-fields.d.ts +17 -17
  25. package/dist/esm/sessions.d.ts +8 -8
  26. package/dist/helpers/init-prompt.js +1 -1
  27. package/dist/helpers/init-prompt.js.map +1 -1
  28. package/dist/interface/admin-metrics.d.ts +17 -17
  29. package/dist/interface/conversations.d.ts +31 -31
  30. package/dist/interface/crud/current-user.d.ts +14 -14
  31. package/dist/interface/crud/email-outbox.d.ts +138 -138
  32. package/dist/interface/crud/products.d.ts +23 -23
  33. package/dist/interface/crud/products.d.ts.map +1 -1
  34. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  35. package/dist/interface/crud/projects.d.ts +7 -7
  36. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  37. package/dist/interface/crud/transactions.d.ts +25 -25
  38. package/dist/interface/crud/transactions.d.ts.map +1 -1
  39. package/dist/interface/crud/users.d.ts +16 -16
  40. package/dist/interface/plan-usage.d.ts +2 -2
  41. package/dist/interface/webhooks.d.ts +2 -2
  42. package/dist/known-errors.d.ts +6 -6
  43. package/dist/schema-fields.d.ts +17 -17
  44. package/dist/sessions.d.ts +8 -8
  45. package/package.json +1 -1
  46. package/src/ai/unified-prompts/reminders.ts +1 -1
  47. package/src/helpers/init-prompt.ts +1 -1
@@ -9,7 +9,7 @@ The Hexclave CLI already created or linked this project to a local Hexclave deve
9
9
  ${configPath}
10
10
  \`\`\`
11
11
 
12
- Do 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.
12
+ Do not create or link another Hexclave project. When the SDK setup instructions mention creating \`hexclave.config.ts\` or wrapping the dev script with \`hexclave dev --config-file\`, use the config file path above.
13
13
  `;
14
14
  return `
15
15
  The Hexclave CLI already created or linked this project to a hosted Hexclave cloud project and wrote or printed the Hexclave environment variables.
@@ -1 +1 @@
1
- {"version":3,"file":"init-prompt.js","names":[],"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;;;;;;EAMtC,cAAc"}
1
+ {"version":3,"file":"init-prompt.js","names":[],"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 \\`hexclave.config.ts\\` or wrapping the dev script with \\`hexclave 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;;;;;;EAMtC,cAAc"}
@@ -150,15 +150,15 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
150
150
  activity: number;
151
151
  }[];
152
152
  daily_emails_by_status: {
153
+ error: number;
153
154
  date: string;
154
155
  ok: number;
155
- error: number;
156
156
  in_progress: number;
157
157
  }[];
158
158
  emails_sent: number;
159
159
  recent_emails: {
160
- id: string;
161
160
  status: string;
161
+ id: string;
162
162
  subject: string;
163
163
  created_at_millis: number;
164
164
  }[];
@@ -392,30 +392,30 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
392
392
  kind: "team_user_hour_of_week" | "session_replay_clicks";
393
393
  cells: {
394
394
  value: number;
395
- weekday: number;
396
395
  hour: number;
396
+ weekday: number;
397
397
  }[];
398
398
  sampling: number;
399
399
  routes: {
400
400
  path: string;
401
- users: number;
402
401
  clicks: number;
402
+ users: number;
403
403
  replays: number;
404
404
  }[];
405
405
  users: {
406
- id: string;
407
- display_name: string | null;
408
406
  primary_email: string | null;
407
+ display_name: string | null;
408
+ id: string;
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;
415
416
  id: string;
416
417
  clicks: number;
417
418
  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
- id: string;
447
- display_name: string | null;
448
446
  primary_email: string | null;
447
+ display_name: string | null;
448
+ id: string;
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
- id: string;
475
- display_name: string | null;
476
474
  primary_email: string | null;
475
+ display_name: string | null;
476
+ id: string;
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
- id: string;
483
- display_name: string | null;
484
482
  primary_email: string | null;
483
+ display_name: string | null;
484
+ id: string;
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
- id: string;
491
- display_name: string | null;
492
490
  primary_email: string | null;
491
+ display_name: string | null;
492
+ id: string;
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;
566
567
  date: string;
567
568
  ok: number;
568
- error: number;
569
569
  in_progress: number;
570
570
  }[];
571
571
  emails_sent: number;
572
572
  recent_emails: {
573
- id: string;
574
573
  status: string;
574
+ id: 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: "open" | "pending" | "closed";
52
+ status: "pending" | "open" | "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: "open" | "pending" | "closed";
132
+ status: "pending" | "open" | "closed";
133
133
  priority: "low" | "normal" | "high" | "urgent";
134
134
  source: "email" | "manual" | "chat" | "api";
135
135
  messageType: "message" | "internal-note" | "status-change";
@@ -173,19 +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
- priority: "low" | "normal" | "high" | "urgent";
177
- status: "open" | "pending" | "closed";
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;
176
+ status: "pending" | "open" | "closed";
185
177
  source: "email" | "manual" | "chat" | "api";
186
- lastMessageType: "message" | "internal-note" | "status-change";
187
- preview: string | null;
188
- lastActivityAt: string;
189
178
  metadata: {
190
179
  assignedToUserId: string | null;
191
180
  assignedToDisplayName: string | null;
@@ -196,6 +185,17 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
196
185
  lastCustomerReplyAt: string | null;
197
186
  lastAgentReplyAt: string | null;
198
187
  };
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,19 +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
- priority: "low" | "normal" | "high" | "urgent";
215
- status: "open" | "pending" | "closed";
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;
214
+ status: "pending" | "open" | "closed";
223
215
  source: "email" | "manual" | "chat" | "api";
224
- lastMessageType: "message" | "internal-note" | "status-change";
225
- preview: string | null;
226
- lastActivityAt: string;
227
216
  metadata: {
228
217
  assignedToUserId: string | null;
229
218
  assignedToDisplayName: string | null;
@@ -234,20 +223,31 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
234
223
  lastCustomerReplyAt: string | null;
235
224
  lastAgentReplyAt: string | null;
236
225
  };
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
- priority: "low" | "normal" | "high" | "urgent";
239
+ status: "pending" | "open" | "closed";
240
240
  id: string;
241
- status: "open" | "pending" | "closed";
241
+ body: string | null;
242
+ source: "email" | "manual" | "chat" | "api";
243
+ metadata: {} | null;
242
244
  subject: string;
243
245
  conversationId: string;
244
246
  userId: string | null;
245
247
  teamId: string | null;
246
- source: "email" | "manual" | "chat" | "api";
247
- metadata: {} | null;
248
+ priority: "low" | "normal" | "high" | "urgent";
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";
@@ -5,20 +5,20 @@ 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
- id: string;
9
- display_name: string | null;
10
- primary_email: string | null;
11
- profile_image_url: string | null;
12
- signed_up_at_millis: number;
13
- selected_team_id: string | null;
14
- is_anonymous: boolean;
15
- is_restricted: boolean;
16
8
  restricted_reason: {
17
9
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
18
10
  } | null;
19
- requires_totp_mfa: boolean;
11
+ primary_email: string | null;
12
+ display_name: string | null;
20
13
  client_metadata: {} | null;
21
14
  client_read_only_metadata: {} | null;
15
+ id: string;
16
+ selected_team_id: string | null;
17
+ is_anonymous: boolean;
18
+ is_restricted: boolean;
19
+ requires_totp_mfa: boolean;
20
+ profile_image_url: string | null;
21
+ signed_up_at_millis: number;
22
22
  primary_email_verified: boolean;
23
23
  has_password: boolean;
24
24
  otp_auth_enabled: boolean;
@@ -35,8 +35,8 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
35
35
  selected_team: {
36
36
  client_metadata?: {} | null | undefined;
37
37
  client_read_only_metadata?: {} | null | undefined;
38
- id: string;
39
38
  display_name: string;
39
+ id: string;
40
40
  profile_image_url: string | null;
41
41
  } | null;
42
42
  }, yup$1.AnyObject, {
@@ -91,9 +91,9 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
91
91
  client_metadata?: {} | null | undefined;
92
92
  client_read_only_metadata?: {} | null | undefined;
93
93
  server_metadata?: {} | null | undefined;
94
+ display_name: string;
94
95
  id: string;
95
96
  created_at_millis: number;
96
- display_name: string;
97
97
  profile_image_url: string | null;
98
98
  } | null;
99
99
  selected_team_id: string | null;
@@ -173,11 +173,11 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
173
173
  requires_totp_mfa: undefined;
174
174
  }, "">;
175
175
  clientUpdateSchema: yup$1.ObjectSchema<{
176
- display_name: string | null | undefined;
177
176
  primary_email: string | null | undefined;
178
- profile_image_url: string | null | undefined;
179
- selected_team_id: string | null | undefined;
177
+ display_name: string | null | undefined;
180
178
  client_metadata: {} | null | undefined;
179
+ selected_team_id: string | null | undefined;
180
+ profile_image_url: string | null | undefined;
181
181
  otp_auth_enabled: boolean | undefined;
182
182
  passkey_auth_enabled: boolean | undefined;
183
183
  totp_secret_base64: string | null | undefined;