@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.
Files changed (117) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/core.js.map +1 -1
  3. package/core.mjs.map +1 -1
  4. package/index.d.mts +2 -2
  5. package/index.d.ts +2 -2
  6. package/index.d.ts.map +1 -1
  7. package/index.js.map +1 -1
  8. package/index.mjs.map +1 -1
  9. package/package.json +8 -29
  10. package/resources/alias/username/val-name.d.ts +1 -0
  11. package/resources/alias/username/val-name.d.ts.map +1 -1
  12. package/resources/alias/username.d.ts +2 -0
  13. package/resources/alias/username.d.ts.map +1 -0
  14. package/resources/alias/username.js +19 -0
  15. package/resources/alias/username.js.map +1 -0
  16. package/resources/alias/username.mjs +3 -0
  17. package/resources/alias/username.mjs.map +1 -0
  18. package/resources/alias.d.ts +2 -0
  19. package/resources/alias.d.ts.map +1 -0
  20. package/resources/alias.js +19 -0
  21. package/resources/alias.js.map +1 -0
  22. package/resources/alias.mjs +3 -0
  23. package/resources/alias.mjs.map +1 -0
  24. package/resources/index.d.ts +1 -1
  25. package/resources/index.d.ts.map +1 -1
  26. package/resources/index.js.map +1 -1
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/me.d.ts +2 -0
  29. package/resources/me.d.ts.map +1 -0
  30. package/resources/me.js +19 -0
  31. package/resources/me.js.map +1 -0
  32. package/resources/me.mjs +3 -0
  33. package/resources/me.mjs.map +1 -0
  34. package/resources/projects/files.d.ts +53 -98
  35. package/resources/projects/files.d.ts.map +1 -1
  36. package/resources/projects/files.js +33 -37
  37. package/resources/projects/files.js.map +1 -1
  38. package/resources/projects/files.mjs +31 -35
  39. package/resources/projects/files.mjs.map +1 -1
  40. package/resources/projects/index.d.ts +1 -1
  41. package/resources/projects/index.d.ts.map +1 -1
  42. package/resources/projects/index.js +2 -2
  43. package/resources/projects/index.js.map +1 -1
  44. package/resources/projects/index.mjs +1 -1
  45. package/resources/projects/index.mjs.map +1 -1
  46. package/resources/projects/projects.d.ts +2 -3
  47. package/resources/projects/projects.d.ts.map +1 -1
  48. package/resources/projects/projects.js +1 -1
  49. package/resources/projects/projects.js.map +1 -1
  50. package/resources/projects/projects.mjs +2 -2
  51. package/resources/projects/projects.mjs.map +1 -1
  52. package/resources/projects.d.ts +2 -0
  53. package/resources/projects.d.ts.map +1 -0
  54. package/resources/projects.js +19 -0
  55. package/resources/projects.js.map +1 -0
  56. package/resources/projects.mjs +3 -0
  57. package/resources/projects.mjs.map +1 -0
  58. package/resources/search.d.ts +2 -0
  59. package/resources/search.d.ts.map +1 -0
  60. package/resources/search.js +19 -0
  61. package/resources/search.js.map +1 -0
  62. package/resources/search.mjs +3 -0
  63. package/resources/search.mjs.map +1 -0
  64. package/resources/shared.d.ts +2 -0
  65. package/resources/shared.d.ts.map +1 -1
  66. package/resources/shared.js.map +1 -1
  67. package/resources/shared.mjs.map +1 -1
  68. package/resources/users.d.ts +2 -0
  69. package/resources/users.d.ts.map +1 -0
  70. package/resources/users.js +19 -0
  71. package/resources/users.js.map +1 -0
  72. package/resources/users.mjs +3 -0
  73. package/resources/users.mjs.map +1 -0
  74. package/resources/vals/index.d.ts +1 -1
  75. package/resources/vals/index.d.ts.map +1 -1
  76. package/resources/vals/index.js.map +1 -1
  77. package/resources/vals/index.mjs.map +1 -1
  78. package/resources/vals/vals.d.ts +34 -1
  79. package/resources/vals/vals.d.ts.map +1 -1
  80. package/resources/vals/vals.js +6 -0
  81. package/resources/vals/vals.js.map +1 -1
  82. package/resources/vals/vals.mjs +6 -0
  83. package/resources/vals/vals.mjs.map +1 -1
  84. package/resources/vals.d.ts +2 -0
  85. package/resources/vals.d.ts.map +1 -0
  86. package/resources/vals.js +19 -0
  87. package/resources/vals.js.map +1 -0
  88. package/resources/vals.mjs +3 -0
  89. package/resources/vals.mjs.map +1 -0
  90. package/resources.d.ts +2 -0
  91. package/resources.d.ts.map +1 -0
  92. package/resources.js +18 -0
  93. package/resources.js.map +1 -0
  94. package/resources.mjs +2 -0
  95. package/resources.mjs.map +1 -0
  96. package/src/core.ts +1 -1
  97. package/src/index.ts +4 -0
  98. package/src/resources/alias/username/val-name.ts +2 -0
  99. package/src/resources/alias/username.ts +3 -0
  100. package/src/resources/alias.ts +3 -0
  101. package/src/resources/index.ts +2 -0
  102. package/src/resources/me.ts +3 -0
  103. package/src/resources/projects/files.ts +70 -173
  104. package/src/resources/projects/index.ts +1 -3
  105. package/src/resources/projects/projects.ts +3 -9
  106. package/src/resources/projects.ts +3 -0
  107. package/src/resources/search.ts +3 -0
  108. package/src/resources/shared.ts +4 -0
  109. package/src/resources/users.ts +3 -0
  110. package/src/resources/vals/index.ts +2 -0
  111. package/src/resources/vals/vals.ts +44 -0
  112. package/src/resources/vals.ts +3 -0
  113. package/src/resources.ts +1 -0
  114. package/src/version.ts +1 -1
  115. package/version.d.ts +1 -1
  116. package/version.js +1 -1
  117. 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"}
