@hexclave/shared 1.0.0 → 1.0.1

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 (145) hide show
  1. package/dist/ai/llms/llms.d.ts +17 -0
  2. package/dist/ai/llms/llms.d.ts.map +1 -0
  3. package/dist/ai/llms/llms.js +36 -0
  4. package/dist/ai/llms/llms.js.map +1 -0
  5. package/dist/ai/unified-prompts/reminders.js +2 -2
  6. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  7. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts +7 -1
  8. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -1
  9. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +6 -5
  10. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -1
  11. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +172 -0
  12. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts.map +1 -0
  13. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +280 -0
  14. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -0
  15. package/dist/ai/unified-prompts/skill-site-prompt.d.ts +2 -1
  16. package/dist/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -1
  17. package/dist/ai/unified-prompts/skill-site-prompt.js +36 -32
  18. package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  19. package/dist/config/schema-fuzzer.test.js +1 -0
  20. package/dist/config/schema-fuzzer.test.js.map +1 -1
  21. package/dist/config/schema.d.ts +192 -188
  22. package/dist/config/schema.d.ts.map +1 -1
  23. package/dist/config/schema.js +6 -0
  24. package/dist/config/schema.js.map +1 -1
  25. package/dist/config-authoring.d.ts +5 -1
  26. package/dist/config-authoring.d.ts.map +1 -1
  27. package/dist/config-authoring.js +5 -0
  28. package/dist/config-authoring.js.map +1 -1
  29. package/dist/config-rendering.d.ts +6 -6
  30. package/dist/config-rendering.d.ts.map +1 -1
  31. package/dist/config-rendering.js +25 -17
  32. package/dist/config-rendering.js.map +1 -1
  33. package/dist/esm/ai/llms/llms.d.ts +17 -0
  34. package/dist/esm/ai/llms/llms.d.ts.map +1 -0
  35. package/dist/esm/ai/llms/llms.js +30 -0
  36. package/dist/esm/ai/llms/llms.js.map +1 -0
  37. package/dist/esm/ai/unified-prompts/reminders.js +2 -2
  38. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  39. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts +7 -1
  40. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -1
  41. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +4 -4
  42. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -1
  43. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +173 -0
  44. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts.map +1 -0
  45. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +279 -0
  46. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -0
  47. package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts +2 -1
  48. package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -1
  49. package/dist/esm/ai/unified-prompts/skill-site-prompt.js +36 -33
  50. package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  51. package/dist/esm/config/schema-fuzzer.test.js +1 -0
  52. package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
  53. package/dist/esm/config/schema.d.ts +192 -188
  54. package/dist/esm/config/schema.d.ts.map +1 -1
  55. package/dist/esm/config/schema.js +6 -0
  56. package/dist/esm/config/schema.js.map +1 -1
  57. package/dist/esm/config-authoring.d.ts +5 -1
  58. package/dist/esm/config-authoring.d.ts.map +1 -1
  59. package/dist/esm/config-authoring.js +5 -1
  60. package/dist/esm/config-authoring.js.map +1 -1
  61. package/dist/esm/config-rendering.d.ts +6 -6
  62. package/dist/esm/config-rendering.d.ts.map +1 -1
  63. package/dist/esm/config-rendering.js +25 -17
  64. package/dist/esm/config-rendering.js.map +1 -1
  65. package/dist/esm/interface/admin-interface.js +1 -1
  66. package/dist/esm/interface/admin-metrics.d.ts +8 -8
  67. package/dist/esm/interface/client-interface.js +1 -1
  68. package/dist/esm/interface/conversations.d.ts +11 -11
  69. package/dist/esm/interface/crud/current-user.d.ts +9 -9
  70. package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
  71. package/dist/esm/interface/crud/products.d.ts +15 -15
  72. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  73. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  74. package/dist/esm/interface/crud/projects.d.ts +28 -28
  75. package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
  76. package/dist/esm/interface/crud/transactions.d.ts +21 -21
  77. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  78. package/dist/esm/interface/crud/users.d.ts +14 -14
  79. package/dist/esm/interface/server-interface.js +1 -1
  80. package/dist/esm/interface/webhooks.d.ts +2 -2
  81. package/dist/esm/known-errors.d.ts +5 -5
  82. package/dist/esm/schema-fields.d.ts +7 -6
  83. package/dist/esm/schema-fields.d.ts.map +1 -1
  84. package/dist/esm/schema-fields.js +5 -1
  85. package/dist/esm/schema-fields.js.map +1 -1
  86. package/dist/esm/sessions.d.ts +7 -7
  87. package/dist/esm/stack-config-file.js.map +1 -1
  88. package/dist/esm/utils/cloud-hosts.d.ts +42 -0
  89. package/dist/esm/utils/cloud-hosts.d.ts.map +1 -0
  90. package/dist/esm/utils/cloud-hosts.js +92 -0
  91. package/dist/esm/utils/cloud-hosts.js.map +1 -0
  92. package/dist/esm/utils/errors.d.ts +9 -2
  93. package/dist/esm/utils/errors.d.ts.map +1 -1
  94. package/dist/esm/utils/errors.js +16 -5
  95. package/dist/esm/utils/errors.js.map +1 -1
  96. package/dist/esm/utils/promises.js +1 -1
  97. package/dist/esm/utils/redirect-urls.d.ts.map +1 -1
  98. package/dist/esm/utils/redirect-urls.js +3 -3
  99. package/dist/esm/utils/redirect-urls.js.map +1 -1
  100. package/dist/esm/utils/urls.d.ts.map +1 -1
  101. package/dist/esm/utils/urls.js +2 -2
  102. package/dist/esm/utils/urls.js.map +1 -1
  103. package/dist/{index-D9ysacya.d.ts → index-fQbeILq7.d.ts} +1 -1
  104. package/dist/{index-D9ysacya.d.ts.map → index-fQbeILq7.d.ts.map} +1 -1
  105. package/dist/interface/admin-interface.js +1 -1
  106. package/dist/interface/admin-metrics.d.ts +8 -8
  107. package/dist/interface/client-interface.d.ts +1 -1
  108. package/dist/interface/client-interface.js +1 -1
  109. package/dist/interface/conversations.d.ts +11 -11
  110. package/dist/interface/crud/current-user.d.ts +9 -9
  111. package/dist/interface/crud/email-outbox.d.ts +184 -184
  112. package/dist/interface/crud/products.d.ts +15 -15
  113. package/dist/interface/crud/products.d.ts.map +1 -1
  114. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  115. package/dist/interface/crud/projects.d.ts +28 -28
  116. package/dist/interface/crud/team-member-profiles.d.ts +20 -20
  117. package/dist/interface/crud/transactions.d.ts +21 -21
  118. package/dist/interface/crud/transactions.d.ts.map +1 -1
  119. package/dist/interface/crud/users.d.ts +14 -14
  120. package/dist/interface/server-interface.js +1 -1
  121. package/dist/interface/webhooks.d.ts +2 -2
  122. package/dist/known-errors.d.ts +5 -5
  123. package/dist/schema-fields.d.ts +7 -6
  124. package/dist/schema-fields.d.ts.map +1 -1
  125. package/dist/schema-fields.js +5 -0
  126. package/dist/schema-fields.js.map +1 -1
  127. package/dist/sessions.d.ts +7 -7
  128. package/dist/stack-config-file.js.map +1 -1
  129. package/dist/utils/cloud-hosts.d.ts +42 -0
  130. package/dist/utils/cloud-hosts.d.ts.map +1 -0
  131. package/dist/utils/cloud-hosts.js +97 -0
  132. package/dist/utils/cloud-hosts.js.map +1 -0
  133. package/dist/utils/errors.d.ts +9 -2
  134. package/dist/utils/errors.d.ts.map +1 -1
  135. package/dist/utils/errors.js +16 -4
  136. package/dist/utils/errors.js.map +1 -1
  137. package/dist/utils/passkey.d.ts +1 -1
  138. package/dist/utils/promises.js +1 -1
  139. package/dist/utils/redirect-urls.d.ts.map +1 -1
  140. package/dist/utils/redirect-urls.js +3 -3
  141. package/dist/utils/redirect-urls.js.map +1 -1
  142. package/dist/utils/urls.d.ts.map +1 -1
  143. package/dist/utils/urls.js +2 -2
  144. package/dist/utils/urls.js.map +1 -1
  145. package/package.json +1 -1
