@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?: 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?: 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?: DayInterval | undefined;
|
|
26
25
|
free_trial?: DayInterval | undefined;
|
|
27
26
|
}>;
|
|
27
|
+
display_name: string;
|
|
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
|
};
|
|
@@ -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?: 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?: 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?: DayInterval | undefined;
|
|
61
60
|
free_trial?: DayInterval | undefined;
|
|
62
61
|
}>;
|
|
62
|
+
display_name: string;
|
|
63
63
|
included_items: Record<string, {
|
|
64
|
-
repeat?: "never" | DayInterval | undefined;
|
|
65
64
|
quantity?: number | undefined;
|
|
65
|
+
repeat?: "never" | 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?: 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?: 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?: DayInterval | undefined;
|
|
124
123
|
free_trial?: DayInterval | undefined;
|
|
125
124
|
}>;
|
|
125
|
+
display_name: string;
|
|
126
126
|
included_items: Record<string, {
|
|
127
|
-
repeat?: "never" | DayInterval | undefined;
|
|
128
127
|
quantity?: number | undefined;
|
|
128
|
+
repeat?: "never" | 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?: 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?: 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?: DayInterval | undefined;
|
|
153
152
|
free_trial?: DayInterval | undefined;
|
|
154
153
|
}>;
|
|
154
|
+
display_name: string;
|
|
155
155
|
included_items: Record<string, {
|
|
156
|
-
repeat?: "never" | DayInterval | undefined;
|
|
157
156
|
quantity?: number | undefined;
|
|
157
|
+
repeat?: "never" | 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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -78,11 +78,11 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
78
78
|
is_public: undefined;
|
|
79
79
|
user_id: undefined;
|
|
80
80
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
81
|
-
|
|
81
|
+
user_id: string;
|
|
82
82
|
type: "user";
|
|
83
83
|
id: string;
|
|
84
|
+
description: string;
|
|
84
85
|
created_at_millis: number;
|
|
85
|
-
user_id: string;
|
|
86
86
|
expires_at_millis: number | undefined;
|
|
87
87
|
manually_revoked_at_millis: number | undefined;
|
|
88
88
|
is_public: boolean;
|
|
@@ -176,11 +176,11 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
176
176
|
is_public: undefined;
|
|
177
177
|
team_id: undefined;
|
|
178
178
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
179
|
-
description: string;
|
|
180
179
|
type: "team";
|
|
180
|
+
team_id: string;
|
|
181
181
|
id: string;
|
|
182
|
+
description: string;
|
|
182
183
|
created_at_millis: number;
|
|
183
|
-
team_id: string;
|
|
184
184
|
expires_at_millis: number | undefined;
|
|
185
185
|
manually_revoked_at_millis: number | undefined;
|
|
186
186
|
is_public: boolean;
|
|
@@ -28,7 +28,7 @@ const projectPermissionsCrud = (0, ______crud_js.createCrud)({
|
|
|
28
28
|
},
|
|
29
29
|
serverCreate: {
|
|
30
30
|
summary: "Grant a global permission to a user",
|
|
31
|
-
description: "Grant a global permission to a user (the permission must be created first on the
|
|
31
|
+
description: "Grant a global permission to a user (the permission must be created first on the Hexclave dashboard)",
|
|
32
32
|
tags: ["Permissions"]
|
|
33
33
|
},
|
|
34
34
|
serverDelete: {
|
|
@@ -80,22 +80,22 @@ const projectPermissionDefinitionsCrud = (0, ______crud_js.createCrud)({
|
|
|
80
80
|
docs: {
|
|
81
81
|
adminList: {
|
|
82
82
|
summary: "List project permission definitions",
|
|
83
|
-
description: "Query and filter project permission definitions (the equivalent of listing permissions on the
|
|
83
|
+
description: "Query and filter project permission definitions (the equivalent of listing permissions on the Hexclave dashboard)",
|
|
84
84
|
tags: ["Permissions"]
|
|
85
85
|
},
|
|
86
86
|
adminCreate: {
|
|
87
87
|
summary: "Create a new project permission definition",
|
|
88
|
-
description: "Create a new project permission definition (the equivalent of creating a new permission on the
|
|
88
|
+
description: "Create a new project permission definition (the equivalent of creating a new permission on the Hexclave dashboard)",
|
|
89
89
|
tags: ["Permissions"]
|
|
90
90
|
},
|
|
91
91
|
adminUpdate: {
|
|
92
92
|
summary: "Update a project permission definition",
|
|
93
|
-
description: "Update a project permission definition (the equivalent of updating a permission on the
|
|
93
|
+
description: "Update a project permission definition (the equivalent of updating a permission on the Hexclave dashboard)",
|
|
94
94
|
tags: ["Permissions"]
|
|
95
95
|
},
|
|
96
96
|
adminDelete: {
|
|
97
97
|
summary: "Delete a project permission definition",
|
|
98
|
-
description: "Delete a project permission definition (the equivalent of deleting a permission on the
|
|
98
|
+
description: "Delete a project permission definition (the equivalent of deleting a permission on the Hexclave dashboard)",
|
|
99
99
|
tags: ["Permissions"]
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-permissions.js","names":["schemaFields"],"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":["schemaFields"],"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,+EAAmD;CAC9D,IAAIA,uBAAa,6BAA6B,SAAS;CACvD,SAASA,uBAAa,aAAa,SAAS;CAC7C,CAAC,CAAC,SAAS;AAEZ,MAAa,iFAAqD,EACjE,CAAC,CAAC,SAAS;AAEZ,MAAa,iFAAqD;AAElE,MAAa,uDAAoC;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,wFAA4D;CACvE,IAAIA,uBAAa,6BAA6B,SAAS;CACvD,aAAaA,uBAAa,gCAAgC,UAAU;CACpE,0BAA0BA,uBAAa,6BAA6B,SAAS;CAC9E,CAAC,CAAC,SAAS;AAEZ,MAAa,0FAA8D;CACzE,IAAIA,uBAAa,mCAAmC,SAAS;CAC7D,aAAaA,uBAAa,gCAAgC,UAAU;CACpE,0BAA0BA,uBAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,0FAA8D;CACzE,IAAIA,uBAAa,mCAAmC,UAAU;CAC9D,aAAaA,uBAAa,gCAAgC,UAAU;CACpE,0BAA0BA,uBAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,0FAA8D;AAE3E,MAAa,iEAA8C;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"}
|
|
@@ -66,6 +66,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
66
66
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
67
67
|
provider_config_id: string;
|
|
68
68
|
}[];
|
|
69
|
+
domains: {
|
|
70
|
+
domain: string;
|
|
71
|
+
handler_path: string;
|
|
72
|
+
}[];
|
|
69
73
|
allow_localhost: boolean;
|
|
70
74
|
sign_up_enabled: boolean;
|
|
71
75
|
credential_enabled: boolean;
|
|
@@ -78,10 +82,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
78
82
|
enabled_oauth_providers: {
|
|
79
83
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
80
84
|
}[];
|
|
81
|
-
domains: {
|
|
82
|
-
domain: string;
|
|
83
|
-
handler_path: string;
|
|
84
|
-
}[];
|
|
85
85
|
email_config: {
|
|
86
86
|
password?: string | undefined;
|
|
87
87
|
host?: string | undefined;
|
|
@@ -158,6 +158,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
158
158
|
id: string;
|
|
159
159
|
display_name: string;
|
|
160
160
|
config: {
|
|
161
|
+
domains: {
|
|
162
|
+
domain: string;
|
|
163
|
+
handler_path: string;
|
|
164
|
+
}[];
|
|
161
165
|
allow_localhost: boolean;
|
|
162
166
|
sign_up_enabled: boolean;
|
|
163
167
|
credential_enabled: boolean;
|
|
@@ -170,10 +174,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
170
174
|
enabled_oauth_providers: {
|
|
171
175
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
172
176
|
}[];
|
|
173
|
-
domains: {
|
|
174
|
-
domain: string;
|
|
175
|
-
handler_path: string;
|
|
176
|
-
}[];
|
|
177
177
|
};
|
|
178
178
|
}, yup$1.AnyObject, {
|
|
179
179
|
id: undefined;
|
|
@@ -218,6 +218,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
218
218
|
type: "shared" | "standard";
|
|
219
219
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
220
220
|
}[] | undefined;
|
|
221
|
+
domains?: {
|
|
222
|
+
domain: string;
|
|
223
|
+
handler_path: string;
|
|
224
|
+
}[] | undefined;
|
|
221
225
|
allow_localhost?: boolean | undefined;
|
|
222
226
|
sign_up_enabled?: boolean | undefined;
|
|
223
227
|
credential_enabled?: boolean | undefined;
|
|
@@ -227,10 +231,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
227
231
|
client_user_deletion_enabled?: boolean | undefined;
|
|
228
232
|
allow_user_api_keys?: boolean | undefined;
|
|
229
233
|
allow_team_api_keys?: boolean | undefined;
|
|
230
|
-
domains?: {
|
|
231
|
-
domain: string;
|
|
232
|
-
handler_path: string;
|
|
233
|
-
}[] | undefined;
|
|
234
234
|
email_config?: {
|
|
235
235
|
password?: string | undefined;
|
|
236
236
|
host?: string | undefined;
|
|
@@ -298,6 +298,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
298
298
|
type: "shared" | "standard";
|
|
299
299
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
300
300
|
}[] | undefined;
|
|
301
|
+
domains?: {
|
|
302
|
+
domain: string;
|
|
303
|
+
handler_path: string;
|
|
304
|
+
}[] | undefined;
|
|
301
305
|
allow_localhost?: boolean | undefined;
|
|
302
306
|
sign_up_enabled?: boolean | undefined;
|
|
303
307
|
credential_enabled?: boolean | undefined;
|
|
@@ -307,10 +311,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
307
311
|
client_user_deletion_enabled?: boolean | undefined;
|
|
308
312
|
allow_user_api_keys?: boolean | undefined;
|
|
309
313
|
allow_team_api_keys?: boolean | undefined;
|
|
310
|
-
domains?: {
|
|
311
|
-
domain: string;
|
|
312
|
-
handler_path: string;
|
|
313
|
-
}[] | undefined;
|
|
314
314
|
email_config?: {
|
|
315
315
|
password?: string | undefined;
|
|
316
316
|
host?: string | undefined;
|
|
@@ -364,6 +364,10 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
364
364
|
id: string;
|
|
365
365
|
display_name: string;
|
|
366
366
|
config: {
|
|
367
|
+
domains: {
|
|
368
|
+
domain: string;
|
|
369
|
+
handler_path: string;
|
|
370
|
+
}[];
|
|
367
371
|
allow_localhost: boolean;
|
|
368
372
|
sign_up_enabled: boolean;
|
|
369
373
|
credential_enabled: boolean;
|
|
@@ -376,10 +380,6 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
376
380
|
enabled_oauth_providers: {
|
|
377
381
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
378
382
|
}[];
|
|
379
|
-
domains: {
|
|
380
|
-
domain: string;
|
|
381
|
-
handler_path: string;
|
|
382
|
-
}[];
|
|
383
383
|
};
|
|
384
384
|
}, yup$1.AnyObject, {
|
|
385
385
|
id: undefined;
|
|
@@ -439,6 +439,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
439
439
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
440
440
|
provider_config_id: string;
|
|
441
441
|
}[];
|
|
442
|
+
domains: {
|
|
443
|
+
domain: string;
|
|
444
|
+
handler_path: string;
|
|
445
|
+
}[];
|
|
442
446
|
allow_localhost: boolean;
|
|
443
447
|
sign_up_enabled: boolean;
|
|
444
448
|
credential_enabled: boolean;
|
|
@@ -451,10 +455,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
451
455
|
enabled_oauth_providers: {
|
|
452
456
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
453
457
|
}[];
|
|
454
|
-
domains: {
|
|
455
|
-
domain: string;
|
|
456
|
-
handler_path: string;
|
|
457
|
-
}[];
|
|
458
458
|
email_config: {
|
|
459
459
|
password?: string | undefined;
|
|
460
460
|
host?: string | undefined;
|
|
@@ -553,6 +553,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
553
553
|
type: "shared" | "standard";
|
|
554
554
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
555
555
|
}[] | undefined;
|
|
556
|
+
domains?: {
|
|
557
|
+
domain: string;
|
|
558
|
+
handler_path: string;
|
|
559
|
+
}[] | undefined;
|
|
556
560
|
allow_localhost?: boolean | undefined;
|
|
557
561
|
sign_up_enabled?: boolean | undefined;
|
|
558
562
|
credential_enabled?: boolean | undefined;
|
|
@@ -562,10 +566,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
562
566
|
client_user_deletion_enabled?: boolean | undefined;
|
|
563
567
|
allow_user_api_keys?: boolean | undefined;
|
|
564
568
|
allow_team_api_keys?: boolean | undefined;
|
|
565
|
-
domains?: {
|
|
566
|
-
domain: string;
|
|
567
|
-
handler_path: string;
|
|
568
|
-
}[] | undefined;
|
|
569
569
|
email_config?: {
|
|
570
570
|
password?: string | undefined;
|
|
571
571
|
host?: string | undefined;
|
|
@@ -662,6 +662,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
662
662
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
663
663
|
provider_config_id: string;
|
|
664
664
|
}[];
|
|
665
|
+
domains: {
|
|
666
|
+
domain: string;
|
|
667
|
+
handler_path: string;
|
|
668
|
+
}[];
|
|
665
669
|
allow_localhost: boolean;
|
|
666
670
|
sign_up_enabled: boolean;
|
|
667
671
|
credential_enabled: boolean;
|
|
@@ -674,10 +678,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
674
678
|
enabled_oauth_providers: {
|
|
675
679
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
676
680
|
}[];
|
|
677
|
-
domains: {
|
|
678
|
-
domain: string;
|
|
679
|
-
handler_path: string;
|
|
680
|
-
}[];
|
|
681
681
|
email_config: {
|
|
682
682
|
password?: string | undefined;
|
|
683
683
|
host?: string | undefined;
|
|
@@ -776,6 +776,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
776
776
|
type: "shared" | "standard";
|
|
777
777
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
778
778
|
}[] | undefined;
|
|
779
|
+
domains?: {
|
|
780
|
+
domain: string;
|
|
781
|
+
handler_path: string;
|
|
782
|
+
}[] | undefined;
|
|
779
783
|
allow_localhost?: boolean | undefined;
|
|
780
784
|
sign_up_enabled?: boolean | undefined;
|
|
781
785
|
credential_enabled?: boolean | undefined;
|
|
@@ -785,10 +789,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
785
789
|
client_user_deletion_enabled?: boolean | undefined;
|
|
786
790
|
allow_user_api_keys?: boolean | undefined;
|
|
787
791
|
allow_team_api_keys?: boolean | undefined;
|
|
788
|
-
domains?: {
|
|
789
|
-
domain: string;
|
|
790
|
-
handler_path: string;
|
|
791
|
-
}[] | undefined;
|
|
792
792
|
email_config?: {
|
|
793
793
|
password?: string | undefined;
|
|
794
794
|
host?: string | undefined;
|
|
@@ -20,40 +20,40 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
20
20
|
profile_image_url: string | null;
|
|
21
21
|
} & {
|
|
22
22
|
user: {
|
|
23
|
-
selected_team_id: string | null;
|
|
24
|
-
is_anonymous: boolean;
|
|
25
|
-
is_restricted: boolean;
|
|
26
23
|
restricted_reason: {
|
|
27
24
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
28
25
|
} | null;
|
|
26
|
+
primary_email: string | null;
|
|
27
|
+
selected_team_id: string | null;
|
|
28
|
+
is_anonymous: boolean;
|
|
29
|
+
is_restricted: boolean;
|
|
29
30
|
requires_totp_mfa: boolean;
|
|
30
31
|
id: string;
|
|
31
|
-
country_code: string | null;
|
|
32
32
|
display_name: string | null;
|
|
33
|
-
primary_email: string | null;
|
|
34
|
-
profile_image_url: string | null;
|
|
35
|
-
signed_up_at_millis: number;
|
|
36
|
-
last_active_at_millis: number;
|
|
37
33
|
client_metadata: {} | null;
|
|
38
34
|
client_read_only_metadata: {} | null;
|
|
39
35
|
server_metadata: {} | null;
|
|
40
36
|
primary_email_verified: boolean;
|
|
41
37
|
primary_email_auth_enabled: boolean;
|
|
38
|
+
profile_image_url: string | null;
|
|
42
39
|
selected_team: {
|
|
43
40
|
client_metadata?: {} | null | undefined;
|
|
44
41
|
client_read_only_metadata?: {} | null | undefined;
|
|
45
42
|
server_metadata?: {} | null | undefined;
|
|
46
43
|
id: string;
|
|
47
|
-
created_at_millis: number;
|
|
48
44
|
display_name: string;
|
|
49
45
|
profile_image_url: string | null;
|
|
46
|
+
created_at_millis: number;
|
|
50
47
|
} | null;
|
|
48
|
+
signed_up_at_millis: number;
|
|
51
49
|
has_password: boolean;
|
|
52
50
|
otp_auth_enabled: boolean;
|
|
53
51
|
passkey_auth_enabled: boolean;
|
|
52
|
+
last_active_at_millis: number;
|
|
54
53
|
restricted_by_admin: boolean;
|
|
55
54
|
restricted_by_admin_reason: string | null;
|
|
56
55
|
restricted_by_admin_private_details: string | null;
|
|
56
|
+
country_code: string | null;
|
|
57
57
|
risk_scores: {
|
|
58
58
|
sign_up: {
|
|
59
59
|
bot: number;
|
|
@@ -143,40 +143,40 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
143
143
|
profile_image_url: string | null;
|
|
144
144
|
} & {
|
|
145
145
|
user: {
|
|
146
|
-
selected_team_id: string | null;
|
|
147
|
-
is_anonymous: boolean;
|
|
148
|
-
is_restricted: boolean;
|
|
149
146
|
restricted_reason: {
|
|
150
147
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
151
148
|
} | null;
|
|
149
|
+
primary_email: string | null;
|
|
150
|
+
selected_team_id: string | null;
|
|
151
|
+
is_anonymous: boolean;
|
|
152
|
+
is_restricted: boolean;
|
|
152
153
|
requires_totp_mfa: boolean;
|
|
153
154
|
id: string;
|
|
154
|
-
country_code: string | null;
|
|
155
155
|
display_name: string | null;
|
|
156
|
-
primary_email: string | null;
|
|
157
|
-
profile_image_url: string | null;
|
|
158
|
-
signed_up_at_millis: number;
|
|
159
|
-
last_active_at_millis: number;
|
|
160
156
|
client_metadata: {} | null;
|
|
161
157
|
client_read_only_metadata: {} | null;
|
|
162
158
|
server_metadata: {} | null;
|
|
163
159
|
primary_email_verified: boolean;
|
|
164
160
|
primary_email_auth_enabled: boolean;
|
|
161
|
+
profile_image_url: string | null;
|
|
165
162
|
selected_team: {
|
|
166
163
|
client_metadata?: {} | null | undefined;
|
|
167
164
|
client_read_only_metadata?: {} | null | undefined;
|
|
168
165
|
server_metadata?: {} | null | undefined;
|
|
169
166
|
id: string;
|
|
170
|
-
created_at_millis: number;
|
|
171
167
|
display_name: string;
|
|
172
168
|
profile_image_url: string | null;
|
|
169
|
+
created_at_millis: number;
|
|
173
170
|
} | null;
|
|
171
|
+
signed_up_at_millis: number;
|
|
174
172
|
has_password: boolean;
|
|
175
173
|
otp_auth_enabled: boolean;
|
|
176
174
|
passkey_auth_enabled: boolean;
|
|
175
|
+
last_active_at_millis: number;
|
|
177
176
|
restricted_by_admin: boolean;
|
|
178
177
|
restricted_by_admin_reason: string | null;
|
|
179
178
|
restricted_by_admin_private_details: string | null;
|
|
179
|
+
country_code: string | null;
|
|
180
180
|
risk_scores: {
|
|
181
181
|
sign_up: {
|
|
182
182
|
bot: number;
|
|
@@ -29,7 +29,7 @@ const teamPermissionsCrud = (0, ______crud_js.createCrud)({
|
|
|
29
29
|
},
|
|
30
30
|
serverCreate: {
|
|
31
31
|
summary: "Grant a team permission to a user",
|
|
32
|
-
description: "Grant a team permission to a user (the team permission must be created first on the
|
|
32
|
+
description: "Grant a team permission to a user (the team permission must be created first on the Hexclave dashboard)",
|
|
33
33
|
tags: ["Permissions"]
|
|
34
34
|
},
|
|
35
35
|
serverDelete: {
|
|
@@ -81,22 +81,22 @@ const teamPermissionDefinitionsCrud = (0, ______crud_js.createCrud)({
|
|
|
81
81
|
docs: {
|
|
82
82
|
adminList: {
|
|
83
83
|
summary: "List team permission definitions",
|
|
84
|
-
description: "Query and filter the permission with team_id, user_id, and permission_id (the equivalent of listing permissions on the
|
|
84
|
+
description: "Query and filter the permission with team_id, user_id, and permission_id (the equivalent of listing permissions on the Hexclave dashboard)",
|
|
85
85
|
tags: ["Permissions"]
|
|
86
86
|
},
|
|
87
87
|
adminCreate: {
|
|
88
88
|
summary: "Create a new team permission definition",
|
|
89
|
-
description: "Create a new permission definition (the equivalent of creating a new permission on the
|
|
89
|
+
description: "Create a new permission definition (the equivalent of creating a new permission on the Hexclave dashboard)",
|
|
90
90
|
tags: ["Permissions"]
|
|
91
91
|
},
|
|
92
92
|
adminUpdate: {
|
|
93
93
|
summary: "Update a team permission definition",
|
|
94
|
-
description: "Update a permission definition (the equivalent of updating a permission on the
|
|
94
|
+
description: "Update a permission definition (the equivalent of updating a permission on the Hexclave dashboard)",
|
|
95
95
|
tags: ["Permissions"]
|
|
96
96
|
},
|
|
97
97
|
adminDelete: {
|
|
98
98
|
summary: "Delete a team permission definition",
|
|
99
|
-
description: "Delete a permission definition (the equivalent of deleting a permission on the
|
|
99
|
+
description: "Delete a permission definition (the equivalent of deleting a permission on the Hexclave dashboard)",
|
|
100
100
|
tags: ["Permissions"]
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-permissions.js","names":["schemaFields"],"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":["schemaFields"],"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,4EAAgD;CAC3D,IAAIA,uBAAa,6BAA6B,SAAS;CACvD,SAASA,uBAAa,aAAa,SAAS;CAC5C,SAASA,uBAAa,aAAa,SAAS;CAC7C,CAAC,CAAC,SAAS;AAEZ,MAAa,8EAAkD,EAC9D,CAAC,CAAC,SAAS;AAEZ,MAAa,8EAAkD;AAE/D,MAAa,oDAAiC;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,qFAAyD;CACpE,IAAIA,uBAAa,6BAA6B,SAAS;CACvD,aAAaA,uBAAa,gCAAgC,UAAU;CACpE,0BAA0BA,uBAAa,6BAA6B,SAAS;CAC9E,CAAC,CAAC,SAAS;AAEZ,MAAa,uFAA2D;CACtE,IAAIA,uBAAa,mCAAmC,SAAS;CAC7D,aAAaA,uBAAa,gCAAgC,UAAU;CACpE,0BAA0BA,uBAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,uFAA2D;CACtE,IAAIA,uBAAa,mCAAmC,UAAU;CAC9D,aAAaA,uBAAa,gCAAgC,UAAU;CACpE,0BAA0BA,uBAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,uFAA2D;AAExE,MAAa,8DAA2C;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?: 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?: 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?: DayInterval | undefined;
|
|
58
57
|
free_trial?: DayInterval | undefined;
|
|
59
58
|
}>;
|
|
59
|
+
display_name: string;
|
|
60
60
|
included_items: Record<string, {
|
|
61
|
-
repeat?: "never" | DayInterval | undefined;
|
|
62
61
|
quantity?: number | undefined;
|
|
62
|
+
repeat?: "never" | 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?: 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?: 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?: DayInterval | undefined;
|
|
142
141
|
free_trial?: DayInterval | undefined;
|
|
143
142
|
}>;
|
|
143
|
+
display_name: string;
|
|
144
144
|
included_items: Record<string, {
|
|
145
|
-
repeat?: "never" | DayInterval | undefined;
|
|
146
145
|
quantity?: number | undefined;
|
|
146
|
+
repeat?: "never" | 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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
|