@hexclave/shared 1.0.55 → 1.0.57

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 (94) hide show
  1. package/dist/{admin-interface-DIt0PvhC.d.ts → admin-interface-D6kvAhoP.d.ts} +6 -6
  2. package/dist/{admin-interface-DIt0PvhC.d.ts.map → admin-interface-D6kvAhoP.d.ts.map} +1 -1
  3. package/dist/{admin-metrics-bsOkw4YQ.d.ts → admin-metrics-Cs7JjEj4.d.ts} +4 -4
  4. package/dist/{admin-metrics-bsOkw4YQ.d.ts.map → admin-metrics-Cs7JjEj4.d.ts.map} +1 -1
  5. package/dist/ai/hexclave-ask.d.ts +37 -0
  6. package/dist/ai/hexclave-ask.d.ts.map +1 -0
  7. package/dist/ai/hexclave-ask.js +120 -0
  8. package/dist/ai/hexclave-ask.js.map +1 -0
  9. package/dist/ai/hexclave-ask.test.d.ts +1 -0
  10. package/dist/ai/hexclave-ask.test.js +46 -0
  11. package/dist/ai/hexclave-ask.test.js.map +1 -0
  12. package/dist/ai/unified-prompts/reminders.js +3 -3
  13. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  14. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  15. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  16. package/dist/ai/unified-prompts/skill-site-prompt.js +2 -2
  17. package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  18. package/dist/{client-interface-BQz4jNAC.d.ts → client-interface-CnrY_NEa.d.ts} +4 -4
  19. package/dist/{client-interface-BQz4jNAC.d.ts.map → client-interface-CnrY_NEa.d.ts.map} +1 -1
  20. package/dist/config/schema-fuzzer.test.js +1 -1
  21. package/dist/config/schema.js +1 -1
  22. package/dist/{current-user-BBoN3hsn.d.ts → current-user-Dvf8Ttjo.d.ts} +3 -3
  23. package/dist/{current-user-BBoN3hsn.d.ts.map → current-user-Dvf8Ttjo.d.ts.map} +1 -1
  24. package/dist/{email-outbox-CqzwInBL.d.ts → email-outbox-CJXqsXl0.d.ts} +41 -41
  25. package/dist/{email-outbox-CqzwInBL.d.ts.map → email-outbox-CJXqsXl0.d.ts.map} +1 -1
  26. package/dist/esm/ai/hexclave-ask.d.ts +37 -0
  27. package/dist/esm/ai/hexclave-ask.d.ts.map +1 -0
  28. package/dist/esm/ai/hexclave-ask.js +117 -0
  29. package/dist/esm/ai/hexclave-ask.js.map +1 -0
  30. package/dist/esm/ai/hexclave-ask.test.d.ts +1 -0
  31. package/dist/esm/ai/hexclave-ask.test.js +47 -0
  32. package/dist/esm/ai/hexclave-ask.test.js.map +1 -0
  33. package/dist/esm/ai/unified-prompts/reminders.js +3 -3
  34. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  35. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  36. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  37. package/dist/esm/ai/unified-prompts/skill-site-prompt.js +2 -2
  38. package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  39. package/dist/esm/config/schema-fuzzer.test.js +1 -1
  40. package/dist/esm/config/schema.js +1 -1
  41. package/dist/esm/interface/admin-interface.js +1 -1
  42. package/dist/esm/interface/admin-metrics.d.ts +3 -3
  43. package/dist/esm/interface/client-interface.js +2 -2
  44. package/dist/esm/interface/conversations.d.ts +3 -3
  45. package/dist/esm/interface/crud/current-user.d.ts +2 -2
  46. package/dist/esm/interface/crud/email-outbox.d.ts +40 -40
  47. package/dist/esm/interface/crud/projects.d.ts +4 -0
  48. package/dist/esm/interface/crud/projects.d.ts.map +1 -1
  49. package/dist/esm/interface/crud/projects.js +1 -0
  50. package/dist/esm/interface/crud/projects.js.map +1 -1
  51. package/dist/esm/interface/crud/team-member-profiles.d.ts +10 -10
  52. package/dist/esm/interface/crud/users.d.ts +8 -8
  53. package/dist/esm/interface/plan-usage.d.ts +1 -1
  54. package/dist/esm/interface/server-interface.js +1 -1
  55. package/dist/esm/interface/webhooks.d.ts +2 -2
  56. package/dist/helpers/production-mode.d.ts +1 -1
  57. package/dist/index.d.ts +3 -3
  58. package/dist/interface/admin-interface.d.ts +2 -2
  59. package/dist/interface/admin-interface.js +1 -1
  60. package/dist/interface/admin-metrics.d.ts +1 -1
  61. package/dist/interface/client-interface.d.ts +1 -1
  62. package/dist/interface/client-interface.js +2 -2
  63. package/dist/interface/conversations.d.ts +3 -3
  64. package/dist/interface/crud/current-user.d.ts +1 -1
  65. package/dist/interface/crud/email-outbox.d.ts +1 -1
  66. package/dist/interface/crud/projects.d.ts +1 -1
  67. package/dist/interface/crud/projects.js +1 -0
  68. package/dist/interface/crud/projects.js.map +1 -1
  69. package/dist/interface/crud/team-member-profiles.d.ts +1 -1
  70. package/dist/interface/crud/users.d.ts +1 -1
  71. package/dist/interface/plan-usage.d.ts +1 -1
  72. package/dist/interface/server-interface.d.ts +1 -1
  73. package/dist/interface/server-interface.js +1 -1
  74. package/dist/interface/webhooks.d.ts +1 -1
  75. package/dist/{plan-usage-BO2GsKlN.d.ts → plan-usage-BaDxcLZ1.d.ts} +2 -2
  76. package/dist/{plan-usage-BO2GsKlN.d.ts.map → plan-usage-BaDxcLZ1.d.ts.map} +1 -1
  77. package/dist/{projects-CFTNXRfG.d.ts → projects-BX5Y50kJ.d.ts} +5 -1
  78. package/dist/projects-BX5Y50kJ.d.ts.map +1 -0
  79. package/dist/{server-interface-BjY-eS4Q.d.ts → server-interface-DipGGXYo.d.ts} +5 -5
  80. package/dist/{server-interface-BjY-eS4Q.d.ts.map → server-interface-DipGGXYo.d.ts.map} +1 -1
  81. package/dist/{team-member-profiles-BoDEqx-0.d.ts → team-member-profiles-uTluO8XI.d.ts} +11 -11
  82. package/dist/{team-member-profiles-BoDEqx-0.d.ts.map → team-member-profiles-uTluO8XI.d.ts.map} +1 -1
  83. package/dist/{users-DHNRwoSz.d.ts → users-D9Gnf-Z3.d.ts} +10 -10
  84. package/dist/{users-DHNRwoSz.d.ts.map → users-D9Gnf-Z3.d.ts.map} +1 -1
  85. package/dist/{webhooks-8Ts1Clcb.d.ts → webhooks-ByXrdSOx.d.ts} +3 -3
  86. package/dist/{webhooks-8Ts1Clcb.d.ts.map → webhooks-ByXrdSOx.d.ts.map} +1 -1
  87. package/package.json +1 -1
  88. package/src/ai/hexclave-ask.test.ts +50 -0
  89. package/src/ai/hexclave-ask.ts +175 -0
  90. package/src/ai/unified-prompts/reminders.ts +3 -3
  91. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +1 -1
  92. package/src/ai/unified-prompts/skill-site-prompt.ts +2 -2
  93. package/src/interface/crud/projects.ts +1 -0
  94. package/dist/projects-CFTNXRfG.d.ts.map +0 -1