@@ -10,6 +10,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
10
10
  client_metadata?: {} | null | undefined;
11
11
  client_read_only_metadata?: {} | null | undefined;
12
12
  server_metadata?: {} | null | undefined;
13
+ server_only: boolean;
14
+ customer_type: "team" | "user" | "custom";
13
15
  stackable: boolean;
14
16
  prices: Record<string, {
15
17
  USD?: string | undefined;
@@ -23,11 +25,9 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
23
25
  free_trial?: ______utils_dates0.DayInterval | undefined;
24
26
  }>;
25
27
  display_name: string;
26
- customer_type: "user" | "team" | "custom";
27
- server_only: boolean;
28
28
  included_items: Record<string, {
29
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
30
29
  quantity?: number | undefined;
30
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -39,11 +39,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
39
39
  is_cancelable: boolean;
40
40
  } | null | undefined;
41
41
  switch_options: {
42
+ product_id: string;
42
43
  product: {
43
44
  free_trial?: ______utils_dates0.DayInterval | undefined;
44
45
  client_metadata?: {} | null | undefined;
45
46
  client_read_only_metadata?: {} | null | undefined;
46
47
  server_metadata?: {} | null | undefined;
48
+ server_only: boolean;
49
+ customer_type: "team" | "user" | "custom";
47
50
  stackable: boolean;
48
51
  prices: Record<string, {
49
52
  USD?: string | undefined;
@@ -57,15 +60,12 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
57
60
  free_trial?: ______utils_dates0.DayInterval | undefined;
58
61
  }>;
59
62
  display_name: string;
60
- customer_type: "user" | "team" | "custom";
61
- server_only: boolean;
62
63
  included_items: Record<string, {
63
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
64
64
  quantity?: number | undefined;
65
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
65
66
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
66
67
  }>;
67
68
  };
68
- product_id: string;
69
69
  }[] | undefined;
