@spec0/sdk-public-platform 1.1.0 → 1.1.1
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 +6 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +24 -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/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/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/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 +19 -0
- package/dist/generated/services/PublicApisService.d.ts.map +1 -1
- package/dist/generated/services/PublicApisService.js +41 -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.js +9 -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/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
- package/src/generated/index.ts +6 -0
- package/src/generated/models/CiConfigResponseV1.ts +15 -0
- package/src/generated/models/OrgSummaryResponseV1.ts +17 -0
- package/src/generated/models/TeamPublishRequestV1.ts +57 -0
- package/src/generated/models/TeamPublishResponseV1.ts +34 -0
- package/src/generated/services/PublicApisService.ts +36 -0
- package/src/generated/services/PublicCiService.ts +45 -0
- package/src/generated/services/PublicOrgsService.ts +28 -0
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"TeamPublishResponseV1.js","sourceRoot":"","sources":["../../../src/generated/models/TeamPublishResponseV1.ts"],"names":[],"mappings":""}
|
|
@@ -2,6 +2,8 @@ import type { PublicApiListItem } from '../models/PublicApiListItem';
|
|
|
2
2
|
import type { PublicApiMetaV1 } from '../models/PublicApiMetaV1';
|
|
3
3
|
import type { PublicPublishRequestV1 } from '../models/PublicPublishRequestV1';
|
|
4
4
|
import type { PublicPublishResponseV1 } from '../models/PublicPublishResponseV1';
|
|
5
|
+
import type { TeamPublishRequestV1 } from '../models/TeamPublishRequestV1';
|
|
6
|
+
import type { TeamPublishResponseV1 } from '../models/TeamPublishResponseV1';
|
|
5
7
|
import type { VisibilityUpdateRequestV1 } from '../models/VisibilityUpdateRequestV1';
|
|
6
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
9
|
export declare class PublicApisService {
|
|
@@ -24,6 +26,23 @@ export declare class PublicApisService {
|
|
|
24
26
|
static publishPublicApi({ requestBody, }: {
|
|
25
27
|
requestBody: PublicPublishRequestV1;
|
|
26
28
|
}): CancelablePromise<PublicPublishResponseV1>;
|
|
29
|
+
/**
|
|
30
|
+
* Publish or update a team-scoped private API
|
|
31
|
+
* Publishes a design-time OpenAPI spec to a team-scoped private API. Distinct from
|
|
32
|
+
* `POST /api/v1/public/apis`, which writes to the org-level customer-facing public
|
|
33
|
+
* registry. This endpoint is what the `spec0 push` CLI command targets.
|
|
34
|
+
*
|
|
35
|
+
* - If `apiId` is provided: update that API's metadata/spec and publish a new version.
|
|
36
|
+
* - If `apiId` is omitted: upsert by (org, `name`); create a new API when none exists.
|
|
37
|
+
* - `team` accepts a UUID or slug; when omitted the API lands in the org's
|
|
38
|
+
* "Unassigned APIs" team.
|
|
39
|
+
*
|
|
40
|
+
* @returns TeamPublishResponseV1 Publish result
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
static publishTeamApi({ requestBody, }: {
|
|
44
|
+
requestBody: TeamPublishRequestV1;
|
|
45
|
+
}): CancelablePromise<TeamPublishResponseV1>;
|
|
27
46
|
/**
|
|
28
47
|
* Update visibility for a public API
|
|
29
48
|
* @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,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
|
+
{"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,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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
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
|
|
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,43 @@ export class PublicApisService {
|
|
|
41
44
|
},
|
|
42
45
|
});
|
|
43
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Publish or update a team-scoped private API
|
|
49
|
+
* Publishes a design-time OpenAPI spec to a team-scoped private API. Distinct from
|
|
50
|
+
* `POST /api/v1/public/apis`, which writes to the org-level customer-facing public
|
|
51
|
+
* registry. This endpoint is what the `spec0 push` CLI command targets.
|
|
52
|
+
*
|
|
53
|
+
* - If `apiId` is provided: update that API's metadata/spec and publish a new version.
|
|
54
|
+
* - If `apiId` is omitted: upsert by (org, `name`); create a new API when none exists.
|
|
55
|
+
* - `team` accepts a UUID or slug; when omitted the API lands in the org's
|
|
56
|
+
* "Unassigned APIs" team.
|
|
57
|
+
*
|
|
58
|
+
* @returns TeamPublishResponseV1 Publish result
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
static publishTeamApi({ requestBody, }) {
|
|
62
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
63
|
+
method: 'POST',
|
|
64
|
+
url: '/api/v1/public/apis/team',
|
|
65
|
+
body: requestBody,
|
|
66
|
+
mediaType: 'application/json',
|
|
67
|
+
errors: {
|
|
68
|
+
400: `Bad request`,
|
|
69
|
+
401: `Missing, invalid, expired, or revoked token`,
|
|
70
|
+
403: `Token does not carry the required scope`,
|
|
71
|
+
404: `Resource not found (or not visible to the calling org)`,
|
|
72
|
+
409: `Breaking change detected in same major version (when oasdiff is enabled and \`semver\` is not set)`,
|
|
73
|
+
422: `Validation error (bad semver or API name format)`,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
44
77
|
/**
|
|
45
78
|
* Update visibility for a public API
|
|
46
79
|
* @returns PublicApiMetaV1 Updated visibility
|
|
47
80
|
* @throws ApiError
|
|
48
81
|
*/
|
|
49
82
|
static updatePublicApiVisibility({ publicApiId, requestBody, }) {
|
|
50
|
-
return
|
|
83
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
51
84
|
method: 'PUT',
|
|
52
85
|
url: '/api/v1/public/apis/{publicApiId}/visibility',
|
|
53
86
|
path: {
|
|
@@ -71,7 +104,7 @@ export class PublicApisService {
|
|
|
71
104
|
* @throws ApiError
|
|
72
105
|
*/
|
|
73
106
|
static deletePublicApi({ publicApiId, }) {
|
|
74
|
-
return
|
|
107
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
75
108
|
method: 'DELETE',
|
|
76
109
|
url: '/api/v1/public/apis/{publicApiId}',
|
|
77
110
|
path: {
|
|
@@ -85,4 +118,5 @@ export class PublicApisService {
|
|
|
85
118
|
});
|
|
86
119
|
}
|
|
87
120
|
}
|
|
121
|
+
exports.PublicApisService = PublicApisService;
|
|
88
122
|
//# sourceMappingURL=PublicApisService.js.map
|
|
@@ -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":";;;AAYA,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;g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AC,CAAC;IACL,CAAC;CACF;AApID,8CAoIC"}
|
|
@@ -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"}
|
|
@@ -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,
|
|
@@ -39,4 +42,5 @@ export class PublicMocksService {
|
|
|
39
42
|
});
|
|
40
43
|
}
|
|
41
44
|
}
|
|
45
|
+
exports.PublicMocksService = PublicMocksService;
|
|
42
46
|
//# 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;CACF;AA1CD,gDA0CC"}
|
|
@@ -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,I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G,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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