@treeseed/treedx 0.3.0-rc.3 → 0.3.0-rc.4
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/treedx/adapters/federation/repositories.d.ts +1 -0
- package/dist/treedx/adapters/federation/repositories.js +1 -0
- package/dist/treedx/generated/openapi-types.d.ts +6 -1
- package/dist/treedx/generated/openapi-types.js +2 -1
- package/dist/treedx/openapi/contract.d.ts +6 -6
- package/dist/treedx/openapi/contract.js +6 -6
- package/openapi-contract.json +6 -6
- package/openapi.yaml +52 -1
- package/package.json +1 -1
- package/sdk-manifest.yaml +2 -2
|
@@ -6,6 +6,7 @@ export declare class RepositoriesAdapter {
|
|
|
6
6
|
list(): Promise<unknown>;
|
|
7
7
|
create(input: unknown): Promise<unknown>;
|
|
8
8
|
get(repoId: string): Promise<unknown>;
|
|
9
|
+
retire(repoId: string): Promise<unknown>;
|
|
9
10
|
status(repoId: string): Promise<unknown>;
|
|
10
11
|
refs(repoId: string): Promise<unknown>;
|
|
11
12
|
remotes(repoId: string): Promise<unknown>;
|
|
@@ -8,6 +8,7 @@ export class RepositoriesAdapter {
|
|
|
8
8
|
list() { return jsonRequest(this.context.transport, 'GET', '/api/v1/repos'); }
|
|
9
9
|
create(input) { return jsonRequest(this.context.transport, 'POST', '/api/v1/repos', input); }
|
|
10
10
|
get(repoId) { return jsonRequest(this.context.transport, 'GET', `/api/v1/repos/${segment(repoId)}`); }
|
|
11
|
+
retire(repoId) { return jsonRequest(this.context.transport, 'DELETE', `/api/v1/repos/${segment(repoId)}`); }
|
|
11
12
|
status(repoId) { return jsonRequest(this.context.transport, 'GET', `/api/v1/repos/${segment(repoId)}/status`); }
|
|
12
13
|
refs(repoId) { return jsonRequest(this.context.transport, 'GET', `/api/v1/repos/${segment(repoId)}/refs`); }
|
|
13
14
|
remotes(repoId) { return jsonRequest(this.context.transport, 'GET', `/api/v1/repos/${segment(repoId)}/remotes`); }
|
|
@@ -8,8 +8,13 @@ export interface TreeDxOpenApiOperation {
|
|
|
8
8
|
export type TreeDxOpenApiPath = typeof TREEDX_OPENAPI_OPERATIONS[number]["path"];
|
|
9
9
|
export type TreeDxOpenApiOperationId = typeof TREEDX_OPENAPI_OPERATIONS[number]["operationId"];
|
|
10
10
|
export type TreeDxOpenApiOperationKey = `${TreeDxOpenApiMethod} ${TreeDxOpenApiPath}`;
|
|
11
|
-
export declare const TREEDX_OPENAPI_OPERATION_COUNT:
|
|
11
|
+
export declare const TREEDX_OPENAPI_OPERATION_COUNT: 120;
|
|
12
12
|
export declare const TREEDX_OPENAPI_OPERATIONS: readonly [{
|
|
13
|
+
readonly method: "DELETE";
|
|
14
|
+
readonly operationId: "retireRepository";
|
|
15
|
+
readonly path: "/api/v1/repos/{repo_id}";
|
|
16
|
+
readonly requiredCapabilities: readonly ["repos:write"];
|
|
17
|
+
}, {
|
|
13
18
|
readonly method: "DELETE";
|
|
14
19
|
readonly operationId: "deleteArtifact";
|
|
15
20
|
readonly path: "/api/v1/repos/{repo_id}/artifacts/{artifact_id}";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Generated by scripts/generate-treedx-openapi-types.ts. Do not edit by hand.
|
|
2
|
-
export const TREEDX_OPENAPI_OPERATION_COUNT =
|
|
2
|
+
export const TREEDX_OPENAPI_OPERATION_COUNT = 120;
|
|
3
3
|
export const TREEDX_OPENAPI_OPERATIONS = [
|
|
4
|
+
{ method: "DELETE", operationId: "retireRepository", path: "/api/v1/repos/{repo_id}", requiredCapabilities: ["repos:write"] },
|
|
4
5
|
{ method: "DELETE", operationId: "deleteArtifact", path: "/api/v1/repos/{repo_id}/artifacts/{artifact_id}", requiredCapabilities: ["policy:write"] },
|
|
5
6
|
{ method: "DELETE", operationId: "abortWorkspaceBlobUpload", path: "/api/v1/workspaces/{workspace_id}/blobs/uploads/{upload_id}", requiredCapabilities: ["files:write"] },
|
|
6
7
|
{ method: "DELETE", operationId: "deleteWorkspaceFile", path: "/api/v1/workspaces/{workspace_id}/files", requiredCapabilities: ["files:delete"] },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const TREEDX_OPENAPI_CONTRACT: {
|
|
2
2
|
readonly schema: "treedx.openapi-contract/v1";
|
|
3
|
-
readonly packageVersion: "0.3.0-rc.
|
|
4
|
-
readonly openapiVersion: "0.11.
|
|
5
|
-
readonly openapiSha256: "sha256:
|
|
6
|
-
readonly operationInventorySha256: "sha256:
|
|
7
|
-
readonly generatedTypesSha256: "sha256:
|
|
8
|
-
readonly operationCount:
|
|
3
|
+
readonly packageVersion: "0.3.0-rc.4";
|
|
4
|
+
readonly openapiVersion: "0.11.1";
|
|
5
|
+
readonly openapiSha256: "sha256:7c045a99cb0e5ddfb750f060206db374fce86f94dbefecd377bf3e8a5e182ff4";
|
|
6
|
+
readonly operationInventorySha256: "sha256:a9a36b3def243d1fb58f149dd1f93fc6c56e4193eecc1bb4184c0c20b36e54f0";
|
|
7
|
+
readonly generatedTypesSha256: "sha256:ff51298be834c3931e725fe017e0def59a23c80998740b2ba1ddbd5ac5e5eca5";
|
|
8
|
+
readonly operationCount: 120;
|
|
9
9
|
readonly compatibility: "breaking-prerelease";
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by scripts/generate-treedx-openapi-types.ts. Do not edit by hand.
|
|
2
2
|
export const TREEDX_OPENAPI_CONTRACT = {
|
|
3
3
|
"schema": "treedx.openapi-contract/v1",
|
|
4
|
-
"packageVersion": "0.3.0-rc.
|
|
5
|
-
"openapiVersion": "0.11.
|
|
6
|
-
"openapiSha256": "sha256:
|
|
7
|
-
"operationInventorySha256": "sha256:
|
|
8
|
-
"generatedTypesSha256": "sha256:
|
|
9
|
-
"operationCount":
|
|
4
|
+
"packageVersion": "0.3.0-rc.4",
|
|
5
|
+
"openapiVersion": "0.11.1",
|
|
6
|
+
"openapiSha256": "sha256:7c045a99cb0e5ddfb750f060206db374fce86f94dbefecd377bf3e8a5e182ff4",
|
|
7
|
+
"operationInventorySha256": "sha256:a9a36b3def243d1fb58f149dd1f93fc6c56e4193eecc1bb4184c0c20b36e54f0",
|
|
8
|
+
"generatedTypesSha256": "sha256:ff51298be834c3931e725fe017e0def59a23c80998740b2ba1ddbd5ac5e5eca5",
|
|
9
|
+
"operationCount": 120,
|
|
10
10
|
"compatibility": "breaking-prerelease"
|
|
11
11
|
};
|
package/openapi-contract.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "treedx.openapi-contract/v1",
|
|
3
|
-
"packageVersion": "0.3.0-rc.
|
|
4
|
-
"openapiVersion": "0.11.
|
|
5
|
-
"openapiSha256": "sha256:
|
|
6
|
-
"operationInventorySha256": "sha256:
|
|
7
|
-
"generatedTypesSha256": "sha256:
|
|
8
|
-
"operationCount":
|
|
3
|
+
"packageVersion": "0.3.0-rc.4",
|
|
4
|
+
"openapiVersion": "0.11.1",
|
|
5
|
+
"openapiSha256": "sha256:7c045a99cb0e5ddfb750f060206db374fce86f94dbefecd377bf3e8a5e182ff4",
|
|
6
|
+
"operationInventorySha256": "sha256:a9a36b3def243d1fb58f149dd1f93fc6c56e4193eecc1bb4184c0c20b36e54f0",
|
|
7
|
+
"generatedTypesSha256": "sha256:ff51298be834c3931e725fe017e0def59a23c80998740b2ba1ddbd5ac5e5eca5",
|
|
8
|
+
"operationCount": 120,
|
|
9
9
|
"compatibility": "breaking-prerelease"
|
|
10
10
|
}
|
package/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.1.0
|
|
2
2
|
info:
|
|
3
3
|
title: TreeDX API
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
description: Human-maintained public API contract for implemented TreeDX surfaces.
|
|
6
6
|
SDK API payload types are generated from this document.
|
|
7
7
|
servers:
|
|
@@ -573,6 +573,28 @@ paths:
|
|
|
573
573
|
$ref: '#/components/responses/Error'
|
|
574
574
|
security:
|
|
575
575
|
- bearerAuth: []
|
|
576
|
+
delete:
|
|
577
|
+
operationId: retireRepository
|
|
578
|
+
summary: Retire a repository and move managed storage into recoverable custody.
|
|
579
|
+
x-treedx-required-capabilities:
|
|
580
|
+
- repos:write
|
|
581
|
+
parameters:
|
|
582
|
+
- $ref: '#/components/parameters/RepoId'
|
|
583
|
+
responses:
|
|
584
|
+
'200':
|
|
585
|
+
description: Repository retirement receipt.
|
|
586
|
+
content:
|
|
587
|
+
application/json:
|
|
588
|
+
schema:
|
|
589
|
+
$ref: '#/components/schemas/TreeDxRetireRepositoryResponse'
|
|
590
|
+
'401':
|
|
591
|
+
$ref: '#/components/responses/Error'
|
|
592
|
+
'403':
|
|
593
|
+
$ref: '#/components/responses/Error'
|
|
594
|
+
'503':
|
|
595
|
+
$ref: '#/components/responses/Error'
|
|
596
|
+
security:
|
|
597
|
+
- bearerAuth: []
|
|
576
598
|
/api/v1/repos/{repo_id}/status:
|
|
577
599
|
get:
|
|
578
600
|
operationId: getRepositoryStatus
|
|
@@ -5507,6 +5529,35 @@ components:
|
|
|
5507
5529
|
repo:
|
|
5508
5530
|
$ref: '#/components/schemas/TreeDxRepository'
|
|
5509
5531
|
additionalProperties: true
|
|
5532
|
+
TreeDxRetireRepositoryResponse:
|
|
5533
|
+
type: object
|
|
5534
|
+
required:
|
|
5535
|
+
- ok
|
|
5536
|
+
- retired
|
|
5537
|
+
- alreadyRetired
|
|
5538
|
+
properties:
|
|
5539
|
+
ok:
|
|
5540
|
+
const: true
|
|
5541
|
+
retired:
|
|
5542
|
+
type: object
|
|
5543
|
+
required:
|
|
5544
|
+
- repositoryId
|
|
5545
|
+
properties:
|
|
5546
|
+
repositoryId:
|
|
5547
|
+
type: string
|
|
5548
|
+
repositoryName:
|
|
5549
|
+
type: string
|
|
5550
|
+
retiredStorageRelativePath:
|
|
5551
|
+
oneOf:
|
|
5552
|
+
- type: string
|
|
5553
|
+
- type: 'null'
|
|
5554
|
+
retiredAt:
|
|
5555
|
+
type: string
|
|
5556
|
+
format: date-time
|
|
5557
|
+
additionalProperties: false
|
|
5558
|
+
alreadyRetired:
|
|
5559
|
+
type: boolean
|
|
5560
|
+
additionalProperties: true
|
|
5510
5561
|
TreeDxGetRepositoryStatusResponse:
|
|
5511
5562
|
type: object
|
|
5512
5563
|
required:
|
package/package.json
CHANGED