70
70
  }, yup$1.AnyObject, {
71
71
  id: undefined;
@@ -102,11 +102,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
102
102
  is_cancelable: boolean;
103
103
  } | null | undefined;
104
104
  switch_options?: {
105
+ product_id: string;
105
106
  product: {
106
107
  free_trial?: ______utils_dates0.DayInterval | undefined;
107
108
  client_metadata?: {} | null | undefined;
108
109
  client_read_only_metadata?: {} | null | undefined;
109
110
  server_metadata?: {} | null | undefined;
111
+ server_only: boolean;
112
+ customer_type: "team" | "user" | "custom";
110
113
  stackable: boolean;
111
114
  prices: Record<string, {
112
115
  USD?: string | undefined;
@@ -120,21 +123,21 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
120
123
  free_trial?: ______utils_dates0.DayInterval | undefined;
121
124
  }>;
122
125
  display_name: string;
123
- customer_type: "user" | "team" | "custom";
124
- server_only: boolean;
125
126
  included_items: Record<string, {
126
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
127
127
  quantity?: number | undefined;
128
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
128
129
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
129
130
  }>;
130
131
  };
131
- product_id: string;
132
132
  }[] | undefined;
133
+ quantity: number;
133
134
  product: {
134
135
  free_trial?: ______utils_dates0.DayInterval | undefined;
135
136
  client_metadata?: {} | null | undefined;
136
137
  client_read_only_metadata?: {} | null | undefined;
137
138
  server_metadata?: {} | null | undefined;
139
+ server_only: boolean;
140
+ customer_type: "team" | "user" | "custom";
138
141
  stackable: boolean;
139
142
  prices: Record<string, {
140
143
  USD?: string | undefined;
@@ -148,15 +151,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
148
151
  free_trial?: ______utils_dates0.DayInterval | undefined;
149
152
  }>;
150
153
  display_name: string;
151
- customer_type: "user" | "team" | "custom";
152
- server_only: boolean;
153
154
  included_items: Record<string, {
154
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
155
155
  quantity?: number | undefined;
156
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
156
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
157
158
  }>;
158
159
  };
159
- quantity: number;
160
160
  id: string | null;
