@valtown/sdk 0.29.1 → 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 +21 -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/me/projects.d.ts +11 -4
- package/resources/me/projects.d.ts.map +1 -1
- package/resources/me/projects.js.map +1 -1
- package/resources/me/projects.mjs.map +1 -1
- package/resources/projects/branches.d.ts +26 -8
- package/resources/projects/branches.d.ts.map +1 -1
- package/resources/projects/branches.js.map +1 -1
- package/resources/projects/branches.mjs.map +1 -1
- package/resources/projects/files.d.ts +121 -3
- 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 +24 -10
- 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/me/projects.ts +14 -5
- package/src/resources/projects/branches.ts +32 -10
- package/src/resources/projects/files.ts +195 -3
- package/src/resources/projects/index.ts +10 -1
- package/src/resources/projects/projects.ts +42 -11
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -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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AAC"}
|
|
@@ -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
|
|
@@ -37,22 +37,29 @@ export interface ProjectRetrieveResponse {
|
|
|
37
37
|
* The URL of this project's image
|
|
38
38
|
*/
|
|
39
39
|
imageUrl: string | null;
|
|
40
|
+
links: ProjectRetrieveResponse.Links;
|
|
40
41
|
name: string;
|
|
41
42
|
/**
|
|
42
43
|
* This resource's privacy setting. Unlisted resources do not appear on profile
|
|
43
44
|
* pages or elsewhere, but you can link to them.
|
|
44
45
|
*/
|
|
45
46
|
privacy: 'public' | 'unlisted' | 'private';
|
|
46
|
-
/**
|
|
47
|
-
* The URL of this resource on the Val Town website
|
|
48
|
-
*/
|
|
49
|
-
valTownUrl: string;
|
|
50
47
|
}
|
|
51
48
|
export declare namespace ProjectRetrieveResponse {
|
|
52
49
|
interface Author {
|
|
53
50
|
id: string;
|
|
54
51
|
username: string | null;
|
|
55
52
|
}
|
|
53
|
+
interface Links {
|
|
54
|
+
/**
|
|
55
|
+
* The URL of this resource on Val Town
|
|
56
|
+
*/
|
|
57
|
+
html: string;
|
|
58
|
+
/**
|
|
59
|
+
* The URL of this resource on this API
|
|
60
|
+
*/
|
|
61
|
+
self: string;
|
|
62
|
+
}
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* A Project
|
|
@@ -69,28 +76,35 @@ export interface ProjectListResponse {
|
|
|
69
76
|
* The URL of this project's image
|
|
70
77
|
*/
|
|
71
78
|
imageUrl: string | null;
|
|
79
|
+
links: ProjectListResponse.Links;
|
|
72
80
|
name: string;
|
|
73
81
|
/**
|
|
74
82
|
* This resource's privacy setting. Unlisted resources do not appear on profile
|
|
75
83
|
* pages or elsewhere, but you can link to them.
|
|
76
84
|
*/
|
|
77
85
|
privacy: 'public' | 'unlisted' | 'private';
|
|
78
|
-
/**
|
|
79
|
-
* The URL of this resource on the Val Town website
|
|
80
|
-
*/
|
|
81
|
-
valTownUrl: string;
|
|
82
86
|
}
|
|
83
87
|
export declare namespace ProjectListResponse {
|
|
84
88
|
interface Author {
|
|
85
89
|
id: string;
|
|
86
90
|
username: string | null;
|
|
87
91
|
}
|
|
92
|
+
interface Links {
|
|
93
|
+
/**
|
|
94
|
+
* The URL of this resource on Val Town
|
|
95
|
+
*/
|
|
96
|
+
html: string;
|
|
97
|
+
/**
|
|
98
|
+
* The URL of this resource on this API
|
|
99
|
+
*/
|
|
100
|
+
self: string;
|
|
101
|
+
}
|
|
88
102
|
}
|
|
89
103
|
export interface ProjectListParams extends PageCursorURLParams {
|
|
90
104
|
}
|
|
91
105
|
export declare namespace Projects {
|
|
92
106
|
export { type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, ProjectListResponsesPageCursorURL as ProjectListResponsesPageCursorURL, type ProjectListParams as ProjectListParams, };
|
|
93
107
|
export { Branches as Branches, type BranchRetrieveResponse as BranchRetrieveResponse, type BranchListResponse as BranchListResponse, BranchListResponsesPageCursorURL as BranchListResponsesPageCursorURL, type BranchListParams as BranchListParams, };
|
|
94
|
-
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, };
|
|
95
109
|
}
|
|
96
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":[],"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,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,EACN,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,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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
|
}
|
|
@@ -41,6 +41,8 @@ export interface ProjectListResponse {
|
|
|
41
41
|
*/
|
|
42
42
|
imageUrl: string | null;
|
|
43
43
|
|
|
44
|
+
links: ProjectListResponse.Links;
|
|
45
|
+
|
|
44
46
|
name: string;
|
|
45
47
|
|
|
46
48
|
/**
|
|
@@ -48,11 +50,6 @@ export interface ProjectListResponse {
|
|
|
48
50
|
* pages or elsewhere, but you can link to them.
|
|
49
51
|
*/
|
|
50
52
|
privacy: 'public' | 'unlisted' | 'private';
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* The URL of this resource on the Val Town website
|
|
54
|
-
*/
|
|
55
|
-
valTownUrl: string;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
export namespace ProjectListResponse {
|
|
@@ -61,6 +58,18 @@ export namespace ProjectListResponse {
|
|
|
61
58
|
|
|
62
59
|
username: string | null;
|
|
63
60
|
}
|
|
61
|
+
|
|
62
|
+
export interface Links {
|
|
63
|
+
/**
|
|
64
|
+
* The URL of this resource on Val Town
|
|
65
|
+
*/
|
|
66
|
+
html: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The URL of this resource on this API
|
|
70
|
+
*/
|
|
71
|
+
self: string;
|
|
72
|
+
}
|
|
64
73
|
}
|
|
65
74
|
|
|
66
75
|
export interface ProjectListParams extends PageCursorURLParams {}
|
|
@@ -49,18 +49,29 @@ export interface BranchRetrieveResponse {
|
|
|
49
49
|
*/
|
|
50
50
|
forkedBranchId: string | null;
|
|
51
51
|
|
|
52
|
+
links: BranchRetrieveResponse.Links;
|
|
53
|
+
|
|
52
54
|
name: string;
|
|
53
55
|
|
|
54
56
|
updatedAt: string;
|
|
55
57
|
|
|
56
|
-
/**
|
|
57
|
-
* The URL of this resource on the Val Town website
|
|
58
|
-
*/
|
|
59
|
-
valTownUrl: string;
|
|
60
|
-
|
|
61
58
|
version: number;
|
|
62
59
|
}
|
|
63
60
|
|
|
61
|
+
export namespace BranchRetrieveResponse {
|
|
62
|
+
export interface Links {
|
|
63
|
+
/**
|
|
64
|
+
* The URL of this resource on Val Town
|
|
65
|
+
*/
|
|
66
|
+
html: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The URL of this resource on this API
|
|
70
|
+
*/
|
|
71
|
+
self: string;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
64
75
|
/**
|
|
65
76
|
* A Branch
|
|
66
77
|
*/
|
|
@@ -77,18 +88,29 @@ export interface BranchListResponse {
|
|
|
77
88
|
*/
|
|
78
89
|
forkedBranchId: string | null;
|
|
79
90
|
|
|
91
|
+
links: BranchListResponse.Links;
|
|
92
|
+
|
|
80
93
|
name: string;
|
|
81
94
|
|
|
82
95
|
updatedAt: string;
|
|
83
96
|
|
|
84
|
-
/**
|
|
85
|
-
* The URL of this resource on the Val Town website
|
|
86
|
-
*/
|
|
87
|
-
valTownUrl: string;
|
|
88
|
-
|
|
89
97
|
version: number;
|
|
90
98
|
}
|
|
91
99
|
|
|
100
|
+
export namespace BranchListResponse {
|
|
101
|
+
export interface Links {
|
|
102
|
+
/**
|
|
103
|
+
* The URL of this resource on Val Town
|
|
104
|
+
*/
|
|
105
|
+
html: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The URL of this resource on this API
|
|
109
|
+
*/
|
|
110
|
+
self: string;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
92
114
|
export interface BranchListParams extends PageCursorURLParams {}
|
|
93
115
|
|
|
94
116
|
Branches.BranchListResponsesPageCursorURL = BranchListResponsesPageCursorURL;
|
|
@@ -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
|
*/
|
|
@@ -46,16 +161,52 @@ export interface FileListResponse {
|
|
|
46
161
|
|
|
47
162
|
export namespace FileListResponse {
|
|
48
163
|
export interface Links {
|
|
49
|
-
|
|
50
|
-
|
|
164
|
+
/**
|
|
165
|
+
* The URL of this resource on Val Town
|
|
166
|
+
*/
|
|
51
167
|
html: string;
|
|
52
168
|
|
|
169
|
+
/**
|
|
170
|
+
* The URL of this resource's source code as a module
|
|
171
|
+
*/
|
|
53
172
|
module: string;
|
|
54
173
|
|
|
55
|
-
|
|
174
|
+
/**
|
|
175
|
+
* The URL of this resource on this API
|
|
176
|
+
*/
|
|
177
|
+
self: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* This resource's web endpoint, where it serves a website or API
|
|
181
|
+
*/
|
|
182
|
+
endpoint?: string;
|
|
56
183
|
}
|
|
57
184
|
}
|
|
58
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
|
+
|
|
59
210
|
export interface FileListParams extends PageCursorURLParams {
|
|
60
211
|
/**
|
|
61
212
|
* Id to query
|
|
@@ -73,12 +224,53 @@ export interface FileListParams extends PageCursorURLParams {
|
|
|
73
224
|
version?: number;
|
|
74
225
|
}
|
|
75
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
|
+
|
|
76
264
|
Files.FileListResponsesPageCursorURL = FileListResponsesPageCursorURL;
|
|
77
265
|
|
|
78
266
|
export declare namespace Files {
|
|
79
267
|
export {
|
|
268
|
+
type FileRetrieveResponse as FileRetrieveResponse,
|
|
80
269
|
type FileListResponse as FileListResponse,
|
|
270
|
+
type FileContentResponse as FileContentResponse,
|
|
81
271
|
FileListResponsesPageCursorURL as FileListResponsesPageCursorURL,
|
|
272
|
+
type FileRetrieveParams as FileRetrieveParams,
|
|
82
273
|
type FileListParams as FileListParams,
|
|
274
|
+
type FileContentParams as FileContentParams,
|
|
83
275
|
};
|
|
84
276
|
}
|