@hexclave/shared 1.0.56 → 1.0.58

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 (93) hide show
  1. package/dist/{admin-interface-sca4FCAt.d.ts → admin-interface-Do9G1zZ8.d.ts} +11 -11
  2. package/dist/{admin-interface-sca4FCAt.d.ts.map → admin-interface-Do9G1zZ8.d.ts.map} +1 -1
  3. package/dist/{admin-metrics-BTgqWZXI.d.ts → admin-metrics-bsOkw4YQ.d.ts} +16 -16
  4. package/dist/{admin-metrics-BTgqWZXI.d.ts.map → admin-metrics-bsOkw4YQ.d.ts.map} +1 -1
  5. package/dist/{client-interface-BQakINAH.d.ts → client-interface-DvkciaL0.d.ts} +10 -10
  6. package/dist/{client-interface-BQakINAH.d.ts.map → client-interface-DvkciaL0.d.ts.map} +1 -1
  7. package/dist/config/schema.d.ts +1 -1
  8. package/dist/config-authoring.d.ts +1 -1
  9. package/dist/{current-user-DosTPiF7.d.ts → current-user-BBoN3hsn.d.ts} +12 -12
  10. package/dist/{current-user-DosTPiF7.d.ts.map → current-user-BBoN3hsn.d.ts.map} +1 -1
  11. package/dist/{email-outbox-C07KfbmL.d.ts → email-outbox-D_wbK759.d.ts} +271 -271
  12. package/dist/{email-outbox-C07KfbmL.d.ts.map → email-outbox-D_wbK759.d.ts.map} +1 -1
  13. package/dist/esm/config/schema.d.ts +181 -181
  14. package/dist/esm/interface/admin-interface.js +1 -1
  15. package/dist/esm/interface/admin-metrics.d.ts +15 -15
  16. package/dist/esm/interface/client-interface.js +1 -1
  17. package/dist/esm/interface/conversations.d.ts +30 -30
  18. package/dist/esm/interface/crud/current-user.d.ts +11 -11
  19. package/dist/esm/interface/crud/email-outbox.d.ts +270 -270
  20. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  21. package/dist/esm/interface/crud/products.d.ts +15 -15
  22. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  23. package/dist/esm/interface/crud/projects.d.ts +117 -113
  24. package/dist/esm/interface/crud/projects.d.ts.map +1 -1
  25. package/dist/esm/interface/crud/projects.js +1 -0
  26. package/dist/esm/interface/crud/projects.js.map +1 -1
  27. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  28. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  29. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  30. package/dist/esm/interface/crud/users.d.ts +6 -6
  31. package/dist/esm/interface/plan-usage.d.ts +2 -2
  32. package/dist/esm/interface/server-interface.js +1 -1
  33. package/dist/esm/known-errors.d.ts +1 -1
  34. package/dist/esm/schema-fields.d.ts +2 -2
  35. package/dist/esm/sessions.d.ts +7 -7
  36. package/dist/esm/utils/promises.js +1 -1
  37. package/dist/helpers/password.d.ts +1 -1
  38. package/dist/helpers/production-mode.d.ts +1 -1
  39. package/dist/index.d.ts +4 -4
  40. package/dist/interface/admin-interface.d.ts +2 -2
  41. package/dist/interface/admin-interface.js +1 -1
  42. package/dist/interface/admin-metrics.d.ts +1 -1
  43. package/dist/interface/client-interface.d.ts +1 -1
  44. package/dist/interface/client-interface.js +1 -1
  45. package/dist/interface/conversations.d.ts +30 -30
  46. package/dist/interface/crud/current-user.d.ts +1 -1
  47. package/dist/interface/crud/email-outbox.d.ts +1 -1
  48. package/dist/interface/crud/invoices.d.ts +1 -1
  49. package/dist/interface/crud/products.d.ts +1 -1
  50. package/dist/interface/crud/project-api-keys.d.ts +1 -1
  51. package/dist/interface/crud/projects.d.ts +1 -1
  52. package/dist/interface/crud/projects.js +1 -0
  53. package/dist/interface/crud/projects.js.map +1 -1
  54. package/dist/interface/crud/team-member-profiles.d.ts +1 -1
  55. package/dist/interface/crud/transactions.d.ts +1 -1
  56. package/dist/interface/crud/users.d.ts +1 -1
  57. package/dist/interface/plan-usage.d.ts +1 -1
  58. package/dist/interface/server-interface.d.ts +1 -1
  59. package/dist/interface/server-interface.js +1 -1
  60. package/dist/{invoices-U65KzAZX.d.ts → invoices-CHo9YKbI.d.ts} +3 -3
  61. package/dist/{invoices-U65KzAZX.d.ts.map → invoices-CHo9YKbI.d.ts.map} +1 -1
  62. package/dist/{known-errors-BFf8SVm8.d.ts → known-errors-Bm4a61wL.d.ts} +2 -2
  63. package/dist/{known-errors-BFf8SVm8.d.ts.map → known-errors-Bm4a61wL.d.ts.map} +1 -1
  64. package/dist/known-errors.d.ts +1 -1
  65. package/dist/{plan-usage-CFwV688o.d.ts → plan-usage-BaDxcLZ1.d.ts} +3 -3
  66. package/dist/{plan-usage-CFwV688o.d.ts.map → plan-usage-BaDxcLZ1.d.ts.map} +1 -1
  67. package/dist/{products-DzedG6oU.d.ts → products-D4o8A2W0.d.ts} +16 -16
  68. package/dist/{products-DzedG6oU.d.ts.map → products-D4o8A2W0.d.ts.map} +1 -1
  69. package/dist/{project-api-keys-Di2ENRam.d.ts → project-api-keys--7V5X_UW.d.ts} +3 -3
  70. package/dist/{project-api-keys-Di2ENRam.d.ts.map → project-api-keys--7V5X_UW.d.ts.map} +1 -1
  71. package/dist/{projects-W2I5ueag.d.ts → projects-BX5Y50kJ.d.ts} +118 -114
  72. package/dist/projects-BX5Y50kJ.d.ts.map +1 -0
  73. package/dist/{schema-BXM8B2V2.d.ts → schema-BvjIkl-K.d.ts} +182 -182
  74. package/dist/{schema-BXM8B2V2.d.ts.map → schema-BvjIkl-K.d.ts.map} +1 -1
  75. package/dist/{schema-fields-DhryPaD4.d.ts → schema-fields-DZtDQEEO.d.ts} +3 -3
  76. package/dist/{schema-fields-DhryPaD4.d.ts.map → schema-fields-DZtDQEEO.d.ts.map} +1 -1
  77. package/dist/schema-fields.d.ts +1 -1
  78. package/dist/{server-interface--aZDYxx4.d.ts → server-interface-Ra_vIHP4.d.ts} +8 -8
  79. package/dist/{server-interface--aZDYxx4.d.ts.map → server-interface-Ra_vIHP4.d.ts.map} +1 -1
  80. package/dist/{sessions-CKNkS48M.d.ts → sessions-CI-0TBQb.d.ts} +9 -9
  81. package/dist/{sessions-CKNkS48M.d.ts.map → sessions-CI-0TBQb.d.ts.map} +1 -1
  82. package/dist/sessions.d.ts +1 -1
  83. package/dist/{team-member-profiles-BhcD2OP5.d.ts → team-member-profiles-BoDEqx-0.d.ts} +25 -25
  84. package/dist/{team-member-profiles-BhcD2OP5.d.ts.map → team-member-profiles-BoDEqx-0.d.ts.map} +1 -1
  85. package/dist/{transactions-icyjJzs-.d.ts → transactions-CHNUJ42J.d.ts} +21 -21
  86. package/dist/transactions-CHNUJ42J.d.ts.map +1 -0
  87. package/dist/{users-DMNuqLTW.d.ts → users-DHNRwoSz.d.ts} +7 -7
  88. package/dist/{users-DMNuqLTW.d.ts.map → users-DHNRwoSz.d.ts.map} +1 -1
  89. package/dist/utils/promises.js +1 -1
  90. package/package.json +1 -1
  91. package/src/interface/crud/projects.ts +1 -0
  92. package/dist/projects-W2I5ueag.d.ts.map +0 -1
  93. package/dist/transactions-icyjJzs-.d.ts.map +0 -1
