@spec0/sdk-public-platform 1.27.1 → 1.28.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/README.md +1 -1
- package/dist/generated/core/OpenAPI.js +1 -1
- package/dist/generated/services/PublicApisService.d.ts +22 -1
- package/dist/generated/services/PublicApisService.d.ts.map +1 -1
- package/dist/generated/services/PublicApisService.js +12 -1
- package/dist/generated/services/PublicApisService.js.map +1 -1
- package/package.json +2 -2
- package/src/generated/core/OpenAPI.ts +1 -1
- package/src/generated/services/PublicApisService.ts +27 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ npm install @spec0/sdk-public-platform
|
|
|
17
17
|
```ts
|
|
18
18
|
import { OpenAPI, PublicApisService } from "@spec0/sdk-public-platform";
|
|
19
19
|
|
|
20
|
-
OpenAPI.BASE = "https://
|
|
20
|
+
OpenAPI.BASE = "https://api.spec0.io";
|
|
21
21
|
OpenAPI.TOKEN = process.env.SPEC0_TOKEN; // PAT or SAT
|
|
22
22
|
|
|
23
23
|
const apis = await PublicApisService.listPublicApis();
|
|
@@ -39,13 +39,34 @@ export declare class PublicApisService {
|
|
|
39
39
|
* Returns every non-deleted team-scoped API in the calling token's org, regardless
|
|
40
40
|
* of which team owns it. This is what the `spec0 api list` CLI command targets.
|
|
41
41
|
*
|
|
42
|
+
* Reads are org-wide on purpose: a team's token can see what else the organisation
|
|
43
|
+
* publishes, which is the point of an internal API catalogue. Writing is not — a
|
|
44
|
+
* publish or delete still has to come from a token in the owning team, with the
|
|
45
|
+
* matching scope.
|
|
46
|
+
*
|
|
47
|
+
* Pass `teamId` to narrow the list to one team. Omit it and you get the whole org,
|
|
48
|
+
* as before.
|
|
49
|
+
*
|
|
42
50
|
* Distinct from `GET /api/v1/public/apis`, which lists records in the customer-facing
|
|
43
51
|
* public registry — different table, different lifecycle.
|
|
44
52
|
*
|
|
45
53
|
* @returns ApiTeamListItemV1 Team APIs the calling org owns
|
|
46
54
|
* @throws ApiError
|
|
47
55
|
*/
|
|
48
|
-
static listTeamApis(
|
|
56
|
+
static listTeamApis({ teamId, }?: {
|
|
57
|
+
/**
|
|
58
|
+
* Return only the APIs owned by this team. Accepts the team's UUID or its name,
|
|
59
|
+
* matched case-insensitively, so a caller who knows the team as "Payments Team"
|
|
60
|
+
* does not have to look up its id first.
|
|
61
|
+
*
|
|
62
|
+
* A value that names no team in the calling organisation is a 404, and so is a
|
|
63
|
+
* team belonging to another organisation — the same answer for both, so the
|
|
64
|
+
* parameter cannot be used to find out which teams other orgs have. A team that
|
|
65
|
+
* exists and owns nothing is an empty array.
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
teamId?: string;
|
|
69
|
+
}): CancelablePromise<Array<ApiTeamListItemV1>>;
|
|
49
70
|
/**
|
|
50
71
|
* Publish or update a team-scoped private API
|
|
51
72
|
* Publishes a design-time OpenAPI spec to a team-scoped private API. Distinct from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicApisService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicApisService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO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E;QACD,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,iBAAiB,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAcnD;;;;;;;;OAQG;WACW,mBAAmB,CAAC,EAChC,KAAK,EACL,GAAG,GACJ,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAe7B;;;;;;;;;OASG;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"}
|
|
@@ -56,16 +56,27 @@ class PublicApisService {
|
|
|
56
56
|
* Returns every non-deleted team-scoped API in the calling token's org, regardless
|
|
57
57
|
* of which team owns it. This is what the `spec0 api list` CLI command targets.
|
|
58
58
|
*
|
|
59
|
+
* Reads are org-wide on purpose: a team's token can see what else the organisation
|
|
60
|
+
* publishes, which is the point of an internal API catalogue. Writing is not — a
|
|
61
|
+
* publish or delete still has to come from a token in the owning team, with the
|
|
62
|
+
* matching scope.
|
|
63
|
+
*
|
|
64
|
+
* Pass `teamId` to narrow the list to one team. Omit it and you get the whole org,
|
|
65
|
+
* as before.
|
|
66
|
+
*
|
|
59
67
|
* Distinct from `GET /api/v1/public/apis`, which lists records in the customer-facing
|
|
60
68
|
* public registry — different table, different lifecycle.
|
|
61
69
|
*
|
|
62
70
|
* @returns ApiTeamListItemV1 Team APIs the calling org owns
|
|
63
71
|
* @throws ApiError
|
|
64
72
|
*/
|
|
65
|
-
static listTeamApis() {
|
|
73
|
+
static listTeamApis({ teamId, } = {}) {
|
|
66
74
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
67
75
|
method: 'GET',
|
|
68
76
|
url: '/api/v1/public/apis/team',
|
|
77
|
+
query: {
|
|
78
|
+
'teamId': teamId,
|
|
79
|
+
},
|
|
69
80
|
errors: {
|
|
70
81
|
401: `Missing, invalid, expired, or revoked token`,
|
|
71
82
|
403: `Token does not carry the required scope`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicApisService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicApisService.ts"],"names":[],"mappings":";;;AAgBA,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;;;;;;;;;;;;OAYG;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;;;SAGJ;gBACD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IACD
|
|
1
|
+
{"version":3,"file":"PublicApisService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicApisService.ts"],"names":[],"mappings":";;;AAgBA,mDAA6C;AAC7C,mDAA0D;AAC1D,MAAa,iBAAiB;IAC5B;;;;;OAKG;IACI,MAAM,CAAC,cAA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BAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,8CAA8C;YACnD,IAAI,EAAE;gBACJ,aAAa,EAAE,WAAW;aAC3B;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;OAOG;IACI,MAAM,CAAC,eAAe,CAAC,EAC5B,WAAW,GAGZ;QACC,OAAO,IAAA,oBAAS,EAAC,oBAAO,EAAE;YACxB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,mCAAmC;YACxC,IAAI,EAAE;gBACJ,aAAa,EAAE,WAAW;aAC3B;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,6CAA6C;gBAClD,GAAG,EAAE,yCAAyC;gBAC9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;CACF;AA3ZD,8CA2ZC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spec0/sdk-public-platform",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "TypeScript SDK for Spec0's public API surface (https://
|
|
3
|
+
"version": "1.28.0",
|
|
4
|
+
"description": "TypeScript SDK for Spec0's public API surface (https://api.spec0.io). Generated from the OpenAPI spec published at spec0/spec0-platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -73,16 +73,42 @@ export class PublicApisService {
|
|
|
73
73
|
* Returns every non-deleted team-scoped API in the calling token's org, regardless
|
|
74
74
|
* of which team owns it. This is what the `spec0 api list` CLI command targets.
|
|
75
75
|
*
|
|
76
|
+
* Reads are org-wide on purpose: a team's token can see what else the organisation
|
|
77
|
+
* publishes, which is the point of an internal API catalogue. Writing is not — a
|
|
78
|
+
* publish or delete still has to come from a token in the owning team, with the
|
|
79
|
+
* matching scope.
|
|
80
|
+
*
|
|
81
|
+
* Pass `teamId` to narrow the list to one team. Omit it and you get the whole org,
|
|
82
|
+
* as before.
|
|
83
|
+
*
|
|
76
84
|
* Distinct from `GET /api/v1/public/apis`, which lists records in the customer-facing
|
|
77
85
|
* public registry — different table, different lifecycle.
|
|
78
86
|
*
|
|
79
87
|
* @returns ApiTeamListItemV1 Team APIs the calling org owns
|
|
80
88
|
* @throws ApiError
|
|
81
89
|
*/
|
|
82
|
-
public static listTeamApis(
|
|
90
|
+
public static listTeamApis({
|
|
91
|
+
teamId,
|
|
92
|
+
}: {
|
|
93
|
+
/**
|
|
94
|
+
* Return only the APIs owned by this team. Accepts the team's UUID or its name,
|
|
95
|
+
* matched case-insensitively, so a caller who knows the team as "Payments Team"
|
|
96
|
+
* does not have to look up its id first.
|
|
97
|
+
*
|
|
98
|
+
* A value that names no team in the calling organisation is a 404, and so is a
|
|
99
|
+
* team belonging to another organisation — the same answer for both, so the
|
|
100
|
+
* parameter cannot be used to find out which teams other orgs have. A team that
|
|
101
|
+
* exists and owns nothing is an empty array.
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
teamId?: string,
|
|
105
|
+
} = {}): CancelablePromise<Array<ApiTeamListItemV1>> {
|
|
83
106
|
return __request(OpenAPI, {
|
|
84
107
|
method: 'GET',
|
|
85
108
|
url: '/api/v1/public/apis/team',
|
|
109
|
+
query: {
|
|
110
|
+
'teamId': teamId,
|
|
111
|
+
},
|
|
86
112
|
errors: {
|
|
87
113
|
401: `Missing, invalid, expired, or revoked token`,
|
|
88
114
|
403: `Token does not carry the required scope`,
|