@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?: 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" | DayInterval | undefined;
30
29
  quantity?: number | undefined;
30
+ repeat?: "never" | 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?: 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?: 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" | DayInterval | undefined;
64
64
  quantity?: number | undefined;
65
+ repeat?: "never" | 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?: 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?: 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" | DayInterval | undefined;
127
127
  quantity?: number | undefined;
128
+ repeat?: "never" | 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?: 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?: 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" | DayInterval | undefined;
155
155
  quantity?: number | undefined;
156
+ repeat?: "never" | 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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;qBAMnC,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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -78,10 +78,10 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
+ user_id: string;
81
82
  type: "user";
82
83
  description: string;
83
84
  id: string;
84
- user_id: string;
85
85
  created_at_millis: number;
86
86
  expires_at_millis: number | undefined;
87
87
  manually_revoked_at_millis: number | undefined;
@@ -177,10 +177,10 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
177
177
  team_id: undefined;
178
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
179
179
  type: "team";
180
+ team_id: string;
180
181
  description: string;
181
182
  id: string;
182
183
  created_at_millis: number;
183
- team_id: string;
184
184
  expires_at_millis: number | undefined;
185
185
  manually_revoked_at_millis: number | undefined;
186
186
  is_public: boolean;
@@ -56,6 +56,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
56
56
  selected_payments_country: "US" | "OTHER";
57
57
  } | null | undefined;
58
58
  config: {
59
+ domains: {
60
+ domain: string;
61
+ handler_path: string;
62
+ }[];
59
63
  oauth_providers: {
60
64
  client_id?: string | undefined;
61
65
  client_secret?: string | undefined;
@@ -66,10 +70,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
66
70
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
67
71
  provider_config_id: string;
68
72
  }[];
69
- domains: {
70
- domain: string;
71
- handler_path: string;
72
- }[];
73
73
  allow_localhost: boolean;
74
74
  sign_up_enabled: boolean;
75
75
  credential_enabled: boolean;
@@ -209,6 +209,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
209
209
  selected_payments_country: "US" | "OTHER";
210
210
  } | null | undefined;
211
211
  config: {
212
+ domains?: {
213
+ domain: string;
214
+ handler_path: string;
215
+ }[] | undefined;
212
216
  oauth_providers?: {
213
217
  client_id?: string | undefined;
214
218
  client_secret?: string | undefined;
@@ -218,10 +222,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
218
222
  type: "shared" | "standard";
219
223
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
220
224
  }[] | undefined;
221
- domains?: {
222
- domain: string;
223
- handler_path: string;
224
- }[] | undefined;
225
225
  allow_localhost?: boolean | undefined;
226
226
  sign_up_enabled?: boolean | undefined;
227
227
  credential_enabled?: boolean | undefined;
@@ -289,6 +289,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
289
289
  selected_payments_country: "US" | "OTHER";
290
290
  } | null | undefined;
291
291
  config: {
292
+ domains?: {
293
+ domain: string;
294
+ handler_path: string;
295
+ }[] | undefined;
292
296
  oauth_providers?: {
293
297
  client_id?: string | undefined;
294
298
  client_secret?: string | undefined;
@@ -298,10 +302,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
298
302
  type: "shared" | "standard";
299
303
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
300
304
  }[] | undefined;
301
- domains?: {
302
- domain: string;
303
- handler_path: string;
304
- }[] | undefined;
305
305
  allow_localhost?: boolean | undefined;
306
306
  sign_up_enabled?: boolean | undefined;
307
307
  credential_enabled?: boolean | undefined;
@@ -429,6 +429,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
429
429
  selected_payments_country: "US" | "OTHER";
430
430
  } | null | undefined;
431
431
  config: {
432
+ domains: {
433
+ domain: string;
434
+ handler_path: string;
435
+ }[];
432
436
  oauth_providers: {
433
437
  client_id?: string | undefined;
434
438
  client_secret?: string | undefined;
@@ -439,10 +443,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
439
443
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
440
444
  provider_config_id: string;
441
445
  }[];
442
- domains: {
443
- domain: string;
444
- handler_path: string;
445
- }[];
446
446
  allow_localhost: boolean;
447
447
  sign_up_enabled: boolean;
448
448
  credential_enabled: boolean;
@@ -544,6 +544,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
544
544
  selected_payments_country: "US" | "OTHER";
545
545
  } | null | undefined;
546
546
  config: {
547
+ domains?: {
548
+ domain: string;
549
+ handler_path: string;
550
+ }[] | undefined;
547
551
  oauth_providers?: {
548
552
  client_id?: string | undefined;
549
553
  client_secret?: string | undefined;
@@ -553,10 +557,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
553
557
  type: "shared" | "standard";
554
558
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
555
559
  }[] | undefined;
556
- domains?: {
557
- domain: string;
558
- handler_path: string;
559
- }[] | undefined;
560
560
  allow_localhost?: boolean | undefined;
561
561
  sign_up_enabled?: boolean | undefined;
562
562
  credential_enabled?: boolean | undefined;
@@ -652,6 +652,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
652
652
  selected_payments_country: "US" | "OTHER";
653
653
  } | null | undefined;