@@ -56,9 +56,9 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
56
56
  preview: string | null;
57
57
  lastActivityAt: string;
58
58
  metadata: {
59
- tags: string[];
60
59
  assignedToUserId: string | null;
61
60
  assignedToDisplayName: string | null;
61
+ tags: string[];
62
62
  firstResponseDueAt: string | null;
63
63
  firstResponseAt: string | null;
64
64
  nextResponseDueAt: string | null;
@@ -174,28 +174,28 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
174
174
  closedAt?: string | null | undefined;
175
175
  recordMetadata?: {} | null | undefined;
176
176
  status: "open" | "pending" | "closed";
177
- subject: string;
178
- metadata: {
179
- tags: string[];
180
- assignedToUserId: string | null;
181
- assignedToDisplayName: string | null;
182
- firstResponseDueAt: string | null;
183
- firstResponseAt: string | null;
184
- nextResponseDueAt: string | null;
185
- lastCustomerReplyAt: string | null;
186
- lastAgentReplyAt: string | null;
187
- };
188
- source: "email" | "manual" | "chat" | "api";
189
177
  priority: "low" | "normal" | "high" | "urgent";
178
+ subject: string;
190
179
  conversationId: string;
191
180
  userId: string | null;
192
181
  teamId: string | null;
193
182
  userDisplayName: string | null;
194
183
  userPrimaryEmail: string | null;
195
184
  userProfileImageUrl: string | null;
185
+ source: "email" | "manual" | "chat" | "api";
196
186
  lastMessageType: "message" | "internal-note" | "status-change";
197
187
  preview: string | null;
198
188
  lastActivityAt: string;
189
+ metadata: {
190
+ assignedToUserId: string | null;
191
+ assignedToDisplayName: string | null;
192
+ tags: string[];
193
+ firstResponseDueAt: string | null;
194
+ firstResponseAt: string | null;
195
+ nextResponseDueAt: string | null;
196
+ lastCustomerReplyAt: string | null;
197
+ lastAgentReplyAt: string | null;
198
+ };
199
199
  }[];
