@valtown/sdk 0.30.0 → 0.31.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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/alias/username/index.d.ts +1 -0
- package/resources/alias/username/index.d.ts.map +1 -1
- package/resources/alias/username/index.js +3 -1
- package/resources/alias/username/index.js.map +1 -1
- package/resources/alias/username/index.mjs +1 -0
- package/resources/alias/username/index.mjs.map +1 -1
- package/resources/alias/username/project-name.d.ts +51 -0
- package/resources/alias/username/project-name.d.ts.map +1 -0
- package/resources/alias/username/project-name.js +15 -0
- package/resources/alias/username/project-name.js.map +1 -0
- package/resources/alias/username/project-name.mjs +11 -0
- package/resources/alias/username/project-name.mjs.map +1 -0
- package/resources/alias/username/username.d.ts +4 -0
- package/resources/alias/username/username.d.ts.map +1 -1
- package/resources/alias/username/username.js +4 -0
- package/resources/alias/username/username.js.map +1 -1
- package/resources/alias/username/username.mjs +4 -0
- package/resources/alias/username/username.mjs.map +1 -1
- package/resources/projects/files.d.ts +107 -1
- package/resources/projects/files.d.ts.map +1 -1
- package/resources/projects/files.js +25 -0
- package/resources/projects/files.js.map +1 -1
- package/resources/projects/files.mjs +25 -0
- package/resources/projects/files.mjs.map +1 -1
- package/resources/projects/index.d.ts +1 -1
- package/resources/projects/index.d.ts.map +1 -1
- package/resources/projects/index.js.map +1 -1
- package/resources/projects/index.mjs +1 -1
- package/resources/projects/index.mjs.map +1 -1
- package/resources/projects/projects.d.ts +2 -2
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +1 -1
- package/resources/projects/projects.mjs.map +1 -1
- package/src/resources/alias/username/index.ts +1 -0
- package/src/resources/alias/username/project-name.ts +72 -0
- package/src/resources/alias/username/username.ts +6 -0
- package/src/resources/projects/files.ts +180 -0
- package/src/resources/projects/index.ts +10 -1
- package/src/resources/projects/projects.ts +14 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.31.0 (2025-02-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.30.0...v0.31.0](https://github.com/val-town/sdk/compare/v0.30.0...v0.31.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([#509](https://github.com/val-town/sdk/issues/509)) ([dc620aa](https://github.com/val-town/sdk/commit/dc620aa6bd05700138834d2e513721fc52b886c4))
|
|
10
|
+
|
|
3
11
|
## 0.30.0 (2025-02-24)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.29.1...v0.30.0](https://github.com/val-town/sdk/compare/v0.29.1...v0.30.0)
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/alias/username/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/alias/username/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,KAAK,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ValName = exports.Username = void 0;
|
|
4
|
+
exports.ValName = exports.Username = exports.ProjectName = void 0;
|
|
5
|
+
var project_name_1 = require("./project-name.js");
|
|
6
|
+
Object.defineProperty(exports, "ProjectName", { enumerable: true, get: function () { return project_name_1.ProjectName; } });
|
|
5
7
|
var username_1 = require("./username.js");
|
|
6
8
|
Object.defineProperty(exports, "Username", { enumerable: true, get: function () { return username_1.Username; } });
|
|
7
9
|
var val_name_1 = require("./val-name.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/alias/username/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,0CAAmE;AAA1D,mGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/alias/username/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+E;AAAtE,2GAAA,WAAW,OAAA;AACpB,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,0CAAmE;AAA1D,mGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/alias/username/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,QAAQ,EAAE;OACZ,EAAE,OAAO,EAAgC"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/alias/username/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAoC;OACjD,EAAE,QAAQ,EAAE;OACZ,EAAE,OAAO,EAAgC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
export declare class ProjectName extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get a project
|
|
6
|
+
*/
|
|
7
|
+
retrieve(username: string, projectName: string, options?: Core.RequestOptions): Core.APIPromise<ProjectNameRetrieveResponse>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A Project
|
|
11
|
+
*/
|
|
12
|
+
export interface ProjectNameRetrieveResponse {
|
|
13
|
+
/**
|
|
14
|
+
* The id of the project
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
author: ProjectNameRetrieveResponse.Author;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* The URL of this project's image
|
|
22
|
+
*/
|
|
23
|
+
imageUrl: string | null;
|
|
24
|
+
links: ProjectNameRetrieveResponse.Links;
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* This resource's privacy setting. Unlisted resources do not appear on profile
|
|
28
|
+
* pages or elsewhere, but you can link to them.
|
|
29
|
+
*/
|
|
30
|
+
privacy: 'public' | 'unlisted' | 'private';
|
|
31
|
+
}
|
|
32
|
+
export declare namespace ProjectNameRetrieveResponse {
|
|
33
|
+
interface Author {
|
|
34
|
+
id: string;
|
|
35
|
+
username: string | null;
|
|
36
|
+
}
|
|
37
|
+
interface Links {
|
|
38
|
+
/**
|
|
39
|
+
* The URL of this resource on Val Town
|
|
40
|
+
*/
|
|
41
|
+
html: string;
|
|
42
|
+
/**
|
|
43
|
+
* The URL of this resource on this API
|
|
44
|
+
*/
|
|
45
|
+
self: string;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export declare namespace ProjectName {
|
|
49
|
+
export { type ProjectNameRetrieveResponse as ProjectNameRetrieveResponse };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=project-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-name.d.ts","sourceRoot":"","sources":["../../../src/resources/alias/username/project-name.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAGhD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,2BAA2B,CAAC,MAAM,CAAC;IAE3C,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC;IAEzC,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;CAC5C;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QAEX,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB;IAED,UAAiB,KAAK;QACpB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ProjectName = void 0;
|
|
5
|
+
const resource_1 = require("../../../resource.js");
|
|
6
|
+
class ProjectName extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get a project
|
|
9
|
+
*/
|
|
10
|
+
retrieve(username, projectName, options) {
|
|
11
|
+
return this._client.get(`/v1/alias/projects/${username}/${projectName}`, options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ProjectName = ProjectName;
|
|
15
|
+
//# sourceMappingURL=project-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-name.js","sourceRoot":"","sources":["../../../src/resources/alias/username/project-name.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAGhD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,QAAgB,EAChB,WAAmB,EACnB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,QAAQ,IAAI,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAXD,kCAWC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../resource.mjs";
|
|
3
|
+
export class ProjectName extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get a project
|
|
6
|
+
*/
|
|
7
|
+
retrieve(username, projectName, options) {
|
|
8
|
+
return this._client.get(`/v1/alias/projects/${username}/${projectName}`, options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=project-name.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-name.mjs","sourceRoot":"","sources":["../../../src/resources/alias/username/project-name.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,QAAgB,EAChB,WAAmB,EACnB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,QAAQ,IAAI,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { APIResource } from "../../../resource.js";
|
|
2
2
|
import * as Core from "../../../core.js";
|
|
3
3
|
import * as Shared from "../../shared.js";
|
|
4
|
+
import * as ProjectNameAPI from "./project-name.js";
|
|
5
|
+
import { ProjectName, ProjectNameRetrieveResponse } from "./project-name.js";
|
|
4
6
|
import * as ValNameAPI from "./val-name.js";
|
|
5
7
|
import { ValName, ValNameRetrieveResponse } from "./val-name.js";
|
|
6
8
|
export declare class Username extends APIResource {
|
|
7
9
|
valName: ValNameAPI.ValName;
|
|
10
|
+
projectName: ProjectNameAPI.ProjectName;
|
|
8
11
|
/**
|
|
9
12
|
* Get basic details about a user, given their username
|
|
10
13
|
*/
|
|
@@ -12,5 +15,6 @@ export declare class Username extends APIResource {
|
|
|
12
15
|
}
|
|
13
16
|
export declare namespace Username {
|
|
14
17
|
export { ValName as ValName, type ValNameRetrieveResponse as ValNameRetrieveResponse };
|
|
18
|
+
export { ProjectName as ProjectName, type ProjectNameRetrieveResponse as ProjectNameRetrieveResponse };
|
|
15
19
|
}
|
|
16
20
|
//# sourceMappingURL=username.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"username.d.ts","sourceRoot":"","sources":["../../../src/resources/alias/username/username.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE9D,qBAAa,QAAS,SAAQ,WAAW;IACvC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;
|
|
1
|
+
{"version":3,"file":"username.d.ts","sourceRoot":"","sources":["../../../src/resources/alias/username/username.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE9D,qBAAa,QAAS,SAAQ,WAAW;IACvC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;CAGxF;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;IAEvF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CACxG"}
|
|
@@ -26,12 +26,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.Username = void 0;
|
|
28
28
|
const resource_1 = require("../../../resource.js");
|
|
29
|
+
const ProjectNameAPI = __importStar(require("./project-name.js"));
|
|
30
|
+
const project_name_1 = require("./project-name.js");
|
|
29
31
|
const ValNameAPI = __importStar(require("./val-name.js"));
|
|
30
32
|
const val_name_1 = require("./val-name.js");
|
|
31
33
|
class Username extends resource_1.APIResource {
|
|
32
34
|
constructor() {
|
|
33
35
|
super(...arguments);
|
|
34
36
|
this.valName = new ValNameAPI.ValName(this._client);
|
|
37
|
+
this.projectName = new ProjectNameAPI.ProjectName(this._client);
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
37
40
|
* Get basic details about a user, given their username
|
|
@@ -42,4 +45,5 @@ class Username extends resource_1.APIResource {
|
|
|
42
45
|
}
|
|
43
46
|
exports.Username = Username;
|
|
44
47
|
Username.ValName = val_name_1.ValName;
|
|
48
|
+
Username.ProjectName = project_name_1.ProjectName;
|
|
45
49
|
//# sourceMappingURL=username.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"username.js","sourceRoot":"","sources":["../../../src/resources/alias/username/username.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAGhD,0DAAyC;AACzC,4CAA8D;AAE9D,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"username.js","sourceRoot":"","sources":["../../../src/resources/alias/username/username.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAGhD,kEAAiD;AACjD,oDAA0E;AAC1E,0DAAyC;AACzC,4CAA8D;AAE9D,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAQzF,CAAC;IANC;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAVD,4BAUC;AAED,QAAQ,CAAC,OAAO,GAAG,kBAAO,CAAC;AAC3B,QAAQ,CAAC,WAAW,GAAG,0BAAW,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../resource.mjs";
|
|
3
|
+
import * as ProjectNameAPI from "./project-name.mjs";
|
|
4
|
+
import { ProjectName } from "./project-name.mjs";
|
|
3
5
|
import * as ValNameAPI from "./val-name.mjs";
|
|
4
6
|
import { ValName } from "./val-name.mjs";
|
|
5
7
|
export class Username extends APIResource {
|
|
6
8
|
constructor() {
|
|
7
9
|
super(...arguments);
|
|
8
10
|
this.valName = new ValNameAPI.ValName(this._client);
|
|
11
|
+
this.projectName = new ProjectNameAPI.ProjectName(this._client);
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
11
14
|
* Get basic details about a user, given their username
|
|
@@ -15,4 +18,5 @@ export class Username extends APIResource {
|
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
Username.ValName = ValName;
|
|
21
|
+
Username.ProjectName = ProjectName;
|
|
18
22
|
//# sourceMappingURL=username.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"username.mjs","sourceRoot":"","sources":["../../../src/resources/alias/username/username.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,UAAU;OACf,EAAE,OAAO,EAA2B;AAE3C,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"username.mjs","sourceRoot":"","sources":["../../../src/resources/alias/username/username.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,cAAc;OACnB,EAAE,WAAW,EAA+B;OAC5C,KAAK,UAAU;OACf,EAAE,OAAO,EAA2B;AAE3C,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAQzF,CAAC;IANC;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAED,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;AAC3B,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -1,14 +1,71 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
|
+
import * as Shared from "../shared.js";
|
|
3
4
|
import { PageCursorURL, type PageCursorURLParams } from "../../pagination.js";
|
|
4
5
|
export declare class Files extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get metadata for files and directories in a project at the specified path
|
|
8
|
+
*/
|
|
9
|
+
retrieve(projectId: string, path: string, query: FileRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<FileRetrieveResponse>;
|
|
5
10
|
/**
|
|
6
11
|
* Get metadata for files and directories in a project at the root directory
|
|
7
12
|
*/
|
|
8
13
|
list(projectId: string, query: FileListParams, options?: Core.RequestOptions): Core.PagePromise<FileListResponsesPageCursorURL, FileListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Download file content
|
|
16
|
+
*/
|
|
17
|
+
content(projectId: string, path: string, params?: FileContentParams, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
18
|
+
content(projectId: string, path: string, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
9
19
|
}
|
|
10
20
|
export declare class FileListResponsesPageCursorURL extends PageCursorURL<FileListResponse> {
|
|
11
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* A paginated result set
|
|
24
|
+
*/
|
|
25
|
+
export interface FileRetrieveResponse {
|
|
26
|
+
data: Array<FileRetrieveResponse.Data>;
|
|
27
|
+
/**
|
|
28
|
+
* Links to use for pagination
|
|
29
|
+
*/
|
|
30
|
+
links: Shared.PaginationLinks;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace FileRetrieveResponse {
|
|
33
|
+
/**
|
|
34
|
+
* A File or Directory's Metadata
|
|
35
|
+
*/
|
|
36
|
+
interface Data {
|
|
37
|
+
/**
|
|
38
|
+
* The id of the resource
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
links: Data.Links;
|
|
42
|
+
name: string;
|
|
43
|
+
path: string;
|
|
44
|
+
type: 'directory' | 'file' | 'interval' | 'http' | 'email' | 'script';
|
|
45
|
+
updatedAt: string;
|
|
46
|
+
version: number;
|
|
47
|
+
}
|
|
48
|
+
namespace Data {
|
|
49
|
+
interface Links {
|
|
50
|
+
/**
|
|
51
|
+
* The URL of this resource on Val Town
|
|
52
|
+
*/
|
|
53
|
+
html: string;
|
|
54
|
+
/**
|
|
55
|
+
* The URL of this resource's source code as a module
|
|
56
|
+
*/
|
|
57
|
+
module: string;
|
|
58
|
+
/**
|
|
59
|
+
* The URL of this resource on this API
|
|
60
|
+
*/
|
|
61
|
+
self: string;
|
|
62
|
+
/**
|
|
63
|
+
* This resource's web endpoint, where it serves a website or API
|
|
64
|
+
*/
|
|
65
|
+
endpoint?: string;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
12
69
|
/**
|
|
13
70
|
* A File or Directory's Metadata
|
|
14
71
|
*/
|
|
@@ -44,6 +101,25 @@ export declare namespace FileListResponse {
|
|
|
44
101
|
endpoint?: string;
|
|
45
102
|
}
|
|
46
103
|
}
|
|
104
|
+
export type FileContentResponse = unknown;
|
|
105
|
+
export interface FileRetrieveParams {
|
|
106
|
+
/**
|
|
107
|
+
* Maximum items to return in each paginated response
|
|
108
|
+
*/
|
|
109
|
+
limit: number;
|
|
110
|
+
/**
|
|
111
|
+
* Number of items to skip in order to deliver paginated results
|
|
112
|
+
*/
|
|
113
|
+
offset: number;
|
|
114
|
+
/**
|
|
115
|
+
* Id to query
|
|
116
|
+
*/
|
|
117
|
+
branch_id?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Specific branch version to query
|
|
120
|
+
*/
|
|
121
|
+
version?: number;
|
|
122
|
+
}
|
|
47
123
|
export interface FileListParams extends PageCursorURLParams {
|
|
48
124
|
/**
|
|
49
125
|
* Id to query
|
|
@@ -58,7 +134,37 @@ export interface FileListParams extends PageCursorURLParams {
|
|
|
58
134
|
*/
|
|
59
135
|
version?: number;
|
|
60
136
|
}
|
|
137
|
+
export interface FileContentParams {
|
|
138
|
+
/**
|
|
139
|
+
* Query param: Id to query
|
|
140
|
+
*/
|
|
141
|
+
branch_id?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Query param: Specific branch version to query
|
|
144
|
+
*/
|
|
145
|
+
version?: number;
|
|
146
|
+
/**
|
|
147
|
+
* Header param:
|
|
148
|
+
*/
|
|
149
|
+
'Cache-Control'?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Header param:
|
|
152
|
+
*/
|
|
153
|
+
'If-Match'?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Header param:
|
|
156
|
+
*/
|
|
157
|
+
'If-Modified-Since'?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Header param:
|
|
160
|
+
*/
|
|
161
|
+
'If-None-Match'?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Header param:
|
|
164
|
+
*/
|
|
165
|
+
'If-Unmodified-Since'?: string;
|
|
166
|
+
}
|
|
61
167
|
export declare namespace Files {
|
|
62
|
-
export { type FileListResponse as FileListResponse, FileListResponsesPageCursorURL as FileListResponsesPageCursorURL, type FileListParams as FileListParams, };
|
|
168
|
+
export { type FileRetrieveResponse as FileRetrieveResponse, type FileListResponse as FileListResponse, type FileContentResponse as FileContentResponse, FileListResponsesPageCursorURL as FileListResponsesPageCursorURL, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileContentParams as FileContentParams, };
|
|
63
169
|
}
|
|
64
170
|
//# sourceMappingURL=files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/projects/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/projects/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,kBAAkB,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAIxC;;OAEG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,8BAA8B,EAAE,gBAAgB,CAAC;IAOrE;;OAEG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,iBAAiB,EAC1B,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AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,8BAA8B,IAAI,8BAA8B,EAChE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -3,8 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.FileListResponsesPageCursorURL = exports.Files = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
6
7
|
const pagination_1 = require("../../pagination.js");
|
|
7
8
|
class Files extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get metadata for files and directories in a project at the specified path
|
|
11
|
+
*/
|
|
12
|
+
retrieve(projectId, path, query, options) {
|
|
13
|
+
return this._client.get(`/v1/projects/${projectId}/files/${path}`, { query, ...options });
|
|
14
|
+
}
|
|
8
15
|
/**
|
|
9
16
|
* Get metadata for files and directories in a project at the root directory
|
|
10
17
|
*/
|
|
@@ -14,6 +21,24 @@ class Files extends resource_1.APIResource {
|
|
|
14
21
|
...options,
|
|
15
22
|
});
|
|
16
23
|
}
|
|
24
|
+
content(projectId, path, params = {}, options) {
|
|
25
|
+
if ((0, core_1.isRequestOptions)(params)) {
|
|
26
|
+
return this.content(projectId, path, {}, params);
|
|
27
|
+
}
|
|
28
|
+
const { 'Cache-Control': cacheControl, 'If-Match': ifMatch, 'If-Modified-Since': ifModifiedSince, 'If-None-Match': ifNoneMatch, 'If-Unmodified-Since': ifUnmodifiedSince, ...query } = params;
|
|
29
|
+
return this._client.get(`/v1/projects/${projectId}/files/${path}/content`, {
|
|
30
|
+
query,
|
|
31
|
+
...options,
|
|
32
|
+
headers: {
|
|
33
|
+
...(cacheControl != null ? { 'Cache-Control': cacheControl } : undefined),
|
|
34
|
+
...(ifMatch != null ? { 'If-Match': ifMatch } : undefined),
|
|
35
|
+
...(ifModifiedSince != null ? { 'If-Modified-Since': ifModifiedSince } : undefined),
|
|
36
|
+
...(ifNoneMatch != null ? { 'If-None-Match': ifNoneMatch } : undefined),
|
|
37
|
+
...(ifUnmodifiedSince != null ? { 'If-Unmodified-Since': ifUnmodifiedSince } : undefined),
|
|
38
|
+
...options?.headers,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
17
42
|
}
|
|
18
43
|
exports.Files = Files;
|
|
19
44
|
class FileListResponsesPageCursorURL extends pagination_1.PageCursorURL {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/projects/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/projects/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,oDAA2E;AAE3E,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,QAAQ,CACN,SAAiB,EACjB,IAAY,EACZ,KAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,SAAS,UAAU,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,SAAiB,EACjB,KAAqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,SAAS,QAAQ,EAAE,8BAA8B,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAYD,OAAO,CACL,SAAiB,EACjB,IAAY,EACZ,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AAC,8BAA8B,GAAG,8BAA8B,CAAC"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
3
4
|
import { PageCursorURL } from "../../pagination.mjs";
|
|
4
5
|
export class Files extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get metadata for files and directories in a project at the specified path
|
|
8
|
+
*/
|
|
9
|
+
retrieve(projectId, path, query, options) {
|
|
10
|
+
return this._client.get(`/v1/projects/${projectId}/files/${path}`, { query, ...options });
|
|
11
|
+
}
|
|
5
12
|
/**
|
|
6
13
|
* Get metadata for files and directories in a project at the root directory
|
|
7
14
|
*/
|
|
@@ -11,6 +18,24 @@ export class Files extends APIResource {
|
|
|
11
18
|
...options,
|
|
12
19
|
});
|
|
13
20
|
}
|
|
21
|
+
content(projectId, path, params = {}, options) {
|
|
22
|
+
if (isRequestOptions(params)) {
|
|
23
|
+
return this.content(projectId, path, {}, params);
|
|
24
|
+
}
|
|
25
|
+
const { 'Cache-Control': cacheControl, 'If-Match': ifMatch, 'If-Modified-Since': ifModifiedSince, 'If-None-Match': ifNoneMatch, 'If-Unmodified-Since': ifUnmodifiedSince, ...query } = params;
|
|
26
|
+
return this._client.get(`/v1/projects/${projectId}/files/${path}/content`, {
|
|
27
|
+
query,
|
|
28
|
+
...options,
|
|
29
|
+
headers: {
|
|
30
|
+
...(cacheControl != null ? { 'Cache-Control': cacheControl } : undefined),
|
|
31
|
+
...(ifMatch != null ? { 'If-Match': ifMatch } : undefined),
|
|
32
|
+
...(ifModifiedSince != null ? { 'If-Modified-Since': ifModifiedSince } : undefined),
|
|
33
|
+
...(ifNoneMatch != null ? { 'If-None-Match': ifNoneMatch } : undefined),
|
|
34
|
+
...(ifUnmodifiedSince != null ? { 'If-Unmodified-Since': ifUnmodifiedSince } : undefined),
|
|
35
|
+
...options?.headers,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
14
39
|
}
|
|
15
40
|
export class FileListResponsesPageCursorURL extends PageCursorURL {
|
|
16
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/projects/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/projects/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,aAAa,EAA4B;AAElD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CACN,SAAiB,EACjB,IAAY,EACZ,KAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,SAAS,UAAU,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,SAAiB,EACjB,KAAqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,SAAS,QAAQ,EAAE,8BAA8B,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAYD,OAAO,CACL,SAAiB,EACjB,IAAY,EACZ,SAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;SAClD;QACD,MAAM,EACJ,eAAe,EAAE,YAAY,EAC7B,UAAU,EAAE,OAAO,EACnB,mBAAmB,EAAE,eAAe,EACpC,eAAe,EAAE,WAAW,EAC5B,qBAAqB,EAAE,iBAAiB,EACxC,GAAG,KAAK,EACT,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,SAAS,UAAU,IAAI,UAAU,EAAE;YACzE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE;gBACP,GAAG,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;gBACzE,GAAG,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;gBAC1D,GAAG,CAAC,eAAe,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;gBACnF,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;gBACvE,GAAG,CAAC,iBAAiB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;gBACzF,GAAG,OAAO,EAAE,OAAO;aACpB;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,8BAA+B,SAAQ,aAA+B;CAAG;AA0LtF,KAAK,CAAC,8BAA8B,GAAG,8BAA8B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { BranchListResponsesPageCursorURL, Branches, type BranchRetrieveResponse, type BranchListResponse, type BranchListParams, } from "./branches.js";
|
|
2
|
-
export { FileListResponsesPageCursorURL, Files, type FileListResponse, type FileListParams } from "./files.js";
|
|
2
|
+
export { FileListResponsesPageCursorURL, Files, type FileRetrieveResponse, type FileListResponse, type FileContentResponse, type FileRetrieveParams, type FileListParams, type FileContentParams, } from "./files.js";
|
|
3
3
|
export { ProjectListResponsesPageCursorURL, Projects, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectListParams, } from "./projects.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,8BAA8B,EAC9B,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,iCAAiC,EACjC,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,4HAAA,gCAAgC,OAAA;AAChC,oGAAA,QAAQ,OAAA;AAKV,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,4HAAA,gCAAgC,OAAA;AAChC,oGAAA,QAAQ,OAAA;AAKV,oCASiB;AARf,uHAAA,8BAA8B,OAAA;AAC9B,8FAAA,KAAK,OAAA;AAQP,0CAMoB;AALlB,6HAAA,iCAAiC,OAAA;AACjC,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { BranchListResponsesPageCursorURL, Branches, } from "./branches.mjs";
|
|
3
|
-
export { FileListResponsesPageCursorURL, Files } from "./files.mjs";
|
|
3
|
+
export { FileListResponsesPageCursorURL, Files, } from "./files.mjs";
|
|
4
4
|
export { ProjectListResponsesPageCursorURL, Projects, } from "./projects.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gCAAgC,EAChC,QAAQ,GAIT;OACM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gCAAgC,EAChC,QAAQ,GAIT;OACM,EACL,8BAA8B,EAC9B,KAAK,GAON;OACM,EACL,iCAAiC,EACjC,QAAQ,GAIT"}
|
|
@@ -3,7 +3,7 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
import * as BranchesAPI from "./branches.js";
|
|
4
4
|
import { BranchListParams, BranchListResponse, BranchListResponsesPageCursorURL, BranchRetrieveResponse, Branches } from "./branches.js";
|
|
5
5
|
import * as FilesAPI from "./files.js";
|
|
6
|
-
import { FileListParams, FileListResponse, FileListResponsesPageCursorURL, Files } from "./files.js";
|
|
6
|
+
import { FileContentParams, FileContentResponse, FileListParams, FileListResponse, FileListResponsesPageCursorURL, FileRetrieveParams, FileRetrieveResponse, Files } from "./files.js";
|
|
7
7
|
import { PageCursorURL, type PageCursorURLParams } from "../../pagination.js";
|
|
8
8
|
/**
|
|
9
9
|
* Projects let you organize multiple files and collaborate with pull requests
|
|
@@ -105,6 +105,6 @@ export interface ProjectListParams extends PageCursorURLParams {
|
|
|
105
105
|
export declare namespace Projects {
|
|
106
106
|
export { type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, ProjectListResponsesPageCursorURL as ProjectListResponsesPageCursorURL, type ProjectListParams as ProjectListParams, };
|
|
107
107
|
export { Branches as Branches, type BranchRetrieveResponse as BranchRetrieveResponse, type BranchListResponse as BranchListResponse, BranchListResponsesPageCursorURL as BranchListResponsesPageCursorURL, type BranchListParams as BranchListParams, };
|
|
108
|
-
export { Files as Files, type FileListResponse as FileListResponse, FileListResponsesPageCursorURL as FileListResponsesPageCursorURL, type FileListParams as FileListParams, };
|
|
108
|
+
export { Files as Files, type FileRetrieveResponse as FileRetrieveResponse, type FileListResponse as FileListResponse, type FileContentResponse as FileContentResponse, FileListResponsesPageCursorURL as FileListResponsesPageCursorURL, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileContentParams as FileContentParams, };
|
|
109
109
|
}
|
|
110
110
|
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,sBAAsB,EACtB,QAAQ,EACT,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[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AC/C,iCAAiC,IAAI,iCAAiC,EACtE,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,gCAAgC,IAAI,gCAAgC,EACpE,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,8BAA8B,IAAI,8BAA8B,EAChE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,2DAA0C;AAC1C,4CAMoB;AACpB,qDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,2DAA0C;AAC1C,4CAMoB;AACpB,qDAAoC;AACpC,sCASiB;AACjB,oDAA2E;AAE3E;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkB3D,CAAC;IAhBC;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAwB,EACxB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACF;AApBD,4BAoBC;AAED,MAAa,iCAAkC,SAAQ,0BAAkC;CAAG;AAA5F,8EAA4F;AA0G5F,QAAQ,CAAC,iCAAiC,GAAG,iCAAiC,CAAC;AAC/E,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC7B,QAAQ,CAAC,gCAAgC,GAAG,2CAAgC,CAAC;AAC7E,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC;AACvB,QAAQ,CAAC,8BAA8B,GAAG,sCAA8B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../resource.mjs";
|
|
|
3
3
|
import * as BranchesAPI from "./branches.mjs";
|
|
4
4
|
import { BranchListResponsesPageCursorURL, Branches, } from "./branches.mjs";
|
|
5
5
|
import * as FilesAPI from "./files.mjs";
|
|
6
|
-
import { FileListResponsesPageCursorURL, Files } from "./files.mjs";
|
|
6
|
+
import { FileListResponsesPageCursorURL, Files, } from "./files.mjs";
|
|
7
7
|
import { PageCursorURL } from "../../pagination.mjs";
|
|
8
8
|
/**
|
|
9
9
|
* Projects let you organize multiple files and collaborate with pull requests
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.mjs","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,WAAW;OAChB,EAGL,gCAAgC,EAEhC,QAAQ,GACT;OACM,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"projects.mjs","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,WAAW;OAChB,EAGL,gCAAgC,EAEhC,QAAQ,GACT;OACM,KAAK,QAAQ;OACb,EAKL,8BAA8B,EAG9B,KAAK,GACN;OACM,EAAE,aAAa,EAA4B;AAElD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkB3D,CAAC;IAhBC;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAwB,EACxB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACF;AAED,MAAM,OAAO,iCAAkC,SAAQ,aAAkC;CAAG;AA0G5F,QAAQ,CAAC,iCAAiC,GAAG,iCAAiC,CAAC;AAC/E,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;AAC7E,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;AACvB,QAAQ,CAAC,8BAA8B,GAAG,8BAA8B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export { ProjectName, type ProjectNameRetrieveResponse } from './project-name';
|
|
3
4
|
export { Username } from './username';
|
|
4
5
|
export { ValName, type ValNameRetrieveResponse } from './val-name';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import * as Core from '../../../core';
|
|
5
|
+
|
|
6
|
+
export class ProjectName extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get a project
|
|
9
|
+
*/
|
|
10
|
+
retrieve(
|
|
11
|
+
username: string,
|
|
12
|
+
projectName: string,
|
|
13
|
+
options?: Core.RequestOptions,
|
|
14
|
+
): Core.APIPromise<ProjectNameRetrieveResponse> {
|
|
15
|
+
return this._client.get(`/v1/alias/projects/${username}/${projectName}`, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A Project
|
|
21
|
+
*/
|
|
22
|
+
export interface ProjectNameRetrieveResponse {
|
|
23
|
+
/**
|
|
24
|
+
* The id of the project
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
|
|
28
|
+
author: ProjectNameRetrieveResponse.Author;
|
|
29
|
+
|
|
30
|
+
createdAt: string;
|
|
31
|
+
|
|
32
|
+
description: string | null;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The URL of this project's image
|
|
36
|
+
*/
|
|
37
|
+
imageUrl: string | null;
|
|
38
|
+
|
|
39
|
+
links: ProjectNameRetrieveResponse.Links;
|
|
40
|
+
|
|
41
|
+
name: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* This resource's privacy setting. Unlisted resources do not appear on profile
|
|
45
|
+
* pages or elsewhere, but you can link to them.
|
|
46
|
+
*/
|
|
47
|
+
privacy: 'public' | 'unlisted' | 'private';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace ProjectNameRetrieveResponse {
|
|
51
|
+
export interface Author {
|
|
52
|
+
id: string;
|
|
53
|
+
|
|
54
|
+
username: string | null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface Links {
|
|
58
|
+
/**
|
|
59
|
+
* The URL of this resource on Val Town
|
|
60
|
+
*/
|
|
61
|
+
html: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The URL of this resource on this API
|
|
65
|
+
*/
|
|
66
|
+
self: string;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare namespace ProjectName {
|
|
71
|
+
export { type ProjectNameRetrieveResponse as ProjectNameRetrieveResponse };
|
|
72
|
+
}
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
import { APIResource } from '../../../resource';
|
|
4
4
|
import * as Core from '../../../core';
|
|
5
5
|
import * as Shared from '../../shared';
|
|
6
|
+
import * as ProjectNameAPI from './project-name';
|
|
7
|
+
import { ProjectName, ProjectNameRetrieveResponse } from './project-name';
|
|
6
8
|
import * as ValNameAPI from './val-name';
|
|
7
9
|
import { ValName, ValNameRetrieveResponse } from './val-name';
|
|
8
10
|
|
|
9
11
|
export class Username extends APIResource {
|
|
10
12
|
valName: ValNameAPI.ValName = new ValNameAPI.ValName(this._client);
|
|
13
|
+
projectName: ProjectNameAPI.ProjectName = new ProjectNameAPI.ProjectName(this._client);
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* Get basic details about a user, given their username
|
|
@@ -18,7 +21,10 @@ export class Username extends APIResource {
|
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
Username.ValName = ValName;
|
|
24
|
+
Username.ProjectName = ProjectName;
|
|
21
25
|
|
|
22
26
|
export declare namespace Username {
|
|
23
27
|
export { ValName as ValName, type ValNameRetrieveResponse as ValNameRetrieveResponse };
|
|
28
|
+
|
|
29
|
+
export { ProjectName as ProjectName, type ProjectNameRetrieveResponse as ProjectNameRetrieveResponse };
|
|
24
30
|
}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
4
5
|
import * as Core from '../../core';
|
|
6
|
+
import * as Shared from '../shared';
|
|
5
7
|
import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
|
|
6
8
|
|
|
7
9
|
export class Files extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get metadata for files and directories in a project at the specified path
|
|
12
|
+
*/
|
|
13
|
+
retrieve(
|
|
14
|
+
projectId: string,
|
|
15
|
+
path: string,
|
|
16
|
+
query: FileRetrieveParams,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Core.APIPromise<FileRetrieveResponse> {
|
|
19
|
+
return this._client.get(`/v1/projects/${projectId}/files/${path}`, { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
|
|
8
22
|
/**
|
|
9
23
|
* Get metadata for files and directories in a project at the root directory
|
|
10
24
|
*/
|
|
@@ -18,10 +32,111 @@ export class Files extends APIResource {
|
|
|
18
32
|
...options,
|
|
19
33
|
});
|
|
20
34
|
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Download file content
|
|
38
|
+
*/
|
|
39
|
+
content(
|
|
40
|
+
projectId: string,
|
|
41
|
+
path: string,
|
|
42
|
+
params?: FileContentParams,
|
|
43
|
+
options?: Core.RequestOptions,
|
|
44
|
+
): Core.APIPromise<unknown>;
|
|
45
|
+
content(projectId: string, path: string, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
46
|
+
content(
|
|
47
|
+
projectId: string,
|
|
48
|
+
path: string,
|
|
49
|
+
params: FileContentParams | Core.RequestOptions = {},
|
|
50
|
+
options?: Core.RequestOptions,
|
|
51
|
+
): Core.APIPromise<unknown> {
|
|
52
|
+
if (isRequestOptions(params)) {
|
|
53
|
+
return this.content(projectId, path, {}, params);
|
|
54
|
+
}
|
|
55
|
+
const {
|
|
56
|
+
'Cache-Control': cacheControl,
|
|
57
|
+
'If-Match': ifMatch,
|
|
58
|
+
'If-Modified-Since': ifModifiedSince,
|
|
59
|
+
'If-None-Match': ifNoneMatch,
|
|
60
|
+
'If-Unmodified-Since': ifUnmodifiedSince,
|
|
61
|
+
...query
|
|
62
|
+
} = params;
|
|
63
|
+
return this._client.get(`/v1/projects/${projectId}/files/${path}/content`, {
|
|
64
|
+
query,
|
|
65
|
+
...options,
|
|
66
|
+
headers: {
|
|
67
|
+
...(cacheControl != null ? { 'Cache-Control': cacheControl } : undefined),
|
|
68
|
+
...(ifMatch != null ? { 'If-Match': ifMatch } : undefined),
|
|
69
|
+
...(ifModifiedSince != null ? { 'If-Modified-Since': ifModifiedSince } : undefined),
|
|
70
|
+
...(ifNoneMatch != null ? { 'If-None-Match': ifNoneMatch } : undefined),
|
|
71
|
+
...(ifUnmodifiedSince != null ? { 'If-Unmodified-Since': ifUnmodifiedSince } : undefined),
|
|
72
|
+
...options?.headers,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
21
76
|
}
|
|
22
77
|
|
|
23
78
|
export class FileListResponsesPageCursorURL extends PageCursorURL<FileListResponse> {}
|
|
24
79
|
|
|
80
|
+
/**
|
|
81
|
+
* A paginated result set
|
|
82
|
+
*/
|
|
83
|
+
export interface FileRetrieveResponse {
|
|
84
|
+
data: Array<FileRetrieveResponse.Data>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Links to use for pagination
|
|
88
|
+
*/
|
|
89
|
+
links: Shared.PaginationLinks;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export namespace FileRetrieveResponse {
|
|
93
|
+
/**
|
|
94
|
+
* A File or Directory's Metadata
|
|
95
|
+
*/
|
|
96
|
+
export interface Data {
|
|
97
|
+
/**
|
|
98
|
+
* The id of the resource
|
|
99
|
+
*/
|
|
100
|
+
id: string;
|
|
101
|
+
|
|
102
|
+
links: Data.Links;
|
|
103
|
+
|
|
104
|
+
name: string;
|
|
105
|
+
|
|
106
|
+
path: string;
|
|
107
|
+
|
|
108
|
+
type: 'directory' | 'file' | 'interval' | 'http' | 'email' | 'script';
|
|
109
|
+
|
|
110
|
+
updatedAt: string;
|
|
111
|
+
|
|
112
|
+
version: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export namespace Data {
|
|
116
|
+
export interface Links {
|
|
117
|
+
/**
|
|
118
|
+
* The URL of this resource on Val Town
|
|
119
|
+
*/
|
|
120
|
+
html: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The URL of this resource's source code as a module
|
|
124
|
+
*/
|
|
125
|
+
module: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The URL of this resource on this API
|
|
129
|
+
*/
|
|
130
|
+
self: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* This resource's web endpoint, where it serves a website or API
|
|
134
|
+
*/
|
|
135
|
+
endpoint?: string;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
25
140
|
/**
|
|
26
141
|
* A File or Directory's Metadata
|
|
27
142
|
*/
|
|
@@ -68,6 +183,30 @@ export namespace FileListResponse {
|
|
|
68
183
|
}
|
|
69
184
|
}
|
|
70
185
|
|
|
186
|
+
export type FileContentResponse = unknown;
|
|
187
|
+
|
|
188
|
+
export interface FileRetrieveParams {
|
|
189
|
+
/**
|
|
190
|
+
* Maximum items to return in each paginated response
|
|
191
|
+
*/
|
|
192
|
+
limit: number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Number of items to skip in order to deliver paginated results
|
|
196
|
+
*/
|
|
197
|
+
offset: number;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Id to query
|
|
201
|
+
*/
|
|
202
|
+
branch_id?: string;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Specific branch version to query
|
|
206
|
+
*/
|
|
207
|
+
version?: number;
|
|
208
|
+
}
|
|
209
|
+
|
|
71
210
|
export interface FileListParams extends PageCursorURLParams {
|
|
72
211
|
/**
|
|
73
212
|
* Id to query
|
|
@@ -85,12 +224,53 @@ export interface FileListParams extends PageCursorURLParams {
|
|
|
85
224
|
version?: number;
|
|
86
225
|
}
|
|
87
226
|
|
|
227
|
+
export interface FileContentParams {
|
|
228
|
+
/**
|
|
229
|
+
* Query param: Id to query
|
|
230
|
+
*/
|
|
231
|
+
branch_id?: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Query param: Specific branch version to query
|
|
235
|
+
*/
|
|
236
|
+
version?: number;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Header param:
|
|
240
|
+
*/
|
|
241
|
+
'Cache-Control'?: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Header param:
|
|
245
|
+
*/
|
|
246
|
+
'If-Match'?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Header param:
|
|
250
|
+
*/
|
|
251
|
+
'If-Modified-Since'?: string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Header param:
|
|
255
|
+
*/
|
|
256
|
+
'If-None-Match'?: string;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Header param:
|
|
260
|
+
*/
|
|
261
|
+
'If-Unmodified-Since'?: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
88
264
|
Files.FileListResponsesPageCursorURL = FileListResponsesPageCursorURL;
|
|
89
265
|
|
|
90
266
|
export declare namespace Files {
|
|
91
267
|
export {
|
|
268
|
+
type FileRetrieveResponse as FileRetrieveResponse,
|
|
92
269
|
type FileListResponse as FileListResponse,
|
|
270
|
+
type FileContentResponse as FileContentResponse,
|
|
93
271
|
FileListResponsesPageCursorURL as FileListResponsesPageCursorURL,
|
|
272
|
+
type FileRetrieveParams as FileRetrieveParams,
|
|
94
273
|
type FileListParams as FileListParams,
|
|
274
|
+
type FileContentParams as FileContentParams,
|
|
95
275
|
};
|
|
96
276
|
}
|
|
@@ -7,7 +7,16 @@ export {
|
|
|
7
7
|
type BranchListResponse,
|
|
8
8
|
type BranchListParams,
|
|
9
9
|
} from './branches';
|
|
10
|
-
export {
|
|
10
|
+
export {
|
|
11
|
+
FileListResponsesPageCursorURL,
|
|
12
|
+
Files,
|
|
13
|
+
type FileRetrieveResponse,
|
|
14
|
+
type FileListResponse,
|
|
15
|
+
type FileContentResponse,
|
|
16
|
+
type FileRetrieveParams,
|
|
17
|
+
type FileListParams,
|
|
18
|
+
type FileContentParams,
|
|
19
|
+
} from './files';
|
|
11
20
|
export {
|
|
12
21
|
ProjectListResponsesPageCursorURL,
|
|
13
22
|
Projects,
|
|
@@ -11,7 +11,16 @@ import {
|
|
|
11
11
|
Branches,
|
|
12
12
|
} from './branches';
|
|
13
13
|
import * as FilesAPI from './files';
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
FileContentParams,
|
|
16
|
+
FileContentResponse,
|
|
17
|
+
FileListParams,
|
|
18
|
+
FileListResponse,
|
|
19
|
+
FileListResponsesPageCursorURL,
|
|
20
|
+
FileRetrieveParams,
|
|
21
|
+
FileRetrieveResponse,
|
|
22
|
+
Files,
|
|
23
|
+
} from './files';
|
|
15
24
|
import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
|
|
16
25
|
|
|
17
26
|
/**
|
|
@@ -169,8 +178,12 @@ export declare namespace Projects {
|
|
|
169
178
|
|
|
170
179
|
export {
|
|
171
180
|
Files as Files,
|
|
181
|
+
type FileRetrieveResponse as FileRetrieveResponse,
|
|
172
182
|
type FileListResponse as FileListResponse,
|
|
183
|
+
type FileContentResponse as FileContentResponse,
|
|
173
184
|
FileListResponsesPageCursorURL as FileListResponsesPageCursorURL,
|
|
185
|
+
type FileRetrieveParams as FileRetrieveParams,
|
|
174
186
|
type FileListParams as FileListParams,
|
|
187
|
+
type FileContentParams as FileContentParams,
|
|
175
188
|
};
|
|
176
189
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.31.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.31.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.31.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|