@hexclave/shared 1.0.3 → 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 +216 -29
- 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 +71 -71
- 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 +215 -30
- 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 +71 -71
- 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 +4 -4
- 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 +13 -13
- package/dist/esm/interface/crud/current-user.d.ts +9 -9
- package/dist/esm/interface/crud/email-outbox.d.ts +112 -112
- package/dist/esm/interface/crud/products.d.ts +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
- 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 +28 -28
- package/dist/esm/interface/crud/team-member-profiles.d.ts +22 -22
- 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/users.d.ts +14 -14
- 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 +4 -4
- package/dist/esm/known-errors.js +4 -4
- package/dist/esm/known-errors.js.map +1 -1
- package/dist/esm/schema-fields.d.ts +15 -5
- 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/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 +4 -4
- 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 +13 -13
- package/dist/interface/crud/current-user.d.ts +9 -9
- package/dist/interface/crud/email-outbox.d.ts +112 -112
- package/dist/interface/crud/products.d.ts +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- 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 +28 -28
- package/dist/interface/crud/team-member-profiles.d.ts +22 -22
- package/dist/interface/crud/team-permissions.js +5 -5
- package/dist/interface/crud/team-permissions.js.map +1 -1
- package/dist/interface/crud/users.d.ts +14 -14
- 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 +4 -4
- package/dist/known-errors.js +4 -4
- package/dist/known-errors.js.map +1 -1
- package/dist/schema-fields.d.ts +15 -5
- 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/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
|
@@ -131,6 +131,7 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
131
131
|
};
|
|
132
132
|
}[] | undefined;
|
|
133
133
|
quantity: number;
|
|
134
|
+
id: string | null;
|
|
134
135
|
product: {
|
|
135
136
|
free_trial?: DayInterval | undefined;
|
|
136
137
|
client_metadata?: {} | null | undefined;
|
|
@@ -157,7 +158,6 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
157
158
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
158
159
|
}>;
|
|
159
160
|
};
|
|
160
|
-
id: string | null;
|
|
161
161
|
}[];
|
|
162
162
|
is_paginated: boolean;
|
|
163
163
|
pagination: {
|
|
@@ -80,8 +80,8 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
80
80
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
81
81
|
user_id: string;
|
|
82
82
|
type: "user";
|
|
83
|
-
description: string;
|
|
84
83
|
id: string;
|
|
84
|
+
description: string;
|
|
85
85
|
created_at_millis: number;
|
|
86
86
|
expires_at_millis: number | undefined;
|
|
87
87
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -178,8 +178,8 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
178
178
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
179
179
|
type: "team";
|
|
180
180
|
team_id: string;
|
|
181
|
-
description: string;
|
|
182
181
|
id: string;
|
|
182
|
+
description: string;
|
|
183
183
|
created_at_millis: number;
|
|
184
184
|
expires_at_millis: number | undefined;
|
|
185
185
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -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"}
|
|
@@ -56,10 +56,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
56
56
|
selected_payments_country: "US" | "OTHER";
|
|
57
57
|
} | null | undefined;
|
|
58
58
|
config: {
|
|
59
|
-
domains: {
|
|
60
|
-
domain: string;
|
|
61
|
-
handler_path: string;
|
|
62
|
-
}[];
|
|
63
59
|
oauth_providers: {
|
|
64
60
|
client_id?: string | undefined;
|
|
65
61
|
client_secret?: string | undefined;
|
|
@@ -70,6 +66,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
70
66
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
71
67
|
provider_config_id: string;
|
|
72
68
|
}[];
|
|
69
|
+
domains: {
|
|
70
|
+
domain: string;
|
|
71
|
+
handler_path: string;
|
|
72
|
+
}[];
|
|
73
73
|
allow_localhost: boolean;
|
|
74
74
|
sign_up_enabled: boolean;
|
|
75
75
|
credential_enabled: boolean;
|
|
@@ -209,10 +209,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
209
209
|
selected_payments_country: "US" | "OTHER";
|
|
210
210
|
} | null | undefined;
|
|
211
211
|
config: {
|
|
212
|
-
domains?: {
|
|
213
|
-
domain: string;
|
|
214
|
-
handler_path: string;
|
|
215
|
-
}[] | undefined;
|
|
216
212
|
oauth_providers?: {
|
|
217
213
|
client_id?: string | undefined;
|
|
218
214
|
client_secret?: string | undefined;
|
|
@@ -222,6 +218,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
222
218
|
type: "shared" | "standard";
|
|
223
219
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
224
220
|
}[] | undefined;
|
|
221
|
+
domains?: {
|
|
222
|
+
domain: string;
|
|
223
|
+
handler_path: string;
|
|
224
|
+
}[] | undefined;
|
|
225
225
|
allow_localhost?: boolean | undefined;
|
|
226
226
|
sign_up_enabled?: boolean | undefined;
|
|
227
227
|
credential_enabled?: boolean | undefined;
|
|
@@ -289,10 +289,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
289
289
|
selected_payments_country: "US" | "OTHER";
|
|
290
290
|
} | null | undefined;
|
|
291
291
|
config: {
|
|
292
|
-
domains?: {
|
|
293
|
-
domain: string;
|
|
294
|
-
handler_path: string;
|
|
295
|
-
}[] | undefined;
|
|
296
292
|
oauth_providers?: {
|
|
297
293
|
client_id?: string | undefined;
|
|
298
294
|
client_secret?: string | undefined;
|
|
@@ -302,6 +298,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
302
298
|
type: "shared" | "standard";
|
|
303
299
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
304
300
|
}[] | undefined;
|
|
301
|
+
domains?: {
|
|
302
|
+
domain: string;
|
|
303
|
+
handler_path: string;
|
|
304
|
+
}[] | undefined;
|
|
305
305
|
allow_localhost?: boolean | undefined;
|
|
306
306
|
sign_up_enabled?: boolean | undefined;
|
|
307
307
|
credential_enabled?: boolean | undefined;
|
|
@@ -429,10 +429,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
429
429
|
selected_payments_country: "US" | "OTHER";
|
|
430
430
|
} | null | undefined;
|
|
431
431
|
config: {
|
|
432
|
-
domains: {
|
|
433
|
-
domain: string;
|
|
434
|
-
handler_path: string;
|
|
435
|
-
}[];
|
|
436
432
|
oauth_providers: {
|
|
437
433
|
client_id?: string | undefined;
|
|
438
434
|
client_secret?: string | undefined;
|
|
@@ -443,6 +439,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
443
439
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
444
440
|
provider_config_id: string;
|
|
445
441
|
}[];
|
|
442
|
+
domains: {
|
|
443
|
+
domain: string;
|
|
444
|
+
handler_path: string;
|
|
445
|
+
}[];
|
|
446
446
|
allow_localhost: boolean;
|
|
447
447
|
sign_up_enabled: boolean;
|
|
448
448
|
credential_enabled: boolean;
|
|
@@ -544,10 +544,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
544
544
|
selected_payments_country: "US" | "OTHER";
|
|
545
545
|
} | null | undefined;
|
|
546
546
|
config: {
|
|
547
|
-
domains?: {
|
|
548
|
-
domain: string;
|
|
549
|
-
handler_path: string;
|
|
550
|
-
}[] | undefined;
|
|
551
547
|
oauth_providers?: {
|
|
552
548
|
client_id?: string | undefined;
|
|
553
549
|
client_secret?: string | undefined;
|
|
@@ -557,6 +553,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
557
553
|
type: "shared" | "standard";
|
|
558
554
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
559
555
|
}[] | undefined;
|
|
556
|
+
domains?: {
|
|
557
|
+
domain: string;
|
|
558
|
+
handler_path: string;
|
|
559
|
+
}[] | undefined;
|
|
560
560
|
allow_localhost?: boolean | undefined;
|
|
561
561
|
sign_up_enabled?: boolean | undefined;
|
|
562
562
|
credential_enabled?: boolean | undefined;
|
|
@@ -652,10 +652,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
652
652
|
selected_payments_country: "US" | "OTHER";
|
|
653
653
|
} | null | undefined;
|
|
654
654
|
config: {
|
|
655
|
-
domains: {
|
|
656
|
-
domain: string;
|
|
657
|
-
handler_path: string;
|
|
658
|
-
}[];
|
|
659
655
|
oauth_providers: {
|
|
660
656
|
client_id?: string | undefined;
|
|
661
657
|
client_secret?: string | undefined;
|
|
@@ -666,6 +662,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
666
662
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
667
663
|
provider_config_id: string;
|
|
668
664
|
}[];
|
|
665
|
+
domains: {
|
|
666
|
+
domain: string;
|
|
667
|
+
handler_path: string;
|
|
668
|
+
}[];
|
|
669
669
|
allow_localhost: boolean;
|
|
670
670
|
sign_up_enabled: boolean;
|
|
671
671
|
credential_enabled: boolean;
|
|
@@ -767,10 +767,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
767
767
|
selected_payments_country: "US" | "OTHER";
|
|
768
768
|
} | null | undefined;
|
|
769
769
|
config: {
|
|
770
|
-
domains?: {
|
|
771
|
-
domain: string;
|
|
772
|
-
handler_path: string;
|
|
773
|
-
}[] | undefined;
|
|
774
770
|
oauth_providers?: {
|
|
775
771
|
client_id?: string | undefined;
|
|
776
772
|
client_secret?: string | undefined;
|
|
@@ -780,6 +776,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
780
776
|
type: "shared" | "standard";
|
|
781
777
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
782
778
|
}[] | undefined;
|
|
779
|
+
domains?: {
|
|
780
|
+
domain: string;
|
|
781
|
+
handler_path: string;
|
|
782
|
+
}[] | undefined;
|
|
783
783
|
allow_localhost?: boolean | undefined;
|
|
784
784
|
sign_up_enabled?: boolean | undefined;
|
|
785
785
|
credential_enabled?: boolean | undefined;
|
|
@@ -24,36 +24,36 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
24
24
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
25
25
|
} | null;
|
|
26
26
|
primary_email: string | null;
|
|
27
|
-
display_name: string | null;
|
|
28
|
-
client_metadata: {} | null;
|
|
29
|
-
client_read_only_metadata: {} | null;
|
|
30
|
-
server_metadata: {} | null;
|
|
31
|
-
id: string;
|
|
32
27
|
selected_team_id: string | null;
|
|
33
28
|
is_anonymous: boolean;
|
|
34
29
|
is_restricted: boolean;
|
|
35
30
|
requires_totp_mfa: boolean;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
id: string;
|
|
32
|
+
display_name: string | null;
|
|
33
|
+
client_metadata: {} | null;
|
|
34
|
+
client_read_only_metadata: {} | null;
|
|
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
|
-
display_name: string;
|
|
47
43
|
id: string;
|
|
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;
|
|
@@ -147,36 +147,36 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
147
147
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
148
148
|
} | null;
|
|
149
149
|
primary_email: string | null;
|
|
150
|
-
display_name: string | null;
|
|
151
|
-
client_metadata: {} | null;
|
|
152
|
-
client_read_only_metadata: {} | null;
|
|
153
|
-
server_metadata: {} | null;
|
|
154
|
-
id: string;
|
|
155
150
|
selected_team_id: string | null;
|
|
156
151
|
is_anonymous: boolean;
|
|
157
152
|
is_restricted: boolean;
|
|
158
153
|
requires_totp_mfa: boolean;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
154
|
+
id: string;
|
|
155
|
+
display_name: string | null;
|
|
156
|
+
client_metadata: {} | null;
|
|
157
|
+
client_read_only_metadata: {} | null;
|
|
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
|
-
display_name: string;
|
|
170
166
|
id: string;
|
|
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"}
|
|
@@ -80,10 +80,10 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
80
80
|
client_metadata?: {} | null | undefined;
|
|
81
81
|
client_read_only_metadata?: {} | null | undefined;
|
|
82
82
|
server_metadata?: {} | null | undefined;
|
|
83
|
-
display_name: string;
|
|
84
83
|
id: string;
|
|
85
|
-
|
|
84
|
+
display_name: string;
|
|
86
85
|
profile_image_url: string | null;
|
|
86
|
+
created_at_millis: number;
|
|
87
87
|
} | null;
|
|
88
88
|
selected_team_id: string | null;
|
|
89
89
|
profile_image_url: string | null;
|
|
@@ -163,21 +163,21 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
163
163
|
}, "">;
|
|
164
164
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
165
165
|
primary_email: string | null | undefined;
|
|
166
|
+
is_anonymous: boolean | undefined;
|
|
166
167
|
display_name: string | null | undefined;
|
|
167
168
|
client_metadata: {} | null | undefined;
|
|
168
169
|
client_read_only_metadata: {} | null | undefined;
|
|
169
170
|
server_metadata: {} | null | undefined;
|
|
170
|
-
is_anonymous: boolean | undefined;
|
|
171
171
|
password: string | null | undefined;
|
|
172
|
-
country_code: string | null | undefined;
|
|
173
|
-
profile_image_url: string | null | undefined;
|
|
174
172
|
primary_email_verified: boolean | undefined;
|
|
175
173
|
primary_email_auth_enabled: boolean | undefined;
|
|
174
|
+
profile_image_url: string | null | undefined;
|
|
176
175
|
otp_auth_enabled: boolean | undefined;
|
|
177
176
|
passkey_auth_enabled: boolean | undefined;
|
|
178
177
|
restricted_by_admin: boolean | undefined;
|
|
179
178
|
restricted_by_admin_reason: string | null | undefined;
|
|
180
179
|
restricted_by_admin_private_details: string | null | undefined;
|
|
180
|
+
country_code: string | null | undefined;
|
|
181
181
|
risk_scores: {
|
|
182
182
|
sign_up: {
|
|
183
183
|
bot: number;
|
|
@@ -233,10 +233,10 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
233
233
|
client_metadata?: {} | null | undefined;
|
|
234
234
|
client_read_only_metadata?: {} | null | undefined;
|
|
235
235
|
server_metadata?: {} | null | undefined;
|
|
236
|
-
display_name: string;
|
|
237
236
|
id: string;
|
|
238
|
-
|
|
237
|
+
display_name: string;
|
|
239
238
|
profile_image_url: string | null;
|
|
239
|
+
created_at_millis: number;
|
|
240
240
|
} | null;
|
|
241
241
|
selected_team_id: string | null;
|
|
242
242
|
profile_image_url: string | null;
|
|
@@ -369,21 +369,21 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
369
369
|
}, "">;
|
|
370
370
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
371
371
|
primary_email: string | null | undefined;
|
|
372
|
+
is_anonymous: boolean | undefined;
|
|
372
373
|
display_name: string | null | undefined;
|
|
373
374
|
client_metadata: {} | null | undefined;
|
|
374
375
|
client_read_only_metadata: {} | null | undefined;
|
|
375
376
|
server_metadata: {} | null | undefined;
|
|
376
|
-
is_anonymous: boolean | undefined;
|
|
377
377
|
password: string | null | undefined;
|
|
378
|
-
country_code: string | null | undefined;
|
|
379
|
-
profile_image_url: string | null | undefined;
|
|
380
378
|
primary_email_verified: boolean | undefined;
|
|
381
379
|
primary_email_auth_enabled: boolean | undefined;
|
|
380
|
+
profile_image_url: string | null | undefined;
|
|
382
381
|
otp_auth_enabled: boolean | undefined;
|
|
383
382
|
passkey_auth_enabled: boolean | undefined;
|
|
384
383
|
restricted_by_admin: boolean | undefined;
|
|
385
384
|
restricted_by_admin_reason: string | null | undefined;
|
|
386
385
|
restricted_by_admin_private_details: string | null | undefined;
|
|
386
|
+
country_code: string | null | undefined;
|
|
387
387
|
risk_scores: {
|
|
388
388
|
sign_up: {
|
|
389
389
|
bot: number;
|
|
@@ -467,10 +467,10 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
467
467
|
client_metadata?: {} | null | undefined;
|
|
468
468
|
client_read_only_metadata?: {} | null | undefined;
|
|
469
469
|
server_metadata?: {} | null | undefined;
|
|
470
|
-
display_name: string;
|
|
471
470
|
id: string;
|
|
472
|
-
|
|
471
|
+
display_name: string;
|
|
473
472
|
profile_image_url: string | null;
|
|
473
|
+
created_at_millis: number;
|
|
474
474
|
} | null;
|
|
475
475
|
selected_team_id: string | null;
|
|
476
476
|
profile_image_url: string | null;
|
|
@@ -558,10 +558,10 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
558
558
|
client_metadata?: {} | null | undefined;
|
|
559
559
|
client_read_only_metadata?: {} | null | undefined;
|
|
560
560
|
server_metadata?: {} | null | undefined;
|
|
561
|
-
display_name: string;
|
|
562
561
|
id: string;
|
|
563
|
-
|
|
562
|
+
display_name: string;
|
|
564
563
|
profile_image_url: string | null;
|
|
564
|
+
created_at_millis: number;
|
|
565
565
|
} | null;
|
|
566
566
|
selected_team_id: string | null;
|
|
567
567
|
profile_image_url: string | null;
|