200
200
  hasMore: boolean;
201
201
  }, yup$1.AnyObject, {
@@ -212,42 +212,42 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
212
212
  closedAt?: string | null | undefined;
213
213
  recordMetadata?: {} | null | undefined;
214
214
  status: "open" | "pending" | "closed";
215
- subject: string;
216
- metadata: {
217
- tags: string[];
218
- assignedToUserId: string | null;
219
- assignedToDisplayName: string | null;
220
- firstResponseDueAt: string | null;
221
- firstResponseAt: string | null;
222
- nextResponseDueAt: string | null;
223
- lastCustomerReplyAt: string | null;
224
- lastAgentReplyAt: string | null;
225
- };
226
- source: "email" | "manual" | "chat" | "api";
227
215
  priority: "low" | "normal" | "high" | "urgent";
216
+ subject: string;
228
217
  conversationId: string;
229
218
  userId: string | null;
230
219
  teamId: string | null;
231
220
  userDisplayName: string | null;
232
221
  userPrimaryEmail: string | null;
233
222
  userProfileImageUrl: string | null;
223
+ source: "email" | "manual" | "chat" | "api";
234
224
  lastMessageType: "message" | "internal-note" | "status-change";
235
225
  preview: string | null;
236
226
  lastActivityAt: string;
227
+ metadata: {
228
+ assignedToUserId: string | null;
229
+ assignedToDisplayName: string | null;
230
+ tags: string[];
231
+ firstResponseDueAt: string | null;
232
+ firstResponseAt: string | null;
233
+ nextResponseDueAt: string | null;
234
+ lastCustomerReplyAt: string | null;
235
+ lastAgentReplyAt: string | null;
236
+ };
237
237
  };
