@spec0/sdk-public-platform 1.1.1 → 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/index.d.ts +4 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +3 -1
- package/dist/generated/index.js.map +1 -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/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/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/services/PublicApisService.d.ts +28 -0
- package/dist/generated/services/PublicApisService.d.ts.map +1 -1
- package/dist/generated/services/PublicApisService.js +47 -0
- package/dist/generated/services/PublicApisService.js.map +1 -1
- 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 +23 -0
- package/dist/generated/services/PublicMocksService.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/package.json +1 -1
- package/src/generated/index.ts +4 -0
- package/src/generated/models/ApiTeamListItemV1.ts +28 -0
- package/src/generated/models/TeamCreateRequestV1.ts +12 -0
- package/src/generated/models/TeamV1.ts +14 -0
- package/src/generated/services/PublicApisService.ts +52 -0
- package/src/generated/services/PublicMocksService.ts +27 -0
- package/src/generated/services/PublicTeamsService.ts +79 -0
|
@@ -5,6 +5,7 @@ export type { OpenAPIConfig } from './core/OpenAPI';
|
|
|
5
5
|
export type { AiSearchRequestV1 } from './models/AiSearchRequestV1';
|
|
6
6
|
export type { AiSearchResponseV1 } from './models/AiSearchResponseV1';
|
|
7
7
|
export type { ApiNamePath } from './models/ApiNamePath';
|
|
8
|
+
export type { ApiTeamListItemV1 } from './models/ApiTeamListItemV1';
|
|
8
9
|
export type { AuthError } from './models/AuthError';
|
|
9
10
|
export type { CiConfigResponseV1 } from './models/CiConfigResponseV1';
|
|
10
11
|
export type { CreateMockRequestV1 } from './models/CreateMockRequestV1';
|
|
@@ -24,8 +25,10 @@ export type { SpectralRulesetResponseV1 } from './models/SpectralRulesetResponse
|
|
|
24
25
|
export type { SpecVersionListItemV1 } from './models/SpecVersionListItemV1';
|
|
25
26
|
export type { StatusResponseV1 } from './models/StatusResponseV1';
|
|
26
27
|
export type { SyncStatusResponseV1 } from './models/SyncStatusResponseV1';
|
|
28
|
+
export type { TeamCreateRequestV1 } from './models/TeamCreateRequestV1';
|
|
27
29
|
export type { TeamPublishRequestV1 } from './models/TeamPublishRequestV1';
|
|
28
30
|
export type { TeamPublishResponseV1 } from './models/TeamPublishResponseV1';
|
|
31
|
+
export type { TeamV1 } from './models/TeamV1';
|
|
29
32
|
export type { VersionDiffResponseV1 } from './models/VersionDiffResponseV1';
|
|
30
33
|
export type { Visibility } from './models/Visibility';
|
|
31
34
|
export type { VisibilityUpdateRequestV1 } from './models/VisibilityUpdateRequestV1';
|
|
@@ -36,4 +39,5 @@ export { PublicOrgsService } from './services/PublicOrgsService';
|
|
|
36
39
|
export { PublicRegistryService } from './services/PublicRegistryService';
|
|
37
40
|
export { PublicSpecsService } from './services/PublicSpecsService';
|
|
38
41
|
export { PublicSpectralService } from './services/PublicSpectralService';
|
|
42
|
+
export { PublicTeamsService } from './services/PublicTeamsService';
|
|
39
43
|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AACxE,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC"}
|
package/dist/generated/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublicSpectralService = exports.PublicSpecsService = exports.PublicRegistryService = exports.PublicOrgsService = exports.PublicMocksService = exports.PublicCiService = exports.PublicApisService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
3
|
+
exports.PublicTeamsService = exports.PublicSpectralService = exports.PublicSpecsService = exports.PublicRegistryService = exports.PublicOrgsService = exports.PublicMocksService = exports.PublicCiService = exports.PublicApisService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
4
4
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
5
|
/* istanbul ignore file */
|
|
6
6
|
/* tslint:disable */
|
|
@@ -26,4 +26,6 @@ var PublicSpecsService_1 = require("./services/PublicSpecsService");
|
|
|
26
26
|
Object.defineProperty(exports, "PublicSpecsService", { enumerable: true, get: function () { return PublicSpecsService_1.PublicSpecsService; } });
|
|
27
27
|
var PublicSpectralService_1 = require("./services/PublicSpectralService");
|
|
28
28
|
Object.defineProperty(exports, "PublicSpectralService", { enumerable: true, get: function () { return PublicSpectralService_1.PublicSpectralService; } });
|
|
29
|
+
var PublicTeamsService_1 = require("./services/PublicTeamsService");
|
|
30
|
+
Object.defineProperty(exports, "PublicTeamsService", { enumerable: true, get: function () { return PublicTeamsService_1.PublicTeamsService; } });
|
|
29
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,8DAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,gHAAA,WAAW,OAAA;AACvC,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,8DAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,gHAAA,WAAW,OAAA;AACvC,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAkChB,kEAAiE;AAAxD,sHAAA,iBAAiB,OAAA;AAC1B,8DAA6D;AAApD,kHAAA,eAAe,OAAA;AACxB,oEAAmE;AAA1D,wHAAA,kBAAkB,OAAA;AAC3B,kEAAiE;AAAxD,sHAAA,iBAAiB,OAAA;AAC1B,0EAAyE;AAAhE,8HAAA,qBAAqB,OAAA;AAC9B,oEAAmE;AAA1D,wHAAA,kBAAkB,OAAA;AAC3B,0EAAyE;AAAhE,8HAAA,qBAAqB,OAAA;AAC9B,oEAAmE;AAA1D,wHAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A team-scoped private API in the calling org. Distinct from
|
|
3
|
+
* `PublicApiListItem`, which describes a record in the public registry.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export type ApiTeamListItemV1 = {
|
|
7
|
+
apiId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Kebab-case slug used in CLI commands and registry URLs.
|
|
10
|
+
*/
|
|
11
|
+
apiName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Latest published `info.version` from the OpenAPI spec.
|
|
14
|
+
*/
|
|
15
|
+
version?: string | null;
|
|
16
|
+
description?: string | null;
|
|
17
|
+
teamId?: string | null;
|
|
18
|
+
teamName?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* ISO local date-time of the last update.
|
|
21
|
+
*/
|
|
22
|
+
updatedAt?: string | null;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ApiTeamListItemV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiTeamListItemV1.d.ts","sourceRoot":"","sources":["../../../src/generated/models/ApiTeamListItemV1.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiTeamListItemV1.js","sourceRoot":"","sources":["../../../src/generated/models/ApiTeamListItemV1.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamCreateRequestV1.d.ts","sourceRoot":"","sources":["../../../src/generated/models/TeamCreateRequestV1.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamCreateRequestV1.js","sourceRoot":"","sources":["../../../src/generated/models/TeamCreateRequestV1.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamV1.d.ts","sourceRoot":"","sources":["../../../src/generated/models/TeamV1.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamV1.js","sourceRoot":"","sources":["../../../src/generated/models/TeamV1.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ApiTeamListItemV1 } from '../models/ApiTeamListItemV1';
|
|
1
2
|
import type { PublicApiListItem } from '../models/PublicApiListItem';
|
|
2
3
|
import type { PublicApiMetaV1 } from '../models/PublicApiMetaV1';
|
|
3
4
|
import type { PublicPublishRequestV1 } from '../models/PublicPublishRequestV1';
|
|
@@ -26,6 +27,18 @@ export declare class PublicApisService {
|
|
|
26
27
|
static publishPublicApi({ requestBody, }: {
|
|
27
28
|
requestBody: PublicPublishRequestV1;
|
|
28
29
|
}): CancelablePromise<PublicPublishResponseV1>;
|
|
30
|
+
/**
|
|
31
|
+
* List team-scoped private APIs for the calling org
|
|
32
|
+
* Returns every non-deleted team-scoped API in the calling token's org, regardless
|
|
33
|
+
* of which team owns it. This is what the `spec0 api list` CLI command targets.
|
|
34
|
+
*
|
|
35
|
+
* Distinct from `GET /api/v1/public/apis`, which lists records in the customer-facing
|
|
36
|
+
* public registry — different table, different lifecycle.
|
|
37
|
+
*
|
|
38
|
+
* @returns ApiTeamListItemV1 Team APIs the calling org owns
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static listTeamApis(): CancelablePromise<Array<ApiTeamListItemV1>>;
|
|
29
42
|
/**
|
|
30
43
|
* Publish or update a team-scoped private API
|
|
31
44
|
* Publishes a design-time OpenAPI spec to a team-scoped private API. Distinct from
|
|
@@ -43,6 +56,21 @@ export declare class PublicApisService {
|
|
|
43
56
|
static publishTeamApi({ requestBody, }: {
|
|
44
57
|
requestBody: TeamPublishRequestV1;
|
|
45
58
|
}): CancelablePromise<TeamPublishResponseV1>;
|
|
59
|
+
/**
|
|
60
|
+
* Soft-delete a team-scoped private API
|
|
61
|
+
* Marks the team-scoped API as deleted (`deleted_at` is set). The row is retained for
|
|
62
|
+
* audit; subsequent CLI lookups by name or id treat the API as non-existent. This is
|
|
63
|
+
* what the `spec0 api delete` lifecycle command targets.
|
|
64
|
+
*
|
|
65
|
+
* Distinct from `DELETE /api/v1/public/apis/{publicApiId}`, which soft-deletes a record
|
|
66
|
+
* in the customer-facing public registry — different table, different lifecycle.
|
|
67
|
+
*
|
|
68
|
+
* @returns void
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static deleteTeamApi({ apiId, }: {
|
|
72
|
+
apiId: string;
|
|
73
|
+
}): CancelablePromise<void>;
|
|
46
74
|
/**
|
|
47
75
|
* Update visibility for a public API
|
|
48
76
|
* @returns PublicApiMetaV1 Updated visibility
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicApisService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicApisService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,iBAAiB;IAC5B;;;;;OAKG;WACW,cAAc,IAAI,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAU3E;;;;;;;;OAQG;WACW,gBAAgB,CAAC,EAC7B,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,sBAAsB,CAAC;KACrC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;IAe9C;;;;;;;;;;;;;OAaG;WACW,cAAc,CAAC,EAC3B,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,oBAAoB,CAAC;KACnC,GAAG,iBAAiB,CAAC,qBAAqB,CAAC;IAgB5C;;;;OAIG;WACW,yBAAyB,CAAC,EACtC,WAAW,EACX,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,MAAM,C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Z,EAAE;QACD,WAAW,EAAE,oBAAoB,CAAC;KACnC,GAAG,iBAAiB,CAAC,qBAAqB,CAAC;IAgB5C;;;;;;;;;;;OAWG;WACW,aAAa,CAAC,EAC1B,KAAK,GACN,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAc3B;;;;OAIG;WACW,yBAAyB,CAAC,EACtC,WAAW,EACX,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,yBAAyB,CAAC;KACxC,GAAG,iBAAiB,CAAC,eAAe,CAAC;IAgBtC;;;;;;;OAOG;WACW,eAAe,CAAC,EAC5B,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,iBAAiB,CAAC,IAAI,CAAC;CAc5B"}
|
|
@@ -44,6 +44,27 @@ class PublicApisService {
|
|
|
44
44
|
},
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* List team-scoped private APIs for the calling org
|
|
49
|
+
* Returns every non-deleted team-scoped API in the calling token's org, regardless
|
|
50
|
+
* of which team owns it. This is what the `spec0 api list` CLI command targets.
|
|
51
|
+
*
|
|
52
|
+
* Distinct from `GET /api/v1/public/apis`, which lists records in the customer-facing
|
|
53
|
+
* public registry — different table, different lifecycle.
|
|
54
|
+
*
|
|
55
|
+
* @returns ApiTeamListItemV1 Team APIs the calling org owns
|
|
56
|
+
* @throws ApiError
|
|
57
|
+
*/
|
|
58
|
+
static listTeamApis() {
|
|
59
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
60
|
+
method: 'GET',
|
|
61
|
+
url: '/api/v1/public/apis/team',
|
|
62
|
+
errors: {
|
|
63
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
64
|
+
403: `Token does not carry the required scope`,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
47
68
|
/**
|
|
48
69
|
* Publish or update a team-scoped private API
|
|
49
70
|
* Publishes a design-time OpenAPI spec to a team-scoped private API. Distinct from
|
|
@@ -74,6 +95,32 @@ class PublicApisService {
|
|
|
74
95
|
},
|
|
75
96
|
});
|
|
76
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Soft-delete a team-scoped private API
|
|
100
|
+
* Marks the team-scoped API as deleted (`deleted_at` is set). The row is retained for
|
|
101
|
+
* audit; subsequent CLI lookups by name or id treat the API as non-existent. This is
|
|
102
|
+
* what the `spec0 api delete` lifecycle command targets.
|
|
103
|
+
*
|
|
104
|
+
* Distinct from `DELETE /api/v1/public/apis/{publicApiId}`, which soft-deletes a record
|
|
105
|
+
* in the customer-facing public registry — different table, different lifecycle.
|
|
106
|
+
*
|
|
107
|
+
* @returns void
|
|
108
|
+
* @throws ApiError
|
|
109
|
+
*/
|
|
110
|
+
static deleteTeamApi({ apiId, }) {
|
|
111
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
112
|
+
method: 'DELETE',
|
|
113
|
+
url: '/api/v1/public/apis/team/{apiId}',
|
|
114
|
+
path: {
|
|
115
|
+
'apiId': apiId,
|
|
116
|
+
},
|
|
117
|
+
errors: {
|
|
118
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
119
|
+
403: `Token does not carry the required scope`,
|
|
120
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
}
|
|
77
124
|
/**
|
|
78
125
|
* Update visibility for a public API
|
|
79
126
|
* @returns PublicApiMetaV1 Updated visibility
|
|
@@ -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":";;;AAaA,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,iBAAiB;IAC5B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,5 +20,17 @@ export declare class PublicMocksService {
|
|
|
20
20
|
static createPublicMock({ requestBody, }: {
|
|
21
21
|
requestBody: CreateMockRequestV1;
|
|
22
22
|
}): CancelablePromise<CreateMockResponseV1>;
|
|
23
|
+
/**
|
|
24
|
+
* Delete a mock server owned by the calling org
|
|
25
|
+
* Hard-deletes the mock server and removes its association with the parent API.
|
|
26
|
+
* Cross-org deletes return 404 (not 403) so the existence of the mock is not
|
|
27
|
+
* leaked. This is what the `spec0 mock delete` lifecycle command targets.
|
|
28
|
+
*
|
|
29
|
+
* @returns void
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
static deletePublicMock({ mockServerId, }: {
|
|
33
|
+
mockServerId: string;
|
|
34
|
+
}): CancelablePromise<void>;
|
|
23
35
|
}
|
|
24
36
|
//# sourceMappingURL=PublicMocksService.d.ts.map
|
|
@@ -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,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,kBAAkB;IAC7B;;;;OAIG;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;
|
|
1
|
+
{"version":3,"file":"PublicMocksService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicMocksService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,kBAAkB;IAC7B;;;;OAIG;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"}
|
|
@@ -41,6 +41,29 @@ class PublicMocksService {
|
|
|
41
41
|
},
|
|
42
42
|
});
|
|
43
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
|
+
}
|
|
44
67
|
}
|
|
45
68
|
exports.PublicMocksService = PublicMocksService;
|
|
46
69
|
//# sourceMappingURL=PublicMocksService.js.map
|
|
@@ -1 +1 @@
|
|
|
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;CACF;
|
|
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,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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
6
|
"main": "./dist/index.js",
|
package/src/generated/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ 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';
|
|
14
15
|
export type { CiConfigResponseV1 } from './models/CiConfigResponseV1';
|
|
15
16
|
export type { CreateMockRequestV1 } from './models/CreateMockRequestV1';
|
|
@@ -29,8 +30,10 @@ export type { SpectralRulesetResponseV1 } from './models/SpectralRulesetResponse
|
|
|
29
30
|
export type { SpecVersionListItemV1 } from './models/SpecVersionListItemV1';
|
|
30
31
|
export type { StatusResponseV1 } from './models/StatusResponseV1';
|
|
31
32
|
export type { SyncStatusResponseV1 } from './models/SyncStatusResponseV1';
|
|
33
|
+
export type { TeamCreateRequestV1 } from './models/TeamCreateRequestV1';
|
|
32
34
|
export type { TeamPublishRequestV1 } from './models/TeamPublishRequestV1';
|
|
33
35
|
export type { TeamPublishResponseV1 } from './models/TeamPublishResponseV1';
|
|
36
|
+
export type { TeamV1 } from './models/TeamV1';
|
|
34
37
|
export type { VersionDiffResponseV1 } from './models/VersionDiffResponseV1';
|
|
35
38
|
export type { Visibility } from './models/Visibility';
|
|
36
39
|
export type { VisibilityUpdateRequestV1 } from './models/VisibilityUpdateRequestV1';
|
|
@@ -42,3 +45,4 @@ export { PublicOrgsService } from './services/PublicOrgsService';
|
|
|
42
45
|
export { PublicRegistryService } from './services/PublicRegistryService';
|
|
43
46
|
export { PublicSpecsService } from './services/PublicSpecsService';
|
|
44
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,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,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* A team in the calling org.
|
|
7
|
+
*/
|
|
8
|
+
export type TeamV1 = {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
orgId?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { ApiTeamListItemV1 } from '../models/ApiTeamListItemV1';
|
|
5
6
|
import type { PublicApiListItem } from '../models/PublicApiListItem';
|
|
6
7
|
import type { PublicApiMetaV1 } from '../models/PublicApiMetaV1';
|
|
7
8
|
import type { PublicPublishRequestV1 } from '../models/PublicPublishRequestV1';
|
|
@@ -57,6 +58,27 @@ export class PublicApisService {
|
|
|
57
58
|
},
|
|
58
59
|
});
|
|
59
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* List team-scoped private APIs for the calling org
|
|
63
|
+
* Returns every non-deleted team-scoped API in the calling token's org, regardless
|
|
64
|
+
* of which team owns it. This is what the `spec0 api list` CLI command targets.
|
|
65
|
+
*
|
|
66
|
+
* Distinct from `GET /api/v1/public/apis`, which lists records in the customer-facing
|
|
67
|
+
* public registry — different table, different lifecycle.
|
|
68
|
+
*
|
|
69
|
+
* @returns ApiTeamListItemV1 Team APIs the calling org owns
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
public static listTeamApis(): CancelablePromise<Array<ApiTeamListItemV1>> {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/api/v1/public/apis/team',
|
|
76
|
+
errors: {
|
|
77
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
78
|
+
403: `Token does not carry the required scope`,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
60
82
|
/**
|
|
61
83
|
* Publish or update a team-scoped private API
|
|
62
84
|
* Publishes a design-time OpenAPI spec to a team-scoped private API. Distinct from
|
|
@@ -91,6 +113,36 @@ export class PublicApisService {
|
|
|
91
113
|
},
|
|
92
114
|
});
|
|
93
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Soft-delete a team-scoped private API
|
|
118
|
+
* Marks the team-scoped API as deleted (`deleted_at` is set). The row is retained for
|
|
119
|
+
* audit; subsequent CLI lookups by name or id treat the API as non-existent. This is
|
|
120
|
+
* what the `spec0 api delete` lifecycle command targets.
|
|
121
|
+
*
|
|
122
|
+
* Distinct from `DELETE /api/v1/public/apis/{publicApiId}`, which soft-deletes a record
|
|
123
|
+
* in the customer-facing public registry — different table, different lifecycle.
|
|
124
|
+
*
|
|
125
|
+
* @returns void
|
|
126
|
+
* @throws ApiError
|
|
127
|
+
*/
|
|
128
|
+
public static deleteTeamApi({
|
|
129
|
+
apiId,
|
|
130
|
+
}: {
|
|
131
|
+
apiId: string,
|
|
132
|
+
}): CancelablePromise<void> {
|
|
133
|
+
return __request(OpenAPI, {
|
|
134
|
+
method: 'DELETE',
|
|
135
|
+
url: '/api/v1/public/apis/team/{apiId}',
|
|
136
|
+
path: {
|
|
137
|
+
'apiId': apiId,
|
|
138
|
+
},
|
|
139
|
+
errors: {
|
|
140
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
141
|
+
403: `Token does not carry the required scope`,
|
|
142
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
}
|
|
94
146
|
/**
|
|
95
147
|
* Update visibility for a public API
|
|
96
148
|
* @returns PublicApiMetaV1 Updated visibility
|
|
@@ -50,4 +50,31 @@ export class PublicMocksService {
|
|
|
50
50
|
},
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Delete a mock server owned by the calling org
|
|
55
|
+
* Hard-deletes the mock server and removes its association with the parent API.
|
|
56
|
+
* Cross-org deletes return 404 (not 403) so the existence of the mock is not
|
|
57
|
+
* leaked. This is what the `spec0 mock delete` lifecycle command targets.
|
|
58
|
+
*
|
|
59
|
+
* @returns void
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
public static deletePublicMock({
|
|
63
|
+
mockServerId,
|
|
64
|
+
}: {
|
|
65
|
+
mockServerId: string,
|
|
66
|
+
}): CancelablePromise<void> {
|
|
67
|
+
return __request(OpenAPI, {
|
|
68
|
+
method: 'DELETE',
|
|
69
|
+
url: '/api/v1/public/mocks/{mockServerId}',
|
|
70
|
+
path: {
|
|
71
|
+
'mockServerId': mockServerId,
|
|
72
|
+
},
|
|
73
|
+
errors: {
|
|
74
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
75
|
+
403: `Token does not carry the required scope`,
|
|
76
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
}
|
|
53
80
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { TeamCreateRequestV1 } from '../models/TeamCreateRequestV1';
|
|
6
|
+
import type { TeamV1 } from '../models/TeamV1';
|
|
7
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
9
|
+
import { request as __request } from '../core/request';
|
|
10
|
+
export class PublicTeamsService {
|
|
11
|
+
/**
|
|
12
|
+
* List teams for the calling org
|
|
13
|
+
* @returns TeamV1 Teams in the calling org
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
public static listTeams(): CancelablePromise<Array<TeamV1>> {
|
|
17
|
+
return __request(OpenAPI, {
|
|
18
|
+
method: 'GET',
|
|
19
|
+
url: '/api/v1/public/teams',
|
|
20
|
+
errors: {
|
|
21
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
22
|
+
403: `Token does not carry the required scope`,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Create a team in the calling org
|
|
28
|
+
* Creates a team owned by the calling token's org. The team starts with no
|
|
29
|
+
* members; member management is out of scope for this V1 surface.
|
|
30
|
+
*
|
|
31
|
+
* @returns TeamV1 Created team
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
public static createTeam({
|
|
35
|
+
requestBody,
|
|
36
|
+
}: {
|
|
37
|
+
requestBody: TeamCreateRequestV1,
|
|
38
|
+
}): CancelablePromise<TeamV1> {
|
|
39
|
+
return __request(OpenAPI, {
|
|
40
|
+
method: 'POST',
|
|
41
|
+
url: '/api/v1/public/teams',
|
|
42
|
+
body: requestBody,
|
|
43
|
+
mediaType: 'application/json',
|
|
44
|
+
errors: {
|
|
45
|
+
400: `Bad request`,
|
|
46
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
47
|
+
403: `Token does not carry the required scope`,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Delete a team owned by the calling org
|
|
53
|
+
* Deletes the team. The call fails with 409 if the team still has APIs or mock
|
|
54
|
+
* servers — the caller must remove those first. Cross-org deletes return 404 so
|
|
55
|
+
* the existence of the team is not leaked.
|
|
56
|
+
*
|
|
57
|
+
* @returns void
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
public static deleteTeam({
|
|
61
|
+
teamId,
|
|
62
|
+
}: {
|
|
63
|
+
teamId: string,
|
|
64
|
+
}): CancelablePromise<void> {
|
|
65
|
+
return __request(OpenAPI, {
|
|
66
|
+
method: 'DELETE',
|
|
67
|
+
url: '/api/v1/public/teams/{teamId}',
|
|
68
|
+
path: {
|
|
69
|
+
'teamId': teamId,
|
|
70
|
+
},
|
|
71
|
+
errors: {
|
|
72
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
73
|
+
403: `Token does not carry the required scope`,
|
|
74
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
75
|
+
409: `Team still has child resources (APIs or mock servers)`,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|