@@ -162,8 +162,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
162
162
  id: string;
163
163
  subject: string;
164
164
  created_at_millis: number;
165
- html: string | null;
166
- text: string | null;
167
165
  to: {
168
166
  user_id: string;
169
167
  type: "user-primary-email";
@@ -175,6 +173,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
175
173
  type: "custom-emails";
176
174
  emails: string[];
177
175
  };
176
+ html: string | null;
177
+ text: string | null;
178
178
  updated_at_millis: number;
179
179
  tsx_source: string;
180
180
  theme_id: string | null;
@@ -208,8 +208,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
208
208
  id: string;
209
209
  subject: string;
210
210
  created_at_millis: number;
211
- html: string | null;
212
- text: string | null;
213
211
  to: {
214
212
  user_id: string;
215
213
  type: "user-primary-email";
@@ -221,6 +219,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
221
219
  type: "custom-emails";
222
220
  emails: string[];
223
221
  };
222
+ html: string | null;
223
+ text: string | null;
224
224
  updated_at_millis: number;
225
225
  tsx_source: string;
226
226
  theme_id: string | null;
@@ -254,8 +254,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
254
254
  id: string;
255
255
  subject: string;
256
256
  created_at_millis: number;
257
- html: string | null;
258
- text: string | null;
259
257
  to: {
260
258
  user_id: string;
261
259
  type: "user-primary-email";
@@ -267,6 +265,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
267
265
  type: "custom-emails";
268
266
  emails: string[];
269
267
  };
268
+ html: string | null;
269
+ text: string | null;
270
270
  updated_at_millis: number;
271
271
  tsx_source: string;
272
272
  theme_id: string | null;
@@ -301,8 +301,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
301
301
  id: string;
302
302
  subject: string;
303
303
  created_at_millis: number;
304
- html: string | null;
305
- text: string | null;
306
304
  to: {
307
305
  user_id: string;
308
306
  type: "user-primary-email";
@@ -314,6 +312,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
314
312
  type: "custom-emails";
315
313
  emails: string[];
316
314
  };
315
+ html: string | null;
316
+ text: string | null;
317
317
  updated_at_millis: number;
318
318
  tsx_source: string;
319
319
  theme_id: string | null;
@@ -400,8 +400,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
400
400
  id: string;
401
401
  subject: string;
402
402
  created_at_millis: number;
403
- html: string | null;
404
- text: string | null;
405
403
  to: {
406
404
  user_id: string;
407
405
  type: "user-primary-email";
@@ -413,6 +411,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
413
411
  type: "custom-emails";
414
412
  emails: string[];
415
413
  };
414
+ html: string | null;
415
+ text: string | null;
416
416
  updated_at_millis: number;
417
417
  tsx_source: string;
418
418
  theme_id: string | null;
@@ -448,8 +448,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
448
448
  id: string;
449
449
  subject: string;
450
450
  created_at_millis: number;
451
- html: string | null;
452
- text: string | null;
453
451
  to: {
454
452
  user_id: string;
455
453
  type: "user-primary-email";
@@ -461,6 +459,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
461
459
  type: "custom-emails";
462
460
  emails: string[];
463
461
  };
462
+ html: string | null;
463
+ text: string | null;
464
464
  updated_at_millis: number;
465
465
  tsx_source: string;
466
466
  theme_id: string | null;
@@ -496,8 +496,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
496
496
  id: string;
497
497
  subject: string;
498
498
  created_at_millis: number;
499
- html: string | null;
500
- text: string | null;
501
499
  to: {
502
500
  user_id: string;
503
501
  type: "user-primary-email";
@@ -509,6 +507,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
509
507
  type: "custom-emails";
510
508
  emails: string[];
511
509
  };
510
+ html: string | null;
511
+ text: string | null;
512
512
  updated_at_millis: number;
513
513
  tsx_source: string;
514
514
  theme_id: string | null;
@@ -545,8 +545,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
545
545
  id: string;
546
546
  subject: string;
547
547
  created_at_millis: number;
548
- html: string | null;
549
- text: string | null;
550
548
  to: {
551
549
  user_id: string;
552
550
  type: "user-primary-email";
@@ -558,6 +556,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
558
556
  type: "custom-emails";
559
557
  emails: string[];
560
558
  };
559
+ html: string | null;
560
+ text: string | null;
561
561
  updated_at_millis: number;
562
562
  tsx_source: string;
563
563
  theme_id: string | null;
@@ -595,8 +595,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
595
595
  id: string;
596
596
  subject: string;
597
597
  created_at_millis: number;
598
- html: string | null;
599
- text: string | null;
600
598
  to: {
601
599
  user_id: string;
602
600
  type: "user-primary-email";
@@ -608,6 +606,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
608
606
  type: "custom-emails";
609
607
  emails: string[];
610
608
  };
609
+ html: string | null;
610
+ text: string | null;
611
611
  updated_at_millis: number;
612
612
  tsx_source: string;
613
613
  theme_id: string | null;
@@ -645,8 +645,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
645
645
  id: string;
646
646
  subject: string;
647
647
  created_at_millis: number;
648
- html: string | null;
649
- text: string | null;
650
648
  to: {
651
649
  user_id: string;
652
650
  type: "user-primary-email";
@@ -658,6 +656,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
658
656
  type: "custom-emails";
659
657
  emails: string[];
660
658
  };
659
+ html: string | null;
660
+ text: string | null;
661
661
  updated_at_millis: number;
662
662
  tsx_source: string;
663
663
  theme_id: string | null;
@@ -882,8 +882,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
882
882
  id: string;
883
883
  subject: string;
884
884
  created_at_millis: number;
885
- html: string | null;
886
- text: string | null;
887
885
  to: {
888
886
  user_id: string;
889
887
  type: "user-primary-email";
@@ -895,6 +893,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
895
893
  type: "custom-emails";
896
894
  emails: string[];
897
895
  };
896
+ html: string | null;
897
+ text: string | null;
898
898
  updated_at_millis: number;
899
899
  tsx_source: string;
900
900
  theme_id: string | null;
@@ -928,8 +928,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
928
928
  id: string;
929
929
  subject: string;
930
930
  created_at_millis: number;
931
- html: string | null;
932
- text: string | null;
933
931
  to: {
934
932
  user_id: string;
935
933
  type: "user-primary-email";
@@ -941,6 +939,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
941
939
  type: "custom-emails";
942
940
  emails: string[];
943
941
  };
942
+ html: string | null;
943
+ text: string | null;
944
944
  updated_at_millis: number;
945
945
  tsx_source: string;
946
946
  theme_id: string | null;
@@ -974,8 +974,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
974
974
  id: string;
975
975
  subject: string;
976
976
  created_at_millis: number;
977
- html: string | null;
978
- text: string | null;
979
977
  to: {
980
978
  user_id: string;
981
979
  type: "user-primary-email";
@@ -987,6 +985,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
987
985
  type: "custom-emails";
988
986
  emails: string[];
989
987
  };
988
+ html: string | null;
989
+ text: string | null;
990
990
  updated_at_millis: number;
991
991
  tsx_source: string;
