@octonodes/ui-extensions 0.2.40 → 0.2.41
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/README.md +0 -3
- package/dist/app/OctonodeAppProvider/AppAccessScreen/AppAccessScreen.d.ts.map +1 -1
- package/dist/app/OctonodeAppProvider/AppAccessScreen/AppAccessScreen.js +2 -2
- package/dist/app/OctonodeAppProvider/AppAccessScreen/AppAccessScreen.js.map +1 -1
- package/dist/app/OctonodeAppProvider/AppAccessScreen/constants.d.ts +3 -0
- package/dist/app/OctonodeAppProvider/AppAccessScreen/constants.d.ts.map +1 -1
- package/dist/app/OctonodeAppProvider/AppAccessScreen/constants.js +3 -0
- package/dist/app/OctonodeAppProvider/AppAccessScreen/constants.js.map +1 -1
- package/dist/app/OctonodeAppProvider/AppAccessScreen/index.d.ts.map +1 -1
- package/dist/app/OctonodeAppProvider/AppAccessScreen/index.js.map +1 -1
- package/dist/app/OctonodeAppProvider/OctonodeAppProvider.d.ts.map +1 -1
- package/dist/app/OctonodeAppProvider/OctonodeAppProvider.js.map +1 -1
- package/dist/app/OctonodeAppProvider/OctonodeAppProvider.types.d.ts.map +1 -1
- package/dist/app/OctonodeAppProvider/constants.d.ts.map +1 -1
- package/dist/app/OctonodeAppProvider/context.d.ts.map +1 -1
- package/dist/app/OctonodeAppProvider/index.d.ts.map +1 -1
- package/dist/app/OctonodeAppProvider/index.js.map +1 -1
- package/dist/app/constants.d.ts +5 -0
- package/dist/app/constants.d.ts.map +1 -1
- package/dist/app/constants.js +5 -0
- package/dist/app/constants.js.map +1 -1
- package/dist/app/gen/client/client.gen.d.ts +3 -0
- package/dist/app/gen/client/client.gen.d.ts.map +1 -0
- package/dist/app/gen/client/client.gen.js +218 -0
- package/dist/app/gen/client/client.gen.js.map +1 -0
- package/dist/app/gen/client/index.d.ts +11 -0
- package/dist/app/gen/client/index.d.ts.map +1 -0
- package/dist/app/gen/client/index.js +8 -0
- package/dist/app/gen/client/index.js.map +1 -0
- package/dist/app/gen/client/types.gen.d.ts +121 -0
- package/dist/app/gen/client/types.gen.d.ts.map +1 -0
- package/dist/app/gen/client/types.gen.js +4 -0
- package/dist/app/gen/client/types.gen.js.map +1 -0
- package/dist/app/gen/client/utils.gen.d.ts +38 -0
- package/dist/app/gen/client/utils.gen.d.ts.map +1 -0
- package/dist/app/gen/client/utils.gen.js +230 -0
- package/dist/app/gen/client/utils.gen.js.map +1 -0
- package/dist/app/gen/client.gen.d.ts +13 -0
- package/dist/app/gen/client.gen.d.ts.map +1 -0
- package/dist/app/gen/client.gen.js +5 -0
- package/dist/app/gen/client.gen.js.map +1 -0
- package/dist/app/gen/core/auth.gen.d.ts +26 -0
- package/dist/app/gen/core/auth.gen.d.ts.map +1 -0
- package/dist/app/gen/core/auth.gen.js +16 -0
- package/dist/app/gen/core/auth.gen.js.map +1 -0
- package/dist/app/gen/core/bodySerializer.gen.d.ts +26 -0
- package/dist/app/gen/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/app/gen/core/bodySerializer.gen.js +59 -0
- package/dist/app/gen/core/bodySerializer.gen.js.map +1 -0
- package/dist/app/gen/core/params.gen.d.ts +44 -0
- package/dist/app/gen/core/params.gen.d.ts.map +1 -0
- package/dist/app/gen/core/params.gen.js +102 -0
- package/dist/app/gen/core/params.gen.js.map +1 -0
- package/dist/app/gen/core/pathSerializer.gen.d.ts +34 -0
- package/dist/app/gen/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/app/gen/core/pathSerializer.gen.js +108 -0
- package/dist/app/gen/core/pathSerializer.gen.js.map +1 -0
- package/dist/app/gen/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/app/gen/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/app/gen/core/queryKeySerializer.gen.js +94 -0
- package/dist/app/gen/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/app/gen/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/app/gen/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/app/gen/core/serverSentEvents.gen.js +134 -0
- package/dist/app/gen/core/serverSentEvents.gen.js.map +1 -0
- package/dist/app/gen/core/types.gen.d.ts +84 -0
- package/dist/app/gen/core/types.gen.d.ts.map +1 -0
- package/dist/app/gen/core/types.gen.js +4 -0
- package/dist/app/gen/core/types.gen.js.map +1 -0
- package/dist/app/gen/core/utils.gen.d.ts +20 -0
- package/dist/app/gen/core/utils.gen.d.ts.map +1 -0
- package/dist/app/gen/core/utils.gen.js +89 -0
- package/dist/app/gen/core/utils.gen.js.map +1 -0
- package/dist/app/gen/index.d.ts +3 -0
- package/dist/app/gen/index.d.ts.map +1 -0
- package/dist/app/gen/index.js +4 -0
- package/dist/app/gen/index.js.map +1 -0
- package/dist/app/gen/sdk.gen.d.ts +28 -0
- package/dist/app/gen/sdk.gen.d.ts.map +1 -0
- package/dist/app/gen/sdk.gen.js +36 -0
- package/dist/app/gen/sdk.gen.js.map +1 -0
- package/dist/app/gen/types.gen.d.ts +450 -0
- package/dist/app/gen/types.gen.d.ts.map +1 -0
- package/dist/app/gen/types.gen.js +4 -0
- package/dist/app/gen/types.gen.js.map +1 -0
- package/dist/app/hosted.d.ts.map +1 -1
- package/dist/app/hosted.js +5 -4
- package/dist/app/hosted.js.map +1 -1
- package/dist/app/index.d.ts +1 -0
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +3 -2
- package/dist/app/index.js.map +1 -1
- package/dist/app/project.d.ts +2 -8
- package/dist/app/project.d.ts.map +1 -1
- package/dist/app/project.js.map +1 -1
- package/dist/app/server.d.ts +2 -6
- package/dist/app/server.d.ts.map +1 -1
- package/dist/app/server.js +28 -16
- package/dist/app/server.js.map +1 -1
- package/dist/app/types.d.ts +11 -17
- package/dist/app/types.d.ts.map +1 -1
- package/dist/constants/constants.d.ts +9 -0
- package/dist/constants/constants.d.ts.map +1 -0
- package/dist/constants/constants.js +53 -0
- package/dist/constants/constants.js.map +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +3 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/contributions.d.ts.map +1 -1
- package/dist/contributions.js +0 -1
- package/dist/contributions.js.map +1 -1
- package/dist/contributions.types.d.ts +1 -1
- package/dist/contributions.types.d.ts.map +1 -1
- package/dist/hooks/general/useExtension.d.ts +1 -1
- package/dist/hooks/general/useExtension.d.ts.map +1 -1
- package/dist/hooks/general/useExtension.js.map +1 -1
- package/dist/hooks/general/useHostedApp.d.ts.map +1 -1
- package/dist/hooks/general/useHostedApp.js.map +1 -1
- package/dist/hooks/general/useOctonodeApp.d.ts.map +1 -1
- package/dist/hooks/general/useOctonodeApp.js.map +1 -1
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js.map +1 -1
- package/dist/types.d.ts +9 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -220,9 +220,6 @@ const run = await project.wf.run("sync-products", { source: "app" });
|
|
|
220
220
|
|
|
221
221
|
A developer-hosted backend can use the same project API after verifying the browser's app bearer. Configure the API URL and your own registered app ID on the server; never accept either from an incoming request.
|
|
222
222
|
|
|
223
|
-
The server helper supports Node 20.19+, 22.12+, or newer (`^20.19.0 || >=22.12.0`).
|
|
224
|
-
Your backend code and dependencies must also support the selected runtime.
|
|
225
|
-
|
|
226
223
|
```ts
|
|
227
224
|
import { connectAppServer } from "@octonodes/ui-extensions/app/server";
|
|
228
225
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppAccessScreen.d.ts","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/AppAccessScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppAccessScreen.d.ts","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/AppAccessScreen.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mCAAgC;AASpE,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA+I/D"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
// Generated from packages/ui-extensions/src/app/OctonodeAppProvider/AppAccessScreen/AppAccessScreen.tsx. Do not edit; run the Octonode SDK sync.
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { locales } from "../../../locales/index.js";
|
|
5
|
-
import { ACCESS_SCREEN_CSS, OCTONODE_LOGO } from "./constants.js";
|
|
5
|
+
import { ACCESS_SCREEN_CSS, APP_ACCESS_SCREEN_HREF_OCTONODES_STUDIO_URL, APP_ACCESS_SCREEN_HREF_PLAYBOOK_OCTONODES_DOCS_APPS_URL, APP_ACCESS_SCREEN_HREF_URL, OCTONODE_LOGO, } from "./constants.js";
|
|
6
6
|
export function AppAccessScreen({ status }) {
|
|
7
7
|
const [language, setLanguage] = useState("en");
|
|
8
8
|
useEffect(() => {
|
|
@@ -12,6 +12,6 @@ export function AppAccessScreen({ status }) {
|
|
|
12
12
|
}, []);
|
|
13
13
|
const t = locales[language];
|
|
14
14
|
const connecting = status === "connecting";
|
|
15
|
-
return (_jsxs("div", { className: `octo-access octo-access-${status}`, lang: language, children: [_jsx("style", { children: ACCESS_SCREEN_CSS }), _jsxs("header", { className: "octo-access-header", children: [_jsxs("a", { className: "octo-access-brand", href:
|
|
15
|
+
return (_jsxs("div", { className: `octo-access octo-access-${status}`, lang: language, children: [_jsx("style", { children: ACCESS_SCREEN_CSS }), _jsxs("header", { className: "octo-access-header", children: [_jsxs("a", { className: "octo-access-brand", href: APP_ACCESS_SCREEN_HREF_URL, target: "_blank", rel: "noopener noreferrer", children: [_jsx("img", { src: OCTONODE_LOGO, alt: "" }), "octonode"] }), _jsxs("a", { className: "octo-access-guide", href: APP_ACCESS_SCREEN_HREF_PLAYBOOK_OCTONODES_DOCS_APPS_URL, target: "_blank", rel: "noopener noreferrer", children: [t.guide, _jsx("span", { "aria-hidden": "true", children: "\u2197" })] })] }), _jsxs("main", { className: "octo-access-main", children: [_jsxs("section", { className: "octo-access-copy", "aria-labelledby": "octo-access-title", children: [_jsxs("p", { className: "octo-access-status", role: status === "expired" || status === "error" ? "alert" : "status", children: [_jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.7", "aria-hidden": "true", children: connecting ? (_jsx("path", { d: "M20 12a8 8 0 1 1-8-8" })) : (_jsxs(_Fragment, { children: [_jsx("rect", { x: "6", y: "10", width: "12", height: "10", rx: "2" }), _jsx("path", { d: "M9 10V7a3 3 0 0 1 6 0v3" })] })) }), t[`${status}Status`]] }), _jsx("h1", { id: "octo-access-title", children: t[`${status}Title`] }), _jsx("p", { className: "octo-access-description", children: t[`${status}Description`] }), !connecting && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "octo-access-actions", children: [_jsxs("a", { className: "octo-access-primary", href: APP_ACCESS_SCREEN_HREF_OCTONODES_STUDIO_URL, target: "_blank", rel: "noopener noreferrer", children: [t.open, _jsx("span", { "aria-hidden": "true", children: "\u2197" })] }), _jsx("a", { className: "octo-access-secondary", href: APP_ACCESS_SCREEN_HREF_PLAYBOOK_OCTONODES_DOCS_APPS_URL, target: "_blank", rel: "noopener noreferrer", children: t.about })] }), _jsxs("p", { className: "octo-access-hint", children: [_jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: [_jsx("path", { d: "m12 3 8 3v6c0 5-8 9-8 9s-8-4-8-9V6Z" }), _jsx("path", { d: "m8 12 3 3 5-6" })] }), t.hint] })] }))] }), _jsxs("div", { className: "octo-access-visual", "aria-hidden": "true", children: [_jsx("div", { className: "octo-access-orbit" }), _jsxs("div", { className: "octo-access-workspace", children: [_jsxs("div", { className: "octo-access-window", children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {}), _jsx("span", { children: "octonode / workspace" }), _jsx("b", {})] }), _jsxs("div", { className: "octo-access-body", children: [_jsxs("div", { className: "octo-access-workspace-title", children: [_jsx("img", { src: OCTONODE_LOGO, alt: "" }), t.workspace] }), _jsx("div", { className: "octo-access-skeleton" }), _jsxs("div", { className: "octo-access-flow", children: [_jsx("div", { className: "octo-access-node", children: _jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [_jsx("rect", { x: "3", y: "3", width: "7", height: "7", rx: "2" }), _jsx("rect", { x: "14", y: "3", width: "7", height: "7", rx: "2" }), _jsx("rect", { x: "3", y: "14", width: "7", height: "7", rx: "2" }), _jsx("rect", { x: "14", y: "14", width: "7", height: "7", rx: "2" })] }) }), _jsx("div", { className: "octo-access-wire" }), _jsx("div", { className: "octo-access-node active", children: _jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [_jsx("path", { d: "m12 3 8 5v8l-8 5-8-5V8Z" }), _jsx("path", { d: "m4 8 8 5 8-5M12 13v8" })] }) }), _jsx("div", { className: "octo-access-wire" }), _jsx("div", { className: "octo-access-node", children: _jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [_jsx("ellipse", { cx: "12", cy: "5", rx: "8", ry: "3" }), _jsx("path", { d: "M4 5v14c0 4 16 4 16 0V5M4 12c0 4 16 4 16 0" })] }) })] }), _jsxs("div", { className: "octo-access-placeholder", children: [_jsx("i", {}), _jsx("i", {})] }), _jsxs("div", { className: "octo-access-placeholder", children: [_jsx("i", {}), _jsx("i", {})] })] })] }), _jsx("div", { className: "octo-access-lock", children: _jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [_jsx("rect", { x: "5", y: "10", width: "14", height: "11", rx: "3" }), _jsx("path", { d: "M8 10V7a4 4 0 0 1 8 0v3M12 14v3" })] }) }), _jsx("p", { className: "octo-access-caption", children: t.caption })] })] }), _jsxs("footer", { className: "octo-access-footer", children: [_jsx("p", { children: t.footer }), _jsx("a", { href: APP_ACCESS_SCREEN_HREF_PLAYBOOK_OCTONODES_DOCS_APPS_URL, target: "_blank", rel: "noopener noreferrer", children: t.help })] })] }));
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=AppAccessScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppAccessScreen.js","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/AppAccessScreen.tsx"],"names":[],"mappings":";AAAA,iJAAiJ;AACjJ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AppAccessScreen.js","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/AppAccessScreen.tsx"],"names":[],"mappings":";AAAA,iJAAiJ;AACjJ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,kCAAyB;AAE3C,OAAO,EACL,iBAAiB,EACjB,2CAA2C,EAC3C,uDAAuD,EACvD,0BAA0B,EAC1B,aAAa,GACd,uBAAoB;AAErB,MAAM,UAAU,eAAe,CAAC,EAAE,MAAM,EAAwB;IAC9D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAuB,IAAI,CAAC,CAAC;IACrE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,IAAI,GAAG,C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ff765f;box-sizing:border-box;min-height:100svh;background:#f7f8fc;color:var(--octo-ink);font-family:\"Avenir Next\",Avenir,\"Segoe UI\",sans-serif;font-size:16px;line-height:1.5;padding:0 48px;isolation:isolate}\n.octo-access *{box-sizing:border-box}.octo-access a{color:inherit;text-decoration:none}.octo-access a:focus-visible{outline:3px solid #af3e29;outline-offset:5px}.octo-access a:hover{text-decoration:underline}\n.octo-access-header,.octo-access-footer{max-width:1120px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:24px}.octo-access-header{height:100px;border-bottom:1px solid #e3e5ee}.octo-access-brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:750;letter-spacing:-1px}.octo-access-brand img{width:36px;height:36px}.octo-access a.octo-access-guide{font-size:14px;color:var(--octo-muted);display:flex;align-items:center;gap:8px}\n.octo-access-main{max-width:1120px;min-height:calc(100svh - 185px);margin:auto;display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:70px;padding:72px 0}.octo-access-copy{max-width:520px}.octo-access-status{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:6px 11px;border:1px solid #dedeea;background:#eeeff6;border-radius:6px;font-size:12px;font-weight:600;color:#515164}.octo-access-status svg{width:14px;height:14px}.octo-access h1{margin:0;font-size:clamp(40px,4.3vw,62px);font-weight:650;letter-spacing:-2.8px;line-height:1.09;text-wrap:balance}.octo-access-description{max-width:430px;margin:24px 0 30px;font-size:17px;line-height:1.75;color:var(--octo-muted)}.octo-access-actions{display:flex;align-items:center;gap:23px;flex-wrap:wrap}.octo-access a.octo-access-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:13px 21px;border-radius:9px;background:var(--octo-ink);color:#fff;font-size:14px;font-weight:650;box-shadow:0 4px 0 #25253612}.octo-access a.octo-access-primary:hover{background:#404056;text-decoration:none}.octo-access-secondary{font-size:14px;font-weight:600}.octo-access-hint{display:flex;align-items:flex-start;gap:9px;max-width:415px;margin:27px 0 0;color:var(--octo-muted);font-size:12px;line-height:1.65}.octo-access-hint svg{flex:none;width:15px;height:15px;margin-top:2px}\n.octo-access-visual{position:relative;aspect-ratio:1;display:grid;place-items:center}.octo-access-orbit{position:absolute;width:87%;aspect-ratio:1;border:1px solid #dfe2ee;border-radius:50%}.octo-access-orbit::before{content:\"\";position:absolute;inset:42px;border:1px dashed #dfe2ee;border-radius:50%}.octo-access-orbit::after{content:\"\";position:absolute;width:10px;height:10px;border-radius:50%;background:#b2b7cf;top:13%;left:13%;box-shadow:285px 240px 0 #ffb7a8}.octo-access-workspace{position:relative;transform:rotate(-5deg);width:90%;max-width:405px;background:#fff;border:1px solid #dee1ed;border-radius:14px;box-shadow:0 24px 65px #373e6510;overflow:hidden}.octo-access-window{height:39px;border-bottom:1px solid #eceef4;display:flex;align-items:center;gap:5px;padding:0 16px;background:#fafbfe}.octo-access-window i{width:6px;height:6px;border-radius:50%;background:#d3d7e3}.octo-access-window span{margin:auto;color:#5e6578;font-size:10px}.octo-access-window b{width:22px}.octo-access-body{padding:25px 24px 22px}.octo-access-workspace-title{font-size:13px;font-weight:650;display:flex;align-items:center;gap:9px}.octo-access-workspace-title img{width:23px;height:23px;border-radius:6px}.octo-access-skeleton{height:6px;width:42%;margin-top:11px;border-radius:3px;background:#eceef5}.octo-access-flow{display:flex;align-items:center;margin:29px 0}.octo-access-node{width:62px;height:61px;display:grid;place-items:center;background:#f4f5fa;border:1px solid #e1e4ef;border-radius:11px}.octo-access-node svg{width:23px;height:23px;color:#9ca3bc}.octo-access-node.active{background:#fff0eb;border-color:#ffc4b7}.octo-access-node.active svg{color:#bd4832}.octo-access-wire{height:1px;background:#d9ddec;flex:1}.octo-access-placeholder{display:flex;gap:8px;margin-top:12px}.octo-access-placeholder i{height:6px;width:35%;border-radius:3px;background:#eceef5}.octo-access-placeholder i+ i{width:20%}.octo-access-lock{position:absolute;bottom:10%;right:0;width:76px;height:76px;display:grid;place-items:center;border:7px solid #f7f8fc;border-radius:22px;background:#fff0eb;transform:rotate(7deg);box-shadow:0 8px 25px #373e650a}.octo-access-lock svg{width:29px;height:29px;color:#bd4832}.octo-access-caption{position:absolute;bottom:0;margin:0;font-size:12px;color:#5e6578;text-align:center}\n.octo-access-footer{min-height:85px;border-top:1px solid #e3e5ee;color:#5e6578;font-size:12px}.octo-access-footer p{margin:0}.octo-access-footer a{padding:10px 0}.octo-access-connecting .octo-access-status svg{animation:octo-turn 2s linear infinite}@keyframes octo-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.octo-access-connecting .octo-access-status svg{animation:none}}\n@media(max-width:850px){.octo-access{padding:0 28px}.octo-access-main{gap:25px}.octo-access h1{font-size:44px}.octo-access-visual{min-width:0}.octo-access-body{padding:18px}.octo-access-orbit::after{box-shadow:none}}@media(max-width:650px){.octo-access{padding:0 24px}.octo-access-header{height:80px}.octo-access-brand{font-size:21px}.octo-access-main{grid-template-columns:1fr;gap:45px;padding:48px 0 40px}.octo-access-copy{max-width:480px}.octo-access h1{font-size:clamp(38px,8vw,46px);letter-spacing:-2px}.octo-access-description{font-size:16px}.octo-access-visual{width:100%;max-width:390px;margin:auto;aspect-ratio:auto;min-height:340px;padding-bottom:40px}.octo-access-footer{align-items:flex-start;padding:22px 0;min-height:80px;font-size:11px}.octo-access a.octo-access-guide{font-size:12px}.octo-access-caption{font-size:11px}.octo-access-lock{right:4%}}\n@media(forced-colors:active){.octo-access,.octo-access *{color:CanvasText!important}.octo-access a,.octo-access a *{color:LinkText!important}}\n";
|
|
2
2
|
export declare const OCTONODE_LOGO: string;
|
|
3
|
+
export declare const APP_ACCESS_SCREEN_HREF_URL = "https://octonodes.com";
|
|
4
|
+
export declare const APP_ACCESS_SCREEN_HREF_PLAYBOOK_OCTONODES_DOCS_APPS_URL = "https://playbook.octonodes.com/docs/apps";
|
|
5
|
+
export declare const APP_ACCESS_SCREEN_HREF_OCTONODES_STUDIO_URL = "https://octonodes.com/studio";
|
|
3
6
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,87LAS7B,CAAC;AACF,eAAO,MAAM,aAAa,QAIvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,87LAS7B,CAAC;AACF,eAAO,MAAM,aAAa,QAIvB,CAAC;AAEJ,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,uDAAuD,6CAA6C,CAAC;AAClH,eAAO,MAAM,2CAA2C,iCAAiC,CAAC"}
|
|
@@ -12,4 +12,7 @@ export const ACCESS_SCREEN_CSS = `
|
|
|
12
12
|
`;
|
|
13
13
|
export const OCTONODE_LOGO = "data:image/svg+xml," +
|
|
14
14
|
encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">\n <title>Octonode</title>\n <rect width="64" height="64" rx="16" fill="#181721"/>\n <path d="M24 10h16l14 14v16L40 54H24L10 40V24Z" stroke="#FF765F" stroke-linejoin="round" stroke-width="3.5"/>\n <path d="m21 24 11 8 11-8M32 32v13" stroke="#FF765F" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>\n <g fill="#FF765F"><circle cx="21" cy="24" r="3"/><circle cx="43" cy="24" r="3"/><circle cx="32" cy="32" r="4"/><circle cx="32" cy="45" r="3"/></g>\n</svg>\n');
|
|
15
|
+
export const APP_ACCESS_SCREEN_HREF_URL = "https://octonodes.com";
|
|
16
|
+
export const APP_ACCESS_SCREEN_HREF_PLAYBOOK_OCTONODES_DOCS_APPS_URL = "https://playbook.octonodes.com/docs/apps";
|
|
17
|
+
export const APP_ACCESS_SCREEN_HREF_OCTONODES_STUDIO_URL = "https://octonodes.com/studio";
|
|
15
18
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/constants.ts"],"names":[],"mappings":"AAAA,0IAA0I;AAC1I,6FAA6F;AAC7F,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;CAShC,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GACxB,qBAAqB;IACrB,kBAAkB,CAChB,yiBAAyiB,CAC1iB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/constants.ts"],"names":[],"mappings":"AAAA,0IAA0I;AAC1I,6FAA6F;AAC7F,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;CAShC,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GACxB,qBAAqB;IACrB,kBAAkB,CAChB,yiBAAyiB,CAC1iB,CAAC;AAEJ,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC;AAClE,MAAM,CAAC,MAAM,uDAAuD,GAAG,0CAA0C,CAAC;AAClH,MAAM,CAAC,MAAM,2CAA2C,GAAG,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,6BAA0B;AACpD,YAAY,EAAE,oBAAoB,EAAE,mCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/index.ts"],"names":[],"mappings":"AAAA,sIAAsI;AACtI,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/OctonodeAppProvider/AppAccessScreen/index.ts"],"names":[],"mappings":"AAAA,sIAAsI;AACtI,OAAO,EAAE,eAAe,EAAE,6BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OctonodeAppProvider.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/OctonodeAppProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"OctonodeAppProvider.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/OctonodeAppProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uCAAoC;AAE5E,uFAAuF;AACvF,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,UAA+B,EAAE,EAAE,wBAAwB,+BAQ1G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OctonodeAppProvider.js","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/OctonodeAppProvider.tsx"],"names":[],"mappings":";AAAA,qIAAqI;AACrI,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"OctonodeAppProvider.js","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/OctonodeAppProvider.tsx"],"names":[],"mappings":";AAAA,qIAAqI;AACrI,OAAO,EAAE,YAAY,EAAE,4CAAyC;AAChE,OAAO,EAAE,eAAe,EAAE,mCAA0B;AACpD,OAAO,EAAE,kBAAkB,EAAE,uBAAoB;AACjD,OAAO,EAAE,OAAO,EAAE,qBAAkB;AAGpC,uFAAuF;AACvF,MAAM,UAAU,mBAAmB,CAAC,EAAE,QAAQ,EAAE,UAAU,GAAG,kBAAkB,EAA4B;IACzG,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IACtE,IAAI,OAAO,EAAE,MAAM,KAAK,SAAS;QAAE,OAAO,KAAC,eAAe,IAAC,MAAM,EAAC,SAAS,GAAG,CAAC;IAC/E,IAAI,KAAK;QAAE,OAAO,KAAC,eAAe,IAAC,MAAM,EAAC,OAAO,GAAG,CAAC;IACrD,IAAI,OAAO,EAAE,MAAM,KAAK,YAAY;QAAE,OAAO,KAAC,eAAe,IAAC,MAAM,EAAC,YAAY,GAAG,CAAC;IACrF,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK;QACtE,OAAO,KAAC,eAAe,IAAC,MAAM,EAAC,YAAY,GAAG,CAAC;IACjD,OAAO,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,SAAS,EAAE,YAAG,QAAQ,GAAoB,CAAC;AACpH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OctonodeAppProvider.types.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/OctonodeAppProvider.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,uBAAuB,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"OctonodeAppProvider.types.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/OctonodeAppProvider.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,uBAAuB,EAAE,cAAc,EAAE,oBAAiB;AAE/F,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;IACxB,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uCAAoC;AAE5E,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,uCAAoC;AAEtE,eAAO,MAAM,OAAO,oDAAiD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,8CAA2C;AACpE,OAAO,EAAE,mBAAmB,EAAE,iCAA8B;AAC5D,YAAY,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,uCAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/index.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app/OctonodeAppProvider/index.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,OAAO,EAAE,cAAc,EAAE,8CAA2C;AACpE,OAAO,EAAE,mBAAmB,EAAE,iCAA8B"}
|
package/dist/app/constants.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
export declare const HOSTED_APP_PROTOCOL = "octonode-hosted-app/v1";
|
|
2
|
+
export declare const HOSTED_HEARTBEAT_INTERVAL_MS = 1000;
|
|
3
|
+
export declare const SERVER_RESPONSE_TIMEOUT_MS = 15000;
|
|
4
|
+
export declare const INDEX_TIMEOUT_DELAY_MS = 30000;
|
|
5
|
+
export declare const INDEX_RETRY_INTERVAL_MS = 1000;
|
|
6
|
+
export declare const HOSTED_URL_URL = "https://app.invalid";
|
|
2
7
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAE5D,eAAO,MAAM,4BAA4B,OAAO,CAAC;AACjD,eAAO,MAAM,0BAA0B,QAAS,CAAC;AACjD,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAC7C,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAE7C,eAAO,MAAM,cAAc,wBAAwB,CAAC"}
|
package/dist/app/constants.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
// Generated from packages/ui-extensions/src/app/constants.ts. Do not edit; run the Octonode SDK sync.
|
|
2
2
|
export const HOSTED_APP_PROTOCOL = "octonode-hosted-app/v1";
|
|
3
|
+
export const HOSTED_HEARTBEAT_INTERVAL_MS = 1000;
|
|
4
|
+
export const SERVER_RESPONSE_TIMEOUT_MS = 15_000;
|
|
5
|
+
export const INDEX_TIMEOUT_DELAY_MS = 30_000;
|
|
6
|
+
export const INDEX_RETRY_INTERVAL_MS = 1_000;
|
|
7
|
+
export const HOSTED_URL_URL = "https://app.invalid";
|
|
3
8
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/app/constants.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAE5D,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AACjD,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;AACjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAC7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../../../src/app/gen/client/client.gen.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAA0C,uBAAoB;AAgB1F,eAAO,MAAM,YAAY,GAAI,SAAQ,MAAW,KAAG,MA+PlD,CAAC"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// Generated from packages/ui-extensions/src/app/gen/client/client.gen.ts. Do not edit; run the Octonode SDK sync.
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
import { createSseClient } from "../core/serverSentEvents.gen.js";
|
|
4
|
+
import { getValidRequestBody } from "../core/utils.gen.js";
|
|
5
|
+
import { buildUrl, createConfig, createInterceptors, getParseAs, mergeConfigs, mergeHeaders, setAuthParams, } from "./utils.gen.js";
|
|
6
|
+
export const createClient = (config = {}) => {
|
|
7
|
+
let _config = mergeConfigs(createConfig(), config);
|
|
8
|
+
const getConfig = () => ({ ..._config });
|
|
9
|
+
const setConfig = (config) => {
|
|
10
|
+
_config = mergeConfigs(_config, config);
|
|
11
|
+
return getConfig();
|
|
12
|
+
};
|
|
13
|
+
const interceptors = createInterceptors();
|
|
14
|
+
const beforeRequest = async (options) => {
|
|
15
|
+
const opts = {
|
|
16
|
+
..._config,
|
|
17
|
+
...options,
|
|
18
|
+
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
19
|
+
headers: mergeHeaders(_config.headers, options.headers),
|
|
20
|
+
serializedBody: undefined,
|
|
21
|
+
};
|
|
22
|
+
if (opts.security) {
|
|
23
|
+
await setAuthParams(opts);
|
|
24
|
+
}
|
|
25
|
+
if (opts.requestValidator) {
|
|
26
|
+
await opts.requestValidator(opts);
|
|
27
|
+
}
|
|
28
|
+
if (opts.body !== undefined && opts.bodySerializer) {
|
|
29
|
+
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
30
|
+
}
|
|
31
|
+
// remove Content-Type header if body is empty to avoid sending invalid requests
|
|
32
|
+
if (opts.body === undefined || opts.serializedBody === '') {
|
|
33
|
+
opts.headers.delete('Content-Type');
|
|
34
|
+
}
|
|
35
|
+
const resolvedOpts = opts;
|
|
36
|
+
const url = buildUrl(resolvedOpts);
|
|
37
|
+
return { opts: resolvedOpts, url };
|
|
38
|
+
};
|
|
39
|
+
const request = async (options) => {
|
|
40
|
+
const throwOnError = options.throwOnError ?? _config.throwOnError;
|
|
41
|
+
const responseStyle = options.responseStyle ?? _config.responseStyle;
|
|
42
|
+
let request;
|
|
43
|
+
let response;
|
|
44
|
+
try {
|
|
45
|
+
const { opts, url } = await beforeRequest(options);
|
|
46
|
+
const requestInit = {
|
|
47
|
+
redirect: 'follow',
|
|
48
|
+
...opts,
|
|
49
|
+
body: getValidRequestBody(opts),
|
|
50
|
+
};
|
|
51
|
+
request = new Request(url, requestInit);
|
|
52
|
+
for (const fn of interceptors.request.fns) {
|
|
53
|
+
if (fn) {
|
|
54
|
+
request = await fn(request, opts);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// fetch must be assigned here, otherwise it would throw the error:
|
|
58
|
+
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
59
|
+
const _fetch = opts.fetch;
|
|
60
|
+
response = await _fetch(request);
|
|
61
|
+
for (const fn of interceptors.response.fns) {
|
|
62
|
+
if (fn) {
|
|
63
|
+
response = await fn(response, request, opts);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const result = {
|
|
67
|
+
request,
|
|
68
|
+
response,
|
|
69
|
+
};
|
|
70
|
+
if (response.ok) {
|
|
71
|
+
const parseAs = (opts.parseAs === 'auto'
|
|
72
|
+
? getParseAs(response.headers.get('Content-Type'))
|
|
73
|
+
: opts.parseAs) ?? 'json';
|
|
74
|
+
if (response.status === 204 || response.headers.get('Content-Length') === '0') {
|
|
75
|
+
let emptyData;
|
|
76
|
+
switch (parseAs) {
|
|
77
|
+
case 'arrayBuffer':
|
|
78
|
+
case 'blob':
|
|
79
|
+
case 'text':
|
|
80
|
+
emptyData = await response[parseAs]();
|
|
81
|
+
break;
|
|
82
|
+
case 'formData':
|
|
83
|
+
emptyData = new FormData();
|
|
84
|
+
break;
|
|
85
|
+
case 'stream':
|
|
86
|
+
emptyData = response.body;
|
|
87
|
+
break;
|
|
88
|
+
case 'json':
|
|
89
|
+
default:
|
|
90
|
+
emptyData = {};
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
return opts.responseStyle === 'data'
|
|
94
|
+
? emptyData
|
|
95
|
+
: {
|
|
96
|
+
data: emptyData,
|
|
97
|
+
...result,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
let data;
|
|
101
|
+
switch (parseAs) {
|
|
102
|
+
case 'arrayBuffer':
|
|
103
|
+
case 'blob':
|
|
104
|
+
case 'formData':
|
|
105
|
+
case 'text':
|
|
106
|
+
data = await response[parseAs]();
|
|
107
|
+
break;
|
|
108
|
+
case 'json': {
|
|
109
|
+
// Some servers return 200 with no Content-Length and empty body.
|
|
110
|
+
// response.json() would throw; read as text and parse if non-empty.
|
|
111
|
+
const text = await response.text();
|
|
112
|
+
data = text ? JSON.parse(text) : {};
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
case 'stream':
|
|
116
|
+
return opts.responseStyle === 'data'
|
|
117
|
+
? response.body
|
|
118
|
+
: {
|
|
119
|
+
data: response.body,
|
|
120
|
+
...result,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
if (parseAs === 'json') {
|
|
124
|
+
if (opts.responseValidator) {
|
|
125
|
+
await opts.responseValidator(data);
|
|
126
|
+
}
|
|
127
|
+
if (opts.responseTransformer) {
|
|
128
|
+
data = await opts.responseTransformer(data);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return opts.responseStyle === 'data'
|
|
132
|
+
? data
|
|
133
|
+
: {
|
|
134
|
+
data,
|
|
135
|
+
...result,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
const textError = await response.text();
|
|
139
|
+
let jsonError;
|
|
140
|
+
try {
|
|
141
|
+
jsonError = JSON.parse(textError);
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
// noop
|
|
145
|
+
}
|
|
146
|
+
throw jsonError ?? textError;
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
let finalError = error;
|
|
150
|
+
for (const fn of interceptors.error.fns) {
|
|
151
|
+
if (fn) {
|
|
152
|
+
finalError = await fn(finalError, response, request, options);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
finalError = finalError || {};
|
|
156
|
+
if (throwOnError) {
|
|
157
|
+
throw finalError;
|
|
158
|
+
}
|
|
159
|
+
// TODO: we probably want to return error and improve types
|
|
160
|
+
return responseStyle === 'data'
|
|
161
|
+
? undefined
|
|
162
|
+
: {
|
|
163
|
+
error: finalError,
|
|
164
|
+
request,
|
|
165
|
+
response,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
const makeMethodFn = (method) => (options) => request({ ...options, method });
|
|
170
|
+
const makeSseFn = (method) => async (options) => {
|
|
171
|
+
const { opts, url } = await beforeRequest(options);
|
|
172
|
+
return createSseClient({
|
|
173
|
+
...opts,
|
|
174
|
+
body: opts.body,
|
|
175
|
+
method,
|
|
176
|
+
onRequest: async (url, init) => {
|
|
177
|
+
let request = new Request(url, init);
|
|
178
|
+
for (const fn of interceptors.request.fns) {
|
|
179
|
+
if (fn) {
|
|
180
|
+
request = await fn(request, opts);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return request;
|
|
184
|
+
},
|
|
185
|
+
serializedBody: getValidRequestBody(opts),
|
|
186
|
+
url,
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
const _buildUrl = (options) => buildUrl({ ..._config, ...options });
|
|
190
|
+
return {
|
|
191
|
+
buildUrl: _buildUrl,
|
|
192
|
+
connect: makeMethodFn('CONNECT'),
|
|
193
|
+
delete: makeMethodFn('DELETE'),
|
|
194
|
+
get: makeMethodFn('GET'),
|
|
195
|
+
getConfig,
|
|
196
|
+
head: makeMethodFn('HEAD'),
|
|
197
|
+
interceptors,
|
|
198
|
+
options: makeMethodFn('OPTIONS'),
|
|
199
|
+
patch: makeMethodFn('PATCH'),
|
|
200
|
+
post: makeMethodFn('POST'),
|
|
201
|
+
put: makeMethodFn('PUT'),
|
|
202
|
+
request,
|
|
203
|
+
setConfig,
|
|
204
|
+
sse: {
|
|
205
|
+
connect: makeSseFn('CONNECT'),
|
|
206
|
+
delete: makeSseFn('DELETE'),
|
|
207
|
+
get: makeSseFn('GET'),
|
|
208
|
+
head: makeSseFn('HEAD'),
|
|
209
|
+
options: makeSseFn('OPTIONS'),
|
|
210
|
+
patch: makeSseFn('PATCH'),
|
|
211
|
+
post: makeSseFn('POST'),
|
|
212
|
+
put: makeSseFn('PUT'),
|
|
213
|
+
trace: makeSseFn('TRACE'),
|
|
214
|
+
},
|
|
215
|
+
trace: makeMethodFn('TRACE'),
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
//# sourceMappingURL=client.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.gen.js","sourceRoot":"","sources":["../../../../src/app/gen/client/client.gen.ts"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,qDAAqD;AAErD,OAAO,EAAE,eAAe,EAAE,wCAAqC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,6BAA0B;AAExD,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,GACd,uBAAoB;AAOrB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAiB,EAAE,EAAU,EAAE;IAC1D,IAAI,OAAO,GAAG,YAAY,CAAC,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IAEnD,MAAM,SAAS,GAAG,GAAW,EAAE,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAEjD,MAAM,SAAS,GAAG,CAAC,MAAc,EAAU,EAAE;QAC3C,OAAO,GAAG,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,SAAS,EAAE,CAAC;IACrB,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G,OAAO,EAAE,CAAC,CAAC;IAExF,OAAO;QACL,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC;QAChC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC;QAC9B,GAAG,EAAE,YAAY,CAAC,KAAK,CAAC;QACxB,SAAS;QACT,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC;QAC1B,YAAY;QACZ,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC;QAChC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;QAC5B,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC;QAC1B,GAAG,EAAE,YAAY,CAAC,KAAK,CAAC;QACxB,OAAO;QACP,SAAS;QACT,GAAG,EAAE;YACH,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC;YAC7B,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC;YAC3B,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC;YACrB,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC;YACvB,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC;YAC7B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;YACzB,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC;YACvB,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC;YACrB,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;SAC1B;QACD,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;KACnB,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { Auth } from "../core/auth.gen.js";
|
|
2
|
+
export type { QuerySerializerOptions } from "../core/bodySerializer.gen.js";
|
|
3
|
+
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from "../core/bodySerializer.gen.js";
|
|
4
|
+
export { buildClientParams } from "../core/params.gen.js";
|
|
5
|
+
export { serializeQueryKeyValue } from "../core/queryKeySerializer.gen.js";
|
|
6
|
+
export type { ServerSentEventsResult } from "../core/serverSentEvents.gen.js";
|
|
7
|
+
export type { ClientMeta } from "../core/types.gen.js";
|
|
8
|
+
export { createClient } from "./client.gen.js";
|
|
9
|
+
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from "./types.gen.js";
|
|
10
|
+
export { createConfig, mergeHeaders } from "./utils.gen.js";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/gen/client/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,IAAI,EAAE,4BAAyB;AAC7C,YAAY,EAAE,sBAAsB,EAAE,sCAAmC;AACzE,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,GAC9B,sCAAmC;AACpC,OAAO,EAAE,iBAAiB,EAAE,8BAA2B;AACvD,OAAO,EAAE,sBAAsB,EAAE,0CAAuC;AACxE,YAAY,EAAE,sBAAsB,EAAE,wCAAqC;AAC3E,YAAY,EAAE,UAAU,EAAE,6BAA0B;AACpD,OAAO,EAAE,YAAY,EAAE,wBAAqB;AAC5C,YAAY,EACV,MAAM,EACN,aAAa,EACb,MAAM,EACN,kBAAkB,EAClB,OAAO,EACP,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,UAAU,GACX,uBAAoB;AACrB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,uBAAoB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Generated from packages/ui-extensions/src/app/gen/client/index.ts. Do not edit; run the Octonode SDK sync.
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from "../core/bodySerializer.gen.js";
|
|
4
|
+
export { buildClientParams } from "../core/params.gen.js";
|
|
5
|
+
export { serializeQueryKeyValue } from "../core/queryKeySerializer.gen.js";
|
|
6
|
+
export { createClient } from "./client.gen.js";
|
|
7
|
+
export { createConfig, mergeHeaders } from "./utils.gen.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/gen/client/index.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,qDAAqD;AAIrD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,GAC9B,sCAAmC;AACpC,OAAO,EAAE,iBAAiB,EAAE,8BAA2B;AACvD,OAAO,EAAE,sBAAsB,EAAE,0CAAuC;AAGxE,OAAO,EAAE,YAAY,EAAE,wBAAqB;AAa5C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,uBAAoB"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { Auth } from "../core/auth.gen.js";
|
|
2
|
+
import type { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen.js";
|
|
3
|
+
import type { Client as CoreClient, Config as CoreConfig } from "../core/types.gen.js";
|
|
4
|
+
import type { Middleware } from "./utils.gen.js";
|
|
5
|
+
export type ResponseStyle = 'data' | 'fields';
|
|
6
|
+
export interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, CoreConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Base URL for all requests made by this client.
|
|
9
|
+
*/
|
|
10
|
+
baseUrl?: T['baseUrl'];
|
|
11
|
+
/**
|
|
12
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
13
|
+
* fetch instance.
|
|
14
|
+
*
|
|
15
|
+
* @default globalThis.fetch
|
|
16
|
+
*/
|
|
17
|
+
fetch?: typeof fetch;
|
|
18
|
+
/**
|
|
19
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
20
|
+
* options won't have any effect.
|
|
21
|
+
*
|
|
22
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
23
|
+
*/
|
|
24
|
+
next?: never;
|
|
25
|
+
/**
|
|
26
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
27
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
28
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
29
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
30
|
+
*
|
|
31
|
+
* @default 'auto'
|
|
32
|
+
*/
|
|
33
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
34
|
+
/**
|
|
35
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
36
|
+
*
|
|
37
|
+
* @default 'fields'
|
|
38
|
+
*/
|
|
39
|
+
responseStyle?: ResponseStyle;
|
|
40
|
+
/**
|
|
41
|
+
* Throw an error instead of returning it in the response?
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
throwOnError?: T['throwOnError'];
|
|
46
|
+
}
|
|
47
|
+
export interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
48
|
+
responseStyle: TResponseStyle;
|
|
49
|
+
throwOnError: ThrowOnError;
|
|
50
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
51
|
+
/**
|
|
52
|
+
* Any body that you want to add to your request.
|
|
53
|
+
*
|
|
54
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
55
|
+
*/
|
|
56
|
+
body?: unknown;
|
|
57
|
+
path?: Record<string, unknown>;
|
|
58
|
+
query?: Record<string, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Security mechanism(s) to use for the request.
|
|
61
|
+
*/
|
|
62
|
+
security?: ReadonlyArray<Auth>;
|
|
63
|
+
url: Url;
|
|
64
|
+
}
|
|
65
|
+
export interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
66
|
+
headers: Headers;
|
|
67
|
+
serializedBody?: string;
|
|
68
|
+
}
|
|
69
|
+
export type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
70
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
71
|
+
request: Request;
|
|
72
|
+
response: Response;
|
|
73
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
74
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
75
|
+
error: undefined;
|
|
76
|
+
} | {
|
|
77
|
+
data: undefined;
|
|
78
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
79
|
+
}) & {
|
|
80
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
81
|
+
request?: Request;
|
|
82
|
+
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
83
|
+
response?: Response;
|
|
84
|
+
}>;
|
|
85
|
+
export interface ClientOptions {
|
|
86
|
+
baseUrl?: string;
|
|
87
|
+
responseStyle?: ResponseStyle;
|
|
88
|
+
throwOnError?: boolean;
|
|
89
|
+
}
|
|
90
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
91
|
+
type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
|
|
92
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
93
|
+
type BuildUrlFn = <TData extends {
|
|
94
|
+
body?: unknown;
|
|
95
|
+
path?: Record<string, unknown>;
|
|
96
|
+
query?: Record<string, unknown>;
|
|
97
|
+
url: string;
|
|
98
|
+
}>(options: TData & Options<TData>) => string;
|
|
99
|
+
export type Client = CoreClient<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
100
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* The `createClientConfig()` function will be called on client initialization
|
|
104
|
+
* and the returned object will become the client's initial configuration.
|
|
105
|
+
*
|
|
106
|
+
* You may want to initialize your client this way instead of calling
|
|
107
|
+
* `setConfig()`. This is useful for example if you're using Next.js
|
|
108
|
+
* to ensure your client always has the correct values.
|
|
109
|
+
*/
|
|
110
|
+
export type CreateClientConfig<T extends ClientOptions = ClientOptions> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
111
|
+
export interface TDataShape {
|
|
112
|
+
body?: unknown;
|
|
113
|
+
headers?: unknown;
|
|
114
|
+
path?: unknown;
|
|
115
|
+
query?: unknown;
|
|
116
|
+
url: string;
|
|
117
|
+
}
|
|
118
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
119
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
120
|
+
export {};
|
|
121
|
+
//# sourceMappingURL=types.gen.d.ts.map
|