161
161
  }[];
162
162
  is_paginated: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
1
+ {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -79,10 +79,10 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
79
79
  is_public: undefined;
80
80
  user_id: undefined;
81
81
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
82
+ user_id: string;
82
83
  type: "user";
83
84
  description: string;
84
85
  id: string;
85
- user_id: string;
86
86
  created_at_millis: number;
87
87
  expires_at_millis: number | undefined;
88
88
  manually_revoked_at_millis: number | undefined;
@@ -178,10 +178,10 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
178
178
  team_id: undefined;
179
179
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
180
180
  type: "team";
181
+ team_id: string;
181
182
  description: string;
182
183
  id: string;
183
184
  created_at_millis: number;
184
- team_id: string;
185
185
  expires_at_millis: number | undefined;
186
186
  manually_revoked_at_millis: number | undefined;
187
187
  is_public: boolean;
@@ -57,6 +57,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
57
57
  selected_payments_country: "US" | "OTHER";
58
58
  } | null | undefined;
59
59
  config: {
60
+ domains: {
61
+ domain: string;
62
+ handler_path: string;
63
+ }[];
60
64
  oauth_providers: {
61
65
  client_id?: string | undefined;
62
66
  client_secret?: string | undefined;
@@ -67,10 +71,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
67
71
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
68
72
  provider_config_id: string;
69
73
  }[];
70
- domains: {
71
- domain: string;
72
- handler_path: string;
73
- }[];
74
74
  allow_localhost: boolean;
75
75
  sign_up_enabled: boolean;
76
76
  credential_enabled: boolean;
@@ -210,6 +210,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
210
210
  selected_payments_country: "US" | "OTHER";
211
211
  } | null | undefined;
212
212
  config: {
213
+ domains?: {
214
+ domain: string;
215
+ handler_path: string;
216
+ }[] | undefined;
213
217
  oauth_providers?: {
214
218
  client_id?: string | undefined;
215
219
  client_secret?: string | undefined;
@@ -219,10 +223,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
219
223
  type: "shared" | "standard";
220
224
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
221
225
  }[] | undefined;
222
- domains?: {
223
- domain: string;
224
- handler_path: string;
225
- }[] | undefined;
226
226
  allow_localhost?: boolean | undefined;
227
227
  sign_up_enabled?: boolean | undefined;
228
228
  credential_enabled?: boolean | undefined;
@@ -290,6 +290,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
290
290
  selected_payments_country: "US" | "OTHER";
291
291
  } | null | undefined;
292
292
  config: {
293
+ domains?: {
294
+ domain: string;
295
+ handler_path: string;
296
+ }[] | undefined;
293
297
  oauth_providers?: {
294
298
  client_id?: string | undefined;
295
299
  client_secret?: string | undefined;
@@ -299,10 +303,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
299
303
  type: "shared" | "standard";
300
304
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
301
305
  }[] | undefined;
302
- domains?: {
303
- domain: string;
304
- handler_path: string;
305
- }[] | undefined;
306
306
  allow_localhost?: boolean | undefined;
307
307
  sign_up_enabled?: boolean | undefined;
308
308
  credential_enabled?: boolean | undefined;
@@ -430,6 +430,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
430
430
  selected_payments_country: "US" | "OTHER";
431
431
  } | null | undefined;
432
432
  config: {
433
+ domains: {
434
+ domain: string;
435
+ handler_path: string;
436
+ }[];
433
437
  oauth_providers: {
434
438
  client_id?: string | undefined;
435
439
  client_secret?: string | undefined;
@@ -440,10 +444,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
440
444
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
441
445
  provider_config_id: string;
442
446
  }[];
443
- domains: {
444
- domain: string;
445
- handler_path: string;
446
- }[];
447
447
  allow_localhost: boolean;
448
448
  sign_up_enabled: boolean;
449
449
  credential_enabled: boolean;
@@ -545,6 +545,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
545
545
  selected_payments_country: "US" | "OTHER";
546
546
  } | null | undefined;
