@hexclave/shared 1.0.2 → 1.0.5
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/ai/unified-prompts/reminders.js +4 -3
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +3 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +217 -30
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +18 -6
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +23 -8
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -1
- package/dist/config/schema.d.ts +63 -63
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +5 -5
- package/dist/config/schema.js.map +1 -1
- package/dist/config-authoring.d.ts +4 -4
- package/dist/config-authoring.d.ts.map +1 -1
- package/dist/config-authoring.js +2 -2
- package/dist/config-authoring.js.map +1 -1
- package/dist/config-rendering.d.ts +4 -4
- package/dist/config-rendering.d.ts.map +1 -1
- package/dist/config-rendering.js +19 -18
- package/dist/config-rendering.js.map +1 -1
- package/dist/esm/ai/unified-prompts/reminders.js +4 -3
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +3 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +216 -31
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +18 -6
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +23 -8
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -1
- package/dist/esm/config/schema.d.ts +63 -63
- package/dist/esm/config/schema.d.ts.map +1 -1
- package/dist/esm/config/schema.js +5 -5
- package/dist/esm/config/schema.js.map +1 -1
- package/dist/esm/config-authoring.d.ts +4 -4
- package/dist/esm/config-authoring.d.ts.map +1 -1
- package/dist/esm/config-authoring.js +2 -2
- package/dist/esm/config-authoring.js.map +1 -1
- package/dist/esm/config-rendering.d.ts +4 -4
- package/dist/esm/config-rendering.d.ts.map +1 -1
- package/dist/esm/config-rendering.js +15 -14
- package/dist/esm/config-rendering.js.map +1 -1
- package/dist/esm/helpers/vault/client-side.d.ts.map +1 -1
- package/dist/esm/helpers/vault/client-side.js.map +1 -1
- package/dist/esm/helpers/vault/server-side.d.ts.map +1 -1
- package/dist/esm/helpers/vault/server-side.js.map +1 -1
- package/dist/esm/hexclave-config-file.d.ts +15 -0
- package/dist/esm/hexclave-config-file.d.ts.map +1 -0
- package/dist/esm/{stack-config-file.js → hexclave-config-file.js} +7 -7
- package/dist/esm/hexclave-config-file.js.map +1 -0
- package/dist/esm/hooks/use-async-callback.js +1 -1
- package/dist/esm/hooks/use-async-external-store.js +1 -1
- package/dist/esm/hooks/use-strict-memo.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +8 -8
- package/dist/esm/interface/admin-metrics.js.map +1 -1
- package/dist/esm/interface/client-interface.js +2 -2
- package/dist/esm/interface/client-interface.js.map +1 -1
- package/dist/esm/interface/conversations.d.ts +32 -32
- package/dist/esm/interface/crud/current-user.d.ts +9 -9
- package/dist/esm/interface/crud/email-outbox.d.ts +200 -200
- package/dist/esm/interface/crud/products.d.ts +13 -13
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/project-permissions.js +5 -5
- package/dist/esm/interface/crud/project-permissions.js.map +1 -1
- package/dist/esm/interface/crud/projects.d.ts +36 -36
- package/dist/esm/interface/crud/team-member-profiles.d.ts +18 -18
- package/dist/esm/interface/crud/team-permissions.js +5 -5
- package/dist/esm/interface/crud/team-permissions.js.map +1 -1
- package/dist/esm/interface/crud/transactions.d.ts +6 -6
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +12 -12
- package/dist/esm/interface/page-component-versions.js +107 -107
- package/dist/esm/interface/page-component-versions.js.map +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +2 -2
- package/dist/esm/known-errors.js +4 -4
- package/dist/esm/known-errors.js.map +1 -1
- package/dist/esm/schema-fields.d.ts +17 -7
- package/dist/esm/schema-fields.d.ts.map +1 -1
- package/dist/esm/schema-fields.js +26 -16
- package/dist/esm/schema-fields.js.map +1 -1
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/esm/utils/crypto.d.ts.map +1 -1
- package/dist/esm/utils/crypto.js.map +1 -1
- package/dist/esm/utils/currency-constants.d.ts +6 -0
- package/dist/esm/utils/currency-constants.d.ts.map +1 -1
- package/dist/esm/utils/currency-constants.js.map +1 -1
- package/dist/esm/utils/dev-env-state-path.d.ts +3 -3
- package/dist/esm/utils/dev-env-state-path.d.ts.map +1 -1
- package/dist/esm/utils/dev-env-state-path.js +4 -4
- package/dist/esm/utils/dev-env-state-path.js.map +1 -1
- package/dist/esm/utils/errors.js +2 -2
- package/dist/esm/utils/errors.js.map +1 -1
- package/dist/esm/utils/esbuild.d.ts.map +1 -1
- package/dist/esm/utils/esbuild.js +0 -1
- package/dist/esm/utils/esbuild.js.map +1 -1
- package/dist/esm/utils/featurebase.d.ts +3 -3
- package/dist/esm/utils/featurebase.d.ts.map +1 -1
- package/dist/esm/utils/featurebase.js +15 -15
- package/dist/esm/utils/featurebase.js.map +1 -1
- package/dist/esm/utils/fs.js +6 -6
- package/dist/esm/utils/fs.js.map +1 -1
- package/dist/esm/utils/globals.d.ts.map +1 -1
- package/dist/esm/utils/globals.js +10 -10
- package/dist/esm/utils/globals.js.map +1 -1
- package/dist/esm/utils/jwt.d.ts.map +1 -1
- package/dist/esm/utils/jwt.js +3 -3
- package/dist/esm/utils/jwt.js.map +1 -1
- package/dist/esm/utils/redirect-urls.d.ts +3 -3
- package/dist/esm/utils/redirect-urls.d.ts.map +1 -1
- package/dist/esm/utils/redirect-urls.js +5 -5
- package/dist/esm/utils/redirect-urls.js.map +1 -1
- package/dist/esm/utils/urls.js.map +1 -1
- package/dist/helpers/vault/client-side.d.ts.map +1 -1
- package/dist/helpers/vault/client-side.js.map +1 -1
- package/dist/helpers/vault/server-side.d.ts.map +1 -1
- package/dist/helpers/vault/server-side.js.map +1 -1
- package/dist/hexclave-config-file.d.ts +15 -0
- package/dist/hexclave-config-file.d.ts.map +1 -0
- package/dist/{stack-config-file.js → hexclave-config-file.js} +8 -8
- package/dist/hexclave-config-file.js.map +1 -0
- package/dist/hooks/use-async-callback.js +1 -1
- package/dist/hooks/use-async-external-store.js +1 -1
- package/dist/hooks/use-strict-memo.js +1 -1
- package/dist/interface/admin-metrics.d.ts +8 -8
- package/dist/interface/admin-metrics.js.map +1 -1
- package/dist/interface/client-interface.js +2 -2
- package/dist/interface/client-interface.js.map +1 -1
- package/dist/interface/conversations.d.ts +32 -32
- package/dist/interface/crud/current-user.d.ts +9 -9
- package/dist/interface/crud/email-outbox.d.ts +200 -200
- package/dist/interface/crud/products.d.ts +13 -13
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/interface/crud/project-permissions.js +5 -5
- package/dist/interface/crud/project-permissions.js.map +1 -1
- package/dist/interface/crud/projects.d.ts +36 -36
- package/dist/interface/crud/team-member-profiles.d.ts +18 -18
- package/dist/interface/crud/team-permissions.js +5 -5
- package/dist/interface/crud/team-permissions.js.map +1 -1
- package/dist/interface/crud/transactions.d.ts +6 -6
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +12 -12
- package/dist/interface/page-component-versions.js +107 -107
- package/dist/interface/page-component-versions.js.map +1 -1
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +2 -2
- package/dist/known-errors.js +4 -4
- package/dist/known-errors.js.map +1 -1
- package/dist/schema-fields.d.ts +17 -7
- package/dist/schema-fields.d.ts.map +1 -1
- package/dist/schema-fields.js +26 -16
- package/dist/schema-fields.js.map +1 -1
- package/dist/sessions.d.ts +7 -7
- package/dist/utils/crypto.d.ts.map +1 -1
- package/dist/utils/crypto.js.map +1 -1
- package/dist/utils/currency-constants.d.ts +6 -0
- package/dist/utils/currency-constants.d.ts.map +1 -1
- package/dist/utils/currency-constants.js.map +1 -1
- package/dist/utils/dev-env-state-path.d.ts +3 -3
- package/dist/utils/dev-env-state-path.d.ts.map +1 -1
- package/dist/utils/dev-env-state-path.js +5 -5
- package/dist/utils/dev-env-state-path.js.map +1 -1
- package/dist/utils/errors.js +2 -2
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/esbuild.d.ts.map +1 -1
- package/dist/utils/esbuild.js +0 -1
- package/dist/utils/esbuild.js.map +1 -1
- package/dist/utils/featurebase.d.ts +3 -3
- package/dist/utils/featurebase.d.ts.map +1 -1
- package/dist/utils/featurebase.js +15 -15
- package/dist/utils/featurebase.js.map +1 -1
- package/dist/utils/fs.js.map +1 -1
- package/dist/utils/globals.d.ts.map +1 -1
- package/dist/utils/globals.js +10 -10
- package/dist/utils/globals.js.map +1 -1
- package/dist/utils/jwt.d.ts.map +1 -1
- package/dist/utils/jwt.js +3 -3
- package/dist/utils/jwt.js.map +1 -1
- package/dist/utils/redirect-urls.d.ts +3 -3
- package/dist/utils/redirect-urls.d.ts.map +1 -1
- package/dist/utils/redirect-urls.js +5 -5
- package/dist/utils/redirect-urls.js.map +1 -1
- package/dist/utils/urls.js.map +1 -1
- package/package.json +2 -1
- package/src/ai/image-limits.ts +62 -0
- package/src/ai/llms/llms.ts +36 -0
- package/src/ai/unified-prompts/reminders.ts +27 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +1047 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/brain.ts +5 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/cli-help.ts +5 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/config-docs.ts +5 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.ts +5 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.ts +5 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/docs-index.ts +80 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.ts +322 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.ts +5 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.ts +5 -0
- package/src/ai/unified-prompts/skill-site-prompt.ts +72 -0
- package/src/apps/apps-config.ts +177 -0
- package/src/apps/apps-ui.tsx +112 -0
- package/src/config/README.md +154 -0
- package/src/config/db-sync-mappings.ts +2293 -0
- package/src/config/format.ts +388 -0
- package/src/config/migrate-catalogs-to-product-lines.ts +475 -0
- package/src/config/schema-fuzzer.test.ts +377 -0
- package/src/config/schema.ts +1507 -0
- package/src/config-authoring.test.ts +52 -0
- package/src/config-authoring.ts +37 -0
- package/src/config-rendering.ts +142 -0
- package/src/crud.tsx +275 -0
- package/src/global.d.ts +1 -0
- package/src/helpers/emails.ts +250 -0
- package/src/helpers/init-prompt.ts +39 -0
- package/src/helpers/password.ts +16 -0
- package/src/helpers/production-mode.ts +58 -0
- package/src/helpers/support-sla.test.ts +124 -0
- package/src/helpers/support-sla.ts +93 -0
- package/src/helpers/vault/client-side.ts +92 -0
- package/src/helpers/vault/server-side.ts +153 -0
- package/src/hexclave-config-file.ts +120 -0
- package/src/hooks/use-async-callback.tsx +43 -0
- package/src/hooks/use-async-external-store.tsx +24 -0
- package/src/hooks/use-hash.tsx +14 -0
- package/src/hooks/use-hover.tsx +88 -0
- package/src/hooks/use-strict-memo.tsx +157 -0
- package/src/index.ts +17 -0
- package/src/interface/admin-interface.ts +1043 -0
- package/src/interface/admin-metrics.ts +214 -0
- package/src/interface/client-interface.test.ts +765 -0
- package/src/interface/client-interface.ts +2586 -0
- package/src/interface/conversations.ts +109 -0
- package/src/interface/crud/analytics.ts +11 -0
- package/src/interface/crud/connected-accounts.ts +52 -0
- package/src/interface/crud/contact-channels.ts +74 -0
- package/src/interface/crud/current-user.ts +72 -0
- package/src/interface/crud/email-outbox.ts +263 -0
- package/src/interface/crud/email-templates.ts +50 -0
- package/src/interface/crud/emails.ts +22 -0
- package/src/interface/crud/internal-api-keys.ts +69 -0
- package/src/interface/crud/invoices.ts +36 -0
- package/src/interface/crud/items.ts +24 -0
- package/src/interface/crud/notification-preferences.ts +33 -0
- package/src/interface/crud/oauth-providers.ts +91 -0
- package/src/interface/crud/products.ts +42 -0
- package/src/interface/crud/project-api-keys.ts +100 -0
- package/src/interface/crud/project-permissions.ts +118 -0
- package/src/interface/crud/projects.ts +229 -0
- package/src/interface/crud/session-replays.ts +85 -0
- package/src/interface/crud/sessions.ts +66 -0
- package/src/interface/crud/sign-up-rules.ts +12 -0
- package/src/interface/crud/svix-token.ts +20 -0
- package/src/interface/crud/team-invitation-details.ts +22 -0
- package/src/interface/crud/team-invitation.ts +35 -0
- package/src/interface/crud/team-member-profiles.ts +61 -0
- package/src/interface/crud/team-memberships.ts +56 -0
- package/src/interface/crud/team-permissions.ts +119 -0
- package/src/interface/crud/teams.ts +142 -0
- package/src/interface/crud/transactions.ts +131 -0
- package/src/interface/crud/users.ts +185 -0
- package/src/interface/handler-urls.ts +74 -0
- package/src/interface/page-component-versions.ts +1702 -0
- package/src/interface/server-interface.ts +1146 -0
- package/src/interface/webhooks.ts +28 -0
- package/src/known-errors.tsx +2031 -0
- package/src/local-emulator.ts +5 -0
- package/src/payments/payment-methods.ts +167 -0
- package/src/payments/stripe-limits.ts +18 -0
- package/src/plans.ts +107 -0
- package/src/schema-fields.ts +944 -0
- package/src/sessions.ts +310 -0
- package/src/utils/api-keys.tsx +122 -0
- package/src/utils/arrays.tsx +248 -0
- package/src/utils/auth-methods.ts +8 -0
- package/src/utils/base64.tsx +24 -0
- package/src/utils/booleans.tsx +34 -0
- package/src/utils/browser-compat.tsx +17 -0
- package/src/utils/bytes.tsx +280 -0
- package/src/utils/caches.tsx +280 -0
- package/src/utils/cel-fields.ts +92 -0
- package/src/utils/cloud-hosts.tsx +92 -0
- package/src/utils/compile-time.tsx +11 -0
- package/src/utils/country-codes.ts +39 -0
- package/src/utils/crypto.tsx +174 -0
- package/src/utils/currencies.tsx +53 -0
- package/src/utils/currency-constants.tsx +51 -0
- package/src/utils/dates.tsx +246 -0
- package/src/utils/dev-env-state-path.ts +14 -0
- package/src/utils/dom.tsx +7 -0
- package/src/utils/env.tsx +117 -0
- package/src/utils/errors.tsx +284 -0
- package/src/utils/esbuild.tsx +235 -0
- package/src/utils/featurebase.tsx +247 -0
- package/src/utils/fs.tsx +33 -0
- package/src/utils/functions.tsx +22 -0
- package/src/utils/geo.tsx +16 -0
- package/src/utils/globals.tsx +48 -0
- package/src/utils/hashes.tsx +52 -0
- package/src/utils/html.tsx +60 -0
- package/src/utils/http.tsx +91 -0
- package/src/utils/ips.tsx +47 -0
- package/src/utils/json.tsx +200 -0
- package/src/utils/jsx-editable-transpiler.test.ts +156 -0
- package/src/utils/jsx-editable-transpiler.tsx +401 -0
- package/src/utils/jwt.tsx +170 -0
- package/src/utils/locks.tsx +71 -0
- package/src/utils/maps.tsx +407 -0
- package/src/utils/math.tsx +18 -0
- package/src/utils/monkey-patch.tsx +29 -0
- package/src/utils/node-http.tsx +47 -0
- package/src/utils/numbers.tsx +82 -0
- package/src/utils/oauth.tsx +9 -0
- package/src/utils/objects.tsx +581 -0
- package/src/utils/paginated-lists.test.ts +1039 -0
- package/src/utils/paginated-lists.tsx +479 -0
- package/src/utils/passkey.tsx +1 -0
- package/src/utils/promises.tsx +540 -0
- package/src/utils/proxies.tsx +212 -0
- package/src/utils/react.tsx +308 -0
- package/src/utils/redirect-urls.tsx +299 -0
- package/src/utils/regex.tsx +10 -0
- package/src/utils/results.tsx +411 -0
- package/src/utils/sentry.tsx +20 -0
- package/src/utils/stores.tsx +238 -0
- package/src/utils/strings.nicify.test.ts +253 -0
- package/src/utils/strings.tsx +723 -0
- package/src/utils/telemetry.tsx +37 -0
- package/src/utils/turnstile-browser.ts +106 -0
- package/src/utils/turnstile-flow.test.ts +101 -0
- package/src/utils/turnstile-flow.ts +266 -0
- package/src/utils/turnstile.ts +34 -0
- package/src/utils/typed-arrays.tsx +17 -0
- package/src/utils/types.tsx +208 -0
- package/src/utils/unicode.tsx +24 -0
- package/src/utils/urls.tsx +411 -0
- package/src/utils/uuids.tsx +47 -0
- package/dist/esm/stack-config-file.d.ts +0 -15
- package/dist/esm/stack-config-file.d.ts.map +0 -1
- package/dist/esm/stack-config-file.js.map +0 -1
- package/dist/stack-config-file.d.ts +0 -15
- package/dist/stack-config-file.d.ts.map +0 -1
- package/dist/stack-config-file.js.map +0 -1
|
@@ -6,11 +6,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
6
6
|
id: string | null;
|
|
7
7
|
quantity: number;
|
|
8
8
|
product: {
|
|
9
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
9
10
|
client_metadata?: {} | null | undefined;
|
|
10
11
|
client_read_only_metadata?: {} | null | undefined;
|
|
11
12
|
server_metadata?: {} | null | undefined;
|
|
12
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
13
|
-
display_name: string;
|
|
14
13
|
server_only: boolean;
|
|
15
14
|
customer_type: "team" | "user" | "custom";
|
|
16
15
|
stackable: boolean;
|
|
@@ -25,9 +24,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
25
24
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
26
25
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
27
26
|
}>;
|
|
27
|
+
display_name: string;
|
|
28
28
|
included_items: Record<string, {
|
|
29
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
30
29
|
quantity?: number | undefined;
|
|
30
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
31
31
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
};
|
|
@@ -41,11 +41,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
41
41
|
switch_options: {
|
|
42
42
|
product_id: string;
|
|
43
43
|
product: {
|
|
44
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
44
45
|
client_metadata?: {} | null | undefined;
|
|
45
46
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
47
|
server_metadata?: {} | null | undefined;
|
|
47
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
48
|
-
display_name: string;
|
|
49
48
|
server_only: boolean;
|
|
50
49
|
customer_type: "team" | "user" | "custom";
|
|
51
50
|
stackable: boolean;
|
|
@@ -60,9 +59,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
60
59
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
61
60
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
62
61
|
}>;
|
|
62
|
+
display_name: string;
|
|
63
63
|
included_items: Record<string, {
|
|
64
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
65
64
|
quantity?: number | undefined;
|
|
65
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
66
66
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
};
|
|
@@ -104,11 +104,10 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
104
104
|
switch_options?: {
|
|
105
105
|
product_id: string;
|
|
106
106
|
product: {
|
|
107
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
107
108
|
client_metadata?: {} | null | undefined;
|
|
108
109
|
client_read_only_metadata?: {} | null | undefined;
|
|
109
110
|
server_metadata?: {} | null | undefined;
|
|
110
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
111
|
-
display_name: string;
|
|
112
111
|
server_only: boolean;
|
|
113
112
|
customer_type: "team" | "user" | "custom";
|
|
114
113
|
stackable: boolean;
|
|
@@ -123,21 +122,21 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
123
122
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
124
123
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
125
124
|
}>;
|
|
125
|
+
display_name: string;
|
|
126
126
|
included_items: Record<string, {
|
|
127
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
128
127
|
quantity?: number | undefined;
|
|
128
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
129
129
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
130
130
|
}>;
|
|
131
131
|
};
|
|
132
132
|
}[] | undefined;
|
|
133
|
-
id: string | null;
|
|
134
133
|
quantity: number;
|
|
134
|
+
id: string | null;
|
|
135
135
|
product: {
|
|
136
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
136
137
|
client_metadata?: {} | null | undefined;
|
|
137
138
|
client_read_only_metadata?: {} | null | undefined;
|
|
138
139
|
server_metadata?: {} | null | undefined;
|
|
139
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
140
|
-
display_name: string;
|
|
141
140
|
server_only: boolean;
|
|
142
141
|
customer_type: "team" | "user" | "custom";
|
|
143
142
|
stackable: boolean;
|
|
@@ -152,9 +151,10 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
152
151
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
153
152
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
154
153
|
}>;
|
|
154
|
+
display_name: string;
|
|
155
155
|
included_items: Record<string, {
|
|
156
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
157
156
|
quantity?: number | undefined;
|
|
157
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
158
158
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA
|
|
1
|
+
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -79,11 +79,11 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
79
79
|
is_public: undefined;
|
|
80
80
|
user_id: undefined;
|
|
81
81
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
82
|
-
|
|
82
|
+
user_id: string;
|
|
83
83
|
type: "user";
|
|
84
84
|
id: string;
|
|
85
|
+
description: string;
|
|
85
86
|
created_at_millis: number;
|
|
86
|
-
user_id: string;
|
|
87
87
|
expires_at_millis: number | undefined;
|
|
88
88
|
manually_revoked_at_millis: number | undefined;
|
|
89
89
|
is_public: boolean;
|
|
@@ -177,11 +177,11 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
177
177
|
is_public: undefined;
|
|
178
178
|
team_id: undefined;
|
|
179
179
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
180
|
-
description: string;
|
|
181
180
|
type: "team";
|
|
181
|
+
team_id: string;
|
|
182
182
|
id: string;
|
|
183
|
+
description: string;
|
|
183
184
|
created_at_millis: number;
|
|
184
|
-
team_id: string;
|
|
185
185
|
expires_at_millis: number | undefined;
|
|
186
186
|
manually_revoked_at_millis: number | undefined;
|
|
187
187
|
is_public: boolean;
|
|
@@ -26,7 +26,7 @@ const projectPermissionsCrud = createCrud({
|
|
|
26
26
|
},
|
|
27
27
|
serverCreate: {
|
|
28
28
|
summary: "Grant a global permission to a user",
|
|
29
|
-
description: "Grant a global permission to a user (the permission must be created first on the
|
|
29
|
+
description: "Grant a global permission to a user (the permission must be created first on the Hexclave dashboard)",
|
|
30
30
|
tags: ["Permissions"]
|
|
31
31
|
},
|
|
32
32
|
serverDelete: {
|
|
@@ -78,22 +78,22 @@ const projectPermissionDefinitionsCrud = createCrud({
|
|
|
78
78
|
docs: {
|
|
79
79
|
adminList: {
|
|
80
80
|
summary: "List project permission definitions",
|
|
81
|
-
description: "Query and filter project permission definitions (the equivalent of listing permissions on the
|
|
81
|
+
description: "Query and filter project permission definitions (the equivalent of listing permissions on the Hexclave dashboard)",
|
|
82
82
|
tags: ["Permissions"]
|
|
83
83
|
},
|
|
84
84
|
adminCreate: {
|
|
85
85
|
summary: "Create a new project permission definition",
|
|
86
|
-
description: "Create a new project permission definition (the equivalent of creating a new permission on the
|
|
86
|
+
description: "Create a new project permission definition (the equivalent of creating a new permission on the Hexclave dashboard)",
|
|
87
87
|
tags: ["Permissions"]
|
|
88
88
|
},
|
|
89
89
|
adminUpdate: {
|
|
90
90
|
summary: "Update a project permission definition",
|
|
91
|
-
description: "Update a project permission definition (the equivalent of updating a permission on the
|
|
91
|
+
description: "Update a project permission definition (the equivalent of updating a permission on the Hexclave dashboard)",
|
|
92
92
|
tags: ["Permissions"]
|
|
93
93
|
},
|
|
94
94
|
adminDelete: {
|
|
95
95
|
summary: "Delete a project permission definition",
|
|
96
|
-
description: "Delete a project permission definition (the equivalent of deleting a permission on the
|
|
96
|
+
description: "Delete a project permission definition (the equivalent of deleting a permission on the Hexclave dashboard)",
|
|
97
97
|
tags: ["Permissions"]
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-permissions.js","names":[],"sources":["../../../../src/interface/crud/project-permissions.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupMixed, yupObject } from \"../../schema-fields\";\nimport { WebhookEvent } from \"../webhooks\";\n\n// =============== Project permissions =================\n\nexport const projectPermissionsCrudClientReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n user_id: schemaFields.userIdSchema.defined(),\n}).defined();\n\nexport const projectPermissionsCrudServerCreateSchema = yupObject({\n}).defined();\n\nexport const projectPermissionsCrudServerDeleteSchema = yupMixed();\n\nexport const projectPermissionsCrud = createCrud({\n clientReadSchema: projectPermissionsCrudClientReadSchema,\n serverCreateSchema: projectPermissionsCrudServerCreateSchema,\n serverDeleteSchema: projectPermissionsCrudServerDeleteSchema,\n docs: {\n clientList: {\n summary: \"List project permissions\",\n description: \"List global permissions of the current user. `user_id=me` must be set for client requests. `(user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverList: {\n summary: \"List project permissions\",\n description: \"Query and filter the permission with `user_id` and `permission_id`. `(user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverCreate: {\n summary: \"Grant a global permission to a user\",\n description: \"Grant a global permission to a user (the permission must be created first on the
|
|
1
|
+
{"version":3,"file":"project-permissions.js","names":[],"sources":["../../../../src/interface/crud/project-permissions.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupMixed, yupObject } from \"../../schema-fields\";\nimport { WebhookEvent } from \"../webhooks\";\n\n// =============== Project permissions =================\n\nexport const projectPermissionsCrudClientReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n user_id: schemaFields.userIdSchema.defined(),\n}).defined();\n\nexport const projectPermissionsCrudServerCreateSchema = yupObject({\n}).defined();\n\nexport const projectPermissionsCrudServerDeleteSchema = yupMixed();\n\nexport const projectPermissionsCrud = createCrud({\n clientReadSchema: projectPermissionsCrudClientReadSchema,\n serverCreateSchema: projectPermissionsCrudServerCreateSchema,\n serverDeleteSchema: projectPermissionsCrudServerDeleteSchema,\n docs: {\n clientList: {\n summary: \"List project permissions\",\n description: \"List global permissions of the current user. `user_id=me` must be set for client requests. `(user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverList: {\n summary: \"List project permissions\",\n description: \"Query and filter the permission with `user_id` and `permission_id`. `(user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverCreate: {\n summary: \"Grant a global permission to a user\",\n description: \"Grant a global permission to a user (the permission must be created first on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n serverDelete: {\n summary: \"Revoke a global permission from a user\",\n description: \"Revoke a global permission from a user\",\n tags: [\"Permissions\"],\n },\n },\n});\nexport type ProjectPermissionsCrud = CrudTypeOf<typeof projectPermissionsCrud>;\n\nexport const projectPermissionCreatedWebhookEvent = {\n type: \"project_permission.created\",\n schema: projectPermissionsCrud.server.readSchema,\n metadata: {\n summary: \"Project Permission Created\",\n description: \"This event is triggered when a project permission is created.\",\n tags: [\"Users\"],\n },\n} satisfies WebhookEvent<typeof projectPermissionsCrud.server.readSchema>;\n\nexport const projectPermissionDeletedWebhookEvent = {\n type: \"project_permission.deleted\",\n schema: projectPermissionsCrud.server.readSchema,\n metadata: {\n summary: \"Project Permission Deleted\",\n description: \"This event is triggered when a project permission is deleted.\",\n tags: [\"Users\"],\n },\n} satisfies WebhookEvent<typeof projectPermissionsCrud.server.readSchema>;\n\n// =============== Project permission definitions =================\n\nexport const projectPermissionDefinitionsCrudAdminReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.defined(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminCreateSchema = yupObject({\n id: schemaFields.customPermissionDefinitionIdSchema.defined(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminUpdateSchema = yupObject({\n id: schemaFields.customPermissionDefinitionIdSchema.optional(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminDeleteSchema = yupMixed();\n\nexport const projectPermissionDefinitionsCrud = createCrud({\n adminReadSchema: projectPermissionDefinitionsCrudAdminReadSchema,\n adminCreateSchema: projectPermissionDefinitionsCrudAdminCreateSchema,\n adminUpdateSchema: projectPermissionDefinitionsCrudAdminUpdateSchema,\n adminDeleteSchema: projectPermissionDefinitionsCrudAdminDeleteSchema,\n docs: {\n adminList: {\n summary: \"List project permission definitions\",\n description: \"Query and filter project permission definitions (the equivalent of listing permissions on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminCreate: {\n summary: \"Create a new project permission definition\",\n description: \"Create a new project permission definition (the equivalent of creating a new permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminUpdate: {\n summary: \"Update a project permission definition\",\n description: \"Update a project permission definition (the equivalent of updating a permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminDelete: {\n summary: \"Delete a project permission definition\",\n description: \"Delete a project permission definition (the equivalent of deleting a permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n },\n});\n\nexport type ProjectPermissionDefinitionsCrud = CrudTypeOf<typeof projectPermissionDefinitionsCrud>;\n"],"mappings":";;;;;AAOA,MAAa,yCAAyC,UAAU;CAC9D,IAAI,aAAa,6BAA6B,SAAS;CACvD,SAAS,aAAa,aAAa,SAAS;CAC7C,CAAC,CAAC,SAAS;AAEZ,MAAa,2CAA2C,UAAU,EACjE,CAAC,CAAC,SAAS;AAEZ,MAAa,2CAA2C,UAAU;AAElE,MAAa,yBAAyB,WAAW;CAC/C,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,MAAM;EACJ,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACF;CACF,CAAC;AAGF,MAAa,uCAAuC;CAClD,MAAM;CACN,QAAQ,uBAAuB,OAAO;CACtC,UAAU;EACR,SAAS;EACT,aAAa;EACb,MAAM,CAAC,QAAQ;EAChB;CACF;AAED,MAAa,uCAAuC;CAClD,MAAM;CACN,QAAQ,uBAAuB,OAAO;CACtC,UAAU;EACR,SAAS;EACT,aAAa;EACb,MAAM,CAAC,QAAQ;EAChB;CACF;AAID,MAAa,kDAAkD,UAAU;CACvE,IAAI,aAAa,6BAA6B,SAAS;CACvD,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,SAAS;CAC9E,CAAC,CAAC,SAAS;AAEZ,MAAa,oDAAoD,UAAU;CACzE,IAAI,aAAa,mCAAmC,SAAS;CAC7D,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,oDAAoD,UAAU;CACzE,IAAI,aAAa,mCAAmC,UAAU;CAC9D,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,oDAAoD,UAAU;AAE3E,MAAa,mCAAmC,WAAW;CACzD,iBAAiB;CACjB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,MAAM;EACJ,WAAW;GACT,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACF;CACF,CAAC"}
|
|
@@ -67,6 +67,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
67
67
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
68
68
|
provider_config_id: string;
|
|
69
69
|
}[];
|
|
70
|
+
domains: {
|
|
71
|
+
domain: string;
|
|
72
|
+
handler_path: string;
|
|
73
|
+
}[];
|
|
70
74
|
allow_localhost: boolean;
|
|
71
75
|
sign_up_enabled: boolean;
|
|
72
76
|
credential_enabled: boolean;
|
|
@@ -79,10 +83,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
79
83
|
enabled_oauth_providers: {
|
|
80
84
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
81
85
|
}[];
|
|
82
|
-
domains: {
|
|
83
|
-
domain: string;
|
|
84
|
-
handler_path: string;
|
|
85
|
-
}[];
|
|
86
86
|
email_config: {
|
|
87
87
|
password?: string | undefined;
|
|
88
88
|
host?: string | undefined;
|
|
@@ -159,6 +159,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
159
159
|
id: string;
|
|
160
160
|
display_name: string;
|
|
161
161
|
config: {
|
|
162
|
+
domains: {
|
|
163
|
+
domain: string;
|
|
164
|
+
handler_path: string;
|
|
165
|
+
}[];
|
|
162
166
|
allow_localhost: boolean;
|
|
163
167
|
sign_up_enabled: boolean;
|
|
164
168
|
credential_enabled: boolean;
|
|
@@ -171,10 +175,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
171
175
|
enabled_oauth_providers: {
|
|
172
176
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
173
177
|
}[];
|
|
174
|
-
domains: {
|
|
175
|
-
domain: string;
|
|
176
|
-
handler_path: string;
|
|
177
|
-
}[];
|
|
178
178
|
};
|
|
179
179
|
}, yup$1.AnyObject, {
|
|
180
180
|
id: undefined;
|
|
@@ -219,6 +219,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
219
219
|
type: "shared" | "standard";
|
|
220
220
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
221
221
|
}[] | undefined;
|
|
222
|
+
domains?: {
|
|
223
|
+
domain: string;
|
|
224
|
+
handler_path: string;
|
|
225
|
+
}[] | undefined;
|
|
222
226
|
allow_localhost?: boolean | undefined;
|
|
223
227
|
sign_up_enabled?: boolean | undefined;
|
|
224
228
|
credential_enabled?: boolean | undefined;
|
|
@@ -228,10 +232,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
228
232
|
client_user_deletion_enabled?: boolean | undefined;
|
|
229
233
|
allow_user_api_keys?: boolean | undefined;
|
|
230
234
|
allow_team_api_keys?: boolean | undefined;
|
|
231
|
-
domains?: {
|
|
232
|
-
domain: string;
|
|
233
|
-
handler_path: string;
|
|
234
|
-
}[] | undefined;
|
|
235
235
|
email_config?: {
|
|
236
236
|
password?: string | undefined;
|
|
237
237
|
host?: string | undefined;
|
|
@@ -299,6 +299,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
299
299
|
type: "shared" | "standard";
|
|
300
300
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
301
301
|
}[] | undefined;
|
|
302
|
+
domains?: {
|
|
303
|
+
domain: string;
|
|
304
|
+
handler_path: string;
|
|
305
|
+
}[] | undefined;
|
|
302
306
|
allow_localhost?: boolean | undefined;
|
|
303
307
|
sign_up_enabled?: boolean | undefined;
|
|
304
308
|
credential_enabled?: boolean | undefined;
|
|
@@ -308,10 +312,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
308
312
|
client_user_deletion_enabled?: boolean | undefined;
|
|
309
313
|
allow_user_api_keys?: boolean | undefined;
|
|
310
314
|
allow_team_api_keys?: boolean | undefined;
|
|
311
|
-
domains?: {
|
|
312
|
-
domain: string;
|
|
313
|
-
handler_path: string;
|
|
314
|
-
}[] | undefined;
|
|
315
315
|
email_config?: {
|
|
316
316
|
password?: string | undefined;
|
|
317
317
|
host?: string | undefined;
|
|
@@ -365,6 +365,10 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
365
365
|
id: string;
|
|
366
366
|
display_name: string;
|
|
367
367
|
config: {
|
|
368
|
+
domains: {
|
|
369
|
+
domain: string;
|
|
370
|
+
handler_path: string;
|
|
371
|
+
}[];
|
|
368
372
|
allow_localhost: boolean;
|
|
369
373
|
sign_up_enabled: boolean;
|
|
370
374
|
credential_enabled: boolean;
|
|
@@ -377,10 +381,6 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
377
381
|
enabled_oauth_providers: {
|
|
378
382
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
379
383
|
}[];
|
|
380
|
-
domains: {
|
|
381
|
-
domain: string;
|
|
382
|
-
handler_path: string;
|
|
383
|
-
}[];
|
|
384
384
|
};
|
|
385
385
|
}, yup$1.AnyObject, {
|
|
386
386
|
id: undefined;
|
|
@@ -440,6 +440,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
440
440
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
441
441
|
provider_config_id: string;
|
|
442
442
|
}[];
|
|
443
|
+
domains: {
|
|
444
|
+
domain: string;
|
|
445
|
+
handler_path: string;
|
|
446
|
+
}[];
|
|
443
447
|
allow_localhost: boolean;
|
|
444
448
|
sign_up_enabled: boolean;
|
|
445
449
|
credential_enabled: boolean;
|
|
@@ -452,10 +456,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
452
456
|
enabled_oauth_providers: {
|
|
453
457
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
454
458
|
}[];
|
|
455
|
-
domains: {
|
|
456
|
-
domain: string;
|
|
457
|
-
handler_path: string;
|
|
458
|
-
}[];
|
|
459
459
|
email_config: {
|
|
460
460
|
password?: string | undefined;
|
|
461
461
|
host?: string | undefined;
|
|
@@ -554,6 +554,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
554
554
|
type: "shared" | "standard";
|
|
555
555
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
556
556
|
}[] | undefined;
|
|
557
|
+
domains?: {
|
|
558
|
+
domain: string;
|
|
559
|
+
handler_path: string;
|
|
560
|
+
}[] | undefined;
|
|
557
561
|
allow_localhost?: boolean | undefined;
|
|
558
562
|
sign_up_enabled?: boolean | undefined;
|
|
559
563
|
credential_enabled?: boolean | undefined;
|
|
@@ -563,10 +567,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
563
567
|
client_user_deletion_enabled?: boolean | undefined;
|
|
564
568
|
allow_user_api_keys?: boolean | undefined;
|
|
565
569
|
allow_team_api_keys?: boolean | undefined;
|
|
566
|
-
domains?: {
|
|
567
|
-
domain: string;
|
|
568
|
-
handler_path: string;
|
|
569
|
-
}[] | undefined;
|
|
570
570
|
email_config?: {
|
|
571
571
|
password?: string | undefined;
|
|
572
572
|
host?: string | undefined;
|
|
@@ -663,6 +663,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
663
663
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
664
664
|
provider_config_id: string;
|
|
665
665
|
}[];
|
|
666
|
+
domains: {
|
|
667
|
+
domain: string;
|
|
668
|
+
handler_path: string;
|
|
669
|
+
}[];
|
|
666
670
|
allow_localhost: boolean;
|
|
667
671
|
sign_up_enabled: boolean;
|
|
668
672
|
credential_enabled: boolean;
|
|
@@ -675,10 +679,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
675
679
|
enabled_oauth_providers: {
|
|
676
680
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
677
681
|
}[];
|
|
678
|
-
domains: {
|
|
679
|
-
domain: string;
|
|
680
|
-
handler_path: string;
|
|
681
|
-
}[];
|
|
682
682
|
email_config: {
|
|
683
683
|
password?: string | undefined;
|
|
684
684
|
host?: string | undefined;
|
|
@@ -777,6 +777,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
777
777
|
type: "shared" | "standard";
|
|
778
778
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
779
779
|
}[] | undefined;
|
|
780
|
+
domains?: {
|
|
781
|
+
domain: string;
|
|
782
|
+
handler_path: string;
|
|
783
|
+
}[] | undefined;
|
|
780
784
|
allow_localhost?: boolean | undefined;
|
|
781
785
|
sign_up_enabled?: boolean | undefined;
|
|
782
786
|
credential_enabled?: boolean | undefined;
|
|
@@ -786,10 +790,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
786
790
|
client_user_deletion_enabled?: boolean | undefined;
|
|
787
791
|
allow_user_api_keys?: boolean | undefined;
|
|
788
792
|
allow_team_api_keys?: boolean | undefined;
|
|
789
|
-
domains?: {
|
|
790
|
-
domain: string;
|
|
791
|
-
handler_path: string;
|
|
792
|
-
}[] | undefined;
|
|
793
793
|
email_config?: {
|
|
794
794
|
password?: string | undefined;
|
|
795
795
|
host?: string | undefined;
|
|
@@ -21,40 +21,40 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
-
selected_team_id: string | null;
|
|
25
|
-
is_anonymous: boolean;
|
|
26
|
-
is_restricted: boolean;
|
|
27
24
|
restricted_reason: {
|
|
28
25
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
29
26
|
} | null;
|
|
27
|
+
primary_email: string | null;
|
|
28
|
+
selected_team_id: string | null;
|
|
29
|
+
is_anonymous: boolean;
|
|
30
|
+
is_restricted: boolean;
|
|
30
31
|
requires_totp_mfa: boolean;
|
|
31
32
|
id: string;
|
|
32
|
-
country_code: string | null;
|
|
33
33
|
display_name: string | null;
|
|
34
|
-
primary_email: string | null;
|
|
35
|
-
profile_image_url: string | null;
|
|
36
|
-
signed_up_at_millis: number;
|
|
37
|
-
last_active_at_millis: number;
|
|
38
34
|
client_metadata: {} | null;
|
|
39
35
|
client_read_only_metadata: {} | null;
|
|
40
36
|
server_metadata: {} | null;
|
|
41
37
|
primary_email_verified: boolean;
|
|
42
38
|
primary_email_auth_enabled: boolean;
|
|
39
|
+
profile_image_url: string | null;
|
|
43
40
|
selected_team: {
|
|
44
41
|
client_metadata?: {} | null | undefined;
|
|
45
42
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
43
|
server_metadata?: {} | null | undefined;
|
|
47
44
|
id: string;
|
|
48
|
-
created_at_millis: number;
|
|
49
45
|
display_name: string;
|
|
50
46
|
profile_image_url: string | null;
|
|
47
|
+
created_at_millis: number;
|
|
51
48
|
} | null;
|
|
49
|
+
signed_up_at_millis: number;
|
|
52
50
|
has_password: boolean;
|
|
53
51
|
otp_auth_enabled: boolean;
|
|
54
52
|
passkey_auth_enabled: boolean;
|
|
53
|
+
last_active_at_millis: number;
|
|
55
54
|
restricted_by_admin: boolean;
|
|
56
55
|
restricted_by_admin_reason: string | null;
|
|
57
56
|
restricted_by_admin_private_details: string | null;
|
|
57
|
+
country_code: string | null;
|
|
58
58
|
risk_scores: {
|
|
59
59
|
sign_up: {
|
|
60
60
|
bot: number;
|
|
@@ -144,40 +144,40 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
-
selected_team_id: string | null;
|
|
148
|
-
is_anonymous: boolean;
|
|
149
|
-
is_restricted: boolean;
|
|
150
147
|
restricted_reason: {
|
|
151
148
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
152
149
|
} | null;
|
|
150
|
+
primary_email: string | null;
|
|
151
|
+
selected_team_id: string | null;
|
|
152
|
+
is_anonymous: boolean;
|
|
153
|
+
is_restricted: boolean;
|
|
153
154
|
requires_totp_mfa: boolean;
|
|
154
155
|
id: string;
|
|
155
|
-
country_code: string | null;
|
|
156
156
|
display_name: string | null;
|
|
157
|
-
primary_email: string | null;
|
|
158
|
-
profile_image_url: string | null;
|
|
159
|
-
signed_up_at_millis: number;
|
|
160
|
-
last_active_at_millis: number;
|
|
161
157
|
client_metadata: {} | null;
|
|
162
158
|
client_read_only_metadata: {} | null;
|
|
163
159
|
server_metadata: {} | null;
|
|
164
160
|
primary_email_verified: boolean;
|
|
165
161
|
primary_email_auth_enabled: boolean;
|
|
162
|
+
profile_image_url: string | null;
|
|
166
163
|
selected_team: {
|
|
167
164
|
client_metadata?: {} | null | undefined;
|
|
168
165
|
client_read_only_metadata?: {} | null | undefined;
|
|
169
166
|
server_metadata?: {} | null | undefined;
|
|
170
167
|
id: string;
|
|
171
|
-
created_at_millis: number;
|
|
172
168
|
display_name: string;
|
|
173
169
|
profile_image_url: string | null;
|
|
170
|
+
created_at_millis: number;
|
|
174
171
|
} | null;
|
|
172
|
+
signed_up_at_millis: number;
|
|
175
173
|
has_password: boolean;
|
|
176
174
|
otp_auth_enabled: boolean;
|
|
177
175
|
passkey_auth_enabled: boolean;
|
|
176
|
+
last_active_at_millis: number;
|
|
178
177
|
restricted_by_admin: boolean;
|
|
179
178
|
restricted_by_admin_reason: string | null;
|
|
180
179
|
restricted_by_admin_private_details: string | null;
|
|
180
|
+
country_code: string | null;
|
|
181
181
|
risk_scores: {
|
|
182
182
|
sign_up: {
|
|
183
183
|
bot: number;
|
|
@@ -27,7 +27,7 @@ const teamPermissionsCrud = createCrud({
|
|
|
27
27
|
},
|
|
28
28
|
serverCreate: {
|
|
29
29
|
summary: "Grant a team permission to a user",
|
|
30
|
-
description: "Grant a team permission to a user (the team permission must be created first on the
|
|
30
|
+
description: "Grant a team permission to a user (the team permission must be created first on the Hexclave dashboard)",
|
|
31
31
|
tags: ["Permissions"]
|
|
32
32
|
},
|
|
33
33
|
serverDelete: {
|
|
@@ -79,22 +79,22 @@ const teamPermissionDefinitionsCrud = createCrud({
|
|
|
79
79
|
docs: {
|
|
80
80
|
adminList: {
|
|
81
81
|
summary: "List team permission definitions",
|
|
82
|
-
description: "Query and filter the permission with team_id, user_id, and permission_id (the equivalent of listing permissions on the
|
|
82
|
+
description: "Query and filter the permission with team_id, user_id, and permission_id (the equivalent of listing permissions on the Hexclave dashboard)",
|
|
83
83
|
tags: ["Permissions"]
|
|
84
84
|
},
|
|
85
85
|
adminCreate: {
|
|
86
86
|
summary: "Create a new team permission definition",
|
|
87
|
-
description: "Create a new permission definition (the equivalent of creating a new permission on the
|
|
87
|
+
description: "Create a new permission definition (the equivalent of creating a new permission on the Hexclave dashboard)",
|
|
88
88
|
tags: ["Permissions"]
|
|
89
89
|
},
|
|
90
90
|
adminUpdate: {
|
|
91
91
|
summary: "Update a team permission definition",
|
|
92
|
-
description: "Update a permission definition (the equivalent of updating a permission on the
|
|
92
|
+
description: "Update a permission definition (the equivalent of updating a permission on the Hexclave dashboard)",
|
|
93
93
|
tags: ["Permissions"]
|
|
94
94
|
},
|
|
95
95
|
adminDelete: {
|
|
96
96
|
summary: "Delete a team permission definition",
|
|
97
|
-
description: "Delete a permission definition (the equivalent of deleting a permission on the
|
|
97
|
+
description: "Delete a permission definition (the equivalent of deleting a permission on the Hexclave dashboard)",
|
|
98
98
|
tags: ["Permissions"]
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-permissions.js","names":[],"sources":["../../../../src/interface/crud/team-permissions.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupMixed, yupObject } from \"../../schema-fields\";\nimport { WebhookEvent } from \"../webhooks\";\n\n// =============== Team permissions =================\n\nexport const teamPermissionsCrudClientReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n user_id: schemaFields.userIdSchema.defined(),\n team_id: schemaFields.teamIdSchema.defined(),\n}).defined();\n\nexport const teamPermissionsCrudServerCreateSchema = yupObject({\n}).defined();\n\nexport const teamPermissionsCrudServerDeleteSchema = yupMixed();\n\nexport const teamPermissionsCrud = createCrud({\n clientReadSchema: teamPermissionsCrudClientReadSchema,\n serverCreateSchema: teamPermissionsCrudServerCreateSchema,\n serverDeleteSchema: teamPermissionsCrudServerDeleteSchema,\n docs: {\n clientList: {\n summary: \"List team permissions\",\n description: \"List team permissions of the current user. `user_id=me` must be set for client requests. Note that this might contain the permissions with the same permission ID across different teams. `(team_id, user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverList: {\n summary: \"List team permissions of a user\",\n description: \"Query and filter the permission with `team_id`, `user_id`, and `permission_id`. Note that this might contain the permissions with the same permission ID across different teams and users. `(team_id, user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverCreate: {\n summary: \"Grant a team permission to a user\",\n description: \"Grant a team permission to a user (the team permission must be created first on the
|
|
1
|
+
{"version":3,"file":"team-permissions.js","names":[],"sources":["../../../../src/interface/crud/team-permissions.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupMixed, yupObject } from \"../../schema-fields\";\nimport { WebhookEvent } from \"../webhooks\";\n\n// =============== Team permissions =================\n\nexport const teamPermissionsCrudClientReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n user_id: schemaFields.userIdSchema.defined(),\n team_id: schemaFields.teamIdSchema.defined(),\n}).defined();\n\nexport const teamPermissionsCrudServerCreateSchema = yupObject({\n}).defined();\n\nexport const teamPermissionsCrudServerDeleteSchema = yupMixed();\n\nexport const teamPermissionsCrud = createCrud({\n clientReadSchema: teamPermissionsCrudClientReadSchema,\n serverCreateSchema: teamPermissionsCrudServerCreateSchema,\n serverDeleteSchema: teamPermissionsCrudServerDeleteSchema,\n docs: {\n clientList: {\n summary: \"List team permissions\",\n description: \"List team permissions of the current user. `user_id=me` must be set for client requests. Note that this might contain the permissions with the same permission ID across different teams. `(team_id, user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverList: {\n summary: \"List team permissions of a user\",\n description: \"Query and filter the permission with `team_id`, `user_id`, and `permission_id`. Note that this might contain the permissions with the same permission ID across different teams and users. `(team_id, user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverCreate: {\n summary: \"Grant a team permission to a user\",\n description: \"Grant a team permission to a user (the team permission must be created first on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n serverDelete: {\n summary: \"Revoke a team permission from a user\",\n description: \"Revoke a team permission from a user\",\n tags: [\"Permissions\"],\n },\n },\n});\nexport type TeamPermissionsCrud = CrudTypeOf<typeof teamPermissionsCrud>;\n\nexport const teamPermissionCreatedWebhookEvent = {\n type: \"team_permission.created\",\n schema: teamPermissionsCrud.server.readSchema,\n metadata: {\n summary: \"Team Permission Created\",\n description: \"This event is triggered when a team permission is created.\",\n tags: [\"Teams\"],\n },\n} satisfies WebhookEvent<typeof teamPermissionsCrud.server.readSchema>;\n\nexport const teamPermissionDeletedWebhookEvent = {\n type: \"team_permission.deleted\",\n schema: teamPermissionsCrud.server.readSchema,\n metadata: {\n summary: \"Team Permission Deleted\",\n description: \"This event is triggered when a team permission is deleted.\",\n tags: [\"Teams\"],\n },\n} satisfies WebhookEvent<typeof teamPermissionsCrud.server.readSchema>;\n\n// =============== Team permission definitions =================\n\nexport const teamPermissionDefinitionsCrudAdminReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.defined(),\n}).defined();\n\nexport const teamPermissionDefinitionsCrudAdminCreateSchema = yupObject({\n id: schemaFields.customPermissionDefinitionIdSchema.defined(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional(),\n}).defined();\n\nexport const teamPermissionDefinitionsCrudAdminUpdateSchema = yupObject({\n id: schemaFields.customPermissionDefinitionIdSchema.optional(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional(),\n}).defined();\n\nexport const teamPermissionDefinitionsCrudAdminDeleteSchema = yupMixed();\n\nexport const teamPermissionDefinitionsCrud = createCrud({\n adminReadSchema: teamPermissionDefinitionsCrudAdminReadSchema,\n adminCreateSchema: teamPermissionDefinitionsCrudAdminCreateSchema,\n adminUpdateSchema: teamPermissionDefinitionsCrudAdminUpdateSchema,\n adminDeleteSchema: teamPermissionDefinitionsCrudAdminDeleteSchema,\n docs: {\n adminList: {\n summary: \"List team permission definitions\",\n description: \"Query and filter the permission with team_id, user_id, and permission_id (the equivalent of listing permissions on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminCreate: {\n summary: \"Create a new team permission definition\",\n description: \"Create a new permission definition (the equivalent of creating a new permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminUpdate: {\n summary: \"Update a team permission definition\",\n description: \"Update a permission definition (the equivalent of updating a permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminDelete: {\n summary: \"Delete a team permission definition\",\n description: \"Delete a permission definition (the equivalent of deleting a permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n },\n});\n\nexport type TeamPermissionDefinitionsCrud = CrudTypeOf<typeof teamPermissionDefinitionsCrud>;\n"],"mappings":";;;;;AAOA,MAAa,sCAAsC,UAAU;CAC3D,IAAI,aAAa,6BAA6B,SAAS;CACvD,SAAS,aAAa,aAAa,SAAS;CAC5C,SAAS,aAAa,aAAa,SAAS;CAC7C,CAAC,CAAC,SAAS;AAEZ,MAAa,wCAAwC,UAAU,EAC9D,CAAC,CAAC,SAAS;AAEZ,MAAa,wCAAwC,UAAU;AAE/D,MAAa,sBAAsB,WAAW;CAC5C,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,MAAM;EACJ,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACF;CACF,CAAC;AAGF,MAAa,oCAAoC;CAC/C,MAAM;CACN,QAAQ,oBAAoB,OAAO;CACnC,UAAU;EACR,SAAS;EACT,aAAa;EACb,MAAM,CAAC,QAAQ;EAChB;CACF;AAED,MAAa,oCAAoC;CAC/C,MAAM;CACN,QAAQ,oBAAoB,OAAO;CACnC,UAAU;EACR,SAAS;EACT,aAAa;EACb,MAAM,CAAC,QAAQ;EAChB;CACF;AAID,MAAa,+CAA+C,UAAU;CACpE,IAAI,aAAa,6BAA6B,SAAS;CACvD,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,SAAS;CAC9E,CAAC,CAAC,SAAS;AAEZ,MAAa,iDAAiD,UAAU;CACtE,IAAI,aAAa,mCAAmC,SAAS;CAC7D,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,iDAAiD,UAAU;CACtE,IAAI,aAAa,mCAAmC,UAAU;CAC9D,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,iDAAiD,UAAU;AAExE,MAAa,gCAAgC,WAAW;CACtD,iBAAiB;CACjB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,MAAM;EACJ,WAAW;GACT,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACF;CACF,CAAC"}
|
|
@@ -38,11 +38,10 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
38
38
|
quantity: number;
|
|
39
39
|
customer_type: "team" | "user" | "custom";
|
|
40
40
|
product: {
|
|
41
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
41
42
|
client_metadata?: {} | null | undefined;
|
|
42
43
|
client_read_only_metadata?: {} | null | undefined;
|
|
43
44
|
server_metadata?: {} | null | undefined;
|
|
44
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
45
|
-
display_name: string;
|
|
46
45
|
server_only: boolean;
|
|
47
46
|
customer_type: "team" | "user" | "custom";
|
|
48
47
|
stackable: boolean;
|
|
@@ -57,9 +56,10 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
57
56
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
58
57
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
59
58
|
}>;
|
|
59
|
+
display_name: string;
|
|
60
60
|
included_items: Record<string, {
|
|
61
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
62
61
|
quantity?: number | undefined;
|
|
62
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
63
63
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
};
|
|
@@ -122,11 +122,10 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
122
122
|
quantity: number;
|
|
123
123
|
customer_type: "team" | "user" | "custom";
|
|
124
124
|
product: {
|
|
125
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
125
126
|
client_metadata?: {} | null | undefined;
|
|
126
127
|
client_read_only_metadata?: {} | null | undefined;
|
|
127
128
|
server_metadata?: {} | null | undefined;
|
|
128
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
129
|
-
display_name: string;
|
|
130
129
|
server_only: boolean;
|
|
131
130
|
customer_type: "team" | "user" | "custom";
|
|
132
131
|
stackable: boolean;
|
|
@@ -141,9 +140,10 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
141
140
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
142
141
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
143
142
|
}>;
|
|
143
|
+
display_name: string;
|
|
144
144
|
included_items: Record<string, {
|
|
145
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
146
145
|
quantity?: number | undefined;
|
|
146
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
147
147
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
148
148
|
}>;
|
|
149
149
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
|