@hexclave/shared 1.0.30 → 1.0.33

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 (54) hide show
  1. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +11 -37
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  4. package/dist/config/schema.d.ts +90 -90
  5. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  6. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +11 -37
  7. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  8. package/dist/esm/config/schema.d.ts +90 -90
  9. package/dist/esm/helpers/init-prompt.js +1 -1
  10. package/dist/esm/helpers/init-prompt.js.map +1 -1
  11. package/dist/esm/interface/admin-metrics.d.ts +26 -26
  12. package/dist/esm/interface/conversations.d.ts +16 -16
  13. package/dist/esm/interface/crud/current-user.d.ts +11 -11
  14. package/dist/esm/interface/crud/email-outbox.d.ts +248 -248
  15. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  16. package/dist/esm/interface/crud/products.d.ts +13 -13
  17. package/dist/esm/interface/crud/project-api-keys.d.ts +6 -6
  18. package/dist/esm/interface/crud/projects.d.ts +7 -7
  19. package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
  20. package/dist/esm/interface/crud/transactions.d.ts +6 -6
  21. package/dist/esm/interface/crud/users.d.ts +14 -14
  22. package/dist/esm/interface/plan-usage.d.ts +1 -1
  23. package/dist/esm/interface/server-interface.d.ts +1 -0
  24. package/dist/esm/interface/server-interface.d.ts.map +1 -1
  25. package/dist/esm/interface/server-interface.js +1 -0
  26. package/dist/esm/interface/server-interface.js.map +1 -1
  27. package/dist/esm/interface/webhooks.d.ts +2 -2
  28. package/dist/esm/schema-fields.d.ts +12 -12
  29. package/dist/esm/sessions.d.ts +8 -8
  30. package/dist/helpers/init-prompt.js +1 -1
  31. package/dist/helpers/init-prompt.js.map +1 -1
  32. package/dist/interface/admin-metrics.d.ts +26 -26
  33. package/dist/interface/conversations.d.ts +16 -16
  34. package/dist/interface/crud/current-user.d.ts +11 -11
  35. package/dist/interface/crud/email-outbox.d.ts +248 -248
  36. package/dist/interface/crud/invoices.d.ts +2 -2
  37. package/dist/interface/crud/products.d.ts +13 -13
  38. package/dist/interface/crud/project-api-keys.d.ts +6 -6
  39. package/dist/interface/crud/projects.d.ts +7 -7
  40. package/dist/interface/crud/team-member-profiles.d.ts +20 -20
  41. package/dist/interface/crud/transactions.d.ts +6 -6
  42. package/dist/interface/crud/users.d.ts +14 -14
  43. package/dist/interface/plan-usage.d.ts +1 -1
  44. package/dist/interface/server-interface.d.ts +1 -0
  45. package/dist/interface/server-interface.d.ts.map +1 -1
  46. package/dist/interface/server-interface.js +1 -0
  47. package/dist/interface/server-interface.js.map +1 -1
  48. package/dist/interface/webhooks.d.ts +2 -2
  49. package/dist/schema-fields.d.ts +12 -12
  50. package/dist/sessions.d.ts +8 -8
  51. package/package.json +1 -1
  52. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +11 -37
  53. package/src/helpers/init-prompt.ts +1 -1
  54. package/src/interface/server-interface.ts +4 -0
@@ -35,18 +35,21 @@ declare const branchPaymentsSchema: yup$1.ObjectSchema<{
35
35
  interval?: DayInterval | undefined;
36
36
  } | undefined;
37
37
  productLines: Record<string, {
38
- displayName?: string | undefined;
39
38
  customerType?: "team" | "user" | "custom" | undefined;
39
+ displayName?: string | undefined;
40
40
  }>;
