@valtown/sdk 3.4.0 → 3.6.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/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/emails.d.mts +1 -1
- package/resources/emails.d.ts +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/orgs/index.d.mts +3 -0
- package/resources/orgs/index.d.mts.map +1 -0
- package/resources/orgs/index.d.ts +3 -0
- package/resources/orgs/index.d.ts.map +1 -0
- package/resources/orgs/index.js +9 -0
- package/resources/orgs/index.js.map +1 -0
- package/resources/orgs/index.mjs +4 -0
- package/resources/orgs/index.mjs.map +1 -0
- package/resources/orgs/memberships.d.mts +42 -0
- package/resources/orgs/memberships.d.mts.map +1 -0
- package/resources/orgs/memberships.d.ts +42 -0
- package/resources/orgs/memberships.d.ts.map +1 -0
- package/resources/orgs/memberships.js +16 -0
- package/resources/orgs/memberships.js.map +1 -0
- package/resources/orgs/memberships.mjs +12 -0
- package/resources/orgs/memberships.mjs.map +1 -0
- package/resources/orgs/orgs.d.mts +33 -0
- package/resources/orgs/orgs.d.mts.map +1 -0
- package/resources/orgs/orgs.d.ts +33 -0
- package/resources/orgs/orgs.d.ts.map +1 -0
- package/resources/orgs/orgs.js +27 -0
- package/resources/orgs/orgs.js.map +1 -0
- package/resources/orgs/orgs.mjs +22 -0
- package/resources/orgs/orgs.mjs.map +1 -0
- package/resources/orgs.d.mts +1 -28
- package/resources/orgs.d.mts.map +1 -1
- package/resources/orgs.d.ts +1 -28
- package/resources/orgs.d.ts.map +1 -1
- package/resources/orgs.js +2 -15
- package/resources/orgs.js.map +1 -1
- package/resources/orgs.mjs +1 -13
- package/resources/orgs.mjs.map +1 -1
- package/resources/vals/files.d.mts +16 -11
- package/resources/vals/files.d.mts.map +1 -1
- package/resources/vals/files.d.ts +16 -11
- package/resources/vals/files.d.ts.map +1 -1
- package/resources/vals/files.js +6 -1
- package/resources/vals/files.js.map +1 -1
- package/resources/vals/files.mjs +6 -1
- package/resources/vals/files.mjs.map +1 -1
- package/src/client.ts +1 -1
- package/src/resources/emails.ts +1 -1
- package/src/resources/index.ts +6 -1
- package/src/resources/orgs/index.ts +4 -0
- package/src/resources/orgs/memberships.ts +54 -0
- package/src/resources/orgs/orgs.ts +52 -0
- package/src/resources/orgs.ts +1 -42
- package/src/resources/vals/files.ts +16 -11
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Memberships extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List all memberships of an org
|
|
11
|
+
*/
|
|
12
|
+
list(orgID: string, options?: RequestOptions): APIPromise<MembershipListResponse> {
|
|
13
|
+
return this._client.get(path`/v2/orgs/${orgID}/memberships`, options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type MembershipListResponse = Array<MembershipListResponse.MembershipListResponseItem>;
|
|
18
|
+
|
|
19
|
+
export namespace MembershipListResponse {
|
|
20
|
+
/**
|
|
21
|
+
* A Membership
|
|
22
|
+
*/
|
|
23
|
+
export interface MembershipListResponseItem {
|
|
24
|
+
/**
|
|
25
|
+
* The id of the membership
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The role of the member
|
|
31
|
+
*/
|
|
32
|
+
role: 'owner' | 'member' | null;
|
|
33
|
+
|
|
34
|
+
user: MembershipListResponseItem.User;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace MembershipListResponseItem {
|
|
38
|
+
export interface User {
|
|
39
|
+
/**
|
|
40
|
+
* The id of the user
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The username of the user
|
|
46
|
+
*/
|
|
47
|
+
username: string | null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare namespace Memberships {
|
|
53
|
+
export { type MembershipListResponse as MembershipListResponse };
|
|
54
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as MembershipsAPI from './memberships';
|
|
5
|
+
import { MembershipListResponse, Memberships } from './memberships';
|
|
6
|
+
import { PageCursorURL, type PageCursorURLParams, PagePromise } from '../../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Get information about organizations you belong to
|
|
11
|
+
*/
|
|
12
|
+
export class Orgs extends APIResource {
|
|
13
|
+
memberships: MembershipsAPI.Memberships = new MembershipsAPI.Memberships(this._client);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Get all orgs you are a member of
|
|
17
|
+
*/
|
|
18
|
+
list(
|
|
19
|
+
query: OrgListParams,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): PagePromise<OrgListResponsesPageCursorURL, OrgListResponse> {
|
|
22
|
+
return this._client.getAPIList('/v2/orgs', PageCursorURL<OrgListResponse>, { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type OrgListResponsesPageCursorURL = PageCursorURL<OrgListResponse>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* An Org
|
|
30
|
+
*/
|
|
31
|
+
export interface OrgListResponse {
|
|
32
|
+
/**
|
|
33
|
+
* The id of the org
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
|
|
37
|
+
username: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface OrgListParams extends PageCursorURLParams {}
|
|
41
|
+
|
|
42
|
+
Orgs.Memberships = Memberships;
|
|
43
|
+
|
|
44
|
+
export declare namespace Orgs {
|
|
45
|
+
export {
|
|
46
|
+
type OrgListResponse as OrgListResponse,
|
|
47
|
+
type OrgListResponsesPageCursorURL as OrgListResponsesPageCursorURL,
|
|
48
|
+
type OrgListParams as OrgListParams,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { Memberships as Memberships, type MembershipListResponse as MembershipListResponse };
|
|
52
|
+
}
|
package/src/resources/orgs.ts
CHANGED
|
@@ -1,44 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { PageCursorURL, type PageCursorURLParams, PagePromise } from '../core/pagination';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Get information about organizations you belong to
|
|
9
|
-
*/
|
|
10
|
-
export class Orgs extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Get all orgs you are a member of
|
|
13
|
-
*/
|
|
14
|
-
list(
|
|
15
|
-
query: OrgListParams,
|
|
16
|
-
options?: RequestOptions,
|
|
17
|
-
): PagePromise<OrgListResponsesPageCursorURL, OrgListResponse> {
|
|
18
|
-
return this._client.getAPIList('/v2/orgs', PageCursorURL<OrgListResponse>, { query, ...options });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type OrgListResponsesPageCursorURL = PageCursorURL<OrgListResponse>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* An Org
|
|
26
|
-
*/
|
|
27
|
-
export interface OrgListResponse {
|
|
28
|
-
/**
|
|
29
|
-
* The id of the org
|
|
30
|
-
*/
|
|
31
|
-
id: string;
|
|
32
|
-
|
|
33
|
-
username: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface OrgListParams extends PageCursorURLParams {}
|
|
37
|
-
|
|
38
|
-
export declare namespace Orgs {
|
|
39
|
-
export {
|
|
40
|
-
type OrgListResponse as OrgListResponse,
|
|
41
|
-
type OrgListResponsesPageCursorURL as OrgListResponsesPageCursorURL,
|
|
42
|
-
type OrgListParams as OrgListParams,
|
|
43
|
-
};
|
|
44
|
-
}
|
|
3
|
+
export * from './orgs/index';
|
|
@@ -37,7 +37,12 @@ export class Files extends APIResource {
|
|
|
37
37
|
* // Automatically fetches more pages as needed.
|
|
38
38
|
* for await (const fileRetrieveResponse of client.vals.files.retrieve(
|
|
39
39
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
40
|
-
* {
|
|
40
|
+
* {
|
|
41
|
+
* limit: 1,
|
|
42
|
+
* offset: 0,
|
|
43
|
+
* path: 'path',
|
|
44
|
+
* recursive: true,
|
|
45
|
+
* },
|
|
41
46
|
* )) {
|
|
42
47
|
* // ...
|
|
43
48
|
* }
|
|
@@ -289,7 +294,7 @@ export declare namespace FileCreateParams {
|
|
|
289
294
|
path: string;
|
|
290
295
|
|
|
291
296
|
/**
|
|
292
|
-
* Body param
|
|
297
|
+
* Body param
|
|
293
298
|
*/
|
|
294
299
|
type: 'directory';
|
|
295
300
|
|
|
@@ -300,7 +305,7 @@ export declare namespace FileCreateParams {
|
|
|
300
305
|
branch_id?: string;
|
|
301
306
|
|
|
302
307
|
/**
|
|
303
|
-
* Body param
|
|
308
|
+
* Body param
|
|
304
309
|
*/
|
|
305
310
|
content?: null;
|
|
306
311
|
}
|
|
@@ -319,7 +324,7 @@ export declare namespace FileCreateParams {
|
|
|
319
324
|
content: string;
|
|
320
325
|
|
|
321
326
|
/**
|
|
322
|
-
* Body param
|
|
327
|
+
* Body param
|
|
323
328
|
*/
|
|
324
329
|
type: 'file' | 'interval' | 'http' | 'email' | 'script';
|
|
325
330
|
|
|
@@ -374,7 +379,7 @@ export interface FileUpdateParams {
|
|
|
374
379
|
content?: string;
|
|
375
380
|
|
|
376
381
|
/**
|
|
377
|
-
* Body param
|
|
382
|
+
* Body param
|
|
378
383
|
*/
|
|
379
384
|
name?: string;
|
|
380
385
|
|
|
@@ -385,7 +390,7 @@ export interface FileUpdateParams {
|
|
|
385
390
|
parent_path?: string | null;
|
|
386
391
|
|
|
387
392
|
/**
|
|
388
|
-
* Body param
|
|
393
|
+
* Body param
|
|
389
394
|
*/
|
|
390
395
|
type?: 'file' | 'interval' | 'http' | 'email' | 'script';
|
|
391
396
|
}
|
|
@@ -426,27 +431,27 @@ export interface FileGetContentParams {
|
|
|
426
431
|
version?: number;
|
|
427
432
|
|
|
428
433
|
/**
|
|
429
|
-
* Header param
|
|
434
|
+
* Header param
|
|
430
435
|
*/
|
|
431
436
|
'Cache-Control'?: string;
|
|
432
437
|
|
|
433
438
|
/**
|
|
434
|
-
* Header param
|
|
439
|
+
* Header param
|
|
435
440
|
*/
|
|
436
441
|
'If-Match'?: string;
|
|
437
442
|
|
|
438
443
|
/**
|
|
439
|
-
* Header param
|
|
444
|
+
* Header param
|
|
440
445
|
*/
|
|
441
446
|
'If-Modified-Since'?: string;
|
|
442
447
|
|
|
443
448
|
/**
|
|
444
|
-
* Header param
|
|
449
|
+
* Header param
|
|
445
450
|
*/
|
|
446
451
|
'If-None-Match'?: string;
|
|
447
452
|
|
|
448
453
|
/**
|
|
449
|
-
* Header param
|
|
454
|
+
* Header param
|
|
450
455
|
*/
|
|
451
456
|
'If-Unmodified-Since'?: string;
|
|
452
457
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.6.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.6.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|