@getmodus/sdk 0.10.0 → 0.12.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 +45 -1
- package/README.md +8 -1
- package/dist/{_client-base-H5rt5EGy.d.cts → _client-base-DvrAQWuU.d.cts} +837 -114
- package/dist/{_client-base-H5rt5EGy.d.ts → _client-base-DvrAQWuU.d.ts} +837 -114
- package/dist/{chunk-BMYCORZF.js → chunk-3CKUUDEJ.js} +75 -12
- package/dist/chunk-3CKUUDEJ.js.map +1 -0
- package/dist/{chunk-NA3ZD35T.cjs → chunk-QHA3LF2Q.cjs} +75 -12
- package/dist/chunk-QHA3LF2Q.cjs.map +1 -0
- package/dist/index.cjs +167 -138
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -17
- package/dist/index.d.ts +47 -17
- package/dist/index.js +47 -18
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +274 -263
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +26 -7
- package/dist/management/index.d.ts +26 -7
- package/dist/management/index.js +18 -7
- package/dist/management/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-BMYCORZF.js.map +0 -1
- package/dist/chunk-NA3ZD35T.cjs.map +0 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkQHA3LF2Qcjs = require('../chunk-QHA3LF2Q.cjs');
|
|
15
15
|
|
|
16
16
|
// src/_generated/resources/management/workflows.ts
|
|
17
17
|
var WorkflowsResourceBase = class {
|
|
@@ -50,7 +50,7 @@ var WorkflowsResourceBase = class {
|
|
|
50
50
|
*/
|
|
51
51
|
list(options = {}) {
|
|
52
52
|
const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
|
|
53
|
-
|
|
53
|
+
_chunkQHA3LF2Qcjs.validatePageSize.call(void 0, pageSize);
|
|
54
54
|
return this.listPage(pageSize, options.pageToken, options.search, options.type, options.view, options.includeVariation);
|
|
55
55
|
}
|
|
56
56
|
async listPage(pageSize, pageToken, search, type, view, includeVariation) {
|
|
@@ -59,12 +59,12 @@ var WorkflowsResourceBase = class {
|
|
|
59
59
|
if (type !== void 0) extra.type = type;
|
|
60
60
|
if (view !== void 0) extra.view = view;
|
|
61
61
|
if (includeVariation !== void 0) extra.includeVariation = includeVariation;
|
|
62
|
-
const data =
|
|
63
|
-
await
|
|
64
|
-
query:
|
|
62
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
63
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_list", {
|
|
64
|
+
query: _chunkQHA3LF2Qcjs.aipListParams.call(void 0, pageSize, pageToken, extra)
|
|
65
65
|
})
|
|
66
66
|
);
|
|
67
|
-
return
|
|
67
|
+
return _chunkQHA3LF2Qcjs.buildAipPage.call(void 0,
|
|
68
68
|
data,
|
|
69
69
|
"workflows",
|
|
70
70
|
(raw) => raw,
|
|
@@ -88,8 +88,8 @@ var WorkflowsResourceBase = class {
|
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
90
|
async delete(workflowId) {
|
|
91
|
-
|
|
92
|
-
await
|
|
91
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
92
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_delete", {
|
|
93
93
|
pathParams: { id: workflowId }
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -105,8 +105,8 @@ var WorkflowsResourceBase = class {
|
|
|
105
105
|
* @param workflowId - Numeric workflow id.
|
|
106
106
|
*/
|
|
107
107
|
async restore(workflowId) {
|
|
108
|
-
|
|
109
|
-
const data = await
|
|
108
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
109
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_restore", {
|
|
110
110
|
pathParams: { id: workflowId },
|
|
111
111
|
jsonBody: {}
|
|
112
112
|
});
|
|
@@ -123,8 +123,8 @@ var WorkflowsResourceBase = class {
|
|
|
123
123
|
* @param workflowId - Numeric workflow id.
|
|
124
124
|
*/
|
|
125
125
|
async cancelOwnershipTransfer(workflowId) {
|
|
126
|
-
|
|
127
|
-
const data = await
|
|
126
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
127
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_cancelOwnershipTransfer", {
|
|
128
128
|
pathParams: { id: workflowId }
|
|
129
129
|
});
|
|
130
130
|
return data;
|
|
@@ -139,8 +139,8 @@ var WorkflowsResourceBase = class {
|
|
|
139
139
|
* @param workflowId - Numeric workflow id.
|
|
140
140
|
*/
|
|
141
141
|
async acceptOwnershipTransfer(workflowId) {
|
|
142
|
-
|
|
143
|
-
const data = await
|
|
142
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
143
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_acceptOwnershipTransfer", {
|
|
144
144
|
pathParams: { id: workflowId },
|
|
145
145
|
jsonBody: {}
|
|
146
146
|
});
|
|
@@ -152,7 +152,7 @@ var WorkflowsResourceBase = class {
|
|
|
152
152
|
function updateMaskQuery(updateMask) {
|
|
153
153
|
if (updateMask === void 0) return void 0;
|
|
154
154
|
if (!updateMask.trim()) {
|
|
155
|
-
throw new (0,
|
|
155
|
+
throw new (0, _chunkQHA3LF2Qcjs.ValidationError)("update_mask must be a non-empty comma-separated list of field names");
|
|
156
156
|
}
|
|
157
157
|
return { updateMask };
|
|
158
158
|
}
|
|
@@ -184,8 +184,8 @@ var WorkflowsInterfacesResourceBase = class {
|
|
|
184
184
|
* **Requires:** `workflows:read`
|
|
185
185
|
*/
|
|
186
186
|
async list() {
|
|
187
|
-
|
|
188
|
-
const data = await
|
|
187
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.workflowId, "workflow_id");
|
|
188
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_list", {
|
|
189
189
|
pathParams: { id: this.workflowId }
|
|
190
190
|
});
|
|
191
191
|
return data.interfaces;
|
|
@@ -199,8 +199,8 @@ var WorkflowsInterfacesResourceBase = class {
|
|
|
199
199
|
* **Requires:** `workflows:write`
|
|
200
200
|
*/
|
|
201
201
|
async deleteAll() {
|
|
202
|
-
|
|
203
|
-
await
|
|
202
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.workflowId, "workflow_id");
|
|
203
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_deleteAll", {
|
|
204
204
|
pathParams: { id: this.workflowId }
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -214,9 +214,9 @@ var WorkflowsInterfacesResourceBase = class {
|
|
|
214
214
|
* @param interfaceId - Interface row id (UUID).
|
|
215
215
|
*/
|
|
216
216
|
async delete(interfaceId) {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
await
|
|
217
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.workflowId, "workflow_id");
|
|
218
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, interfaceId, "interface_id");
|
|
219
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_delete", {
|
|
220
220
|
pathParams: { id: this.workflowId, interfaceId }
|
|
221
221
|
});
|
|
222
222
|
}
|
|
@@ -231,10 +231,10 @@ var WorkflowInterfacesResource = class extends WorkflowsInterfacesResourceBase {
|
|
|
231
231
|
* @returns The created interface.
|
|
232
232
|
*/
|
|
233
233
|
async create(options) {
|
|
234
|
-
|
|
235
|
-
return await
|
|
234
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.workflowId, "workflow_id");
|
|
235
|
+
return await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_add", {
|
|
236
236
|
pathParams: { id: this.workflowId },
|
|
237
|
-
jsonBody:
|
|
237
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, options)
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
@@ -246,9 +246,9 @@ var WorkflowInterfacesResource = class extends WorkflowsInterfacesResourceBase {
|
|
|
246
246
|
* @returns The updated interface.
|
|
247
247
|
*/
|
|
248
248
|
async update(interfaceId, options, updateMask) {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
return await
|
|
249
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.workflowId, "workflow_id");
|
|
250
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, interfaceId, "interface_id");
|
|
251
|
+
return await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_update", {
|
|
252
252
|
pathParams: { id: this.workflowId, interfaceId },
|
|
253
253
|
query: updateMaskQuery(updateMask),
|
|
254
254
|
jsonBody: updateBody(options, updateMask)
|
|
@@ -293,9 +293,9 @@ var ManagementWorkflowsResource = class extends WorkflowsResourceBase {
|
|
|
293
293
|
* ```
|
|
294
294
|
*/
|
|
295
295
|
async get(workflowId, options = {}) {
|
|
296
|
-
|
|
296
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
297
297
|
const query = options.view !== void 0 ? { view: options.view } : void 0;
|
|
298
|
-
const data = await
|
|
298
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.get, {
|
|
299
299
|
pathParams: { id: workflowId },
|
|
300
300
|
query
|
|
301
301
|
});
|
|
@@ -324,7 +324,7 @@ var ManagementWorkflowsResource = class extends WorkflowsResourceBase {
|
|
|
324
324
|
* ```
|
|
325
325
|
*/
|
|
326
326
|
async create(options) {
|
|
327
|
-
const body =
|
|
327
|
+
const body = _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, {
|
|
328
328
|
name: options.name,
|
|
329
329
|
type: options.type,
|
|
330
330
|
description: options.description,
|
|
@@ -332,7 +332,7 @@ var ManagementWorkflowsResource = class extends WorkflowsResourceBase {
|
|
|
332
332
|
agentSelection: options.agentSelection,
|
|
333
333
|
workflowStructure: options.workflowStructure
|
|
334
334
|
});
|
|
335
|
-
const data = await
|
|
335
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.create, {
|
|
336
336
|
jsonBody: body
|
|
337
337
|
});
|
|
338
338
|
return parseWorkflow(data);
|
|
@@ -354,7 +354,7 @@ var ManagementWorkflowsResource = class extends WorkflowsResourceBase {
|
|
|
354
354
|
* ```
|
|
355
355
|
*/
|
|
356
356
|
async update(workflowId, options = {}) {
|
|
357
|
-
|
|
357
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
358
358
|
const fields = {
|
|
359
359
|
name: options.name,
|
|
360
360
|
type: options.type,
|
|
@@ -364,7 +364,7 @@ var ManagementWorkflowsResource = class extends WorkflowsResourceBase {
|
|
|
364
364
|
workflowStructure: options.workflowStructure
|
|
365
365
|
};
|
|
366
366
|
const body = updateBody(fields, options.updateMask);
|
|
367
|
-
const data = await
|
|
367
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.update, {
|
|
368
368
|
pathParams: { id: workflowId },
|
|
369
369
|
query: updateMaskQuery(options.updateMask),
|
|
370
370
|
jsonBody: body
|
|
@@ -384,9 +384,9 @@ var ManagementWorkflowsResource = class extends WorkflowsResourceBase {
|
|
|
384
384
|
* ```
|
|
385
385
|
*/
|
|
386
386
|
async deploy(workflowId) {
|
|
387
|
-
|
|
388
|
-
const data =
|
|
389
|
-
await
|
|
387
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
388
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
389
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.deploy, {
|
|
390
390
|
pathParams: { id: workflowId },
|
|
391
391
|
jsonBody: {}
|
|
392
392
|
})
|
|
@@ -401,8 +401,8 @@ var ManagementWorkflowsResource = class extends WorkflowsResourceBase {
|
|
|
401
401
|
* @returns The updated workflow.
|
|
402
402
|
*/
|
|
403
403
|
async toggle(workflowId, options) {
|
|
404
|
-
|
|
405
|
-
const data = await
|
|
404
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
405
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.toggle, {
|
|
406
406
|
pathParams: { id: workflowId },
|
|
407
407
|
jsonBody: { active: options.active }
|
|
408
408
|
});
|
|
@@ -416,14 +416,14 @@ var ManagementWorkflowsResource = class extends WorkflowsResourceBase {
|
|
|
416
416
|
* @returns The workflow with a pending ownership transfer.
|
|
417
417
|
*/
|
|
418
418
|
async requestOwnershipTransfer(workflowId, options) {
|
|
419
|
-
|
|
420
|
-
const data = await
|
|
419
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, workflowId, "workflow_id");
|
|
420
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0,
|
|
421
421
|
this.config,
|
|
422
422
|
this.http,
|
|
423
423
|
this.ops.requestOwnershipTransfer,
|
|
424
424
|
{
|
|
425
425
|
pathParams: { id: workflowId },
|
|
426
|
-
jsonBody:
|
|
426
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, { newOwnerUserId: options.newOwnerUserId })
|
|
427
427
|
}
|
|
428
428
|
);
|
|
429
429
|
return parseWorkflow(data);
|
|
@@ -438,10 +438,10 @@ function withCreatedUid(data) {
|
|
|
438
438
|
// src/management/context/_content-merge.ts
|
|
439
439
|
function requireContentDict(item, contextType) {
|
|
440
440
|
if (item.contextType !== contextType) {
|
|
441
|
-
throw new (0,
|
|
441
|
+
throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`Expected contextType ${contextType}, got ${item.contextType}.`);
|
|
442
442
|
}
|
|
443
443
|
if (!item.content || typeof item.content !== "object" || Array.isArray(item.content)) {
|
|
444
|
-
throw new (0,
|
|
444
|
+
throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`Context item ${item.uid} has no object content; cannot merge ${contextType} fields.`);
|
|
445
445
|
}
|
|
446
446
|
return item.content;
|
|
447
447
|
}
|
|
@@ -498,7 +498,7 @@ async function resolveAndUpdateSavedQuery(items, uid, options) {
|
|
|
498
498
|
}
|
|
499
499
|
async function resolveAndUpdateLink(items, uid, options) {
|
|
500
500
|
if (options.title === void 0 && options.url === void 0 && options.description === void 0 && options.userFeedback === void 0 && options.topics === void 0) {
|
|
501
|
-
throw new (0,
|
|
501
|
+
throw new (0, _chunkQHA3LF2Qcjs.ValidationError)("Provide at least one field to update.");
|
|
502
502
|
}
|
|
503
503
|
if (options.title === void 0 && options.url === void 0) {
|
|
504
504
|
return items.update(uid, {
|
|
@@ -541,8 +541,8 @@ var ContextDashboardsResourceBase = class {
|
|
|
541
541
|
* ```
|
|
542
542
|
*/
|
|
543
543
|
async delete(dashboardId) {
|
|
544
|
-
|
|
545
|
-
await
|
|
544
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
545
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_delete", {
|
|
546
546
|
pathParams: { dashboardId }
|
|
547
547
|
});
|
|
548
548
|
}
|
|
@@ -562,11 +562,11 @@ var ContextDashboardsResourceBase = class {
|
|
|
562
562
|
* ```
|
|
563
563
|
*/
|
|
564
564
|
async listDraftSnapshots(dashboardId) {
|
|
565
|
-
|
|
566
|
-
const data = await
|
|
565
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
566
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listDraftSnapshots", {
|
|
567
567
|
pathParams: { dashboardId }
|
|
568
568
|
});
|
|
569
|
-
return
|
|
569
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data).snapshots;
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
572
572
|
* Cancel an ownership transfer.
|
|
@@ -583,11 +583,11 @@ var ContextDashboardsResourceBase = class {
|
|
|
583
583
|
* ```
|
|
584
584
|
*/
|
|
585
585
|
async cancelOwnershipTransfer(dashboardId) {
|
|
586
|
-
|
|
587
|
-
const data = await
|
|
586
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
587
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_cancelOwnership", {
|
|
588
588
|
pathParams: { dashboardId }
|
|
589
589
|
});
|
|
590
|
-
return
|
|
590
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data);
|
|
591
591
|
}
|
|
592
592
|
/**
|
|
593
593
|
* Accept an ownership transfer.
|
|
@@ -604,11 +604,11 @@ var ContextDashboardsResourceBase = class {
|
|
|
604
604
|
* ```
|
|
605
605
|
*/
|
|
606
606
|
async acceptOwnershipTransfer(dashboardId) {
|
|
607
|
-
|
|
608
|
-
const data = await
|
|
607
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
608
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_acceptOwnership", {
|
|
609
609
|
pathParams: { dashboardId }
|
|
610
610
|
});
|
|
611
|
-
return
|
|
611
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data);
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
614
|
* List dashboard versions.
|
|
@@ -627,11 +627,11 @@ var ContextDashboardsResourceBase = class {
|
|
|
627
627
|
* ```
|
|
628
628
|
*/
|
|
629
629
|
async listVersions(dashboardId) {
|
|
630
|
-
|
|
631
|
-
const data = await
|
|
630
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
631
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listVersions", {
|
|
632
632
|
pathParams: { dashboardId }
|
|
633
633
|
});
|
|
634
|
-
return
|
|
634
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data).versions;
|
|
635
635
|
}
|
|
636
636
|
/**
|
|
637
637
|
* Get a dashboard version.
|
|
@@ -651,12 +651,12 @@ var ContextDashboardsResourceBase = class {
|
|
|
651
651
|
* ```
|
|
652
652
|
*/
|
|
653
653
|
async getVersion(dashboardId, versionId) {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
const data = await
|
|
654
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
655
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, versionId, "versionId");
|
|
656
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_getVersion", {
|
|
657
657
|
pathParams: { dashboardId, versionId }
|
|
658
658
|
});
|
|
659
|
-
return
|
|
659
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data);
|
|
660
660
|
}
|
|
661
661
|
/**
|
|
662
662
|
* Restore a dashboard version.
|
|
@@ -675,12 +675,12 @@ var ContextDashboardsResourceBase = class {
|
|
|
675
675
|
* ```
|
|
676
676
|
*/
|
|
677
677
|
async restoreVersion(dashboardId, versionId) {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
const data = await
|
|
678
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
679
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, versionId, "versionId");
|
|
680
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_restore", {
|
|
681
681
|
pathParams: { dashboardId, versionId }
|
|
682
682
|
});
|
|
683
|
-
return
|
|
683
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data);
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
686
|
|
|
@@ -708,10 +708,10 @@ var ContextDashboardsElementsResourceBase = class {
|
|
|
708
708
|
* ```
|
|
709
709
|
*/
|
|
710
710
|
async list() {
|
|
711
|
-
const data = await
|
|
711
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listElements", {
|
|
712
712
|
pathParams: { dashboardId: this.dashboardId }
|
|
713
713
|
});
|
|
714
|
-
return
|
|
714
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data);
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
717
717
|
* Get a dashboard element.
|
|
@@ -730,11 +730,11 @@ var ContextDashboardsElementsResourceBase = class {
|
|
|
730
730
|
* ```
|
|
731
731
|
*/
|
|
732
732
|
async get(elementId) {
|
|
733
|
-
|
|
734
|
-
const data = await
|
|
733
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, elementId, "elementId");
|
|
734
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_getElement", {
|
|
735
735
|
pathParams: { dashboardId: this.dashboardId, elementId }
|
|
736
736
|
});
|
|
737
|
-
return
|
|
737
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data);
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
|
|
@@ -767,8 +767,8 @@ var ManagementDashboardElementsResource = class extends ContextDashboardsElement
|
|
|
767
767
|
* ```
|
|
768
768
|
*/
|
|
769
769
|
async create(input) {
|
|
770
|
-
return
|
|
771
|
-
await
|
|
770
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
771
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_createElement", {
|
|
772
772
|
pathParams: { dashboardId: this.dashboardId },
|
|
773
773
|
jsonBody: {
|
|
774
774
|
expectedRevision: input.expectedRevision,
|
|
@@ -798,9 +798,9 @@ var ManagementDashboardElementsResource = class extends ContextDashboardsElement
|
|
|
798
798
|
* ```
|
|
799
799
|
*/
|
|
800
800
|
async update(elementId, input) {
|
|
801
|
-
|
|
802
|
-
return
|
|
803
|
-
await
|
|
801
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, elementId, "elementId");
|
|
802
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
803
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_updateElement", {
|
|
804
804
|
pathParams: { dashboardId: this.dashboardId, elementId },
|
|
805
805
|
jsonBody: { expectedRevision: input.expectedRevision, patch: input.patch }
|
|
806
806
|
})
|
|
@@ -825,8 +825,8 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
825
825
|
* ```
|
|
826
826
|
*/
|
|
827
827
|
async list(options = {}) {
|
|
828
|
-
const data =
|
|
829
|
-
await
|
|
828
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
829
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_list", {
|
|
830
830
|
query: { view: options.view }
|
|
831
831
|
})
|
|
832
832
|
);
|
|
@@ -847,9 +847,9 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
847
847
|
* ```
|
|
848
848
|
*/
|
|
849
849
|
async get(dashboardId, options = {}) {
|
|
850
|
-
|
|
851
|
-
return
|
|
852
|
-
await
|
|
850
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
851
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
852
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_get", {
|
|
853
853
|
pathParams: { dashboardId },
|
|
854
854
|
query: { view: options.view }
|
|
855
855
|
})
|
|
@@ -878,8 +878,8 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
878
878
|
* ```
|
|
879
879
|
*/
|
|
880
880
|
async create(input) {
|
|
881
|
-
return
|
|
882
|
-
await
|
|
881
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
882
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_create", {
|
|
883
883
|
jsonBody: {
|
|
884
884
|
title: input.title,
|
|
885
885
|
description: input.description,
|
|
@@ -913,9 +913,9 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
913
913
|
* ```
|
|
914
914
|
*/
|
|
915
915
|
async updateDraft(dashboardId, input) {
|
|
916
|
-
|
|
917
|
-
return
|
|
918
|
-
await
|
|
916
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
917
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
918
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_updateDraft", {
|
|
919
919
|
pathParams: { dashboardId },
|
|
920
920
|
jsonBody: {
|
|
921
921
|
expectedRevision: input.expectedRevision,
|
|
@@ -943,9 +943,9 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
943
943
|
* ```
|
|
944
944
|
*/
|
|
945
945
|
async publish(dashboardId, input) {
|
|
946
|
-
|
|
947
|
-
return
|
|
948
|
-
await
|
|
946
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
947
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
948
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_publish", {
|
|
949
949
|
pathParams: { dashboardId },
|
|
950
950
|
jsonBody: { expectedRevision: input.expectedRevision }
|
|
951
951
|
})
|
|
@@ -975,9 +975,9 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
975
975
|
* ```
|
|
976
976
|
*/
|
|
977
977
|
async updateAccess(dashboardId, input) {
|
|
978
|
-
|
|
979
|
-
return
|
|
980
|
-
await
|
|
978
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
979
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
980
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_updateAccess", {
|
|
981
981
|
pathParams: { dashboardId },
|
|
982
982
|
jsonBody: {
|
|
983
983
|
visibility: input.visibility,
|
|
@@ -1006,10 +1006,10 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
1006
1006
|
* ```
|
|
1007
1007
|
*/
|
|
1008
1008
|
async requestOwnershipTransfer(dashboardId, input) {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
return
|
|
1012
|
-
await
|
|
1009
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
1010
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, input.newOwnerUserId, "newOwnerUserId");
|
|
1011
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1012
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_transferOwnership", {
|
|
1013
1013
|
pathParams: { dashboardId },
|
|
1014
1014
|
jsonBody: { newOwnerUserId: input.newOwnerUserId }
|
|
1015
1015
|
})
|
|
@@ -1026,7 +1026,7 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
1026
1026
|
* ```
|
|
1027
1027
|
*/
|
|
1028
1028
|
elements(dashboardId) {
|
|
1029
|
-
|
|
1029
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
1030
1030
|
return new ManagementDashboardElementsResource(this.http, this.config, dashboardId);
|
|
1031
1031
|
}
|
|
1032
1032
|
/**
|
|
@@ -1047,9 +1047,9 @@ var ManagementDashboardsResource = class extends ContextDashboardsResourceBase {
|
|
|
1047
1047
|
* ```
|
|
1048
1048
|
*/
|
|
1049
1049
|
async updateLayout(dashboardId, input) {
|
|
1050
|
-
|
|
1051
|
-
return
|
|
1052
|
-
await
|
|
1050
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, dashboardId, "dashboardId");
|
|
1051
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1052
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_updateLayout", {
|
|
1053
1053
|
pathParams: { dashboardId },
|
|
1054
1054
|
jsonBody: { expectedRevision: input.expectedRevision, elements: input.elements }
|
|
1055
1055
|
})
|
|
@@ -1083,16 +1083,16 @@ var ContextFilesResourceBase = class {
|
|
|
1083
1083
|
*/
|
|
1084
1084
|
list(options = {}) {
|
|
1085
1085
|
const pageSize = _nullishCoalesce(options.pageSize, () => ( 50));
|
|
1086
|
-
|
|
1086
|
+
_chunkQHA3LF2Qcjs.validatePageSize.call(void 0, pageSize, 200);
|
|
1087
1087
|
return this.listPage(pageSize, options.pageToken);
|
|
1088
1088
|
}
|
|
1089
1089
|
async listPage(pageSize, pageToken) {
|
|
1090
|
-
const data =
|
|
1091
|
-
await
|
|
1092
|
-
query:
|
|
1090
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1091
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_list", {
|
|
1092
|
+
query: _chunkQHA3LF2Qcjs.aipListParams.call(void 0, pageSize, pageToken)
|
|
1093
1093
|
})
|
|
1094
1094
|
);
|
|
1095
|
-
return
|
|
1095
|
+
return _chunkQHA3LF2Qcjs.buildAipPage.call(void 0,
|
|
1096
1096
|
data,
|
|
1097
1097
|
"files",
|
|
1098
1098
|
(raw) => raw,
|
|
@@ -1110,11 +1110,11 @@ var ContextFilesResourceBase = class {
|
|
|
1110
1110
|
* @param uploadId - Upload id returned by `createUploadUrl` / `createUploadUrls`.
|
|
1111
1111
|
*/
|
|
1112
1112
|
async get(uploadId) {
|
|
1113
|
-
|
|
1114
|
-
const data = await
|
|
1113
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, uploadId, "uploadId");
|
|
1114
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_get", {
|
|
1115
1115
|
pathParams: { uploadId }
|
|
1116
1116
|
});
|
|
1117
|
-
return
|
|
1117
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0, data);
|
|
1118
1118
|
}
|
|
1119
1119
|
};
|
|
1120
1120
|
|
|
@@ -1132,19 +1132,19 @@ async function statInput(path) {
|
|
|
1132
1132
|
return await _promises.stat.call(void 0, path);
|
|
1133
1133
|
} catch (error) {
|
|
1134
1134
|
const code = error.code;
|
|
1135
|
-
if (code === "ENOENT" || code === "ENOTDIR") throw new (0,
|
|
1135
|
+
if (code === "ENOENT" || code === "ENOTDIR") throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`No such file or directory: ${path}`);
|
|
1136
1136
|
throw error;
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
function validateWaitUntil(waitUntil) {
|
|
1140
1140
|
if (!WAIT_UNTIL_VALUES.has(waitUntil)) {
|
|
1141
|
-
throw new (0,
|
|
1141
|
+
throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`waitUntil must be one of ${[...WAIT_UNTIL_VALUES].join(", ")}, got ${waitUntil}`);
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
1144
|
function validateBulkSize(count, name) {
|
|
1145
|
-
if (count === 0) throw new (0,
|
|
1145
|
+
if (count === 0) throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`${name} must not be empty`);
|
|
1146
1146
|
if (count > MAX_BULK_UPLOAD_FILES) {
|
|
1147
|
-
throw new (0,
|
|
1147
|
+
throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`${name} must have at most ${MAX_BULK_UPLOAD_FILES} entries, got ${count}`);
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
function statusSatisfies(status, waitUntil) {
|
|
@@ -1207,7 +1207,7 @@ async function putBytes(fetchImpl, slot, data, timeoutMs) {
|
|
|
1207
1207
|
});
|
|
1208
1208
|
if (!response.ok) {
|
|
1209
1209
|
const text = await response.text().catch(() => "");
|
|
1210
|
-
throw new (0,
|
|
1210
|
+
throw new (0, _chunkQHA3LF2Qcjs.ModusError)(`Upload PUT to presigned URL failed with HTTP ${response.status}.`, {
|
|
1211
1211
|
statusCode: response.status,
|
|
1212
1212
|
body: text ? text.slice(0, 500) : void 0
|
|
1213
1213
|
});
|
|
@@ -1265,8 +1265,8 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1265
1265
|
* re-derives the key from `uploadId` and `fileName`.
|
|
1266
1266
|
*/
|
|
1267
1267
|
async createUploadUrl(input) {
|
|
1268
|
-
return
|
|
1269
|
-
await
|
|
1268
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1269
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_uploadUrl", {
|
|
1270
1270
|
jsonBody: { fileName: input.fileName, contentType: input.contentType, fileSize: input.fileSize }
|
|
1271
1271
|
})
|
|
1272
1272
|
);
|
|
@@ -1280,8 +1280,8 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1280
1280
|
*/
|
|
1281
1281
|
async createUploadUrls(files) {
|
|
1282
1282
|
validateBulkSize(files.length, "files");
|
|
1283
|
-
return
|
|
1284
|
-
await
|
|
1283
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1284
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_uploadUrls", {
|
|
1285
1285
|
jsonBody: createSlotsPayload(files)
|
|
1286
1286
|
})
|
|
1287
1287
|
);
|
|
@@ -1296,8 +1296,8 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1296
1296
|
* @returns File upload resource with status `processing` — parsing continues async.
|
|
1297
1297
|
*/
|
|
1298
1298
|
async uploadFromUrl(url, options = {}) {
|
|
1299
|
-
return
|
|
1300
|
-
await
|
|
1299
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1300
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_uploadFromUrl", {
|
|
1301
1301
|
jsonBody: {
|
|
1302
1302
|
url,
|
|
1303
1303
|
...options.fileName !== void 0 ? { fileName: options.fileName } : {},
|
|
@@ -1315,8 +1315,8 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1315
1315
|
*/
|
|
1316
1316
|
async uploadFromUrls(urls) {
|
|
1317
1317
|
validateBulkSize(urls.length, "urls");
|
|
1318
|
-
return
|
|
1319
|
-
await
|
|
1318
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1319
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_uploadFromUrls", {
|
|
1320
1320
|
jsonBody: uploadFromUrlsPayload(urls)
|
|
1321
1321
|
})
|
|
1322
1322
|
);
|
|
@@ -1333,9 +1333,9 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1333
1333
|
* @returns The file upload resource, status `"processing"`.
|
|
1334
1334
|
*/
|
|
1335
1335
|
async finalize(uploadId, fileName, options = {}) {
|
|
1336
|
-
|
|
1337
|
-
return
|
|
1338
|
-
await
|
|
1336
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, uploadId, "uploadId");
|
|
1337
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1338
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_finalize", {
|
|
1339
1339
|
pathParams: { uploadId },
|
|
1340
1340
|
jsonBody: { fileName, ...options.folderPath !== void 0 ? { folderPath: options.folderPath } : {} }
|
|
1341
1341
|
})
|
|
@@ -1353,8 +1353,8 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1353
1353
|
*/
|
|
1354
1354
|
async finalizeMany(uploads) {
|
|
1355
1355
|
validateBulkSize(uploads.length, "uploads");
|
|
1356
|
-
return
|
|
1357
|
-
await
|
|
1356
|
+
return _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1357
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_finalizeMany", {
|
|
1358
1358
|
jsonBody: {
|
|
1359
1359
|
uploads: uploads.map((u) => ({
|
|
1360
1360
|
uploadId: u.uploadId,
|
|
@@ -1414,7 +1414,7 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1414
1414
|
const waitUntil = _nullishCoalesce(options.waitUntil, () => ( "processing"));
|
|
1415
1415
|
validateWaitUntil(waitUntil);
|
|
1416
1416
|
const fileStat = await statInput(path);
|
|
1417
|
-
if (!fileStat.isFile()) throw new (0,
|
|
1417
|
+
if (!fileStat.isFile()) throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`Not a file: ${path}`);
|
|
1418
1418
|
const fileName = path.split(/[/\\]/).pop();
|
|
1419
1419
|
const slot = await this.createUploadUrl({
|
|
1420
1420
|
fileName,
|
|
@@ -1440,7 +1440,7 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1440
1440
|
const item = await this.get(uploadId);
|
|
1441
1441
|
if (statusSatisfies(item.status, waitUntil)) return item;
|
|
1442
1442
|
if (Date.now() >= deadline) {
|
|
1443
|
-
throw new (0,
|
|
1443
|
+
throw new (0, _chunkQHA3LF2Qcjs.ModusError)(
|
|
1444
1444
|
`Timed out after ${timeoutMs}ms waiting for upload ${JSON.stringify(uploadId)} to reach status ${JSON.stringify(waitUntil)}; last status was ${JSON.stringify(item.status)}.`
|
|
1445
1445
|
);
|
|
1446
1446
|
}
|
|
@@ -1476,9 +1476,9 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1476
1476
|
const waitUntil = _nullishCoalesce(options.waitUntil, () => ( "processing"));
|
|
1477
1477
|
validateWaitUntil(waitUntil);
|
|
1478
1478
|
const concurrency = _nullishCoalesce(options.concurrency, () => ( DEFAULT_CONCURRENCY));
|
|
1479
|
-
if (concurrency < 1) throw new (0,
|
|
1479
|
+
if (concurrency < 1) throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`concurrency must be >= 1, got ${concurrency}`);
|
|
1480
1480
|
const dirStat = await statInput(path);
|
|
1481
|
-
if (!dirStat.isDirectory()) throw new (0,
|
|
1481
|
+
if (!dirStat.isDirectory()) throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`Not a directory: ${path}`);
|
|
1482
1482
|
const files = await walkFiles(path, _nullishCoalesce(options.recursive, () => ( true)));
|
|
1483
1483
|
return this.uploadPaths(files.map((file) => {
|
|
1484
1484
|
const folderPath = _path.relative.call(void 0, path, _path.dirname.call(void 0, file)).replace(/\\/g, "/");
|
|
@@ -1491,7 +1491,7 @@ var ManagementContextFilesResource = class extends ContextFilesResourceBase {
|
|
|
1491
1491
|
const waitUntil = _nullishCoalesce(options.waitUntil, () => ( "processing"));
|
|
1492
1492
|
validateWaitUntil(waitUntil);
|
|
1493
1493
|
const concurrency = _nullishCoalesce(options.concurrency, () => ( DEFAULT_CONCURRENCY));
|
|
1494
|
-
if (concurrency < 1) throw new (0,
|
|
1494
|
+
if (concurrency < 1) throw new (0, _chunkQHA3LF2Qcjs.ValidationError)(`concurrency must be >= 1, got ${concurrency}`);
|
|
1495
1495
|
const prefixed = files.map((file) => {
|
|
1496
1496
|
const folderPath = joinDestination(options.folderPath, file.folderPath);
|
|
1497
1497
|
return { path: file.path, ...folderPath !== void 0 ? { folderPath } : {} };
|
|
@@ -1628,7 +1628,14 @@ function contextListParams(pageSize, pageToken, filters = {}) {
|
|
|
1628
1628
|
if (filters.connectionIds !== void 0) {
|
|
1629
1629
|
extra.connectionIds = filters.connectionIds.length === 0 ? "" : [...filters.connectionIds];
|
|
1630
1630
|
}
|
|
1631
|
-
return
|
|
1631
|
+
return _chunkQHA3LF2Qcjs.aipListParams.call(void 0, pageSize, pageToken, extra);
|
|
1632
|
+
}
|
|
1633
|
+
function moveBody(options) {
|
|
1634
|
+
if (options.destinationFolderPath === void 0) return { destinationFolderUid: options.destinationFolderUid };
|
|
1635
|
+
if (options.destinationFolderUid !== void 0) {
|
|
1636
|
+
throw new (0, _chunkQHA3LF2Qcjs.ValidationError)("Pass destinationFolderUid or destinationFolderPath, not both");
|
|
1637
|
+
}
|
|
1638
|
+
return { destinationFolderPath: options.destinationFolderPath };
|
|
1632
1639
|
}
|
|
1633
1640
|
function parseContextItem(raw) {
|
|
1634
1641
|
return raw;
|
|
@@ -1667,7 +1674,7 @@ var ManagementContextItemsResource = class {
|
|
|
1667
1674
|
*/
|
|
1668
1675
|
list(options = {}) {
|
|
1669
1676
|
const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
|
|
1670
|
-
|
|
1677
|
+
_chunkQHA3LF2Qcjs.validatePageSize.call(void 0, pageSize);
|
|
1671
1678
|
return this.listPage(pageSize, options.pageToken, {
|
|
1672
1679
|
contextType: options.contextType,
|
|
1673
1680
|
parentUids: options.parentUids,
|
|
@@ -1676,12 +1683,12 @@ var ManagementContextItemsResource = class {
|
|
|
1676
1683
|
});
|
|
1677
1684
|
}
|
|
1678
1685
|
async listPage(pageSize, pageToken, filters) {
|
|
1679
|
-
const data =
|
|
1680
|
-
await
|
|
1686
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
1687
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_list", {
|
|
1681
1688
|
query: contextListParams(pageSize, pageToken, filters)
|
|
1682
1689
|
})
|
|
1683
1690
|
);
|
|
1684
|
-
return
|
|
1691
|
+
return _chunkQHA3LF2Qcjs.buildAipPage.call(void 0,
|
|
1685
1692
|
data,
|
|
1686
1693
|
"contextItems",
|
|
1687
1694
|
parseContextItem,
|
|
@@ -1695,7 +1702,7 @@ var ManagementContextItemsResource = class {
|
|
|
1695
1702
|
* @returns The context item.
|
|
1696
1703
|
*/
|
|
1697
1704
|
async get(uid) {
|
|
1698
|
-
const data = await
|
|
1705
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_get", {
|
|
1699
1706
|
pathParams: { uid }
|
|
1700
1707
|
});
|
|
1701
1708
|
return parseContextItem(data);
|
|
@@ -1723,7 +1730,7 @@ var ManagementContextItemsResource = class {
|
|
|
1723
1730
|
userFeedback: options.userFeedback,
|
|
1724
1731
|
topics: options.topics
|
|
1725
1732
|
}, options.updateMask);
|
|
1726
|
-
await
|
|
1733
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_update", {
|
|
1727
1734
|
pathParams: { uid },
|
|
1728
1735
|
query: updateMaskQuery(options.updateMask),
|
|
1729
1736
|
jsonBody: body
|
|
@@ -1737,7 +1744,7 @@ var ManagementContextItemsResource = class {
|
|
|
1737
1744
|
* @returns Deletion confirmation details.
|
|
1738
1745
|
*/
|
|
1739
1746
|
async delete(uid) {
|
|
1740
|
-
const data = await
|
|
1747
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_delete", {
|
|
1741
1748
|
pathParams: { uid }
|
|
1742
1749
|
});
|
|
1743
1750
|
return data;
|
|
@@ -1745,13 +1752,15 @@ var ManagementContextItemsResource = class {
|
|
|
1745
1752
|
/**
|
|
1746
1753
|
* Move a live file or Files folder.
|
|
1747
1754
|
*
|
|
1748
|
-
* Pass
|
|
1749
|
-
*
|
|
1750
|
-
*
|
|
1755
|
+
* Pass exactly one destination: `destinationFolderUid` (an existing folder,
|
|
1756
|
+
* or `null` for the Files root), or `destinationFolderPath` (a root-relative
|
|
1757
|
+
* path such as `reports/2026`; missing folders on it are created with the
|
|
1758
|
+
* move). Same-parent moves succeed as a no-op. Does not rename or merge folders.
|
|
1751
1759
|
*
|
|
1752
1760
|
* @param uid - Stored context-item uid of the file or folder to move.
|
|
1753
1761
|
* @param options.destinationFolderUid - Stored context-item uid of the
|
|
1754
1762
|
* destination folder, or `null` for the Files root.
|
|
1763
|
+
* @param options.destinationFolderPath - Root-relative destination folder path.
|
|
1755
1764
|
* @returns How many items changed parent (`0` is a successful no-op).
|
|
1756
1765
|
* @throws {NotFoundError} The source is missing or not visible.
|
|
1757
1766
|
* @throws {ModusError} The destination is missing, not a Files folder, or
|
|
@@ -1769,13 +1778,13 @@ var ManagementContextItemsResource = class {
|
|
|
1769
1778
|
* ```
|
|
1770
1779
|
*/
|
|
1771
1780
|
async move(uid, options) {
|
|
1772
|
-
const data = await
|
|
1781
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0,
|
|
1773
1782
|
this.config,
|
|
1774
1783
|
this.http,
|
|
1775
1784
|
"ContextItemsController_move",
|
|
1776
1785
|
{
|
|
1777
1786
|
pathParams: { uid },
|
|
1778
|
-
jsonBody:
|
|
1787
|
+
jsonBody: moveBody(options)
|
|
1779
1788
|
}
|
|
1780
1789
|
);
|
|
1781
1790
|
return data;
|
|
@@ -1809,7 +1818,7 @@ var ManagementContextItemsResource = class {
|
|
|
1809
1818
|
* ```
|
|
1810
1819
|
*/
|
|
1811
1820
|
async updateAccess(uid, input) {
|
|
1812
|
-
const data = await
|
|
1821
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0,
|
|
1813
1822
|
this.config,
|
|
1814
1823
|
this.http,
|
|
1815
1824
|
"ContextItemAccessController_updateAccess",
|
|
@@ -1833,7 +1842,7 @@ var ManagementContextResource = class {
|
|
|
1833
1842
|
this.http = http;
|
|
1834
1843
|
this.config = config;
|
|
1835
1844
|
this.items = new ManagementContextItemsResource(http, config);
|
|
1836
|
-
this.customItems = new (0,
|
|
1845
|
+
this.customItems = new (0, _chunkQHA3LF2Qcjs.CustomContextItemsResource)(http, config);
|
|
1837
1846
|
this.files = new ManagementContextFilesResource(http, config);
|
|
1838
1847
|
this.dashboards = new ManagementDashboardsResource(http, config);
|
|
1839
1848
|
}
|
|
@@ -1850,7 +1859,7 @@ var ManagementContextResource = class {
|
|
|
1850
1859
|
* ```
|
|
1851
1860
|
*/
|
|
1852
1861
|
createNote(title, content) {
|
|
1853
|
-
return this.create("ContextCreatorsController_createNote",
|
|
1862
|
+
return this.create("ContextCreatorsController_createNote", _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, { title, content }));
|
|
1854
1863
|
}
|
|
1855
1864
|
/**
|
|
1856
1865
|
* Update a note's title and markdown body.
|
|
@@ -1895,7 +1904,7 @@ var ManagementContextResource = class {
|
|
|
1895
1904
|
createSavedQuery(name, options) {
|
|
1896
1905
|
return this.create(
|
|
1897
1906
|
"ContextCreatorsController_createSavedQuery",
|
|
1898
|
-
|
|
1907
|
+
_chunkQHA3LF2Qcjs.omitUndefined.call(void 0, {
|
|
1899
1908
|
name,
|
|
1900
1909
|
query: options.query,
|
|
1901
1910
|
connectionId: options.connectionId,
|
|
@@ -1943,7 +1952,7 @@ var ManagementContextResource = class {
|
|
|
1943
1952
|
createLink(url, options = {}) {
|
|
1944
1953
|
return this.create(
|
|
1945
1954
|
"ContextCreatorsController_createLink",
|
|
1946
|
-
|
|
1955
|
+
_chunkQHA3LF2Qcjs.omitUndefined.call(void 0, {
|
|
1947
1956
|
url,
|
|
1948
1957
|
title: options.title,
|
|
1949
1958
|
isCrawl: options.isCrawl,
|
|
@@ -1974,7 +1983,7 @@ var ManagementContextResource = class {
|
|
|
1974
1983
|
}
|
|
1975
1984
|
/** @internal */
|
|
1976
1985
|
async create(operationId, payload) {
|
|
1977
|
-
const data = await
|
|
1986
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, operationId, {
|
|
1978
1987
|
jsonBody: payload
|
|
1979
1988
|
});
|
|
1980
1989
|
return withCreatedUid(data);
|
|
@@ -2016,7 +2025,7 @@ var ScopesResourceBase = class {
|
|
|
2016
2025
|
*/
|
|
2017
2026
|
list(options = {}) {
|
|
2018
2027
|
const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
|
|
2019
|
-
|
|
2028
|
+
_chunkQHA3LF2Qcjs.validatePageSize.call(void 0, pageSize);
|
|
2020
2029
|
return this.listPage(pageSize, options.pageToken, options.search, options.view, options.managerId);
|
|
2021
2030
|
}
|
|
2022
2031
|
async listPage(pageSize, pageToken, search, view, managerId) {
|
|
@@ -2024,12 +2033,12 @@ var ScopesResourceBase = class {
|
|
|
2024
2033
|
if (search !== void 0) extra.search = search;
|
|
2025
2034
|
if (view !== void 0) extra.view = view;
|
|
2026
2035
|
if (managerId !== void 0) extra.managerId = managerId;
|
|
2027
|
-
const data =
|
|
2028
|
-
await
|
|
2029
|
-
query:
|
|
2036
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
2037
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_list", {
|
|
2038
|
+
query: _chunkQHA3LF2Qcjs.aipListParams.call(void 0, pageSize, pageToken, extra)
|
|
2030
2039
|
})
|
|
2031
2040
|
);
|
|
2032
|
-
return
|
|
2041
|
+
return _chunkQHA3LF2Qcjs.buildAipPage.call(void 0,
|
|
2033
2042
|
data,
|
|
2034
2043
|
"scopes",
|
|
2035
2044
|
(raw) => raw,
|
|
@@ -2057,8 +2066,8 @@ var ScopesResourceBase = class {
|
|
|
2057
2066
|
* ```
|
|
2058
2067
|
*/
|
|
2059
2068
|
async get(scopeId, options = {}) {
|
|
2060
|
-
|
|
2061
|
-
const data = await
|
|
2069
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2070
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_get", {
|
|
2062
2071
|
pathParams: { id: scopeId },
|
|
2063
2072
|
query: { view: options.view }
|
|
2064
2073
|
});
|
|
@@ -2081,8 +2090,8 @@ var ScopesResourceBase = class {
|
|
|
2081
2090
|
* ```
|
|
2082
2091
|
*/
|
|
2083
2092
|
async delete(scopeId) {
|
|
2084
|
-
|
|
2085
|
-
await
|
|
2093
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2094
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_delete", {
|
|
2086
2095
|
pathParams: { id: scopeId }
|
|
2087
2096
|
});
|
|
2088
2097
|
}
|
|
@@ -2105,10 +2114,10 @@ var ScopesResourceBase = class {
|
|
|
2105
2114
|
* ```
|
|
2106
2115
|
*/
|
|
2107
2116
|
async mcpExposureCatalog(scopeId, request) {
|
|
2108
|
-
|
|
2109
|
-
const data = await
|
|
2117
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2118
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_mcpExposureCatalog", {
|
|
2110
2119
|
pathParams: { id: scopeId },
|
|
2111
|
-
jsonBody:
|
|
2120
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, request)
|
|
2112
2121
|
});
|
|
2113
2122
|
return data;
|
|
2114
2123
|
}
|
|
@@ -2123,8 +2132,8 @@ var ScopesResourceBase = class {
|
|
|
2123
2132
|
* @param scopeId - Numeric scope id.
|
|
2124
2133
|
*/
|
|
2125
2134
|
async restore(scopeId) {
|
|
2126
|
-
|
|
2127
|
-
const data = await
|
|
2135
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2136
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_restore", {
|
|
2128
2137
|
pathParams: { id: scopeId },
|
|
2129
2138
|
jsonBody: {}
|
|
2130
2139
|
});
|
|
@@ -2141,8 +2150,8 @@ var ScopesResourceBase = class {
|
|
|
2141
2150
|
* @param scopeId - Numeric scope id.
|
|
2142
2151
|
*/
|
|
2143
2152
|
async cancelOwnershipTransfer(scopeId) {
|
|
2144
|
-
|
|
2145
|
-
const data = await
|
|
2153
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2154
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_cancelOwnershipTransfer", {
|
|
2146
2155
|
pathParams: { id: scopeId }
|
|
2147
2156
|
});
|
|
2148
2157
|
return data;
|
|
@@ -2157,8 +2166,8 @@ var ScopesResourceBase = class {
|
|
|
2157
2166
|
* @param scopeId - Numeric scope id.
|
|
2158
2167
|
*/
|
|
2159
2168
|
async acceptOwnershipTransfer(scopeId) {
|
|
2160
|
-
|
|
2161
|
-
const data = await
|
|
2169
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2170
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_acceptOwnershipTransfer", {
|
|
2162
2171
|
pathParams: { id: scopeId },
|
|
2163
2172
|
jsonBody: {}
|
|
2164
2173
|
});
|
|
@@ -2223,20 +2232,20 @@ var ScopesMemoriesResourceBase = class {
|
|
|
2223
2232
|
*/
|
|
2224
2233
|
list(options = {}) {
|
|
2225
2234
|
const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
|
|
2226
|
-
|
|
2235
|
+
_chunkQHA3LF2Qcjs.validatePageSize.call(void 0, pageSize);
|
|
2227
2236
|
return this.listPage(pageSize, options.pageToken, options.userId);
|
|
2228
2237
|
}
|
|
2229
2238
|
async listPage(pageSize, pageToken, userId) {
|
|
2230
|
-
|
|
2239
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2231
2240
|
const extra = {};
|
|
2232
2241
|
if (userId !== void 0) extra.userId = userId;
|
|
2233
|
-
const data =
|
|
2234
|
-
await
|
|
2242
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
2243
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_list", {
|
|
2235
2244
|
pathParams: { id: this.scopeId },
|
|
2236
|
-
query:
|
|
2245
|
+
query: _chunkQHA3LF2Qcjs.aipListParams.call(void 0, pageSize, pageToken, extra)
|
|
2237
2246
|
})
|
|
2238
2247
|
);
|
|
2239
|
-
return
|
|
2248
|
+
return _chunkQHA3LF2Qcjs.buildAipPage.call(void 0,
|
|
2240
2249
|
data,
|
|
2241
2250
|
"memories",
|
|
2242
2251
|
(raw) => raw,
|
|
@@ -2255,10 +2264,10 @@ var ScopesMemoriesResourceBase = class {
|
|
|
2255
2264
|
* @param request - Request body; see `MemorySearchRequest`.
|
|
2256
2265
|
*/
|
|
2257
2266
|
async search(request) {
|
|
2258
|
-
|
|
2259
|
-
const data = await
|
|
2267
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2268
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_search", {
|
|
2260
2269
|
pathParams: { id: this.scopeId },
|
|
2261
|
-
jsonBody:
|
|
2270
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, request)
|
|
2262
2271
|
});
|
|
2263
2272
|
return data;
|
|
2264
2273
|
}
|
|
@@ -2276,12 +2285,12 @@ var ScopesMemoriesResourceBase = class {
|
|
|
2276
2285
|
* provided fields.
|
|
2277
2286
|
*/
|
|
2278
2287
|
async update(memoryId, update, options = {}) {
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
await
|
|
2288
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, memoryId, "memory_id");
|
|
2289
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2290
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_update", {
|
|
2282
2291
|
pathParams: { id: this.scopeId, memoryId },
|
|
2283
2292
|
query: updateMaskQuery(options.updateMask),
|
|
2284
|
-
jsonBody:
|
|
2293
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, update)
|
|
2285
2294
|
});
|
|
2286
2295
|
}
|
|
2287
2296
|
/**
|
|
@@ -2294,9 +2303,9 @@ var ScopesMemoriesResourceBase = class {
|
|
|
2294
2303
|
* @param memoryId - Opaque memory id as returned by the list / search endpoints.
|
|
2295
2304
|
*/
|
|
2296
2305
|
async delete(memoryId) {
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
await
|
|
2306
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, memoryId, "memory_id");
|
|
2307
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2308
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_delete", {
|
|
2300
2309
|
pathParams: { id: this.scopeId, memoryId }
|
|
2301
2310
|
});
|
|
2302
2311
|
}
|
|
@@ -2326,8 +2335,8 @@ var ScopesEvaluationsResourceBase = class {
|
|
|
2326
2335
|
* **Requires:** `scopes:read`
|
|
2327
2336
|
*/
|
|
2328
2337
|
async getConfig() {
|
|
2329
|
-
|
|
2330
|
-
const data = await
|
|
2338
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2339
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_getConfig", {
|
|
2331
2340
|
pathParams: { id: this.scopeId }
|
|
2332
2341
|
});
|
|
2333
2342
|
return data;
|
|
@@ -2343,10 +2352,10 @@ var ScopesEvaluationsResourceBase = class {
|
|
|
2343
2352
|
* @param update - Request body; see `UpdateEvaluationConfig`.
|
|
2344
2353
|
*/
|
|
2345
2354
|
async updateConfig(update) {
|
|
2346
|
-
|
|
2347
|
-
const data = await
|
|
2355
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2356
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_updateConfig", {
|
|
2348
2357
|
pathParams: { id: this.scopeId },
|
|
2349
|
-
jsonBody:
|
|
2358
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, update)
|
|
2350
2359
|
});
|
|
2351
2360
|
return data;
|
|
2352
2361
|
}
|
|
@@ -2361,8 +2370,8 @@ var ScopesEvaluationsResourceBase = class {
|
|
|
2361
2370
|
* /scopes/{id}/evaluations/runs/{runId}` for status.
|
|
2362
2371
|
*/
|
|
2363
2372
|
async triggerRun() {
|
|
2364
|
-
|
|
2365
|
-
const data = await
|
|
2373
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2374
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_triggerRun", {
|
|
2366
2375
|
pathParams: { id: this.scopeId }
|
|
2367
2376
|
});
|
|
2368
2377
|
return data;
|
|
@@ -2381,18 +2390,18 @@ var ScopesEvaluationsResourceBase = class {
|
|
|
2381
2390
|
*/
|
|
2382
2391
|
listRuns(options = {}) {
|
|
2383
2392
|
const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
|
|
2384
|
-
|
|
2393
|
+
_chunkQHA3LF2Qcjs.validatePageSize.call(void 0, pageSize);
|
|
2385
2394
|
return this.listRunsPage(pageSize, options.pageToken);
|
|
2386
2395
|
}
|
|
2387
2396
|
async listRunsPage(pageSize, pageToken) {
|
|
2388
|
-
|
|
2389
|
-
const data =
|
|
2390
|
-
await
|
|
2397
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2398
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
2399
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_listRuns", {
|
|
2391
2400
|
pathParams: { id: this.scopeId },
|
|
2392
|
-
query:
|
|
2401
|
+
query: _chunkQHA3LF2Qcjs.aipListParams.call(void 0, pageSize, pageToken)
|
|
2393
2402
|
})
|
|
2394
2403
|
);
|
|
2395
|
-
return
|
|
2404
|
+
return _chunkQHA3LF2Qcjs.buildAipPage.call(void 0,
|
|
2396
2405
|
data,
|
|
2397
2406
|
"runs",
|
|
2398
2407
|
(raw) => raw,
|
|
@@ -2409,9 +2418,9 @@ var ScopesEvaluationsResourceBase = class {
|
|
|
2409
2418
|
* @param runId - Run ID.
|
|
2410
2419
|
*/
|
|
2411
2420
|
async getRun(runId) {
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
const data = await
|
|
2421
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2422
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, runId, "run_id");
|
|
2423
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_getRun", {
|
|
2415
2424
|
pathParams: { id: this.scopeId, runId }
|
|
2416
2425
|
});
|
|
2417
2426
|
return data;
|
|
@@ -2439,12 +2448,12 @@ var ScopeEvaluationsResource = class extends ScopesEvaluationsResourceBase {
|
|
|
2439
2448
|
* ```
|
|
2440
2449
|
*/
|
|
2441
2450
|
async addCase(input) {
|
|
2442
|
-
|
|
2451
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2443
2452
|
const id = _nullishCoalesce(input.id, () => ( _crypto.randomUUID.call(void 0, )));
|
|
2444
|
-
|
|
2445
|
-
return await
|
|
2453
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, id, "id");
|
|
2454
|
+
return await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_addEvaluationCase", {
|
|
2446
2455
|
pathParams: { id: this.scopeId },
|
|
2447
|
-
jsonBody:
|
|
2456
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, { ...input, id })
|
|
2448
2457
|
});
|
|
2449
2458
|
}
|
|
2450
2459
|
/**
|
|
@@ -2464,11 +2473,11 @@ var ScopeEvaluationsResource = class extends ScopesEvaluationsResourceBase {
|
|
|
2464
2473
|
* ```
|
|
2465
2474
|
*/
|
|
2466
2475
|
async updateCase(caseId, patch) {
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
return await
|
|
2476
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2477
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, caseId, "case_id");
|
|
2478
|
+
return await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_updateEvaluationCase", {
|
|
2470
2479
|
pathParams: { id: this.scopeId, caseId },
|
|
2471
|
-
jsonBody:
|
|
2480
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, patch)
|
|
2472
2481
|
});
|
|
2473
2482
|
}
|
|
2474
2483
|
/**
|
|
@@ -2482,9 +2491,9 @@ var ScopeEvaluationsResource = class extends ScopesEvaluationsResourceBase {
|
|
|
2482
2491
|
* ```
|
|
2483
2492
|
*/
|
|
2484
2493
|
async deleteCase(caseId) {
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
await
|
|
2494
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2495
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, caseId, "case_id");
|
|
2496
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_deleteEvaluationCase", {
|
|
2488
2497
|
pathParams: { id: this.scopeId, caseId }
|
|
2489
2498
|
});
|
|
2490
2499
|
}
|
|
@@ -2507,8 +2516,8 @@ var ScopesInterfacesResourceBase = class {
|
|
|
2507
2516
|
* **Requires:** `scopes:read`
|
|
2508
2517
|
*/
|
|
2509
2518
|
async list() {
|
|
2510
|
-
|
|
2511
|
-
const data = await
|
|
2519
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2520
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_list", {
|
|
2512
2521
|
pathParams: { id: this.scopeId }
|
|
2513
2522
|
});
|
|
2514
2523
|
return data.interfaces;
|
|
@@ -2524,9 +2533,9 @@ var ScopesInterfacesResourceBase = class {
|
|
|
2524
2533
|
* @param interfaceId - Interface id (UUID).
|
|
2525
2534
|
*/
|
|
2526
2535
|
async delete(interfaceId) {
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
await
|
|
2536
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2537
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, interfaceId, "interface_id");
|
|
2538
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_delete", {
|
|
2530
2539
|
pathParams: { id: this.scopeId, interfaceId }
|
|
2531
2540
|
});
|
|
2532
2541
|
}
|
|
@@ -2541,10 +2550,10 @@ var ScopeInterfacesResource = class extends ScopesInterfacesResourceBase {
|
|
|
2541
2550
|
* @returns The created interface.
|
|
2542
2551
|
*/
|
|
2543
2552
|
async create(options) {
|
|
2544
|
-
|
|
2545
|
-
return await
|
|
2553
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2554
|
+
return await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_add", {
|
|
2546
2555
|
pathParams: { id: this.scopeId },
|
|
2547
|
-
jsonBody:
|
|
2556
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, options)
|
|
2548
2557
|
});
|
|
2549
2558
|
}
|
|
2550
2559
|
/**
|
|
@@ -2556,9 +2565,9 @@ var ScopeInterfacesResource = class extends ScopesInterfacesResourceBase {
|
|
|
2556
2565
|
* @returns The updated interface.
|
|
2557
2566
|
*/
|
|
2558
2567
|
async update(interfaceId, options, updateMask) {
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
return await
|
|
2568
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2569
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, interfaceId, "interface_id");
|
|
2570
|
+
return await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_update", {
|
|
2562
2571
|
pathParams: { id: this.scopeId, interfaceId },
|
|
2563
2572
|
query: updateMaskQuery(updateMask),
|
|
2564
2573
|
jsonBody: updateBody(options, updateMask)
|
|
@@ -2586,8 +2595,8 @@ var ScopesSupervisionResourceBase = class {
|
|
|
2586
2595
|
* @param options.view - Which variation snapshot to read. Defaults to `active`.
|
|
2587
2596
|
*/
|
|
2588
2597
|
async get(options = {}) {
|
|
2589
|
-
|
|
2590
|
-
const data = await
|
|
2598
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2599
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_get", {
|
|
2591
2600
|
pathParams: { id: this.scopeId },
|
|
2592
2601
|
query: { view: options.view }
|
|
2593
2602
|
});
|
|
@@ -2605,8 +2614,8 @@ var ScopesSupervisionResourceBase = class {
|
|
|
2605
2614
|
* @param request - Request body; see `SetSupervisionRequest`.
|
|
2606
2615
|
*/
|
|
2607
2616
|
async set(request) {
|
|
2608
|
-
|
|
2609
|
-
const data = await
|
|
2617
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2618
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_set", {
|
|
2610
2619
|
pathParams: { id: this.scopeId },
|
|
2611
2620
|
jsonBody: request
|
|
2612
2621
|
});
|
|
@@ -2624,8 +2633,8 @@ var ScopesSupervisionResourceBase = class {
|
|
|
2624
2633
|
* @param request - Request body; see `SetSupervisionRequest`.
|
|
2625
2634
|
*/
|
|
2626
2635
|
async setActive(request) {
|
|
2627
|
-
|
|
2628
|
-
const data = await
|
|
2636
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, this.scopeId, "scope_id");
|
|
2637
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_setActive", {
|
|
2629
2638
|
pathParams: { id: this.scopeId },
|
|
2630
2639
|
jsonBody: request
|
|
2631
2640
|
});
|
|
@@ -2668,7 +2677,7 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2668
2677
|
* @returns A conversations resource scoped to the scope.
|
|
2669
2678
|
*/
|
|
2670
2679
|
conversations(scopeId) {
|
|
2671
|
-
return new (0,
|
|
2680
|
+
return new (0, _chunkQHA3LF2Qcjs.ScopeConversationsResource)(this.http, this.config, scopeId);
|
|
2672
2681
|
}
|
|
2673
2682
|
/**
|
|
2674
2683
|
* Long-term memories for a scope.
|
|
@@ -2715,6 +2724,7 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2715
2724
|
* @param options.model - Optional model id.
|
|
2716
2725
|
* @param options.toolset - Optional tool selection for the scope.
|
|
2717
2726
|
* @param options.includeOwnLearnings - Whether the scope reads what is taught while using it. Defaults to true.
|
|
2727
|
+
* @param options.includeOrgLearnings - Whether create adds the org-wide learnings path (`auto_generated:org`) to the scope's selections. Defaults to true; not applied when `contextSelections` already mention learnings or are context filters without a rule-based query. `false` only skips that addition: selections that already name the path still read org-wide learnings.
|
|
2718
2728
|
* @param options.guardrails - Runtime guardrail labels (for example `"no-pii"`). Omit to create with no guardrails.
|
|
2719
2729
|
* @returns The created scope (draft).
|
|
2720
2730
|
* @example
|
|
@@ -2725,7 +2735,7 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2725
2735
|
* ```
|
|
2726
2736
|
*/
|
|
2727
2737
|
async create(options) {
|
|
2728
|
-
const body =
|
|
2738
|
+
const body = _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, {
|
|
2729
2739
|
name: options.name,
|
|
2730
2740
|
description: options.description,
|
|
2731
2741
|
expectedOutput: options.expectedOutput,
|
|
@@ -2735,10 +2745,11 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2735
2745
|
connectionSet: options.connectionSet,
|
|
2736
2746
|
contextSelections: options.contextSelections,
|
|
2737
2747
|
includeOwnLearnings: options.includeOwnLearnings,
|
|
2748
|
+
includeOrgLearnings: options.includeOrgLearnings,
|
|
2738
2749
|
interfaces: options.interfaces,
|
|
2739
2750
|
accessConfig: accessConfigBodyForCreate(options.guardrails)
|
|
2740
2751
|
});
|
|
2741
|
-
const data = await
|
|
2752
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.create, {
|
|
2742
2753
|
jsonBody: body
|
|
2743
2754
|
});
|
|
2744
2755
|
return parseScope(data);
|
|
@@ -2765,11 +2776,11 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2765
2776
|
* ```
|
|
2766
2777
|
*/
|
|
2767
2778
|
async update(scopeId, options = {}) {
|
|
2768
|
-
|
|
2779
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2769
2780
|
const accessConfig = await accessConfigBodyForUpdate(
|
|
2770
2781
|
options.guardrails,
|
|
2771
|
-
async () =>
|
|
2772
|
-
await
|
|
2782
|
+
async () => _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
2783
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.get, {
|
|
2773
2784
|
pathParams: { id: scopeId }
|
|
2774
2785
|
})
|
|
2775
2786
|
)
|
|
@@ -2790,7 +2801,7 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2790
2801
|
supervisionSubordinateDescriptions: options.supervisionSubordinateDescriptions
|
|
2791
2802
|
};
|
|
2792
2803
|
const body = updateBody(fields, options.updateMask);
|
|
2793
|
-
const data = await
|
|
2804
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.update, {
|
|
2794
2805
|
pathParams: { id: scopeId },
|
|
2795
2806
|
query: updateMaskQuery(options.updateMask),
|
|
2796
2807
|
jsonBody: body
|
|
@@ -2811,9 +2822,9 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2811
2822
|
* ```
|
|
2812
2823
|
*/
|
|
2813
2824
|
async deploy(scopeId) {
|
|
2814
|
-
|
|
2815
|
-
const data =
|
|
2816
|
-
await
|
|
2825
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2826
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
2827
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.deploy, {
|
|
2817
2828
|
pathParams: { id: scopeId },
|
|
2818
2829
|
jsonBody: {}
|
|
2819
2830
|
})
|
|
@@ -2824,8 +2835,8 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2824
2835
|
* Apply selection changes to a scope.
|
|
2825
2836
|
*
|
|
2826
2837
|
* Pass `validateOnly: true` to run the same checks and return the scope that would
|
|
2827
|
-
* be saved, without writing.
|
|
2828
|
-
*
|
|
2838
|
+
* be saved, without writing. Set a connection with `setConnectionPreferences` and
|
|
2839
|
+
* remove it with `removeConnection`.
|
|
2829
2840
|
*
|
|
2830
2841
|
* @param scopeId - Scope id.
|
|
2831
2842
|
* @param ops - Selection changes, applied in order.
|
|
@@ -2844,10 +2855,10 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2844
2855
|
* ```
|
|
2845
2856
|
*/
|
|
2846
2857
|
async applySelectionOps(scopeId, ops, options) {
|
|
2847
|
-
|
|
2848
|
-
const data = await
|
|
2858
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2859
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.applySelectionOps, {
|
|
2849
2860
|
pathParams: { id: scopeId },
|
|
2850
|
-
jsonBody:
|
|
2861
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, {
|
|
2851
2862
|
ops,
|
|
2852
2863
|
toolset: _optionalChain([options, 'optionalAccess', _17 => _17.toolset]),
|
|
2853
2864
|
validateOnly: _optionalChain([options, 'optionalAccess', _18 => _18.validateOnly]) ? true : void 0
|
|
@@ -2867,14 +2878,14 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2867
2878
|
* @returns The scope with a pending ownership transfer.
|
|
2868
2879
|
*/
|
|
2869
2880
|
async requestOwnershipTransfer(scopeId, options) {
|
|
2870
|
-
|
|
2871
|
-
const data = await
|
|
2881
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2882
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0,
|
|
2872
2883
|
this.config,
|
|
2873
2884
|
this.http,
|
|
2874
2885
|
this.ops.requestOwnershipTransfer,
|
|
2875
2886
|
{
|
|
2876
2887
|
pathParams: { id: scopeId },
|
|
2877
|
-
jsonBody:
|
|
2888
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, { newOwnerUserId: options.newOwnerUserId })
|
|
2878
2889
|
}
|
|
2879
2890
|
);
|
|
2880
2891
|
return parseScope(data);
|
|
@@ -2886,10 +2897,10 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2886
2897
|
* @param options.mcpConfig - MCP configuration object.
|
|
2887
2898
|
*/
|
|
2888
2899
|
async patchMcpConfig(scopeId, options) {
|
|
2889
|
-
|
|
2890
|
-
await
|
|
2900
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2901
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.patchMcpConfig, {
|
|
2891
2902
|
pathParams: { id: scopeId },
|
|
2892
|
-
jsonBody:
|
|
2903
|
+
jsonBody: _chunkQHA3LF2Qcjs.omitUndefined.call(void 0, { config: options.mcpConfig })
|
|
2893
2904
|
});
|
|
2894
2905
|
}
|
|
2895
2906
|
/**
|
|
@@ -2900,9 +2911,9 @@ var ManagementScopesResource = class extends ScopesResourceBase {
|
|
|
2900
2911
|
* @returns The scope variation.
|
|
2901
2912
|
*/
|
|
2902
2913
|
async getVariation(scopeId, options) {
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
const data = await
|
|
2914
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, scopeId, "scope_id");
|
|
2915
|
+
_chunkQHA3LF2Qcjs.validateId.call(void 0, options.variationUid, "variation_uid");
|
|
2916
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.getVariation, {
|
|
2906
2917
|
pathParams: { id: scopeId, variationUid: options.variationUid }
|
|
2907
2918
|
});
|
|
2908
2919
|
return parseScope(data);
|
|
@@ -2929,7 +2940,7 @@ var UsageResourceBase = class {
|
|
|
2929
2940
|
* @param options.until - ISO8601 end of the query window (exclusive).
|
|
2930
2941
|
*/
|
|
2931
2942
|
async listUsers(options) {
|
|
2932
|
-
const data = await
|
|
2943
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "UsageController_listUsers", {
|
|
2933
2944
|
query: { since: options.since, until: options.until }
|
|
2934
2945
|
});
|
|
2935
2946
|
return data;
|
|
@@ -2958,7 +2969,7 @@ var ManagementUsageResource = class extends UsageResourceBase {
|
|
|
2958
2969
|
};
|
|
2959
2970
|
if (options.model !== void 0) query.model = options.model;
|
|
2960
2971
|
if (options.userEmail !== void 0) query.user_email = [...options.userEmail];
|
|
2961
|
-
const data = await
|
|
2972
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "UsageController_list", { query });
|
|
2962
2973
|
return data;
|
|
2963
2974
|
}
|
|
2964
2975
|
};
|
|
@@ -2985,16 +2996,16 @@ var ToolsResourceBase = class {
|
|
|
2985
2996
|
*/
|
|
2986
2997
|
list(options = {}) {
|
|
2987
2998
|
const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
|
|
2988
|
-
|
|
2999
|
+
_chunkQHA3LF2Qcjs.validatePageSize.call(void 0, pageSize);
|
|
2989
3000
|
return this.listPage(pageSize, options.pageToken);
|
|
2990
3001
|
}
|
|
2991
3002
|
async listPage(pageSize, pageToken) {
|
|
2992
|
-
const data =
|
|
2993
|
-
await
|
|
2994
|
-
query:
|
|
3003
|
+
const data = _chunkQHA3LF2Qcjs.asRecord.call(void 0,
|
|
3004
|
+
await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0, this.config, this.http, "ToolsController_list", {
|
|
3005
|
+
query: _chunkQHA3LF2Qcjs.aipListParams.call(void 0, pageSize, pageToken)
|
|
2995
3006
|
})
|
|
2996
3007
|
);
|
|
2997
|
-
return
|
|
3008
|
+
return _chunkQHA3LF2Qcjs.buildAipPage.call(void 0,
|
|
2998
3009
|
data,
|
|
2999
3010
|
"tools",
|
|
3000
3011
|
(raw) => raw,
|
|
@@ -3015,7 +3026,7 @@ var ManagementUsersResource = class {
|
|
|
3015
3026
|
}
|
|
3016
3027
|
/** List member groups in the organization. */
|
|
3017
3028
|
async listMemberGroups() {
|
|
3018
|
-
const data = await
|
|
3029
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0,
|
|
3019
3030
|
this.config,
|
|
3020
3031
|
this.http,
|
|
3021
3032
|
"MemberGroupsController_list"
|
|
@@ -3024,7 +3035,7 @@ var ManagementUsersResource = class {
|
|
|
3024
3035
|
}
|
|
3025
3036
|
/** List organization members. */
|
|
3026
3037
|
async listOrgMembers() {
|
|
3027
|
-
const data = await
|
|
3038
|
+
const data = await _chunkQHA3LF2Qcjs.invokeWithRetry.call(void 0,
|
|
3028
3039
|
this.config,
|
|
3029
3040
|
this.http,
|
|
3030
3041
|
"OrgMembersController_list"
|
|
@@ -3034,7 +3045,7 @@ var ManagementUsersResource = class {
|
|
|
3034
3045
|
};
|
|
3035
3046
|
|
|
3036
3047
|
// src/management/index.ts
|
|
3037
|
-
var ModusManagement = class extends
|
|
3048
|
+
var ModusManagement = class extends _chunkQHA3LF2Qcjs.ModusClientBase {
|
|
3038
3049
|
constructor(options = {}) {
|
|
3039
3050
|
super(options);
|
|
3040
3051
|
this.scopes = new ManagementScopesResource(this.http, this.config);
|