992
992
  theme_id: string | null;
@@ -1021,8 +1021,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1021
1021
  id: string;
1022
1022
  subject: string;
1023
1023
  created_at_millis: number;
1024
- html: string | null;
1025
- text: string | null;
1026
1024
  to: {
1027
1025
  user_id: string;
1028
1026
  type: "user-primary-email";
@@ -1034,6 +1032,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1034
1032
  type: "custom-emails";
1035
1033
  emails: string[];
1036
1034
  };
1035
+ html: string | null;
1036
+ text: string | null;
1037
1037
  updated_at_millis: number;
1038
1038
  tsx_source: string;
1039
1039
  theme_id: string | null;
@@ -1120,8 +1120,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1120
1120
  id: string;
1121
1121
  subject: string;
1122
1122
  created_at_millis: number;
1123
- html: string | null;
1124
- text: string | null;
1125
1123
  to: {
1126
1124
  user_id: string;
1127
1125
  type: "user-primary-email";
@@ -1133,6 +1131,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1133
1131
  type: "custom-emails";
1134
1132
  emails: string[];
1135
1133
  };
1134
+ html: string | null;
1135
+ text: string | null;
1136
1136
  updated_at_millis: number;
1137
1137
  tsx_source: string;
1138
1138
  theme_id: string | null;
@@ -1168,8 +1168,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1168
1168
  id: string;
1169
1169
  subject: string;
1170
1170
  created_at_millis: number;
1171
- html: string | null;
1172
- text: string | null;
1173
1171
  to: {
1174
1172
  user_id: string;
1175
1173
  type: "user-primary-email";
@@ -1181,6 +1179,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1181
1179
  type: "custom-emails";
1182
1180
  emails: string[];
1183
1181
  };
1182
+ html: string | null;
1183
+ text: string | null;
1184
1184
  updated_at_millis: number;
1185
1185
  tsx_source: string;
1186
1186
  theme_id: string | null;
@@ -1216,8 +1216,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1216
1216
  id: string;
1217
1217
  subject: string;
1218
1218
  created_at_millis: number;
1219
- html: string | null;
1220
- text: string | null;
1221
1219
  to: {
1222
1220
  user_id: string;
1223
1221
  type: "user-primary-email";
@@ -1229,6 +1227,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1229
1227
  type: "custom-emails";
1230
1228
  emails: string[];
1231
1229
  };
1230
+ html: string | null;
1231
+ text: string | null;
1232
1232
  updated_at_millis: number;
1233
1233
  tsx_source: string;
1234
1234
  theme_id: string | null;
@@ -1265,8 +1265,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1265
1265
  id: string;
1266
1266
  subject: string;
1267
1267
  created_at_millis: number;
1268
- html: string | null;
1269
- text: string | null;
1270
1268
  to: {
1271
1269
  user_id: string;
1272
1270
  type: "user-primary-email";
@@ -1278,6 +1276,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1278
1276
  type: "custom-emails";
1279
1277
  emails: string[];
1280
1278
  };
1279
+ html: string | null;
1280
+ text: string | null;
1281
1281
  updated_at_millis: number;
1282
1282
  tsx_source: string;
1283
1283
  theme_id: string | null;
@@ -1315,8 +1315,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1315
1315
  id: string;
1316
1316
  subject: string;
1317
1317
  created_at_millis: number;
1318
- html: string | null;
1319
- text: string | null;
1320
1318
  to: {
1321
1319
  user_id: string;
1322
1320
  type: "user-primary-email";
@@ -1328,6 +1326,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1328
1326
  type: "custom-emails";
1329
1327
  emails: string[];
1330
1328
  };
1329
+ html: string | null;
1330
+ text: string | null;
1331
1331
  updated_at_millis: number;
1332
1332
  tsx_source: string;
1333
1333
  theme_id: string | null;
@@ -1365,8 +1365,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1365
1365
  id: string;
1366
1366
  subject: string;
1367
1367
  created_at_millis: number;
1368
- html: string | null;
1369
- text: string | null;
1370
1368
  to: {
1371
1369
  user_id: string;
1372
1370
  type: "user-primary-email";
@@ -1378,6 +1376,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1378
1376
  type: "custom-emails";
1379
1377
  emails: string[];
1380
1378
  };
1379
+ html: string | null;
1380
+ text: string | null;
1381
1381
  updated_at_millis: number;
1382
1382
  tsx_source: string;
1383
1383
  theme_id: string | null;
