@selvajs/selva 4.21.0-beta.21 → 4.21.0-beta.23
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/build/adapter-node.js +1 -1
- package/build/client/_app/immutable/chunks/B58dPMPq.js +1 -0
- package/build/client/_app/immutable/chunks/B58dPMPq.js.br +1 -0
- package/build/client/_app/immutable/chunks/B58dPMPq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C6zhj8Tc.js → DtmN00GS.js} +3 -3
- package/build/client/_app/immutable/chunks/DtmN00GS.js.br +0 -0
- package/build/client/_app/immutable/chunks/{C6zhj8Tc.js.gz → DtmN00GS.js.gz} +0 -0
- package/build/client/_app/immutable/entry/{app.C2KpbBu3.js → app.Dl3HM1mx.js} +2 -2
- package/build/client/_app/immutable/entry/app.Dl3HM1mx.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Dl3HM1mx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BZJQikE5.js +1 -0
- package/build/client/_app/immutable/nodes/21.BZJQikE5.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BZJQikE5.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/.vite/manifest.json +228 -187
- package/build/server/chunks/AppHeader.js +1 -1
- package/build/server/chunks/Callout.js +1 -1
- package/build/server/chunks/ConfirmDialog.js +1 -1
- package/build/server/chunks/DataTable.js +1 -1
- package/build/server/chunks/DefinitionCard.js +2 -2
- package/build/server/chunks/EmptyState.js +1 -1
- package/build/server/chunks/ErrorScreen.js +1 -1
- package/build/server/chunks/FilterableDropdown.js +1 -1
- package/build/server/chunks/PageContent.js +1 -1
- package/build/server/chunks/SectionHeader.js +1 -1
- package/build/server/chunks/SettingsMenu.js +1 -1
- package/build/server/chunks/SideNav.js +1 -1
- package/build/server/chunks/StatCard.js +1 -1
- package/build/server/chunks/UserAvatar.js +1 -1
- package/build/server/chunks/UserRowIdentity.js +1 -1
- package/build/server/chunks/activity.js +1 -1
- package/build/server/chunks/alert-dialog.js +1 -1
- package/build/server/chunks/arrow-left.js +1 -1
- package/build/server/chunks/arrow-right.js +1 -1
- package/build/server/chunks/{keepalive-DbmLH4v1.js → async-solve-Doflh4BJ.js} +5 -3
- package/build/server/chunks/async-solve-Doflh4BJ.js.map +1 -0
- package/build/server/chunks/asyncSolves.server.js +22 -0
- package/build/server/chunks/asyncSolves.server.js.map +1 -0
- package/build/server/chunks/auth-bootstrap.server.js +1 -1
- package/build/server/chunks/badge.js +1 -1
- package/build/server/chunks/boot.server.js +1 -1
- package/build/server/chunks/building-complex.js +1 -1
- package/build/server/chunks/button.js +1 -1
- package/build/server/chunks/capture.js +1 -1
- package/build/server/chunks/card-content.js +1 -1
- package/build/server/chunks/card-description.js +1 -1
- package/build/server/chunks/card-header.js +1 -1
- package/build/server/chunks/card-title.js +1 -1
- package/build/server/chunks/chevron-down.js +1 -1
- package/build/server/chunks/chevron-left.js +1 -1
- package/build/server/chunks/chevron-right.js +1 -1
- package/build/server/chunks/chevron-up.js +1 -1
- package/build/server/chunks/circle.js +1 -1
- package/build/server/chunks/computeRateLimit.server.js +1 -1
- package/build/server/chunks/copy.js +1 -1
- package/build/server/chunks/create-id.js +1 -1
- package/build/server/chunks/delete-with-blobs.js +1 -1
- package/build/server/chunks/dialog-description.js +1 -1
- package/build/server/chunks/dialog.js +1 -1
- package/build/server/chunks/dom-typeahead.svelte.js +1 -1
- package/build/server/chunks/dynamic-value-list.js +301 -0
- package/build/server/chunks/dynamic-value-list.js.map +1 -0
- package/build/server/chunks/engine.server.js +2 -1
- package/build/server/chunks/engine.server.js.map +1 -1
- package/build/server/chunks/events.js +1 -1
- package/build/server/chunks/external-link.js +1 -1
- package/build/server/chunks/folder-kanban.js +1 -1
- package/build/server/chunks/folder-open.js +1 -1
- package/build/server/chunks/folders.js +1 -1
- package/build/server/chunks/footerContext.svelte.js +1 -1
- package/build/server/chunks/gauge.js +1 -1
- package/build/server/chunks/handlers.js +1 -1
- package/build/server/chunks/index-server2.js +1 -1
- package/build/server/chunks/input-group.js +1 -1
- package/build/server/chunks/input.js +1 -1
- package/build/server/chunks/instance.js +4 -4
- package/build/server/chunks/instanceAdmins.server.js +1 -1
- package/build/server/chunks/internal.js +1 -1
- package/build/server/chunks/key-round.js +1 -1
- package/build/server/chunks/label.js +1 -1
- package/build/server/chunks/link-2.js +1 -1
- package/build/server/chunks/localeContext.svelte.js +1 -1
- package/build/server/chunks/mail.js +1 -1
- package/build/server/chunks/minus.js +1 -1
- package/build/server/chunks/package.js +2 -2
- package/build/server/chunks/package.js.map +1 -1
- package/build/server/chunks/permissions.server.js +1 -1
- package/build/server/chunks/plus.js +1 -1
- package/build/server/chunks/popper-layer-force-mount.js +1 -1
- package/build/server/chunks/providers.server.js +3 -28134
- package/build/server/chunks/providers.server.js.map +1 -1
- package/build/server/chunks/refresh-cw.js +1 -1
- package/build/server/chunks/registry.js +22 -0
- package/build/server/chunks/registry.js.map +1 -1
- package/build/server/chunks/rotate-ccw.js +1 -1
- package/build/server/chunks/roving-focus-group.js +1 -1
- package/build/server/chunks/scroll-lock.js +1 -1
- package/build/server/chunks/scroll-text.js +1 -1
- package/build/server/chunks/search.js +1 -1
- package/build/server/chunks/search2.js +1 -1
- package/build/server/chunks/select.js +1 -1
- package/build/server/chunks/separator.js +1 -1
- package/build/server/chunks/server-config-write.js +1 -1
- package/build/server/chunks/server.js +28298 -5
- package/build/server/chunks/server.js.map +1 -1
- package/build/server/chunks/server2.js +5 -107
- package/build/server/chunks/server2.js.map +1 -1
- package/build/server/chunks/server3.js +101 -3911
- package/build/server/chunks/server3.js.map +1 -1
- package/build/server/chunks/server4.js +3916 -41
- package/build/server/chunks/server4.js.map +1 -1
- package/build/server/chunks/server5.js +45 -0
- package/build/server/chunks/server5.js.map +1 -0
- package/build/server/chunks/settings.js +1 -1
- package/build/server/chunks/severity.js +1 -1
- package/build/server/chunks/shield-check.js +1 -1
- package/build/server/chunks/shield.js +1 -1
- package/build/server/chunks/signInMaxAge.server.js +1 -1
- package/build/server/chunks/solve.server.js +4 -3
- package/build/server/chunks/solve.server.js.map +1 -1
- package/build/server/chunks/star.js +1 -1
- package/build/server/chunks/state.js +1 -1
- package/build/server/chunks/sveltekit.js +1 -1
- package/build/server/chunks/tabs-trigger.js +1 -1
- package/build/server/chunks/textarea.js +1 -1
- package/build/server/chunks/toast-state.svelte.js +1 -1
- package/build/server/chunks/toggle-group-item.js +1 -1
- package/build/server/chunks/trash.js +1 -1
- package/build/server/chunks/user-plus.js +1 -1
- package/build/server/chunks/users.js +1 -1
- package/build/server/chunks/utils.js +1 -1
- package/build/server/chunks/x.js +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-authorization-server/_server.ts.js +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-protected-resource/_server.ts.js +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-protected-resource/mcp/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/compute/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/compute/actions/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/compute/status/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/orgs/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/orgs/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_id_/grants/_grantId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_id_/grants/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/system/health/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/system/update/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/files/_...path_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/compute/_server.ts.js +8 -4
- package/build/server/entries/endpoints/api/v1/compute/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js +12 -3
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/api/v1/solves/_solveId_/_server.ts.js +32 -0
- package/build/server/entries/endpoints/api/v1/solves/_solveId_/_server.ts.js.map +1 -0
- package/build/server/entries/endpoints/auth/email/callback/_server.ts.js +1 -1
- package/build/server/entries/endpoints/auth/supabase/callback/_server.ts.js +1 -1
- package/build/server/entries/endpoints/auth/supabase/start/_server.ts.js +1 -1
- package/build/server/entries/endpoints/docs/api/openapi.yaml/_server.ts.js +1 -1
- package/build/server/entries/endpoints/mcp/_server.ts.js +244 -41
- package/build/server/entries/endpoints/mcp/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/oauth/register/_server.ts.js +1 -1
- package/build/server/entries/endpoints/oauth/token/_server.ts.js +1 -1
- package/build/server/entries/hooks.server.js +2 -1
- package/build/server/entries/hooks.server.js.map +1 -1
- package/build/server/entries/pages/_error.svelte.js +1 -1
- package/build/server/entries/pages/_layout.svelte.js +1 -1
- package/build/server/entries/pages/_page.svelte.js +1 -1
- package/build/server/entries/pages/accept-invite/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/_error.svelte.js +1 -1
- package/build/server/entries/pages/admin/_layout.svelte.js +2 -2
- package/build/server/entries/pages/admin/_page.svelte.js +2 -2
- package/build/server/entries/pages/admin/audit/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/compute/_page.svelte.js +2 -2
- package/build/server/entries/pages/admin/organizations/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/projects/_id_/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/projects/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/system/_page.server.ts.js +1 -1
- package/build/server/entries/pages/admin/system/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/users/_page.svelte.js +1 -1
- package/build/server/entries/pages/auth/email/sent/_page.svelte.js +1 -1
- package/build/server/entries/pages/auth/email/start/_page.svelte.js +1 -1
- package/build/server/entries/pages/docs/api/_page.svelte.js +1 -1
- package/build/server/entries/pages/library/_guid_/_page.server.ts.js +1 -1
- package/build/server/entries/pages/library/_guid_/_page.svelte.js +71 -305
- package/build/server/entries/pages/library/_guid_/_page.svelte.js.map +1 -1
- package/build/server/entries/pages/library/_layout.svelte.js +1 -1
- package/build/server/entries/pages/library/_page.svelte.js +1 -1
- package/build/server/entries/pages/login/_page.svelte.js +1 -1
- package/build/server/entries/pages/oauth/authorize/_page.server.ts.js +1 -1
- package/build/server/entries/pages/oauth/authorize/_page.svelte.js +1 -1
- package/build/server/entries/pages/projects/_layout.svelte.js +1 -1
- package/build/server/entries/pages/projects/_page.server.ts.js +1 -1
- package/build/server/entries/pages/projects/_page.svelte.js +1 -1
- package/build/server/entries/pages/setup/_page.server.ts.js +1 -1
- package/build/server/entries/pages/setup/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/_layout.svelte.js +2 -2
- package/build/server/entries/pages/team/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/activity/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/compute/_page.svelte.js +2 -2
- package/build/server/entries/pages/team/members/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/projects/_page.server.ts.js +1 -1
- package/build/server/entries/pages/team/projects/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/reclaim/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/settings/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/shares/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/tokens/_page.svelte.js +1 -1
- package/build/server/index.js +1 -1
- package/build/server/manifest-full.js +8 -1
- package/build/server/manifest.js +8 -1
- package/build/server/nodes/21.js +1 -1
- package/build/server/remote-entry.js +1 -1
- package/build/server/server.js +8 -1
- package/package.json +8 -8
- package/templates/.env.example +5 -3
- package/build/client/_app/immutable/chunks/C36Kxzt3.js +0 -1
- package/build/client/_app/immutable/chunks/C36Kxzt3.js.br +0 -1
- package/build/client/_app/immutable/chunks/C36Kxzt3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6zhj8Tc.js.br +0 -0
- package/build/client/_app/immutable/entry/app.C2KpbBu3.js.br +0 -0
- package/build/client/_app/immutable/entry/app.C2KpbBu3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.C3YDbmsU.js +0 -1
- package/build/client/_app/immutable/nodes/21.C3YDbmsU.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.C3YDbmsU.js.gz +0 -0
- package/build/server/chunks/keepalive-DbmLH4v1.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/refresh-cw.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -722,6 +722,28 @@ var V1_ENDPOINTS = [
|
|
|
722
722
|
410
|
|
723
723
|
]
|
|
724
724
|
},
|
|
725
|
+
{
|
|
726
|
+
method: "GET",
|
|
727
|
+
path: "/solves/{solveId}",
|
|
728
|
+
scope: "read",
|
|
729
|
+
summary: "Long-polls a solve started with `Prefer: respond-async`. 202 while it runs; then the response the solve route would have returned.",
|
|
730
|
+
internal: true,
|
|
731
|
+
response: "object",
|
|
732
|
+
query: [{
|
|
733
|
+
name: "wait",
|
|
734
|
+
description: "Seconds to wait for the result, up to 25."
|
|
735
|
+
}],
|
|
736
|
+
errors: [404]
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
method: "DELETE",
|
|
740
|
+
path: "/solves/{solveId}",
|
|
741
|
+
scope: "solve",
|
|
742
|
+
summary: "Cancels a solve started with `Prefer: respond-async`, or drops its held result.",
|
|
743
|
+
internal: true,
|
|
744
|
+
response: "empty",
|
|
745
|
+
errors: [404]
|
|
746
|
+
},
|
|
725
747
|
{
|
|
726
748
|
method: "POST",
|
|
727
749
|
path: "/solve/{solveId}/cancel",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","names":[],"sources":["../../../src/lib/server/api/v1/registry.ts"],"sourcesContent":["/**\n * The v1 contract as data: one entry per method+path, naming its body validator,\n * response shape, and whether it's public or internal.\n *\n * Both the OpenAPI generator and the conformance test read this file. The test\n * walks `routes/api/v1/**` against this table and fails if either side has an\n * entry the other doesn't — a route with no registry entry is undocumented, a\n * registry entry with no route is a spec promising something that 404s.\n *\n * Request schemas are Zod values imported from `@selvajs/server/api`, not\n * transcribed, so a renamed field changes the spec on the next generate\n * instead of silently disagreeing with the validator.\n */\n\nimport {\n\ttype Endpoint,\n\ttype HttpMethod,\n\tSolveBodySchema,\n\tUpdateDefinitionBodySchema,\n\tPublishVersionBodySchema,\n\tCreateShareLinkBodySchema,\n\tCreateProjectBodySchema,\n\tUpdateProjectBodySchema,\n\tAddProjectMemberBodySchema,\n\tUpdateProjectMemberBodySchema,\n\tCreateInviteBodySchema,\n\tUpdateOrgMemberBodySchema,\n\tOrgComputePatchBodySchema,\n\tCreateApiTokenBodySchema\n} from '@selvajs/server/api';\n\nexport type { Endpoint, HttpMethod };\n\nconst solveErrors = [400, 401, 404, 429, 503];\n\nexport const V1_ENDPOINTS: Endpoint[] = [\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/openapi.json',\n\t\tscope: 'read',\n\t\tsummary: 'This document, as JSON.',\n\t\tresponse: 'object'\n\t},\n\n\t// ==========================================================================\n\t// Me\n\t// ==========================================================================\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/me',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'The calling identity, its acting org, its effective permissions, and for a token its id, scopes and expiry.',\n\t\tresponse: 'object',\n\t\treturns:\n\t\t\t'`apiToken: { id, scopes, expiresAt }` is present only when the caller is an API token. `capabilities.createProjects` says whether `POST /projects` would accept this caller, narrowed to the key; `orgPermissions` is the owner’s and is not.'\n\t},\n\t// Every key may call it, whatever its scopes; `read` is the action every key holds.\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/me/token',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'Revoke the API token that sent this request. A key can revoke itself and nothing else; a browser session gets 400.',\n\t\tresponse: 'empty',\n\t\terrors: [400, 503]\n\t},\n\t{\n\t\tmethod: 'PUT',\n\t\tpath: '/me/starred/{guid}',\n\t\tscope: 'write',\n\t\tsummary: 'Star a definition. Idempotent.',\n\t\tresponse: 'empty',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/me/starred/{guid}',\n\t\tscope: 'write',\n\t\tsummary: 'Unstar a definition. Idempotent.',\n\t\tresponse: 'empty'\n\t},\n\n\t// ==========================================================================\n\t// Definitions\n\t// ==========================================================================\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions',\n\t\tscope: 'read',\n\t\tsummary: 'List definitions the caller can see.',\n\t\tresponse: 'collection',\n\t\treturns:\n\t\t\t'Each item has `sourceDocumentId`: the Grasshopper document GUID the definition was last uploaded from, or null.',\n\t\tquery: [\n\t\t\t{ name: 'projectId', description: 'Restrict to one project.' },\n\t\t\t{ name: 'status', description: 'One of `draft`, `published`, `archived`.' },\n\t\t\t{\n\t\t\t\tname: 'documentId',\n\t\t\t\tdescription:\n\t\t\t\t\t'A Grasshopper document GUID. Returns only definitions last uploaded from that document which the caller can upload a new version of. Not a GUID: 400.'\n\t\t\t}\n\t\t],\n\t\terrors: [400]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions',\n\t\tscope: 'upload',\n\t\tlongRunning: true,\n\t\tidempotent: true,\n\t\tsummary: 'Create a definition from a Grasshopper file.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\tmultipart: [\n\t\t\t{ field: 'file', required: true, description: 'The `.gh` or `.ghx` file.' },\n\t\t\t{ field: 'projectId', required: true, description: 'Owning project.' },\n\t\t\t{ field: 'displayName', required: true, description: 'Human-readable name.' },\n\t\t\t{ field: 'description', required: false, description: 'Long description.' },\n\t\t\t{ field: 'category', required: false, description: 'Grouping label.' },\n\t\t\t{ field: 'tags', required: false, description: 'Comma-separated tags.' },\n\t\t\t{ field: 'image', required: false, description: 'Cover image.' },\n\t\t\t{ field: 'computeServerId', required: false, description: 'Pin to a compute server.' },\n\t\t\t{\n\t\t\t\tfield: 'acceptMissingPlugins',\n\t\t\t\trequired: false,\n\t\t\t\tdescription:\n\t\t\t\t\t'`true` uploads a file that needs a plugin, or a component, the Compute server lacks. Without it, such a file is refused with 422.'\n\t\t\t}\n\t\t],\n\t\terrors: [400, 403, 422, 503]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}',\n\t\tscope: 'read',\n\t\tsummary: 'Definition record plus its live and draft version summaries.',\n\t\tresponse: 'object',\n\t\treturns:\n\t\t\t'`canEdit` is true when the caller can upload a version and make one live; for an API token that includes its scopes. `sourceDocumentId` is the Grasshopper document GUID it was last uploaded from, or null.',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/definitions/{guid}',\n\t\tscope: 'write',\n\t\tsummary: 'Update definition metadata.',\n\t\tresponse: 'empty',\n\t\trequestBody: UpdateDefinitionBodySchema,\n\t\terrors: [400, 404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/definitions/{guid}',\n\t\tscope: 'write',\n\t\tsummary: 'Soft-delete a definition.',\n\t\tresponse: 'empty',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/solve',\n\t\tscope: 'solve',\n\t\tidempotent: true,\n\t\tsummary: 'Solve a definition. The primary action of the API.',\n\t\tresponse: 'object',\n\t\trequestBody: SolveBodySchema,\n\t\terrors: solveErrors\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/schema',\n\t\tscope: 'read',\n\t\tsummary: \"The live version's UI schema. 404 when nothing is published.\",\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions',\n\t\tscope: 'read',\n\t\tsummary: 'List versions, newest first.',\n\t\tresponse: 'collection',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/versions',\n\t\tscope: 'upload',\n\t\tlongRunning: true,\n\t\tidempotent: true,\n\t\tsummary: 'Upload a new version.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\tmultipart: [\n\t\t\t{ field: 'file', required: true, description: 'The `.gh` or `.ghx` file.' },\n\t\t\t{\n\t\t\t\tfield: 'changeNote',\n\t\t\t\trequired: false,\n\t\t\t\tdescription: 'Markdown, at most 10,000 characters. Longer is refused with 400.'\n\t\t\t},\n\t\t\t{\n\t\t\t\tfield: 'acceptMissingPlugins',\n\t\t\t\trequired: false,\n\t\t\t\tdescription:\n\t\t\t\t\t'`true` uploads a file that needs a plugin, or a component, the Compute server lacks. Without it, such a file is refused with 422.'\n\t\t\t}\n\t\t],\n\t\terrors: [400, 404, 422, 503]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/versions/check',\n\t\tscope: 'upload',\n\t\tlongRunning: true,\n\t\tsummary:\n\t\t\t'Dry run of an upload: validates the file through Compute and diffs it against the version it would follow, form and inventory. Writes nothing.',\n\t\tresponse: 'object',\n\t\tmultipart: [{ field: 'file', required: true, description: 'The `.gh` or `.ghx` file.' }],\n\t\terrors: [400, 404, 422, 503]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions/{versionId}',\n\t\tscope: 'read',\n\t\tsummary: 'One version, without its cached schema.',\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/definitions/{guid}/versions/{versionId}',\n\t\tscope: 'write',\n\t\tsummary: 'Delete a version. 409 when it is the live or draft pointer.',\n\t\tresponse: 'empty',\n\t\terrors: [404, 409]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions/{versionId}/schema',\n\t\tscope: 'read',\n\t\tsummary: \"That version's cached UI schema. No compute round-trip.\",\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions/{versionId}/changes',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'What this version changed in inputs, outputs and settings, against `?against=<versionId>` or the version before it.',\n\t\treturns:\n\t\t\t'Editors also get `inventory`: warnings about the file (missing plugins, components the server could not load, version mismatches), `plugins` with the version each was saved with beside the one the Compute server had loaded, and what changed inside it (plugins, components, values, scripts, wiring).',\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/versions/{versionId}/inventory',\n\t\tscope: 'upload',\n\t\tsummary:\n\t\t\t\"Re-read a version's inventory from its stored file through Compute: for versions uploaded before inventories, or after installing a missing plugin.\",\n\t\treturns: '`summary`, `warnings` and `plugins`, as in the `inventory` of `/changes`.',\n\t\tlongRunning: true,\n\t\tresponse: 'object',\n\t\terrors: [404, 422, 503]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions/{versionId}/scripts/{scriptId}',\n\t\tscope: 'upload',\n\t\tsummary:\n\t\t\t\"One script component's code in this version and in `?against=<versionId>` or the version before, with a line diff. Read from the stored files through Compute, never kept.\",\n\t\tresponse: 'object',\n\t\terrors: [404, 422, 503]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/publish',\n\t\tscope: 'upload',\n\t\tsummary: 'Promote a version to live.',\n\t\tresponse: 'object',\n\t\trequestBody: PublishVersionBodySchema,\n\t\terrors: [400, 404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/image',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'The cover image, as WebP. 404 when there is none. `coverImage` on the record is a browser URL that needs a session; this one takes a key.',\n\t\tresponse: 'binary',\n\t\tcontentType: 'image/webp',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/image',\n\t\tscope: 'write',\n\t\tsummary: 'Upload a cover image.',\n\t\tresponse: 'object',\n\t\tmultipart: [{ field: 'image', required: true, description: 'PNG, JPEG, WebP or GIF.' }],\n\t\terrors: [400, 404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/share-links',\n\t\tscope: 'read',\n\t\tsummary: 'List share links. 404 when sharing is disabled on the instance.',\n\t\tresponse: 'collection',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/share-links',\n\t\tscope: 'write',\n\t\tidempotent: true,\n\t\tsummary: 'Create a share link. The raw token is returned once and never again.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: CreateShareLinkBodySchema,\n\t\terrors: [400, 404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/definitions/{guid}/share-links/{linkId}',\n\t\tscope: 'write',\n\t\tsummary: 'Revoke a share link.',\n\t\tresponse: 'empty',\n\t\terrors: [404]\n\t},\n\n\t// ==========================================================================\n\t// Projects\n\t// ==========================================================================\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/projects',\n\t\tscope: 'read',\n\t\tsummary: 'List projects the caller can view.',\n\t\tresponse: 'collection',\n\t\treturns:\n\t\t\t'Each item has `canCreateDefinitions`: whether `POST /definitions` would accept this project from the caller, scopes included for an API token.'\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/projects',\n\t\tscope: 'create_projects',\n\t\tidempotent: true,\n\t\tsummary:\n\t\t\t'Create a project. A key with `create_projects` but not `write` may create private projects only, with `autoJoinOnUpload` off.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: CreateProjectBodySchema,\n\t\terrors: [400, 403, 409]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/projects/{id}',\n\t\tscope: 'read',\n\t\tsummary: \"Project record plus the caller's effective role and capabilities.\",\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/projects/{id}',\n\t\tscope: 'write',\n\t\tsummary: 'Update project settings. Owner-only.',\n\t\tresponse: 'empty',\n\t\trequestBody: UpdateProjectBodySchema,\n\t\terrors: [400, 403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/projects/{id}',\n\t\tscope: 'write',\n\t\tsummary: 'Delete a project.',\n\t\tresponse: 'empty',\n\t\terrors: [403, 404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/projects/{id}/members',\n\t\tscope: 'read',\n\t\tsummary: 'List project members.',\n\t\tresponse: 'collection',\n\t\treturns: 'Each item has `displayName`, or null when the member never set one. No emails.',\n\t\terrors: [403, 404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/projects/{id}/members',\n\t\tscope: 'write',\n\t\tsummary: 'Add a member. The target must already belong to the org.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: AddProjectMemberBodySchema,\n\t\terrors: [400, 403, 404]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/projects/{id}/members/{userId}',\n\t\tscope: 'write',\n\t\tsummary: 'Change a member role.',\n\t\tresponse: 'empty',\n\t\trequestBody: UpdateProjectMemberBodySchema,\n\t\terrors: [400, 403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/projects/{id}/members/{userId}',\n\t\tscope: 'write',\n\t\tsummary: 'Remove a member. Idempotent.',\n\t\tresponse: 'empty',\n\t\tquery: [\n\t\t\t{\n\t\t\t\tname: 'confirm',\n\t\t\t\tdescription: 'Set to `true` to remove a co-owner; without it the call returns 409.'\n\t\t\t}\n\t\t],\n\t\terrors: [403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/projects/{id}/reclaim',\n\t\tscope: 'write',\n\t\tsummary: 'Claim ownership of an unowned project.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\terrors: [403, 404, 409]\n\t},\n\n\t// ==========================================================================\n\t// Orgs\n\t// ==========================================================================\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}',\n\t\tscope: 'read',\n\t\tsummary: \"Org record. The org must be the caller's acting org.\",\n\t\tresponse: 'object',\n\t\terrors: [403, 404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}/members',\n\t\tscope: 'read',\n\t\tsummary: 'List org members.',\n\t\tresponse: 'collection',\n\t\terrors: [403]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/orgs/{orgId}/members/{userId}',\n\t\tscope: 'write',\n\t\tsummary: 'Change an org role or permission set. The sole owner cannot be demoted.',\n\t\tresponse: 'empty',\n\t\trequestBody: UpdateOrgMemberBodySchema,\n\t\terrors: [400, 403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/orgs/{orgId}/members/{userId}',\n\t\tscope: 'write',\n\t\tsummary: 'Remove an org member. The sole owner cannot be removed.',\n\t\tresponse: 'empty',\n\t\terrors: [403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}/invites',\n\t\tscope: 'read',\n\t\tsummary: 'List pending invites. Browser session only: an API key gets 403.',\n\t\tresponse: 'collection',\n\t\terrors: [403]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/orgs/{orgId}/invites',\n\t\tscope: 'write',\n\t\tsummary:\n\t\t\t'Invite someone to the org. The accept URL is returned once. Browser session only: an API key gets 403.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: CreateInviteBodySchema,\n\t\terrors: [400, 403, 409]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/orgs/{orgId}/invites/{id}',\n\t\tscope: 'write',\n\t\tsummary: 'Revoke an invite.',\n\t\tresponse: 'empty',\n\t\terrors: [403, 404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/orgs/{orgId}/invites/{id}/resend',\n\t\tscope: 'write',\n\t\tsummary:\n\t\t\t'Re-send an invite. Issues a replacement and revokes the original, so the previous link stops working. Browser session only: an API key gets 403.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\terrors: [403, 404, 409]\n\t},\n\t// Internal and session-only: a key can never manage keys.\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}/tokens',\n\t\tscope: 'read',\n\t\tsummary: 'Your API tokens in this org, revoked and expired included.',\n\t\tinternal: true,\n\t\tresponse: 'collection',\n\t\tquery: [\n\t\t\t{ name: 'all', description: \"`true` for every member's tokens. Needs `manage_org_members`.\" }\n\t\t],\n\t\terrors: [403, 503]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/orgs/{orgId}/tokens',\n\t\tscope: 'write',\n\t\tsummary: 'Create an API token acting as you. The raw key is returned once, as `secret`.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: CreateApiTokenBodySchema,\n\t\terrors: [400, 403, 503]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/orgs/{orgId}/tokens/{tokenId}',\n\t\tscope: 'write',\n\t\tsummary: 'Revoke an API token: your own, or any in the org with `manage_org_members`.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\terrors: [403, 404, 503]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}/compute',\n\t\tscope: 'read',\n\t\tsummary: 'Org compute-server overrides and the shared catalog.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\terrors: [403]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/orgs/{orgId}/compute',\n\t\tscope: 'write',\n\t\tsummary: 'Replace the org compute-server overrides.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\trequestBody: OrgComputePatchBodySchema,\n\t\terrors: [400, 403]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/orgs/{orgId}/assets/{kind}',\n\t\tscope: 'write',\n\t\tsummary: 'Upload an org branding asset.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tmultipart: [{ field: 'image', required: true, description: 'PNG, JPEG, WebP, GIF or SVG.' }],\n\t\terrors: [400, 403, 404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/orgs/{orgId}/assets/{kind}',\n\t\tscope: 'write',\n\t\tsummary: 'Remove an org branding asset.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\terrors: [403, 404]\n\t},\n\n\t// ==========================================================================\n\t// Compute\n\t// ==========================================================================\n\t//\n\t// Internal: accepts a remote `definitionUrl` and the anonymous share-token\n\t// flow, neither part of the public contract. Public callers solve through\n\t// `/definitions/{guid}/solve`.\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/compute',\n\t\tscope: 'solve',\n\t\tsummary: 'Generic solve, including remote definition URLs and share-token access.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\terrors: solveErrors\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/compute/schema',\n\t\tscope: 'upload',\n\t\tsummary: 'Extract UI schemas from an uploaded file before it becomes a definition.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tmultipart: [{ field: 'file', required: true, description: 'The `.gh` or `.ghx` file.' }],\n\t\tquery: [\n\t\t\t{ name: 'projectId', description: 'Project the file will belong to.' },\n\t\t\t{ name: 'computeServerId', description: 'Pin to a compute server.' }\n\t\t],\n\t\terrors: [400, 403, 422, 503]\n\t},\n\n\t// ==========================================================================\n\t// Live solve events\n\t// ==========================================================================\n\t//\n\t// Internal: the browser's live channel and the plugin's callback into it. Both\n\t// are shaped by the Selva plugin and web app, not by the public contract.\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/solve-events',\n\t\tscope: 'read',\n\t\tsummary: \"The tab's live event stream (SSE). Solves that name its `streamId` report here.\",\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tquery: [{ name: 'streamId', description: 'Minted by the tab, 16-64 URL-safe characters.' }],\n\t\terrors: [400, 401, 409]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/solve-events/{solveId}',\n\t\tscope: 'write',\n\t\tsummary: \"The plugin's callback from inside a Compute solve. The reply carries `abort`.\",\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\terrors: [400, 401, 410]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/solve/{solveId}/cancel',\n\t\tscope: 'solve',\n\t\tsummary: 'Ask a running solve to abort. Cooperative: it stops at the next component.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\terrors: [401, 404]\n\t}\n];\n\n/** `/definitions/{guid}` → the SvelteKit directory form `definitions/[guid]`. */\nexport function toRoutePath(openApiPath: string): string {\n\treturn openApiPath.replace(/^\\//, '').replace(/\\{(\\w+)\\}/g, '[$1]');\n}\n\nexport function endpointKey(method: HttpMethod, path: string): string {\n\treturn `${method} ${path}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiCA,IAAM,cAAc;CAAC;CAAK;CAAK;CAAK;CAAK;AAAG;AAE5C,IAAa,eAA2B;CACvC;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;CACX;CAKA;EACC,QAAQ;EACR,MAAM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AM,aAAa;EAA+B,CAAC;EAC3F,QAAQ;GAAC;GAAK;GAAK;EAAG;CACvB;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ,CAAC,KAAK,GAAG;CAClB;CASA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ;CACT;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,WAAW,CAAC;GAAE,OAAO;GAAQ,UAAU;GAAM,aAAa;EAA4B,CAAC;EACvF,OAAO,CACN;GAAE,MAAM;GAAa,aAAa;EAAmC,GACrE;GAAE,MAAM;GAAmB,aAAa;EAA2B,CACpE;EACA,QAAQ;GAAC;GAAK;GAAK;GAAK;EAAG;CAC5B;CAQA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,OAAO,CAAC;GAAE,MAAM;GAAY,aAAa;EAAgD,CAAC;EAC1F,QAAQ;GAAC;GAAK;GAAK;EAAG;CACvB;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ;GAAC;GAAK;GAAK;EAAG;CACvB;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ,CAAC,KAAK,GAAG;CAClB;AACD"}
|
|
1
|
+
{"version":3,"file":"registry.js","names":[],"sources":["../../../src/lib/server/api/v1/registry.ts"],"sourcesContent":["/**\n * The v1 contract as data: one entry per method+path, naming its body validator,\n * response shape, and whether it's public or internal.\n *\n * Both the OpenAPI generator and the conformance test read this file. The test\n * walks `routes/api/v1/**` against this table and fails if either side has an\n * entry the other doesn't — a route with no registry entry is undocumented, a\n * registry entry with no route is a spec promising something that 404s.\n *\n * Request schemas are Zod values imported from `@selvajs/server/api`, not\n * transcribed, so a renamed field changes the spec on the next generate\n * instead of silently disagreeing with the validator.\n */\n\nimport {\n\ttype Endpoint,\n\ttype HttpMethod,\n\tSolveBodySchema,\n\tUpdateDefinitionBodySchema,\n\tPublishVersionBodySchema,\n\tCreateShareLinkBodySchema,\n\tCreateProjectBodySchema,\n\tUpdateProjectBodySchema,\n\tAddProjectMemberBodySchema,\n\tUpdateProjectMemberBodySchema,\n\tCreateInviteBodySchema,\n\tUpdateOrgMemberBodySchema,\n\tOrgComputePatchBodySchema,\n\tCreateApiTokenBodySchema\n} from '@selvajs/server/api';\n\nexport type { Endpoint, HttpMethod };\n\nconst solveErrors = [400, 401, 404, 429, 503];\n\nexport const V1_ENDPOINTS: Endpoint[] = [\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/openapi.json',\n\t\tscope: 'read',\n\t\tsummary: 'This document, as JSON.',\n\t\tresponse: 'object'\n\t},\n\n\t// ==========================================================================\n\t// Me\n\t// ==========================================================================\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/me',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'The calling identity, its acting org, its effective permissions, and for a token its id, scopes and expiry.',\n\t\tresponse: 'object',\n\t\treturns:\n\t\t\t'`apiToken: { id, scopes, expiresAt }` is present only when the caller is an API token. `capabilities.createProjects` says whether `POST /projects` would accept this caller, narrowed to the key; `orgPermissions` is the owner’s and is not.'\n\t},\n\t// Every key may call it, whatever its scopes; `read` is the action every key holds.\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/me/token',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'Revoke the API token that sent this request. A key can revoke itself and nothing else; a browser session gets 400.',\n\t\tresponse: 'empty',\n\t\terrors: [400, 503]\n\t},\n\t{\n\t\tmethod: 'PUT',\n\t\tpath: '/me/starred/{guid}',\n\t\tscope: 'write',\n\t\tsummary: 'Star a definition. Idempotent.',\n\t\tresponse: 'empty',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/me/starred/{guid}',\n\t\tscope: 'write',\n\t\tsummary: 'Unstar a definition. Idempotent.',\n\t\tresponse: 'empty'\n\t},\n\n\t// ==========================================================================\n\t// Definitions\n\t// ==========================================================================\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions',\n\t\tscope: 'read',\n\t\tsummary: 'List definitions the caller can see.',\n\t\tresponse: 'collection',\n\t\treturns:\n\t\t\t'Each item has `sourceDocumentId`: the Grasshopper document GUID the definition was last uploaded from, or null.',\n\t\tquery: [\n\t\t\t{ name: 'projectId', description: 'Restrict to one project.' },\n\t\t\t{ name: 'status', description: 'One of `draft`, `published`, `archived`.' },\n\t\t\t{\n\t\t\t\tname: 'documentId',\n\t\t\t\tdescription:\n\t\t\t\t\t'A Grasshopper document GUID. Returns only definitions last uploaded from that document which the caller can upload a new version of. Not a GUID: 400.'\n\t\t\t}\n\t\t],\n\t\terrors: [400]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions',\n\t\tscope: 'upload',\n\t\tlongRunning: true,\n\t\tidempotent: true,\n\t\tsummary: 'Create a definition from a Grasshopper file.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\tmultipart: [\n\t\t\t{ field: 'file', required: true, description: 'The `.gh` or `.ghx` file.' },\n\t\t\t{ field: 'projectId', required: true, description: 'Owning project.' },\n\t\t\t{ field: 'displayName', required: true, description: 'Human-readable name.' },\n\t\t\t{ field: 'description', required: false, description: 'Long description.' },\n\t\t\t{ field: 'category', required: false, description: 'Grouping label.' },\n\t\t\t{ field: 'tags', required: false, description: 'Comma-separated tags.' },\n\t\t\t{ field: 'image', required: false, description: 'Cover image.' },\n\t\t\t{ field: 'computeServerId', required: false, description: 'Pin to a compute server.' },\n\t\t\t{\n\t\t\t\tfield: 'acceptMissingPlugins',\n\t\t\t\trequired: false,\n\t\t\t\tdescription:\n\t\t\t\t\t'`true` uploads a file that needs a plugin, or a component, the Compute server lacks. Without it, such a file is refused with 422.'\n\t\t\t}\n\t\t],\n\t\terrors: [400, 403, 422, 503]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}',\n\t\tscope: 'read',\n\t\tsummary: 'Definition record plus its live and draft version summaries.',\n\t\tresponse: 'object',\n\t\treturns:\n\t\t\t'`canEdit` is true when the caller can upload a version and make one live; for an API token that includes its scopes. `sourceDocumentId` is the Grasshopper document GUID it was last uploaded from, or null.',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/definitions/{guid}',\n\t\tscope: 'write',\n\t\tsummary: 'Update definition metadata.',\n\t\tresponse: 'empty',\n\t\trequestBody: UpdateDefinitionBodySchema,\n\t\terrors: [400, 404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/definitions/{guid}',\n\t\tscope: 'write',\n\t\tsummary: 'Soft-delete a definition.',\n\t\tresponse: 'empty',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/solve',\n\t\tscope: 'solve',\n\t\tidempotent: true,\n\t\tsummary: 'Solve a definition. The primary action of the API.',\n\t\tresponse: 'object',\n\t\trequestBody: SolveBodySchema,\n\t\terrors: solveErrors\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/schema',\n\t\tscope: 'read',\n\t\tsummary: \"The live version's UI schema. 404 when nothing is published.\",\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions',\n\t\tscope: 'read',\n\t\tsummary: 'List versions, newest first.',\n\t\tresponse: 'collection',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/versions',\n\t\tscope: 'upload',\n\t\tlongRunning: true,\n\t\tidempotent: true,\n\t\tsummary: 'Upload a new version.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\tmultipart: [\n\t\t\t{ field: 'file', required: true, description: 'The `.gh` or `.ghx` file.' },\n\t\t\t{\n\t\t\t\tfield: 'changeNote',\n\t\t\t\trequired: false,\n\t\t\t\tdescription: 'Markdown, at most 10,000 characters. Longer is refused with 400.'\n\t\t\t},\n\t\t\t{\n\t\t\t\tfield: 'acceptMissingPlugins',\n\t\t\t\trequired: false,\n\t\t\t\tdescription:\n\t\t\t\t\t'`true` uploads a file that needs a plugin, or a component, the Compute server lacks. Without it, such a file is refused with 422.'\n\t\t\t}\n\t\t],\n\t\terrors: [400, 404, 422, 503]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/versions/check',\n\t\tscope: 'upload',\n\t\tlongRunning: true,\n\t\tsummary:\n\t\t\t'Dry run of an upload: validates the file through Compute and diffs it against the version it would follow, form and inventory. Writes nothing.',\n\t\tresponse: 'object',\n\t\tmultipart: [{ field: 'file', required: true, description: 'The `.gh` or `.ghx` file.' }],\n\t\terrors: [400, 404, 422, 503]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions/{versionId}',\n\t\tscope: 'read',\n\t\tsummary: 'One version, without its cached schema.',\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/definitions/{guid}/versions/{versionId}',\n\t\tscope: 'write',\n\t\tsummary: 'Delete a version. 409 when it is the live or draft pointer.',\n\t\tresponse: 'empty',\n\t\terrors: [404, 409]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions/{versionId}/schema',\n\t\tscope: 'read',\n\t\tsummary: \"That version's cached UI schema. No compute round-trip.\",\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions/{versionId}/changes',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'What this version changed in inputs, outputs and settings, against `?against=<versionId>` or the version before it.',\n\t\treturns:\n\t\t\t'Editors also get `inventory`: warnings about the file (missing plugins, components the server could not load, version mismatches), `plugins` with the version each was saved with beside the one the Compute server had loaded, and what changed inside it (plugins, components, values, scripts, wiring).',\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/versions/{versionId}/inventory',\n\t\tscope: 'upload',\n\t\tsummary:\n\t\t\t\"Re-read a version's inventory from its stored file through Compute: for versions uploaded before inventories, or after installing a missing plugin.\",\n\t\treturns: '`summary`, `warnings` and `plugins`, as in the `inventory` of `/changes`.',\n\t\tlongRunning: true,\n\t\tresponse: 'object',\n\t\terrors: [404, 422, 503]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/versions/{versionId}/scripts/{scriptId}',\n\t\tscope: 'upload',\n\t\tsummary:\n\t\t\t\"One script component's code in this version and in `?against=<versionId>` or the version before, with a line diff. Read from the stored files through Compute, never kept.\",\n\t\tresponse: 'object',\n\t\terrors: [404, 422, 503]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/publish',\n\t\tscope: 'upload',\n\t\tsummary: 'Promote a version to live.',\n\t\tresponse: 'object',\n\t\trequestBody: PublishVersionBodySchema,\n\t\terrors: [400, 404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/image',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'The cover image, as WebP. 404 when there is none. `coverImage` on the record is a browser URL that needs a session; this one takes a key.',\n\t\tresponse: 'binary',\n\t\tcontentType: 'image/webp',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/image',\n\t\tscope: 'write',\n\t\tsummary: 'Upload a cover image.',\n\t\tresponse: 'object',\n\t\tmultipart: [{ field: 'image', required: true, description: 'PNG, JPEG, WebP or GIF.' }],\n\t\terrors: [400, 404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/definitions/{guid}/share-links',\n\t\tscope: 'read',\n\t\tsummary: 'List share links. 404 when sharing is disabled on the instance.',\n\t\tresponse: 'collection',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/definitions/{guid}/share-links',\n\t\tscope: 'write',\n\t\tidempotent: true,\n\t\tsummary: 'Create a share link. The raw token is returned once and never again.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: CreateShareLinkBodySchema,\n\t\terrors: [400, 404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/definitions/{guid}/share-links/{linkId}',\n\t\tscope: 'write',\n\t\tsummary: 'Revoke a share link.',\n\t\tresponse: 'empty',\n\t\terrors: [404]\n\t},\n\n\t// ==========================================================================\n\t// Projects\n\t// ==========================================================================\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/projects',\n\t\tscope: 'read',\n\t\tsummary: 'List projects the caller can view.',\n\t\tresponse: 'collection',\n\t\treturns:\n\t\t\t'Each item has `canCreateDefinitions`: whether `POST /definitions` would accept this project from the caller, scopes included for an API token.'\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/projects',\n\t\tscope: 'create_projects',\n\t\tidempotent: true,\n\t\tsummary:\n\t\t\t'Create a project. A key with `create_projects` but not `write` may create private projects only, with `autoJoinOnUpload` off.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: CreateProjectBodySchema,\n\t\terrors: [400, 403, 409]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/projects/{id}',\n\t\tscope: 'read',\n\t\tsummary: \"Project record plus the caller's effective role and capabilities.\",\n\t\tresponse: 'object',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/projects/{id}',\n\t\tscope: 'write',\n\t\tsummary: 'Update project settings. Owner-only.',\n\t\tresponse: 'empty',\n\t\trequestBody: UpdateProjectBodySchema,\n\t\terrors: [400, 403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/projects/{id}',\n\t\tscope: 'write',\n\t\tsummary: 'Delete a project.',\n\t\tresponse: 'empty',\n\t\terrors: [403, 404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/projects/{id}/members',\n\t\tscope: 'read',\n\t\tsummary: 'List project members.',\n\t\tresponse: 'collection',\n\t\treturns: 'Each item has `displayName`, or null when the member never set one. No emails.',\n\t\terrors: [403, 404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/projects/{id}/members',\n\t\tscope: 'write',\n\t\tsummary: 'Add a member. The target must already belong to the org.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: AddProjectMemberBodySchema,\n\t\terrors: [400, 403, 404]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/projects/{id}/members/{userId}',\n\t\tscope: 'write',\n\t\tsummary: 'Change a member role.',\n\t\tresponse: 'empty',\n\t\trequestBody: UpdateProjectMemberBodySchema,\n\t\terrors: [400, 403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/projects/{id}/members/{userId}',\n\t\tscope: 'write',\n\t\tsummary: 'Remove a member. Idempotent.',\n\t\tresponse: 'empty',\n\t\tquery: [\n\t\t\t{\n\t\t\t\tname: 'confirm',\n\t\t\t\tdescription: 'Set to `true` to remove a co-owner; without it the call returns 409.'\n\t\t\t}\n\t\t],\n\t\terrors: [403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/projects/{id}/reclaim',\n\t\tscope: 'write',\n\t\tsummary: 'Claim ownership of an unowned project.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\terrors: [403, 404, 409]\n\t},\n\n\t// ==========================================================================\n\t// Orgs\n\t// ==========================================================================\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}',\n\t\tscope: 'read',\n\t\tsummary: \"Org record. The org must be the caller's acting org.\",\n\t\tresponse: 'object',\n\t\terrors: [403, 404]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}/members',\n\t\tscope: 'read',\n\t\tsummary: 'List org members.',\n\t\tresponse: 'collection',\n\t\terrors: [403]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/orgs/{orgId}/members/{userId}',\n\t\tscope: 'write',\n\t\tsummary: 'Change an org role or permission set. The sole owner cannot be demoted.',\n\t\tresponse: 'empty',\n\t\trequestBody: UpdateOrgMemberBodySchema,\n\t\terrors: [400, 403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/orgs/{orgId}/members/{userId}',\n\t\tscope: 'write',\n\t\tsummary: 'Remove an org member. The sole owner cannot be removed.',\n\t\tresponse: 'empty',\n\t\terrors: [403, 404, 409]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}/invites',\n\t\tscope: 'read',\n\t\tsummary: 'List pending invites. Browser session only: an API key gets 403.',\n\t\tresponse: 'collection',\n\t\terrors: [403]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/orgs/{orgId}/invites',\n\t\tscope: 'write',\n\t\tsummary:\n\t\t\t'Invite someone to the org. The accept URL is returned once. Browser session only: an API key gets 403.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: CreateInviteBodySchema,\n\t\terrors: [400, 403, 409]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/orgs/{orgId}/invites/{id}',\n\t\tscope: 'write',\n\t\tsummary: 'Revoke an invite.',\n\t\tresponse: 'empty',\n\t\terrors: [403, 404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/orgs/{orgId}/invites/{id}/resend',\n\t\tscope: 'write',\n\t\tsummary:\n\t\t\t'Re-send an invite. Issues a replacement and revokes the original, so the previous link stops working. Browser session only: an API key gets 403.',\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\terrors: [403, 404, 409]\n\t},\n\t// Internal and session-only: a key can never manage keys.\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}/tokens',\n\t\tscope: 'read',\n\t\tsummary: 'Your API tokens in this org, revoked and expired included.',\n\t\tinternal: true,\n\t\tresponse: 'collection',\n\t\tquery: [\n\t\t\t{ name: 'all', description: \"`true` for every member's tokens. Needs `manage_org_members`.\" }\n\t\t],\n\t\terrors: [403, 503]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/orgs/{orgId}/tokens',\n\t\tscope: 'write',\n\t\tsummary: 'Create an API token acting as you. The raw key is returned once, as `secret`.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tstatus: 201,\n\t\trequestBody: CreateApiTokenBodySchema,\n\t\terrors: [400, 403, 503]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/orgs/{orgId}/tokens/{tokenId}',\n\t\tscope: 'write',\n\t\tsummary: 'Revoke an API token: your own, or any in the org with `manage_org_members`.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\terrors: [403, 404, 503]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/orgs/{orgId}/compute',\n\t\tscope: 'read',\n\t\tsummary: 'Org compute-server overrides and the shared catalog.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\terrors: [403]\n\t},\n\t{\n\t\tmethod: 'PATCH',\n\t\tpath: '/orgs/{orgId}/compute',\n\t\tscope: 'write',\n\t\tsummary: 'Replace the org compute-server overrides.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\trequestBody: OrgComputePatchBodySchema,\n\t\terrors: [400, 403]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/orgs/{orgId}/assets/{kind}',\n\t\tscope: 'write',\n\t\tsummary: 'Upload an org branding asset.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tmultipart: [{ field: 'image', required: true, description: 'PNG, JPEG, WebP, GIF or SVG.' }],\n\t\terrors: [400, 403, 404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/orgs/{orgId}/assets/{kind}',\n\t\tscope: 'write',\n\t\tsummary: 'Remove an org branding asset.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\terrors: [403, 404]\n\t},\n\n\t// ==========================================================================\n\t// Compute\n\t// ==========================================================================\n\t//\n\t// Internal: accepts a remote `definitionUrl` and the anonymous share-token\n\t// flow, neither part of the public contract. Public callers solve through\n\t// `/definitions/{guid}/solve`.\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/compute',\n\t\tscope: 'solve',\n\t\tsummary: 'Generic solve, including remote definition URLs and share-token access.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\terrors: solveErrors\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/compute/schema',\n\t\tscope: 'upload',\n\t\tsummary: 'Extract UI schemas from an uploaded file before it becomes a definition.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tmultipart: [{ field: 'file', required: true, description: 'The `.gh` or `.ghx` file.' }],\n\t\tquery: [\n\t\t\t{ name: 'projectId', description: 'Project the file will belong to.' },\n\t\t\t{ name: 'computeServerId', description: 'Pin to a compute server.' }\n\t\t],\n\t\terrors: [400, 403, 422, 503]\n\t},\n\n\t// ==========================================================================\n\t// Live solve events\n\t// ==========================================================================\n\t//\n\t// Internal: the browser's live channel and the plugin's callback into it. Both\n\t// are shaped by the Selva plugin and web app, not by the public contract.\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/solve-events',\n\t\tscope: 'read',\n\t\tsummary: \"The tab's live event stream (SSE). Solves that name its `streamId` report here.\",\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tquery: [{ name: 'streamId', description: 'Minted by the tab, 16-64 URL-safe characters.' }],\n\t\terrors: [400, 401, 409]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/solve-events/{solveId}',\n\t\tscope: 'write',\n\t\tsummary: \"The plugin's callback from inside a Compute solve. The reply carries `abort`.\",\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\terrors: [400, 401, 410]\n\t},\n\t{\n\t\tmethod: 'GET',\n\t\tpath: '/solves/{solveId}',\n\t\tscope: 'read',\n\t\tsummary:\n\t\t\t'Long-polls a solve started with `Prefer: respond-async`. 202 while it runs; then the response the solve route would have returned.',\n\t\tinternal: true,\n\t\tresponse: 'object',\n\t\tquery: [{ name: 'wait', description: 'Seconds to wait for the result, up to 25.' }],\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'DELETE',\n\t\tpath: '/solves/{solveId}',\n\t\tscope: 'solve',\n\t\tsummary: 'Cancels a solve started with `Prefer: respond-async`, or drops its held result.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\terrors: [404]\n\t},\n\t{\n\t\tmethod: 'POST',\n\t\tpath: '/solve/{solveId}/cancel',\n\t\tscope: 'solve',\n\t\tsummary: 'Ask a running solve to abort. Cooperative: it stops at the next component.',\n\t\tinternal: true,\n\t\tresponse: 'empty',\n\t\terrors: [401, 404]\n\t}\n];\n\n/** `/definitions/{guid}` → the SvelteKit directory form `definitions/[guid]`. */\nexport function toRoutePath(openApiPath: string): string {\n\treturn openApiPath.replace(/^\\//, '').replace(/\\{(\\w+)\\}/g, '[$1]');\n}\n\nexport function endpointKey(method: HttpMethod, path: string): string {\n\treturn `${method} ${path}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiCA,IAAM,cAAc;CAAC;CAAK;CAAK;CAAK;CAAK;AAAG;AAE5C,IAAa,eAA2B;CACvC;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;CACX;CAKA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SACC;EACD,UAAU;EACV,SACC;CACF;CAEA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SACC;EACD,UAAU;EACV,QAAQ,CAAC,KAAK,GAAG;CAClB;CACA;EACC,QAAQ;EACR,MA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;CAClB;CASA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ;CACT;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,WAAW,CAAC;GAAE,OAAO;GAAQ,UAAU;GAAM,aAAa;EAA4B,CAAC;EACvF,OAAO,CACN;GAAE,MAAM;GAAa,aAAa;EAAmC,GACrE;GAAE,MAAM;GAAmB,aAAa;EAA2B,CACpE;EACA,QAAQ;GAAC;GAAK;GAAK;GAAK;EAAG;CAC5B;CAQA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,OAAO,CAAC;GAAE,MAAM;GAAY,aAAa;EAAgD,CAAC;EAC1F,QAAQ;GAAC;GAAK;GAAK;EAAG;CACvB;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ;GAAC;GAAK;GAAK;EAAG;CACvB;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SACC;EACD,UAAU;EACV,UAAU;EACV,OAAO,CAAC;GAAE,MAAM;GAAQ,aAAa;EAA4C,CAAC;EAClF,QAAQ,CAAC,GAAG;CACb;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ,CAAC,GAAG;CACb;CACA;EACC,QAAQ;EACR,MAAM;EACN,OAAO;EACP,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ,CAAC,KAAK,GAAG;CAClB;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/rotate-ccw.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./server4.js";
|
|
2
2
|
import { S as isWritableSymbol, _ as boxFlatten, b as isBox, g as BoxSymbol, v as boxFrom, w as toReadonlyBox, x as isWritableBox, y as boxWith } from "./create-id.js";
|
|
3
3
|
import { D as ARROW_UP, E as ARROW_RIGHT, F as PAGE_UP, M as HOME, P as PAGE_DOWN, T as ARROW_LEFT, w as ARROW_DOWN, y as isHTMLElement } from "./scroll-lock.js";
|
|
4
4
|
// ../../node_modules/.pnpm/svelte-toolbelt@0.10.6_@sveltejs+kit@3.1.1_@opentelemetry+api@1.10.0_@sveltejs+vite-plu_b4faba1ee16e82ac686f9952a76a14e7/node_modules/svelte-toolbelt/dist/box/box.svelte.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as run, _ as setContext, a as derived, g as hasContext, h as getContext, m as getAllContexts } from "./
|
|
1
|
+
import { Ft as run, _ as setContext, a as derived, g as hasContext, h as getContext, m as getAllContexts } from "./server4.js";
|
|
2
2
|
import { r as on } from "./events.js";
|
|
3
3
|
import { a as createSubscriber, n as SvelteMap } from "./index-server.js";
|
|
4
4
|
import { i as unmount, r as tick, t as mount } from "./index-server2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/scroll-text.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/search.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, i as bind_props, kt as clsx, r as attributes, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, i as bind_props, kt as clsx, r as attributes, t as attr_class } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
import { t as Search$1 } from "./search.js";
|
|
4
4
|
import { t as X } from "./x.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as run, Lt as escape_html, a as derived, d as spread_props, i as bind_props, l as props_id, r as attributes, s as ensure_array_like } from "./
|
|
1
|
+
import { Ft as run, Lt as escape_html, a as derived, d as spread_props, i as bind_props, l as props_id, r as attributes, s as ensure_array_like } from "./server4.js";
|
|
2
2
|
import { r as on } from "./events.js";
|
|
3
3
|
import { n as SvelteMap } from "./index-server.js";
|
|
4
4
|
import "./index-server2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, r as attributes } from "./
|
|
1
|
+
import { a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, r as attributes } from "./server4.js";
|
|
2
2
|
import { f as mergeProps, i as boolToStrTrueOrUndef, o as createBitsAttrs, t as createId, u as attachRef, y as boxWith } from "./create-id.js";
|
|
3
3
|
import { n as Icon, t as cn } from "./utils.js";
|
|
4
4
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/ellipsis.svelte
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as isEncryptedSecret } from "./providers.server.js";
|
|
2
1
|
import { O as ApiErrorCode, at as trimTrailing, k as apiError } from "./access.js";
|
|
2
|
+
import { N as isEncryptedSecret } from "./providers.server.js";
|
|
3
3
|
import { r as GuidSchema } from "./schemas.js";
|
|
4
4
|
import { n as isLinkLocalUrl } from "./safe-url.js";
|
|
5
5
|
// ../server/src/compute/evict-changed-servers.ts
|