@spec0/sdk-public-platform 1.2.1 → 1.4.0
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/generated/core/ApiError.d.ts +2 -2
- package/dist/generated/core/ApiError.d.ts.map +1 -1
- package/dist/generated/core/OpenAPI.d.ts +1 -1
- package/dist/generated/core/OpenAPI.d.ts.map +1 -1
- package/dist/generated/core/request.d.ts +5 -5
- package/dist/generated/core/request.d.ts.map +1 -1
- package/dist/generated/core/request.js +5 -5
- package/dist/generated/core/request.js.map +1 -1
- package/dist/generated/index.d.ts +42 -42
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +23 -23
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/PublicApiListItem.d.ts +1 -1
- package/dist/generated/models/PublicApiListItem.d.ts.map +1 -1
- package/dist/generated/models/PublicApiMetaV1.d.ts +1 -1
- package/dist/generated/models/PublicApiMetaV1.d.ts.map +1 -1
- package/dist/generated/models/PublicPublishRequestV1.d.ts +23 -17
- package/dist/generated/models/PublicPublishRequestV1.d.ts.map +1 -1
- package/dist/generated/models/TeamPublishRequestV1.d.ts +19 -4
- package/dist/generated/models/TeamPublishRequestV1.d.ts.map +1 -1
- package/dist/generated/models/VisibilityUpdateRequestV1.d.ts +1 -1
- package/dist/generated/models/VisibilityUpdateRequestV1.d.ts.map +1 -1
- package/dist/generated/services/PublicApisService.d.ts +61 -9
- package/dist/generated/services/PublicApisService.d.ts.map +1 -1
- package/dist/generated/services/PublicApisService.js +93 -9
- package/dist/generated/services/PublicApisService.js.map +1 -1
- package/dist/generated/services/PublicCiService.d.ts +2 -2
- package/dist/generated/services/PublicCiService.d.ts.map +1 -1
- package/dist/generated/services/PublicCiService.js +3 -3
- package/dist/generated/services/PublicCiService.js.map +1 -1
- package/dist/generated/services/PublicMocksService.d.ts +9 -4
- package/dist/generated/services/PublicMocksService.d.ts.map +1 -1
- package/dist/generated/services/PublicMocksService.js +10 -5
- package/dist/generated/services/PublicMocksService.js.map +1 -1
- package/dist/generated/services/PublicOrgsService.d.ts +2 -2
- package/dist/generated/services/PublicOrgsService.d.ts.map +1 -1
- package/dist/generated/services/PublicOrgsService.js +3 -3
- package/dist/generated/services/PublicOrgsService.js.map +1 -1
- package/dist/generated/services/PublicRegistryService.d.ts +26 -4
- package/dist/generated/services/PublicRegistryService.d.ts.map +1 -1
- package/dist/generated/services/PublicRegistryService.js +28 -6
- package/dist/generated/services/PublicRegistryService.js.map +1 -1
- package/dist/generated/services/PublicSpecsService.d.ts +11 -4
- package/dist/generated/services/PublicSpecsService.d.ts.map +1 -1
- package/dist/generated/services/PublicSpecsService.js +12 -5
- package/dist/generated/services/PublicSpecsService.js.map +1 -1
- package/dist/generated/services/PublicSpectralService.d.ts +9 -4
- package/dist/generated/services/PublicSpectralService.d.ts.map +1 -1
- package/dist/generated/services/PublicSpectralService.js +9 -4
- package/dist/generated/services/PublicSpectralService.js.map +1 -1
- package/dist/generated/services/PublicTeamsService.d.ts +8 -3
- package/dist/generated/services/PublicTeamsService.d.ts.map +1 -1
- package/dist/generated/services/PublicTeamsService.js +10 -5
- package/dist/generated/services/PublicTeamsService.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
- package/src/generated/core/ApiError.ts +2 -2
- package/src/generated/core/OpenAPI.ts +1 -1
- package/src/generated/core/request.ts +6 -6
- package/src/generated/index.ts +42 -42
- package/src/generated/models/PublicApiListItem.ts +1 -1
- package/src/generated/models/PublicApiMetaV1.ts +1 -1
- package/src/generated/models/PublicPublishRequestV1.ts +23 -17
- package/src/generated/models/TeamPublishRequestV1.ts +19 -4
- package/src/generated/models/VisibilityUpdateRequestV1.ts +1 -1
- package/src/generated/services/PublicApisService.ts +110 -11
- package/src/generated/services/PublicCiService.ts +4 -4
- package/src/generated/services/PublicMocksService.ts +11 -6
- package/src/generated/services/PublicOrgsService.ts +4 -4
- package/src/generated/services/PublicRegistryService.ts +28 -6
- package/src/generated/services/PublicSpecsService.ts +13 -6
- package/src/generated/services/PublicSpectralService.ts +11 -6
- package/src/generated/services/PublicTeamsService.ts +10 -5
- package/src/index.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicApisService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const OpenAPI_js_1 = require("../core/OpenAPI.js");
|
|
5
|
+
const request_js_1 = require("../core/request.js");
|
|
6
6
|
class PublicApisService {
|
|
7
7
|
/**
|
|
8
8
|
* List public APIs for the calling org
|
|
@@ -11,7 +11,7 @@ class PublicApisService {
|
|
|
11
11
|
* @throws ApiError
|
|
12
12
|
*/
|
|
13
13
|
static listPublicApis() {
|
|
14
|
-
return (0,
|
|
14
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
15
15
|
method: 'GET',
|
|
16
16
|
url: '/api/v1/public/apis',
|
|
17
17
|
errors: {
|
|
@@ -30,7 +30,7 @@ class PublicApisService {
|
|
|
30
30
|
* @throws ApiError
|
|
31
31
|
*/
|
|
32
32
|
static publishPublicApi({ requestBody, }) {
|
|
33
|
-
return (0,
|
|
33
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
34
34
|
method: 'POST',
|
|
35
35
|
url: '/api/v1/public/apis',
|
|
36
36
|
body: requestBody,
|
|
@@ -56,7 +56,7 @@ class PublicApisService {
|
|
|
56
56
|
* @throws ApiError
|
|
57
57
|
*/
|
|
58
58
|
static listTeamApis() {
|
|
59
|
-
return (0,
|
|
59
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
60
60
|
method: 'GET',
|
|
61
61
|
url: '/api/v1/public/apis/team',
|
|
62
62
|
errors: {
|
|
@@ -80,7 +80,7 @@ class PublicApisService {
|
|
|
80
80
|
* @throws ApiError
|
|
81
81
|
*/
|
|
82
82
|
static publishTeamApi({ requestBody, }) {
|
|
83
|
-
return (0,
|
|
83
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
84
84
|
method: 'POST',
|
|
85
85
|
url: '/api/v1/public/apis/team',
|
|
86
86
|
body: requestBody,
|
|
@@ -108,7 +108,7 @@ class PublicApisService {
|
|
|
108
108
|
* @throws ApiError
|
|
109
109
|
*/
|
|
110
110
|
static deleteTeamApi({ apiId, }) {
|
|
111
|
-
return (0,
|
|
111
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
112
112
|
method: 'DELETE',
|
|
113
113
|
url: '/api/v1/public/apis/team/{apiId}',
|
|
114
114
|
path: {
|
|
@@ -121,13 +121,97 @@ class PublicApisService {
|
|
|
121
121
|
},
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Fetch the latest spec body for a team-scoped private API
|
|
126
|
+
* Returns the OpenAPI document content (YAML or JSON, as published) for the latest
|
|
127
|
+
* version of a team-scoped private API. Mirrors the public-registry equivalent
|
|
128
|
+
* (`GET /api/v1/public/registry/{orgSlug}/{apiName}`) but resolves the API by its
|
|
129
|
+
* internal UUID so callers can target private APIs without a public org slug.
|
|
130
|
+
*
|
|
131
|
+
* Authorization stack:
|
|
132
|
+
* - scope: `read:specs`
|
|
133
|
+
* - ABAC v2: caller must be permitted to `view` the API resource (cross-org and
|
|
134
|
+
* cross-team isolation collapse to 404 to avoid leaking existence).
|
|
135
|
+
*
|
|
136
|
+
* Backs `spec0 pull --team` (issue #149).
|
|
137
|
+
*
|
|
138
|
+
* @returns string OpenAPI spec content for the latest published version
|
|
139
|
+
* @throws ApiError
|
|
140
|
+
*/
|
|
141
|
+
static getTeamApiSpec({ apiId, }) {
|
|
142
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
143
|
+
method: 'GET',
|
|
144
|
+
url: '/api/v1/public/apis/team/{apiId}/spec',
|
|
145
|
+
path: {
|
|
146
|
+
'apiId': apiId,
|
|
147
|
+
},
|
|
148
|
+
errors: {
|
|
149
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
150
|
+
403: `Token does not carry the required scope`,
|
|
151
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* List published versions of a team-scoped private API
|
|
157
|
+
* Mirrors `GET /api/v1/public/registry/{orgSlug}/{apiName}/versions` for the
|
|
158
|
+
* team-scoped surface. Returns the version history ordered by `publishedAt` desc.
|
|
159
|
+
* Cross-org / cross-team callers see 404 (same ABAC v2 collapse used by the spec body
|
|
160
|
+
* endpoint).
|
|
161
|
+
*
|
|
162
|
+
* @returns SpecVersionListItemV1 Version history
|
|
163
|
+
* @throws ApiError
|
|
164
|
+
*/
|
|
165
|
+
static listTeamApiVersions({ apiId, }) {
|
|
166
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
167
|
+
method: 'GET',
|
|
168
|
+
url: '/api/v1/public/apis/team/{apiId}/versions',
|
|
169
|
+
path: {
|
|
170
|
+
'apiId': apiId,
|
|
171
|
+
},
|
|
172
|
+
errors: {
|
|
173
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
174
|
+
403: `Token does not carry the required scope`,
|
|
175
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Fetch a specific tagged version of a team-scoped private API
|
|
181
|
+
* Mirrors `GET /api/v1/public/registry/{orgSlug}/{apiName}/versions/{tag}` for the
|
|
182
|
+
* team-scoped surface. Returns the OpenAPI document content for the requested tag.
|
|
183
|
+
* Cross-org / cross-team callers see 404; unknown tag also 404.
|
|
184
|
+
*
|
|
185
|
+
* @returns string OpenAPI spec content for the requested version
|
|
186
|
+
* @throws ApiError
|
|
187
|
+
*/
|
|
188
|
+
static getTeamApiSpecByTag({ apiId, tag, }) {
|
|
189
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
190
|
+
method: 'GET',
|
|
191
|
+
url: '/api/v1/public/apis/team/{apiId}/versions/{tag}',
|
|
192
|
+
path: {
|
|
193
|
+
'apiId': apiId,
|
|
194
|
+
'tag': tag,
|
|
195
|
+
},
|
|
196
|
+
errors: {
|
|
197
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
198
|
+
403: `Token does not carry the required scope`,
|
|
199
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
200
|
+
},
|
|
201
|
+
});
|
|
202
|
+
}
|
|
124
203
|
/**
|
|
125
204
|
* Update visibility for a public API
|
|
205
|
+
* Toggle a public API between `PRIVATE`, `UNLISTED`, and `PUBLISHED` without
|
|
206
|
+
* republishing its spec. Visibility controls whether the API and its versions are
|
|
207
|
+
* readable through the unauthenticated public registry; the spec content itself is
|
|
208
|
+
* untouched. Callable by any token in the owning org that holds `write:apis`.
|
|
209
|
+
*
|
|
126
210
|
* @returns PublicApiMetaV1 Updated visibility
|
|
127
211
|
* @throws ApiError
|
|
128
212
|
*/
|
|
129
213
|
static updatePublicApiVisibility({ publicApiId, requestBody, }) {
|
|
130
|
-
return (0,
|
|
214
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
131
215
|
method: 'PUT',
|
|
132
216
|
url: '/api/v1/public/apis/{publicApiId}/visibility',
|
|
133
217
|
path: {
|
|
@@ -151,7 +235,7 @@ class PublicApisService {
|
|
|
151
235
|
* @throws ApiError
|
|
152
236
|
*/
|
|
153
237
|
static deletePublicApi({ publicApiId, }) {
|
|
154
|
-
return (0,
|
|
238
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
155
239
|
method: 'DELETE',
|
|
156
240
|
url: '/api/v1/public/apis/{publicApiId}',
|
|
157
241
|
path: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicApisService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicApisService.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PublicApisService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicApisService.ts"],"names":[],"mappings":";;;AAcA,mDAA6C;AAC7C,mDAA0D;AAC1D,MAAa,iBAAiB;IAC5B;;;;;OAKG;IACI,MAAM,CAAC,cAAc;QAC1B,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,qBAAqB;YAC1B,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;;OAQG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC7B,WAAW,GAGZ;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,qBAAqB;YAC1B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACN,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,0EAA0E;gBAC/E,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;;;;OAUG;IACI,MAAM,CAAC,YAAY;QACxB,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,0BAA0B;YAC/B,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;;;;;;;OAaG;IACI,MAAM,CAAC,cAAc,CAAC,EAC3B,WAAW,GAGZ;QACC,OAAO,IAAA,oBAAS,EAAC,oB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G,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAzRD,8CAyRC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CiConfigResponseV1 } from '../models/CiConfigResponseV1';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import type { CiConfigResponseV1 } from '../models/CiConfigResponseV1.js';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
3
3
|
export declare class PublicCiService {
|
|
4
4
|
/**
|
|
5
5
|
* Generate a GitHub Actions workflow for `spec0 publish`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicCiService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicCiService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PublicCiService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicCiService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,eAAe;IAC1B;;;;;;;OAOG;WACW,gBAAgB,CAAC,EAC7B,YAAY,EACZ,OAAO,EACP,MAAe,GAChB,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC;CAgB1C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicCiService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const OpenAPI_js_1 = require("../core/OpenAPI.js");
|
|
5
|
+
const request_js_1 = require("../core/request.js");
|
|
6
6
|
class PublicCiService {
|
|
7
7
|
/**
|
|
8
8
|
* Generate a GitHub Actions workflow for `spec0 publish`
|
|
@@ -13,7 +13,7 @@ class PublicCiService {
|
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
15
|
static generateCiConfig({ specFilePath, apiName, branch = 'main', }) {
|
|
16
|
-
return (0,
|
|
16
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
17
17
|
method: 'GET',
|
|
18
18
|
url: '/api/v1/public/ci/config',
|
|
19
19
|
query: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicCiService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicCiService.ts"],"names":[],"mappings":";;;AAMA,
|
|
1
|
+
{"version":3,"file":"PublicCiService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicCiService.ts"],"names":[],"mappings":";;;AAMA,mDAA6C;AAC7C,mDAA0D;AAC1D,MAAa,eAAe;IAC1B;;;;;;;OAOG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC7B,YAAY,EACZ,OAAO,EACP,MAAM,GAAG,MAAM,GAQhB;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,0BAA0B;YAC/B,KAAK,EAAE;gBACL,cAAc,EAAE,YAAY;gBAC5B,SAAS,EAAE,OAAO;gBAClB,QAAQ,EAAE,MAAM;aACjB;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;CACF;AApCD,0CAoCC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import type { CreateMockRequestV1 } from '../models/CreateMockRequestV1';
|
|
2
|
-
import type { CreateMockResponseV1 } from '../models/CreateMockResponseV1';
|
|
3
|
-
import type { MockItemV1 } from '../models/MockItemV1';
|
|
4
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import type { CreateMockRequestV1 } from '../models/CreateMockRequestV1.js';
|
|
2
|
+
import type { CreateMockResponseV1 } from '../models/CreateMockResponseV1.js';
|
|
3
|
+
import type { MockItemV1 } from '../models/MockItemV1.js';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
5
|
export declare class PublicMocksService {
|
|
6
6
|
/**
|
|
7
7
|
* List mock servers for the calling org
|
|
8
|
+
* Returns every mock server owned by the calling token's org, with the parent API
|
|
9
|
+
* id/name and the mock's base URL. Backs the `spec0 mock list` CLI command and is
|
|
10
|
+
* the discovery surface SDK consumers use before deciding whether to point a
|
|
11
|
+
* client at a mock vs. a real environment.
|
|
12
|
+
*
|
|
8
13
|
* @returns MockItemV1 Mock servers
|
|
9
14
|
* @throws ApiError
|
|
10
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicMocksService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicMocksService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"PublicMocksService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicMocksService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,kBAAkB;IAC7B;;;;;;;;;OASG;WACW,eAAe,IAAI,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAUrE;;;;;;;OAOG;WACW,gBAAgB,CAAC,EAC7B,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,mBAAmB,CAAC;KAClC,GAAG,iBAAiB,CAAC,oBAAoB,CAAC;IAc3C;;;;;;;;OAQG;WACW,gBAAgB,CAAC,EAC7B,YAAY,GACb,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;KACtB,GAAG,iBAAiB,CAAC,IAAI,CAAC;CAc5B"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicMocksService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const OpenAPI_js_1 = require("../core/OpenAPI.js");
|
|
5
|
+
const request_js_1 = require("../core/request.js");
|
|
6
6
|
class PublicMocksService {
|
|
7
7
|
/**
|
|
8
8
|
* List mock servers for the calling org
|
|
9
|
+
* Returns every mock server owned by the calling token's org, with the parent API
|
|
10
|
+
* id/name and the mock's base URL. Backs the `spec0 mock list` CLI command and is
|
|
11
|
+
* the discovery surface SDK consumers use before deciding whether to point a
|
|
12
|
+
* client at a mock vs. a real environment.
|
|
13
|
+
*
|
|
9
14
|
* @returns MockItemV1 Mock servers
|
|
10
15
|
* @throws ApiError
|
|
11
16
|
*/
|
|
12
17
|
static listPublicMocks() {
|
|
13
|
-
return (0,
|
|
18
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
14
19
|
method: 'GET',
|
|
15
20
|
url: '/api/v1/public/mocks',
|
|
16
21
|
errors: {
|
|
@@ -28,7 +33,7 @@ class PublicMocksService {
|
|
|
28
33
|
* @throws ApiError
|
|
29
34
|
*/
|
|
30
35
|
static createPublicMock({ requestBody, }) {
|
|
31
|
-
return (0,
|
|
36
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
32
37
|
method: 'POST',
|
|
33
38
|
url: '/api/v1/public/mocks',
|
|
34
39
|
body: requestBody,
|
|
@@ -51,7 +56,7 @@ class PublicMocksService {
|
|
|
51
56
|
* @throws ApiError
|
|
52
57
|
*/
|
|
53
58
|
static deletePublicMock({ mockServerId, }) {
|
|
54
|
-
return (0,
|
|
59
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
55
60
|
method: 'DELETE',
|
|
56
61
|
url: '/api/v1/public/mocks/{mockServerId}',
|
|
57
62
|
path: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicMocksService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicMocksService.ts"],"names":[],"mappings":";;;AAQA,
|
|
1
|
+
{"version":3,"file":"PublicMocksService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicMocksService.ts"],"names":[],"mappings":";;;AAQA,mDAA6C;AAC7C,mDAA0D;AAC1D,MAAa,kBAAkB;IAC7B;;;;;;;;;OASG;IACI,MAAM,CAAC,eAAe;QAC3B,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sBAAsB;YAC3B,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;OAOG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC7B,WAAW,GAGZ;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,sBAAsB;YAC3B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACN,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;;OAQG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC7B,YAAY,GAGb;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,qCAAqC;YAC1C,IAAI,EAAE;gBACJ,cAAc,EAAE,YAAY;aAC7B;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;CACF;AA1ED,gDA0EC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OrgSummaryResponseV1 } from '../models/OrgSummaryResponseV1';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import type { OrgSummaryResponseV1 } from '../models/OrgSummaryResponseV1.js';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
3
3
|
export declare class PublicOrgsService {
|
|
4
4
|
/**
|
|
5
5
|
* Org-level resource counts and current plan
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicOrgsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicOrgsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PublicOrgsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicOrgsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,iBAAiB;IAC5B;;;;;;;OAOG;WACW,aAAa,IAAI,iBAAiB,CAAC,oBAAoB,CAAC;CAUvE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicOrgsService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const OpenAPI_js_1 = require("../core/OpenAPI.js");
|
|
5
|
+
const request_js_1 = require("../core/request.js");
|
|
6
6
|
class PublicOrgsService {
|
|
7
7
|
/**
|
|
8
8
|
* Org-level resource counts and current plan
|
|
@@ -13,7 +13,7 @@ class PublicOrgsService {
|
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
15
|
static getOrgSummary() {
|
|
16
|
-
return (0,
|
|
16
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
17
17
|
method: 'GET',
|
|
18
18
|
url: '/api/v1/public/orgs/summary',
|
|
19
19
|
errors: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicOrgsService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicOrgsService.ts"],"names":[],"mappings":";;;AAMA,
|
|
1
|
+
{"version":3,"file":"PublicOrgsService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicOrgsService.ts"],"names":[],"mappings":";;;AAMA,mDAA6C;AAC7C,mDAA0D;AAC1D,MAAa,iBAAiB;IAC5B;;;;;;;OAOG;IACI,MAAM,CAAC,aAAa;QACzB,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6BAA6B;YAClC,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,8CAmBC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import type { AiSearchRequestV1 } from '../models/AiSearchRequestV1';
|
|
2
|
-
import type { AiSearchResponseV1 } from '../models/AiSearchResponseV1';
|
|
3
|
-
import type { SpecVersionListItemV1 } from '../models/SpecVersionListItemV1';
|
|
4
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import type { AiSearchRequestV1 } from '../models/AiSearchRequestV1.js';
|
|
2
|
+
import type { AiSearchResponseV1 } from '../models/AiSearchResponseV1.js';
|
|
3
|
+
import type { SpecVersionListItemV1 } from '../models/SpecVersionListItemV1.js';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
5
|
export declare class PublicRegistryService {
|
|
6
6
|
/**
|
|
7
7
|
* Fetch latest published spec
|
|
8
|
+
* Returns the raw OpenAPI document of the most recently published version of the
|
|
9
|
+
* API, addressed by its org slug and API name. This is the canonical entry point
|
|
10
|
+
* for SDK generators and the `spec0 pull` CLI command — it short-circuits the
|
|
11
|
+
* version-listing round-trip when the caller just wants "the current spec".
|
|
12
|
+
*
|
|
8
13
|
* @returns string OpenAPI spec content
|
|
9
14
|
* @throws ApiError
|
|
10
15
|
*/
|
|
@@ -14,6 +19,12 @@ export declare class PublicRegistryService {
|
|
|
14
19
|
}): CancelablePromise<string>;
|
|
15
20
|
/**
|
|
16
21
|
* List version history
|
|
22
|
+
* Returns every published version of the API in reverse-chronological order,
|
|
23
|
+
* including the SemVer tag, git SHA recorded at publish, publish timestamp, and a
|
|
24
|
+
* flag indicating whether breaking changes were detected against the previous
|
|
25
|
+
* version. The spec content itself is not inlined — fetch individual versions with
|
|
26
|
+
* `GET /versions/{tag}`.
|
|
27
|
+
*
|
|
17
28
|
* @returns SpecVersionListItemV1 Version history
|
|
18
29
|
* @throws ApiError
|
|
19
30
|
*/
|
|
@@ -23,6 +34,11 @@ export declare class PublicRegistryService {
|
|
|
23
34
|
}): CancelablePromise<Array<SpecVersionListItemV1>>;
|
|
24
35
|
/**
|
|
25
36
|
* Fetch a specific spec version
|
|
37
|
+
* Returns the immutable OpenAPI document published under the given SemVer tag.
|
|
38
|
+
* Use this when a consumer needs to pin to a specific contract — e.g. CI
|
|
39
|
+
* regenerating SDKs from `1.2.3` even after `1.3.0` ships. Returns 404 if either
|
|
40
|
+
* the API or that specific tag does not exist.
|
|
41
|
+
*
|
|
26
42
|
* @returns string OpenAPI spec content for the requested version
|
|
27
43
|
* @throws ApiError
|
|
28
44
|
*/
|
|
@@ -33,6 +49,12 @@ export declare class PublicRegistryService {
|
|
|
33
49
|
}): CancelablePromise<string>;
|
|
34
50
|
/**
|
|
35
51
|
* Semantic search over the calling org's APIs
|
|
52
|
+
* Natural-language search across the calling org's API titles, descriptions, and
|
|
53
|
+
* operation summaries, backed by the RAG service. Results are ranked by semantic
|
|
54
|
+
* similarity to `query` and capped at `maxResults` (default 10). Scope is
|
|
55
|
+
* org-internal — the token's org is the only corpus searched; there is no
|
|
56
|
+
* cross-org discovery on this endpoint.
|
|
57
|
+
*
|
|
36
58
|
* @returns AiSearchResponseV1 Search results
|
|
37
59
|
* @throws ApiError
|
|
38
60
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicRegistryService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicRegistryService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PublicRegistryService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicRegistryService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,qBAAqB;IAChC;;;;;;;;;OASG;WACW,mBAAmB,CAAC,EAChC,OAAO,EACP,OAAO,GACR,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAe7B;;;;;;;;;;OAUG;WACW,sBAAsB,CAAC,EACnC,OAAO,EACP,OAAO,GACR,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,iBAAiB,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAenD;;;;;;;;;OASG;WACW,kBAAkB,CAAC,EAC/B,OAAO,EACP,OAAO,EACP,GAAG,GACJ,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,GAAG,EAAE,MAAM,CAAC;KACb,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAgB7B;;;;;;;;;;OAUG;WACW,gBAAgB,CAAC,EAC7B,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,iBAAiB,CAAC;KAChC,GAAG,iBAAiB,CAAC,kBAAkB,CAAC;CAa1C"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicRegistryService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const OpenAPI_js_1 = require("../core/OpenAPI.js");
|
|
5
|
+
const request_js_1 = require("../core/request.js");
|
|
6
6
|
class PublicRegistryService {
|
|
7
7
|
/**
|
|
8
8
|
* Fetch latest published spec
|
|
9
|
+
* Returns the raw OpenAPI document of the most recently published version of the
|
|
10
|
+
* API, addressed by its org slug and API name. This is the canonical entry point
|
|
11
|
+
* for SDK generators and the `spec0 pull` CLI command — it short-circuits the
|
|
12
|
+
* version-listing round-trip when the caller just wants "the current spec".
|
|
13
|
+
*
|
|
9
14
|
* @returns string OpenAPI spec content
|
|
10
15
|
* @throws ApiError
|
|
11
16
|
*/
|
|
12
17
|
static getLatestPublicSpec({ orgSlug, apiName, }) {
|
|
13
|
-
return (0,
|
|
18
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
14
19
|
method: 'GET',
|
|
15
20
|
url: '/api/v1/public/registry/{orgSlug}/{apiName}',
|
|
16
21
|
path: {
|
|
@@ -26,11 +31,17 @@ class PublicRegistryService {
|
|
|
26
31
|
}
|
|
27
32
|
/**
|
|
28
33
|
* List version history
|
|
34
|
+
* Returns every published version of the API in reverse-chronological order,
|
|
35
|
+
* including the SemVer tag, git SHA recorded at publish, publish timestamp, and a
|
|
36
|
+
* flag indicating whether breaking changes were detected against the previous
|
|
37
|
+
* version. The spec content itself is not inlined — fetch individual versions with
|
|
38
|
+
* `GET /versions/{tag}`.
|
|
39
|
+
*
|
|
29
40
|
* @returns SpecVersionListItemV1 Version history
|
|
30
41
|
* @throws ApiError
|
|
31
42
|
*/
|
|
32
43
|
static listPublicSpecVersions({ orgSlug, apiName, }) {
|
|
33
|
-
return (0,
|
|
44
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
34
45
|
method: 'GET',
|
|
35
46
|
url: '/api/v1/public/registry/{orgSlug}/{apiName}/versions',
|
|
36
47
|
path: {
|
|
@@ -46,11 +57,16 @@ class PublicRegistryService {
|
|
|
46
57
|
}
|
|
47
58
|
/**
|
|
48
59
|
* Fetch a specific spec version
|
|
60
|
+
* Returns the immutable OpenAPI document published under the given SemVer tag.
|
|
61
|
+
* Use this when a consumer needs to pin to a specific contract — e.g. CI
|
|
62
|
+
* regenerating SDKs from `1.2.3` even after `1.3.0` ships. Returns 404 if either
|
|
63
|
+
* the API or that specific tag does not exist.
|
|
64
|
+
*
|
|
49
65
|
* @returns string OpenAPI spec content for the requested version
|
|
50
66
|
* @throws ApiError
|
|
51
67
|
*/
|
|
52
68
|
static getPublicSpecByTag({ orgSlug, apiName, tag, }) {
|
|
53
|
-
return (0,
|
|
69
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
54
70
|
method: 'GET',
|
|
55
71
|
url: '/api/v1/public/registry/{orgSlug}/{apiName}/versions/{tag}',
|
|
56
72
|
path: {
|
|
@@ -67,11 +83,17 @@ class PublicRegistryService {
|
|
|
67
83
|
}
|
|
68
84
|
/**
|
|
69
85
|
* Semantic search over the calling org's APIs
|
|
86
|
+
* Natural-language search across the calling org's API titles, descriptions, and
|
|
87
|
+
* operation summaries, backed by the RAG service. Results are ranked by semantic
|
|
88
|
+
* similarity to `query` and capped at `maxResults` (default 10). Scope is
|
|
89
|
+
* org-internal — the token's org is the only corpus searched; there is no
|
|
90
|
+
* cross-org discovery on this endpoint.
|
|
91
|
+
*
|
|
70
92
|
* @returns AiSearchResponseV1 Search results
|
|
71
93
|
* @throws ApiError
|
|
72
94
|
*/
|
|
73
95
|
static searchPublicApis({ requestBody, }) {
|
|
74
|
-
return (0,
|
|
96
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
75
97
|
method: 'POST',
|
|
76
98
|
url: '/api/v1/public/registry/search',
|
|
77
99
|
body: requestBody,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicRegistryService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicRegistryService.ts"],"names":[],"mappings":";;;AAQA,
|
|
1
|
+
{"version":3,"file":"PublicRegistryService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicRegistryService.ts"],"names":[],"mappings":";;;AAQA,mDAA6C;AAC7C,mDAA0D;AAC1D,MAAa,qBAAqB;IAChC;;;;;;;;;OASG;IACI,MAAM,CAAC,mBAAmB,CAAC,EAChC,OAAO,EACP,OAAO,GAIR;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;YAClD,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,OAAO;aACnB;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;;;;OAUG;IACI,MAAM,CAAC,sBAAsB,CAAC,EACnC,OAAO,EACP,OAAO,GAIR;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sDAAsD;YAC3D,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,OAAO;aACnB;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;;;OASG;IACI,MAAM,CAAC,kBAAkB,CAAC,EAC/B,OAAO,EACP,OAAO,EACP,GAAG,GAKJ;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4DAA4D;YACjE,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,OAAO;gBAClB,KAAK,EAAE,GAAG;aACX;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;;;;OAUG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC7B,WAAW,GAGZ;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,gCAAgC;YACrC,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACN,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;CACF;AA9HD,sDA8HC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { SpecDiffResponseV1 } from '../models/SpecDiffResponseV1';
|
|
2
|
-
import type { SyncStatusResponseV1 } from '../models/SyncStatusResponseV1';
|
|
3
|
-
import type { VersionDiffResponseV1 } from '../models/VersionDiffResponseV1';
|
|
4
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import type { SpecDiffResponseV1 } from '../models/SpecDiffResponseV1.js';
|
|
2
|
+
import type { SyncStatusResponseV1 } from '../models/SyncStatusResponseV1.js';
|
|
3
|
+
import type { VersionDiffResponseV1 } from '../models/VersionDiffResponseV1.js';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
5
|
export declare class PublicSpecsService {
|
|
6
6
|
/**
|
|
7
7
|
* Compare two arbitrary specs (multipart)
|
|
@@ -23,6 +23,13 @@ export declare class PublicSpecsService {
|
|
|
23
23
|
}): CancelablePromise<SpecDiffResponseV1>;
|
|
24
24
|
/**
|
|
25
25
|
* Diff two published versions of an API
|
|
26
|
+
* Compares two already-published versions of the same API (addressed by `apiId` +
|
|
27
|
+
* `fromTag` + `toTag`) and returns the oasdiff-backed structured changelog plus a
|
|
28
|
+
* breaking-change list. Lighter-weight than the multipart `/specs/diff` endpoint
|
|
29
|
+
* because the caller doesn't have to upload either spec — the backend reads them
|
|
30
|
+
* from its own version history. Returns 503 if the oasdiff service is disabled in
|
|
31
|
+
* this deployment.
|
|
32
|
+
*
|
|
26
33
|
* @returns VersionDiffResponseV1 Diff result
|
|
27
34
|
* @throws ApiError
|
|
28
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicSpecsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicSpecsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PublicSpecsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicSpecsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,kBAAkB;IAC7B;;;;;OAKG;WACW,SAAS,CAAC,EACtB,QAAQ,GACT,EAAE;QACD,QAAQ,EAAE;YACR;;eAEG;YACH,IAAI,EAAE,IAAI,CAAC;YACX;;eAEG;YACH,QAAQ,EAAE,IAAI,CAAC;SAChB,CAAC;KACH,GAAG,iBAAiB,CAAC,kBAAkB,CAAC;IAazC;;;;;;;;;;;OAWG;WACW,cAAc,CAAC,EAC3B,KAAK,EACL,OAAO,EACP,KAAK,GACN,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,iBAAiB,CAAC,qBAAqB,CAAC;IAiB5C;;;;;;;OAOG;WACW,aAAa,CAAC,EAC1B,MAAM,EACN,KAAK,EACL,IAAI,GACL,EAAE;QACD,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,iBAAiB,CAAC,oBAAoB,CAAC;CAiB5C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicSpecsService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const OpenAPI_js_1 = require("../core/OpenAPI.js");
|
|
5
|
+
const request_js_1 = require("../core/request.js");
|
|
6
6
|
class PublicSpecsService {
|
|
7
7
|
/**
|
|
8
8
|
* Compare two arbitrary specs (multipart)
|
|
@@ -11,7 +11,7 @@ class PublicSpecsService {
|
|
|
11
11
|
* @throws ApiError
|
|
12
12
|
*/
|
|
13
13
|
static diffSpecs({ formData, }) {
|
|
14
|
-
return (0,
|
|
14
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
15
15
|
method: 'POST',
|
|
16
16
|
url: '/api/v1/public/specs/diff',
|
|
17
17
|
formData: formData,
|
|
@@ -25,11 +25,18 @@ class PublicSpecsService {
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Diff two published versions of an API
|
|
28
|
+
* Compares two already-published versions of the same API (addressed by `apiId` +
|
|
29
|
+
* `fromTag` + `toTag`) and returns the oasdiff-backed structured changelog plus a
|
|
30
|
+
* breaking-change list. Lighter-weight than the multipart `/specs/diff` endpoint
|
|
31
|
+
* because the caller doesn't have to upload either spec — the backend reads them
|
|
32
|
+
* from its own version history. Returns 503 if the oasdiff service is disabled in
|
|
33
|
+
* this deployment.
|
|
34
|
+
*
|
|
28
35
|
* @returns VersionDiffResponseV1 Diff result
|
|
29
36
|
* @throws ApiError
|
|
30
37
|
*/
|
|
31
38
|
static getVersionDiff({ apiId, fromTag, toTag, }) {
|
|
32
|
-
return (0,
|
|
39
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
33
40
|
method: 'GET',
|
|
34
41
|
url: '/api/v1/public/specs/version-diff',
|
|
35
42
|
query: {
|
|
@@ -54,7 +61,7 @@ class PublicSpecsService {
|
|
|
54
61
|
* @throws ApiError
|
|
55
62
|
*/
|
|
56
63
|
static getSyncStatus({ gitSha, apiId, name, }) {
|
|
57
|
-
return (0,
|
|
64
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
58
65
|
method: 'GET',
|
|
59
66
|
url: '/api/v1/public/specs/sync-status',
|
|
60
67
|
query: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicSpecsService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicSpecsService.ts"],"names":[],"mappings":";;;AAQA,
|
|
1
|
+
{"version":3,"file":"PublicSpecsService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicSpecsService.ts"],"names":[],"mappings":";;;AAQA,mDAA6C;AAC7C,mDAA0D;AAC1D,MAAa,kBAAkB;IAC7B;;;;;OAKG;IACI,MAAM,CAAC,SAAS,CAA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
|
|
1
|
-
import type { PutSpectralRulesetRequestV1 } from '../models/PutSpectralRulesetRequestV1';
|
|
2
|
-
import type { SpectralRulesetResponseV1 } from '../models/SpectralRulesetResponseV1';
|
|
3
|
-
import type { StatusResponseV1 } from '../models/StatusResponseV1';
|
|
4
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import type { PutSpectralRulesetRequestV1 } from '../models/PutSpectralRulesetRequestV1.js';
|
|
2
|
+
import type { SpectralRulesetResponseV1 } from '../models/SpectralRulesetResponseV1.js';
|
|
3
|
+
import type { StatusResponseV1 } from '../models/StatusResponseV1.js';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
5
|
export declare class PublicSpectralService {
|
|
6
6
|
/**
|
|
7
7
|
* Get the calling org's Spectral ruleset
|
|
8
|
+
* Returns the org's custom Spectral ruleset YAML, or an empty string when the org
|
|
9
|
+
* has not configured one. The CLI fetches this on every `spec0 lint` invocation so
|
|
10
|
+
* lint behaviour stays consistent between local dev and CI. Built-in rulesets are
|
|
11
|
+
* applied regardless of whether a custom ruleset is set.
|
|
12
|
+
*
|
|
8
13
|
* @returns SpectralRulesetResponseV1 Current ruleset
|
|
9
14
|
* @throws ApiError
|
|
10
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicSpectralService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicSpectralService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PublicSpectralService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicSpectralService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,qBAAqB;IAChC;;;;;;;;;OASG;WACW,kBAAkB,IAAI,iBAAiB,CAAC,yBAAyB,CAAC;IAUhF;;;;;OAKG;WACW,kBAAkB,CAAC,EAC/B,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,2BAA2B,CAAC;KAC1C,GAAG,iBAAiB,CAAC,gBAAgB,CAAC;CAaxC"}
|