@vertracloud/api-types 0.2.0 → 0.2.2
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 +0 -21
- package/package.json +1 -1
- package/payloads/v1/api-error.d.ts +24 -0
- package/payloads/v1/api-error.js +16 -0
- package/payloads/v1/api-error.js.map +1 -1
- package/payloads/v1/api-error.mjs +16 -0
- package/payloads/v1/api-key.js +14 -14
- package/payloads/v1/api-key.js.map +1 -1
- package/payloads/v1/api-key.mjs +14 -14
- package/payloads/v1/application.d.ts +0 -4
- package/payloads/v1/application.js.map +1 -1
- package/payloads/v1/index.d.ts +0 -1
- package/payloads/v1/index.js +30 -14
- package/payloads/v1/index.js.map +1 -1
- package/payloads/v1/index.mjs +30 -14
- package/payloads/v1/workspace.d.ts +7 -0
- package/payloads/v1/workspace.js +7 -0
- package/payloads/v1/workspace.js.map +1 -1
- package/payloads/v1/workspace.mjs +7 -0
- package/rest/v1/application.d.ts +0 -3
- package/rest/v1/application.js.map +1 -1
- package/rest/v1/index.d.ts +0 -2
- package/rest/v1/index.js.map +1 -1
- package/v1.d.ts +0 -2
- package/v1.js +30 -14
- package/v1.js.map +1 -1
- package/v1.mjs +30 -14
- package/payloads/v1/github.d.ts +0 -20
- package/payloads/v1/github.js +0 -19
- package/payloads/v1/github.js.map +0 -1
- package/payloads/v1/github.mjs +0 -1
- package/rest/v1/github.d.ts +0 -22
- package/rest/v1/github.js +0 -19
- package/rest/v1/github.js.map +0 -1
- package/rest/v1/github.mjs +0 -1
package/payloads/v1/github.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A file read from a GitHub repository, with secrets redacted.
|
|
3
|
-
*
|
|
4
|
-
* Secret values found in the file are redacted before the content is returned.
|
|
5
|
-
*
|
|
6
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/github/file
|
|
7
|
-
*/
|
|
8
|
-
interface APIGitHubFile {
|
|
9
|
-
path: string;
|
|
10
|
-
content: string;
|
|
11
|
-
/** Size in bytes of the original file in the repository, before redaction. */
|
|
12
|
-
size: number;
|
|
13
|
-
/**
|
|
14
|
-
* Always `false` today: files above the size limit are rejected with `FILE_TOO_LARGE` instead
|
|
15
|
-
* of being truncated. Reserved so truncation can be added later without a breaking change.
|
|
16
|
-
*/
|
|
17
|
-
truncated: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type { APIGitHubFile };
|
package/payloads/v1/github.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// payloads/v1/github.ts
|
|
17
|
-
var github_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(github_exports);
|
|
19
|
-
//# sourceMappingURL=github.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["github.ts"],"sourcesContent":["/**\n * A file read from a GitHub repository, with secrets redacted.\n *\n * Secret values found in the file are redacted before the content is returned.\n *\n * @see https://docs.vertracloud.app/api-reference/endpoint/github/file\n */\nexport interface APIGitHubFile {\n\tpath: string;\n\tcontent: string;\n\t/** Size in bytes of the original file in the repository, before redaction. */\n\tsize: number;\n\t/**\n\t * Always `false` today: files above the size limit are rejected with `FILE_TOO_LARGE` instead\n\t * of being truncated. Reserved so truncation can be added later without a breaking change.\n\t */\n\ttruncated: boolean;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/payloads/v1/github.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=github.mjs.map
|
package/rest/v1/github.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { APIPayload } from '../../common/v1.js';
|
|
2
|
-
import { APIGitHubFile } from '../../payloads/v1/github.js';
|
|
3
|
-
import '../../payloads/v1/api-error.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/github/file
|
|
7
|
-
*/
|
|
8
|
-
interface RESTPostAPIGitHubFileBody {
|
|
9
|
-
/** Repository URL. A `/tree/<branch>` suffix selects the branch. */
|
|
10
|
-
url: string;
|
|
11
|
-
/** Path relative to the repository root. No `..`, no leading slash, no `.vertracloud/`. */
|
|
12
|
-
path: string;
|
|
13
|
-
/** Branch, tag or commit. Overrides the branch in the URL. */
|
|
14
|
-
ref?: string;
|
|
15
|
-
installation_id?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/github/file
|
|
19
|
-
*/
|
|
20
|
-
type RESTPostAPIGitHubFileResponse = APIPayload<APIGitHubFile>;
|
|
21
|
-
|
|
22
|
-
export type { RESTPostAPIGitHubFileBody, RESTPostAPIGitHubFileResponse };
|
package/rest/v1/github.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// rest/v1/github.ts
|
|
17
|
-
var github_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(github_exports);
|
|
19
|
-
//# sourceMappingURL=github.js.map
|
package/rest/v1/github.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["github.ts"],"sourcesContent":["import type { APIGitHubFile, APIPayload } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/github/file\n */\nexport interface RESTPostAPIGitHubFileBody {\n\t/** Repository URL. A `/tree/<branch>` suffix selects the branch. */\n\turl: string;\n\t/** Path relative to the repository root. No `..`, no leading slash, no `.vertracloud/`. */\n\tpath: string;\n\t/** Branch, tag or commit. Overrides the branch in the URL. */\n\tref?: string;\n\tinstallation_id?: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/github/file\n */\nexport type RESTPostAPIGitHubFileResponse = APIPayload<APIGitHubFile>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/rest/v1/github.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=github.mjs.map
|