@executor-js/plugin-openapi 1.4.28 → 1.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddOpenApiSource-FLMNI742.js → AddOpenApiSource-KSOMPQ2R.js} +4 -4
- package/dist/{EditOpenApiSource-I4NIGIIJ.js → EditOpenApiSource-AOA7APR2.js} +301 -192
- package/dist/EditOpenApiSource-AOA7APR2.js.map +1 -0
- package/dist/{OpenApiSourceSummary-CM46DB4L.js → OpenApiSourceSummary-Y3S6ZBOZ.js} +4 -4
- package/dist/OpenApiSourceSummary-Y3S6ZBOZ.js.map +1 -0
- package/dist/api/group.d.ts +124 -118
- package/dist/api/index.d.ts +148 -369
- package/dist/chunk-BB5IAKRG.js +136 -0
- package/dist/chunk-BB5IAKRG.js.map +1 -0
- package/dist/{chunk-E7PZ2QGD.js → chunk-EOXXE5DG.js} +17 -455
- package/dist/chunk-EOXXE5DG.js.map +1 -0
- package/dist/{chunk-OZ67JNID.js → chunk-NIKLYJ3X.js} +830 -319
- package/dist/chunk-NIKLYJ3X.js.map +1 -0
- package/dist/{chunk-TGDT6QCH.js → chunk-YJMXYKYX.js} +178 -117
- package/dist/chunk-YJMXYKYX.js.map +1 -0
- package/dist/{chunk-GFQUEZUW.js → chunk-ZZBTLFTA.js} +78 -93
- package/dist/chunk-ZZBTLFTA.js.map +1 -0
- package/dist/client.js +7 -137
- package/dist/client.js.map +1 -1
- package/dist/core.js +5 -10
- package/dist/index.js +3 -2
- package/dist/react/atoms.d.ts +83 -223
- package/dist/react/client.d.ts +123 -117
- package/dist/sdk/credential-status.d.ts +3 -3
- package/dist/sdk/extract.d.ts +19 -19
- package/dist/sdk/index.d.ts +2 -2
- package/dist/sdk/invoke.d.ts +7 -7
- package/dist/sdk/parse.d.ts +2 -3
- package/dist/sdk/plugin.d.ts +181 -275
- package/dist/sdk/preview.d.ts +12 -12
- package/dist/sdk/source-contracts.d.ts +55 -0
- package/dist/sdk/store.d.ts +6 -269
- package/dist/sdk/types.d.ts +16 -65
- package/dist/testing/index.d.ts +149 -11
- package/dist/testing.js +419 -33
- package/dist/testing.js.map +1 -1
- package/dist/testing.test.d.ts +1 -0
- package/package.json +3 -4
- package/dist/EditOpenApiSource-I4NIGIIJ.js.map +0 -1
- package/dist/OpenApiSourceSummary-CM46DB4L.js.map +0 -1
- package/dist/chunk-E7PZ2QGD.js.map +0 -1
- package/dist/chunk-GFQUEZUW.js.map +0 -1
- package/dist/chunk-OZ67JNID.js.map +0 -1
- package/dist/chunk-TGDT6QCH.js.map +0 -1
- /package/dist/{AddOpenApiSource-FLMNI742.js.map → AddOpenApiSource-KSOMPQ2R.js.map} +0 -0
package/dist/client.js
CHANGED
|
@@ -1,145 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
openApiPresets
|
|
3
|
+
} from "./chunk-BB5IAKRG.js";
|
|
4
|
+
|
|
1
5
|
// src/react/plugin-client.tsx
|
|
2
6
|
import { defineClientPlugin } from "@executor-js/sdk/client";
|
|
3
7
|
|
|
4
8
|
// src/react/source-plugin.ts
|
|
5
9
|
import { lazy } from "react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
{
|
|
10
|
-
id: "stripe",
|
|
11
|
-
name: "Stripe",
|
|
12
|
-
summary: "Payments, subscriptions, customers, and invoices.",
|
|
13
|
-
url: "https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json",
|
|
14
|
-
icon: "https://stripe.com/favicon.ico",
|
|
15
|
-
featured: true
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
id: "github-rest",
|
|
19
|
-
name: "GitHub REST",
|
|
20
|
-
summary: "Repos, issues, pull requests, actions, and users.",
|
|
21
|
-
url: "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json",
|
|
22
|
-
icon: "https://github.com/favicon.ico",
|
|
23
|
-
featured: true
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: "vercel",
|
|
27
|
-
name: "Vercel",
|
|
28
|
-
summary: "Deployments, domains, projects, and edge config.",
|
|
29
|
-
url: "https://openapi.vercel.sh",
|
|
30
|
-
icon: "https://vercel.com/favicon.ico",
|
|
31
|
-
featured: true
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "cloudflare",
|
|
35
|
-
name: "Cloudflare",
|
|
36
|
-
summary: "DNS, workers, pages, R2, and security rules.",
|
|
37
|
-
url: "https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json",
|
|
38
|
-
icon: "https://cloudflare.com/favicon.ico",
|
|
39
|
-
featured: true
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
id: "neon",
|
|
43
|
-
name: "Neon",
|
|
44
|
-
summary: "Serverless Postgres \u2014 projects, branches, and endpoints.",
|
|
45
|
-
url: "https://neon.tech/api_spec/release/v2.json",
|
|
46
|
-
icon: "https://neon.tech/favicon/favicon.ico",
|
|
47
|
-
featured: true
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
id: "openai",
|
|
51
|
-
name: "OpenAI",
|
|
52
|
-
summary: "Models, files, responses, and fine-tuning.",
|
|
53
|
-
url: "https://app.stainless.com/api/spec/documented/openai/openapi.documented.yml",
|
|
54
|
-
icon: "https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/openai.svg",
|
|
55
|
-
featured: true
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: "sentry",
|
|
59
|
-
name: "Sentry",
|
|
60
|
-
summary: "Error tracking, performance monitoring, and releases.",
|
|
61
|
-
url: "https://raw.githubusercontent.com/getsentry/sentry-api-schema/main/openapi-derefed.json",
|
|
62
|
-
icon: "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png",
|
|
63
|
-
featured: true
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: "exa",
|
|
67
|
-
name: "Exa",
|
|
68
|
-
summary: "Web search, similar links, content retrieval, and answers.",
|
|
69
|
-
url: "https://raw.githubusercontent.com/exa-labs/openapi-spec/refs/heads/master/exa-openapi-spec.yaml",
|
|
70
|
-
icon: "https://exa.ai/images/favicon-32x32.png",
|
|
71
|
-
featured: true
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: "exa-websets",
|
|
75
|
-
name: "Exa Websets",
|
|
76
|
-
summary: "Websets, enrichments, webhooks, and monitors.",
|
|
77
|
-
url: "https://raw.githubusercontent.com/exa-labs/openapi-spec/refs/heads/master/exa-websets-spec.yaml",
|
|
78
|
-
icon: "https://exa.ai/images/favicon-32x32.png",
|
|
79
|
-
featured: true
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: "axiom",
|
|
83
|
-
name: "Axiom",
|
|
84
|
-
summary: "Log ingestion, querying, datasets, and monitors.",
|
|
85
|
-
url: "https://axiom.co/docs/restapi/versions/v2.json",
|
|
86
|
-
icon: "https://axiom.co/favicon.ico"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: "asana",
|
|
90
|
-
name: "Asana",
|
|
91
|
-
summary: "Tasks, projects, teams, and workspace management.",
|
|
92
|
-
url: "https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/asana.com/1.0/openapi.yaml",
|
|
93
|
-
icon: "https://asana.com/favicon.ico"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
id: "twilio",
|
|
97
|
-
name: "Twilio",
|
|
98
|
-
summary: "SMS, voice, video, and messaging APIs.",
|
|
99
|
-
url: "https://raw.githubusercontent.com/twilio/twilio-oai/main/spec/json/twilio_api_v2010.json",
|
|
100
|
-
icon: "https://twilio.com/favicon.ico"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
id: "digitalocean",
|
|
104
|
-
name: "DigitalOcean",
|
|
105
|
-
summary: "Droplets, Kubernetes, databases, and networking.",
|
|
106
|
-
url: "https://raw.githubusercontent.com/digitalocean/openapi/main/specification/DigitalOcean-public.v2.yaml",
|
|
107
|
-
icon: "https://assets.digitalocean.com/favicon.ico"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
id: "petstore",
|
|
111
|
-
name: "Petstore",
|
|
112
|
-
summary: "Classic OpenAPI demo \u2014 no auth required.",
|
|
113
|
-
url: "https://petstore3.swagger.io/api/v3/openapi.json",
|
|
114
|
-
icon: "https://petstore3.swagger.io/favicon-32x32.png"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: "val-town",
|
|
118
|
-
name: "Val Town",
|
|
119
|
-
summary: "Vals, runs, blobs, and email/web endpoints.",
|
|
120
|
-
url: "https://api.val.town/openapi.json",
|
|
121
|
-
icon: "https://www.val.town/favicon.svg"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
id: "resend",
|
|
125
|
-
name: "Resend",
|
|
126
|
-
summary: "Transactional email sending and domain management.",
|
|
127
|
-
url: "https://raw.githubusercontent.com/resend/resend-openapi/main/resend.yaml",
|
|
128
|
-
icon: "https://resend.com/static/favicons/favicon.ico"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
id: "spotify",
|
|
132
|
-
name: "Spotify",
|
|
133
|
-
summary: "Tracks, albums, playlists, library, and playback.",
|
|
134
|
-
url: "https://raw.githubusercontent.com/sonallux/spotify-web-api/refs/heads/main/official-spotify-open-api.yml",
|
|
135
|
-
icon: "https://spotify.com/favicon.ico"
|
|
136
|
-
}
|
|
137
|
-
];
|
|
138
|
-
|
|
139
|
-
// src/react/source-plugin.ts
|
|
140
|
-
var importAdd = () => import("./AddOpenApiSource-FLMNI742.js");
|
|
141
|
-
var importEdit = () => import("./EditOpenApiSource-I4NIGIIJ.js");
|
|
142
|
-
var importSummary = () => import("./OpenApiSourceSummary-CM46DB4L.js");
|
|
10
|
+
var importAdd = () => import("./AddOpenApiSource-KSOMPQ2R.js");
|
|
11
|
+
var importEdit = () => import("./EditOpenApiSource-AOA7APR2.js");
|
|
12
|
+
var importSummary = () => import("./OpenApiSourceSummary-Y3S6ZBOZ.js");
|
|
143
13
|
var openApiSourcePlugin = {
|
|
144
14
|
key: "openapi",
|
|
145
15
|
label: "OpenAPI",
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/react/plugin-client.tsx","../src/react/source-plugin.ts"
|
|
1
|
+
{"version":3,"sources":["../src/react/plugin-client.tsx","../src/react/source-plugin.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/plugin-openapi/client — `defineClientPlugin` entry.\n//\n// Aggregates the openapi plugin's frontend contributions into a single\n// declarative spec. The host's Vite plugin reads this via\n// `virtual:executor/plugins-client`, so the host's sources page derives\n// the openapi entry from here without a direct `*/react` import.\n//\n// The richer add/edit/summary components still live in `./react`; this\n// module just imports them and bundles them into the spec.\n// ---------------------------------------------------------------------------\n\nimport { defineClientPlugin } from \"@executor-js/sdk/client\";\n\nimport { openApiSourcePlugin } from \"./source-plugin\";\n\nexport default defineClientPlugin({\n id: \"openapi\" as const,\n sourcePlugin: openApiSourcePlugin,\n});\n","import { lazy } from \"react\";\nimport type { SourcePlugin } from \"@executor-js/sdk/client\";\nimport { openApiPresets } from \"../sdk/presets\";\n\nconst importAdd = () => import(\"./AddOpenApiSource\");\nconst importEdit = () => import(\"./EditOpenApiSource\");\nconst importSummary = () => import(\"./OpenApiSourceSummary\");\n\nexport const openApiSourcePlugin: SourcePlugin = {\n key: \"openapi\",\n label: \"OpenAPI\",\n add: lazy(importAdd),\n edit: lazy(importEdit),\n summary: lazy(importSummary),\n presets: openApiPresets,\n preload: () => {\n void importAdd();\n void importEdit();\n void importSummary();\n },\n};\n"],"mappings":";;;;;AAYA,SAAS,0BAA0B;;;ACZnC,SAAS,YAAY;AAIrB,IAAM,YAAY,MAAM,OAAO,gCAAoB;AACnD,IAAM,aAAa,MAAM,OAAO,iCAAqB;AACrD,IAAM,gBAAgB,MAAM,OAAO,oCAAwB;AAEpD,IAAM,sBAAoC;AAAA,EAC/C,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK,KAAK,SAAS;AAAA,EACnB,MAAM,KAAK,UAAU;AAAA,EACrB,SAAS,KAAK,aAAa;AAAA,EAC3B,SAAS;AAAA,EACT,SAAS,MAAM;AACb,SAAK,UAAU;AACf,SAAK,WAAW;AAChB,SAAK,cAAc;AAAA,EACrB;AACF;;;ADJA,IAAO,wBAAQ,mBAAmB;AAAA,EAChC,IAAI;AAAA,EACJ,cAAc;AAChB,CAAC;","names":[]}
|
package/dist/core.js
CHANGED
|
@@ -2,9 +2,12 @@ import {
|
|
|
2
2
|
annotationsForOperation,
|
|
3
3
|
invoke,
|
|
4
4
|
invokeWithLayer,
|
|
5
|
+
makeDefaultOpenapiStore,
|
|
5
6
|
openApiPlugin,
|
|
7
|
+
openapiSchema,
|
|
6
8
|
resolveHeaders
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NIKLYJ3X.js";
|
|
10
|
+
import "./chunk-BB5IAKRG.js";
|
|
8
11
|
import {
|
|
9
12
|
AuthStrategy,
|
|
10
13
|
DocResolver,
|
|
@@ -24,9 +27,6 @@ import {
|
|
|
24
27
|
OpenApiInvocationError,
|
|
25
28
|
OpenApiOAuthError,
|
|
26
29
|
OpenApiParseError,
|
|
27
|
-
OpenApiSourceBindingInput,
|
|
28
|
-
OpenApiSourceBindingRef,
|
|
29
|
-
OpenApiSourceBindingValue,
|
|
30
30
|
OperationBinding,
|
|
31
31
|
OperationId,
|
|
32
32
|
OperationParameter,
|
|
@@ -39,15 +39,13 @@ import {
|
|
|
39
39
|
SpecPreview,
|
|
40
40
|
extract,
|
|
41
41
|
fetchSpecText,
|
|
42
|
-
makeDefaultOpenapiStore,
|
|
43
|
-
openapiSchema,
|
|
44
42
|
parse,
|
|
45
43
|
preferredContent,
|
|
46
44
|
previewSpec,
|
|
47
45
|
resolveBaseUrl,
|
|
48
46
|
resolveSpecText,
|
|
49
47
|
substituteUrlVariables
|
|
50
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-EOXXE5DG.js";
|
|
51
49
|
export {
|
|
52
50
|
AuthStrategy,
|
|
53
51
|
DocResolver,
|
|
@@ -67,9 +65,6 @@ export {
|
|
|
67
65
|
OpenApiInvocationError,
|
|
68
66
|
OpenApiOAuthError,
|
|
69
67
|
OpenApiParseError,
|
|
70
|
-
OpenApiSourceBindingInput,
|
|
71
|
-
OpenApiSourceBindingRef,
|
|
72
|
-
OpenApiSourceBindingValue,
|
|
73
68
|
OperationBinding,
|
|
74
69
|
OperationId,
|
|
75
70
|
OperationParameter,
|