41
41
  products: Record<string, {
42
- displayName?: string | undefined;
43
- serverOnly?: boolean | undefined;
44
- freeTrial?: DayInterval | undefined;
45
42
  productLineId?: string | undefined;
43
+ displayName?: string | undefined;
46
44
  isAddOnTo?: false | Record<string, true> | undefined;
45
+ freeTrial?: DayInterval | undefined;
46
+ serverOnly?: boolean | undefined;
47
47
  stackable?: boolean | undefined;
48
48
  customerType: "team" | "user" | "custom";
49
49
  prices: Record<string, {
50
+ interval?: DayInterval | undefined;
51
+ freeTrial?: DayInterval | undefined;
52
+ serverOnly?: boolean | undefined;
50
53
  USD?: string | undefined;
51
54
  EUR?: string | undefined;
52
55
  GBP?: string | undefined;
@@ -54,9 +57,6 @@ declare const branchPaymentsSchema: yup$1.ObjectSchema<{
54
57
  INR?: string | undefined;
55
58
  AUD?: string | undefined;
56
59
  CAD?: string | undefined;
57
- interval?: DayInterval | undefined;
58
- serverOnly?: boolean | undefined;
59
- freeTrial?: DayInterval | undefined;
60
60
  }>;
61
61
  includedItems: Record<string, {
62
62
  repeat?: "never" | DayInterval | undefined;
@@ -65,8 +65,8 @@ declare const branchPaymentsSchema: yup$1.ObjectSchema<{
65
65
  }>;
66
66
  }>;
67
67
  items: Record<string, {
68
- displayName?: string | undefined;
69
68
  customerType?: "team" | "user" | "custom" | undefined;
69
+ displayName?: string | undefined;
70
70
  }>;
71
71
  } | undefined, yup$1.AnyObject, {
72
72
  blockNewPurchases: undefined;
@@ -84,29 +84,32 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
84
84
  sourceOfTruth: {
85
85
  type: "hosted";
86
86
  };
87
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
87
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
88
88
  payments?: {
89
89
  blockNewPurchases?: boolean | undefined;
90
90
  autoPay?: {
91
91
  interval?: DayInterval | undefined;
92
92
  } | undefined;
93
93
  items: Record<string, {
94
- displayName?: string | undefined;
95
94
  customerType?: "team" | "user" | "custom" | undefined;
95
+ displayName?: string | undefined;
96
96
  }>;
97
97
  productLines: Record<string, {
98
- displayName?: string | undefined;
99
98
  customerType?: "team" | "user" | "custom" | undefined;
99
+ displayName?: string | undefined;
100
100
  }>;
101
101
  products: Record<string, {
102
- displayName?: string | undefined;
103
- serverOnly?: boolean | undefined;
104
- freeTrial?: DayInterval | undefined;
105
102
  productLineId?: string | undefined;
103
+ displayName?: string | undefined;
106
104
  isAddOnTo?: false | Record<string, true> | undefined;
105
+ freeTrial?: DayInterval | undefined;
106
+ serverOnly?: boolean | undefined;
107
107
  stackable?: boolean | undefined;
108
108
  customerType: "team" | "user" | "custom";
109
109
  prices: Record<string, {
110
+ interval?: DayInterval | undefined;
111
+ freeTrial?: DayInterval | undefined;
112
+ serverOnly?: boolean | undefined;
110
113
  USD?: string | undefined;
111
114
  EUR?: string | undefined;
112
115
  GBP?: string | undefined;
@@ -114,9 +117,6 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
114
117
  INR?: string | undefined;
115
118
  AUD?: string | undefined;
116
119
  CAD?: string | undefined;
117
- interval?: DayInterval | undefined;
118
- serverOnly?: boolean | undefined;
119
- freeTrial?: DayInterval | undefined;
120
120
  }>;
121
121
  includedItems: Record<string, {
122
122
  repeat?: "never" | DayInterval | undefined;
@@ -125,6 +125,9 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
125
125
  }>;
126
126
  }>;
127
127
  } | undefined;
128
+ users: {
129
+ allowClientUserDeletion?: boolean | undefined;
130
+ };
128
131
  auth: {
129
132
  allowSignUp?: boolean | undefined;
130
133
  signUpRulesDefaultAction?: string | undefined;
@@ -187,9 +190,6 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
187
190
  tsxSource: string;
188
191
  }>;
189
192
  };
190
- users: {
191
- allowClientUserDeletion?: boolean | undefined;
192
- };
193
193
  apiKeys: {
194
194
  enabled: {
195
195
  team?: boolean | undefined;
@@ -218,7 +218,7 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
218
218
  project: {
219
219
  requirePublishableClientKey: undefined;
220
220
  };
221
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
221
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
222
222
  rbac: {
223
223
  permissions: undefined;
224
224
  defaultPermissions: {
@@ -293,29 +293,32 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
293
293
  sourceOfTruth: {
294
294
  type: "hosted";
295
295
  };
296
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
296
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
297
297
  payments?: {
298
298
  blockNewPurchases?: boolean | undefined;
299
299
  autoPay?: {
300
300
  interval?: DayInterval | undefined;
301
301
  } | undefined;
302
302
  items: Record<string, {
303
- displayName?: string | undefined;
304
303
  customerType?: "team" | "user" | "custom" | undefined;
304
+ displayName?: string | undefined;
305
305
  }>;
306
306
  productLines: Record<string, {
307
- displayName?: string | undefined;
308
307
  customerType?: "team" | "user" | "custom" | undefined;
308
+ displayName?: string | undefined;
309
309
  }>;
310
310
  products: Record<string, {
311
- displayName?: string | undefined;
312
- serverOnly?: boolean | undefined;
313
- freeTrial?: DayInterval | undefined;
314
311
  productLineId?: string | undefined;
312
+ displayName?: string | undefined;
315
313
  isAddOnTo?: false | Record<string, true> | undefined;
314
+ freeTrial?: DayInterval | undefined;
315
+ serverOnly?: boolean | undefined;
316
316
  stackable?: boolean | undefined;
317
317
  customerType: "team" | "user" | "custom";
318
318
  prices: Record<string, {
319
+ interval?: DayInterval | undefined;
320
+ freeTrial?: DayInterval | undefined;
321
+ serverOnly?: boolean | undefined;
319
322
  USD?: string | undefined;
320
323
  EUR?: string | undefined;
321
324
  GBP?: string | undefined;
@@ -323,9 +326,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
323
326
  INR?: string | undefined;
324
327
  AUD?: string | undefined;
325
328
  CAD?: string | undefined;
326
- interval?: DayInterval | undefined;
327
- serverOnly?: boolean | undefined;
328
- freeTrial?: DayInterval | undefined;
329
329
  }>;
330
330
  includedItems: Record<string, {
331
331
  repeat?: "never" | DayInterval | undefined;
@@ -334,6 +334,9 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
334
334
  }>;
335
335
  }>;
336
336
  } | undefined;
337
+ users: {
338
+ allowClientUserDeletion?: boolean | undefined;
339
+ };
337
340
  auth: {
338
341
  allowSignUp?: boolean | undefined;
339
342
  signUpRulesDefaultAction?: string | undefined;
@@ -396,9 +399,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
396
399
  tsxSource: string;
397
400
  }>;
398
401
  };
399
- users: {
400
- allowClientUserDeletion?: boolean | undefined;
401
- };
402
402
  apiKeys: {
403
403
  enabled: {
404
404
  team?: boolean | undefined;
@@ -429,22 +429,25 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
429
429
  interval?: DayInterval | undefined;
430
430
  } | undefined;
431
431
  items: Record<string, {
432
- displayName?: string | undefined;
433
432
  customerType?: "team" | "user" | "custom" | undefined;
433
+ displayName?: string | undefined;
434
434
  }>;
435
435
  productLines: Record<string, {
436
- displayName?: string | undefined;
437
436
  customerType?: "team" | "user" | "custom" | undefined;
437
+ displayName?: string | undefined;
438
438
  }>;
439
439
  products: Record<string, {
440
- displayName?: string | undefined;
441
- serverOnly?: boolean | undefined;
442
- freeTrial?: DayInterval | undefined;
443
440
  productLineId?: string | undefined;
441
+ displayName?: string | undefined;
444
442
  isAddOnTo?: false | Record<string, true> | undefined;
443
+ freeTrial?: DayInterval | undefined;
444
+ serverOnly?: boolean | undefined;
445
445
  stackable?: boolean | undefined;
446
446
  customerType: "team" | "user" | "custom";
447
447
  prices: Record<string, {
448
+ interval?: DayInterval | undefined;
449
+ freeTrial?: DayInterval | undefined;
450
+ serverOnly?: boolean | undefined;
448
451
  USD?: string | undefined;
449
452
  EUR?: string | undefined;
450
453
  GBP?: string | undefined;
@@ -452,9 +455,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
452
455
  INR?: string | undefined;
453
456
  AUD?: string | undefined;
454
457
  CAD?: string | undefined;
455
- interval?: DayInterval | undefined;
456
- serverOnly?: boolean | undefined;
457
- freeTrial?: DayInterval | undefined;
458
458
  }>;
459
459
  includedItems: Record<string, {
460
460
  repeat?: "never" | DayInterval | undefined;
@@ -528,8 +528,8 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
528
528
  displayName?: string | undefined;
529
529
  sortOrder?: number | undefined;
530
530
  queries: Record<string, {
531
- description?: string | undefined;
532
531
  displayName?: string | undefined;
532
+ description?: string | undefined;
533
533
  sqlQuery?: string | undefined;
534
534
  }>;
535
535
  }>;
@@ -575,7 +575,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
575
575
  project: {
576
576
  requirePublishableClientKey: undefined;
577
577
  };
578
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
578
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
579
579
  rbac: {
580
580
  permissions: undefined;
581
581
  defaultPermissions: {
@@ -648,7 +648,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
648
648
  project: {
649
649
  requirePublishableClientKey: undefined;
650
650
  };
651
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
651
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
652
652
  rbac: {
653
653
  permissions: undefined;
654
654
  defaultPermissions: {
@@ -721,7 +721,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
721
721
  project: {
722
722
  requirePublishableClientKey: undefined;
723
723
  };
724
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
724
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
725
725
  rbac: {
726
726
  permissions: undefined;
727
727
  defaultPermissions: {
@@ -797,7 +797,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
797
797
  project: {
798
798
  requirePublishableClientKey: undefined;
799
799
  };
800
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
800
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
801
801
  rbac: {
802
802
  permissions: undefined;
803
803
  defaultPermissions: {
@@ -883,7 +883,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
883
883
  project: {
884
884
  requirePublishableClientKey: undefined;
885
885
  };
886
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
886
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
887
887
  rbac: {
888
888
  permissions: undefined;
889
889
  defaultPermissions: {
@@ -959,7 +959,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
959
959
  project: {
960
960
  requirePublishableClientKey: undefined;
961
961
  };
962
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
962
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
963
963
  rbac: {
964
964
  permissions: undefined;
965
965
  defaultPermissions: {
@@ -1041,29 +1041,32 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1041
1041
  sourceOfTruth: {
1042
1042
  type: "hosted";
1043
1043
  };
1044
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1044
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1045
1045
  payments?: {
1046
1046
  blockNewPurchases?: boolean | undefined;
1047
1047
  autoPay?: {
1048
1048
  interval?: DayInterval | undefined;
1049
1049
  } | undefined;
1050
1050
  items: Record<string, {
1051
- displayName?: string | undefined;
1052
1051
  customerType?: "team" | "user" | "custom" | undefined;
1052
+ displayName?: string | undefined;
1053
1053
  }>;
1054
1054
  productLines: Record<string, {
1055
- displayName?: string | undefined;
1056
1055
  customerType?: "team" | "user" | "custom" | undefined;
1056
+ displayName?: string | undefined;
1057
1057
  }>;
1058
1058
  products: Record<string, {
1059
- displayName?: string | undefined;
1060
- serverOnly?: boolean | undefined;
1061
- freeTrial?: DayInterval | undefined;
1062
1059
  productLineId?: string | undefined;
1060
+ displayName?: string | undefined;
1063
1061
  isAddOnTo?: false | Record<string, true> | undefined;
1062
+ freeTrial?: DayInterval | undefined;
1063
+ serverOnly?: boolean | undefined;
1064
1064
  stackable?: boolean | undefined;
1065
1065
  customerType: "team" | "user" | "custom";
1066
1066
  prices: Record<string, {
1067
+ interval?: DayInterval | undefined;
1068
+ freeTrial?: DayInterval | undefined;
1069
+ serverOnly?: boolean | undefined;
1067
1070
  USD?: string | undefined;
1068
1071
  EUR?: string | undefined;
1069
1072
  GBP?: string | undefined;
@@ -1071,9 +1074,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1071
1074
  INR?: string | undefined;
1072
1075
  AUD?: string | undefined;
1073
1076
  CAD?: string | undefined;
1074
- interval?: DayInterval | undefined;
1075
- serverOnly?: boolean | undefined;
1076
- freeTrial?: DayInterval | undefined;
1077
1077
  }>;
1078
1078
  includedItems: Record<string, {
1079
1079
  repeat?: "never" | DayInterval | undefined;
@@ -1082,6 +1082,9 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1082
1082
  }>;
1083
1083
  }>;
1084
1084
  } | undefined;
1085
+ users: {
1086
+ allowClientUserDeletion?: boolean | undefined;
1087
+ };
1085
1088
  auth: {
1086
1089
  allowSignUp?: boolean | undefined;
1087
1090
  signUpRulesDefaultAction?: string | undefined;
@@ -1144,9 +1147,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1144
1147
  tsxSource: string;
1145
1148
  }>;
1146
1149
  };
1147
- users: {
1148
- allowClientUserDeletion?: boolean | undefined;
1149
- };
1150
1150
  apiKeys: {
1151
1151
  enabled: {
1152
1152
  team?: boolean | undefined;
@@ -1177,22 +1177,25 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1177
1177
  interval?: DayInterval | undefined;
1178
1178
  } | undefined;
1179
1179
  items: Record<string, {
1180
- displayName?: string | undefined;
1181
1180
  customerType?: "team" | "user" | "custom" | undefined;
1181
+ displayName?: string | undefined;
1182
1182
  }>;
1183
1183
  productLines: Record<string, {
1184
- displayName?: string | undefined;
1185
1184
  customerType?: "team" | "user" | "custom" | undefined;
1185
+ displayName?: string | undefined;
1186
1186
  }>;
1187
1187
  products: Record<string, {
1188
- displayName?: string | undefined;
1189
- serverOnly?: boolean | undefined;
1190
- freeTrial?: DayInterval | undefined;
1191
1188
  productLineId?: string | undefined;
1189
+ displayName?: string | undefined;
1192
1190
  isAddOnTo?: false | Record<string, true> | undefined;
1191
+ freeTrial?: DayInterval | undefined;
1192
+ serverOnly?: boolean | undefined;
1193
1193
  stackable?: boolean | undefined;
1194
1194
  customerType: "team" | "user" | "custom";
1195
1195
  prices: Record<string, {
1196
+ interval?: DayInterval | undefined;
1197
+ freeTrial?: DayInterval | undefined;
1198
+ serverOnly?: boolean | undefined;
1196
1199
  USD?: string | undefined;
1197
1200
  EUR?: string | undefined;
1198
1201
  GBP?: string | undefined;
@@ -1200,9 +1203,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1200
1203
  INR?: string | undefined;
1201
1204
  AUD?: string | undefined;
1202
1205
  CAD?: string | undefined;
1203
- interval?: DayInterval | undefined;
1204
- serverOnly?: boolean | undefined;
1205
- freeTrial?: DayInterval | undefined;
1206
1206
  }>;
1207
1207
  includedItems: Record<string, {
1208
1208
  repeat?: "never" | DayInterval | undefined;
@@ -1276,8 +1276,8 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1276
1276
  displayName?: string | undefined;
1277
1277
  sortOrder?: number | undefined;
1278
1278
  queries: Record<string, {
1279
- description?: string | undefined;
1280
1279
  displayName?: string | undefined;
1280
+ description?: string | undefined;
1281
1281
  sqlQuery?: string | undefined;
1282
1282
  }>;
1283
1283
  }>;
@@ -1323,7 +1323,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1323
1323
  project: {
1324
1324
  requirePublishableClientKey: undefined;
1325
1325
  };
1326
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1326
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1327
1327
  rbac: {
1328
1328
  permissions: undefined;
1329
1329
  defaultPermissions: {
@@ -1396,7 +1396,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1396
1396
  project: {
1397
1397
  requirePublishableClientKey: undefined;
1398
1398
  };
1399
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1399
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1400
1400
  rbac: {
1401
1401
  permissions: undefined;
1402
1402
  defaultPermissions: {
@@ -1469,7 +1469,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1469
1469
  project: {
1470
1470
  requirePublishableClientKey: undefined;
1471
1471
  };
1472
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1472
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1473
1473
  rbac: {
1474
1474
  permissions: undefined;
1475
1475
  defaultPermissions: {
@@ -1545,7 +1545,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1545
1545
  project: {
1546
1546
  requirePublishableClientKey: undefined;
1547
1547
  };
1548
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1548
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1549
1549
  rbac: {
1550
1550
  permissions: undefined;
1551
1551
  defaultPermissions: {
@@ -1631,7 +1631,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1631
1631
  project: {
1632
1632
  requirePublishableClientKey: undefined;
1633
1633
  };
1634
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1634
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1635
1635
  rbac: {
1636
1636
  permissions: undefined;
1637
1637
  defaultPermissions: {
@@ -1707,7 +1707,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1707
1707
  project: {
1708
1708
  requirePublishableClientKey: undefined;
1709
1709
  };
1710
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1710
+ }, string>, "users" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1711
1711
  rbac: {
1712
1712
  permissions: undefined;
1713
1713
  defaultPermissions: {
@@ -2077,8 +2077,8 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2077
2077
  priority: number;
2078
2078
  condition: string | undefined;
2079
2079
  action: {
2080
- message: string | undefined;
2081
2080
  type: "allow" | "reject" | "restrict" | "log";
2081
+ message: string | undefined;
2082
2082
  };
2083
2083
  }>;
2084
2084
  allowSignUp: boolean;
@@ -2125,6 +2125,9 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2125
2125
  products: Record<string, {
2126
2126
  isAddOnTo: false | Record<string, true>;
2127
2127
  prices: Record<string, Partial<{
2128
+ interval: [number, "day" | "week" | "month" | "year"] | undefined;
2129
+ freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
2130
+ serverOnly: boolean;
2128
2131
  USD: string | undefined;
2129
2132
  EUR: string | undefined;
2130
2133
  GBP: string | undefined;
@@ -2132,40 +2135,37 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2132
2135
  INR: string | undefined;
2133
2136
  AUD: string | undefined;
2134
2137
  CAD: string | undefined;
2135
- interval: [number, "day" | "week" | "month" | "year"] | undefined;
2136
- serverOnly: boolean;
2137
- freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
2138
2138
  }> & {
2139
2139
  serverOnly: boolean;
2140
2140
  }>;
2141
- displayName: string;
2142
- serverOnly: boolean;
2143
- freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
2144
2141
  productLineId: string | undefined;
2145
2142
  customerType: "team" | "user" | "custom";
2143
+ displayName: string;
2144
+ freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
2145
+ serverOnly: boolean;
2146
2146
  stackable: boolean | undefined;
2147
2147
  includedItems: {
2148
2148
  [x: string]: {
2149
- repeat: "never" | [number, "day" | "week" | "month" | "year"];
2150
2149
  quantity: number;
2150
+ repeat: "never" | [number, "day" | "week" | "month" | "year"];
2151
2151
  expires: "never" | "when-purchase-expires" | "when-repeated";
2152
2152
  };
2153
2153
  };
2154
2154
  }>;
2155
+ blockNewPurchases: boolean;
2155
2156
  items: {
2156
2157
  [x: string]: {
2157
- displayName: string;
2158
2158
  customerType: "team" | "user" | "custom";
2159
+ displayName: string;
2159
2160
  };
2160
2161
  };
2161
- blockNewPurchases: boolean;
2162
2162
  autoPay: {
2163
2163
  interval?: [number, "day" | "week" | "month" | "year"] | undefined;
2164
2164
  } | undefined;
2165
2165
  productLines: {
2166
2166
  [x: string]: {
2167
- displayName: string | undefined;
2168
2167
  customerType: "team" | "user" | "custom" | undefined;
2168
+ displayName: string | undefined;
2169
2169
  };
2170
2170
  };
2171
2171
  testMode: boolean;
@@ -2183,6 +2183,9 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2183
2183
  } & {
2184
2184
  readonly type: "hosted";
2185
2185
  };
2186
+ users: {
2187
+ allowClientUserDeletion: boolean;
2188
+ };
2186
2189
  analytics: {
2187
2190
  queryFolders: {
2188
2191
  [x: string]: {
@@ -2190,8 +2193,8 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2190
2193
  sortOrder: number;
2191
2194
  queries: {
2192
2195
  [x: string]: {
2193
- description: string | undefined;
2194
2196
  displayName: string;
2197
+ description: string | undefined;
2195
2198
  sqlQuery: string;
2196
2199
  };
2197
2200
  };
@@ -2227,9 +2230,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2227
2230
  };
2228
2231
  };
2229
2232
  };
2230
- users: {
2231
- allowClientUserDeletion: boolean;
2232
- };
2233
2233
  apiKeys: {
2234
2234
  enabled: {
2235
2235
  team: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ai-setup-prompt.d.ts","names":[],"sources":["../../../../../src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts"],"mappings":";cAKa,iBAAA;AAAA,cA6FA,mBAAA;AAAA,cAkKA,cAAA;AAAA,cA2QA,wBAAA;AAAA,cACA,yBAAA;AAAA,cAEA,8BAAA;AAAA,cAkCA,eAAA;AAAA,cA8MA,eAAA;AAAA,iBAoCG,iBAAA,CAAkB,QAAA;AAAA,cA0drB,aAAA"}
1
+ {"version":3,"file":"ai-setup-prompt.d.ts","names":[],"sources":["../../../../../src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts"],"mappings":";cAKa,iBAAA;AAAA,cAqFA,mBAAA;AAAA,cA0IA,cAAA;AAAA,cA2QA,wBAAA;AAAA,cACA,yBAAA;AAAA,cAEA,8BAAA;AAAA,cAkCA,eAAA;AAAA,cA8MA,eAAA;AAAA,iBAoCG,iBAAA,CAAkB,QAAA;AAAA,cAgerB,aAAA"}
@@ -30,15 +30,7 @@ const convexSetupPrompt = deindent`
30
30
  </Step>
31
31
 
32
32
  <Step title="Install and configure Hexclave">
33
- Install Hexclave in the app. If you have not already completed the SDK setup steps above, run the setup wizard:
34
-
35
- \`\`\`sh
36
- npx @hexclave/cli@latest init
37
- \`\`\`
38
-
39
- Create or select a Hexclave project in the dashboard. Copy the Hexclave environment variables into the app's \`.env.local\` file.
40
-
41
- Also add the same Hexclave environment variables to the Convex deployment environment in the Convex dashboard.
33
+ Install Hexclave in the app. If you have not already completed the SDK setup steps above, follow the instructions in the [Getting Started Guide](https://docs.hexclave.com/guides/getting-started/setup).
42
34
  </Step>
43
35
 
44
36
  <Step title="Configure Convex auth providers">
@@ -137,31 +129,7 @@ const supabaseSetupPrompt = deindent`
137
129
  </Step>
138
130
 
139
131
  <Step title="Install Hexclave and Supabase dependencies">
140
- If you are starting from scratch with Next.js, you can use Supabase's template and then initialize Hexclave:
141
-
142
- \`\`\`sh
143
- npx create-next-app@latest -e with-supabase hexclave-supabase
144
- cd hexclave-supabase
145
- npx @hexclave/cli@latest init
146
- \`\`\`
147
-
148
- Add the Supabase environment variables to \`.env.local\`:
149
-
150
- \`\`\`.env .env.local
151
- NEXT_PUBLIC_SUPABASE_URL=<your-supabase-url>
152
- NEXT_PUBLIC_SUPABASE_ANON_KEY=<your-supabase-anon-key>
153
- SUPABASE_JWT_SECRET=<your-supabase-jwt-secret>
154
- \`\`\`
155
-
156
- Also add the Hexclave environment variables:
157
-
158
- \`\`\`.env .env.local
159
- # The project ID is the only client-exposed Hexclave variable; in Next.js it must
160
- # be prefixed with NEXT_PUBLIC_. HEXCLAVE_SECRET_SERVER_KEY is server-only and must
161
- # NEVER be prefixed or exposed to the client.
162
- NEXT_PUBLIC_HEXCLAVE_PROJECT_ID=<your-hexclave-project-id>
163
- HEXCLAVE_SECRET_SERVER_KEY=<your-secret-server-key>
164
- \`\`\`
132
+ First, follow the instructions on how to get started with Hexclave for your framework in the [Getting Started Guide](https://docs.hexclave.com/guides/getting-started/setup).
165
133
  </Step>
166
134
 
167
135
  <Step title="Mint Supabase JWTs from Hexclave users">
@@ -790,6 +758,7 @@ function getSdkSetupPrompt(mainType) {
790
758
  const isDefinitelyTanstackStart = mainType === "tanstack-start";
791
759
  const isMaybeTanstackStart = isDefinitelyTanstackStart || mainType === "ai-prompt";
792
760
  const isMaybeVanillaReact = mainType === "react" || mainType === "ai-prompt";
761
+ const isDefinitelyVite = isDefinitelyTanstackStart;
793
762
  const isDefinitelyBackend = mainType === "nodejs" || mainType === "bun" || mainType === "nextjs";
794
763
  const isMaybeBackend = isDefinitelyBackend || mainType === "js" || mainType === "ai-prompt";
795
764
  const isDefinitelyFrontend = isDefinitelyReact;
@@ -969,7 +938,7 @@ function getSdkSetupPrompt(mainType) {
969
938
  }
970
939
  \`\`\`
971
940
 
972
- \`hexclave dev\` injects all necessary environment variables into the app process automatically, so the app is ready to use without any extra environment variable setup.
941
+ \`hexclave dev\` injects all necessary environment variables into the app process automatically, so the app is ready to use without any extra environment variable setup.${isAiPrompt ? " It injects non-sensitive environment variables (eg. the project ID) with and without the prefixes `NEXT_PUBLIC_` and `VITE_`, so no extra environment variable setup is necessary for most frameworks." : ""}
973
942
  </Accordion>
974
943
 
975
944
  <Accordion title="Option 2: Connecting to a production project hosted in the cloud">
@@ -988,7 +957,8 @@ function getSdkSetupPrompt(mainType) {
988
957
  ${isAiPrompt ? `${deindent`
989
958
  Some projects have the \`requirePublishableClientKey\` config option enabled. In that case, a publishable client key will also be necessary. However, this is extremely uncommon; for most projects this is not true, so don't ask the user for one unless you have confirmation that the publishable client key is required. If it's not required, the project ID is the only environment variable required to use Hexclave on a client.
990
959
  `}\n\n` : ""}\`\`\`.env .env.local
991
- HEXCLAVE_PROJECT_ID=<your-project-id>
960
+ ${!isDefinitelyNextjs && !isDefinitelyVite ? "# note: prefix the environment variable with NEXT_PUBLIC_ or VITE_ if your framework requires you to do so" : ""}
961
+ ${isDefinitelyNextjs ? "NEXT_PUBLIC_" : isDefinitelyVite ? "VITE_" : ""}HEXCLAVE_PROJECT_ID=<your-project-id>
992
962
  \`\`\`
993
963
 
994
964
  Alternatively, you can also just set the project ID in the \`hexclave/client.ts\` file:
@@ -1010,7 +980,11 @@ function getSdkSetupPrompt(mainType) {
1010
980
  ${isAiPrompt ? `${deindent`
1011
981
  If the \`requirePublishableClientKey\` config option is enabled as described above, a publishable client key will also be necessary. Otherwise, these two are the only environment variables required to use Hexclave on a server.
1012
982
  `}\n\n` : ""}\`\`\`.env .env.local
1013
- HEXCLAVE_PROJECT_ID=<your-project-id>
983
+ ${!isDefinitelyNextjs && !isDefinitelyVite ? deindent`
984
+ # as above, prefix the project ID environment variable with NEXT_PUBLIC_ or VITE_ if your framework requires you to do so
985
+ # do NOT prefix the secret server key environment variable with NEXT_PUBLIC_ or VITE_ as it is server-only
986
+ ` : ""}
987
+ ${isDefinitelyNextjs ? "NEXT_PUBLIC_" : isDefinitelyVite ? "VITE_" : ""}HEXCLAVE_PROJECT_ID=<your-project-id>
1014
988
  HEXCLAVE_SECRET_SERVER_KEY=<your-secret-server-key>
1015
989
  \`\`\`
1016
990