@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.
Files changed (107) hide show
  1. package/dist/generated/core/ApiError.js +5 -1
  2. package/dist/generated/core/ApiError.js.map +1 -1
  3. package/dist/generated/core/ApiRequestOptions.js +2 -1
  4. package/dist/generated/core/ApiResult.js +2 -1
  5. package/dist/generated/core/CancelablePromise.js +7 -2
  6. package/dist/generated/core/CancelablePromise.js.map +1 -1
  7. package/dist/generated/core/OpenAPI.js +4 -1
  8. package/dist/generated/core/OpenAPI.js.map +1 -1
  9. package/dist/generated/core/request.js +65 -46
  10. package/dist/generated/core/request.js.map +1 -1
  11. package/dist/generated/index.d.ts +10 -0
  12. package/dist/generated/index.d.ts.map +1 -1
  13. package/dist/generated/index.js +26 -8
  14. package/dist/generated/index.js.map +1 -1
  15. package/dist/generated/models/AiSearchRequestV1.js +2 -1
  16. package/dist/generated/models/AiSearchResponseV1.js +2 -1
  17. package/dist/generated/models/ApiNamePath.js +2 -1
  18. package/dist/generated/models/ApiTeamListItemV1.d.ts +24 -0
  19. package/dist/generated/models/ApiTeamListItemV1.d.ts.map +1 -0
  20. package/dist/generated/models/ApiTeamListItemV1.js +3 -0
  21. package/dist/generated/models/ApiTeamListItemV1.js.map +1 -0
  22. package/dist/generated/models/AuthError.js +2 -1
  23. package/dist/generated/models/CiConfigResponseV1.d.ts +11 -0
  24. package/dist/generated/models/CiConfigResponseV1.d.ts.map +1 -0
  25. package/dist/generated/models/CiConfigResponseV1.js +3 -0
  26. package/dist/generated/models/CiConfigResponseV1.js.map +1 -0
  27. package/dist/generated/models/CreateMockRequestV1.js +2 -1
  28. package/dist/generated/models/CreateMockResponseV1.js +2 -1
  29. package/dist/generated/models/MockItemV1.js +2 -1
  30. package/dist/generated/models/OrgSlugPath.js +2 -1
  31. package/dist/generated/models/OrgSummaryResponseV1.d.ts +13 -0
  32. package/dist/generated/models/OrgSummaryResponseV1.d.ts.map +1 -0
  33. package/dist/generated/models/OrgSummaryResponseV1.js +3 -0
  34. package/dist/generated/models/OrgSummaryResponseV1.js.map +1 -0
  35. package/dist/generated/models/Problem.js +2 -1
  36. package/dist/generated/models/PublicApiIdPath.js +2 -1
  37. package/dist/generated/models/PublicApiListItem.js +2 -1
  38. package/dist/generated/models/PublicApiMetaV1.js +2 -1
  39. package/dist/generated/models/PublicPublishRequestV1.js +2 -1
  40. package/dist/generated/models/PublicPublishResponseV1.js +2 -1
  41. package/dist/generated/models/PutSpectralRulesetRequestV1.js +2 -1
  42. package/dist/generated/models/SpecDiffResponseV1.js +2 -1
  43. package/dist/generated/models/SpecVersionListItemV1.js +2 -1
  44. package/dist/generated/models/SpectralRulesetResponseV1.js +2 -1
  45. package/dist/generated/models/StatusResponseV1.js +2 -1
  46. package/dist/generated/models/SyncStatusResponseV1.js +2 -1
  47. package/dist/generated/models/TeamCreateRequestV1.d.ts +8 -0
  48. package/dist/generated/models/TeamCreateRequestV1.d.ts.map +1 -0
  49. package/dist/generated/models/TeamCreateRequestV1.js +3 -0
  50. package/dist/generated/models/TeamCreateRequestV1.js.map +1 -0
  51. package/dist/generated/models/TeamPublishRequestV1.d.ts +53 -0
  52. package/dist/generated/models/TeamPublishRequestV1.d.ts.map +1 -0
  53. package/dist/generated/models/TeamPublishRequestV1.js +3 -0
  54. package/dist/generated/models/TeamPublishRequestV1.js.map +1 -0
  55. package/dist/generated/models/TeamPublishResponseV1.d.ts +30 -0
  56. package/dist/generated/models/TeamPublishResponseV1.d.ts.map +1 -0
  57. package/dist/generated/models/TeamPublishResponseV1.js +3 -0
  58. package/dist/generated/models/TeamPublishResponseV1.js.map +1 -0
  59. package/dist/generated/models/TeamV1.d.ts +10 -0
  60. package/dist/generated/models/TeamV1.d.ts.map +1 -0
  61. package/dist/generated/models/TeamV1.js +3 -0
  62. package/dist/generated/models/TeamV1.js.map +1 -0
  63. package/dist/generated/models/VersionDiffResponseV1.js +2 -1
  64. package/dist/generated/models/Visibility.js +2 -1
  65. package/dist/generated/models/VisibilityUpdateRequestV1.js +2 -1
  66. package/dist/generated/services/PublicApisService.d.ts +47 -0
  67. package/dist/generated/services/PublicApisService.d.ts.map +1 -1
  68. package/dist/generated/services/PublicApisService.js +88 -7
  69. package/dist/generated/services/PublicApisService.js.map +1 -1
  70. package/dist/generated/services/PublicCiService.d.ts +21 -0
  71. package/dist/generated/services/PublicCiService.d.ts.map +1 -0
  72. package/dist/generated/services/PublicCiService.js +33 -0
  73. package/dist/generated/services/PublicCiService.js.map +1 -0
  74. package/dist/generated/services/PublicMocksService.d.ts +12 -0
  75. package/dist/generated/services/PublicMocksService.d.ts.map +1 -1
  76. package/dist/generated/services/PublicMocksService.js +32 -5
  77. package/dist/generated/services/PublicMocksService.js.map +1 -1
  78. package/dist/generated/services/PublicOrgsService.d.ts +14 -0
  79. package/dist/generated/services/PublicOrgsService.d.ts.map +1 -0
  80. package/dist/generated/services/PublicOrgsService.js +27 -0
  81. package/dist/generated/services/PublicOrgsService.js.map +1 -0
  82. package/dist/generated/services/PublicRegistryService.js +11 -7
  83. package/dist/generated/services/PublicRegistryService.js.map +1 -1
  84. package/dist/generated/services/PublicSpecsService.js +10 -6
  85. package/dist/generated/services/PublicSpecsService.js.map +1 -1
  86. package/dist/generated/services/PublicSpectralService.js +9 -5
  87. package/dist/generated/services/PublicSpectralService.js.map +1 -1
  88. package/dist/generated/services/PublicTeamsService.d.ts +35 -0
  89. package/dist/generated/services/PublicTeamsService.d.ts.map +1 -0
  90. package/dist/generated/services/PublicTeamsService.js +69 -0
  91. package/dist/generated/services/PublicTeamsService.js.map +1 -0
  92. package/dist/index.js +17 -1
  93. package/dist/index.js.map +1 -1
  94. package/package.json +2 -4
  95. package/src/generated/index.ts +10 -0
  96. package/src/generated/models/ApiTeamListItemV1.ts +28 -0
  97. package/src/generated/models/CiConfigResponseV1.ts +15 -0
  98. package/src/generated/models/OrgSummaryResponseV1.ts +17 -0
  99. package/src/generated/models/TeamCreateRequestV1.ts +12 -0
  100. package/src/generated/models/TeamPublishRequestV1.ts +57 -0
  101. package/src/generated/models/TeamPublishResponseV1.ts +34 -0
  102. package/src/generated/models/TeamV1.ts +14 -0
  103. package/src/generated/services/PublicApisService.ts +88 -0
  104. package/src/generated/services/PublicCiService.ts +45 -0
  105. package/src/generated/services/PublicMocksService.ts +27 -0
  106. package/src/generated/services/PublicOrgsService.ts +28 -0
  107. package/src/generated/services/PublicTeamsService.ts +79 -0
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=OrgSlugPath.js.map
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Org-level resource counts and current plan.
3
+ */
4
+ export type OrgSummaryResponseV1 = {
5
+ apiCount?: number;
6
+ mockServerCount?: number;
7
+ teamCount?: number;
8
+ /**
9
+ * Current plan id (e.g. `free`, `pro`).
10
+ */
11
+ plan?: string;
12
+ };
13
+ //# sourceMappingURL=OrgSummaryResponseV1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrgSummaryResponseV1.d.ts","sourceRoot":"","sources":["../../../src/generated/models/OrgSummaryResponseV1.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OrgSummaryResponseV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrgSummaryResponseV1.js","sourceRoot":"","sources":["../../../src/generated/models/OrgSummaryResponseV1.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=Problem.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=PublicApiIdPath.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=PublicApiListItem.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=PublicApiMetaV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=PublicPublishRequestV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=PublicPublishResponseV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=PutSpectralRulesetRequestV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=SpecDiffResponseV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=SpecVersionListItemV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=SpectralRulesetResponseV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=StatusResponseV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=SyncStatusResponseV1.js.map
@@ -0,0 +1,8 @@
1
+ export type TeamCreateRequestV1 = {
2
+ /**
3
+ * Team display name. Must be non-blank.
4
+ */
5
+ name: string;
6
+ description?: string | null;
7
+ };
8
+ //# sourceMappingURL=TeamCreateRequestV1.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TeamCreateRequestV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamCreateRequestV1.js","sourceRoot":"","sources":["../../../src/generated/models/TeamCreateRequestV1.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Request body for publishing a team-scoped private API. Mirrors the shape of the
3
+ * legacy `CliPublishRequest` (operationId `publishCliSpec`) consumed by `spec0 push`.
4
+ *
5
+ */
6
+ export type TeamPublishRequestV1 = {
7
+ /**
8
+ * Existing API id. Optional — slug-based upsert by (org, `name`) is preferred.
9
+ *
10
+ */
11
+ apiId?: string;
12
+ /**
13
+ * API name (kebab-case). If omitted, derived from the basename of `specFilePath`
14
+ * (e.g. `api/payment-api.yaml` → `payment-api`).
15
+ *
16
+ */
17
+ name?: string;
18
+ /**
19
+ * Team UUID OR slug. When omitted, the API is placed in the org's
20
+ * "Unassigned APIs" team.
21
+ *
22
+ */
23
+ team?: string;
24
+ /**
25
+ * Semver version to publish (MAJOR.MINOR.PATCH). If omitted, the version is
26
+ * extracted from `info.version` in the spec. Ignored when `semver` is true.
27
+ *
28
+ */
29
+ version?: string;
30
+ /**
31
+ * OpenAPI document content (YAML or JSON).
32
+ */
33
+ openapiSpec: string;
34
+ /**
35
+ * Git commit SHA of the spec file. Used as the primary change detector. If
36
+ * unchanged since last publish, the request is treated as a no-op.
37
+ *
38
+ */
39
+ gitSha?: string;
40
+ githubRepo?: string;
41
+ githubBranch?: string;
42
+ /**
43
+ * Path to the spec file in the repository. Used to derive API name when `name` is omitted.
44
+ */
45
+ specFilePath?: string;
46
+ /**
47
+ * If true, the backend runs oasdiff to classify the change and auto-computes
48
+ * the next semver tag (PATCH / NON_BREAKING / BREAKING).
49
+ *
50
+ */
51
+ semver?: boolean;
52
+ };
53
+ //# sourceMappingURL=TeamPublishRequestV1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamPublishRequestV1.d.ts","sourceRoot":"","sources":["../../../src/generated/models/TeamPublishRequestV1.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TeamPublishRequestV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamPublishRequestV1.js","sourceRoot":"","sources":["../../../src/generated/models/TeamPublishRequestV1.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ export type TeamPublishResponseV1 = {
2
+ apiId?: string;
3
+ specRecordId?: string;
4
+ version?: string;
5
+ /**
6
+ * True if a new API entity was created.
7
+ */
8
+ created?: boolean;
9
+ /**
10
+ * True if a new version snapshot was created.
11
+ */
12
+ versionCreated?: boolean;
13
+ /**
14
+ * True if the gitSha matched the last published SHA.
15
+ */
16
+ noChanges?: boolean;
17
+ /**
18
+ * True when spec changed but `info.version` did not.
19
+ */
20
+ versionUnchanged?: boolean;
21
+ /**
22
+ * Human-readable hint shown when `versionUnchanged` is true.
23
+ */
24
+ versionUnchangedHint?: string;
25
+ apiName?: string;
26
+ teamName?: string;
27
+ orgSlug?: string;
28
+ registryUrl?: string;
29
+ };
30
+ //# sourceMappingURL=TeamPublishResponseV1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamPublishResponseV1.d.ts","sourceRoot":"","sources":["../../../src/generated/models/TeamPublishResponseV1.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TeamPublishResponseV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamPublishResponseV1.js","sourceRoot":"","sources":["../../../src/generated/models/TeamPublishResponseV1.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A team in the calling org.
3
+ */
4
+ export type TeamV1 = {
5
+ id?: string;
6
+ name?: string;
7
+ description?: string | null;
8
+ orgId?: string;
9
+ };
10
+ //# sourceMappingURL=TeamV1.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TeamV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamV1.js","sourceRoot":"","sources":["../../../src/generated/models/TeamV1.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=VersionDiffResponseV1.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=Visibility.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=VisibilityUpdateRequestV1.js.map
@@ -1,7 +1,10 @@
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';
4
5
  import type { PublicPublishResponseV1 } from '../models/PublicPublishResponseV1';