547
547
  config: {
548
+ domains?: {
549
+ domain: string;
550
+ handler_path: string;
551
+ }[] | undefined;
548
552
  oauth_providers?: {
549
553
  client_id?: string | undefined;
550
554
  client_secret?: string | undefined;
@@ -554,10 +558,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
554
558
  type: "shared" | "standard";
555
559
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
556
560
  }[] | undefined;
557
- domains?: {
558
- domain: string;
559
- handler_path: string;
560
- }[] | undefined;
561
561
  allow_localhost?: boolean | undefined;
562
562
  sign_up_enabled?: boolean | undefined;
563
563
  credential_enabled?: boolean | undefined;
@@ -653,6 +653,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
653
653
  selected_payments_country: "US" | "OTHER";
654
654
  } | null | undefined;
655
655
  config: {
656
+ domains: {
657
+ domain: string;
658
+ handler_path: string;
659
+ }[];
656
660
  oauth_providers: {
657
661
  client_id?: string | undefined;
658
662
  client_secret?: string | undefined;
@@ -663,10 +667,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
663
667
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
664
668
  provider_config_id: string;
665
669
  }[];
666
- domains: {
667
- domain: string;
668
- handler_path: string;
669
- }[];
670
670
  allow_localhost: boolean;
671
671
  sign_up_enabled: boolean;
672
672
  credential_enabled: boolean;
@@ -768,6 +768,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
768
768
  selected_payments_country: "US" | "OTHER";
769
769
  } | null | undefined;
