@spec0/sdk-public-platform 1.1.0 → 1.2.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.js +5 -1
- package/dist/generated/core/ApiError.js.map +1 -1
- package/dist/generated/core/ApiRequestOptions.js +2 -1
- package/dist/generated/core/ApiResult.js +2 -1
- package/dist/generated/core/CancelablePromise.js +7 -2
- package/dist/generated/core/CancelablePromise.js.map +1 -1
- package/dist/generated/core/OpenAPI.js +4 -1
- package/dist/generated/core/OpenAPI.js.map +1 -1
- package/dist/generated/core/request.js +65 -46
- package/dist/generated/core/request.js.map +1 -1
- package/dist/generated/index.d.ts +10 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +26 -8
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/AiSearchRequestV1.js +2 -1
- package/dist/generated/models/AiSearchResponseV1.js +2 -1
- package/dist/generated/models/ApiNamePath.js +2 -1
- package/dist/generated/models/ApiTeamListItemV1.d.ts +24 -0
- package/dist/generated/models/ApiTeamListItemV1.d.ts.map +1 -0
- package/dist/generated/models/ApiTeamListItemV1.js +3 -0
- package/dist/generated/models/ApiTeamListItemV1.js.map +1 -0
- package/dist/generated/models/AuthError.js +2 -1
- package/dist/generated/models/CiConfigResponseV1.d.ts +11 -0
- package/dist/generated/models/CiConfigResponseV1.d.ts.map +1 -0
- package/dist/generated/models/CiConfigResponseV1.js +3 -0
- package/dist/generated/models/CiConfigResponseV1.js.map +1 -0
- package/dist/generated/models/CreateMockRequestV1.js +2 -1
- package/dist/generated/models/CreateMockResponseV1.js +2 -1
- package/dist/generated/models/MockItemV1.js +2 -1
- package/dist/generated/models/OrgSlugPath.js +2 -1
- package/dist/generated/models/OrgSummaryResponseV1.d.ts +13 -0
- package/dist/generated/models/OrgSummaryResponseV1.d.ts.map +1 -0
- package/dist/generated/models/OrgSummaryResponseV1.js +3 -0
- package/dist/generated/models/OrgSummaryResponseV1.js.map +1 -0
- package/dist/generated/models/Problem.js +2 -1
- package/dist/generated/models/PublicApiIdPath.js +2 -1
- package/dist/generated/models/PublicApiListItem.js +2 -1
- package/dist/generated/models/PublicApiMetaV1.js +2 -1
- package/dist/generated/models/PublicPublishRequestV1.js +2 -1
- package/dist/generated/models/PublicPublishResponseV1.js +2 -1
- package/dist/generated/models/PutSpectralRulesetRequestV1.js +2 -1
- package/dist/generated/models/SpecDiffResponseV1.js +2 -1
- package/dist/generated/models/SpecVersionListItemV1.js +2 -1
- package/dist/generated/models/SpectralRulesetResponseV1.js +2 -1
- package/dist/generated/models/StatusResponseV1.js +2 -1
- package/dist/generated/models/SyncStatusResponseV1.js +2 -1
- package/dist/generated/models/TeamCreateRequestV1.d.ts +8 -0
- package/dist/generated/models/TeamCreateRequestV1.d.ts.map +1 -0
- package/dist/generated/models/TeamCreateRequestV1.js +3 -0
- package/dist/generated/models/TeamCreateRequestV1.js.map +1 -0
- package/dist/generated/models/TeamPublishRequestV1.d.ts +53 -0
- package/dist/generated/models/TeamPublishRequestV1.d.ts.map +1 -0
- package/dist/generated/models/TeamPublishRequestV1.js +3 -0
- package/dist/generated/models/TeamPublishRequestV1.js.map +1 -0
- package/dist/generated/models/TeamPublishResponseV1.d.ts +30 -0
- package/dist/generated/models/TeamPublishResponseV1.d.ts.map +1 -0
- package/dist/generated/models/TeamPublishResponseV1.js +3 -0
- package/dist/generated/models/TeamPublishResponseV1.js.map +1 -0
- package/dist/generated/models/TeamV1.d.ts +10 -0
- package/dist/generated/models/TeamV1.d.ts.map +1 -0
- package/dist/generated/models/TeamV1.js +3 -0
- package/dist/generated/models/TeamV1.js.map +1 -0
- package/dist/generated/models/VersionDiffResponseV1.js +2 -1
- package/dist/generated/models/Visibility.js +2 -1
- package/dist/generated/models/VisibilityUpdateRequestV1.js +2 -1
- package/dist/generated/services/PublicApisService.d.ts +47 -0
- package/dist/generated/services/PublicApisService.d.ts.map +1 -1
- package/dist/generated/services/PublicApisService.js +88 -7
- package/dist/generated/services/PublicApisService.js.map +1 -1
- package/dist/generated/services/PublicCiService.d.ts +21 -0
- package/dist/generated/services/PublicCiService.d.ts.map +1 -0
- package/dist/generated/services/PublicCiService.js +33 -0
- package/dist/generated/services/PublicCiService.js.map +1 -0
- package/dist/generated/services/PublicMocksService.d.ts +12 -0
- package/dist/generated/services/PublicMocksService.d.ts.map +1 -1
- package/dist/generated/services/PublicMocksService.js +32 -5
- package/dist/generated/services/PublicMocksService.js.map +1 -1
- package/dist/generated/services/PublicOrgsService.d.ts +14 -0
- package/dist/generated/services/PublicOrgsService.d.ts.map +1 -0
- package/dist/generated/services/PublicOrgsService.js +27 -0
- package/dist/generated/services/PublicOrgsService.js.map +1 -0
- package/dist/generated/services/PublicRegistryService.js +11 -7
- package/dist/generated/services/PublicRegistryService.js.map +1 -1
- package/dist/generated/services/PublicSpecsService.js +10 -6
- package/dist/generated/services/PublicSpecsService.js.map +1 -1
- package/dist/generated/services/PublicSpectralService.js +9 -5
- package/dist/generated/services/PublicSpectralService.js.map +1 -1
- package/dist/generated/services/PublicTeamsService.d.ts +35 -0
- package/dist/generated/services/PublicTeamsService.d.ts.map +1 -0
- package/dist/generated/services/PublicTeamsService.js +69 -0
- package/dist/generated/services/PublicTeamsService.js.map +1 -0
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
- package/src/generated/index.ts +10 -0
- package/src/generated/models/ApiTeamListItemV1.ts +28 -0
- package/src/generated/models/CiConfigResponseV1.ts +15 -0
- package/src/generated/models/OrgSummaryResponseV1.ts +17 -0
- package/src/generated/models/TeamCreateRequestV1.ts +12 -0
- package/src/generated/models/TeamPublishRequestV1.ts +57 -0
- package/src/generated/models/TeamPublishResponseV1.ts +34 -0
- package/src/generated/models/TeamV1.ts +14 -0
- package/src/generated/services/PublicApisService.ts +88 -0
- package/src/generated/services/PublicCiService.ts +45 -0
- package/src/generated/services/PublicMocksService.ts +27 -0
- package/src/generated/services/PublicOrgsService.ts +28 -0
- package/src/generated/services/PublicTeamsService.ts +79 -0
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicMocksService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class PublicMocksService {
|
|
4
7
|
/**
|
|
5
8
|
* List mock servers for the calling org
|
|
6
9
|
* @returns MockItemV1 Mock servers
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static listPublicMocks() {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'GET',
|
|
12
15
|
url: '/api/v1/public/mocks',
|
|
13
16
|
errors: {
|
|
@@ -25,7 +28,7 @@ export class PublicMocksService {
|
|
|
25
28
|
* @throws ApiError
|
|
26
29
|
*/
|
|
27
30
|
static createPublicMock({ requestBody, }) {
|
|
28
|
-
return
|
|
31
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
29
32
|
method: 'POST',
|
|
30
33
|
url: '/api/v1/public/mocks',
|
|
31
34
|
body: requestBody,
|
|
@@ -38,5 +41,29 @@ export class PublicMocksService {
|
|
|
38
41
|
},
|
|
39
42
|
});
|
|
40
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Delete a mock server owned by the calling org
|
|
46
|
+
* Hard-deletes the mock server and removes its association with the parent API.
|
|
47
|
+
* Cross-org deletes return 404 (not 403) so the existence of the mock is not
|
|
48
|
+
* leaked. This is what the `spec0 mock delete` lifecycle command targets.
|
|
49
|
+
*
|
|
50
|
+
* @returns void
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static deletePublicMock({ mockServerId, }) {
|
|
54
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
55
|
+
method: 'DELETE',
|
|
56
|
+
url: '/api/v1/public/mocks/{mockServerId}',
|
|
57
|
+
path: {
|
|
58
|
+
'mockServerId': mockServerId,
|
|
59
|
+
},
|
|
60
|
+
errors: {
|
|
61
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
62
|
+
403: `Token does not carry the required scope`,
|
|
63
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
41
67
|
}
|
|
68
|
+
exports.PublicMocksService = PublicMocksService;
|
|
42
69
|
//# sourceMappingURL=PublicMocksService.js.map
|
|
@@ -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,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,kBAAkB;IAC7B;;;;OAIG;IACI,MAAM,CAAC,eAAe;QAC3B,OAAO,IAAA,iBAAS,EAAC,iBAAO,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,iBAAS,EAAC,iBAAO,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,iBAAS,EAAC,iBAAO,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;AArED,gDAqEC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OrgSummaryResponseV1 } from '../models/OrgSummaryResponseV1';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class PublicOrgsService {
|
|
4
|
+
/**
|
|
5
|
+
* Org-level resource counts and current plan
|
|
6
|
+
* Returns counts of APIs, mock servers, and teams in the calling token's org,
|
|
7
|
+
* plus the org's current plan. Useful for CLI status/dashboard views.
|
|
8
|
+
*
|
|
9
|
+
* @returns OrgSummaryResponseV1 Org summary
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static getOrgSummary(): CancelablePromise<OrgSummaryResponseV1>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=PublicOrgsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicOrgsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicOrgsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,iBAAiB;IAC5B;;;;;;;OAOG;WACW,aAAa,IAAI,iBAAiB,CAAC,oBAAoB,CAAC;CAUvE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicOrgsService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class PublicOrgsService {
|
|
7
|
+
/**
|
|
8
|
+
* Org-level resource counts and current plan
|
|
9
|
+
* Returns counts of APIs, mock servers, and teams in the calling token's org,
|
|
10
|
+
* plus the org's current plan. Useful for CLI status/dashboard views.
|
|
11
|
+
*
|
|
12
|
+
* @returns OrgSummaryResponseV1 Org summary
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static getOrgSummary() {
|
|
16
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
17
|
+
method: 'GET',
|
|
18
|
+
url: '/api/v1/public/orgs/summary',
|
|
19
|
+
errors: {
|
|
20
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
21
|
+
403: `Token does not carry the required scope`,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.PublicOrgsService = PublicOrgsService;
|
|
27
|
+
//# sourceMappingURL=PublicOrgsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicOrgsService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicOrgsService.ts"],"names":[],"mappings":";;;AAMA,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,iBAAiB;IAC5B;;;;;;;OAOG;IACI,MAAM,CAAC,aAAa;QACzB,OAAO,IAAA,iBAAS,EAAC,iBAAO,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,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicRegistryService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class PublicRegistryService {
|
|
4
7
|
/**
|
|
5
8
|
* Fetch latest published spec
|
|
6
9
|
* @returns string OpenAPI spec content
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static getLatestPublicSpec({ orgSlug, apiName, }) {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'GET',
|
|
12
15
|
url: '/api/v1/public/registry/{orgSlug}/{apiName}',
|
|
13
16
|
path: {
|
|
@@ -27,7 +30,7 @@ export class PublicRegistryService {
|
|
|
27
30
|
* @throws ApiError
|
|
28
31
|
*/
|
|
29
32
|
static listPublicSpecVersions({ orgSlug, apiName, }) {
|
|
30
|
-
return
|
|
33
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
31
34
|
method: 'GET',
|
|
32
35
|
url: '/api/v1/public/registry/{orgSlug}/{apiName}/versions',
|
|
33
36
|
path: {
|
|
@@ -47,7 +50,7 @@ export class PublicRegistryService {
|
|
|
47
50
|
* @throws ApiError
|
|
48
51
|
*/
|
|
49
52
|
static getPublicSpecByTag({ orgSlug, apiName, tag, }) {
|
|
50
|
-
return
|
|
53
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
51
54
|
method: 'GET',
|
|
52
55
|
url: '/api/v1/public/registry/{orgSlug}/{apiName}/versions/{tag}',
|
|
53
56
|
path: {
|
|
@@ -68,7 +71,7 @@ export class PublicRegistryService {
|
|
|
68
71
|
* @throws ApiError
|
|
69
72
|
*/
|
|
70
73
|
static searchPublicApis({ requestBody, }) {
|
|
71
|
-
return
|
|
74
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
72
75
|
method: 'POST',
|
|
73
76
|
url: '/api/v1/public/registry/search',
|
|
74
77
|
body: requestBody,
|
|
@@ -81,4 +84,5 @@ export class PublicRegistryService {
|
|
|
81
84
|
});
|
|
82
85
|
}
|
|
83
86
|
}
|
|
87
|
+
exports.PublicRegistryService = PublicRegistryService;
|
|
84
88
|
//# sourceMappingURL=PublicRegistryService.js.map
|
|
@@ -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,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,qBAAqB;IAChC;;;;OAIG;IACI,MAAM,CAAC,mBAAmB,CAAC,EAChC,OAAO,EACP,OAAO,GAIR;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,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;;;;OAIG;IACI,MAAM,CAAC,sBAAsB,CAAC,EACnC,OAAO,EACP,OAAO,GAIR;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,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;;;;OAIG;IACI,MAAM,CAAC,kBAAkB,CAAC,EAC/B,OAAO,EACP,OAAO,EACP,GAAG,GAKJ;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,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;;;;OAIG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC7B,WAAW,GAGZ;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,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;AAxGD,sDAwGC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicSpecsService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class PublicSpecsService {
|
|
4
7
|
/**
|
|
5
8
|
* Compare two arbitrary specs (multipart)
|
|
6
9
|
* oasdiff-backed structured changelog + breaking-change list.
|
|
@@ -8,7 +11,7 @@ export class PublicSpecsService {
|
|
|
8
11
|
* @throws ApiError
|
|
9
12
|
*/
|
|
10
13
|
static diffSpecs({ formData, }) {
|
|
11
|
-
return
|
|
14
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
12
15
|
method: 'POST',
|
|
13
16
|
url: '/api/v1/public/specs/diff',
|
|
14
17
|
formData: formData,
|
|
@@ -26,7 +29,7 @@ export class PublicSpecsService {
|
|
|
26
29
|
* @throws ApiError
|
|
27
30
|
*/
|
|
28
31
|
static getVersionDiff({ apiId, fromTag, toTag, }) {
|
|
29
|
-
return
|
|
32
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
30
33
|
method: 'GET',
|
|
31
34
|
url: '/api/v1/public/specs/version-diff',
|
|
32
35
|
query: {
|
|
@@ -51,7 +54,7 @@ export class PublicSpecsService {
|
|
|
51
54
|
* @throws ApiError
|
|
52
55
|
*/
|
|
53
56
|
static getSyncStatus({ gitSha, apiId, name, }) {
|
|
54
|
-
return
|
|
57
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
55
58
|
method: 'GET',
|
|
56
59
|
url: '/api/v1/public/specs/sync-status',
|
|
57
60
|
query: {
|
|
@@ -68,4 +71,5 @@ export class PublicSpecsService {
|
|
|
68
71
|
});
|
|
69
72
|
}
|
|
70
73
|
}
|
|
74
|
+
exports.PublicSpecsService = PublicSpecsService;
|
|
71
75
|
//# sourceMappingURL=PublicSpecsService.js.map
|
|
@@ -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,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,kBAAkB;IAC7B;;;;;OAKG;IACI,MAAM,CAAC,SAAS,CAAC,EACtB,QAAQ,GAYT;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B;YAChC,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,qBAAqB;YAChC,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,gDAAgD;aACtD;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,cAAc,CAAC,EAC3B,KAAK,EACL,OAAO,EACP,KAAK,GAKN;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,KAAK,EAAE;gBACL,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,OAAO;gBAClB,OAAO,EAAE,KAAK;aACf;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;gBAC7D,GAAG,EAAE,6BAA6B;aACnC;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;OAOG;IACI,MAAM,CAAC,aAAa,CAAC,EAC1B,MAAM,EACN,KAAK,EACL,IAAI,GAKL;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kCAAkC;YACvC,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;gBAChB,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,IAAI;aACb;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAhGD,gDAgGC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicSpectralService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class PublicSpectralService {
|
|
4
7
|
/**
|
|
5
8
|
* Get the calling org's Spectral ruleset
|
|
6
9
|
* @returns SpectralRulesetResponseV1 Current ruleset
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static getSpectralRuleset() {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'GET',
|
|
12
15
|
url: '/api/v1/public/spectral/ruleset',
|
|
13
16
|
errors: {
|
|
@@ -23,7 +26,7 @@ export class PublicSpectralService {
|
|
|
23
26
|
* @throws ApiError
|
|
24
27
|
*/
|
|
25
28
|
static putSpectralRuleset({ requestBody, }) {
|
|
26
|
-
return
|
|
29
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
27
30
|
method: 'PUT',
|
|
28
31
|
url: '/api/v1/public/spectral/ruleset',
|
|
29
32
|
body: requestBody,
|
|
@@ -36,4 +39,5 @@ export class PublicSpectralService {
|
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
41
|
}
|
|
42
|
+
exports.PublicSpectralService = PublicSpectralService;
|
|
39
43
|
//# sourceMappingURL=PublicSpectralService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicSpectralService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicSpectralService.ts"],"names":[],"mappings":"AAQA,
|
|
1
|
+
{"version":3,"file":"PublicSpectralService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicSpectralService.ts"],"names":[],"mappings":";;;AAQA,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,qBAAqB;IAChC;;;;OAIG;IACI,MAAM,CAAC,kBAAkB;QAC9B,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,iCAAiC;YACtC,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,kBAAkB,CAAC,EAC/B,WAAW,GAGZ;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,iCAAiC;YACtC,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,qDAAqD;gBAC1D,GAAG,EAAE,yCAAyC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAvCD,sDAuCC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { TeamCreateRequestV1 } from '../models/TeamCreateRequestV1';
|
|
2
|
+
import type { TeamV1 } from '../models/TeamV1';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class PublicTeamsService {
|
|
5
|
+
/**
|
|
6
|
+
* List teams for the calling org
|
|
7
|
+
* @returns TeamV1 Teams in the calling org
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static listTeams(): CancelablePromise<Array<TeamV1>>;
|
|
11
|
+
/**
|
|
12
|
+
* Create a team in the calling org
|
|
13
|
+
* Creates a team owned by the calling token's org. The team starts with no
|
|
14
|
+
* members; member management is out of scope for this V1 surface.
|
|
15
|
+
*
|
|
16
|
+
* @returns TeamV1 Created team
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
static createTeam({ requestBody, }: {
|
|
20
|
+
requestBody: TeamCreateRequestV1;
|
|
21
|
+
}): CancelablePromise<TeamV1>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a team owned by the calling org
|
|
24
|
+
* Deletes the team. The call fails with 409 if the team still has APIs or mock
|
|
25
|
+
* servers — the caller must remove those first. Cross-org deletes return 404 so
|
|
26
|
+
* the existence of the team is not leaked.
|
|
27
|
+
*
|
|
28
|
+
* @returns void
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static deleteTeam({ teamId, }: {
|
|
32
|
+
teamId: string;
|
|
33
|
+
}): CancelablePromise<void>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=PublicTeamsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicTeamsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicTeamsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,kBAAkB;IAC7B;;;;OAIG;WACW,SAAS,IAAI,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAU3D;;;;;;;OAOG;WACW,UAAU,CAAC,EACvB,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,mBAAmB,CAAC;KAClC,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAa7B;;;;;;;;OAQG;WACW,UAAU,CAAC,EACvB,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAC;KAChB,GAAG,iBAAiB,CAAC,IAAI,CAAC;CAe5B"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicTeamsService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class PublicTeamsService {
|
|
7
|
+
/**
|
|
8
|
+
* List teams for the calling org
|
|
9
|
+
* @returns TeamV1 Teams in the calling org
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listTeams() {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/api/v1/public/teams',
|
|
16
|
+
errors: {
|
|
17
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
18
|
+
403: `Token does not carry the required scope`,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a team in the calling org
|
|
24
|
+
* Creates a team owned by the calling token's org. The team starts with no
|
|
25
|
+
* members; member management is out of scope for this V1 surface.
|
|
26
|
+
*
|
|
27
|
+
* @returns TeamV1 Created team
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
static createTeam({ requestBody, }) {
|
|
31
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
32
|
+
method: 'POST',
|
|
33
|
+
url: '/api/v1/public/teams',
|
|
34
|
+
body: requestBody,
|
|
35
|
+
mediaType: 'application/json',
|
|
36
|
+
errors: {
|
|
37
|
+
400: `Bad request`,
|
|
38
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
39
|
+
403: `Token does not carry the required scope`,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Delete a team owned by the calling org
|
|
45
|
+
* Deletes the team. The call fails with 409 if the team still has APIs or mock
|
|
46
|
+
* servers — the caller must remove those first. Cross-org deletes return 404 so
|
|
47
|
+
* the existence of the team is not leaked.
|
|
48
|
+
*
|
|
49
|
+
* @returns void
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
static deleteTeam({ teamId, }) {
|
|
53
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
54
|
+
method: 'DELETE',
|
|
55
|
+
url: '/api/v1/public/teams/{teamId}',
|
|
56
|
+
path: {
|
|
57
|
+
'teamId': teamId,
|
|
58
|
+
},
|
|
59
|
+
errors: {
|
|
60
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
61
|
+
403: `Token does not carry the required scope`,
|
|
62
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
63
|
+
409: `Team still has child resources (APIs or mock servers)`,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.PublicTeamsService = PublicTeamsService;
|
|
69
|
+
//# sourceMappingURL=PublicTeamsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicTeamsService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicTeamsService.ts"],"names":[],"mappings":";;;AAOA,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,kBAAkB;IAC7B;;;;OAIG;IACI,MAAM,CAAC,SAAS;QACrB,OAAO,IAAA,iBAAS,EAAC,iBAAO,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,UAAU,CAAC,EACvB,WAAW,GAGZ;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,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;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;;OAQG;IACI,MAAM,CAAC,UAAU,CAAC,EACvB,MAAM,GAGP;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,+BAA+B;YACpC,IAAI,EAAE;gBACJ,QAAQ,EAAE,MAAM;aACjB;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;gBAC7D,GAAG,EAAE,uDAAuD;aAC7D;SACF,CAAC,CAAC;IACL,CAAC;CACF;AArED,gDAqEC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
17
|
// Generated entry — re-exports the openapi-typescript-codegen output.
|
|
2
|
-
|
|
18
|
+
__exportStar(require("./generated"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAsE;AACtE,8CAA4B"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spec0/sdk-public-platform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "TypeScript SDK for Spec0's public API surface (https://app.spec0.io). Generated from the OpenAPI spec published at spec0/spec0-platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
6
|
"main": "./dist/index.js",
|
|
8
|
-
"module": "./dist/index.js",
|
|
9
7
|
"types": "./dist/index.d.ts",
|
|
10
8
|
"exports": {
|
|
11
9
|
".": {
|
|
12
10
|
"types": "./dist/index.d.ts",
|
|
13
|
-
"
|
|
11
|
+
"default": "./dist/index.js"
|
|
14
12
|
}
|
|
15
13
|
},
|
|
16
14
|
"files": [
|
package/src/generated/index.ts
CHANGED
|
@@ -10,11 +10,14 @@ export type { OpenAPIConfig } from './core/OpenAPI';
|
|
|
10
10
|
export type { AiSearchRequestV1 } from './models/AiSearchRequestV1';
|
|
11
11
|
export type { AiSearchResponseV1 } from './models/AiSearchResponseV1';
|
|
12
12
|
export type { ApiNamePath } from './models/ApiNamePath';
|
|
13
|
+
export type { ApiTeamListItemV1 } from './models/ApiTeamListItemV1';
|
|
13
14
|
export type { AuthError } from './models/AuthError';
|
|
15
|
+
export type { CiConfigResponseV1 } from './models/CiConfigResponseV1';
|
|
14
16
|
export type { CreateMockRequestV1 } from './models/CreateMockRequestV1';
|
|
15
17
|
export type { CreateMockResponseV1 } from './models/CreateMockResponseV1';
|
|
16
18
|
export type { MockItemV1 } from './models/MockItemV1';
|
|
17
19
|
export type { OrgSlugPath } from './models/OrgSlugPath';
|
|
20
|
+
export type { OrgSummaryResponseV1 } from './models/OrgSummaryResponseV1';
|
|
18
21
|
export type { Problem } from './models/Problem';
|
|
19
22
|
export type { PublicApiIdPath } from './models/PublicApiIdPath';
|
|
20
23
|
export type { PublicApiListItem } from './models/PublicApiListItem';
|
|
@@ -27,12 +30,19 @@ export type { SpectralRulesetResponseV1 } from './models/SpectralRulesetResponse
|
|
|
27
30
|
export type { SpecVersionListItemV1 } from './models/SpecVersionListItemV1';
|
|
28
31
|
export type { StatusResponseV1 } from './models/StatusResponseV1';
|
|
29
32
|
export type { SyncStatusResponseV1 } from './models/SyncStatusResponseV1';
|
|
33
|
+
export type { TeamCreateRequestV1 } from './models/TeamCreateRequestV1';
|
|
34
|
+
export type { TeamPublishRequestV1 } from './models/TeamPublishRequestV1';
|
|
35
|
+
export type { TeamPublishResponseV1 } from './models/TeamPublishResponseV1';
|
|
36
|
+
export type { TeamV1 } from './models/TeamV1';
|
|
30
37
|
export type { VersionDiffResponseV1 } from './models/VersionDiffResponseV1';
|
|
31
38
|
export type { Visibility } from './models/Visibility';
|
|
32
39
|
export type { VisibilityUpdateRequestV1 } from './models/VisibilityUpdateRequestV1';
|
|
33
40
|
|
|
34
41
|
export { PublicApisService } from './services/PublicApisService';
|
|
42
|
+
export { PublicCiService } from './services/PublicCiService';
|
|
35
43
|
export { PublicMocksService } from './services/PublicMocksService';
|
|
44
|
+
export { PublicOrgsService } from './services/PublicOrgsService';
|
|
36
45
|
export { PublicRegistryService } from './services/PublicRegistryService';
|
|
37
46
|
export { PublicSpecsService } from './services/PublicSpecsService';
|
|
38
47
|
export { PublicSpectralService } from './services/PublicSpectralService';
|
|
48
|
+
export { PublicTeamsService } from './services/PublicTeamsService';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* A team-scoped private API in the calling org. Distinct from
|
|
7
|
+
* `PublicApiListItem`, which describes a record in the public registry.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export type ApiTeamListItemV1 = {
|
|
11
|
+
apiId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Kebab-case slug used in CLI commands and registry URLs.
|
|
14
|
+
*/
|
|
15
|
+
apiName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Latest published `info.version` from the OpenAPI spec.
|
|
18
|
+
*/
|
|
19
|
+
version?: string | null;
|
|
20
|
+
description?: string | null;
|
|
21
|
+
teamId?: string | null;
|
|
22
|
+
teamName?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* ISO local date-time of the last update.
|
|
25
|
+
*/
|
|
26
|
+
updatedAt?: string | null;
|
|
27
|
+
};
|
|
28
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type CiConfigResponseV1 = {
|
|
6
|
+
/**
|
|
7
|
+
* Ready-to-use GitHub Actions workflow YAML.
|
|
8
|
+
*/
|
|
9
|
+
workflowYaml?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Suggested file path for the workflow.
|
|
12
|
+
*/
|
|
13
|
+
filePath?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Org-level resource counts and current plan.
|
|
7
|
+
*/
|
|
8
|
+
export type OrgSummaryResponseV1 = {
|
|
9
|
+
apiCount?: number;
|
|
10
|
+
mockServerCount?: number;
|
|
11
|
+
teamCount?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Current plan id (e.g. `free`, `pro`).
|
|
14
|
+
*/
|
|
15
|
+
plan?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type TeamCreateRequestV1 = {
|
|
6
|
+
/**
|
|
7
|
+
* Team display name. Must be non-blank.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Request body for publishing a team-scoped private API. Mirrors the shape of the
|
|
7
|
+
* legacy `CliPublishRequest` (operationId `publishCliSpec`) consumed by `spec0 push`.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export type TeamPublishRequestV1 = {
|
|
11
|
+
/**
|
|
12
|
+
* Existing API id. Optional — slug-based upsert by (org, `name`) is preferred.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
apiId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* API name (kebab-case). If omitted, derived from the basename of `specFilePath`
|
|
18
|
+
* (e.g. `api/payment-api.yaml` → `payment-api`).
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
name?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Team UUID OR slug. When omitted, the API is placed in the org's
|
|
24
|
+
* "Unassigned APIs" team.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
team?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Semver version to publish (MAJOR.MINOR.PATCH). If omitted, the version is
|
|
30
|
+
* extracted from `info.version` in the spec. Ignored when `semver` is true.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
version?: string;
|
|
34
|
+
/**
|
|
35
|
+
* OpenAPI document content (YAML or JSON).
|
|
36
|
+
*/
|
|
37
|
+
openapiSpec: string;
|
|
38
|
+
/**
|
|
39
|
+
* Git commit SHA of the spec file. Used as the primary change detector. If
|
|
40
|
+
* unchanged since last publish, the request is treated as a no-op.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
gitSha?: string;
|
|
44
|
+
githubRepo?: string;
|
|
45
|
+
githubBranch?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Path to the spec file in the repository. Used to derive API name when `name` is omitted.
|
|
48
|
+
*/
|
|
49
|
+
specFilePath?: string;
|
|
50
|
+
/**
|
|
51
|
+
* If true, the backend runs oasdiff to classify the change and auto-computes
|
|
52
|
+
* the next semver tag (PATCH / NON_BREAKING / BREAKING).
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
semver?: boolean;
|
|
56
|
+
};
|
|
57
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type TeamPublishResponseV1 = {
|
|
6
|
+
apiId?: string;
|
|
7
|
+
specRecordId?: string;
|
|
8
|
+
version?: string;
|
|
9
|
+
/**
|
|
10
|
+
* True if a new API entity was created.
|
|
11
|
+
*/
|
|
12
|
+
created?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* True if a new version snapshot was created.
|
|
15
|
+
*/
|
|
16
|
+
versionCreated?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* True if the gitSha matched the last published SHA.
|
|
19
|
+
*/
|
|
20
|
+
noChanges?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* True when spec changed but `info.version` did not.
|
|
23
|
+
*/
|
|
24
|
+
versionUnchanged?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Human-readable hint shown when `versionUnchanged` is true.
|
|
27
|
+
*/
|
|
28
|
+
versionUnchangedHint?: string;
|
|
29
|
+
apiName?: string;
|
|
30
|
+
teamName?: string;
|
|
31
|
+
orgSlug?: string;
|
|
32
|
+
registryUrl?: string;
|
|
33
|
+
};
|
|
34
|
+
|