6
+ import type { TeamPublishRequestV1 } from '../models/TeamPublishRequestV1';
7
+ import type { TeamPublishResponseV1 } from '../models/TeamPublishResponseV1';
5
8
  import type { VisibilityUpdateRequestV1 } from '../models/VisibilityUpdateRequestV1';
6
9
  import type { CancelablePromise } from '../core/CancelablePromise';
7
10
  export declare class PublicApisService {
@@ -24,6 +27,50 @@ export declare class PublicApisService {
24
27
  static publishPublicApi({ requestBody, }: {
25
28
  requestBody: PublicPublishRequestV1;
26
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>>;
42
+ /**
43
+ * Publish or update a team-scoped private API
44
+ * Publishes a design-time OpenAPI spec to a team-scoped private API. Distinct from
45
+ * `POST /api/v1/public/apis`, which writes to the org-level customer-facing public
46
+ * registry. This endpoint is what the `spec0 push` CLI command targets.
47
+ *
48
+ * - If `apiId` is provided: update that API's metadata/spec and publish a new version.
49
+ * - If `apiId` is omitted: upsert by (org, `name`); create a new API when none exists.
50
+ * - `team` accepts a UUID or slug; when omitted the API lands in the org's
51
+ * "Unassigned APIs" team.
52
+ *
53
+ * @returns TeamPublishResponseV1 Publish result
54
+ * @throws ApiError
55
+ */
56
+ static publishTeamApi({ requestBody, }: {
57
+ requestBody: TeamPublishRequestV1;
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>;
27
74
  /**
28
75
  * Update visibility for a public API
29
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,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;;;;OAIG;WACW,yBAAyB,CAAC,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;;;;;;;;;;;OAaG;WACW,cAAc,CAAC,EAC3B,WAAW,GACZ,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"}
@@ -1,6 +1,9 @@
1
- import { OpenAPI } from '../core/OpenAPI';
2
- import { request as __request } from '../core/request';
3
- export class PublicApisService {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublicApisService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class PublicApisService {
4
7
  /**
5
8
  * List public APIs for the calling org
6
9
  * Org context derived from the calling token's principal.
@@ -8,7 +11,7 @@ export class PublicApisService {
8
11
  * @throws ApiError
9
12
  */
10
13
  static listPublicApis() {
11
- return __request(OpenAPI, {
14
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
12
15
  method: 'GET',
13
16
  url: '/api/v1/public/apis',
14
17
  errors: {
@@ -27,7 +30,7 @@ export class PublicApisService {
27
30
  * @throws ApiError
28
31
  */
29
32
  static publishPublicApi({ requestBody, }) {
30
- return __request(OpenAPI, {
33
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
31
34
  method: 'POST',
32
35
  url: '/api/v1/public/apis',
33
36
  body: requestBody,
@@ -41,13 +44,90 @@ export class PublicApisService {
41
44
  },
42
45
  });
43
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
+ }
68
+ /**
69
+ * Publish or update a team-scoped private API
70
+ * Publishes a design-time OpenAPI spec to a team-scoped private API. Distinct from
71
+ * `POST /api/v1/public/apis`, which writes to the org-level customer-facing public
72
+ * registry. This endpoint is what the `spec0 push` CLI command targets.
73
+ *
74
+ * - If `apiId` is provided: update that API's metadata/spec and publish a new version.
75
+ * - If `apiId` is omitted: upsert by (org, `name`); create a new API when none exists.
76
+ * - `team` accepts a UUID or slug; when omitted the API lands in the org's
77
+ * "Unassigned APIs" team.
78
+ *
79
+ * @returns TeamPublishResponseV1 Publish result
80
+ * @throws ApiError
81
+ */
82
+ static publishTeamApi({ requestBody, }) {
83
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
84
+ method: 'POST',
85
+ url: '/api/v1/public/apis/team',
86
+ body: requestBody,
87
+ mediaType: 'application/json',
88
+ errors: {
89
+ 400: `Bad request`,
90
+ 401: `Missing, invalid, expired, or revoked token`,
91
+ 403: `Token does not carry the required scope`,
92
+ 404: `Resource not found (or not visible to the calling org)`,
93
+ 409: `Breaking change detected in same major version (when oasdiff is enabled and \`semver\` is not set)`,
94
+ 422: `Validation error (bad semver or API name format)`,
95
+ },
96
+ });
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
+ }
44
124
  /**
45
125
  * Update visibility for a public API
46
126
  * @returns PublicApiMetaV1 Updated visibility
47
127
  * @throws ApiError
48
128
  */
49
129
  static updatePublicApiVisibility({ publicApiId, requestBody, }) {
50
- return __request(OpenAPI, {
130
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
51
131
  method: 'PUT',
52
132
  url: '/api/v1/public/apis/{publicApiId}/visibility',
53
133
  path: {
@@ -71,7 +151,7 @@ export class PublicApisService {
71
151
  * @throws ApiError
72
152
  */
73
153
  static deletePublicApi({ publicApiId, }) {
74
- return __request(OpenAPI, {
154
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
75
155
  method: 'DELETE',
76
156
  url: '/api/v1/public/apis/{publicApiId}',
77
157
  path: {
@@ -85,4 +165,5 @@ export class PublicApisService {
85
165
  });
86
166
  }
87
167
  }
168
+ exports.PublicApisService = PublicApisService;
88
169
  //# sourceMappingURL=PublicApisService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicApisService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicApisService.ts"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,EAC5B,WAAW,GAGZ;QACC,OAAO,SAAS,CAAC,OAAO,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"}
1
+ {"version":3,"file":"PublicApisService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicApisService.ts"],"names":[],"mappings":";;;AAaA,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,iBAAiB;IAC5B;;;;;OAKG;IACI,MAAM,CAAC,cAAc;QAC1B,OAAO,IAAA,iBAAS,EAAC,iBAAO,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,iBAAS,EAAC,iBAAO,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,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,0BAA0B;YAC/B,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C9C,GAAG,EAAE,wDAAwD;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;OAOG;IACI,MAAM,CAAC,eAAe,CAAC,EAC5B,WAAW,GAGZ;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,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;AAvLD,8CAuLC"}
@@ -0,0 +1,21 @@
1
+ import type { CiConfigResponseV1 } from '../models/CiConfigResponseV1';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class PublicCiService {
4
+ /**
5
+ * Generate a GitHub Actions workflow for `spec0 publish`
6
+ * Returns a ready-to-use GitHub Actions workflow YAML that runs `spec0 publish`
7
+ * only when the specified spec file changes.
8
+ *
9
+ * @returns CiConfigResponseV1 CI config
10
+ * @throws ApiError
11
+ */
12
+ static generateCiConfig({ specFilePath, apiName, branch, }: {
13
+ specFilePath: string;
14
+ /**
15
+ * API name to embed in the generated workflow. Falls back to spec filename basename if omitted.
16
+ */
17
+ apiName?: string;
18
+ branch?: string;
19
+ }): CancelablePromise<CiConfigResponseV1>;
20
+ }
21
+ //# sourceMappingURL=PublicCiService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicCiService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/PublicCiService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,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"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublicCiService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class PublicCiService {
7
+ /**
8
+ * Generate a GitHub Actions workflow for `spec0 publish`
9
+ * Returns a ready-to-use GitHub Actions workflow YAML that runs `spec0 publish`
10
+ * only when the specified spec file changes.
11
+ *
12
+ * @returns CiConfigResponseV1 CI config
13
+ * @throws ApiError
14
+ */
15
+ static generateCiConfig({ specFilePath, apiName, branch = 'main', }) {
16
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
17
+ method: 'GET',
18
+ url: '/api/v1/public/ci/config',
19
+ query: {
20
+ 'specFilePath': specFilePath,
21
+ 'apiName': apiName,
22
+ 'branch': branch,
23
+ },
24
+ errors: {
25
+ 400: `Bad request`,
26
+ 401: `Missing, invalid, expired, or revoked token`,
27
+ 403: `Token does not carry the required scope`,
28
+ },
29
+ });
30
+ }
31
+ }
32
+ exports.PublicCiService = PublicCiService;
33
+ //# sourceMappingURL=PublicCiService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicCiService.js","sourceRoot":"","sources":["../../../src/generated/services/PublicCiService.ts"],"names":[],"mappings":";;;AAMA,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,eAAe;IAC1B;;;;;;;OAOG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC7B,YAAY,EACZ,OAAO,EACP,MAAM,GAAG,MAAM,GAQhB;QACC,OAAO,IAAA,iBAAS,EAAC,iBAAO,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"}
@@ -20,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;CAc5C"}
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"}