770
770
  config: {
771
+ domains?: {
772
+ domain: string;
773
+ handler_path: string;
774
+ }[] | undefined;
771
775
  oauth_providers?: {
772
776
  client_id?: string | undefined;
773
777
  client_secret?: string | undefined;
@@ -777,10 +781,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
777
781
  type: "shared" | "standard";
778
782
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
779
783
  }[] | undefined;
780
- domains?: {
781
- domain: string;
782
- handler_path: string;
783
- }[] | undefined;
784
784
  allow_localhost?: boolean | undefined;
785
785
  sign_up_enabled?: boolean | undefined;
786
786
  credential_enabled?: boolean | undefined;
@@ -21,40 +21,40 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
21
21
  profile_image_url: string | null;
22
22
  } & {
23
23
  user: {
24
- selected_team_id: string | null;
25
- is_anonymous: boolean;
26
- is_restricted: boolean;
27
24
  restricted_reason: {
28
25
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
29
26
  } | null;
30
- requires_totp_mfa: boolean;
27
+ primary_email: string | null;
31
28
  display_name: string | null;
32
29
  client_metadata: {} | null;
33
30
  client_read_only_metadata: {} | null;
34
31
  server_metadata: {} | null;
35
32
  id: string;
36
- primary_email: string | null;
33
+ selected_team_id: string | null;
34
+ is_anonymous: boolean;
35
+ is_restricted: boolean;
36
+ requires_totp_mfa: boolean;
37
+ country_code: string | null;
38
+ profile_image_url: string | null;
39
+ signed_up_at_millis: number;
40
+ last_active_at_millis: number;
37
41
  primary_email_verified: boolean;
38
42
  primary_email_auth_enabled: boolean;
39
- profile_image_url: string | null;
40
43
  selected_team: {
41
44
  client_metadata?: {} | null | undefined;
42
45
  client_read_only_metadata?: {} | null | undefined;
43
46
  server_metadata?: {} | null | undefined;
44
47
  display_name: string;
45
48
  id: string;
46
- profile_image_url: string | null;
47
49
  created_at_millis: number;
50
+ profile_image_url: string | null;
48
51
  } | null;
49
- signed_up_at_millis: number;
50
52
  has_password: boolean;
51
53
  otp_auth_enabled: boolean;
52
54
  passkey_auth_enabled: boolean;
53
- last_active_at_millis: number;
54
55
  restricted_by_admin: boolean;
55
56
  restricted_by_admin_reason: string | null;
56
57
  restricted_by_admin_private_details: string | null;
57
- country_code: string | null;
58
58
  risk_scores: {
59
59
  sign_up: {
60
60
  bot: number;
@@ -144,40 +144,40 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
144
144
  profile_image_url: string | null;
145
145
  } & {
146
146
  user: {
147
- selected_team_id: string | null;
148
- is_anonymous: boolean;
149
- is_restricted: boolean;
150
147
  restricted_reason: {
151
148
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
152
149
  } | null;
153
- requires_totp_mfa: boolean;
150
+ primary_email: string | null;
154
151
  display_name: string | null;
155
152
  client_metadata: {} | null;
156
153
  client_read_only_metadata: {} | null;
157
154
  server_metadata: {} | null;
158
155
  id: string;
159
- primary_email: string | null;
156
+ selected_team_id: string | null;
157
+ is_anonymous: boolean;
158
+ is_restricted: boolean;
159
+ requires_totp_mfa: boolean;
160
+ country_code: string | null;
161
+ profile_image_url: string | null;
162
+ signed_up_at_millis: number;
163
+ last_active_at_millis: number;
160
164
  primary_email_verified: boolean;
161
165
  primary_email_auth_enabled: boolean;
162
- profile_image_url: string | null;
163
166
  selected_team: {
164
167
  client_metadata?: {} | null | undefined;
165
168
  client_read_only_metadata?: {} | null | undefined;
166
169
  server_metadata?: {} | null | undefined;
167
170
  display_name: string;
168
171
  id: string;
169
- profile_image_url: string | null;
170
172
  created_at_millis: number;
173
+ profile_image_url: string | null;
171
174
  } | null;
172
- signed_up_at_millis: number;
173
175
  has_password: boolean;
174
176
  otp_auth_enabled: boolean;
175
177
  passkey_auth_enabled: boolean;
176
- last_active_at_millis: number;
177
178
  restricted_by_admin: boolean;
178
179
  restricted_by_admin_reason: string | null;
179
180
  restricted_by_admin_private_details: string | null;
180
- country_code: string | null;
181
181
  risk_scores: {
182
182
  sign_up: {
183
183
  bot: number;
@@ -5,8 +5,8 @@ import * as ______utils_dates0 from "../../utils/dates";
5
5
  //#region src/interface/crud/transactions.d.ts
6
6
  declare const transactionEntrySchema: yup$1.MixedSchema<{
7
7
  type: "money_transfer";
8
- customer_type: "user" | "team" | "custom";
9
8
  customer_id: string;
9
+ customer_type: "team" | "user" | "custom";
10
10
  charged_amount: {
11
11
  USD?: string | undefined;
12
12
  EUR?: string | undefined;
@@ -23,21 +23,27 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
23
23
  adjusted_entry_index: number | null;
24
24
  } | {
25
25
  type: "item_quantity_change";
26
- quantity: number;
27
- customer_type: "user" | "team" | "custom";
28
26
  item_id: string;
29
27
  customer_id: string;
28
+ quantity: number;
29
+ customer_type: "team" | "user" | "custom";
30
30
  adjusted_transaction_id: string | null;
31
31
  adjusted_entry_index: number | null;
32
32
  } | {
33
33
  one_time_purchase_id?: string | undefined;
34
34
  subscription_id?: string | undefined;
35
35
  type: "product_grant";
36
+ customer_id: string;
37
+ product_id: string | null;
38
+ quantity: number;
39
+ customer_type: "team" | "user" | "custom";
36
40
  product: {
37
41
  free_trial?: ______utils_dates0.DayInterval | undefined;
38
42
  client_metadata?: {} | null | undefined;
39
43
  client_read_only_metadata?: {} | null | undefined;
40
44
  server_metadata?: {} | null | undefined;
45
+ server_only: boolean;
46
+ customer_type: "team" | "user" | "custom";
41
47
  stackable: boolean;
42
48
  prices: Record<string, {
43
49
  USD?: string | undefined;
@@ -51,18 +57,12 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
51
57
  free_trial?: ______utils_dates0.DayInterval | undefined;
52
58
  }>;
53
59
  display_name: string;
54
- customer_type: "user" | "team" | "custom";
55
- server_only: boolean;
56
60
  included_items: Record<string, {
57
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
58
61
  quantity?: number | undefined;
62
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
59
63
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
60
64
  }>;
61
65
  };
62
- quantity: number;
63
- customer_type: "user" | "team" | "custom";
64
- customer_id: string;
65
- product_id: string | null;
66
66
  adjusted_transaction_id: string | null;
67
67
  adjusted_entry_index: number | null;
68
68
  price_id: string | null;
@@ -85,12 +85,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
85
85
  created_at_millis: number;
86
86
  effective_at_millis: number;
87
87
  type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
88
- customer_type: "user" | "team" | "custom";
88
+ customer_type: "team" | "user" | "custom";
89
89
  customer_id: string;
90
90
  entries: ({
91
91
  type: "money_transfer";
92
- customer_type: "user" | "team" | "custom";
93
92
  customer_id: string;
93
+ customer_type: "team" | "user" | "custom";
94
94
  charged_amount: {
95
95
  USD?: string | undefined;
96
96
  EUR?: string | undefined;
@@ -107,21 +107,27 @@ declare const transactionSchema: yup$1.ObjectSchema<{
107
107
  adjusted_entry_index: number | null;
108
108
  } | {
109
109
  type: "item_quantity_change";
110
- quantity: number;
111
- customer_type: "user" | "team" | "custom";
112
110
  item_id: string;
113
111
  customer_id: string;
112
+ quantity: number;
113
+ customer_type: "team" | "user" | "custom";
114
114
  adjusted_transaction_id: string | null;
115
115
  adjusted_entry_index: number | null;
116
116
  } | {
117
117
  one_time_purchase_id?: string | undefined;
118
118
  subscription_id?: string | undefined;
119
119
  type: "product_grant";
120
+ customer_id: string;
121
+ product_id: string | null;
122
+ quantity: number;
123
+ customer_type: "team" | "user" | "custom";
120
124
  product: {
121
125
  free_trial?: ______utils_dates0.DayInterval | undefined;
122
126
  client_metadata?: {} | null | undefined;
123
127
  client_read_only_metadata?: {} | null | undefined;
124
128
  server_metadata?: {} | null | undefined;
129
+ server_only: boolean;
130
+ customer_type: "team" | "user" | "custom";
125
131
  stackable: boolean;
126
132
  prices: Record<string, {
127
133
  USD?: string | undefined;
@@ -135,18 +141,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
135
141
  free_trial?: ______utils_dates0.DayInterval | undefined;
136
142
  }>;
137
143
  display_name: string;
138
- customer_type: "user" | "team" | "custom";
139
- server_only: boolean;
140
144
  included_items: Record<string, {
141
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
142
145
  quantity?: number | undefined;
146
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
143
147
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
144
148
  }>;
145
149
  };
146
- quantity: number;
147
- customer_type: "user" | "team" | "custom";
148
- customer_id: string;
149
- product_id: string | null;
150
150
  adjusted_transaction_id: string | null;
151
151
  adjusted_entry_index: number | null;
152
152
  price_id: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
1
+ {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
@@ -83,8 +83,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
83
83
  server_metadata?: {} | null | undefined;
84
84
  display_name: string;
85
85
  id: string;
86
- profile_image_url: string | null;
87
86
  created_at_millis: number;
87
+ profile_image_url: string | null;
88
88
  } | null;
89
89
  selected_team_id: string | null;
90
90
  profile_image_url: string | null;
@@ -163,28 +163,28 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
163
163
  requires_totp_mfa: undefined;
164
164
  }, "">;
165
165
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
166
- is_anonymous: boolean | undefined;
166
+ primary_email: string | null | undefined;
167
167
  display_name: string | null | undefined;
168
168
  client_metadata: {} | null | undefined;
169
169
  client_read_only_metadata: {} | null | undefined;
170
170
  server_metadata: {} | null | undefined;
171
- primary_email: string | null | undefined;
171
+ is_anonymous: boolean | undefined;
172
+ password: string | null | undefined;
173
+ country_code: string | null | undefined;
174
+ profile_image_url: string | null | undefined;
172
175
  primary_email_verified: boolean | undefined;
173
176
  primary_email_auth_enabled: boolean | undefined;
174
- profile_image_url: string | null | undefined;
175
177
  otp_auth_enabled: boolean | undefined;
176
178
  passkey_auth_enabled: boolean | undefined;
177
179
  restricted_by_admin: boolean | undefined;
178
180
  restricted_by_admin_reason: string | null | undefined;
179
181
  restricted_by_admin_private_details: string | null | undefined;
180
- country_code: string | null | undefined;
181
182
  risk_scores: {
182
183
  sign_up: {
183
184
  bot: number;
184
185
  free_trial_abuse: number;
185
186
  };
186
187
  } | undefined;
187
- password: string | null | undefined;
188
188
  password_hash: string | undefined;
189
189
  totp_secret_base64: string | null | undefined;
190
190
  } & {
@@ -236,8 +236,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
236
236
  server_metadata?: {} | null | undefined;
237
237
  display_name: string;
238
238
  id: string;
239
- profile_image_url: string | null;
240
239
  created_at_millis: number;
240
+ profile_image_url: string | null;
241
241
  } | null;
242
242
  selected_team_id: string | null;
243
243
  profile_image_url: string | null;
@@ -369,28 +369,28 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
369
369
  };
370
370
  }, "">;
371
371
  serverCreateSchema: yup$1.ObjectSchema<{
372
- is_anonymous: boolean | undefined;
372
+ primary_email: string | null | undefined;
373
373
  display_name: string | null | undefined;
374
374
  client_metadata: {} | null | undefined;
375
375
  client_read_only_metadata: {} | null | undefined;
376
376
  server_metadata: {} | null | undefined;
377
- primary_email: string | null | undefined;
377
+ is_anonymous: boolean | undefined;
378
+ password: string | null | undefined;
379
+ country_code: string | null | undefined;
380
+ profile_image_url: string | null | undefined;
378
381
  primary_email_verified: boolean | undefined;
379
382
  primary_email_auth_enabled: boolean | undefined;
380
- profile_image_url: string | null | undefined;
381
383
  otp_auth_enabled: boolean | undefined;
382
384
  passkey_auth_enabled: boolean | undefined;
383
385
  restricted_by_admin: boolean | undefined;
384
386
  restricted_by_admin_reason: string | null | undefined;
385
387
  restricted_by_admin_private_details: string | null | undefined;
386
- country_code: string | null | undefined;
387
388
  risk_scores: {
388
389
  sign_up: {
389
390
  bot: number;
390
391
  free_trial_abuse: number;
391
392
  };
392
393
  } | undefined;
393
- password: string | null | undefined;
394
394
  password_hash: string | undefined;
395
395
  totp_secret_base64: string | null | undefined;
396
396
  } & {
@@ -470,8 +470,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
470
470
  server_metadata?: {} | null | undefined;
471
471
  display_name: string;
472
472
  id: string;
473
- profile_image_url: string | null;
474
473
  created_at_millis: number;
474
+ profile_image_url: string | null;
475
475
  } | null;
476
476
  selected_team_id: string | null;
477
477
  profile_image_url: string | null;
@@ -561,8 +561,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
561
561
  server_metadata?: {} | null | undefined;
562
562
  display_name: string;
563
563
  id: string;
564
- profile_image_url: string | null;
565
564
  created_at_millis: number;
565
+ profile_image_url: string | null;
566
566
  } | null;
567
567
  selected_team_id: string | null;
568
568
  profile_image_url: string | null;
@@ -1,8 +1,8 @@
1
1
  import { HexclaveAssertionError } from "../utils/errors.js";
2
2
  import { filterUndefined } from "../utils/objects.js";
3
3
  import { Result } from "../utils/results.js";
4
- import { KnownErrors } from "../known-errors.js";
5
4
  import { urlString } from "../utils/urls.js";
5
+ import { KnownErrors } from "../known-errors.js";
6
6
  import { InternalSession } from "../sessions.js";
7
7
  import { HexclaveClientInterface } from "./client-interface.js";
8
8
  import { decryptValue, encryptValue, hashKey } from "../helpers/vault/client-side.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
- profile_image_url: string | null;
26
25
  created_at_millis: number;
26
+ profile_image_url: string | null;
27
27
  } | null;
28
28
  selected_team_id: string | null;
29
29
  profile_image_url: string | null;
@@ -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
- profile_image_url: string | null;
116
115
  created_at_millis: number;
116
+ profile_image_url: string | null;
117
117
  } | null;
118
118
  selected_team_id: string | null;
119
119
  profile_image_url: string | null;