@cadenya/cadenya 0.124.0 → 0.126.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 +17 -0
- package/README.md +18 -7
- package/client.d.mts +17 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -11
- package/client.d.ts.map +1 -1
- package/client.js +7 -3
- package/client.js.map +1 -1
- package/client.mjs +7 -3
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +1 -1
- package/internal/request-options.d.ts +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +115 -28
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +115 -28
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +93 -13
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +93 -13
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +13 -2
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +13 -2
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +13 -2
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +13 -2
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +100 -52
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +100 -52
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +99 -21
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +99 -21
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +252 -105
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +252 -105
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +138 -27
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +138 -27
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +13 -2
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +13 -2
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +13 -2
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +13 -2
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/ai-provider-keys.d.mts +125 -110
- package/resources/ai-provider-keys.d.mts.map +1 -1
- package/resources/ai-provider-keys.d.ts +125 -110
- package/resources/ai-provider-keys.d.ts.map +1 -1
- package/resources/ai-provider-keys.js +11 -9
- package/resources/ai-provider-keys.js.map +1 -1
- package/resources/ai-provider-keys.mjs +11 -9
- package/resources/ai-provider-keys.mjs.map +1 -1
- package/resources/api-keys.d.mts +28 -20
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +28 -20
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +14 -12
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +14 -12
- package/resources/api-keys.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +27 -30
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +27 -30
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +12 -12
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +12 -12
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/index.d.mts +1 -1
- package/resources/memory-layers/index.d.mts.map +1 -1
- package/resources/memory-layers/index.d.ts +1 -1
- package/resources/memory-layers/index.d.ts.map +1 -1
- package/resources/memory-layers/index.js.map +1 -1
- package/resources/memory-layers/index.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +34 -22
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +34 -22
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +11 -9
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +11 -9
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +32 -24
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +32 -24
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +10 -8
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +10 -8
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +27 -3
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +27 -3
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/objectives/feedback.js +27 -3
- package/resources/objectives/feedback.js.map +1 -1
- package/resources/objectives/feedback.mjs +27 -3
- package/resources/objectives/feedback.mjs.map +1 -1
- package/resources/objectives/index.d.mts +2 -2
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +2 -2
- package/resources/objectives/index.d.ts.map +1 -1
- package/resources/objectives/index.js.map +1 -1
- package/resources/objectives/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +273 -102
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +273 -102
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +112 -17
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +112 -17
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +25 -8
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +25 -8
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tasks.js +26 -5
- package/resources/objectives/tasks.js.map +1 -1
- package/resources/objectives/tasks.mjs +26 -5
- package/resources/objectives/tasks.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +99 -42
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +99 -42
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +73 -14
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +73 -14
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/objectives/tools.d.mts +13 -2
- package/resources/objectives/tools.d.mts.map +1 -1
- package/resources/objectives/tools.d.ts +13 -2
- package/resources/objectives/tools.d.ts.map +1 -1
- package/resources/objectives/tools.js +13 -2
- package/resources/objectives/tools.js.map +1 -1
- package/resources/objectives/tools.mjs +13 -2
- package/resources/objectives/tools.mjs.map +1 -1
- package/resources/search.d.mts +11 -2
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +11 -2
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +3 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +3 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +2 -2
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +2 -2
- package/resources/tool-sets/index.d.ts.map +1 -1
- package/resources/tool-sets/index.js.map +1 -1
- package/resources/tool-sets/index.mjs.map +1 -1
- package/resources/tool-sets/secrets.d.mts +9 -24
- package/resources/tool-sets/secrets.d.mts.map +1 -1
- package/resources/tool-sets/secrets.d.ts +9 -24
- package/resources/tool-sets/secrets.d.ts.map +1 -1
- package/resources/tool-sets/secrets.js +12 -12
- package/resources/tool-sets/secrets.js.map +1 -1
- package/resources/tool-sets/secrets.mjs +12 -12
- package/resources/tool-sets/secrets.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +149 -64
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +149 -64
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +17 -15
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +17 -15
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +33 -43
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +33 -43
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +18 -18
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +18 -18
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +14 -6
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +14 -6
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +5 -4
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +5 -4
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-admin/index.d.mts +1 -1
- package/resources/workspace-admin/index.d.mts.map +1 -1
- package/resources/workspace-admin/index.d.ts +1 -1
- package/resources/workspace-admin/index.d.ts.map +1 -1
- package/resources/workspace-admin/index.js.map +1 -1
- package/resources/workspace-admin/index.mjs.map +1 -1
- package/resources/workspace-admin/members.d.mts +41 -6
- package/resources/workspace-admin/members.d.mts.map +1 -1
- package/resources/workspace-admin/members.d.ts +41 -6
- package/resources/workspace-admin/members.d.ts.map +1 -1
- package/resources/workspace-admin/members.js +34 -6
- package/resources/workspace-admin/members.js.map +1 -1
- package/resources/workspace-admin/members.mjs +34 -6
- package/resources/workspace-admin/members.mjs.map +1 -1
- package/resources/workspace-admin/profiles.d.mts +8 -0
- package/resources/workspace-admin/profiles.d.mts.map +1 -1
- package/resources/workspace-admin/profiles.d.ts +8 -0
- package/resources/workspace-admin/profiles.d.ts.map +1 -1
- package/resources/workspace-admin/profiles.js +8 -0
- package/resources/workspace-admin/profiles.js.map +1 -1
- package/resources/workspace-admin/profiles.mjs +8 -0
- package/resources/workspace-admin/profiles.mjs.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.mts +65 -9
- package/resources/workspace-admin/workspace-admin.d.mts.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.ts +65 -9
- package/resources/workspace-admin/workspace-admin.d.ts.map +1 -1
- package/resources/workspace-admin/workspace-admin.js +46 -6
- package/resources/workspace-admin/workspace-admin.js.map +1 -1
- package/resources/workspace-admin/workspace-admin.mjs +46 -6
- package/resources/workspace-admin/workspace-admin.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +27 -15
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +27 -15
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/resources/workspace-secrets.js +11 -9
- package/resources/workspace-secrets.js.map +1 -1
- package/resources/workspace-secrets.mjs +11 -9
- package/resources/workspace-secrets.mjs.map +1 -1
- package/src/client.ts +102 -5
- package/src/internal/request-options.ts +1 -1
- package/src/resources/agents/agents.ts +147 -37
- package/src/resources/agents/feedback.ts +14 -3
- package/src/resources/agents/index.ts +6 -0
- package/src/resources/agents/schedules.ts +143 -71
- package/src/resources/agents/variations.ts +319 -125
- package/src/resources/agents/webhook-deliveries.ts +14 -3
- package/src/resources/ai-provider-keys.ts +155 -127
- package/src/resources/api-keys.ts +48 -29
- package/src/resources/index.ts +44 -1
- package/src/resources/memory-layers/entries.ts +56 -40
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +53 -30
- package/src/resources/models.ts +46 -31
- package/src/resources/objectives/feedback.ts +29 -5
- package/src/resources/objectives/index.ts +26 -0
- package/src/resources/objectives/objectives.ts +373 -125
- package/src/resources/objectives/tasks.ts +33 -12
- package/src/resources/objectives/tool-calls.ts +123 -46
- package/src/resources/objectives/tools.ts +14 -3
- package/src/resources/search.ts +14 -4
- package/src/resources/tool-sets/index.ts +23 -3
- package/src/resources/tool-sets/secrets.ts +32 -35
- package/src/resources/tool-sets/tool-sets.ts +239 -79
- package/src/resources/tool-sets/tools.ts +79 -61
- package/src/resources/uploads.ts +22 -8
- package/src/resources/workspace-admin/index.ts +2 -0
- package/src/resources/workspace-admin/members.ts +53 -12
- package/src/resources/workspace-admin/profiles.ts +8 -0
- package/src/resources/workspace-admin/workspace-admin.ts +80 -11
- package/src/resources/workspace-secrets.ts +40 -25
- 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
package/resources/uploads.d.mts
CHANGED
|
@@ -14,11 +14,11 @@ export declare class Uploads extends APIResource {
|
|
|
14
14
|
* returned id is used to reference the upload from resources that accept binary
|
|
15
15
|
* content.
|
|
16
16
|
*/
|
|
17
|
-
create(
|
|
17
|
+
create(params: UploadCreateParams, options?: RequestOptions): APIPromise<Upload>;
|
|
18
18
|
/**
|
|
19
19
|
* Retrieves the current state of an upload, including its lifecycle status
|
|
20
20
|
*/
|
|
21
|
-
retrieve(id: string, params
|
|
21
|
+
retrieve(id: string, params?: UploadRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Upload>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* A handle representing a single file upload flow. Clients call CreateUpload to
|
|
@@ -80,18 +80,26 @@ export interface UploadSpec {
|
|
|
80
80
|
}
|
|
81
81
|
export interface UploadCreateParams {
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
* Path param: Workspace ID.
|
|
84
|
+
*/
|
|
85
|
+
workspaceId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
88
|
+
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
89
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
90
|
+
* server.
|
|
86
91
|
*/
|
|
87
92
|
metadata: Shared.CreateResourceMetadata;
|
|
93
|
+
/**
|
|
94
|
+
* Body param
|
|
95
|
+
*/
|
|
88
96
|
spec: UploadSpec;
|
|
89
97
|
}
|
|
90
98
|
export interface UploadRetrieveParams {
|
|
91
99
|
/**
|
|
92
100
|
* Workspace ID.
|
|
93
101
|
*/
|
|
94
|
-
workspaceId
|
|
102
|
+
workspaceId?: string;
|
|
95
103
|
}
|
|
96
104
|
export declare namespace Uploads {
|
|
97
105
|
export { type Upload as Upload, type UploadInfo as UploadInfo, type UploadSpec as UploadSpec, type UploadCreateParams as UploadCreateParams, type UploadRetrieveParams as UploadRetrieveParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAKhF;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;CAItB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,gBAAgB,CAAC;IAElC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;IAE/B;;;;OAIG;IACH,MAAM,CAAC,EACH,2BAA2B,GAC3B,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,uBAAuB,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC,sBAAsB,CAAC;IAExC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/uploads.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ export declare class Uploads extends APIResource {
|
|
|
14
14
|
* returned id is used to reference the upload from resources that accept binary
|
|
15
15
|
* content.
|
|
16
16
|
*/
|
|
17
|
-
create(
|
|
17
|
+
create(params: UploadCreateParams, options?: RequestOptions): APIPromise<Upload>;
|
|
18
18
|
/**
|
|
19
19
|
* Retrieves the current state of an upload, including its lifecycle status
|
|
20
20
|
*/
|
|
21
|
-
retrieve(id: string, params
|
|
21
|
+
retrieve(id: string, params?: UploadRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Upload>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* A handle representing a single file upload flow. Clients call CreateUpload to
|
|
@@ -80,18 +80,26 @@ export interface UploadSpec {
|
|
|
80
80
|
}
|
|
81
81
|
export interface UploadCreateParams {
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
* Path param: Workspace ID.
|
|
84
|
+
*/
|
|
85
|
+
workspaceId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
88
|
+
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
89
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
90
|
+
* server.
|
|
86
91
|
*/
|
|
87
92
|
metadata: Shared.CreateResourceMetadata;
|
|
93
|
+
/**
|
|
94
|
+
* Body param
|
|
95
|
+
*/
|
|
88
96
|
spec: UploadSpec;
|
|
89
97
|
}
|
|
90
98
|
export interface UploadRetrieveParams {
|
|
91
99
|
/**
|
|
92
100
|
* Workspace ID.
|
|
93
101
|
*/
|
|
94
|
-
workspaceId
|
|
102
|
+
workspaceId?: string;
|
|
95
103
|
}
|
|
96
104
|
export declare namespace Uploads {
|
|
97
105
|
export { type Upload as Upload, type UploadInfo as UploadInfo, type UploadSpec as UploadSpec, type UploadCreateParams as UploadCreateParams, type UploadRetrieveParams as UploadRetrieveParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAKhF;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;CAItB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,gBAAgB,CAAC;IAElC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;IAE/B;;;;OAIG;IACH,MAAM,CAAC,EACH,2BAA2B,GAC3B,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,uBAAuB,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC,sBAAsB,CAAC;IAExC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/uploads.js
CHANGED
|
@@ -15,14 +15,15 @@ class Uploads extends resource_1.APIResource {
|
|
|
15
15
|
* returned id is used to reference the upload from resources that accept binary
|
|
16
16
|
* content.
|
|
17
17
|
*/
|
|
18
|
-
create(
|
|
19
|
-
|
|
18
|
+
create(params, options) {
|
|
19
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
20
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/uploads`, { body, ...options });
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Retrieves the current state of an upload, including its lifecycle status
|
|
23
24
|
*/
|
|
24
|
-
retrieve(id, params, options) {
|
|
25
|
-
const { workspaceId } = params;
|
|
25
|
+
retrieve(id, params = {}, options) {
|
|
26
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
26
27
|
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/uploads/${id}`, options);
|
|
27
28
|
}
|
|
28
29
|
}
|
package/resources/uploads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,MAA0B,EAAE,OAAwB;QACzD,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAtBD,0BAsBC"}
|
package/resources/uploads.mjs
CHANGED
|
@@ -12,14 +12,15 @@ export class Uploads extends APIResource {
|
|
|
12
12
|
* returned id is used to reference the upload from resources that accept binary
|
|
13
13
|
* content.
|
|
14
14
|
*/
|
|
15
|
-
create(
|
|
16
|
-
|
|
15
|
+
create(params, options) {
|
|
16
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
17
|
+
return this._client.post(path `/v1/workspaces/${workspaceId}/uploads`, { body, ...options });
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Retrieves the current state of an upload, including its lifecycle status
|
|
20
21
|
*/
|
|
21
|
-
retrieve(id, params, options) {
|
|
22
|
-
const { workspaceId } = params;
|
|
22
|
+
retrieve(id, params = {}, options) {
|
|
23
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
23
24
|
return this._client.get(path `/v1/workspaces/${workspaceId}/uploads/${id}`, options);
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;GAIG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;GAIG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,MAA0B,EAAE,OAAwB;QACzD,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,WAAW,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Members, type MemberListParams, type MemberAddParams, type MemberRemoveParams } from "./members.mjs";
|
|
2
2
|
export { Profiles, type ProfileListParams } from "./profiles.mjs";
|
|
3
|
-
export { WorkspaceAdmin, type WorkspaceMember, type WorkspaceAdminCreateParams, type WorkspaceAdminUpdateParams, type WorkspaceAdminListParams, type WorkspaceMembersCursorPagination, } from "./workspace-admin.mjs";
|
|
3
|
+
export { WorkspaceAdmin, type WorkspaceMember, type WorkspaceAdminCreateParams, type WorkspaceAdminRetrieveParams, type WorkspaceAdminUpdateParams, type WorkspaceAdminListParams, type WorkspaceAdminArchiveParams, type WorkspaceMembersCursorPagination, } from "./workspace-admin.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,sBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,uBAAmB;AAC9D,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,GACtC,8BAA0B"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,sBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,uBAAmB;AAC9D,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,GACtC,8BAA0B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Members, type MemberListParams, type MemberAddParams, type MemberRemoveParams } from "./members.js";
|
|
2
2
|
export { Profiles, type ProfileListParams } from "./profiles.js";
|
|
3
|
-
export { WorkspaceAdmin, type WorkspaceMember, type WorkspaceAdminCreateParams, type WorkspaceAdminUpdateParams, type WorkspaceAdminListParams, type WorkspaceMembersCursorPagination, } from "./workspace-admin.js";
|
|
3
|
+
export { WorkspaceAdmin, type WorkspaceMember, type WorkspaceAdminCreateParams, type WorkspaceAdminRetrieveParams, type WorkspaceAdminUpdateParams, type WorkspaceAdminListParams, type WorkspaceAdminArchiveParams, type WorkspaceMembersCursorPagination, } from "./workspace-admin.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,qBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,sBAAmB;AAC9D,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,GACtC,6BAA0B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,qBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,sBAAmB;AAC9D,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,GACtC,6BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA0G;AAAjG,kGAAA,OAAO,OAAA;AAChB,0CAA8D;AAArD,oGAAA,QAAQ,OAAA;AACjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA0G;AAAjG,kGAAA,OAAO,OAAA;AAChB,0CAA8D;AAArD,oGAAA,QAAQ,OAAA;AACjB,wDAS2B;AARzB,iHAAA,cAAc,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAwE,sBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAA0B,uBAAmB;AAC9D,OAAO,EACL,cAAc,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAwE,sBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAA0B,uBAAmB;AAC9D,OAAO,EACL,cAAc,GAQf,8BAA0B"}
|
|
@@ -15,30 +15,65 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
15
15
|
export declare class Members extends APIResource {
|
|
16
16
|
/**
|
|
17
17
|
* Lists the members of a workspace. Admin only.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const workspaceMember of client.workspaceAdmin.members.list(
|
|
23
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
24
|
+
* )) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
18
28
|
*/
|
|
19
|
-
list(
|
|
29
|
+
list(params?: MemberListParams | null | undefined, options?: RequestOptions): PagePromise<WorkspaceMembersCursorPagination, WorkspaceAdminAPI.WorkspaceMember>;
|
|
20
30
|
/**
|
|
21
31
|
* Grants a profile access to the workspace by creating (or reactivating) the actor
|
|
22
32
|
* that links the profile to the workspace. Accepts either an existing profile_id
|
|
23
33
|
* or an email to resolve-or-invite. Idempotent for an already-active member. Admin
|
|
24
34
|
* only.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const workspaceMember =
|
|
39
|
+
* await client.workspaceAdmin.members.add({
|
|
40
|
+
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
25
43
|
*/
|
|
26
|
-
add(
|
|
44
|
+
add(params?: MemberAddParams | null | undefined, options?: RequestOptions): APIPromise<WorkspaceAdminAPI.WorkspaceMember>;
|
|
27
45
|
/**
|
|
28
46
|
* Revokes a member's access by deactivating their actor; the member is immediately
|
|
29
47
|
* cut off. The underlying profile is not deleted. Admin only.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* await client.workspaceAdmin.members.remove(
|
|
52
|
+
* 'profile_01HXKD2E5NQM3T9AYWCFS0AP08',
|
|
53
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
30
56
|
*/
|
|
31
|
-
remove(profileID: string, params
|
|
57
|
+
remove(profileID: string, params?: MemberRemoveParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
32
58
|
}
|
|
33
59
|
export interface MemberListParams extends CursorPaginationParams {
|
|
60
|
+
/**
|
|
61
|
+
* Path param: The workspace whose members will be listed (path).
|
|
62
|
+
*/
|
|
63
|
+
workspaceId?: string;
|
|
34
64
|
}
|
|
35
65
|
export interface MemberAddParams {
|
|
36
66
|
/**
|
|
37
|
-
*
|
|
67
|
+
* Path param: The workspace to add the member to (path).
|
|
68
|
+
*/
|
|
69
|
+
workspaceId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Body param: Email address to add (resolve-or-invite). Mutually exclusive with
|
|
72
|
+
* profile_id.
|
|
38
73
|
*/
|
|
39
74
|
email?: string;
|
|
40
75
|
/**
|
|
41
|
-
* An existing account profile to add. Mutually exclusive with email.
|
|
76
|
+
* Body param: An existing account profile to add. Mutually exclusive with email.
|
|
42
77
|
*/
|
|
43
78
|
profileId?: string;
|
|
44
79
|
}
|
|
@@ -46,7 +81,7 @@ export interface MemberRemoveParams {
|
|
|
46
81
|
/**
|
|
47
82
|
* The workspace to remove the member from (path).
|
|
48
83
|
*/
|
|
49
|
-
workspaceId
|
|
84
|
+
workspaceId?: string;
|
|
50
85
|
}
|
|
51
86
|
export declare namespace Members {
|
|
52
87
|
export { type MemberListParams as MemberListParams, type MemberAddParams as MemberAddParams, type MemberRemoveParams as MemberRemoveParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/members.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,iBAAiB,8BAA0B;AACvD,OAAO,EAAE,gCAAgC,EAAE,8BAA0B;AACrE,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;GAOG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"members.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/members.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,iBAAiB,8BAA0B;AACvD,OAAO,EAAE,gCAAgC,EAAE,8BAA0B;AACrE,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;GAOG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,iBAAiB,CAAC,eAAe,CAAC;IASnF;;;;;;;;;;;;;OAaG;IACH,GAAG,CACD,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC,eAAe,CAAC;IAKhD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH;AAED,OAAO,EAAE,KAAK,gCAAgC,EAAE,CAAC"}
|
|
@@ -15,30 +15,65 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
15
15
|
export declare class Members extends APIResource {
|
|
16
16
|
/**
|
|
17
17
|
* Lists the members of a workspace. Admin only.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const workspaceMember of client.workspaceAdmin.members.list(
|
|
23
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
24
|
+
* )) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
18
28
|
*/
|
|
19
|
-
list(
|
|
29
|
+
list(params?: MemberListParams | null | undefined, options?: RequestOptions): PagePromise<WorkspaceMembersCursorPagination, WorkspaceAdminAPI.WorkspaceMember>;
|
|
20
30
|
/**
|
|
21
31
|
* Grants a profile access to the workspace by creating (or reactivating) the actor
|
|
22
32
|
* that links the profile to the workspace. Accepts either an existing profile_id
|
|
23
33
|
* or an email to resolve-or-invite. Idempotent for an already-active member. Admin
|
|
24
34
|
* only.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const workspaceMember =
|
|
39
|
+
* await client.workspaceAdmin.members.add({
|
|
40
|
+
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
25
43
|
*/
|
|
26
|
-
add(
|
|
44
|
+
add(params?: MemberAddParams | null | undefined, options?: RequestOptions): APIPromise<WorkspaceAdminAPI.WorkspaceMember>;
|
|
27
45
|
/**
|
|
28
46
|
* Revokes a member's access by deactivating their actor; the member is immediately
|
|
29
47
|
* cut off. The underlying profile is not deleted. Admin only.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* await client.workspaceAdmin.members.remove(
|
|
52
|
+
* 'profile_01HXKD2E5NQM3T9AYWCFS0AP08',
|
|
53
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
30
56
|
*/
|
|
31
|
-
remove(profileID: string, params
|
|
57
|
+
remove(profileID: string, params?: MemberRemoveParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
32
58
|
}
|
|
33
59
|
export interface MemberListParams extends CursorPaginationParams {
|
|
60
|
+
/**
|
|
61
|
+
* Path param: The workspace whose members will be listed (path).
|
|
62
|
+
*/
|
|
63
|
+
workspaceId?: string;
|
|
34
64
|
}
|
|
35
65
|
export interface MemberAddParams {
|
|
36
66
|
/**
|
|
37
|
-
*
|
|
67
|
+
* Path param: The workspace to add the member to (path).
|
|
68
|
+
*/
|
|
69
|
+
workspaceId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Body param: Email address to add (resolve-or-invite). Mutually exclusive with
|
|
72
|
+
* profile_id.
|
|
38
73
|
*/
|
|
39
74
|
email?: string;
|
|
40
75
|
/**
|
|
41
|
-
* An existing account profile to add. Mutually exclusive with email.
|
|
76
|
+
* Body param: An existing account profile to add. Mutually exclusive with email.
|
|
42
77
|
*/
|
|
43
78
|
profileId?: string;
|
|
44
79
|
}
|
|
@@ -46,7 +81,7 @@ export interface MemberRemoveParams {
|
|
|
46
81
|
/**
|
|
47
82
|
* The workspace to remove the member from (path).
|
|
48
83
|
*/
|
|
49
|
-
workspaceId
|
|
84
|
+
workspaceId?: string;
|
|
50
85
|
}
|
|
51
86
|
export declare namespace Members {
|
|
52
87
|
export { type MemberListParams as MemberListParams, type MemberAddParams as MemberAddParams, type MemberRemoveParams as MemberRemoveParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/members.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,iBAAiB,6BAA0B;AACvD,OAAO,EAAE,gCAAgC,EAAE,6BAA0B;AACrE,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;GAOG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/members.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,iBAAiB,6BAA0B;AACvD,OAAO,EAAE,gCAAgC,EAAE,6BAA0B;AACrE,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;GAOG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,iBAAiB,CAAC,eAAe,CAAC;IASnF;;;;;;;;;;;;;OAaG;IACH,GAAG,CACD,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC,eAAe,CAAC;IAKhD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH;AAED,OAAO,EAAE,KAAK,gCAAgC,EAAE,CAAC"}
|
|
@@ -17,25 +17,53 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
17
17
|
class Members extends resource_1.APIResource {
|
|
18
18
|
/**
|
|
19
19
|
* Lists the members of a workspace. Admin only.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // Automatically fetches more pages as needed.
|
|
24
|
+
* for await (const workspaceMember of client.workspaceAdmin.members.list(
|
|
25
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
26
|
+
* )) {
|
|
27
|
+
* // ...
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
20
30
|
*/
|
|
21
|
-
list(
|
|
22
|
-
|
|
31
|
+
list(params = {}, options) {
|
|
32
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
33
|
+
return this._client.getAPIList((0, path_1.path) `/v1/account/workspaces/${workspaceId}/members`, (pagination_1.CursorPagination), { query, ...options });
|
|
23
34
|
}
|
|
24
35
|
/**
|
|
25
36
|
* Grants a profile access to the workspace by creating (or reactivating) the actor
|
|
26
37
|
* that links the profile to the workspace. Accepts either an existing profile_id
|
|
27
38
|
* or an email to resolve-or-invite. Idempotent for an already-active member. Admin
|
|
28
39
|
* only.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const workspaceMember =
|
|
44
|
+
* await client.workspaceAdmin.members.add({
|
|
45
|
+
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
29
48
|
*/
|
|
30
|
-
add(
|
|
31
|
-
|
|
49
|
+
add(params = {}, options) {
|
|
50
|
+
const { workspaceId = this._client.workspaceID, ...body } = params ?? {};
|
|
51
|
+
return this._client.post((0, path_1.path) `/v1/account/workspaces/${workspaceId}/members`, { body, ...options });
|
|
32
52
|
}
|
|
33
53
|
/**
|
|
34
54
|
* Revokes a member's access by deactivating their actor; the member is immediately
|
|
35
55
|
* cut off. The underlying profile is not deleted. Admin only.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* await client.workspaceAdmin.members.remove(
|
|
60
|
+
* 'profile_01HXKD2E5NQM3T9AYWCFS0AP08',
|
|
61
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
36
64
|
*/
|
|
37
|
-
remove(profileID, params, options) {
|
|
38
|
-
const { workspaceId } = params;
|
|
65
|
+
remove(profileID, params = {}, options) {
|
|
66
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
39
67
|
return this._client.delete((0, path_1.path) `/v1/account/workspaces/${workspaceId}/members/${profileID}`, {
|
|
40
68
|
...options,
|
|
41
69
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/members.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;GAOG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"members.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/members.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;GAOG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,0BAA0B,WAAW,UAAU,EACnD,CAAA,6BAAmD,CAAA,EACnD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,GAAG,CACD,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,0BAA0B,WAAW,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAiB,EACjB,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,0BAA0B,WAAW,YAAY,SAAS,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvED,0BAuEC"}
|
|
@@ -14,25 +14,53 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
14
14
|
export class Members extends APIResource {
|
|
15
15
|
/**
|
|
16
16
|
* Lists the members of a workspace. Admin only.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const workspaceMember of client.workspaceAdmin.members.list(
|
|
22
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
23
|
+
* )) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
17
27
|
*/
|
|
18
|
-
list(
|
|
19
|
-
|
|
28
|
+
list(params = {}, options) {
|
|
29
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
30
|
+
return this._client.getAPIList(path `/v1/account/workspaces/${workspaceId}/members`, (CursorPagination), { query, ...options });
|
|
20
31
|
}
|
|
21
32
|
/**
|
|
22
33
|
* Grants a profile access to the workspace by creating (or reactivating) the actor
|
|
23
34
|
* that links the profile to the workspace. Accepts either an existing profile_id
|
|
24
35
|
* or an email to resolve-or-invite. Idempotent for an already-active member. Admin
|
|
25
36
|
* only.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const workspaceMember =
|
|
41
|
+
* await client.workspaceAdmin.members.add({
|
|
42
|
+
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
26
45
|
*/
|
|
27
|
-
add(
|
|
28
|
-
|
|
46
|
+
add(params = {}, options) {
|
|
47
|
+
const { workspaceId = this._client.workspaceID, ...body } = params ?? {};
|
|
48
|
+
return this._client.post(path `/v1/account/workspaces/${workspaceId}/members`, { body, ...options });
|
|
29
49
|
}
|
|
30
50
|
/**
|
|
31
51
|
* Revokes a member's access by deactivating their actor; the member is immediately
|
|
32
52
|
* cut off. The underlying profile is not deleted. Admin only.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* await client.workspaceAdmin.members.remove(
|
|
57
|
+
* 'profile_01HXKD2E5NQM3T9AYWCFS0AP08',
|
|
58
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
33
61
|
*/
|
|
34
|
-
remove(profileID, params, options) {
|
|
35
|
-
const { workspaceId } = params;
|
|
62
|
+
remove(profileID, params = {}, options) {
|
|
63
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
36
64
|
return this._client.delete(path `/v1/account/workspaces/${workspaceId}/members/${profileID}`, {
|
|
37
65
|
...options,
|
|
38
66
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/members.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;GAOG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"members.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/members.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;GAOG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,0BAA0B,WAAW,UAAU,EACnD,CAAA,gBAAmD,CAAA,EACnD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,GAAG,CACD,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,WAAW,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAiB,EACjB,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,0BAA0B,WAAW,YAAY,SAAS,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -15,6 +15,14 @@ export declare class Profiles extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* Searches the account's profiles for a member picker, with free-form name/email
|
|
17
17
|
* search and an optional type filter. Account-scoped; admin only.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const profile of client.workspaceAdmin.profiles.list()) {
|
|
23
|
+
* // ...
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
18
26
|
*/
|
|
19
27
|
list(query?: ProfileListParams | null | undefined, options?: RequestOptions): PagePromise<ProfilesCursorPagination, AccountAPI.Profile>;
|
|
20
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,EAAE,wBAAwB,EAAE,uBAAmB;AACtD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AACnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;;;;;;GAOG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"profiles.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,EAAE,wBAAwB,EAAE,uBAAmB;AACtD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AACnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;;;;;;GAOG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wBAAwB,EAAE,UAAU,CAAC,OAAO,CAAC;CAM7D;AAED,MAAM,WAAW,iBAAkB,SAAQ,sBAAsB;IAC/D;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD;AAED,OAAO,EAAE,KAAK,wBAAwB,EAAE,CAAC"}
|
|
@@ -15,6 +15,14 @@ export declare class Profiles extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* Searches the account's profiles for a member picker, with free-form name/email
|
|
17
17
|
* search and an optional type filter. Account-scoped; admin only.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const profile of client.workspaceAdmin.profiles.list()) {
|
|
23
|
+
* // ...
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
18
26
|
*/
|
|
19
27
|
list(query?: ProfileListParams | null | undefined, options?: RequestOptions): PagePromise<ProfilesCursorPagination, AccountAPI.Profile>;
|
|
20
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,EAAE,wBAAwB,EAAE,sBAAmB;AACtD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AACnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;;;;;;GAOG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,EAAE,wBAAwB,EAAE,sBAAmB;AACtD,OAAO,EAAoB,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AACnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;;;;;;GAOG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wBAAwB,EAAE,UAAU,CAAC,OAAO,CAAC;CAM7D;AAED,MAAM,WAAW,iBAAkB,SAAQ,sBAAsB;IAC/D;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD;AAED,OAAO,EAAE,KAAK,wBAAwB,EAAE,CAAC"}
|
|
@@ -16,6 +16,14 @@ class Profiles extends resource_1.APIResource {
|
|
|
16
16
|
/**
|
|
17
17
|
* Searches the account's profiles for a member picker, with free-form name/email
|
|
18
18
|
* search and an optional type filter. Account-scoped; admin only.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const profile of client.workspaceAdmin.profiles.list()) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
19
27
|
*/
|
|
20
28
|
list(query = {}, options) {
|
|
21
29
|
return this._client.getAPIList('/v1/account/profiles', (pagination_1.CursorPagination), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAmG;AAGnG;;;;;;;GAOG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAmG;AAGnG;;;;;;;GAOG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,6BAAoC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAtBD,4BAsBC"}
|
|
@@ -13,6 +13,14 @@ export class Profiles extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Searches the account's profiles for a member picker, with free-form name/email
|
|
15
15
|
* search and an optional type filter. Account-scoped; admin only.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const profile of client.workspaceAdmin.profiles.list()) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
16
24
|
*/
|
|
17
25
|
list(query = {}, options) {
|
|
18
26
|
return this._client.getAPIList('/v1/account/profiles', (CursorPagination), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AAGnG;;;;;;;GAOG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"profiles.mjs","sourceRoot":"","sources":["../../src/resources/workspace-admin/profiles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AAGnG;;;;;;;GAOG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,gBAAoC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|