@@ -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"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./me/index.mjs";
3
+ //# sourceMappingURL=me.mjs.map
@@ -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, path: string, params: FileCreateParams, options?: Core.RequestOptions): Core.APIPromise<FileCreateResponse>;
9
+ create(projectId: string, params: FileCreateParams, options?: Core.RequestOptions): Core.APIPromise<FileCreateResponse>;
11
10
  /**
12
- * Get metadata for files and directories in a project at the specified path
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, path: string, query: FileRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<FileRetrieveResponse>;
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, path: string, params?: FileUpdateParams, options?: Core.RequestOptions): Core.APIPromise<FileUpdateResponse>;
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
- * Get metadata for files and directories in a project at the root directory
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
- list(projectId: string, query: FileListParams, options?: Core.RequestOptions): Core.PagePromise<FileListResponsesPageCursorURL, FileListResponse>;
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, path: string, params?: FileGetContentParams, options?: Core.RequestOptions): Core.APIPromise<Response>;
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 FileListResponsesPageCursorURL extends PageCursorURL<FileListResponse> {
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 FileUpdateResponse {
74
+ export interface FileRetrieveResponse {
132
75
  /**
133
76
  * The id of the resource
134
77
  */
135
78
  id: string;
136
- links: FileUpdateResponse.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 FileUpdateResponse {
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 FileListResponse {
113
+ export interface FileUpdateResponse {
171
114
  /**
172
115
  * The id of the resource
173
116
  */
174
117
  id: string;
175
- links: FileListResponse.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 FileListResponse {
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
- * Number of items to skip in order to deliver paginated results
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
- offset: number;
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 FileListParams extends PageCursorURLParams {
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
- * Specific branch version to query
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
- version?: number;
295
- }
296
- export interface FileDeleteParams {
246
+ path: string;
297
247
  /**
298
- * Id to query
248
+ * The specified branch of the resource. Defaults to main if not provided.
299
249
  */
300
250
  branch_id?: string;
301
251
  /**
302
- * Specific branch version to query
252
+ * Whether to recursively act on all files in the project
303
253
  */
304
- version?: number;
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, type FileListResponse as FileListResponse, FileListResponsesPageCursorURL as FileListResponsesPageCursorURL, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileGetContentParams as FileGetContentParams, };
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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.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FileListResponsesPageCursorURL = exports.Files = void 0;
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, path, params, options) {
13
- const { branch_id, ...body } = params;
14
- return this._client.post(`/v1/projects/${projectId}/files/${path}`, {
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 at the specified path
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, path, query, options) {
24
- return this._client.get(`/v1/projects/${projectId}/files/${path}`, { query, ...options });
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
- * Get metadata for files and directories in a project at the root directory
30
+ * [BETA] Update a file's content
39
31
  */
40
- list(projectId, query, options) {
41
- return this._client.getAPIList(`/v1/projects/${projectId}/files`, FileListResponsesPageCursorURL, {
42
- query,
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
- delete(projectId, path, params = {}, options) {
47
- if ((0, core_1.isRequestOptions)(params)) {
48
- return this.delete(projectId, path, {}, params);
49
- }
50
- const { branch_id, version } = params;
51
- return this._client.delete(`/v1/projects/${projectId}/files/${path}`, {
52
- query: { branch_id, version },
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
- getContent(projectId, path, params = {}, options) {
58
- if ((0, core_1.isRequestOptions)(params)) {
59
- return this.getContent(projectId, path, {}, params);
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/${path}/content`, {
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 FileListResponsesPageCursorURL extends pagination_1.PageCursorURL {
75
+ class FileRetrieveResponsesPageCursorURL extends pagination_1.PageCursorURL {
80
76
  }
81
- exports.FileListResponsesPageCursorURL = FileListResponsesPageCursorURL;
82
- Files.FileListResponsesPageCursorURL = FileListResponsesPageCursorURL;
77
+ exports.FileRetrieveResponsesPageCursorURL = FileRetrieveResponsesPageCursorURL;
78
+ Files.FileRetrieveResponsesPageCursorURL = FileRetrieveResponsesPageCursorURL;
83
79
  //# sourceMappingURL=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iBAAiB,EACxC,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, path, params, options) {
10
- const { branch_id, ...body } = params;
11
- return this._client.post(`/v1/projects/${projectId}/files/${path}`, {
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 at the specified path
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, path, query, options) {
21
- return this._client.get(`/v1/projects/${projectId}/files/${path}`, { query, ...options });
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
- * Get metadata for files and directories in a project at the root directory
27
+ * [BETA] Update a file's content
36
28
  */
37
- list(projectId, query, options) {
38
- return this._client.getAPIList(`/v1/projects/${projectId}/files`, FileListResponsesPageCursorURL, {
39
- query,
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
- delete(projectId, path, params = {}, options) {
44
- if (isRequestOptions(params)) {
45
- return this.delete(projectId, path, {}, params);
46
- }
47
- const { branch_id, version } = params;
48
- return this._client.delete(`/v1/projects/${projectId}/files/${path}`, {
49
- query: { branch_id, version },
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
- getContent(projectId, path, params = {}, options) {
55
- if (isRequestOptions(params)) {
56
- return this.getContent(projectId, path, {}, params);
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/${path}/content`, {
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 FileListResponsesPageCursorURL extends PageCursorURL {
71
+ export class FileRetrieveResponsesPageCursorURL extends PageCursorURL {
76
72
  }
77
- Files.FileListResponsesPageCursorURL = FileListResponsesPageCursorURL;
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,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,aAAa,EAA4B;AAGlD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAY,EACZ,MAAwB,EACxB,OAA6B;QAE7B,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB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AC,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;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 { FileListResponsesPageCursorURL, Files, type FileCreateResponse, type FileRetrieveResponse, type FileUpdateResponse, type FileListResponse, type FileCreateParams, type FileRetrieveParams, type FileUpdateParams, type FileListParams, type FileDeleteParams, type FileGetContentParams, } from "./files.js";
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,8BAA8B,EAC9B,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,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
+ {"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.FileListResponsesPageCursorURL = exports.Branches = exports.BranchListResponsesPageCursorURL = void 0;
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, "FileListResponsesPageCursorURL", { enumerable: true, get: function () { return files_1.FileListResponsesPageCursorURL; } });
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,oCAaiB;AAZf,uHAAA,8BAA8B,OAAA;AAC9B,8FAAA,KAAK,OAAA;AAYP,0CAQoB;AAPlB,6HAAA,iCAAiC,OAAA;AACjC,oGAAA,QAAQ,OAAA"}
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 { FileListResponsesPageCursorURL, Files, } from "./files.mjs";
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,8BAA8B,EAC9B,KAAK,GAWN;OACM,EACL,iCAAiC,EACjC,QAAQ,GAMT"}
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"}