238
238
  messages: {
239
- id: string;
240
239
  status: "open" | "pending" | "closed";
241
- subject: string;
242
- metadata: {} | null;
243
- body: string | null;
244
- source: "email" | "manual" | "chat" | "api";
240
+ id: string;
245
241
  priority: "low" | "normal" | "high" | "urgent";
242
+ subject: string;
246
243
  conversationId: string;
247
244
  userId: string | null;
248
245
  teamId: string | null;
246
+ source: "email" | "manual" | "chat" | "api";
247
+ metadata: {} | null;
249
248
  createdAt: string;
250
249
  messageType: "message" | "internal-note" | "status-change";
250
+ body: string | null;
251
251
  attachments: {}[];
252
252
  sender: {
253
253
  type: "user" | "agent" | "system";
@@ -1,2 +1,2 @@
1
- import { n as currentUserCrud, t as CurrentUserCrud } from "../../current-user-DosTPiF7.js";
1
+ import { n as currentUserCrud, t as CurrentUserCrud } from "../../current-user-BBoN3hsn.js";
2
2
  export { CurrentUserCrud, currentUserCrud };
@@ -1,2 +1,2 @@
1
- import { i as emailOutboxUpdateSchema, n as emailOutboxCrud, r as emailOutboxReadSchema, t as EmailOutboxCrud } from "../../email-outbox-C07KfbmL.js";
1
+ import { i as emailOutboxUpdateSchema, n as emailOutboxCrud, r as emailOutboxReadSchema, t as EmailOutboxCrud } from "../../email-outbox-D_wbK759.js";
2
2
  export { EmailOutboxCrud, emailOutboxCrud, emailOutboxReadSchema, emailOutboxUpdateSchema };
@@ -1,2 +1,2 @@
1
- import { a as customerInvoicesListResponseSchema, i as customerInvoiceReadSchema, n as CustomerInvoicesListResponse, r as ListCustomerInvoicesOptions, t as CustomerInvoiceRead } from "../../invoices-U65KzAZX.js";
1
+ import { a as customerInvoicesListResponseSchema, i as customerInvoiceReadSchema, n as CustomerInvoicesListResponse, r as ListCustomerInvoicesOptions, t as CustomerInvoiceRead } from "../../invoices-CHo9YKbI.js";
2
2
  export { CustomerInvoiceRead, CustomerInvoicesListResponse, ListCustomerInvoicesOptions, customerInvoiceReadSchema, customerInvoicesListResponseSchema };
@@ -1,2 +1,2 @@
1
- import { a as customerProductsListResponseSchema, i as customerProductReadSchema, n as CustomerProductsListResponse, r as ListCustomerProductsOptions, t as CustomerProductRead } from "../../products-DzedG6oU.js";
1
+ import { a as customerProductsListResponseSchema, i as customerProductReadSchema, n as CustomerProductsListResponse, r as ListCustomerProductsOptions, t as CustomerProductRead } from "../../products-D4o8A2W0.js";
2
2
  export { CustomerProductRead, CustomerProductsListResponse, ListCustomerProductsOptions, customerProductReadSchema, customerProductsListResponseSchema };
@@ -1,2 +1,2 @@
1
- import { a as teamApiKeysCrud, c as userApiKeysCrud, i as teamApiKeysCreateOutputSchema, n as UserApiKeysCrud, o as userApiKeysCreateInputSchema, r as teamApiKeysCreateInputSchema, s as userApiKeysCreateOutputSchema, t as TeamApiKeysCrud } from "../../project-api-keys-Di2ENRam.js";
1
+ import { a as teamApiKeysCrud, c as userApiKeysCrud, i as teamApiKeysCreateOutputSchema, n as UserApiKeysCrud, o as userApiKeysCreateInputSchema, r as teamApiKeysCreateInputSchema, s as userApiKeysCreateOutputSchema, t as TeamApiKeysCrud } from "../../project-api-keys--7V5X_UW.js";
2
2
  export { TeamApiKeysCrud, UserApiKeysCrud, teamApiKeysCreateInputSchema, teamApiKeysCreateOutputSchema, teamApiKeysCrud, userApiKeysCreateInputSchema, userApiKeysCreateOutputSchema, userApiKeysCrud };
@@ -1,2 +1,2 @@
1
- import { a as clientProjectsCrud, c as projectsCrud, d as projectsCrudAdminReadSchema, f as projectsCrudAdminUpdateSchema, i as adminUserProjectsCrud, l as projectsCrudAdminCreateSchema, n as ClientProjectsCrud, o as emailConfigSchema, p as projectsCrudClientReadSchema, r as ProjectsCrud, s as emailConfigWithoutPasswordSchema, t as AdminUserProjectsCrud, u as projectsCrudAdminDeleteSchema } from "../../projects-W2I5ueag.js";
1
+ import { a as clientProjectsCrud, c as projectsCrud, d as projectsCrudAdminReadSchema, f as projectsCrudAdminUpdateSchema, i as adminUserProjectsCrud, l as projectsCrudAdminCreateSchema, n as ClientProjectsCrud, o as emailConfigSchema, p as projectsCrudClientReadSchema, r as ProjectsCrud, s as emailConfigWithoutPasswordSchema, t as AdminUserProjectsCrud, u as projectsCrudAdminDeleteSchema } from "../../projects-BX5Y50kJ.js";
2
2
  export { AdminUserProjectsCrud, ClientProjectsCrud, ProjectsCrud, adminUserProjectsCrud, clientProjectsCrud, emailConfigSchema, emailConfigWithoutPasswordSchema, projectsCrud, projectsCrudAdminCreateSchema, projectsCrudAdminDeleteSchema, projectsCrudAdminReadSchema, projectsCrudAdminUpdateSchema, projectsCrudClientReadSchema };
@@ -100,6 +100,7 @@ const projectsCrudAdminReadSchema = (0, ______schema_fields_js.yupObject)({
100
100
  const projectsCrudClientReadSchema = (0, ______schema_fields_js.yupObject)({
101
101
  id: ______schema_fields_js.projectIdSchema.defined(),
102
102
  display_name: ______schema_fields_js.projectDisplayNameSchema.defined(),
103
+ is_development_environment: ______schema_fields_js.yupBoolean().defined(),
103
104
  pushed_config_error: pushedConfigErrorSchema.nullable().defined(),
104
105
  config_warnings: (0, ______schema_fields_js.yupArray)(configWarningSchema).defined(),
105
106
  config: (0, ______schema_fields_js.yupObject)({
@@ -1 +1 @@
1
- {"version":3,"file":"projects.js","names":["schemaFields","ALL_APPS"],"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 adminUserProjectsCrud>;\n"],"mappings":";;;;;;;AAKA,MAAM,wBAAA,GAAA,uBAAA,UAAA,CAAiC,EACrC,KAAA,GAAA,uBAAA,UAAA,CAAc,CAAC,CAAC,QAAQ,EAC1B,CAAC,C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Aa,gBAAA,GAAA,cAAA,WAAA,CAA0B;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,yBAAA,GAAA,cAAA,WAAA,CAAmC;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":["schemaFields","ALL_APPS"],"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 adminUserProjectsCrud>;\n"],"mappings":";;;;;;;AAKA,MAAM,wBAAA,GAAA,uBAAA,UAAA,CAAiC,EACrC,KAAA,GAAA,uBAAA,UAAA,CAAc,CAAC,CAAC,QAAQ,EAC1B,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAM,2BAAA,GAAA,uBAAA,UAAA,CAAoC;CACxC,oBAAoBA,uBAAa,UAAU,CAAC,CAAC,QAAQ;CACrD,IAAIA,uBAAa,cAAc,QAAQ;CACvC,MAAMA,uBAAa,g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,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,yBAAA,GAAA,cAAA,WAAA,CAAmC;CAC9C,kBAAkB;CAClB,oBAAoB;CACpB,MAAM;EACJ,YAAY,EACV,QAAQ,KACV;EACA,cAAc,EACZ,QAAQ,KACV;CACF;AACF,CAAC"}
@@ -1,2 +1,2 @@
1
- import { a as teamMemberProfilesCrudServerReadSchema, i as teamMemberProfilesCrudClientUpdateSchema, n as teamMemberProfilesCrud, r as teamMemberProfilesCrudClientReadSchema, t as TeamMemberProfilesCrud } from "../../team-member-profiles-BhcD2OP5.js";
1
+ import { a as teamMemberProfilesCrudServerReadSchema, i as teamMemberProfilesCrudClientUpdateSchema, n as teamMemberProfilesCrud, r as teamMemberProfilesCrudClientReadSchema, t as TeamMemberProfilesCrud } from "../../team-member-profiles-BoDEqx-0.js";
2
2
  export { TeamMemberProfilesCrud, teamMemberProfilesCrud, teamMemberProfilesCrudClientReadSchema, teamMemberProfilesCrudClientUpdateSchema, teamMemberProfilesCrudServerReadSchema };
@@ -1,2 +1,2 @@
1
- import { a as transactionEntrySchema, i as TransactionType, n as Transaction, o as transactionSchema, r as TransactionEntry, t as TRANSACTION_TYPES } from "../../transactions-icyjJzs-.js";
1
+ import { a as transactionEntrySchema, i as TransactionType, n as Transaction, o as transactionSchema, r as TransactionEntry, t as TRANSACTION_TYPES } from "../../transactions-CHNUJ42J.js";
2
2
  export { TRANSACTION_TYPES, Transaction, TransactionEntry, TransactionType, transactionEntrySchema, transactionSchema };
@@ -1,2 +1,2 @@
1
- import { a as userCreatedWebhookEvent, c as usersCrud, d as usersCrudServerReadSchema, f as usersCrudServerUpdateSchema, i as signUpRiskScoresSchema, l as usersCrudServerCreateSchema, n as UsersCrud, o as userDeletedWebhookEvent, r as riskScoreFieldSchema, s as userUpdatedWebhookEvent, t as SignUpRiskScoresCrud, u as usersCrudServerDeleteSchema } from "../../users-DMNuqLTW.js";
1
+ import { a as userCreatedWebhookEvent, c as usersCrud, d as usersCrudServerReadSchema, f as usersCrudServerUpdateSchema, i as signUpRiskScoresSchema, l as usersCrudServerCreateSchema, n as UsersCrud, o as userDeletedWebhookEvent, r as riskScoreFieldSchema, s as userUpdatedWebhookEvent, t as SignUpRiskScoresCrud, u as usersCrudServerDeleteSchema } from "../../users-DHNRwoSz.js";
2
2
  export { SignUpRiskScoresCrud, UsersCrud, riskScoreFieldSchema, signUpRiskScoresSchema, userCreatedWebhookEvent, userDeletedWebhookEvent, userUpdatedWebhookEvent, usersCrud, usersCrudServerCreateSchema, usersCrudServerDeleteSchema, usersCrudServerReadSchema, usersCrudServerUpdateSchema };
@@ -1,2 +1,2 @@
1
- import { a as planUsageResponseSchema, i as planUsageKindSchema, n as PlanUsageResponse, o as planUsageRowSchema, r as PlanUsageRow, t as PlanUsageKind } from "../plan-usage-CFwV688o.js";
1
+ import { a as planUsageResponseSchema, i as planUsageKindSchema, n as PlanUsageResponse, o as planUsageRowSchema, r as PlanUsageRow, t as PlanUsageKind } from "../plan-usage-BaDxcLZ1.js";
2
2
  export { PlanUsageKind, PlanUsageResponse, PlanUsageRow, planUsageKindSchema, planUsageResponseSchema, planUsageRowSchema };
@@ -1,2 +1,2 @@
1
- import { n as ServerAuthApplicationOptions, t as HexclaveServerInterface } from "../server-interface--aZDYxx4.js";
1
+ import { n as ServerAuthApplicationOptions, t as HexclaveServerInterface } from "../server-interface-Ra_vIHP4.js";
2
2
  export { HexclaveServerInterface, ServerAuthApplicationOptions };
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let ___utils_errors_js = require("../utils/errors.js");
3
3
  let ___utils_objects_js = require("../utils/objects.js");
4
4
  let ___utils_results_js = require("../utils/results.js");
5
- let ___known_errors_js = require("../known-errors.js");
6
5
  let ___utils_urls_js = require("../utils/urls.js");
6
+ let ___known_errors_js = require("../known-errors.js");
7
7
  let ___sessions_js = require("../sessions.js");
8
8
  let __client_interface_js = require("./client-interface.js");
9
9
  let ___helpers_vault_client_side_js = require("../helpers/vault/client-side.js");
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
3
3
  //#region src/interface/crud/invoices.d.ts
4
4
  declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
5
5
  created_at_millis: number;
6
- status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
6
+ status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
7
7
  amount_total: number;
8
8
  hosted_invoice_url: string | null;
9
9
  }, yup$1.AnyObject, {
@@ -15,7 +15,7 @@ declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
15
15
  type CustomerInvoiceRead = yup$1.InferType<typeof customerInvoiceReadSchema>;
16
16
  declare const customerInvoicesListResponseSchema: yup$1.ObjectSchema<{
17
17
  items: {
18
- status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
18
+ status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
19
19
  created_at_millis: number;
20
20
  amount_total: number;
21
21
  hosted_invoice_url: string | null;
@@ -40,4 +40,4 @@ type ListCustomerInvoicesOptions = {
40
40
  };
41
41
  //#endregion
42
42
  export { customerInvoicesListResponseSchema as a, customerInvoiceReadSchema as i, CustomerInvoicesListResponse as n, ListCustomerInvoicesOptions as r, CustomerInvoiceRead as t };
43
- //# sourceMappingURL=invoices-U65KzAZX.d.ts.map
43
+ //# sourceMappingURL=invoices-CHo9YKbI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoices-U65KzAZX.d.ts","names":[],"sources":["../src/interface/crud/invoices.ts"],"mappings":";;;cAWa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;GAK1B,KAAA,CAAA,SAAA;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAS,QAAQ,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;GAMnC,KAAA,CAAA,SAAA;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAS,QAAQ,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
1
+ {"version":3,"file":"invoices-CHo9YKbI.d.ts","names":[],"sources":["../src/interface/crud/invoices.ts"],"mappings":";;;cAWa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;GAK1B,KAAA,CAAA,SAAA;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAS,QAAQ,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;GAMnC,KAAA,CAAA,SAAA;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAS,QAAQ,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -518,7 +518,7 @@ declare const KnownErrors: {
518
518
  CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
519
519
  errorCode: "CUSTOMER_DOES_NOT_EXIST";
520
520
  };
521
- ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "server_only" | "item_exists" | null]> & {
521
+ ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "item_exists" | "server_only" | null]> & {
522
522
  errorCode: "PRODUCT_DOES_NOT_EXIST";
523
523
  };
524
524
  ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
@@ -572,4 +572,4 @@ declare const KnownErrors: {
572
572
  };
573
573
  //#endregion
574
574
  export { KnownErrors as a, KnownErrorJson as i, KnownError as n, KnownErrorConstructor as r, AbstractKnownErrorConstructor as t };
575
- //# sourceMappingURL=known-errors-BFf8SVm8.d.ts.map
575
+ //# sourceMappingURL=known-errors-Bm4a61wL.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"known-errors-BFf8SVm8.d.ts","names":[],"sources":["../src/known-errors.tsx"],"mappings":";;;;KAKY,cAAA;EACV,IAAA;EACA,OAAA;EACA,OAAA,GAAU,IAAI;AAAA;AAAA,KAGJ,6BAAA,yCACU,IAAA,EAAM,IAAA,KAAS,UAAA;EAEjC,uBAAA,GAA0B,IAAA,EAAM,cAAA,KAAmB,IAAA;AAAA;AAAA,KAG3C,qBAAA,uBAA4C,UAAA;EAAA,QAC/C,IAAA,EAAM,IAAA,GAAO,aAAA;IAAkB,eAAA,EAAiB,IAAA;EAAA;EACvD,SAAA;EACA,uBAAA,GAA0B,IAAA,EAAM,cAAA,KAAmB,IAAA;EACnD,UAAA,GAAa,KAAA,cAAmB,KAAA,IAAS,aAAA;IAAkB,eAAA,EAAiB,IAAA;EAAA;AAAA;AAAA,uBAGxD,UAAA,SAAmB,WAAA;EAAA,SAKrB,UAAA;EAAA,SACA,oBAAA;EAAA,SACA,OAAA,GAAU,IAAA;EAAA,iBANX,sBAAA;EACV,IAAA;cAGW,UAAA,UACA,oBAAA,UACA,OAAA,GAAU,IAAA;EAAA,OAQd,YAAA,CAAa,KAAA,YAAiB,KAAA,IAAS,UAAA;EAKrC,OAAA,IAAW,UAAA;EAIX,UAAA,IAAc,MAAA;EASd,iBAAA,IAAqB,IAAA;EAAA,IAQjC,SAAA;EAAA,OAIU,uBAAA,CAAwB,IAAA,EAAM,cAAA,GAAiB,qBAAA,QAA6B,UAAA;EAAA,OAQ5E,QAAA,CAAS,IAAA,EAAM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;;EAAA,CAkF/B,sCAAsC,WAC/B,SAAA;AAAA;AAAA,KA2uDE,WAAA,wBACS,WAAA,GAAc,YAAA,QAAoB,WAAA,CAAY,CAAA;AAAA,cAGtD,WAAA"}
@@ -1,2 +1,2 @@
1
- import { a as KnownErrors, i as KnownErrorJson, n as KnownError, r as KnownErrorConstructor, t as AbstractKnownErrorConstructor } from "./known-errors-BFf8SVm8.js";
1
+ import { a as KnownErrors, i as KnownErrorJson, n as KnownError, r as KnownErrorConstructor, t as AbstractKnownErrorConstructor } from "./known-errors-Bm4a61wL.js";
2
2
  export { AbstractKnownErrorConstructor, KnownError, KnownErrorConstructor, KnownErrorJson, KnownErrors };
@@ -24,15 +24,15 @@ 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;
31
31
  next_plan_id: "team" | "growth" | null;
32
32
  are_plan_limits_enforced: boolean;
33
33
  rows: {
34
- display_name: string;
35
34
  item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
35
+ display_name: string;
36
36
  kind: "current" | "metered" | "capability";
37
37
  used: number | null;
38
38
  limit: number | null;
@@ -56,4 +56,4 @@ type PlanUsageRow = yup$1.InferType<typeof planUsageRowSchema>;
56
56
  type PlanUsageResponse = yup$1.InferType<typeof planUsageResponseSchema>;
57
57
  //#endregion
58
58
  export { planUsageResponseSchema as a, planUsageKindSchema as i, PlanUsageResponse as n, planUsageRowSchema as o, PlanUsageRow as r, PlanUsageKind as t };
59
- //# sourceMappingURL=plan-usage-CFwV688o.d.ts.map
59
+ //# sourceMappingURL=plan-usage-BaDxcLZ1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan-usage-CFwV688o.d.ts","names":[],"sources":["../src/interface/plan-usage.ts"],"mappings":";;;cAOa,mBAAA,EAAmB,KAAA,CAAA,YAAA,uCAAA,KAAA,CAAA,SAAA;AAAA,cAEnB,kBAAA,EAAkB,KAAA,CAAA,YAAA;;;;;;;;;GASnB,KAAA,CAAA,SAAA;;;;;;;;;;cAEC,uBAAA,EAAuB,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;GAUxB,KAAA,CAAA,SAAA;;;;;;;;;;;KAEA,aAAA,GAAgB,KAAA,CAAI,SAAS,QAAQ,mBAAA;AAAA,KACrC,YAAA,GAAe,KAAA,CAAI,SAAS,QAAQ,kBAAA;AAAA,KACpC,iBAAA,GAAoB,KAAA,CAAI,SAAS,QAAQ,uBAAA"}
1
+ {"version":3,"file":"plan-usage-BaDxcLZ1.d.ts","names":[],"sources":["../src/interface/plan-usage.ts"],"mappings":";;;cAOa,mBAAA,EAAmB,KAAA,CAAA,YAAA,uCAAA,KAAA,CAAA,SAAA;AAAA,cAEnB,kBAAA,EAAkB,KAAA,CAAA,YAAA;;;;;;;;;GASnB,KAAA,CAAA,SAAA;;;;;;;;;;cAEC,uBAAA,EAAuB,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;GAUxB,KAAA,CAAA,SAAA;;;;;;;;;;;KAEA,aAAA,GAAgB,KAAA,CAAI,SAAS,QAAQ,mBAAA;AAAA,KACrC,YAAA,GAAe,KAAA,CAAI,SAAS,QAAQ,kBAAA;AAAA,KACpC,iBAAA,GAAoB,KAAA,CAAI,SAAS,QAAQ,uBAAA"}
@@ -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: "team" | "user" | "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: "team" | "user" | "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: "team" | "user" | "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: "team" | "user" | "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;
@@ -179,4 +179,4 @@ type ListCustomerProductsOptions = {
179
179
  };
180
180
  //#endregion
181
181
  export { customerProductsListResponseSchema as a, customerProductReadSchema as i, CustomerProductsListResponse as n, ListCustomerProductsOptions as r, CustomerProductRead as t };
182
- //# sourceMappingURL=products-DzedG6oU.d.ts.map
182
+ //# sourceMappingURL=products-D4o8A2W0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"products-DzedG6oU.d.ts","names":[],"sources":["../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAS,QAAQ,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAS,QAAQ,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
1
+ {"version":3,"file":"products-D4o8A2W0.d.ts","names":[],"sources":["../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAS,QAAQ,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAS,QAAQ,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,9 +177,9 @@ 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
- team_id: string;
183
183
  created_at_millis: number;
184
184
  expires_at_millis: number | undefined;
185
185
  manually_revoked_at_millis: number | undefined;
@@ -200,4 +200,4 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
200
200
  type TeamApiKeysCrud = CrudTypeOf<typeof teamApiKeysCrud>;
201
201
  //#endregion
202
202
  export { teamApiKeysCrud as a, userApiKeysCrud as c, teamApiKeysCreateOutputSchema as i, UserApiKeysCrud as n, userApiKeysCreateInputSchema as o, teamApiKeysCreateInputSchema as r, userApiKeysCreateOutputSchema as s, TeamApiKeysCrud as t };
203
- //# sourceMappingURL=project-api-keys-Di2ENRam.d.ts.map
203
+ //# sourceMappingURL=project-api-keys--7V5X_UW.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-api-keys-Di2ENRam.d.ts","names":[],"sources":["../src/interface/crud/project-api-keys.ts"],"mappings":";;;;cAwFQ,eAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCACyC,KAAA,CAAA,YAAA;;;;;;;;;;yCACE,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEvC,eAAA,GAAkB,UAAU,QAAQ,eAAA;AAAA,cAGxC,eAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCACyC,KAAA,CAAA,YAAA;;;;;;;;;;yCACE,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEvC,eAAA,GAAkB,UAAU,QAAQ,eAAA"}
1
+ {"version":3,"file":"project-api-keys--7V5X_UW.d.ts","names":[],"sources":["../src/interface/crud/project-api-keys.ts"],"mappings":";;;;cAwFQ,eAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCACyC,KAAA,CAAA,YAAA;;;;;;;;;;yCACE,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEvC,eAAA,GAAkB,UAAU,QAAQ,eAAA;AAAA,cAGxC,eAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCACyC,KAAA,CAAA,YAAA;;;;;;;;;;yCACE,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEvC,eAAA,GAAkB,UAAU,QAAQ,eAAA"}