@valtown/sdk 0.36.0 → 0.38.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 +38 -0
- package/core.js.map +1 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +8 -29
- package/resources/alias/username/val-name.d.ts +1 -0
- package/resources/alias/username/val-name.d.ts.map +1 -1
- package/resources/alias/username.d.ts +2 -0
- package/resources/alias/username.d.ts.map +1 -0
- package/resources/alias/username.js +19 -0
- package/resources/alias/username.js.map +1 -0
- package/resources/alias/username.mjs +3 -0
- package/resources/alias/username.mjs.map +1 -0
- package/resources/alias.d.ts +2 -0
- package/resources/alias.d.ts.map +1 -0
- package/resources/alias.js +19 -0
- package/resources/alias.js.map +1 -0
- package/resources/alias.mjs +3 -0
- package/resources/alias.mjs.map +1 -0
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.ts +2 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +19 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +3 -0
- package/resources/me.mjs.map +1 -0
- package/resources/projects/files.d.ts +53 -98
- package/resources/projects/files.d.ts.map +1 -1
- package/resources/projects/files.js +33 -37
- package/resources/projects/files.js.map +1 -1
- package/resources/projects/files.mjs +31 -35
- 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 +2 -2
- 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 -3
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +1 -1
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +2 -2
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/projects.d.ts +2 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +19 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +3 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/search.d.ts +2 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +19 -0
- package/resources/search.js.map +1 -0
- package/resources/search.mjs +3 -0
- package/resources/search.mjs.map +1 -0
- package/resources/shared.d.ts +2 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +19 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/resources/vals/index.d.ts +1 -1
- package/resources/vals/index.d.ts.map +1 -1
- package/resources/vals/index.js.map +1 -1
- package/resources/vals/index.mjs.map +1 -1
- package/resources/vals/vals.d.ts +34 -1
- package/resources/vals/vals.d.ts.map +1 -1
- package/resources/vals/vals.js +6 -0
- package/resources/vals/vals.js.map +1 -1
- package/resources/vals/vals.mjs +6 -0
- package/resources/vals/vals.mjs.map +1 -1
- package/resources/vals.d.ts +2 -0
- package/resources/vals.d.ts.map +1 -0
- package/resources/vals.js +19 -0
- package/resources/vals.js.map +1 -0
- package/resources/vals.mjs +3 -0
- package/resources/vals.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/core.ts +1 -1
- package/src/index.ts +4 -0
- package/src/resources/alias/username/val-name.ts +2 -0
- package/src/resources/alias/username.ts +3 -0
- package/src/resources/alias.ts +3 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/me.ts +3 -0
- package/src/resources/projects/files.ts +70 -173
- package/src/resources/projects/index.ts +1 -3
- package/src/resources/projects/projects.ts +3 -9
- package/src/resources/projects.ts +3 -0
- package/src/resources/search.ts +3 -0
- package/src/resources/shared.ts +4 -0
- package/src/resources/users.ts +3 -0
- package/src/resources/vals/index.ts +2 -0
- package/src/resources/vals/vals.ts +44 -0
- package/src/resources/vals.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC"}
|
package/resources/me.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./me/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=me.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,gDAA2B"}
|
package/resources/me.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.mjs","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
|
-
import * as Shared from "../shared.js";
|
|
4
3
|
import { PageCursorURL, type PageCursorURLParams } from "../../pagination.js";
|
|
5
4
|
import { type Response } from "../../_shims/index.js";
|
|
6
5
|
export declare class Files extends APIResource {
|
|
7
6
|
/**
|
|
8
7
|
* [BETA] Create a new file, project val or directory
|
|
9
8
|
*/
|
|
10
|
-
create(projectId: string,
|
|
9
|
+
create(projectId: string, params: FileCreateParams, options?: Core.RequestOptions): Core.APIPromise<FileCreateResponse>;
|
|
11
10
|
/**
|
|
12
|
-
* Get metadata for files and directories in a project
|
|
11
|
+
* Get metadata for files and directories in a project. If path is an empty string,
|
|
12
|
+
* returns files at the root directory.
|
|
13
13
|
*/
|
|
14
|
-
retrieve(projectId: string,
|
|
14
|
+
retrieve(projectId: string, query: FileRetrieveParams, options?: Core.RequestOptions): Core.PagePromise<FileRetrieveResponsesPageCursorURL, FileRetrieveResponse>;
|
|
15
15
|
/**
|
|
16
16
|
* [BETA] Update a file's content
|
|
17
17
|
*/
|
|
18
|
-
update(projectId: string,
|
|
19
|
-
update(projectId: string, path: string, options?: Core.RequestOptions): Core.APIPromise<FileUpdateResponse>;
|
|
18
|
+
update(projectId: string, params: FileUpdateParams, options?: Core.RequestOptions): Core.APIPromise<FileUpdateResponse>;
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
20
|
+
* [BETA] Deletes a file or a directory. To delete a directory and all of its
|
|
21
|
+
* children, use the recursive flag. To delete all files, pass in an empty path and
|
|
22
|
+
* the recursive flag.
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* [BETA] Deletes a file or all files in a directory. Deleting a directory will
|
|
26
|
-
* also delete all of its children.
|
|
27
|
-
*/
|
|
28
|
-
delete(projectId: string, path: string, params?: FileDeleteParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
29
|
-
delete(projectId: string, path: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
24
|
+
delete(projectId: string, params: FileDeleteParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
30
25
|
/**
|
|
31
26
|
* Download file content
|
|
32
27
|
*/
|
|
33
|
-
getContent(projectId: string,
|
|
34
|
-
getContent(projectId: string, path: string, options?: Core.RequestOptions): Core.APIPromise<Response>;
|
|
28
|
+
getContent(projectId: string, params: FileGetContentParams, options?: Core.RequestOptions): Core.APIPromise<Response>;
|
|
35
29
|
}
|
|
36
|
-
export declare class
|
|
30
|
+
export declare class FileRetrieveResponsesPageCursorURL extends PageCursorURL<FileRetrieveResponse> {
|
|
37
31
|
}
|
|
38
32
|
/**
|
|
39
33
|
* A File or Directory's Metadata
|
|
@@ -74,66 +68,15 @@ export declare namespace FileCreateResponse {
|
|
|
74
68
|
endpoint?: string;
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
|
-
/**
|
|
78
|
-
* A paginated result set
|
|
79
|
-
*/
|
|
80
|
-
export interface FileRetrieveResponse {
|
|
81
|
-
data: Array<FileRetrieveResponse.Data>;
|
|
82
|
-
/**
|
|
83
|
-
* Links to use for pagination
|
|
84
|
-
*/
|
|
85
|
-
links: Shared.PaginationLinks;
|
|
86
|
-
}
|
|
87
|
-
export declare namespace FileRetrieveResponse {
|
|
88
|
-
/**
|
|
89
|
-
* A File or Directory's Metadata
|
|
90
|
-
*/
|
|
91
|
-
interface Data {
|
|
92
|
-
/**
|
|
93
|
-
* The id of the resource
|
|
94
|
-
*/
|
|
95
|
-
id: string;
|
|
96
|
-
links: Data.Links;
|
|
97
|
-
name: string;
|
|
98
|
-
/**
|
|
99
|
-
* The id of the parent resource
|
|
100
|
-
*/
|
|
101
|
-
parentId: string | null;
|
|
102
|
-
path: string;
|
|
103
|
-
type: 'directory' | 'file' | 'interval' | 'http' | 'email' | 'script';
|
|
104
|
-
updatedAt: string;
|
|
105
|
-
version: number;
|
|
106
|
-
}
|
|
107
|
-
namespace Data {
|
|
108
|
-
interface Links {
|
|
109
|
-
/**
|
|
110
|
-
* The URL of this resource on Val Town
|
|
111
|
-
*/
|
|
112
|
-
html: string;
|
|
113
|
-
/**
|
|
114
|
-
* The URL of this resource's source code as a module
|
|
115
|
-
*/
|
|
116
|
-
module: string;
|
|
117
|
-
/**
|
|
118
|
-
* The URL of this resource on this API
|
|
119
|
-
*/
|
|
120
|
-
self: string;
|
|
121
|
-
/**
|
|
122
|
-
* This resource's web endpoint, where it serves a website or API
|
|
123
|
-
*/
|
|
124
|
-
endpoint?: string;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
71
|
/**
|
|
129
72
|
* A File or Directory's Metadata
|
|
130
73
|
*/
|
|
131
|
-
export interface
|
|
74
|
+
export interface FileRetrieveResponse {
|
|
132
75
|
/**
|
|
133
76
|
* The id of the resource
|
|
134
77
|
*/
|
|
135
78
|
id: string;
|
|
136
|
-
links:
|
|
79
|
+
links: FileRetrieveResponse.Links;
|
|
137
80
|
name: string;
|
|
138
81
|
/**
|
|
139
82
|
* The id of the parent resource
|
|
@@ -144,7 +87,7 @@ export interface FileUpdateResponse {
|
|
|
144
87
|
updatedAt: string;
|
|
145
88
|
version: number;
|
|
146
89
|
}
|
|
147
|
-
export declare namespace
|
|
90
|
+
export declare namespace FileRetrieveResponse {
|
|
148
91
|
interface Links {
|
|
149
92
|
/**
|
|
150
93
|
* The URL of this resource on Val Town
|
|
@@ -167,12 +110,12 @@ export declare namespace FileUpdateResponse {
|
|
|
167
110
|
/**
|
|
168
111
|
* A File or Directory's Metadata
|
|
169
112
|
*/
|
|
170
|
-
export interface
|
|
113
|
+
export interface FileUpdateResponse {
|
|
171
114
|
/**
|
|
172
115
|
* The id of the resource
|
|
173
116
|
*/
|
|
174
117
|
id: string;
|
|
175
|
-
links:
|
|
118
|
+
links: FileUpdateResponse.Links;
|
|
176
119
|
name: string;
|
|
177
120
|
/**
|
|
178
121
|
* The id of the parent resource
|
|
@@ -183,7 +126,7 @@ export interface FileListResponse {
|
|
|
183
126
|
updatedAt: string;
|
|
184
127
|
version: number;
|
|
185
128
|
}
|
|
186
|
-
export declare namespace
|
|
129
|
+
export declare namespace FileUpdateResponse {
|
|
187
130
|
interface Links {
|
|
188
131
|
/**
|
|
189
132
|
* The URL of this resource on Val Town
|
|
@@ -206,6 +149,11 @@ export declare namespace FileListResponse {
|
|
|
206
149
|
export type FileCreateParams = FileCreateParams.Variant0 | FileCreateParams.Variant1;
|
|
207
150
|
export declare namespace FileCreateParams {
|
|
208
151
|
interface Variant0 {
|
|
152
|
+
/**
|
|
153
|
+
* Query param: Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an
|
|
154
|
+
* empty string to represent the root directory.
|
|
155
|
+
*/
|
|
156
|
+
path: string;
|
|
209
157
|
/**
|
|
210
158
|
* Body param:
|
|
211
159
|
*/
|
|
@@ -221,6 +169,11 @@ export declare namespace FileCreateParams {
|
|
|
221
169
|
content?: null;
|
|
222
170
|
}
|
|
223
171
|
interface Variant1 {
|
|
172
|
+
/**
|
|
173
|
+
* Query param: Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an
|
|
174
|
+
* empty string to represent the root directory.
|
|
175
|
+
*/
|
|
176
|
+
path: string;
|
|
224
177
|
/**
|
|
225
178
|
* Body param: Project file and val content. An empty string will create an empty
|
|
226
179
|
* file. When creating a directory, the content should be null or undefined.
|
|
@@ -237,25 +190,31 @@ export declare namespace FileCreateParams {
|
|
|
237
190
|
branch_id?: string;
|
|
238
191
|
}
|
|
239
192
|
}
|
|
240
|
-
export interface FileRetrieveParams {
|
|
241
|
-
/**
|
|
242
|
-
* Maximum items to return in each paginated response
|
|
243
|
-
*/
|
|
244
|
-
limit: number;
|
|
193
|
+
export interface FileRetrieveParams extends PageCursorURLParams {
|
|
245
194
|
/**
|
|
246
|
-
*
|
|
195
|
+
* Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an empty string
|
|
196
|
+
* to represent the root directory.
|
|
247
197
|
*/
|
|
248
|
-
|
|
198
|
+
path: string;
|
|
249
199
|
/**
|
|
250
200
|
* Id to query
|
|
251
201
|
*/
|
|
252
202
|
branch_id?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Whether to recursively act on all files in the project
|
|
205
|
+
*/
|
|
206
|
+
recursive?: boolean;
|
|
253
207
|
/**
|
|
254
208
|
* Specific branch version to query
|
|
255
209
|
*/
|
|
256
210
|
version?: number;
|
|
257
211
|
}
|
|
258
212
|
export interface FileUpdateParams {
|
|
213
|
+
/**
|
|
214
|
+
* Query param: Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an
|
|
215
|
+
* empty string to represent the root directory.
|
|
216
|
+
*/
|
|
217
|
+
path: string;
|
|
259
218
|
/**
|
|
260
219
|
* Query param: The specified branch of the resource. Defaults to main if not
|
|
261
220
|
* provided.
|
|
@@ -279,31 +238,27 @@ export interface FileUpdateParams {
|
|
|
279
238
|
*/
|
|
280
239
|
type?: 'file' | 'interval' | 'http' | 'email' | 'script';
|
|
281
240
|
}
|
|
282
|
-
export interface
|
|
283
|
-
/**
|
|
284
|
-
* Id to query
|
|
285
|
-
*/
|
|
286
|
-
branch_id?: string;
|
|
287
|
-
/**
|
|
288
|
-
* Whether to recursively list all files in the project
|
|
289
|
-
*/
|
|
290
|
-
recursive?: boolean;
|
|
241
|
+
export interface FileDeleteParams {
|
|
291
242
|
/**
|
|
292
|
-
*
|
|
243
|
+
* Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an empty string
|
|
244
|
+
* to represent the root directory.
|
|
293
245
|
*/
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
export interface FileDeleteParams {
|
|
246
|
+
path: string;
|
|
297
247
|
/**
|
|
298
|
-
*
|
|
248
|
+
* The specified branch of the resource. Defaults to main if not provided.
|
|
299
249
|
*/
|
|
300
250
|
branch_id?: string;
|
|
301
251
|
/**
|
|
302
|
-
*
|
|
252
|
+
* Whether to recursively act on all files in the project
|
|
303
253
|
*/
|
|
304
|
-
|
|
254
|
+
recursive?: boolean;
|
|
305
255
|
}
|
|
306
256
|
export interface FileGetContentParams {
|
|
257
|
+
/**
|
|
258
|
+
* Query param: Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an
|
|
259
|
+
* empty string to represent the root directory.
|
|
260
|
+
*/
|
|
261
|
+
path: string;
|
|
307
262
|
/**
|
|
308
263
|
* Query param: Id to query
|
|
309
264
|
*/
|
|
@@ -334,6 +289,6 @@ export interface FileGetContentParams {
|
|
|
334
289
|
'If-Unmodified-Since'?: string;
|
|
335
290
|
}
|
|
336
291
|
export declare namespace Files {
|
|
337
|
-
export { type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileUpdateResponse as FileUpdateResponse,
|
|
292
|
+
export { type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileUpdateResponse as FileUpdateResponse, FileRetrieveResponsesPageCursorURL as FileRetrieveResponsesPageCursorURL, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileDeleteParams as FileDeleteParams, type FileGetContentParams as FileGetContentParams, };
|
|
338
293
|
}
|
|
339
294
|
//# 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/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,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,kCAAkC,IAAI,kCAAkC,EACxE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,65 +1,61 @@
|
|
|
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.
|
|
4
|
+
exports.FileRetrieveResponsesPageCursorURL = exports.Files = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
|
-
const core_1 = require("../../core.js");
|
|
7
6
|
const pagination_1 = require("../../pagination.js");
|
|
8
7
|
class Files extends resource_1.APIResource {
|
|
9
8
|
/**
|
|
10
9
|
* [BETA] Create a new file, project val or directory
|
|
11
10
|
*/
|
|
12
|
-
create(projectId,
|
|
13
|
-
const { branch_id, ...body } = params;
|
|
14
|
-
return this._client.post(`/v1/projects/${projectId}/files
|
|
15
|
-
query: { branch_id },
|
|
11
|
+
create(projectId, params, options) {
|
|
12
|
+
const { path, branch_id, ...body } = params;
|
|
13
|
+
return this._client.post(`/v1/projects/${projectId}/files`, {
|
|
14
|
+
query: { path, branch_id },
|
|
16
15
|
body,
|
|
17
16
|
...options,
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
|
-
* Get metadata for files and directories in a project
|
|
20
|
+
* Get metadata for files and directories in a project. If path is an empty string,
|
|
21
|
+
* returns files at the root directory.
|
|
22
22
|
*/
|
|
23
|
-
retrieve(projectId,
|
|
24
|
-
return this._client.
|
|
25
|
-
|
|
26
|
-
update(projectId, path, params = {}, options) {
|
|
27
|
-
if ((0, core_1.isRequestOptions)(params)) {
|
|
28
|
-
return this.update(projectId, path, {}, params);
|
|
29
|
-
}
|
|
30
|
-
const { branch_id, ...body } = params;
|
|
31
|
-
return this._client.put(`/v1/projects/${projectId}/files/${path}`, {
|
|
32
|
-
query: { branch_id },
|
|
33
|
-
body,
|
|
23
|
+
retrieve(projectId, query, options) {
|
|
24
|
+
return this._client.getAPIList(`/v1/projects/${projectId}/files`, FileRetrieveResponsesPageCursorURL, {
|
|
25
|
+
query,
|
|
34
26
|
...options,
|
|
35
27
|
});
|
|
36
28
|
}
|
|
37
29
|
/**
|
|
38
|
-
*
|
|
30
|
+
* [BETA] Update a file's content
|
|
39
31
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
update(projectId, params, options) {
|
|
33
|
+
const { path, branch_id, ...body } = params;
|
|
34
|
+
return this._client.put(`/v1/projects/${projectId}/files`, {
|
|
35
|
+
query: { path, branch_id },
|
|
36
|
+
body,
|
|
43
37
|
...options,
|
|
44
38
|
});
|
|
45
39
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
40
|
+
/**
|
|
41
|
+
* [BETA] Deletes a file or a directory. To delete a directory and all of its
|
|
42
|
+
* children, use the recursive flag. To delete all files, pass in an empty path and
|
|
43
|
+
* the recursive flag.
|
|
44
|
+
*/
|
|
45
|
+
delete(projectId, params, options) {
|
|
46
|
+
const { path, branch_id, recursive } = params;
|
|
47
|
+
return this._client.delete(`/v1/projects/${projectId}/files`, {
|
|
48
|
+
query: { path, branch_id, recursive },
|
|
53
49
|
...options,
|
|
54
50
|
headers: { Accept: '*/*', ...options?.headers },
|
|
55
51
|
});
|
|
56
52
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Download file content
|
|
55
|
+
*/
|
|
56
|
+
getContent(projectId, params, options) {
|
|
61
57
|
const { 'Cache-Control': cacheControl, 'If-Match': ifMatch, 'If-Modified-Since': ifModifiedSince, 'If-None-Match': ifNoneMatch, 'If-Unmodified-Since': ifUnmodifiedSince, ...query } = params;
|
|
62
|
-
return this._client.get(`/v1/projects/${projectId}/files
|
|
58
|
+
return this._client.get(`/v1/projects/${projectId}/files/content`, {
|
|
63
59
|
query,
|
|
64
60
|
...options,
|
|
65
61
|
headers: {
|
|
@@ -76,8 +72,8 @@ class Files extends resource_1.APIResource {
|
|
|
76
72
|
}
|
|
77
73
|
}
|
|
78
74
|
exports.Files = Files;
|
|
79
|
-
class
|
|
75
|
+
class FileRetrieveResponsesPageCursorURL extends pagination_1.PageCursorURL {
|
|
80
76
|
}
|
|
81
|
-
exports.
|
|
82
|
-
Files.
|
|
77
|
+
exports.FileRetrieveResponsesPageCursorURL = FileRetrieveResponsesPageCursorURL;
|
|
78
|
+
Files.FileRetrieveResponsesPageCursorURL = FileRetrieveResponsesPageCursorURL;
|
|
83
79
|
//# sourceMappingURL=files.js.map
|
|
@@ -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;AAE7C,oDAA2E;AAG3E,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,MAAwB,EACxB,OAA6B;QAE7B,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,SAAS,QAAQ,EAAE;YAC1D,KAAK,EAAE,EAAE,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,GAAG,KAAK,EACT,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,SAAS,gBAAgB,EAAE;YACjE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE;gBACP,MAAM,EAAE,0BAA0B;gBAClC,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;YACD,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AA7FD,sBA6FC;AAED,MAAa,kCAAmC,SAAQ,0BAAmC;CAAG;AAA9F,gFAA8F;AAuU9F,KAAK,CAAC,kCAAkC,GAAG,kCAAkC,CAAC"}
|
|
@@ -1,62 +1,58 @@
|
|
|
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";
|
|
4
3
|
import { PageCursorURL } from "../../pagination.mjs";
|
|
5
4
|
export class Files extends APIResource {
|
|
6
5
|
/**
|
|
7
6
|
* [BETA] Create a new file, project val or directory
|
|
8
7
|
*/
|
|
9
|
-
create(projectId,
|
|
10
|
-
const { branch_id, ...body } = params;
|
|
11
|
-
return this._client.post(`/v1/projects/${projectId}/files
|
|
12
|
-
query: { branch_id },
|
|
8
|
+
create(projectId, params, options) {
|
|
9
|
+
const { path, branch_id, ...body } = params;
|
|
10
|
+
return this._client.post(`/v1/projects/${projectId}/files`, {
|
|
11
|
+
query: { path, branch_id },
|
|
13
12
|
body,
|
|
14
13
|
...options,
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
18
|
-
* Get metadata for files and directories in a project
|
|
17
|
+
* Get metadata for files and directories in a project. If path is an empty string,
|
|
18
|
+
* returns files at the root directory.
|
|
19
19
|
*/
|
|
20
|
-
retrieve(projectId,
|
|
21
|
-
return this._client.
|
|
22
|
-
|
|
23
|
-
update(projectId, path, params = {}, options) {
|
|
24
|
-
if (isRequestOptions(params)) {
|
|
25
|
-
return this.update(projectId, path, {}, params);
|
|
26
|
-
}
|
|
27
|
-
const { branch_id, ...body } = params;
|
|
28
|
-
return this._client.put(`/v1/projects/${projectId}/files/${path}`, {
|
|
29
|
-
query: { branch_id },
|
|
30
|
-
body,
|
|
20
|
+
retrieve(projectId, query, options) {
|
|
21
|
+
return this._client.getAPIList(`/v1/projects/${projectId}/files`, FileRetrieveResponsesPageCursorURL, {
|
|
22
|
+
query,
|
|
31
23
|
...options,
|
|
32
24
|
});
|
|
33
25
|
}
|
|
34
26
|
/**
|
|
35
|
-
*
|
|
27
|
+
* [BETA] Update a file's content
|
|
36
28
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
update(projectId, params, options) {
|
|
30
|
+
const { path, branch_id, ...body } = params;
|
|
31
|
+
return this._client.put(`/v1/projects/${projectId}/files`, {
|
|
32
|
+
query: { path, branch_id },
|
|
33
|
+
body,
|
|
40
34
|
...options,
|
|
41
35
|
});
|
|
42
36
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
/**
|
|
38
|
+
* [BETA] Deletes a file or a directory. To delete a directory and all of its
|
|
39
|
+
* children, use the recursive flag. To delete all files, pass in an empty path and
|
|
40
|
+
* the recursive flag.
|
|
41
|
+
*/
|
|
42
|
+
delete(projectId, params, options) {
|
|
43
|
+
const { path, branch_id, recursive } = params;
|
|
44
|
+
return this._client.delete(`/v1/projects/${projectId}/files`, {
|
|
45
|
+
query: { path, branch_id, recursive },
|
|
50
46
|
...options,
|
|
51
47
|
headers: { Accept: '*/*', ...options?.headers },
|
|
52
48
|
});
|
|
53
49
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Download file content
|
|
52
|
+
*/
|
|
53
|
+
getContent(projectId, params, options) {
|
|
58
54
|
const { 'Cache-Control': cacheControl, 'If-Match': ifMatch, 'If-Modified-Since': ifModifiedSince, 'If-None-Match': ifNoneMatch, 'If-Unmodified-Since': ifUnmodifiedSince, ...query } = params;
|
|
59
|
-
return this._client.get(`/v1/projects/${projectId}/files
|
|
55
|
+
return this._client.get(`/v1/projects/${projectId}/files/content`, {
|
|
60
56
|
query,
|
|
61
57
|
...options,
|
|
62
58
|
headers: {
|
|
@@ -72,7 +68,7 @@ export class Files extends APIResource {
|
|
|
72
68
|
});
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
|
-
export class
|
|
71
|
+
export class FileRetrieveResponsesPageCursorURL extends PageCursorURL {
|
|
76
72
|
}
|
|
77
|
-
Files.
|
|
73
|
+
Files.FileRetrieveResponsesPageCursorURL = FileRetrieveResponsesPageCursorURL;
|
|
78
74
|
//# sourceMappingURL=files.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/projects/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EA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AAO,EAAE,OAAO;aACpB;YACD,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,kCAAmC,SAAQ,aAAmC;CAAG;AAuU9F,KAAK,CAAC,kCAAkC,GAAG,kCAAkC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { BranchListResponsesPageCursorURL, Branches, type BranchCreateResponse, type BranchRetrieveResponse, type BranchListResponse, type BranchCreateParams, type BranchListParams, } from "./branches.js";
|
|
2
|
-
export {
|
|
2
|
+
export { FileRetrieveResponsesPageCursorURL, Files, type FileCreateResponse, type FileRetrieveResponse, type FileUpdateResponse, type FileCreateParams, type FileRetrieveParams, type FileUpdateParams, type FileDeleteParams, type FileGetContentParams, } from "./files.js";
|
|
3
3
|
export { ProjectListResponsesPageCursorURL, Projects, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectCreateParams, 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,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,kCAAkC,EAClC,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,iCAAiC,EACjC,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
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.Projects = exports.ProjectListResponsesPageCursorURL = exports.Files = exports.
|
|
4
|
+
exports.Projects = exports.ProjectListResponsesPageCursorURL = exports.Files = exports.FileRetrieveResponsesPageCursorURL = exports.Branches = exports.BranchListResponsesPageCursorURL = void 0;
|
|
5
5
|
var branches_1 = require("./branches.js");
|
|
6
6
|
Object.defineProperty(exports, "BranchListResponsesPageCursorURL", { enumerable: true, get: function () { return branches_1.BranchListResponsesPageCursorURL; } });
|
|
7
7
|
Object.defineProperty(exports, "Branches", { enumerable: true, get: function () { return branches_1.Branches; } });
|
|
8
8
|
var files_1 = require("./files.js");
|
|
9
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "FileRetrieveResponsesPageCursorURL", { enumerable: true, get: function () { return files_1.FileRetrieveResponsesPageCursorURL; } });
|
|
10
10
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
|
11
11
|
var projects_1 = require("./projects.js");
|
|
12
12
|
Object.defineProperty(exports, "ProjectListResponsesPageCursorURL", { enumerable: true, get: function () { return projects_1.ProjectListResponsesPageCursorURL; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAQoB;AAPlB,4HAAA,gCAAgC,OAAA;AAChC,oGAAA,QAAQ,OAAA;AAOV,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAQoB;AAPlB,4HAAA,gCAAgC,OAAA;AAChC,oGAAA,QAAQ,OAAA;AAOV,oCAWiB;AAVf,2HAAA,kCAAkC,OAAA;AAClC,8FAAA,KAAK,OAAA;AAUP,0CAQoB;AAPlB,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 {
|
|
3
|
+
export { FileRetrieveResponsesPageCursorURL, 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,GAMT;OACM,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gCAAgC,EAChC,QAAQ,GAMT;OACM,EACL,kCAAkC,EAClC,KAAK,GASN;OACM,EACL,iCAAiC,EACjC,QAAQ,GAMT"}
|