@hexclave/shared 1.0.56 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{admin-interface-sca4FCAt.d.ts → admin-interface-D6kvAhoP.d.ts} +11 -11
- package/dist/{admin-interface-sca4FCAt.d.ts.map → admin-interface-D6kvAhoP.d.ts.map} +1 -1
- package/dist/{admin-metrics-BTgqWZXI.d.ts → admin-metrics-Cs7JjEj4.d.ts} +13 -13
- package/dist/{admin-metrics-BTgqWZXI.d.ts.map → admin-metrics-Cs7JjEj4.d.ts.map} +1 -1
- package/dist/{client-interface-BQakINAH.d.ts → client-interface-CnrY_NEa.d.ts} +10 -10
- package/dist/{client-interface-BQakINAH.d.ts.map → client-interface-CnrY_NEa.d.ts.map} +1 -1
- package/dist/config/schema.d.ts +1 -1
- package/dist/config-authoring.d.ts +1 -1
- package/dist/{current-user-DosTPiF7.d.ts → current-user-Dvf8Ttjo.d.ts} +13 -13
- package/dist/{current-user-DosTPiF7.d.ts.map → current-user-Dvf8Ttjo.d.ts.map} +1 -1
- package/dist/{email-outbox-C07KfbmL.d.ts → email-outbox-CJXqsXl0.d.ts} +249 -249
- package/dist/{email-outbox-C07KfbmL.d.ts.map → email-outbox-CJXqsXl0.d.ts.map} +1 -1
- package/dist/esm/config/schema.d.ts +55 -55
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +12 -12
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +30 -30
- package/dist/esm/interface/crud/current-user.d.ts +12 -12
- package/dist/esm/interface/crud/email-outbox.d.ts +248 -248
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/products.d.ts +15 -15
- package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/esm/interface/crud/projects.d.ts +117 -113
- package/dist/esm/interface/crud/projects.d.ts.map +1 -1
- package/dist/esm/interface/crud/projects.js +1 -0
- package/dist/esm/interface/crud/projects.js.map +1 -1
- package/dist/esm/interface/crud/team-member-profiles.d.ts +22 -22
- package/dist/esm/interface/crud/transactions.d.ts +20 -20
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +10 -10
- package/dist/esm/interface/plan-usage.d.ts +2 -2
- package/dist/esm/interface/server-interface.js +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +1 -1
- package/dist/esm/schema-fields.d.ts +2 -2
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/esm/utils/promises.js +1 -1
- package/dist/helpers/password.d.ts +1 -1
- package/dist/helpers/production-mode.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/interface/admin-interface.d.ts +2 -2
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +1 -1
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +30 -30
- package/dist/interface/crud/current-user.d.ts +1 -1
- package/dist/interface/crud/email-outbox.d.ts +1 -1
- package/dist/interface/crud/invoices.d.ts +1 -1
- package/dist/interface/crud/products.d.ts +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +1 -1
- package/dist/interface/crud/projects.d.ts +1 -1
- package/dist/interface/crud/projects.js +1 -0
- package/dist/interface/crud/projects.js.map +1 -1
- package/dist/interface/crud/team-member-profiles.d.ts +1 -1
- package/dist/interface/crud/transactions.d.ts +1 -1
- package/dist/interface/crud/users.d.ts +1 -1
- package/dist/interface/plan-usage.d.ts +1 -1
- package/dist/interface/server-interface.d.ts +1 -1
- package/dist/interface/server-interface.js +1 -1
- package/dist/interface/webhooks.d.ts +1 -1
- package/dist/{invoices-U65KzAZX.d.ts → invoices-CHo9YKbI.d.ts} +3 -3
- package/dist/{invoices-U65KzAZX.d.ts.map → invoices-CHo9YKbI.d.ts.map} +1 -1
- package/dist/{known-errors-BFf8SVm8.d.ts → known-errors-Bm4a61wL.d.ts} +2 -2
- package/dist/{known-errors-BFf8SVm8.d.ts.map → known-errors-Bm4a61wL.d.ts.map} +1 -1
- package/dist/known-errors.d.ts +1 -1
- package/dist/{plan-usage-CFwV688o.d.ts → plan-usage-BaDxcLZ1.d.ts} +3 -3
- package/dist/{plan-usage-CFwV688o.d.ts.map → plan-usage-BaDxcLZ1.d.ts.map} +1 -1
- package/dist/{products-DzedG6oU.d.ts → products-D4o8A2W0.d.ts} +16 -16
- package/dist/{products-DzedG6oU.d.ts.map → products-D4o8A2W0.d.ts.map} +1 -1
- package/dist/{project-api-keys-Di2ENRam.d.ts → project-api-keys--7V5X_UW.d.ts} +3 -3
- package/dist/{project-api-keys-Di2ENRam.d.ts.map → project-api-keys--7V5X_UW.d.ts.map} +1 -1
- package/dist/{projects-W2I5ueag.d.ts → projects-BX5Y50kJ.d.ts} +118 -114
- package/dist/projects-BX5Y50kJ.d.ts.map +1 -0
- package/dist/{schema-BXM8B2V2.d.ts → schema-CLmaZetm.d.ts} +56 -56
- package/dist/{schema-BXM8B2V2.d.ts.map → schema-CLmaZetm.d.ts.map} +1 -1
- package/dist/{schema-fields-DhryPaD4.d.ts → schema-fields-DZtDQEEO.d.ts} +3 -3
- package/dist/{schema-fields-DhryPaD4.d.ts.map → schema-fields-DZtDQEEO.d.ts.map} +1 -1
- package/dist/schema-fields.d.ts +1 -1
- package/dist/{server-interface--aZDYxx4.d.ts → server-interface-DipGGXYo.d.ts} +8 -8
- package/dist/{server-interface--aZDYxx4.d.ts.map → server-interface-DipGGXYo.d.ts.map} +1 -1
- package/dist/{sessions-CKNkS48M.d.ts → sessions-CI-0TBQb.d.ts} +9 -9
- package/dist/{sessions-CKNkS48M.d.ts.map → sessions-CI-0TBQb.d.ts.map} +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/{team-member-profiles-BhcD2OP5.d.ts → team-member-profiles-uTluO8XI.d.ts} +23 -23
- package/dist/{team-member-profiles-BhcD2OP5.d.ts.map → team-member-profiles-uTluO8XI.d.ts.map} +1 -1
- package/dist/{transactions-icyjJzs-.d.ts → transactions-CHNUJ42J.d.ts} +21 -21
- package/dist/transactions-CHNUJ42J.d.ts.map +1 -0
- package/dist/{users-DMNuqLTW.d.ts → users-D9Gnf-Z3.d.ts} +12 -12
- package/dist/{users-DMNuqLTW.d.ts.map → users-D9Gnf-Z3.d.ts.map} +1 -1
- package/dist/utils/promises.js +1 -1
- package/dist/{webhooks-8Ts1Clcb.d.ts → webhooks-ByXrdSOx.d.ts} +3 -3
- package/dist/{webhooks-8Ts1Clcb.d.ts.map → webhooks-ByXrdSOx.d.ts.map} +1 -1
- package/package.json +1 -1
- package/src/interface/crud/projects.ts +1 -0
- package/dist/projects-W2I5ueag.d.ts.map +0 -1
- 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,18 +174,6 @@ 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";
|
|
190
178
|
conversationId: string;
|
|
191
179
|
userId: string | null;
|
|
@@ -193,9 +181,21 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
193
181
|
userDisplayName: string | null;
|
|
194
182
|
userPrimaryEmail: string | null;
|
|
195
183
|
userProfileImageUrl: string | null;
|
|
184
|
+
subject: string;
|
|
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,18 +212,6 @@ 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";
|
|
228
216
|
conversationId: string;
|
|
229
217
|
userId: string | null;
|
|
@@ -231,23 +219,35 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
231
219
|
userDisplayName: string | null;
|
|
232
220
|
userPrimaryEmail: string | null;
|
|
233
221
|
userProfileImageUrl: string | null;
|
|
222
|
+
subject: string;
|
|
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
|
-
|
|
242
|
-
metadata: {} | null;
|
|
243
|
-
body: string | null;
|
|
244
|
-
source: "email" | "manual" | "chat" | "api";
|
|
240
|
+
id: string;
|
|
245
241
|
priority: "low" | "normal" | "high" | "urgent";
|
|
246
242
|
conversationId: string;
|
|
247
243
|
userId: string | null;
|
|
248
244
|
teamId: string | null;
|
|
245
|
+
subject: string;
|
|
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-
|
|
1
|
+
import { n as currentUserCrud, t as CurrentUserCrud } from "../../current-user-Dvf8Ttjo.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-
|
|
1
|
+
import { i as emailOutboxUpdateSchema, n as emailOutboxCrud, r as emailOutboxReadSchema, t as EmailOutboxCrud } from "../../email-outbox-CJXqsXl0.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-
|
|
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-
|
|
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
|
|
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-
|
|
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,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,gBAAgB,QAAQ;CAC3C,WAAWA,uBAAa,0BACtBA,uBAAa,qBACb,EAAE,MAAM,WAAW,CACr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Aa;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,gBAAgB,QAAQ;CAC3C,WAAWA,uBAAa,0BACtBA,uBAAa,qBACb,EAAE,MAAM,WAAW,CACrB;CACA,eAAeA,uBAAa,0BAC1BA,uBAAa,yBACb,EAAE,MAAM,WAAW,CACrB;CAGA,oBAAoBA,uBAAa,4BAA4B,SAAS;CACtE,qBAAqBA,uBAAa,6BAA6B,SAAS;CACxE,kBAAkBA,u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A,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-
|
|
1
|
+
import { a as teamMemberProfilesCrudServerReadSchema, i as teamMemberProfilesCrudClientUpdateSchema, n as teamMemberProfilesCrud, r as teamMemberProfilesCrudClientReadSchema, t as TeamMemberProfilesCrud } from "../../team-member-profiles-uTluO8XI.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-
|
|
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-
|
|
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-D9Gnf-Z3.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-
|
|
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
|
|
1
|
+
import { n as ServerAuthApplicationOptions, t as HexclaveServerInterface } from "../server-interface-DipGGXYo.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");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as webhookEvents, t as WebhookEvent } from "../webhooks-
|
|
1
|
+
import { n as webhookEvents, t as WebhookEvent } from "../webhooks-ByXrdSOx.js";
|
|
2
2
|
export { WebhookEvent, webhookEvents };
|
|
@@ -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: "
|
|
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: "
|
|
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-
|
|
43
|
+
//# sourceMappingURL=invoices-CHo9YKbI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices-
|
|
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: "
|
|
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-
|
|
575
|
+
//# sourceMappingURL=known-errors-Bm4a61wL.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"known-errors-
|
|
1
|
+
{"version":3,"file":"known-errors-Bm4a61wL.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,cAAA,GAAiB,UAAA;AAAA;AAAA,cAe1C,sCAAA;;;;KAID,eAAA;EA5E6B;;;;;EAAA,CAkF/B,sCAAsC,WAC/B,SAAA;AAAA;AAAA,KA2uDE,WAAA,wBACS,WAAA,GAAc,YAAA,QAAoB,WAAA,CAAY,CAAA;AAAA,cAGtD,WAAA"}
|
package/dist/known-errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as KnownErrors, i as KnownErrorJson, n as KnownError, r as KnownErrorConstructor, t as AbstractKnownErrorConstructor } from "./known-errors-
|
|
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: "
|
|
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-
|
|
59
|
+
//# sourceMappingURL=plan-usage-BaDxcLZ1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-usage-
|
|
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-
|
|
182
|
+
//# sourceMappingURL=products-D4o8A2W0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products-
|
|
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
|
|
203
|
+
//# sourceMappingURL=project-api-keys--7V5X_UW.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-api-keys
|
|
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"}
|