654
654
  config: {
655
+ domains: {
656
+ domain: string;
657
+ handler_path: string;
658
+ }[];
655
659
  oauth_providers: {
656
660
  client_id?: string | undefined;
657
661
  client_secret?: string | undefined;
@@ -662,10 +666,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
662
666
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
663
667
  provider_config_id: string;
664
668
  }[];
665
- domains: {
666
- domain: string;
667
- handler_path: string;
668
- }[];
669
669
  allow_localhost: boolean;
670
670
  sign_up_enabled: boolean;
671
671
  credential_enabled: boolean;
@@ -767,6 +767,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
767
767
  selected_payments_country: "US" | "OTHER";
768
768
  } | null | undefined;
769
769
  config: {
770
+ domains?: {
771
+ domain: string;
772
+ handler_path: string;
773
+ }[] | undefined;
770
774
  oauth_providers?: {
771
775
  client_id?: string | undefined;
772
776
  client_secret?: string | undefined;
@@ -776,10 +780,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
776
780
  type: "shared" | "standard";
777
781
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
778
782
  }[] | undefined;
779
- domains?: {
780
- domain: string;
781
- handler_path: string;
782
- }[] | undefined;
783
783
  allow_localhost?: boolean | undefined;
784
784
  sign_up_enabled?: boolean | undefined;
785
785
  credential_enabled?: boolean | undefined;
@@ -20,40 +20,40 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
20
20
  profile_image_url: string | null;
21
21
  } & {
22
22
  user: {
23
- selected_team_id: string | null;
24
- is_anonymous: boolean;
25
- is_restricted: boolean;
26
23
  restricted_reason: {
27
24
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
28
25
  } | null;
29
- requires_totp_mfa: boolean;
26
+ primary_email: string | null;
30
27
  display_name: string | null;
31
28
  client_metadata: {} | null;
32
29
  client_read_only_metadata: {} | null;
33
30
  server_metadata: {} | null;
34
31
  id: string;
35
- primary_email: string | null;
32
+ selected_team_id: string | null;
33
+ is_anonymous: boolean;
34
+ is_restricted: boolean;
35
+ requires_totp_mfa: boolean;
36
+ country_code: string | null;
37
+ profile_image_url: string | null;
38
+ signed_up_at_millis: number;
39
+ last_active_at_millis: number;
36
40
  primary_email_verified: boolean;
37
41
  primary_email_auth_enabled: boolean;
38
- profile_image_url: string | null;
39
42
  selected_team: {
40
43
  client_metadata?: {} | null | undefined;
41
44
  client_read_only_metadata?: {} | null | undefined;
42
45
  server_metadata?: {} | null | undefined;
43
46
  display_name: string;
44
47
  id: string;
45
- profile_image_url: string | null;
46
48
  created_at_millis: number;
49
+ profile_image_url: string | null;
47
50
  } | null;
48
- signed_up_at_millis: number;
49
51
  has_password: boolean;
50
52
  otp_auth_enabled: boolean;
51
53
  passkey_auth_enabled: boolean;
52
- last_active_at_millis: number;
53
54
  restricted_by_admin: boolean;
54
55
  restricted_by_admin_reason: string | null;
55
56
  restricted_by_admin_private_details: string | null;
56
- country_code: string | null;
57
57
  risk_scores: {
58
58
  sign_up: {
59
59
  bot: number;
@@ -143,40 +143,40 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
143
143
  profile_image_url: string | null;
144
144
  } & {
145
145
  user: {
146
- selected_team_id: string | null;
147
- is_anonymous: boolean;
148
- is_restricted: boolean;
149
146
  restricted_reason: {
150
147
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
151
148
  } | null;
152
- requires_totp_mfa: boolean;
149
+ primary_email: string | null;
153
150
  display_name: string | null;
154
151
  client_metadata: {} | null;
155
152
  client_read_only_metadata: {} | null;
156
153
  server_metadata: {} | null;
157
154
  id: string;
158
- primary_email: string | null;
155
+ selected_team_id: string | null;
156
+ is_anonymous: boolean;
157
+ is_restricted: boolean;
158
+ requires_totp_mfa: boolean;
159
+ country_code: string | null;
160
+ profile_image_url: string | null;
161
+ signed_up_at_millis: number;
162
+ last_active_at_millis: number;
159
163
  primary_email_verified: boolean;
160
164
  primary_email_auth_enabled: boolean;
161
- profile_image_url: string | null;
162
165
  selected_team: {
163
166
  client_metadata?: {} | null | undefined;
164
167
  client_read_only_metadata?: {} | null | undefined;
165
168
  server_metadata?: {} | null | undefined;
166
169
  display_name: string;
167
170
  id: string;
168
- profile_image_url: string | null;
169
171
  created_at_millis: number;
172
+ profile_image_url: string | null;
170
173
  } | null;
171
- signed_up_at_millis: number;
172
174
  has_password: boolean;
173
175
  otp_auth_enabled: boolean;
174
176
  passkey_auth_enabled: boolean;
175
- last_active_at_millis: number;
176
177
  restricted_by_admin: boolean;
177
178
  restricted_by_admin_reason: string | null;
178
179
  restricted_by_admin_private_details: string | null;
179
- country_code: string | null;
180
180
  risk_scores: {
181
181
  sign_up: {
182
182
  bot: number;
@@ -5,8 +5,8 @@ import { InferType } from "yup";
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?: 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?: 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" | DayInterval | undefined;
58
61
  quantity?: number | undefined;
62
+ repeat?: "never" | 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?: 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?: 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" | DayInterval | undefined;
142
145
  quantity?: number | undefined;
146
+ repeat?: "never" | 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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
@@ -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
- profile_image_url: string | null;
86
85
  created_at_millis: number;
86
+ profile_image_url: string | null;
87
87
  } | null;
88
88
  selected_team_id: string | null;
89
89
  profile_image_url: string | null;
@@ -162,28 +162,28 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
162
162
  requires_totp_mfa: undefined;
163
163
  }, "">;
164
164
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
165
- is_anonymous: boolean | undefined;
165
+ primary_email: string | null | undefined;
166
166
  display_name: string | null | undefined;
167
167
  client_metadata: {} | null | undefined;
168
168
  client_read_only_metadata: {} | null | undefined;
169
169
  server_metadata: {} | null | undefined;
170
- primary_email: string | null | undefined;
170
+ is_anonymous: boolean | undefined;
171
+ password: string | null | undefined;
172
+ country_code: string | null | undefined;
173
+ profile_image_url: string | null | undefined;
171
174
  primary_email_verified: boolean | undefined;
172
175
  primary_email_auth_enabled: boolean | undefined;
173
- profile_image_url: string | null | undefined;
174
176
  otp_auth_enabled: boolean | undefined;
175
177
  passkey_auth_enabled: boolean | undefined;
176
178
  restricted_by_admin: boolean | undefined;
177
179
  restricted_by_admin_reason: string | null | undefined;
178
180
  restricted_by_admin_private_details: string | null | undefined;
179
- country_code: string | null | undefined;
180
181
  risk_scores: {
181
182
  sign_up: {
182
183
  bot: number;
183
184
  free_trial_abuse: number;
184
185
  };
185
186
  } | undefined;
186
- password: string | null | undefined;
187
187
  password_hash: string | undefined;
188
188
  totp_secret_base64: string | null | undefined;
189
189
  } & {
@@ -235,8 +235,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
235
235
  server_metadata?: {} | null | undefined;
236
236
  display_name: string;
237
237
  id: string;
238
- profile_image_url: string | null;
239
238
  created_at_millis: number;
239
+ profile_image_url: string | null;
240
240
  } | null;
241
241
  selected_team_id: string | null;
242
242
  profile_image_url: string | null;
@@ -368,28 +368,28 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
- is_anonymous: boolean | undefined;
371
+ primary_email: string | null | undefined;
372
372
  display_name: string | null | undefined;
373
373
  client_metadata: {} | null | undefined;
374
374
  client_read_only_metadata: {} | null | undefined;
375
375
  server_metadata: {} | null | undefined;
376
- primary_email: string | null | undefined;
376
+ is_anonymous: boolean | undefined;
377
+ password: string | null | undefined;
378
+ country_code: string | null | undefined;
379
+ profile_image_url: string | null | undefined;
377
380
  primary_email_verified: boolean | undefined;
378
381
  primary_email_auth_enabled: boolean | undefined;
379
- profile_image_url: string | null | undefined;
380
382
  otp_auth_enabled: boolean | undefined;
381
383
  passkey_auth_enabled: boolean | undefined;
382
384
  restricted_by_admin: boolean | undefined;
383
385
  restricted_by_admin_reason: string | null | undefined;
384
386
  restricted_by_admin_private_details: string | null | undefined;
385
- country_code: string | null | undefined;
386
387
  risk_scores: {
387
388
  sign_up: {
388
389
  bot: number;
389
390
  free_trial_abuse: number;
390
391
  };
391
392
  } | undefined;
392
- password: string | null | undefined;
393
393
  password_hash: string | undefined;
394
394
  totp_secret_base64: string | null | undefined;
395
395
  } & {
@@ -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
- profile_image_url: string | null;
473
472
  created_at_millis: number;
473
+ profile_image_url: string | null;
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
- profile_image_url: string | null;
564
563
  created_at_millis: number;
564
+ profile_image_url: string | null;
565
565
  } | null;
566
566
  selected_team_id: string | null;
567
567
  profile_image_url: string | null;
@@ -3,8 +3,8 @@ const require_chunk = require('../chunk-BE-pF4vm.js');
3
3
  let ___utils_errors_js = require("../utils/errors.js");
4
4
  let ___utils_objects_js = require("../utils/objects.js");
5
5
  let ___utils_results_js = require("../utils/results.js");
6
- let ___known_errors_js = require("../known-errors.js");
7
6
  let ___utils_urls_js = require("../utils/urls.js");
7
+ let ___known_errors_js = require("../known-errors.js");
8
8
  let ___sessions_js = require("../sessions.js");
9
9
  let __client_interface_js = require("./client-interface.js");
10
10
  let ___helpers_vault_client_side_js = require("../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;