@octonodes/sdk 0.2.16 → 0.2.38
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/PLUGINS.md +7 -1
- package/README.md +41 -0
- package/dist/data-tables/table.d.ts +90 -0
- package/dist/data-tables/table.d.ts.map +1 -0
- package/dist/data-tables/table.js +44 -0
- package/dist/data-tables/table.js.map +1 -0
- package/dist/data-tables/types.d.ts +24 -0
- package/dist/data-tables/types.d.ts.map +1 -0
- package/dist/data-tables/types.js +3 -0
- package/dist/data-tables/types.js.map +1 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/index.d.ts.map +1 -1
- package/dist/gen/sdk.gen.d.ts +9 -1
- package/dist/gen/sdk.gen.d.ts.map +1 -1
- package/dist/gen/sdk.gen.js +30 -0
- package/dist/gen/sdk.gen.js.map +1 -1
- package/dist/gen/types.gen.d.ts +264 -2
- package/dist/gen/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/octonode-client.d.ts +87 -0
- package/dist/octonode-client.d.ts.map +1 -1
- package/dist/octonode-client.js +4 -0
- package/dist/octonode-client.js.map +1 -1
- package/dist/plugins/schema/app/contributions.d.ts +355 -0
- package/dist/plugins/schema/app/contributions.d.ts.map +1 -0
- package/dist/plugins/schema/app/contributions.js +179 -0
- package/dist/plugins/schema/app/contributions.js.map +1 -0
- package/dist/plugins/schema/app-contributions.d.ts +355 -0
- package/dist/plugins/schema/app-contributions.d.ts.map +1 -0
- package/dist/plugins/schema/app-contributions.js +179 -0
- package/dist/plugins/schema/app-contributions.js.map +1 -0
- package/dist/plugins/schema/app.d.ts +532 -27
- package/dist/plugins/schema/app.d.ts.map +1 -1
- package/dist/plugins/schema/app.js +59 -5
- package/dist/plugins/schema/app.js.map +1 -1
- package/dist/plugins/schema/constants.d.ts +21 -2
- package/dist/plugins/schema/constants.d.ts.map +1 -1
- package/dist/plugins/schema/constants.js +56 -1
- package/dist/plugins/schema/constants.js.map +1 -1
- package/dist/plugins/schema/icons.d.ts +4 -0
- package/dist/plugins/schema/icons.d.ts.map +1 -1
- package/dist/plugins/schema/icons.js +20 -1
- package/dist/plugins/schema/icons.js.map +1 -1
- package/dist/plugins/schema/ipc/envelope.d.ts +923 -0
- package/dist/plugins/schema/ipc/envelope.d.ts.map +1 -0
- package/dist/plugins/schema/ipc/envelope.js +210 -0
- package/dist/plugins/schema/ipc/envelope.js.map +1 -0
- package/dist/plugins/schema/ipc-envelope.d.ts +65 -65
- package/dist/plugins/schema/ipc-envelope.js +1 -1
- package/dist/plugins/schema/ipc-envelope.js.map +1 -1
- package/dist/plugins/schema/personal/layout.d.ts +52 -0
- package/dist/plugins/schema/personal/layout.d.ts.map +1 -0
- package/dist/plugins/schema/personal/layout.js +26 -0
- package/dist/plugins/schema/personal/layout.js.map +1 -0
- package/dist/plugins/schema/personal-layout.d.ts +52 -0
- package/dist/plugins/schema/personal-layout.d.ts.map +1 -0
- package/dist/plugins/schema/personal-layout.js +26 -0
- package/dist/plugins/schema/personal-layout.js.map +1 -0
- package/dist/plugins/schema/plugin/execution.d.ts +854 -55
- package/dist/plugins/schema/plugin/execution.d.ts.map +1 -1
- package/dist/plugins/schema/plugin/execution.js +2 -2
- package/dist/plugins/schema/plugin/execution.js.map +1 -1
- package/dist/plugins/schema/plugin/plugin.d.ts +808 -45
- package/dist/plugins/schema/plugin/plugin.d.ts.map +1 -1
- package/dist/plugins/schema/plugin/plugin.js +82 -6
- package/dist/plugins/schema/plugin/plugin.js.map +1 -1
- package/dist/plugins/schema/plugin/publishing.d.ts +234 -122
- package/dist/plugins/schema/plugin/publishing.d.ts.map +1 -1
- package/dist/plugins/schema/plugin/publishing.js +20 -1
- package/dist/plugins/schema/plugin/publishing.js.map +1 -1
- package/dist/plugins/schema/plugin-publishing.d.ts +122 -122
- package/dist/plugins/schema/plugin-sdk/index.d.ts +2 -1
- package/dist/plugins/schema/plugin-sdk/index.d.ts.map +1 -1
- package/dist/plugins/schema/plugin-sdk/index.js +2 -1
- package/dist/plugins/schema/plugin-sdk/index.js.map +1 -1
- package/dist/plugins/schema/plugin.d.ts +22 -22
- package/dist/plugins/sdk/constants.d.ts +5 -0
- package/dist/plugins/sdk/constants.d.ts.map +1 -0
- package/dist/plugins/sdk/constants.js +9 -0
- package/dist/plugins/sdk/constants.js.map +1 -0
- package/dist/plugins/sdk/define/node.d.ts +15 -0
- package/dist/plugins/sdk/define/node.d.ts.map +1 -0
- package/dist/plugins/sdk/define/node.js +58 -0
- package/dist/plugins/sdk/define/node.js.map +1 -0
- package/dist/plugins/sdk/define-node.d.ts +5 -0
- package/dist/plugins/sdk/define-node.d.ts.map +1 -1
- package/dist/plugins/sdk/define-node.js +1 -1
- package/dist/plugins/sdk/define-node.js.map +1 -1
- package/dist/plugins/sdk/definitions/clients/output.d.ts +3 -0
- package/dist/plugins/sdk/definitions/clients/output.d.ts.map +1 -0
- package/dist/plugins/sdk/definitions/clients/output.js +47 -0
- package/dist/plugins/sdk/definitions/clients/output.js.map +1 -0
- package/dist/plugins/sdk/definitions/compiler/catalog.d.ts.map +1 -1
- package/dist/plugins/sdk/definitions/compiler/catalog.js +9 -0
- package/dist/plugins/sdk/definitions/compiler/catalog.js.map +1 -1
- package/dist/plugins/sdk/definitions/compiler/index.d.ts.map +1 -1
- package/dist/plugins/sdk/definitions/compiler/index.js +59 -2
- package/dist/plugins/sdk/definitions/compiler/index.js.map +1 -1
- package/dist/plugins/sdk/definitions/npm/emit/js.d.ts.map +1 -1
- package/dist/plugins/sdk/definitions/npm/emit/js.js +7 -3
- package/dist/plugins/sdk/definitions/npm/emit/js.js.map +1 -1
- package/dist/plugins/sdk/definitions/npm/types.d.ts +39 -3
- package/dist/plugins/sdk/definitions/npm/types.d.ts.map +1 -1
- package/dist/plugins/sdk/definitions/types.d.ts +10 -3
- package/dist/plugins/sdk/definitions/types.d.ts.map +1 -1
- package/dist/plugins/sdk/json/schema.d.ts +13 -0
- package/dist/plugins/sdk/json/schema.d.ts.map +1 -0
- package/dist/plugins/sdk/json/schema.js +113 -0
- package/dist/plugins/sdk/json/schema.js.map +1 -0
- package/dist/plugins/sdk/json-schema.js +13 -0
- package/dist/plugins/sdk/json-schema.js.map +1 -1
- package/dist/plugins/sdk/nodes/index.d.ts +3 -1
- package/dist/plugins/sdk/nodes/index.d.ts.map +1 -1
- package/dist/plugins/sdk/nodes/index.js +5 -0
- package/dist/plugins/sdk/nodes/index.js.map +1 -1
- package/dist/plugins/sdk/plugin/index.d.ts +1 -0
- package/dist/plugins/sdk/plugin/index.d.ts.map +1 -1
- package/dist/plugins/sdk/plugin.d.ts +1 -1
- package/dist/plugins/sdk/plugin.d.ts.map +1 -1
- package/dist/plugins/sdk/plugin.js +2 -2
- package/dist/plugins/sdk/plugin.js.map +1 -1
- package/dist/plugins/sdk/plugins/define/node.d.ts +29 -0
- package/dist/plugins/sdk/plugins/define/node.d.ts.map +1 -0
- package/dist/plugins/sdk/plugins/define/node.js +16 -0
- package/dist/plugins/sdk/plugins/define/node.js.map +1 -0
- package/dist/plugins/sdk/plugins/index.d.ts +6 -4
- package/dist/plugins/sdk/plugins/index.d.ts.map +1 -1
- package/dist/plugins/sdk/plugins/index.js +24 -15
- package/dist/plugins/sdk/plugins/index.js.map +1 -1
- package/dist/plugins/sdk/plugins/types.d.ts +1 -1
- package/dist/plugins/sdk/plugins/types.d.ts.map +1 -1
- package/dist/plugins/sdk/runner.d.ts +3 -7
- package/dist/plugins/sdk/runner.d.ts.map +1 -1
- package/dist/plugins/sdk/runner.js +61 -18
- package/dist/plugins/sdk/runner.js.map +1 -1
- package/dist/plugins/sdk/types.d.ts +115 -0
- package/dist/plugins/sdk/types.d.ts.map +1 -0
- package/dist/plugins/sdk/types.js +3 -0
- package/dist/plugins/sdk/types.js.map +1 -0
- package/package.json +5 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/plugins/schema/app.ts"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CxB,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA8D,CAAC;AACzF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.appTunnelRegistrationSchema = exports.AppDefinition = exports.ExtensionOnlyApp = exports.SelfHostedApp = exports.SelfHostedAppExtension = exports.AppAction = void 0;
|
|
3
|
+
exports.appTunnelRegistrationSchema = exports.AppDefinition = exports.ContributionApp = exports.ExtensionOnlyApp = exports.SelfHostedApp = exports.SelfHostedAppExtension = exports.AppIconUrl = exports.AppAction = void 0;
|
|
4
4
|
// Generated from packages/schema/src/app.ts. Do not edit; run the Octonode SDK sync.
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
+
const icons_js_1 = require("./icons.js");
|
|
7
|
+
const contributions_js_1 = require("./app/contributions.js");
|
|
6
8
|
exports.AppAction = zod_1.z.enum(["projects:read", "data:read", "data:write", "workflows:run"]);
|
|
7
9
|
/** Registration validation only; outbound callers must also enforce DNS/redirect SSRF policy. */
|
|
8
10
|
const appUrl = zod_1.z
|
|
@@ -30,6 +32,7 @@ const appUrl = zod_1.z
|
|
|
30
32
|
return false;
|
|
31
33
|
}
|
|
32
34
|
}, "App URLs must use public HTTPS hostnames without credentials, query strings or fragments");
|
|
35
|
+
exports.AppIconUrl = appUrl;
|
|
33
36
|
exports.SelfHostedAppExtension = zod_1.z
|
|
34
37
|
.object({
|
|
35
38
|
id: zod_1.z
|
|
@@ -47,6 +50,7 @@ exports.SelfHostedApp = zod_1.z
|
|
|
47
50
|
apiVersion: zod_1.z.literal("1"),
|
|
48
51
|
hosting: zod_1.z.literal("self-hosted"),
|
|
49
52
|
applicationUrl: appUrl,
|
|
53
|
+
icon: icons_js_1.IconName.optional(),
|
|
50
54
|
iconUrl: appUrl.optional(),
|
|
51
55
|
privacyUrl: appUrl.optional(),
|
|
52
56
|
supportUrl: appUrl.optional(),
|
|
@@ -83,10 +87,11 @@ exports.SelfHostedApp = zod_1.z
|
|
|
83
87
|
ctx.addIssue({ code: "custom", path: ["extensions"], message: "App extension IDs must be unique" });
|
|
84
88
|
});
|
|
85
89
|
/** Static browser extensions use the existing artifact store, never backend compute. */
|
|
86
|
-
|
|
90
|
+
const extensionOnlyAppSchema = zod_1.z
|
|
87
91
|
.object({
|
|
88
92
|
apiVersion: zod_1.z.literal("2"),
|
|
89
93
|
hosting: zod_1.z.literal("extension-only"),
|
|
94
|
+
icon: icons_js_1.IconName.optional(),
|
|
90
95
|
iconUrl: appUrl.optional(),
|
|
91
96
|
settings: zod_1.z
|
|
92
97
|
.array(zod_1.z
|
|
@@ -123,8 +128,8 @@ exports.ExtensionOnlyApp = zod_1.z
|
|
|
123
128
|
.min(1)
|
|
124
129
|
.max(32),
|
|
125
130
|
})
|
|
126
|
-
.strict()
|
|
127
|
-
|
|
131
|
+
.strict();
|
|
132
|
+
exports.ExtensionOnlyApp = extensionOnlyAppSchema.superRefine((app, ctx) => {
|
|
128
133
|
if (new Set(app.settings.map((setting) => setting.id)).size !== app.settings.length)
|
|
129
134
|
ctx.addIssue({ code: "custom", path: ["settings"], message: "App setting IDs must be unique" });
|
|
130
135
|
for (const field of ["id", "path"]) {
|
|
@@ -132,7 +137,56 @@ exports.ExtensionOnlyApp = zod_1.z
|
|
|
132
137
|
ctx.addIssue({ code: "custom", path: ["extensions"], message: `App extension ${field}s must be unique` });
|
|
133
138
|
}
|
|
134
139
|
});
|
|
135
|
-
|
|
140
|
+
/** New placements are explicit v3 releases; old static v2 releases retain zero grants. */
|
|
141
|
+
exports.ContributionApp = extensionOnlyAppSchema
|
|
142
|
+
.extend({
|
|
143
|
+
apiVersion: zod_1.z.literal("3"),
|
|
144
|
+
requestedActions: zod_1.z
|
|
145
|
+
.array(exports.AppAction)
|
|
146
|
+
.max(4)
|
|
147
|
+
.default([])
|
|
148
|
+
.refine((actions) => new Set(actions).size === actions.length, "App actions must be unique"),
|
|
149
|
+
extensions: zod_1.z.array(contributions_js_1.appContributionSchema).min(1).max(32),
|
|
150
|
+
launchers: zod_1.z.array(contributions_js_1.appLauncherSchema).max(32).default([]),
|
|
151
|
+
locales: zod_1.z
|
|
152
|
+
.record(zod_1.z.string().regex(/^(en|de|es|fr|ja)$/), zod_1.z.record(zod_1.z.string().max(100), zod_1.z.string().max(4000)))
|
|
153
|
+
.default({}),
|
|
154
|
+
})
|
|
155
|
+
.strict()
|
|
156
|
+
.superRefine((app, ctx) => {
|
|
157
|
+
const ids = [...app.extensions, ...app.launchers].map((item) => item.id);
|
|
158
|
+
if (new Set(ids).size !== ids.length)
|
|
159
|
+
ctx.addIssue({ code: "custom", path: ["extensions"], message: "Contribution IDs must be unique" });
|
|
160
|
+
if (new Set(app.extensions.map((item) => item.path)).size !== app.extensions.length)
|
|
161
|
+
ctx.addIssue({ code: "custom", path: ["extensions"], message: "Contribution paths must be unique" });
|
|
162
|
+
if (new Set(app.settings.map((item) => item.id)).size !== app.settings.length)
|
|
163
|
+
ctx.addIssue({ code: "custom", path: ["settings"], message: "App setting IDs must be unique" });
|
|
164
|
+
for (const [index, launcher] of app.launchers.entries()) {
|
|
165
|
+
const destination = app.extensions.find((item) => item.id === launcher.opens);
|
|
166
|
+
if (!destination || !contributions_js_1.APP_VIEW_TARGETS.includes(destination.target))
|
|
167
|
+
ctx.addIssue({
|
|
168
|
+
code: "custom",
|
|
169
|
+
path: ["launchers", index, "opens"],
|
|
170
|
+
message: "Launcher destination must be a declared view",
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
for (const item of [...app.extensions, ...app.launchers]) {
|
|
174
|
+
if (!item.title.startsWith("t:"))
|
|
175
|
+
continue;
|
|
176
|
+
for (const language of ["en", "de", "es", "fr", "ja"]) {
|
|
177
|
+
if (!app.locales[language]?.[item.title.slice(2)])
|
|
178
|
+
ctx.addIssue({
|
|
179
|
+
code: "custom",
|
|
180
|
+
path: ["locales", language],
|
|
181
|
+
message: `Missing translation for ${item.title}`,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
for (const [language, dictionary] of Object.entries(app.locales))
|
|
186
|
+
if (Object.keys(dictionary ?? {}).length > 200)
|
|
187
|
+
ctx.addIssue({ code: "custom", path: ["locales", language], message: "At most 200 translations per language" });
|
|
188
|
+
});
|
|
189
|
+
exports.AppDefinition = zod_1.z.union([exports.SelfHostedApp, exports.ExtensionOnlyApp, exports.ContributionApp]);
|
|
136
190
|
exports.appTunnelRegistrationSchema = zod_1.z
|
|
137
191
|
.object({
|
|
138
192
|
upstream: zod_1.z.string().url().max(2048),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/plugins/schema/app.ts"],"names":[],"mappings":";;;AAAA,qFAAqF;AACrF,6BAAwB;
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/plugins/schema/app.ts"],"names":[],"mappings":";;;AAAA,qFAAqF;AACrF,6BAAwB;AACxB,yCAAsC;AACtC,6DAAoG;AAEvF,QAAA,SAAS,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;AAG/F,iGAAiG;AACjG,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,EAAE;KACR,GAAG,CAAC,KAAK,CAAC;KACV,GAAG,EAAE;KACL,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;IAChB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;QAC3B,OAAO,CACL,KAAK,KAAK,KAAK,CAAC,IAAI,EAAE;YACtB,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;YAC1B,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;YAC9B,GAAG,CAAC,QAAQ,KAAK,QAAQ;YACzB,CAAC,GAAG,CAAC,QAAQ;YACb,CAAC,GAAG,CAAC,QAAQ;YACb,CAAC,GAAG,CAAC,MAAM;YACX,CAAC,GAAG,CAAC,IAAI;YACT,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC1B,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC3B,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC3B,CAAC,sBAAsB,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC1C,CAAC,+BAA+B,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CACpD,CA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onode.project-job.v1";
|
|
3
4
|
export declare const COMMUNITY_MEDIA_IMAGE_BYTES: number;
|
|
4
5
|
export declare const COMMUNITY_MEDIA_VIDEO_BYTES: number;
|
|
@@ -9,10 +10,10 @@ export declare const PLUGIN_DEFINITION_FILENAMES: readonly ["octonode.yml", "oct
|
|
|
9
10
|
export declare const MARKETPLACE_SCOPES: readonly ["user", "group", "org", "public"];
|
|
10
11
|
export declare const SETTINGS_API_VERSION: "octonode.dev/settings/v1";
|
|
11
12
|
export declare const SETTINGS_SECTIONS: readonly ["appearance", "overrides", "layers", "views", "discovery"];
|
|
12
|
-
export declare const WORKSPACE_ACTIONS: readonly ["projects:read", "projects:write", "workflows:run", "data:read", "data:write", "tables:manage", "members:invite", "members:manage", "teams:manage", "plugins:publish", "plugins:install", "org:settings", "social:read", "social:write", "social:moderate", "tasks:read", "tasks:write", "tasks:manage", "reviews:write", "github:connect", "github:publish", "agents:manage", "billing:read", "billing:manage", "integrations:read", "integrations:manage", "design:read", "design:review", "previews:read", "previews:manage", "terminal:use", "workflow-agents:run", "workflow-agents:manage", "agent-operations:read", "agent-operations:manage", "data:export", "data:restore", "workspace:delete", "content:read", "content:write", "content:publish", "content:moderate"];
|
|
13
|
+
export declare const WORKSPACE_ACTIONS: readonly ["projects:read", "projects:write", "workflows:run", "data:read", "data:write", "tables:manage", "members:invite", "members:manage", "teams:manage", "plugins:publish", "plugins:install", "org:settings", "social:read", "social:write", "social:moderate", "tasks:read", "tasks:write", "tasks:manage", "reviews:write", "github:connect", "github:publish", "agents:manage", "billing:read", "billing:manage", "integrations:read", "integrations:manage", "design:read", "design:review", "previews:read", "previews:manage", "terminal:use", "workflow-agents:run", "workflow-agents:manage", "agent-operations:read", "agent-operations:manage", "data:export", "data:restore", "workspace:delete", "content:read", "content:write", "content:publish", "content:moderate", "apps:read", "apps:use", "apps:manage", "tokens:create", "tokens:use", "tokens:delegate", "tokens:manage", "policy:read", "policy:manage", "usage:read", "usage:manage", "remote:enroll", "remote:connect", "remote:execute", "remote:manage"];
|
|
13
14
|
export type WorkspaceAction = (typeof WORKSPACE_ACTIONS)[number];
|
|
14
15
|
export declare const AGENT_RUN_STATUSES: readonly ["queued", "running", "approval_required", "completed", "cancelled", "failed"];
|
|
15
|
-
export declare const AGENT_ERROR_CODES: readonly ["provider_not_configured", "service_unavailable", "provider_rate_limited", "provider_unavailable", "timeout", "cancelled", "invalid_model_response", "invalid_tool_call", "tool_failed", "step_limit", "token_limit", "permission_denied", "approval_denied", "conflict", "internal_error"];
|
|
16
|
+
export declare const AGENT_ERROR_CODES: readonly ["engine_incompatible", "provider_not_configured", "service_unavailable", "provider_rate_limited", "provider_unavailable", "timeout", "cancelled", "invalid_model_response", "invalid_tool_call", "tool_failed", "step_limit", "token_limit", "usage_limit", "permission_denied", "approval_denied", "conflict", "internal_error"];
|
|
16
17
|
export declare const AGENT_TOOL_RISKS: readonly ["read", "write", "high"];
|
|
17
18
|
export declare const COLLABORATION_ACTIONS: readonly ["social:read", "social:write", "social:moderate", "tasks:read", "tasks:write", "tasks:manage", "reviews:write", "design:read", "design:review", "github:connect", "github:publish", "agents:manage", "data:export", "data:restore", "workspace:delete", "content:read", "content:write", "content:publish", "content:moderate"];
|
|
18
19
|
export declare const TASK_SPACE_TEMPLATES: readonly ["simple", "kanban", "scrum"];
|
|
@@ -27,6 +28,24 @@ export declare const TASK_VIEW_SORTS: readonly ["rank", "updated", "due", "prior
|
|
|
27
28
|
export declare const TASK_LINK_TYPES: readonly ["blocks", "duplicates", "relates"];
|
|
28
29
|
export declare const TASK_SPRINT_STATES: readonly ["future", "active", "completed"];
|
|
29
30
|
export declare const TASK_RELEASE_STATES: readonly ["unreleased", "released", "archived"];
|
|
31
|
+
/** One bulk request may touch at most this many work items, in a single all-or-nothing transaction. */
|
|
32
|
+
export declare const WORK_ITEM_BULK_LIMIT = 100;
|
|
33
|
+
/** A subtree read returns at most this many items; deeper or wider trees report `truncated`. */
|
|
34
|
+
export declare const WORK_ITEM_TREE_LIMIT = 1000;
|
|
35
|
+
/** Space configuration bounds; statuses also bound the status filter. */
|
|
36
|
+
export declare const TASK_STATUS_LIMIT = 20;
|
|
37
|
+
export declare const WORK_ITEM_TYPE_LIMIT = 50;
|
|
38
|
+
export declare const TASK_FIELD_LIMIT = 50;
|
|
39
|
+
export declare const TASK_FIELD_OPTION_LIMIT = 100;
|
|
40
|
+
/**
|
|
41
|
+
* Task attachments live in a private R2 bucket. Types are an allowlist (no HTML or SVG, which can run script);
|
|
42
|
+
* the size cap is bounded by the Worker request body limit.
|
|
43
|
+
*/
|
|
44
|
+
export declare const TASK_ATTACHMENT_MAX_BYTES: number;
|
|
45
|
+
export declare const TASK_ATTACHMENT_ITEM_LIMIT = 50;
|
|
46
|
+
export declare const TASK_ATTACHMENT_WORKSPACE_QUOTA_BYTES: number;
|
|
47
|
+
export declare const TASK_ATTACHMENT_INLINE_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp", "image/avif", "video/mp4", "video/webm", "application/pdf"];
|
|
48
|
+
export declare const TASK_ATTACHMENT_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp", "image/avif", "video/mp4", "video/webm", "application/pdf", "text/plain", "text/markdown", "text/csv", "application/json", "application/zip", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.presentationml.presentation"];
|
|
30
49
|
export declare const SOURCE_CONTROL_REGION_KINDS: readonly ["if", "switch", "for", "while", "do-while", "for-in", "for-of", "break", "continue", "label", "try", "catch", "finally"];
|
|
31
50
|
export declare const PLATFORM_CAPABILITIES: readonly ["workspace_identity", "workspace_social", "task_management", "workspace_admin", "workflow_execution", "billing", "design_review", "design_preview", "architecture", "repository_registry", "repository_discovery", "repository_git_read", "repository_git_write", "design_architecture_embed", "workspace_registry_backup_restore", "github", "slack", "google", "meta", "qwen", "workflow_agents", "cloud_terminal", "mcp_catalog", "monitoring", "agent_monitoring", "backup_restore", "write_authority", "community_read", "community_authoring", "community_publishing", "workflow_templates"];
|
|
32
51
|
export declare const CAPABILITY_MODES: readonly ["trusted-local", "configured-local-cloud", "hosted"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/plugins/schema/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB,EAAG,GAAY,CAAC;AAClD,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,2BAA2B,QAAkB,CAAC;AAC3D,eAAO,MAAM,2BAA2B,QAAmB,CAAC;AAC5D,eAAO,MAAM,0BAA0B,QAAwD,CAAC;AAChG,eAAO,MAAM,qBAAqB,4FAOxB,CAAC;AACX,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAC/D,eAAO,MAAM,2BAA2B,qFAK9B,CAAC;AACX,eAAO,MAAM,kBAAkB,6CAA8C,CAAC;AAE9E,eAAO,MAAM,oBAAoB,EAAG,0BAAmC,CAAC;AACxE,eAAO,MAAM,iBAAiB,sEAAuE,CAAC;AAEtG,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/plugins/schema/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB,EAAG,GAAY,CAAC;AAClD,eAAO,MAAM,sBAAsB,EAAG,KAAc,CAAC;AACrD,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,2BAA2B,QAAkB,CAAC;AAC3D,eAAO,MAAM,2BAA2B,QAAmB,CAAC;AAC5D,eAAO,MAAM,0BAA0B,QAAwD,CAAC;AAChG,eAAO,MAAM,qBAAqB,4FAOxB,CAAC;AACX,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAC/D,eAAO,MAAM,2BAA2B,qFAK9B,CAAC;AACX,eAAO,MAAM,kBAAkB,6CAA8C,CAAC;AAE9E,eAAO,MAAM,oB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,MAAM,qCAAqC,QAAyB,CAAC;AAC5E,eAAO,MAAM,iCAAiC,6HASpC,CAAC;AACX,eAAO,MAAM,0BAA0B,4aAU7B,CAAC;AAEX,eAAO,MAAM,2BAA2B,oIAc9B,CAAC;AAEX,eAAO,MAAM,qBAAqB,8kBAgCxB,CAAC;AAEX,eAAO,MAAM,gBAAgB,gEAAiE,CAAC;AAE/F,eAAO,MAAM,8BAA8B,uLAQjC,CAAC;AAEX,eAAO,MAAM,oBAAoB,0GAKvB,CAAC;AACX,eAAO,MAAM,uBAAuB,kCAAkC,CAAC;AACvE,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAC9C,eAAO,MAAM,wBAAwB,QAAmB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PLUGIN_PUBLISH_MAX_BYTES = exports.PLUGIN_CONFIG_MAX_BYTES = exports.PLUGIN_PUBLISH_AUDIENCE = exports.PLUGIN_RELEASE_FILES = exports.CAPABILITY_UNAVAILABLE_REASONS = exports.CAPABILITY_MODES = exports.PLATFORM_CAPABILITIES = exports.SOURCE_CONTROL_REGION_KINDS = exports.TASK_RELEASE_STATES = exports.TASK_SPRINT_STATES = exports.TASK_LINK_TYPES = exports.TASK_VIEW_SORTS = exports.TASK_VIEW_GROUPS = exports.TASK_VIEW_LAYOUTS = exports.TASK_FIELD_TYPES = exports.WORK_ITEM_PRIORITIES = exports.BUILTIN_WORK_ITEM_TYPES = exports.WORK_ITEM_LEVELS = exports.TASK_STATUS_CATEGORIES = exports.TASK_SPACE_TEMPLATES = exports.COLLABORATION_ACTIONS = exports.AGENT_TOOL_RISKS = exports.AGENT_ERROR_CODES = exports.AGENT_RUN_STATUSES = exports.WORKSPACE_ACTIONS = exports.SETTINGS_SECTIONS = exports.SETTINGS_API_VERSION = exports.MARKETPLACE_SCOPES = exports.PLUGIN_DEFINITION_FILENAMES = exports.PLUGIN_MANIFEST_FILENAME = exports.COMMUNITY_MEDIA_TYPES = exports.COMMUNITY_MEDIA_BODY_BYTES = exports.COMMUNITY_MEDIA_VIDEO_BYTES = exports.COMMUNITY_MEDIA_IMAGE_BYTES = exports.PROJECT_JOB_PROTOCOL = exports.PLUGIN_SCHEMA_VERSION = void 0;
|
|
3
|
+
exports.PLUGIN_PUBLISH_MAX_BYTES = exports.PLUGIN_CONFIG_MAX_BYTES = exports.PLUGIN_PUBLISH_AUDIENCE = exports.PLUGIN_RELEASE_FILES = exports.CAPABILITY_UNAVAILABLE_REASONS = exports.CAPABILITY_MODES = exports.PLATFORM_CAPABILITIES = exports.SOURCE_CONTROL_REGION_KINDS = exports.TASK_ATTACHMENT_MIME_TYPES = exports.TASK_ATTACHMENT_INLINE_MIME_TYPES = exports.TASK_ATTACHMENT_WORKSPACE_QUOTA_BYTES = exports.TASK_ATTACHMENT_ITEM_LIMIT = exports.TASK_ATTACHMENT_MAX_BYTES = exports.TASK_FIELD_OPTION_LIMIT = exports.TASK_FIELD_LIMIT = exports.WORK_ITEM_TYPE_LIMIT = exports.TASK_STATUS_LIMIT = exports.WORK_ITEM_TREE_LIMIT = exports.WORK_ITEM_BULK_LIMIT = exports.TASK_RELEASE_STATES = exports.TASK_SPRINT_STATES = exports.TASK_LINK_TYPES = exports.TASK_VIEW_SORTS = exports.TASK_VIEW_GROUPS = exports.TASK_VIEW_LAYOUTS = exports.TASK_FIELD_TYPES = exports.WORK_ITEM_PRIORITIES = exports.BUILTIN_WORK_ITEM_TYPES = exports.WORK_ITEM_LEVELS = exports.TASK_STATUS_CATEGORIES = exports.TASK_SPACE_TEMPLATES = exports.COLLABORATION_ACTIONS = exports.AGENT_TOOL_RISKS = exports.AGENT_ERROR_CODES = exports.AGENT_RUN_STATUSES = exports.WORKSPACE_ACTIONS = exports.SETTINGS_SECTIONS = exports.SETTINGS_API_VERSION = exports.MARKETPLACE_SCOPES = exports.PLUGIN_DEFINITION_FILENAMES = exports.PLUGIN_MANIFEST_FILENAME = exports.COMMUNITY_MEDIA_TYPES = exports.COMMUNITY_MEDIA_BODY_BYTES = exports.COMMUNITY_MEDIA_VIDEO_BYTES = exports.COMMUNITY_MEDIA_IMAGE_BYTES = exports.PROJECT_JOB_PROTOCOL = exports.PLUGIN_DEFAULT_LICENSE = exports.PLUGIN_SCHEMA_VERSION = void 0;
|
|
4
4
|
// Generated from packages/schema/src/constants.ts. Do not edit; run the Octonode SDK sync.
|
|
5
5
|
exports.PLUGIN_SCHEMA_VERSION = "1";
|
|
6
|
+
exports.PLUGIN_DEFAULT_LICENSE = "MIT";
|
|
6
7
|
exports.PROJECT_JOB_PROTOCOL = "octonode.project-job.v1";
|
|
7
8
|
exports.COMMUNITY_MEDIA_IMAGE_BYTES = 8 * 1024 * 1024;
|
|
8
9
|
exports.COMMUNITY_MEDIA_VIDEO_BYTES = 20 * 1024 * 1024;
|
|
@@ -68,6 +69,21 @@ exports.WORKSPACE_ACTIONS = [
|
|
|
68
69
|
"content:write",
|
|
69
70
|
"content:publish",
|
|
70
71
|
"content:moderate",
|
|
72
|
+
"apps:read",
|
|
73
|
+
"apps:use",
|
|
74
|
+
"apps:manage",
|
|
75
|
+
"tokens:create",
|
|
76
|
+
"tokens:use",
|
|
77
|
+
"tokens:delegate",
|
|
78
|
+
"tokens:manage",
|
|
79
|
+
"policy:read",
|
|
80
|
+
"policy:manage",
|
|
81
|
+
"usage:read",
|
|
82
|
+
"usage:manage",
|
|
83
|
+
"remote:enroll",
|
|
84
|
+
"remote:connect",
|
|
85
|
+
"remote:execute",
|
|
86
|
+
"remote:manage",
|
|
71
87
|
];
|
|
72
88
|
exports.AGENT_RUN_STATUSES = [
|
|
73
89
|
"queued",
|
|
@@ -78,6 +94,7 @@ exports.AGENT_RUN_STATUSES = [
|
|
|
78
94
|
"failed",
|
|
79
95
|
];
|
|
80
96
|
exports.AGENT_ERROR_CODES = [
|
|
97
|
+
"engine_incompatible",
|
|
81
98
|
"provider_not_configured",
|
|
82
99
|
"service_unavailable",
|
|
83
100
|
"provider_rate_limited",
|
|
@@ -89,6 +106,7 @@ exports.AGENT_ERROR_CODES = [
|
|
|
89
106
|
"tool_failed",
|
|
90
107
|
"step_limit",
|
|
91
108
|
"token_limit",
|
|
109
|
+
"usage_limit",
|
|
92
110
|
"permission_denied",
|
|
93
111
|
"approval_denied",
|
|
94
112
|
"conflict",
|
|
@@ -147,6 +165,43 @@ exports.TASK_VIEW_SORTS = ["rank", "updated", "due", "priority"];
|
|
|
147
165
|
exports.TASK_LINK_TYPES = ["blocks", "duplicates", "relates"];
|
|
148
166
|
exports.TASK_SPRINT_STATES = ["future", "active", "completed"];
|
|
149
167
|
exports.TASK_RELEASE_STATES = ["unreleased", "released", "archived"];
|
|
168
|
+
/** One bulk request may touch at most this many work items, in a single all-or-nothing transaction. */
|
|
169
|
+
exports.WORK_ITEM_BULK_LIMIT = 100;
|
|
170
|
+
/** A subtree read returns at most this many items; deeper or wider trees report `truncated`. */
|
|
171
|
+
exports.WORK_ITEM_TREE_LIMIT = 1000;
|
|
172
|
+
/** Space configuration bounds; statuses also bound the status filter. */
|
|
173
|
+
exports.TASK_STATUS_LIMIT = 20;
|
|
174
|
+
exports.WORK_ITEM_TYPE_LIMIT = 50;
|
|
175
|
+
exports.TASK_FIELD_LIMIT = 50;
|
|
176
|
+
exports.TASK_FIELD_OPTION_LIMIT = 100;
|
|
177
|
+
/**
|
|
178
|
+
* Task attachments live in a private R2 bucket. Types are an allowlist (no HTML or SVG, which can run script);
|
|
179
|
+
* the size cap is bounded by the Worker request body limit.
|
|
180
|
+
*/
|
|
181
|
+
exports.TASK_ATTACHMENT_MAX_BYTES = 50 * 1024 * 1024;
|
|
182
|
+
exports.TASK_ATTACHMENT_ITEM_LIMIT = 50;
|
|
183
|
+
exports.TASK_ATTACHMENT_WORKSPACE_QUOTA_BYTES = 5 * 1024 * 1024 * 1024;
|
|
184
|
+
exports.TASK_ATTACHMENT_INLINE_MIME_TYPES = [
|
|
185
|
+
"image/png",
|
|
186
|
+
"image/jpeg",
|
|
187
|
+
"image/gif",
|
|
188
|
+
"image/webp",
|
|
189
|
+
"image/avif",
|
|
190
|
+
"video/mp4",
|
|
191
|
+
"video/webm",
|
|
192
|
+
"application/pdf",
|
|
193
|
+
];
|
|
194
|
+
exports.TASK_ATTACHMENT_MIME_TYPES = [
|
|
195
|
+
...exports.TASK_ATTACHMENT_INLINE_MIME_TYPES,
|
|
196
|
+
"text/plain",
|
|
197
|
+
"text/markdown",
|
|
198
|
+
"text/csv",
|
|
199
|
+
"application/json",
|
|
200
|
+
"application/zip",
|
|
201
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
202
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
203
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
204
|
+
];
|
|
150
205
|
exports.SOURCE_CONTROL_REGION_KINDS = [
|
|
151
206
|
"if",
|
|
152
207
|
"switch",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/plugins/schema/constants.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;AAC9E,QAAA,qBAAqB,GAAG,GAAY,CAAC;AACrC,QAAA,oBAAoB,GAAG,yBAAyB,CAAC;AACjD,QAAA,2BAA2B,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,QAAA,2BAA2B,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/C,QAAA,0BAA0B,GAAG,IAAI,CAAC,IAAI,CAAC,mCAA2B,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;AACnF,QAAA,qBAAqB,GAAG;IACnC,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,WAAW;IACX,WAAW;IACX,YAAY;CACJ,CAAC;AACE,QAAA,wBAAwB,GAAG,sBAAsB,CAAC;AAClD,QAAA,2BAA2B,GAAG;IACzC,cAAc;IACd,eAAe;IACf,eAAe;IACf,gCAAwB;CAChB,CAAC;AACE,QAAA,kBAAkB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAU,CAAC;AAEjE,QAAA,oBAAoB,GAAG,0BAAmC,CAAC;AAC3D,QAAA,iBAAiB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAU,CAAC;AAEzF,QAAA,iBAAiB,GAAG;IAC/B,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,WAAW;IACX,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,YAAY;IACZ,aAAa;IACb,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,mBAAmB;IACnB,qBAAqB;IACrB,aAAa;IACb,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,qBAAqB;IACrB,wBAAwB;IACxB,uBAAuB;IACvB,yBAAyB;IACzB,aAAa;IACb,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,kBAAkB;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/plugins/schema/constants.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;AAC9E,QAAA,qBAAqB,GAAG,GAAY,CAAC;AACrC,QAAA,sBAAsB,GAAG,KAAc,CAAC;AACxC,QAAA,oBAAoB,GAAG,yBAAyB,CAAC;AACjD,QAAA,2BAA2B,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,QAAA,2BAA2B,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/C,QAAA,0BAA0B,GAAG,IAAI,CAAC,IAAI,CAAC,mCAA2B,GA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I,GAAG,IAAI,CAAC"}
|
|
@@ -2,4 +2,8 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const ICON_NAMES: readonly ["arrow-up-down", "binary", "bomb", "boxes", "braces", "calculator", "calendar", "camera", "clock", "code", "copy-x", "database", "dices", "filter", "flag", "flask", "function", "git-branch", "git-merge", "group", "hook", "list-filter", "merge", "octagon-x", "package", "package-x", "pencil", "play", "regex", "repeat", "replace", "ruler", "scan-eye", "scissors", "search", "server-cog", "settings", "sigma", "split", "terminal", "test-tube", "text-cursor-input", "ticket", "truck", "type", "typescript", "ungroup", "variable", "wand", "wave", "webhook", "workflow", "x"];
|
|
3
3
|
export declare const IconName: z.ZodEnum<["arrow-up-down", "binary", "bomb", "boxes", "braces", "calculator", "calendar", "camera", "clock", "code", "copy-x", "database", "dices", "filter", "flag", "flask", "function", "git-branch", "git-merge", "group", "hook", "list-filter", "merge", "octagon-x", "package", "package-x", "pencil", "play", "regex", "repeat", "replace", "ruler", "scan-eye", "scissors", "search", "server-cog", "settings", "sigma", "split", "terminal", "test-tube", "text-cursor-input", "ticket", "truck", "type", "typescript", "ungroup", "variable", "wand", "wave", "webhook", "workflow", "x"]>;
|
|
4
4
|
export type IconName = z.infer<typeof IconName>;
|
|
5
|
+
/** Browser-rendered branding only; the server never downloads these images. */
|
|
6
|
+
export declare const HostedIconUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
export declare const IconValue: z.ZodUnion<[z.ZodEnum<["arrow-up-down", "binary", "bomb", "boxes", "braces", "calculator", "calendar", "camera", "clock", "code", "copy-x", "database", "dices", "filter", "flag", "flask", "function", "git-branch", "git-merge", "group", "hook", "list-filter", "merge", "octagon-x", "package", "package-x", "pencil", "play", "regex", "repeat", "replace", "ruler", "scan-eye", "scissors", "search", "server-cog", "settings", "sigma", "split", "terminal", "test-tube", "text-cursor-input", "ticket", "truck", "type", "typescript", "ungroup", "variable", "wand", "wave", "webhook", "workflow", "x"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
8
|
+
export type IconValue = z.infer<typeof IconValue>;
|
|
5
9
|
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/plugins/schema/icons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU,skBAsDb,CAAC;AAEX,eAAO,MAAM,QAAQ,wkBAAqB,CAAC;AAC3C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/plugins/schema/icons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU,skBAsDb,CAAC;AAEX,eAAO,MAAM,QAAQ,wkBAAqB,CAAC;AAC3C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,+EAA+E;AAC/E,eAAO,MAAM,aAAa,2CAiBmC,CAAC;AAE9D,eAAO,MAAM,SAAS,ioBAAqC,CAAC;AAC5D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IconName = exports.ICON_NAMES = void 0;
|
|
3
|
+
exports.IconValue = exports.HostedIconUrl = exports.IconName = exports.ICON_NAMES = void 0;
|
|
4
4
|
// Generated from packages/schema/src/icons.ts. Do not edit; run the Octonode SDK sync.
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.ICON_NAMES = [
|
|
@@ -59,4 +59,23 @@ exports.ICON_NAMES = [
|
|
|
59
59
|
"x",
|
|
60
60
|
];
|
|
61
61
|
exports.IconName = zod_1.z.enum(exports.ICON_NAMES);
|
|
62
|
+
/** Browser-rendered branding only; the server never downloads these images. */
|
|
63
|
+
exports.HostedIconUrl = zod_1.z
|
|
64
|
+
.string()
|
|
65
|
+
.max(2_048)
|
|
66
|
+
.url()
|
|
67
|
+
.refine((value) => {
|
|
68
|
+
try {
|
|
69
|
+
const url = new URL(value);
|
|
70
|
+
return (/^https:\/\//i.test(value) &&
|
|
71
|
+
!/[\p{Cc}\s\\]/u.test(value) &&
|
|
72
|
+
url.protocol === "https:" &&
|
|
73
|
+
!url.username &&
|
|
74
|
+
!url.password);
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
}, "Icon images must use an HTTPS URL without credentials");
|
|
80
|
+
exports.IconValue = zod_1.z.union([exports.IconName, exports.HostedIconUrl]);
|
|
62
81
|
//# sourceMappingURL=icons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/plugins/schema/icons.ts"],"names":[],"mappings":";;;AAAA,uFAAuF;AACvF,6BAAwB;AAEX,QAAA,UAAU,GAAG;IACxB,eAAe;IACf,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,OAAO;IACP,MAAM;IACN,QAAQ;IACR,UAAU;IACV,OAAO;IACP,QAAQ;IACR,MAAM;IACN,OAAO;IACP,UAAU;IACV,YAAY;IACZ,WAAW;IACX,OAAO;IACP,MAAM;IACN,aAAa;IACb,OAAO;IACP,WAAW;IACX,SAAS;IACT,WAAW;IACX,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;IACT,OAAO;IACP,UAAU;IACV,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,OAAO;IACP,OAAO;IACP,UAAU;IACV,WAAW;IACX,mBAAmB;IACnB,QAAQ;IACR,OAAO;IACP,MAAM;IACN,YAAY;IACZ,SAAS;IACT,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,UAAU;IACV,GAAG;CACK,CAAC;AAEE,QAAA,QAAQ,GAAG,OAAC,CAAC,IAAI,CAAC,kBAAU,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/plugins/schema/icons.ts"],"names":[],"mappings":";;;AAAA,uFAAuF;AACvF,6BAAwB;AAEX,QAAA,UAAU,GAAG;IACxB,eAAe;IACf,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,OAAO;IACP,MAAM;IACN,QAAQ;IACR,UAAU;IACV,OAAO;IACP,QAAQ;IACR,MAAM;IACN,OAAO;IACP,UAAU;IACV,YAAY;IACZ,WAAW;IACX,OAAO;IACP,MAAM;IACN,aAAa;IACb,OAAO;IACP,WAAW;IACX,SAAS;IACT,WAAW;IACX,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;IACT,OAAO;IACP,UAAU;IACV,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,OAAO;IACP,OAAO;IACP,UAAU;IACV,WAAW;IACX,mBAAmB;IACnB,QAAQ;IACR,OAAO;IACP,MAAM;IACN,YAAY;IACZ,SAAS;IACT,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,UAAU;IACV,GAAG;CACK,CAAC;AAEE,QAAA,QAAQ,GAAG,OAAC,CAAC,IAAI,CAAC,kBAAU,CAAC,CAAC;AAG3C,+EAA+E;AAClE,QAAA,aAAa,GAAG,OAAC;KAC3B,MAAM,EAAE;KACR,GAAG,CAAC,KAAK,CAAC;KACV,GAAG,EAAE;KACL,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;IAChB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAA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