@@ -166,6 +166,7 @@ declare const projectsCrudAdminReadSchema: import("yup").ObjectSchema<{
166
166
  declare const projectsCrudClientReadSchema: import("yup").ObjectSchema<{
167
167
  id: string;
168
168
  display_name: string;
169
+ is_development_environment: boolean;
169
170
  pushed_config_error: {
170
171
  message: string;
171
172
  } | null;
@@ -193,6 +194,7 @@ declare const projectsCrudClientReadSchema: import("yup").ObjectSchema<{
193
194
  }, import("yup").AnyObject, {
194
195
  id: undefined;
195
196
  display_name: undefined;
197
+ is_development_environment: undefined;
196
198
  pushed_config_error: {
197
199
  message: undefined;
198
200
  };
@@ -382,6 +384,7 @@ declare const clientProjectsCrud: import("../../crud").CrudSchemaFromOptions<{
382
384
  clientReadSchema: import("yup").ObjectSchema<{
383
385
  id: string;
384
386
  display_name: string;
387
+ is_development_environment: boolean;
385
388
  pushed_config_error: {
386
389
  message: string;
387
390
  } | null;
@@ -409,6 +412,7 @@ declare const clientProjectsCrud: import("../../crud").CrudSchemaFromOptions<{
409
412
  }, import("yup").AnyObject, {
410
413
  id: undefined;
411
414
  display_name: undefined;
415
+ is_development_environment: undefined;
412
416
  pushed_config_error: {
413
417
  message: undefined;
414
418
  };
@@ -1 +1 @@
1
- {"version":3,"file":"projects.d.ts","names":[],"sources":["../../../../src/interface/crud/projects.ts"],"mappings":";;;cAsDa,iBAAA,gBAAiB,YAAA;;;;;;;;;;;;;;;;;cAsBjB,gCAAA,gBAAgC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyBb,YAAA,GAAe,UAAU,QAAQ,YAAA;AAAA,cAEhC,qBAAA,uBAAqB,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAYtB,qBAAA,GAAwB,UAAU,QAAQ,qBAAA"}
@@ -98,6 +98,7 @@ const projectsCrudAdminReadSchema = yupObject({
98
98
  const projectsCrudClientReadSchema = yupObject({
99
99
  id: schemaFields.projectIdSchema.defined(),
100
100
  display_name: schemaFields.projectDisplayNameSchema.defined(),
101
+ is_development_environment: schemaFields.yupBoolean().defined(),
101
102
  pushed_config_error: pushedConfigErrorSchema.nullable().defined(),
102
103
  config_warnings: yupArray(configWarningSchema).defined(),
103
104
  config: yupObject({
@@ -1 +1 @@
1
- {"version":3,"file":"projects.js","names":[],"sources":["../../../../src/interface/crud/projects.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport { ALL_APPS } from \"../../apps/apps-config\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupArray, yupObject, yupString } from \"../../schema-fields\";\n\nconst teamPermissionSchema = yupObject({\n id: yupString().defined(),\n}).defined();\n\nconst oauthProviderReadSchema = yupObject({\n provider_config_id: schemaFields.yupString().defined(),\n id: schemaFields.oauthIdSchema.defined(),\n type: schemaFields.oauthTypeSchema.defined(),\n client_id: schemaFields.yupDefinedAndNonEmptyWhen(\n schemaFields.oauthClientIdSchema,\n { type: 'standard' },\n ),\n client_secret: schemaFields.yupDefinedAndNonEmptyWhen(\n schemaFields.oauthClientSecretSchema,\n { type: 'standard' },\n ),\n\n // extra params\n facebook_config_id: schemaFields.oauthFacebookConfigIdSchema.optional(),\n microsoft_tenant_id: schemaFields.oauthMicrosoftTenantIdSchema.optional(),\n apple_bundle_ids: schemaFields.oauthAppleBundleIdsSchema.optional(),\n});\n\nconst oauthProviderWriteSchema = oauthProviderReadSchema.omit(['provider_config_id']);\n\nconst enabledOAuthProviderSchema = yupObject({\n id: schemaFields.oauthIdSchema.defined(),\n});\n\nconst pushedConfigErrorSchema = yupObject({\n message: yupString().defined(),\n}).defined();\n\nconst configWarningSchema = yupObject({\n message: yupString().defined(),\n}).defined();\n\nconst onboardingConfigChoiceValues = [\"create-new\", \"link-existing\"] as const;\nconst onboardingSignInMethodValues = [\"credential\", \"magicLink\", \"passkey\", \"google\", \"github\", \"microsoft\"] as const;\nconst onboardingPaymentsCountryValues = [\"US\", \"OTHER\"] as const;\n\nconst projectOnboardingStateSchema = yupObject({\n selected_config_choice: yupString().oneOf(onboardingConfigChoiceValues).defined(),\n selected_apps: yupArray(yupString().oneOf(Object.keys(ALL_APPS)).defined()).defined(),\n selected_sign_in_methods: yupArray(yupString().oneOf(onboardingSignInMethodValues).defined()).defined(),\n selected_email_theme_id: schemaFields.emailThemeSchema.nullable().defined(),\n selected_payments_country: yupString().oneOf(onboardingPaymentsCountryValues).defined(),\n});\n\nexport const emailConfigSchema = yupObject({\n type: schemaFields.emailTypeSchema.defined(),\n host: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailHostSchema, {\n type: 'standard',\n }),\n port: schemaFields.yupDefinedWhen(schemaFields.emailPortSchema, {\n type: 'standard',\n }),\n username: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailUsernameSchema, {\n type: 'standard',\n }),\n password: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailPasswordSchema, {\n type: 'standard',\n }),\n sender_name: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailSenderNameSchema, {\n type: 'standard',\n }),\n sender_email: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailSenderEmailSchema, {\n type: 'standard',\n }),\n});\n\nexport const emailConfigWithoutPasswordSchema = emailConfigSchema.pick(['type', 'host', 'port', 'username', 'sender_name', 'sender_email']);\n\nconst domainSchema = yupObject({\n domain: schemaFields.urlSchema.defined()\n .matches(/^https?:\\/\\//, 'URL must start with http:// or https://')\n .meta({ openapiField: { description: 'URL. Must start with http:// or https://', exampleValue: 'https://example.com' } }),\n handler_path: schemaFields.handlerPathSchema.defined(),\n});\n\nexport const projectsCrudAdminReadSchema = yupObject({\n id: schemaFields.projectIdSchema.defined(),\n display_name: schemaFields.projectDisplayNameSchema.defined(),\n description: schemaFields.projectDescriptionSchema.nonNullable().defined(),\n logo_url: schemaFields.projectLogoUrlSchema.nullable().optional(),\n logo_full_url: schemaFields.projectLogoFullUrlSchema.nullable().optional(),\n logo_dark_mode_url: schemaFields.projectLogoDarkModeUrlSchema.nullable().optional(),\n logo_full_dark_mode_url: schemaFields.projectLogoFullDarkModeUrlSchema.nullable().optional(),\n created_at_millis: schemaFields.projectCreatedAtMillisSchema.defined(),\n is_production_mode: schemaFields.projectIsProductionModeSchema.defined(),\n is_development_environment: schemaFields.yupBoolean().defined(),\n owner_team_id: schemaFields.yupString().nullable().defined(),\n onboarding_status: schemaFields.projectOnboardingStatusSchema.defined(),\n onboarding_state: projectOnboardingStateSchema.nullable().optional(),\n pushed_config_error: pushedConfigErrorSchema.nullable().defined(),\n config_warnings: yupArray(configWarningSchema).defined(),\n /** @deprecated */\n config: yupObject({\n allow_localhost: schemaFields.projectAllowLocalhostSchema.defined(),\n sign_up_enabled: schemaFields.projectSignUpEnabledSchema.defined(),\n credential_enabled: schemaFields.projectCredentialEnabledSchema.defined(),\n magic_link_enabled: schemaFields.projectMagicLinkEnabledSchema.defined(),\n passkey_enabled: schemaFields.projectPasskeyEnabledSchema.defined(),\n // TODO: remove this\n client_team_creation_enabled: schemaFields.projectClientTeamCreationEnabledSchema.defined(),\n client_user_deletion_enabled: schemaFields.projectClientUserDeletionEnabledSchema.defined(),\n allow_user_api_keys: schemaFields.yupBoolean().defined(),\n allow_team_api_keys: schemaFields.yupBoolean().defined(),\n oauth_providers: yupArray(oauthProviderReadSchema.defined()).defined(),\n enabled_oauth_providers: yupArray(enabledOAuthProviderSchema.defined()).defined().meta({ openapiField: { hidden: true } }),\n domains: yupArray(domainSchema.defined()).defined(),\n email_config: emailConfigSchema.defined(),\n email_theme: schemaFields.emailThemeSchema.defined(),\n create_team_on_sign_up: schemaFields.projectCreateTeamOnSignUpSchema.defined(),\n team_creator_default_permissions: yupArray(teamPermissionSchema.defined()).defined(),\n team_member_default_permissions: yupArray(teamPermissionSchema.defined()).defined(),\n user_default_permissions: yupArray(teamPermissionSchema.defined()).defined(),\n oauth_account_merge_strategy: schemaFields.oauthAccountMergeStrategySchema.defined(),\n }).defined().meta({ openapiField: { hidden: true } }),\n}).defined();\n\nexport const projectsCrudClientReadSchema = yupObject({\n id: schemaFields.projectIdSchema.defined(),\n display_name: schemaFields.projectDisplayNameSchema.defined(),\n pushed_config_error: pushedConfigErrorSchema.nullable().defined(),\n config_warnings: yupArray(configWarningSchema).defined(),\n config: yupObject({\n sign_up_enabled: schemaFields.projectSignUpEnabledSchema.defined(),\n credential_enabled: schemaFields.projectCredentialEnabledSchema.defined(),\n magic_link_enabled: schemaFields.projectMagicLinkEnabledSchema.defined(),\n passkey_enabled: schemaFields.projectPasskeyEnabledSchema.defined(),\n client_team_creation_enabled: schemaFields.projectClientTeamCreationEnabledSchema.defined(),\n client_user_deletion_enabled: schemaFields.projectClientUserDeletionEnabledSchema.defined(),\n allow_localhost: schemaFields.projectAllowLocalhostSchema.defined(),\n allow_user_api_keys: schemaFields.yupBoolean().defined(),\n allow_team_api_keys: schemaFields.yupBoolean().defined(),\n enabled_oauth_providers: yupArray(enabledOAuthProviderSchema.defined()).defined().meta({ openapiField: { hidden: true } }),\n domains: yupArray(domainSchema.defined()).defined(),\n }).defined().meta({ openapiField: { hidden: true } }),\n}).defined();\n\n\nexport const projectsCrudAdminUpdateSchema = yupObject({\n display_name: schemaFields.projectDisplayNameSchema.optional(),\n description: schemaFields.projectDescriptionSchema.optional(),\n logo_url: schemaFields.projectLogoUrlSchema.nullable().optional(),\n logo_full_url: schemaFields.projectLogoFullUrlSchema.nullable().optional(),\n logo_dark_mode_url: schemaFields.projectLogoDarkModeUrlSchema.nullable().optional(),\n logo_full_dark_mode_url: schemaFields.projectLogoFullDarkModeUrlSchema.nullable().optional(),\n is_production_mode: schemaFields.projectIsProductionModeSchema.optional(),\n onboarding_status: schemaFields.projectOnboardingStatusSchema.optional(),\n onboarding_state: projectOnboardingStateSchema.nullable().optional(),\n /** @deprecated */\n config: yupObject({\n sign_up_enabled: schemaFields.projectSignUpEnabledSchema.optional(),\n credential_enabled: schemaFields.projectCredentialEnabledSchema.optional(),\n magic_link_enabled: schemaFields.projectMagicLinkEnabledSchema.optional(),\n passkey_enabled: schemaFields.projectPasskeyEnabledSchema.optional(),\n client_team_creation_enabled: schemaFields.projectClientTeamCreationEnabledSchema.optional(),\n client_user_deletion_enabled: schemaFields.projectClientUserDeletionEnabledSchema.optional(),\n allow_localhost: schemaFields.projectAllowLocalhostSchema.optional(),\n allow_user_api_keys: schemaFields.yupBoolean().optional(),\n allow_team_api_keys: schemaFields.yupBoolean().optional(),\n email_config: emailConfigSchema.optional().default(undefined),\n email_theme: schemaFields.emailThemeSchema.optional(),\n domains: yupArray(domainSchema.defined()).optional().default(undefined),\n oauth_providers: yupArray(oauthProviderWriteSchema.defined()).optional().default(undefined),\n create_team_on_sign_up: schemaFields.projectCreateTeamOnSignUpSchema.optional(),\n team_creator_default_permissions: yupArray(teamPermissionSchema.defined()).optional(),\n team_member_default_permissions: yupArray(teamPermissionSchema.defined()).optional(),\n user_default_permissions: yupArray(teamPermissionSchema.defined()).optional(),\n oauth_account_merge_strategy: schemaFields.oauthAccountMergeStrategySchema.optional(),\n require_email_verification: schemaFields.yupBoolean().optional(),\n }).optional().default(undefined),\n}).defined();\n\nexport const projectsCrudAdminCreateSchema = projectsCrudAdminUpdateSchema.concat(yupObject({\n display_name: schemaFields.projectDisplayNameSchema.defined(),\n is_development_environment: schemaFields.yupBoolean().optional(),\n owner_team_id: schemaFields.yupString().uuid().defined(),\n}).defined());\n\nexport const projectsCrudAdminDeleteSchema = schemaFields.yupMixed();\n\nexport const clientProjectsCrud = createCrud({\n clientReadSchema: projectsCrudClientReadSchema,\n docs: {\n clientRead: {\n summary: 'Get the current project',\n description: 'Get the current project information including display name, OAuth providers and authentication methods. Useful for displaying the available login options to the user.',\n tags: ['Projects'],\n },\n },\n});\nexport type ClientProjectsCrud = CrudTypeOf<typeof clientProjectsCrud>;\n\nexport const projectsCrud = createCrud({\n adminReadSchema: projectsCrudAdminReadSchema,\n adminUpdateSchema: projectsCrudAdminUpdateSchema,\n adminDeleteSchema: projectsCrudAdminDeleteSchema,\n docs: {\n adminRead: {\n summary: 'Get the current project',\n description: 'Get the current project information and configuration including display name, OAuth providers, email configuration, etc.',\n tags: ['Projects'],\n hidden: true,\n },\n adminUpdate: {\n summary: 'Update the current project',\n description: 'Update the current project information and configuration including display name, OAuth providers, email configuration, etc.',\n tags: ['Projects'],\n hidden: true,\n },\n adminDelete: {\n summary: 'Delete the current project',\n description: 'Delete the current project and all associated data (including users, teams, API keys, project configs, etc.). Be careful, this action is irreversible.',\n tags: ['Projects'],\n hidden: true,\n },\n },\n});\nexport type ProjectsCrud = CrudTypeOf<typeof projectsCrud>;\n\nexport const adminUserProjectsCrud = createCrud({\n clientReadSchema: projectsCrudAdminReadSchema,\n clientCreateSchema: projectsCrudAdminCreateSchema,\n docs: {\n clientList: {\n hidden: true,\n },\n clientCreate: {\n hidden: true,\n },\n },\n});\nexport type AdminUserProjectsCrud = CrudTypeOf<typeof adminUserProjectsC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8B,OAAO,UAAU;CAC1F,cAAc,aAAa,yBAAyB,QAAQ;CAC5D,4BAA4B,aAAa,WAAW,CAAC,CAAC,SAAS;CAC/D,eAAe,aAAa,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ;AACzD,CAAC,CAAC,CAAC,QAAQ,CAAC;AAEZ,MAAa,gCAAgC,aAAa,SAAS;AAEnE,MAAa,qBAAqB,WAAW;CAC3C,kBAAkB;CAClB,MAAM,EACJ,YAAY;EACV,SAAS;EACT,aAAa;EACb,MAAM,CAAC,UAAU;CACnB,EACF;AACF,CAAC;AAGD,MAAa,eAAe,WAAW;CACrC,iBAAiB;CACjB,mBAAmB;CACnB,mBAAmB;CACnB,MAAM;EACJ,WAAW;GACT,SAAS;GACT,aAAa;GACb,MAAM,CAAC,UAAU;GACjB,QAAQ;EACV;EACA,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,UAAU;GACjB,QAAQ;EACV;EACA,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,UAAU;GACjB,QAAQ;EACV;CACF;AACF,CAAC;AAGD,MAAa,wBAAwB,WAAW;CAC9C,kBAAkB;CAClB,oBAAoB;CACpB,MAAM;EACJ,YAAY,EACV,QAAQ,KACV;EACA,cAAc,EACZ,QAAQ,KACV;CACF;AACF,CAAC"}
1
+ {"version":3,"file":"projects.js","names":[],"sources":["../../../../src/interface/crud/projects.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport { ALL_APPS } from \"../../apps/apps-config\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupArray, yupObject, yupString } from \"../../schema-fields\";\n\nconst teamPermissionSchema = yupObject({\n id: yupString().defined(),\n}).defined();\n\nconst oauthProviderReadSchema = yupObject({\n provider_config_id: schemaFields.yupString().defined(),\n id: schemaFields.oauthIdSchema.defined(),\n type: schemaFields.oauthTypeSchema.defined(),\n client_id: schemaFields.yupDefinedAndNonEmptyWhen(\n schemaFields.oauthClientIdSchema,\n { type: 'standard' },\n ),\n client_secret: schemaFields.yupDefinedAndNonEmptyWhen(\n schemaFields.oauthClientSecretSchema,\n { type: 'standard' },\n ),\n\n // extra params\n facebook_config_id: schemaFields.oauthFacebookConfigIdSchema.optional(),\n microsoft_tenant_id: schemaFields.oauthMicrosoftTenantIdSchema.optional(),\n apple_bundle_ids: schemaFields.oauthAppleBundleIdsSchema.optional(),\n});\n\nconst oauthProviderWriteSchema = oauthProviderReadSchema.omit(['provider_config_id']);\n\nconst enabledOAuthProviderSchema = yupObject({\n id: schemaFields.oauthIdSchema.defined(),\n});\n\nconst pushedConfigErrorSchema = yupObject({\n message: yupString().defined(),\n}).defined();\n\nconst configWarningSchema = yupObject({\n message: yupString().defined(),\n}).defined();\n\nconst onboardingConfigChoiceValues = [\"create-new\", \"link-existing\"] as const;\nconst onboardingSignInMethodValues = [\"credential\", \"magicLink\", \"passkey\", \"google\", \"github\", \"microsoft\"] as const;\nconst onboardingPaymentsCountryValues = [\"US\", \"OTHER\"] as const;\n\nconst projectOnboardingStateSchema = yupObject({\n selected_config_choice: yupString().oneOf(onboardingConfigChoiceValues).defined(),\n selected_apps: yupArray(yupString().oneOf(Object.keys(ALL_APPS)).defined()).defined(),\n selected_sign_in_methods: yupArray(yupString().oneOf(onboardingSignInMethodValues).defined()).defined(),\n selected_email_theme_id: schemaFields.emailThemeSchema.nullable().defined(),\n selected_payments_country: yupString().oneOf(onboardingPaymentsCountryValues).defined(),\n});\n\nexport const emailConfigSchema = yupObject({\n type: schemaFields.emailTypeSchema.defined(),\n host: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailHostSchema, {\n type: 'standard',\n }),\n port: schemaFields.yupDefinedWhen(schemaFields.emailPortSchema, {\n type: 'standard',\n }),\n username: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailUsernameSchema, {\n type: 'standard',\n }),\n password: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailPasswordSchema, {\n type: 'standard',\n }),\n sender_name: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailSenderNameSchema, {\n type: 'standard',\n }),\n sender_email: schemaFields.yupDefinedAndNonEmptyWhen(schemaFields.emailSenderEmailSchema, {\n type: 'standard',\n }),\n});\n\nexport const emailConfigWithoutPasswordSchema = emailConfigSchema.pick(['type', 'host', 'port', 'username', 'sender_name', 'sender_email']);\n\nconst domainSchema = yupObject({\n domain: schemaFields.urlSchema.defined()\n .matches(/^https?:\\/\\//, 'URL must start with http:// or https://')\n .meta({ openapiField: { description: 'URL. Must start with http:// or https://', exampleValue: 'https://example.com' } }),\n handler_path: schemaFields.handlerPathSchema.defined(),\n});\n\nexport const projectsCrudAdminReadSchema = yupObject({\n id: schemaFields.projectIdSchema.defined(),\n display_name: schemaFields.projectDisplayNameSchema.defined(),\n description: schemaFields.projectDescriptionSchema.nonNullable().defined(),\n logo_url: schemaFields.projectLogoUrlSchema.nullable().optional(),\n logo_full_url: schemaFields.projectLogoFullUrlSchema.nullable().optional(),\n logo_dark_mode_url: schemaFields.projectLogoDarkModeUrlSchema.nullable().optional(),\n logo_full_dark_mode_url: schemaFields.projectLogoFullDarkModeUrlSchema.nullable().optional(),\n created_at_millis: schemaFields.projectCreatedAtMillisSchema.defined(),\n is_production_mode: schemaFields.projectIsProductionModeSchema.defined(),\n is_development_environment: schemaFields.yupBoolean().defined(),\n owner_team_id: schemaFields.yupString().nullable().defined(),\n onboarding_status: schemaFields.projectOnboardingStatusSchema.defined(),\n onboarding_state: projectOnboardingStateSchema.nullable().optional(),\n pushed_config_error: pushedConfigErrorSchema.nullable().defined(),\n config_warnings: yupArray(configWarningSchema).defined(),\n /** @deprecated */\n config: yupObject({\n allow_localhost: schemaFields.projectAllowLocalhostSchema.defined(),\n sign_up_enabled: schemaFields.projectSignUpEnabledSchema.defined(),\n credential_enabled: schemaFields.projectCredentialEnabledSchema.defined(),\n magic_link_enabled: schemaFields.projectMagicLinkEnabledSchema.defined(),\n passkey_enabled: schemaFields.projectPasskeyEnabledSchema.defined(),\n // TODO: remove this\n client_team_creation_enabled: schemaFields.projectClientTeamCreationEnabledSchema.defined(),\n client_user_deletion_enabled: schemaFields.projectClientUserDeletionEnabledSchema.defined(),\n allow_user_api_keys: schemaFields.yupBoolean().defined(),\n allow_team_api_keys: schemaFields.yupBoolean().defined(),\n oauth_providers: yupArray(oauthProviderReadSchema.defined()).defined(),\n enabled_oauth_providers: yupArray(enabledOAuthProviderSchema.defined()).defined().meta({ openapiField: { hidden: true } }),\n domains: yupArray(domainSchema.defined()).defined(),\n email_config: emailConfigSchema.defined(),\n email_theme: schemaFields.emailThemeSchema.defined(),\n create_team_on_sign_up: schemaFields.projectCreateTeamOnSignUpSchema.defined(),\n team_creator_default_permissions: yupArray(teamPermissionSchema.defined()).defined(),\n team_member_default_permissions: yupArray(teamPermissionSchema.defined()).defined(),\n user_default_permissions: yupArray(teamPermissionSchema.defined()).defined(),\n oauth_account_merge_strategy: schemaFields.oauthAccountMergeStrategySchema.defined(),\n }).defined().meta({ openapiField: { hidden: true } }),\n}).defined();\n\nexport const projectsCrudClientReadSchema = yupObject({\n id: schemaFields.projectIdSchema.defined(),\n display_name: schemaFields.projectDisplayNameSchema.defined(),\n is_development_environment: schemaFields.yupBoolean().defined(),\n pushed_config_error: pushedConfigErrorSchema.nullable().defined(),\n config_warnings: yupArray(configWarningSchema).defined(),\n config: yupObject({\n sign_up_enabled: schemaFields.projectSignUpEnabledSchema.defined(),\n credential_enabled: schemaFields.projectCredentialEnabledSchema.defined(),\n magic_link_enabled: schemaFields.projectMagicLinkEnabledSchema.defined(),\n passkey_enabled: schemaFields.projectPasskeyEnabledSchema.defined(),\n client_team_creation_enabled: schemaFields.projectClientTeamCreationEnabledSchema.defined(),\n client_user_deletion_enabled: schemaFields.projectClientUserDeletionEnabledSchema.defined(),\n allow_localhost: schemaFields.projectAllowLocalhostSchema.defined(),\n allow_user_api_keys: schemaFields.yupBoolean().defined(),\n allow_team_api_keys: schemaFields.yupBoolean().defined(),\n enabled_oauth_providers: yupArray(enabledOAuthProviderSchema.defined()).defined().meta({ openapiField: { hidden: true } }),\n domains: yupArray(domainSchema.defined()).defined(),\n }).defined().meta({ openapiField: { hidden: true } }),\n}).defined();\n\n\nexport const projectsCrudAdminUpdateSchema = yupObject({\n display_name: schemaFields.projectDisplayNameSchema.optional(),\n description: schemaFields.projectDescriptionSchema.optional(),\n logo_url: schemaFields.projectLogoUrlSchema.nullable().optional(),\n logo_full_url: schemaFields.projectLogoFullUrlSchema.nullable().optional(),\n logo_dark_mode_url: schemaFields.projectLogoDarkModeUrlSchema.nullable().optional(),\n logo_full_dark_mode_url: schemaFields.projectLogoFullDarkModeUrlSchema.nullable().optional(),\n is_production_mode: schemaFields.projectIsProductionModeSchema.optional(),\n onboarding_status: schemaFields.projectOnboardingStatusSchema.optional(),\n onboarding_state: projectOnboardingStateSchema.nullable().optional(),\n /** @deprecated */\n config: yupObject({\n sign_up_enabled: schemaFields.projectSignUpEnabledSchema.optional(),\n credential_enabled: schemaFields.projectCredentialEnabledSchema.optional(),\n magic_link_enabled: schemaFields.projectMagicLinkEnabledSchema.optional(),\n passkey_enabled: schemaFields.projectPasskeyEnabledSchema.optional(),\n client_team_creation_enabled: schemaFields.projectClientTeamCreationEnabledSchema.optional(),\n client_user_deletion_enabled: schemaFields.projectClientUserDeletionEnabledSchema.optional(),\n allow_localhost: schemaFields.projectAllowLocalhostSchema.optional(),\n allow_user_api_keys: schemaFields.yupBoolean().optional(),\n allow_team_api_keys: schemaFields.yupBoolean().optional(),\n email_config: emailConfigSchema.optional().default(undefined),\n email_theme: schemaFields.emailThemeSchema.optional(),\n domains: yupArray(domainSchema.defined()).optional().default(undefined),\n oauth_providers: yupArray(oauthProviderWriteSchema.defined()).optional().default(undefined),\n create_team_on_sign_up: schemaFields.projectCreateTeamOnSignUpSchema.optional(),\n team_creator_default_permissions: yupArray(teamPermissionSchema.defined()).optional(),\n team_member_default_permissions: yupArray(teamPermissionSchema.defined()).optional(),\n user_default_permissions: yupArray(teamPermissionSchema.defined()).optional(),\n oauth_account_merge_strategy: schemaFields.oauthAccountMergeStrategySchema.optional(),\n require_email_verification: schemaFields.yupBoolean().optional(),\n }).optional().default(undefined),\n}).defined();\n\nexport const projectsCrudAdminCreateSchema = projectsCrudAdminUpdateSchema.concat(yupObject({\n display_name: schemaFields.projectDisplayNameSchema.defined(),\n is_development_environment: schemaFields.yupBoolean().optional(),\n owner_team_id: schemaFields.yupString().uuid().defined(),\n}).defined());\n\nexport const projectsCrudAdminDeleteSchema = schemaFields.yupMixed();\n\nexport const clientProjectsCrud = createCrud({\n clientReadSchema: projectsCrudClientReadSchema,\n docs: {\n clientRead: {\n summary: 'Get the current project',\n description: 'Get the current project information including display name, OAuth providers and authentication methods. Useful for displaying the available login options to the user.',\n tags: ['Projects'],\n },\n },\n});\nexport type ClientProjectsCrud = CrudTypeOf<typeof clientProjectsCrud>;\n\nexport const projectsCrud = createCrud({\n adminReadSchema: projectsCrudAdminReadSchema,\n adminUpdateSchema: projectsCrudAdminUpdateSchema,\n adminDeleteSchema: projectsCrudAdminDeleteSchema,\n docs: {\n adminRead: {\n summary: 'Get the current project',\n description: 'Get the current project information and configuration including display name, OAuth providers, email configuration, etc.',\n tags: ['Projects'],\n hidden: true,\n },\n adminUpdate: {\n summary: 'Update the current project',\n description: 'Update the current project information and configuration including display name, OAuth providers, email configuration, etc.',\n tags: ['Projects'],\n hidden: true,\n },\n adminDelete: {\n summary: 'Delete the current project',\n description: 'Delete the current project and all associated data (including users, teams, API keys, project configs, etc.). Be careful, this action is irreversible.',\n tags: ['Projects'],\n hidden: true,\n },\n },\n});\nexport type ProjectsCrud = CrudTypeOf<typeof projectsCrud>;\n\nexport const adminUserProjectsCrud = createCrud({\n clientReadSchema: projectsCrudAdminReadSchema,\n clientCreateSchema: projectsCrudAdminCreateSchema,\n docs: {\n clientList: {\n hidden: true,\n },\n clientCreate: {\n hidden: true,\n },\n },\n});\nexport type AdminUserProjectsCrud = CrudTypeOf<typeof ad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AACjC,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,gCAAgC,8BAA8B,OAAO,UAAU;CAC1F,cAAc,aAAa,yBAAyB,QAAQ;CAC5D,4BAA4B,aAAa,WAAW,CAAC,CAAC,SAAS;CAC/D,eAAe,aAAa,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ;AACzD,CAAC,CAAC,CAAC,QAAQ,CAAC;AAEZ,MAAa,gCAAgC,aAAa,SAAS;AAEnE,MAAa,qBAAqB,WAAW;CAC3C,kBAAkB;CAClB,MAAM,EACJ,YAAY;EACV,SAAS;EACT,aAAa;EACb,MAAM,CAAC,UAAU;CACnB,EACF;AACF,CAAC;AAGD,MAAa,eAAe,WAAW;CACrC,iBAAiB;CACjB,mBAAmB;CACnB,mBAAmB;CACnB,MAAM;EACJ,WAAW;GACT,SAAS;GACT,aAAa;GACb,MAAM,CAAC,UAAU;GACjB,QAAQ;EACV;EACA,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,UAAU;GACjB,QAAQ;EACV;EACA,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,UAAU;GACjB,QAAQ;EACV;CACF;AACF,CAAC;AAGD,MAAa,wBAAwB,WAAW;CAC9C,kBAAkB;CAClB,oBAAoB;CACpB,MAAM;EACJ,YAAY,EACV,QAAQ,KACV;EACA,cAAc,EACZ,QAAQ,KACV;CACF;AACF,CAAC"}
@@ -32,27 +32,27 @@ declare const teamMemberProfilesCrudServerReadSchema: import("yup").ObjectSchema
32
32
  is_anonymous: boolean;
33
33
  is_restricted: boolean;
34
34
  requires_totp_mfa: boolean;
35
- country_code: string | null;
36
- profile_image_url: string | null;
37
- signed_up_at_millis: number;
38
- last_active_at_millis: number;
39
35
  primary_email_verified: boolean;
40
36
  primary_email_auth_enabled: boolean;
37
+ profile_image_url: string | null;
41
38
  selected_team: {
42
39
  client_metadata?: {} | null | undefined;
43
40
  client_read_only_metadata?: {} | null | undefined;
44
41
  server_metadata?: {} | null | undefined;
45
42
  display_name: string;
46
43
  id: string;
47
- created_at_millis: number;
48
44
  profile_image_url: string | null;
45
+ created_at_millis: number;
49
46
  } | null;
47
+ signed_up_at_millis: number;
50
48
  has_password: boolean;
51
49
  otp_auth_enabled: boolean;
52
50
  passkey_auth_enabled: boolean;
51
+ last_active_at_millis: number;
53
52
  restricted_by_admin: boolean;
54
53
  restricted_by_admin_reason: string | null;
55
54
  restricted_by_admin_private_details: string | null;
55
+ country_code: string | null;
56
56
  risk_scores: {
57
57
  sign_up: {
58
58
  bot: number;
@@ -155,27 +155,27 @@ declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFromOptions
155
155
  is_anonymous: boolean;
156
156
  is_restricted: boolean;
157
157
  requires_totp_mfa: boolean;
158
- country_code: string | null;
159
- profile_image_url: string | null;
160
- signed_up_at_millis: number;
161
- last_active_at_millis: number;
162
158
  primary_email_verified: boolean;
163
159
  primary_email_auth_enabled: boolean;
160
+ profile_image_url: string | null;
164
161
  selected_team: {
165
162
  client_metadata?: {} | null | undefined;
166
163
  client_read_only_metadata?: {} | null | undefined;
167
164
  server_metadata?: {} | null | undefined;
168
165
  display_name: string;
169
166
  id: string;
170
- created_at_millis: number;
171
167
  profile_image_url: string | null;
168
+ created_at_millis: number;
172
169
  } | null;
170
+ signed_up_at_millis: number;
173
171
  has_password: boolean;
174
172
  otp_auth_enabled: boolean;
175
173
  passkey_auth_enabled: boolean;
174
+ last_active_at_millis: number;
176
175
  restricted_by_admin: boolean;
177
176
  restricted_by_admin_reason: string | null;
178
177
  restricted_by_admin_private_details: string | null;
178
+ country_code: string | null;
179
179
  risk_scores: {
180
180
  sign_up: {
181
181
  bot: number;
@@ -82,8 +82,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
82
82
  server_metadata?: {} | null | undefined;
83
83
  display_name: string;
84
84
  id: string;
85
- created_at_millis: number;
86
85
  profile_image_url: string | null;
86
+ created_at_millis: number;
87
87
  } | null;
88
88
  selected_team_id: string | null;
89
89
  profile_image_url: string | null;
@@ -169,15 +169,15 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
169
169
  server_metadata: {} | null | undefined;
170
170
  is_anonymous: boolean | undefined;
171
171
  password: string | null | undefined;
172
- country_code: string | null | undefined;
173
- profile_image_url: string | null | undefined;
174
172
  primary_email_verified: boolean | undefined;
175
173
  primary_email_auth_enabled: boolean | undefined;
174
+ profile_image_url: string | null | undefined;
176
175
  otp_auth_enabled: boolean | undefined;
177
176
  passkey_auth_enabled: boolean | undefined;
178
177
  restricted_by_admin: boolean | undefined;
179
178
  restricted_by_admin_reason: string | null | undefined;
180
179
  restricted_by_admin_private_details: string | null | undefined;
180
+ country_code: string | null | undefined;
181
181
  risk_scores: {
182
182
  sign_up: {
183
183
  bot: number;
@@ -235,8 +235,8 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
235
235
  server_metadata?: {} | null | undefined;
236
236
  display_name: string;
237
237
  id: string;
238
- created_at_millis: number;
239
238
  profile_image_url: string | null;
239
+ created_at_millis: number;
240
240
  } | null;
241
241
  selected_team_id: string | null;
242
242
  profile_image_url: string | null;
@@ -375,15 +375,15 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
375
375
  server_metadata: {} | null | undefined;
376
376
  is_anonymous: boolean | undefined;
377
377
  password: string | null | undefined;
378
- country_code: string | null | undefined;
379
- profile_image_url: string | null | undefined;
380
378
  primary_email_verified: boolean | undefined;
381
379
  primary_email_auth_enabled: boolean | undefined;
380
+ profile_image_url: string | null | undefined;
382
381
  otp_auth_enabled: boolean | undefined;
383
382
  passkey_auth_enabled: boolean | undefined;
384
383
  restricted_by_admin: boolean | undefined;
385
384
  restricted_by_admin_reason: string | null | undefined;
386
385
  restricted_by_admin_private_details: string | null | undefined;
386
+ country_code: string | null | undefined;
387
387
  risk_scores: {
388
388
  sign_up: {
389
389
  bot: number;
@@ -469,8 +469,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
469
469
  server_metadata?: {} | null | undefined;
470
470
  display_name: string;
471
471
  id: string;
472
- created_at_millis: number;
473
472
  profile_image_url: string | null;
473
+ created_at_millis: number;
474
474
  } | null;
475
475
  selected_team_id: string | null;
476
476
  profile_image_url: string | null;
@@ -560,8 +560,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
560
560
  server_metadata?: {} | null | undefined;
561
561
  display_name: string;
562
562
  id: string;
563
- created_at_millis: number;
564
563
  profile_image_url: string | null;
564
+ created_at_millis: number;
565
565
  } | null;
566
566
  selected_team_id: string | null;
567
567
  profile_image_url: string | null;
@@ -24,7 +24,7 @@ declare const planUsageRowSchema: yup$1.ObjectSchema<{
24
24
  declare const planUsageResponseSchema: yup$1.ObjectSchema<{
25
25
  owner_team_id: string;
26
26
  owner_team_display_name: string;
27
- plan_id: "free" | "team" | "growth";
27
+ plan_id: "team" | "free" | "growth";
28
28
  plan_display_name: string;
29
29
  period_start_millis: number;
30
30
  period_end_millis: number;
@@ -1,7 +1,7 @@
1
1
  import { HexclaveAssertionError } from "../utils/errors.js";
2
- import { urlString } from "../utils/urls.js";
3
2
  import { filterUndefined } from "../utils/objects.js";
4
3
  import { Result } from "../utils/results.js";
4
+ import { urlString } from "../utils/urls.js";
5
5
  import { KnownErrors } from "../known-errors.js";
6
6
  import { InternalSession } from "../sessions.js";
7
7
  import { HexclaveClientInterface } from "./client-interface.js";
@@ -22,8 +22,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
22
22
  server_metadata?: {} | null | undefined;
23
23
  display_name: string;
24
24
  id: string;
25
- created_at_millis: number;
26
25
  profile_image_url: string | null;
26
+ created_at_millis: number;
27
27
  } | null;
28
28
  selected_team_id: string | null;
29
29
  profile_image_url: string | null;
@@ -112,8 +112,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
112
112
  server_metadata?: {} | null | undefined;
113
113
  display_name: string;
114
114
  id: string;
115
- created_at_millis: number;
116
115
  profile_image_url: string | null;
116
+ created_at_millis: number;
117
117
  } | null;
118
118
  selected_team_id: string | null;
119
119
  profile_image_url: string | null;
@@ -1,4 +1,4 @@
1
- import { r as ProjectsCrud } from "../projects-CFTNXRfG.js";
1
+ import { r as ProjectsCrud } from "../projects-BX5Y50kJ.js";
2
2
 
3
3
  //#region src/helpers/production-mode.d.ts
4
4
  type ProductionModeError = {