@valtown/sdk 0.36.0 → 0.37.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 +24 -0
- 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 +47 -74
- package/resources/projects/files.d.ts.map +1 -1
- package/resources/projects/files.js +28 -40
- package/resources/projects/files.js.map +1 -1
- package/resources/projects/files.mjs +27 -38
- 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 +1 -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 +0 -1
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +1 -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/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 +60 -147
- package/src/resources/projects/index.ts +0 -3
- package/src/resources/projects/projects.ts +0 -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
package/resources/vals/vals.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export declare class Vals extends APIResource {
|
|
|
21
21
|
*/
|
|
22
22
|
update(valId: string, body?: ValUpdateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
23
23
|
update(valId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* List all vals including all public vals and your unlisted and private vals
|
|
26
|
+
*/
|
|
27
|
+
list(query: ValListParams, options?: Core.RequestOptions): Core.APIPromise<ValListResponse>;
|
|
24
28
|
/**
|
|
25
29
|
* Delete a val
|
|
26
30
|
*/
|
|
@@ -34,6 +38,16 @@ export declare class Vals extends APIResource {
|
|
|
34
38
|
*/
|
|
35
39
|
createOrUpdate(body: ValCreateOrUpdateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
36
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* A paginated result set
|
|
43
|
+
*/
|
|
44
|
+
export interface ValListResponse {
|
|
45
|
+
data: Array<Shared.ExtendedVal>;
|
|
46
|
+
/**
|
|
47
|
+
* Links to use for pagination
|
|
48
|
+
*/
|
|
49
|
+
links: Shared.PaginationLinks;
|
|
50
|
+
}
|
|
37
51
|
/**
|
|
38
52
|
* The evaluation_id was successfully searched for and the evaluation was either
|
|
39
53
|
* already done or now has been cancelled
|
|
@@ -88,6 +102,25 @@ export interface ValUpdateParams {
|
|
|
88
102
|
*/
|
|
89
103
|
type?: 'httpnext' | 'http' | 'script' | 'email';
|
|
90
104
|
}
|
|
105
|
+
export interface ValListParams {
|
|
106
|
+
/**
|
|
107
|
+
* Maximum items to return in each paginated response
|
|
108
|
+
*/
|
|
109
|
+
limit: number;
|
|
110
|
+
/**
|
|
111
|
+
* Cursor to start the pagination from
|
|
112
|
+
*/
|
|
113
|
+
cursor?: string;
|
|
114
|
+
/**
|
|
115
|
+
* This resource's privacy setting. Unlisted resources do not appear on profile
|
|
116
|
+
* pages or elsewhere, but you can link to them.
|
|
117
|
+
*/
|
|
118
|
+
privacy?: 'public' | 'unlisted' | 'private';
|
|
119
|
+
/**
|
|
120
|
+
* User ID to filter by
|
|
121
|
+
*/
|
|
122
|
+
userId?: string;
|
|
123
|
+
}
|
|
91
124
|
export interface ValCreateOrUpdateParams {
|
|
92
125
|
/**
|
|
93
126
|
* Val source code as TypeScript
|
|
@@ -99,7 +132,7 @@ export interface ValCreateOrUpdateParams {
|
|
|
99
132
|
name: string;
|
|
100
133
|
}
|
|
101
134
|
export declare namespace Vals {
|
|
102
|
-
export { type ValCancelEvaluationResponse as ValCancelEvaluationResponse, type ValCreateParams as ValCreateParams, type ValUpdateParams as ValUpdateParams, type ValCreateOrUpdateParams as ValCreateOrUpdateParams, };
|
|
135
|
+
export { type ValListResponse as ValListResponse, type ValCancelEvaluationResponse as ValCancelEvaluationResponse, type ValCreateParams as ValCreateParams, type ValUpdateParams as ValUpdateParams, type ValListParams as ValListParams, type ValCreateOrUpdateParams as ValCreateOrUpdateParams, };
|
|
103
136
|
export { Versions as Versions, type VersionListResponse as VersionListResponse, VersionListResponsesPageCursorURL as VersionListResponsesPageCursorURL, type VersionCreateParams as VersionCreateParams, type VersionRetrieveParams as VersionRetrieveParams, type VersionListParams as VersionListParams, };
|
|
104
137
|
}
|
|
105
138
|
//# sourceMappingURL=vals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vals.d.ts","sourceRoot":"","sources":["../../src/resources/vals/vals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO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AS,CAAC;IAE5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACjD;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,iCAAiC,IAAI,iCAAiC,EACtE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/vals/vals.js
CHANGED
|
@@ -59,6 +59,12 @@ class Vals extends resource_1.APIResource {
|
|
|
59
59
|
headers: { Accept: '*/*', ...options?.headers },
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* List all vals including all public vals and your unlisted and private vals
|
|
64
|
+
*/
|
|
65
|
+
list(query, options) {
|
|
66
|
+
return this._client.get('/v1/vals', { query, ...options });
|
|
67
|
+
}
|
|
62
68
|
/**
|
|
63
69
|
* Delete a val
|
|
64
70
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vals.js","sourceRoot":"","sources":["../../src/resources/vals/vals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,2DAA0C;AAC1C,4CAOoB;AAEpB;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"vals.js","sourceRoot":"","sources":["../../src/resources/vals/vals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,2DAA0C;AAC1C,4CAOoB;AAEpB;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0E1E,CAAC;IAxEC;;OAEG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAa,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAOD,MAAM,CACJ,KAAa,EACb,OAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC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/resources/vals/vals.mjs
CHANGED
|
@@ -33,6 +33,12 @@ export class Vals extends APIResource {
|
|
|
33
33
|
headers: { Accept: '*/*', ...options?.headers },
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* List all vals including all public vals and your unlisted and private vals
|
|
38
|
+
*/
|
|
39
|
+
list(query, options) {
|
|
40
|
+
return this._client.get('/v1/vals', { query, ...options });
|
|
41
|
+
}
|
|
36
42
|
/**
|
|
37
43
|
* Delete a val
|
|
38
44
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vals.mjs","sourceRoot":"","sources":["../../src/resources/vals/vals.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,WAAW;OAChB,EAIL,iCAAiC,EAEjC,QAAQ,GACT;AAED;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"vals.mjs","sourceRoot":"","sources":["../../src/resources/vals/vals.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,WAAW;OAChB,EAIL,iCAAiC,EAEjC,QAAQ,GACT;AAED;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0E1E,CAAC;IAxEC;;OAEG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;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U,EAAE;YAClC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAiHD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,iCAAiC,GAAG,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vals.d.ts","sourceRoot":"","sources":["../src/resources/vals.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,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("./vals/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=vals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vals.js","sourceRoot":"","sources":["../src/resources/vals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,kDAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vals.mjs","sourceRoot":"","sources":["../src/resources/vals.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
package/resources.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=resources.js.map
|
package/resources.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAkC"}
|
package/resources.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/src/index.ts
CHANGED
|
@@ -27,6 +27,8 @@ import {
|
|
|
27
27
|
ValCancelEvaluationResponse,
|
|
28
28
|
ValCreateOrUpdateParams,
|
|
29
29
|
ValCreateParams,
|
|
30
|
+
ValListParams,
|
|
31
|
+
ValListResponse,
|
|
30
32
|
ValUpdateParams,
|
|
31
33
|
Vals,
|
|
32
34
|
} from './resources/vals/vals';
|
|
@@ -260,9 +262,11 @@ export declare namespace ValTown {
|
|
|
260
262
|
|
|
261
263
|
export {
|
|
262
264
|
Vals as Vals,
|
|
265
|
+
type ValListResponse as ValListResponse,
|
|
263
266
|
type ValCancelEvaluationResponse as ValCancelEvaluationResponse,
|
|
264
267
|
type ValCreateParams as ValCreateParams,
|
|
265
268
|
type ValUpdateParams as ValUpdateParams,
|
|
269
|
+
type ValListParams as ValListParams,
|
|
266
270
|
type ValCreateOrUpdateParams as ValCreateOrUpdateParams,
|
|
267
271
|
};
|
|
268
272
|
|
package/src/resources/index.ts
CHANGED
|
@@ -19,8 +19,10 @@ export { Sqlite, type SqliteBatchResponse, type SqliteBatchParams, type SqliteEx
|
|
|
19
19
|
export { Users } from './users/users';
|
|
20
20
|
export {
|
|
21
21
|
Vals,
|
|
22
|
+
type ValListResponse,
|
|
22
23
|
type ValCancelEvaluationResponse,
|
|
23
24
|
type ValCreateParams,
|
|
24
25
|
type ValUpdateParams,
|
|
26
|
+
type ValListParams,
|
|
25
27
|
type ValCreateOrUpdateParams,
|
|
26
28
|
} from './vals/vals';
|
|
@@ -1,10 +1,8 @@
|
|
|
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';
|
|
5
4
|
import * as Core from '../../core';
|
|
6
5
|
import * as Shared from '../shared';
|
|
7
|
-
import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
|
|
8
6
|
import { type Response } from '../../_shims/index';
|
|
9
7
|
|
|
10
8
|
export class Files extends APIResource {
|
|
@@ -13,28 +11,27 @@ export class Files extends APIResource {
|
|
|
13
11
|
*/
|
|
14
12
|
create(
|
|
15
13
|
projectId: string,
|
|
16
|
-
path: string,
|
|
17
14
|
params: FileCreateParams,
|
|
18
15
|
options?: Core.RequestOptions,
|
|
19
16
|
): Core.APIPromise<FileCreateResponse> {
|
|
20
|
-
const { branch_id, ...body } = params;
|
|
21
|
-
return this._client.post(`/v1/projects/${projectId}/files
|
|
22
|
-
query: { branch_id },
|
|
17
|
+
const { path, branch_id, ...body } = params;
|
|
18
|
+
return this._client.post(`/v1/projects/${projectId}/files`, {
|
|
19
|
+
query: { path, branch_id },
|
|
23
20
|
body,
|
|
24
21
|
...options,
|
|
25
22
|
});
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
/**
|
|
29
|
-
* Get metadata for files and directories in a project
|
|
26
|
+
* Get metadata for files and directories in a project. If path is an empty string,
|
|
27
|
+
* returns files at the root directory.
|
|
30
28
|
*/
|
|
31
29
|
retrieve(
|
|
32
30
|
projectId: string,
|
|
33
|
-
path: string,
|
|
34
31
|
query: FileRetrieveParams,
|
|
35
32
|
options?: Core.RequestOptions,
|
|
36
33
|
): Core.APIPromise<FileRetrieveResponse> {
|
|
37
|
-
return this._client.get(`/v1/projects/${projectId}/files
|
|
34
|
+
return this._client.get(`/v1/projects/${projectId}/files`, { query, ...options });
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
/**
|
|
@@ -42,65 +39,26 @@ export class Files extends APIResource {
|
|
|
42
39
|
*/
|
|
43
40
|
update(
|
|
44
41
|
projectId: string,
|
|
45
|
-
|
|
46
|
-
params?: FileUpdateParams,
|
|
47
|
-
options?: Core.RequestOptions,
|
|
48
|
-
): Core.APIPromise<FileUpdateResponse>;
|
|
49
|
-
update(projectId: string, path: string, options?: Core.RequestOptions): Core.APIPromise<FileUpdateResponse>;
|
|
50
|
-
update(
|
|
51
|
-
projectId: string,
|
|
52
|
-
path: string,
|
|
53
|
-
params: FileUpdateParams | Core.RequestOptions = {},
|
|
42
|
+
params: FileUpdateParams,
|
|
54
43
|
options?: Core.RequestOptions,
|
|
55
44
|
): Core.APIPromise<FileUpdateResponse> {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const { branch_id, ...body } = params;
|
|
60
|
-
return this._client.put(`/v1/projects/${projectId}/files/${path}`, {
|
|
61
|
-
query: { branch_id },
|
|
45
|
+
const { path, branch_id, ...body } = params;
|
|
46
|
+
return this._client.put(`/v1/projects/${projectId}/files`, {
|
|
47
|
+
query: { path, branch_id },
|
|
62
48
|
body,
|
|
63
49
|
...options,
|
|
64
50
|
});
|
|
65
51
|
}
|
|
66
52
|
|
|
67
53
|
/**
|
|
68
|
-
*
|
|
54
|
+
* [BETA] Deletes a file or a directory. To delete a directory and all of its
|
|
55
|
+
* children, use the recursive flag. To delete all files, pass in an empty path and
|
|
56
|
+
* the recursive flag.
|
|
69
57
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
): Core.PagePromise<FileListResponsesPageCursorURL, FileListResponse> {
|
|
75
|
-
return this._client.getAPIList(`/v1/projects/${projectId}/files`, FileListResponsesPageCursorURL, {
|
|
76
|
-
query,
|
|
77
|
-
...options,
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* [BETA] Deletes a file or all files in a directory. Deleting a directory will
|
|
83
|
-
* also delete all of its children.
|
|
84
|
-
*/
|
|
85
|
-
delete(
|
|
86
|
-
projectId: string,
|
|
87
|
-
path: string,
|
|
88
|
-
params?: FileDeleteParams,
|
|
89
|
-
options?: Core.RequestOptions,
|
|
90
|
-
): Core.APIPromise<void>;
|
|
91
|
-
delete(projectId: string, path: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
92
|
-
delete(
|
|
93
|
-
projectId: string,
|
|
94
|
-
path: string,
|
|
95
|
-
params: FileDeleteParams | Core.RequestOptions = {},
|
|
96
|
-
options?: Core.RequestOptions,
|
|
97
|
-
): Core.APIPromise<void> {
|
|
98
|
-
if (isRequestOptions(params)) {
|
|
99
|
-
return this.delete(projectId, path, {}, params);
|
|
100
|
-
}
|
|
101
|
-
const { branch_id, version } = params;
|
|
102
|
-
return this._client.delete(`/v1/projects/${projectId}/files/${path}`, {
|
|
103
|
-
query: { branch_id, version },
|
|
58
|
+
delete(projectId: string, params: FileDeleteParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
59
|
+
const { path, branch_id, recursive } = params;
|
|
60
|
+
return this._client.delete(`/v1/projects/${projectId}/files`, {
|
|
61
|
+
query: { path, branch_id, recursive },
|
|
104
62
|
...options,
|
|
105
63
|
headers: { Accept: '*/*', ...options?.headers },
|
|
106
64
|
});
|
|
@@ -111,20 +69,9 @@ export class Files extends APIResource {
|
|
|
111
69
|
*/
|
|
112
70
|
getContent(
|
|
113
71
|
projectId: string,
|
|
114
|
-
|
|
115
|
-
params?: FileGetContentParams,
|
|
116
|
-
options?: Core.RequestOptions,
|
|
117
|
-
): Core.APIPromise<Response>;
|
|
118
|
-
getContent(projectId: string, path: string, options?: Core.RequestOptions): Core.APIPromise<Response>;
|
|
119
|
-
getContent(
|
|
120
|
-
projectId: string,
|
|
121
|
-
path: string,
|
|
122
|
-
params: FileGetContentParams | Core.RequestOptions = {},
|
|
72
|
+
params: FileGetContentParams,
|
|
123
73
|
options?: Core.RequestOptions,
|
|
124
74
|
): Core.APIPromise<Response> {
|
|
125
|
-
if (isRequestOptions(params)) {
|
|
126
|
-
return this.getContent(projectId, path, {}, params);
|
|
127
|
-
}
|
|
128
75
|
const {
|
|
129
76
|
'Cache-Control': cacheControl,
|
|
130
77
|
'If-Match': ifMatch,
|
|
@@ -133,7 +80,7 @@ export class Files extends APIResource {
|
|
|
133
80
|
'If-Unmodified-Since': ifUnmodifiedSince,
|
|
134
81
|
...query
|
|
135
82
|
} = params;
|
|
136
|
-
return this._client.get(`/v1/projects/${projectId}/files
|
|
83
|
+
return this._client.get(`/v1/projects/${projectId}/files/content`, {
|
|
137
84
|
query,
|
|
138
85
|
...options,
|
|
139
86
|
headers: {
|
|
@@ -150,8 +97,6 @@ export class Files extends APIResource {
|
|
|
150
97
|
}
|
|
151
98
|
}
|
|
152
99
|
|
|
153
|
-
export class FileListResponsesPageCursorURL extends PageCursorURL<FileListResponse> {}
|
|
154
|
-
|
|
155
100
|
/**
|
|
156
101
|
* A File or Directory's Metadata
|
|
157
102
|
*/
|
|
@@ -319,61 +264,16 @@ export namespace FileUpdateResponse {
|
|
|
319
264
|
}
|
|
320
265
|
}
|
|
321
266
|
|
|
322
|
-
/**
|
|
323
|
-
* A File or Directory's Metadata
|
|
324
|
-
*/
|
|
325
|
-
export interface FileListResponse {
|
|
326
|
-
/**
|
|
327
|
-
* The id of the resource
|
|
328
|
-
*/
|
|
329
|
-
id: string;
|
|
330
|
-
|
|
331
|
-
links: FileListResponse.Links;
|
|
332
|
-
|
|
333
|
-
name: string;
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* The id of the parent resource
|
|
337
|
-
*/
|
|
338
|
-
parentId: string | null;
|
|
339
|
-
|
|
340
|
-
path: string;
|
|
341
|
-
|
|
342
|
-
type: 'directory' | 'file' | 'interval' | 'http' | 'email' | 'script';
|
|
343
|
-
|
|
344
|
-
updatedAt: string;
|
|
345
|
-
|
|
346
|
-
version: number;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
export namespace FileListResponse {
|
|
350
|
-
export interface Links {
|
|
351
|
-
/**
|
|
352
|
-
* The URL of this resource on Val Town
|
|
353
|
-
*/
|
|
354
|
-
html: string;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* The URL of this resource's source code as a module
|
|
358
|
-
*/
|
|
359
|
-
module: string;
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* The URL of this resource on this API
|
|
363
|
-
*/
|
|
364
|
-
self: string;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* This resource's web endpoint, where it serves a website or API
|
|
368
|
-
*/
|
|
369
|
-
endpoint?: string;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
267
|
export type FileCreateParams = FileCreateParams.Variant0 | FileCreateParams.Variant1;
|
|
374
268
|
|
|
375
269
|
export declare namespace FileCreateParams {
|
|
376
270
|
export interface Variant0 {
|
|
271
|
+
/**
|
|
272
|
+
* Query param: Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an
|
|
273
|
+
* empty string to represent the root directory.
|
|
274
|
+
*/
|
|
275
|
+
path: string;
|
|
276
|
+
|
|
377
277
|
/**
|
|
378
278
|
* Body param:
|
|
379
279
|
*/
|
|
@@ -392,6 +292,12 @@ export declare namespace FileCreateParams {
|
|
|
392
292
|
}
|
|
393
293
|
|
|
394
294
|
export interface Variant1 {
|
|
295
|
+
/**
|
|
296
|
+
* Query param: Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an
|
|
297
|
+
* empty string to represent the root directory.
|
|
298
|
+
*/
|
|
299
|
+
path: string;
|
|
300
|
+
|
|
395
301
|
/**
|
|
396
302
|
* Body param: Project file and val content. An empty string will create an empty
|
|
397
303
|
* file. When creating a directory, the content should be null or undefined.
|
|
@@ -422,11 +328,22 @@ export interface FileRetrieveParams {
|
|
|
422
328
|
*/
|
|
423
329
|
offset: number;
|
|
424
330
|
|
|
331
|
+
/**
|
|
332
|
+
* Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an empty string
|
|
333
|
+
* to represent the root directory.
|
|
334
|
+
*/
|
|
335
|
+
path: string;
|
|
336
|
+
|
|
425
337
|
/**
|
|
426
338
|
* Id to query
|
|
427
339
|
*/
|
|
428
340
|
branch_id?: string;
|
|
429
341
|
|
|
342
|
+
/**
|
|
343
|
+
* Whether to recursively act on all files in the project
|
|
344
|
+
*/
|
|
345
|
+
recursive?: boolean;
|
|
346
|
+
|
|
430
347
|
/**
|
|
431
348
|
* Specific branch version to query
|
|
432
349
|
*/
|
|
@@ -434,6 +351,12 @@ export interface FileRetrieveParams {
|
|
|
434
351
|
}
|
|
435
352
|
|
|
436
353
|
export interface FileUpdateParams {
|
|
354
|
+
/**
|
|
355
|
+
* Query param: Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an
|
|
356
|
+
* empty string to represent the root directory.
|
|
357
|
+
*/
|
|
358
|
+
path: string;
|
|
359
|
+
|
|
437
360
|
/**
|
|
438
361
|
* Query param: The specified branch of the resource. Defaults to main if not
|
|
439
362
|
* provided.
|
|
@@ -462,36 +385,31 @@ export interface FileUpdateParams {
|
|
|
462
385
|
type?: 'file' | 'interval' | 'http' | 'email' | 'script';
|
|
463
386
|
}
|
|
464
387
|
|
|
465
|
-
export interface
|
|
388
|
+
export interface FileDeleteParams {
|
|
466
389
|
/**
|
|
467
|
-
*
|
|
390
|
+
* Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an empty string
|
|
391
|
+
* to represent the root directory.
|
|
468
392
|
*/
|
|
469
|
-
|
|
393
|
+
path: string;
|
|
470
394
|
|
|
471
395
|
/**
|
|
472
|
-
*
|
|
396
|
+
* The specified branch of the resource. Defaults to main if not provided.
|
|
473
397
|
*/
|
|
474
|
-
|
|
398
|
+
branch_id?: string;
|
|
475
399
|
|
|
476
400
|
/**
|
|
477
|
-
*
|
|
401
|
+
* Whether to recursively act on all files in the project
|
|
478
402
|
*/
|
|
479
|
-
|
|
403
|
+
recursive?: boolean;
|
|
480
404
|
}
|
|
481
405
|
|
|
482
|
-
export interface
|
|
483
|
-
/**
|
|
484
|
-
* Id to query
|
|
485
|
-
*/
|
|
486
|
-
branch_id?: string;
|
|
487
|
-
|
|
406
|
+
export interface FileGetContentParams {
|
|
488
407
|
/**
|
|
489
|
-
*
|
|
408
|
+
* Query param: Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an
|
|
409
|
+
* empty string to represent the root directory.
|
|
490
410
|
*/
|
|
491
|
-
|
|
492
|
-
}
|
|
411
|
+
path: string;
|
|
493
412
|
|
|
494
|
-
export interface FileGetContentParams {
|
|
495
413
|
/**
|
|
496
414
|
* Query param: Id to query
|
|
497
415
|
*/
|
|
@@ -528,19 +446,14 @@ export interface FileGetContentParams {
|
|
|
528
446
|
'If-Unmodified-Since'?: string;
|
|
529
447
|
}
|
|
530
448
|
|
|
531
|
-
Files.FileListResponsesPageCursorURL = FileListResponsesPageCursorURL;
|
|
532
|
-
|
|
533
449
|
export declare namespace Files {
|
|
534
450
|
export {
|
|
535
451
|
type FileCreateResponse as FileCreateResponse,
|
|
536
452
|
type FileRetrieveResponse as FileRetrieveResponse,
|
|
537
453
|
type FileUpdateResponse as FileUpdateResponse,
|
|
538
|
-
type FileListResponse as FileListResponse,
|
|
539
|
-
FileListResponsesPageCursorURL as FileListResponsesPageCursorURL,
|
|
540
454
|
type FileCreateParams as FileCreateParams,
|
|
541
455
|
type FileRetrieveParams as FileRetrieveParams,
|
|
542
456
|
type FileUpdateParams as FileUpdateParams,
|
|
543
|
-
type FileListParams as FileListParams,
|
|
544
457
|
type FileDeleteParams as FileDeleteParams,
|
|
545
458
|
type FileGetContentParams as FileGetContentParams,
|
|
546
459
|
};
|
|
@@ -10,16 +10,13 @@ export {
|
|
|
10
10
|
type BranchListParams,
|
|
11
11
|
} from './branches';
|
|
12
12
|
export {
|
|
13
|
-
FileListResponsesPageCursorURL,
|
|
14
13
|
Files,
|
|
15
14
|
type FileCreateResponse,
|
|
16
15
|
type FileRetrieveResponse,
|
|
17
16
|
type FileUpdateResponse,
|
|
18
|
-
type FileListResponse,
|
|
19
17
|
type FileCreateParams,
|
|
20
18
|
type FileRetrieveParams,
|
|
21
19
|
type FileUpdateParams,
|
|
22
|
-
type FileListParams,
|
|
23
20
|
type FileDeleteParams,
|
|
24
21
|
type FileGetContentParams,
|
|
25
22
|
} from './files';
|