@getmodus/sdk 0.10.0 → 0.11.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.
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkNA3ZD35Tcjs = require('../chunk-NA3ZD35T.cjs');
14
+ var _chunk3MHHVC6Ccjs = require('../chunk-3MHHVC6C.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
- _chunkNA3ZD35Tcjs.validatePageSize.call(void 0, pageSize);
53
+ _chunk3MHHVC6Ccjs.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 = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
63
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_list", {
64
- query: _chunkNA3ZD35Tcjs.aipListParams.call(void 0, pageSize, pageToken, extra)
62
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
63
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_list", {
64
+ query: _chunk3MHHVC6Ccjs.aipListParams.call(void 0, pageSize, pageToken, extra)
65
65
  })
66
66
  );
67
- return _chunkNA3ZD35Tcjs.buildAipPage.call(void 0,
67
+ return _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
92
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_delete", {
91
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, workflowId, "workflow_id");
92
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
109
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_restore", {
108
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, workflowId, "workflow_id");
109
+ const data = await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
127
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_cancelOwnershipTransfer", {
126
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, workflowId, "workflow_id");
127
+ const data = await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
143
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowsController_acceptOwnershipTransfer", {
142
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, workflowId, "workflow_id");
143
+ const data = await _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)("update_mask must be a non-empty comma-separated list of field names");
155
+ throw new (0, _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.workflowId, "workflow_id");
188
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_list", {
187
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.workflowId, "workflow_id");
188
+ const data = await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.workflowId, "workflow_id");
203
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_deleteAll", {
202
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.workflowId, "workflow_id");
203
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.workflowId, "workflow_id");
218
- _chunkNA3ZD35Tcjs.validateId.call(void 0, interfaceId, "interface_id");
219
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_delete", {
217
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.workflowId, "workflow_id");
218
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, interfaceId, "interface_id");
219
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.workflowId, "workflow_id");
235
- return await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_add", {
234
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.workflowId, "workflow_id");
235
+ return await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_add", {
236
236
  pathParams: { id: this.workflowId },
237
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, options)
237
+ jsonBody: _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.workflowId, "workflow_id");
250
- _chunkNA3ZD35Tcjs.validateId.call(void 0, interfaceId, "interface_id");
251
- return await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "WorkflowInterfacesController_update", {
249
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.workflowId, "workflow_id");
250
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, interfaceId, "interface_id");
251
+ return await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
296
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, workflowId, "workflow_id");
297
297
  const query = options.view !== void 0 ? { view: options.view } : void 0;
298
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.get, {
298
+ const data = await _chunk3MHHVC6Ccjs.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 = _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, {
327
+ const body = _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.create, {
335
+ const data = await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
357
+ _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.update, {
367
+ const data = await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
388
- const data = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
389
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.deploy, {
387
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, workflowId, "workflow_id");
388
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
389
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
405
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.toggle, {
404
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, workflowId, "workflow_id");
405
+ const data = await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, workflowId, "workflow_id");
420
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0,
419
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, workflowId, "workflow_id");
420
+ const data = await _chunk3MHHVC6Ccjs.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: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, { newOwnerUserId: options.newOwnerUserId })
426
+ jsonBody: _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)(`Expected contextType ${contextType}, got ${item.contextType}.`);
441
+ throw new (0, _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)(`Context item ${item.uid} has no object content; cannot merge ${contextType} fields.`);
444
+ throw new (0, _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)("Provide at least one field to update.");
501
+ throw new (0, _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
545
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_delete", {
544
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
545
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
566
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listDraftSnapshots", {
565
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
566
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listDraftSnapshots", {
567
567
  pathParams: { dashboardId }
568
568
  });
569
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data).snapshots;
569
+ return _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
587
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_cancelOwnership", {
586
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
587
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_cancelOwnership", {
588
588
  pathParams: { dashboardId }
589
589
  });
590
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data);
590
+ return _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
608
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_acceptOwnership", {
607
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
608
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_acceptOwnership", {
609
609
  pathParams: { dashboardId }
610
610
  });
611
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data);
611
+ return _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
631
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listVersions", {
630
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
631
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listVersions", {
632
632
  pathParams: { dashboardId }
633
633
  });
634
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data).versions;
634
+ return _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
655
- _chunkNA3ZD35Tcjs.validateId.call(void 0, versionId, "versionId");
656
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_getVersion", {
654
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
655
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, versionId, "versionId");
656
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_getVersion", {
657
657
  pathParams: { dashboardId, versionId }
658
658
  });
659
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data);
659
+ return _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
679
- _chunkNA3ZD35Tcjs.validateId.call(void 0, versionId, "versionId");
680
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_restore", {
678
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
679
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, versionId, "versionId");
680
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_restore", {
681
681
  pathParams: { dashboardId, versionId }
682
682
  });
683
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data);
683
+ return _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listElements", {
711
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_listElements", {
712
712
  pathParams: { dashboardId: this.dashboardId }
713
713
  });
714
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data);
714
+ return _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, elementId, "elementId");
734
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_getElement", {
733
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, elementId, "elementId");
734
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_getElement", {
735
735
  pathParams: { dashboardId: this.dashboardId, elementId }
736
736
  });
737
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data);
737
+ return _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.asRecord.call(void 0,
771
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_createElement", {
770
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
771
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, elementId, "elementId");
802
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0,
803
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_updateElement", {
801
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, elementId, "elementId");
802
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
803
+ await _chunk3MHHVC6Ccjs.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 = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
829
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_list", {
828
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
829
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
851
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0,
852
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_get", {
850
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
851
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
852
+ await _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.asRecord.call(void 0,
882
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_create", {
881
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
882
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
917
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0,
918
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_updateDraft", {
916
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
917
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
918
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
947
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0,
948
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_publish", {
946
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
947
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
948
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
979
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0,
980
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_updateAccess", {
978
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
979
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
980
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
1010
- _chunkNA3ZD35Tcjs.validateId.call(void 0, input.newOwnerUserId, "newOwnerUserId");
1011
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1012
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_transferOwnership", {
1009
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
1010
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, input.newOwnerUserId, "newOwnerUserId");
1011
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1012
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
1029
+ _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, dashboardId, "dashboardId");
1051
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1052
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "DashboardsController_updateLayout", {
1050
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, dashboardId, "dashboardId");
1051
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1052
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validatePageSize.call(void 0, pageSize, 200);
1086
+ _chunk3MHHVC6Ccjs.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 = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1091
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_list", {
1092
- query: _chunkNA3ZD35Tcjs.aipListParams.call(void 0, pageSize, pageToken)
1090
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1091
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_list", {
1092
+ query: _chunk3MHHVC6Ccjs.aipListParams.call(void 0, pageSize, pageToken)
1093
1093
  })
1094
1094
  );
1095
- return _chunkNA3ZD35Tcjs.buildAipPage.call(void 0,
1095
+ return _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, uploadId, "uploadId");
1114
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_get", {
1113
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, uploadId, "uploadId");
1114
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_get", {
1115
1115
  pathParams: { uploadId }
1116
1116
  });
1117
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0, data);
1117
+ return _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)(`No such file or directory: ${path}`);
1135
+ if (code === "ENOENT" || code === "ENOTDIR") throw new (0, _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)(`waitUntil must be one of ${[...WAIT_UNTIL_VALUES].join(", ")}, got ${waitUntil}`);
1141
+ throw new (0, _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)(`${name} must not be empty`);
1145
+ if (count === 0) throw new (0, _chunk3MHHVC6Ccjs.ValidationError)(`${name} must not be empty`);
1146
1146
  if (count > MAX_BULK_UPLOAD_FILES) {
1147
- throw new (0, _chunkNA3ZD35Tcjs.ValidationError)(`${name} must have at most ${MAX_BULK_UPLOAD_FILES} entries, got ${count}`);
1147
+ throw new (0, _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ModusError)(`Upload PUT to presigned URL failed with HTTP ${response.status}.`, {
1210
+ throw new (0, _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1269
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_uploadUrl", {
1268
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1269
+ await _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1284
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_uploadUrls", {
1283
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1284
+ await _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1300
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_uploadFromUrl", {
1299
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1300
+ await _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1319
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_uploadFromUrls", {
1318
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1319
+ await _chunk3MHHVC6Ccjs.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
- _chunkNA3ZD35Tcjs.validateId.call(void 0, uploadId, "uploadId");
1337
- return _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1338
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_finalize", {
1336
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, uploadId, "uploadId");
1337
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1338
+ await _chunk3MHHVC6Ccjs.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 _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1357
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextFilesController_finalizeMany", {
1356
+ return _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1357
+ await _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)(`Not a file: ${path}`);
1417
+ if (!fileStat.isFile()) throw new (0, _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ModusError)(
1443
+ throw new (0, _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)(`concurrency must be >= 1, got ${concurrency}`);
1479
+ if (concurrency < 1) throw new (0, _chunk3MHHVC6Ccjs.ValidationError)(`concurrency must be >= 1, got ${concurrency}`);
1480
1480
  const dirStat = await statInput(path);
1481
- if (!dirStat.isDirectory()) throw new (0, _chunkNA3ZD35Tcjs.ValidationError)(`Not a directory: ${path}`);
1481
+ if (!dirStat.isDirectory()) throw new (0, _chunk3MHHVC6Ccjs.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, _chunkNA3ZD35Tcjs.ValidationError)(`concurrency must be >= 1, got ${concurrency}`);
1494
+ if (concurrency < 1) throw new (0, _chunk3MHHVC6Ccjs.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,7 @@ 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 _chunkNA3ZD35Tcjs.aipListParams.call(void 0, pageSize, pageToken, extra);
1631
+ return _chunk3MHHVC6Ccjs.aipListParams.call(void 0, pageSize, pageToken, extra);
1632
1632
  }
1633
1633
  function parseContextItem(raw) {
1634
1634
  return raw;
@@ -1667,7 +1667,7 @@ var ManagementContextItemsResource = class {
1667
1667
  */
1668
1668
  list(options = {}) {
1669
1669
  const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
1670
- _chunkNA3ZD35Tcjs.validatePageSize.call(void 0, pageSize);
1670
+ _chunk3MHHVC6Ccjs.validatePageSize.call(void 0, pageSize);
1671
1671
  return this.listPage(pageSize, options.pageToken, {
1672
1672
  contextType: options.contextType,
1673
1673
  parentUids: options.parentUids,
@@ -1676,12 +1676,12 @@ var ManagementContextItemsResource = class {
1676
1676
  });
1677
1677
  }
1678
1678
  async listPage(pageSize, pageToken, filters) {
1679
- const data = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
1680
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_list", {
1679
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
1680
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_list", {
1681
1681
  query: contextListParams(pageSize, pageToken, filters)
1682
1682
  })
1683
1683
  );
1684
- return _chunkNA3ZD35Tcjs.buildAipPage.call(void 0,
1684
+ return _chunk3MHHVC6Ccjs.buildAipPage.call(void 0,
1685
1685
  data,
1686
1686
  "contextItems",
1687
1687
  parseContextItem,
@@ -1695,7 +1695,7 @@ var ManagementContextItemsResource = class {
1695
1695
  * @returns The context item.
1696
1696
  */
1697
1697
  async get(uid) {
1698
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_get", {
1698
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_get", {
1699
1699
  pathParams: { uid }
1700
1700
  });
1701
1701
  return parseContextItem(data);
@@ -1723,7 +1723,7 @@ var ManagementContextItemsResource = class {
1723
1723
  userFeedback: options.userFeedback,
1724
1724
  topics: options.topics
1725
1725
  }, options.updateMask);
1726
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_update", {
1726
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_update", {
1727
1727
  pathParams: { uid },
1728
1728
  query: updateMaskQuery(options.updateMask),
1729
1729
  jsonBody: body
@@ -1737,7 +1737,7 @@ var ManagementContextItemsResource = class {
1737
1737
  * @returns Deletion confirmation details.
1738
1738
  */
1739
1739
  async delete(uid) {
1740
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_delete", {
1740
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ContextItemsController_delete", {
1741
1741
  pathParams: { uid }
1742
1742
  });
1743
1743
  return data;
@@ -1769,7 +1769,7 @@ var ManagementContextItemsResource = class {
1769
1769
  * ```
1770
1770
  */
1771
1771
  async move(uid, options) {
1772
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0,
1772
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0,
1773
1773
  this.config,
1774
1774
  this.http,
1775
1775
  "ContextItemsController_move",
@@ -1809,7 +1809,7 @@ var ManagementContextItemsResource = class {
1809
1809
  * ```
1810
1810
  */
1811
1811
  async updateAccess(uid, input) {
1812
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0,
1812
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0,
1813
1813
  this.config,
1814
1814
  this.http,
1815
1815
  "ContextItemAccessController_updateAccess",
@@ -1833,7 +1833,7 @@ var ManagementContextResource = class {
1833
1833
  this.http = http;
1834
1834
  this.config = config;
1835
1835
  this.items = new ManagementContextItemsResource(http, config);
1836
- this.customItems = new (0, _chunkNA3ZD35Tcjs.CustomContextItemsResource)(http, config);
1836
+ this.customItems = new (0, _chunk3MHHVC6Ccjs.CustomContextItemsResource)(http, config);
1837
1837
  this.files = new ManagementContextFilesResource(http, config);
1838
1838
  this.dashboards = new ManagementDashboardsResource(http, config);
1839
1839
  }
@@ -1850,7 +1850,7 @@ var ManagementContextResource = class {
1850
1850
  * ```
1851
1851
  */
1852
1852
  createNote(title, content) {
1853
- return this.create("ContextCreatorsController_createNote", _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, { title, content }));
1853
+ return this.create("ContextCreatorsController_createNote", _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, { title, content }));
1854
1854
  }
1855
1855
  /**
1856
1856
  * Update a note's title and markdown body.
@@ -1895,7 +1895,7 @@ var ManagementContextResource = class {
1895
1895
  createSavedQuery(name, options) {
1896
1896
  return this.create(
1897
1897
  "ContextCreatorsController_createSavedQuery",
1898
- _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, {
1898
+ _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, {
1899
1899
  name,
1900
1900
  query: options.query,
1901
1901
  connectionId: options.connectionId,
@@ -1943,7 +1943,7 @@ var ManagementContextResource = class {
1943
1943
  createLink(url, options = {}) {
1944
1944
  return this.create(
1945
1945
  "ContextCreatorsController_createLink",
1946
- _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, {
1946
+ _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, {
1947
1947
  url,
1948
1948
  title: options.title,
1949
1949
  isCrawl: options.isCrawl,
@@ -1974,7 +1974,7 @@ var ManagementContextResource = class {
1974
1974
  }
1975
1975
  /** @internal */
1976
1976
  async create(operationId, payload) {
1977
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, operationId, {
1977
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, operationId, {
1978
1978
  jsonBody: payload
1979
1979
  });
1980
1980
  return withCreatedUid(data);
@@ -2016,7 +2016,7 @@ var ScopesResourceBase = class {
2016
2016
  */
2017
2017
  list(options = {}) {
2018
2018
  const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
2019
- _chunkNA3ZD35Tcjs.validatePageSize.call(void 0, pageSize);
2019
+ _chunk3MHHVC6Ccjs.validatePageSize.call(void 0, pageSize);
2020
2020
  return this.listPage(pageSize, options.pageToken, options.search, options.view, options.managerId);
2021
2021
  }
2022
2022
  async listPage(pageSize, pageToken, search, view, managerId) {
@@ -2024,12 +2024,12 @@ var ScopesResourceBase = class {
2024
2024
  if (search !== void 0) extra.search = search;
2025
2025
  if (view !== void 0) extra.view = view;
2026
2026
  if (managerId !== void 0) extra.managerId = managerId;
2027
- const data = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
2028
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_list", {
2029
- query: _chunkNA3ZD35Tcjs.aipListParams.call(void 0, pageSize, pageToken, extra)
2027
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
2028
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_list", {
2029
+ query: _chunk3MHHVC6Ccjs.aipListParams.call(void 0, pageSize, pageToken, extra)
2030
2030
  })
2031
2031
  );
2032
- return _chunkNA3ZD35Tcjs.buildAipPage.call(void 0,
2032
+ return _chunk3MHHVC6Ccjs.buildAipPage.call(void 0,
2033
2033
  data,
2034
2034
  "scopes",
2035
2035
  (raw) => raw,
@@ -2057,8 +2057,8 @@ var ScopesResourceBase = class {
2057
2057
  * ```
2058
2058
  */
2059
2059
  async get(scopeId, options = {}) {
2060
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2061
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_get", {
2060
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2061
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_get", {
2062
2062
  pathParams: { id: scopeId },
2063
2063
  query: { view: options.view }
2064
2064
  });
@@ -2081,8 +2081,8 @@ var ScopesResourceBase = class {
2081
2081
  * ```
2082
2082
  */
2083
2083
  async delete(scopeId) {
2084
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2085
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_delete", {
2084
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2085
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_delete", {
2086
2086
  pathParams: { id: scopeId }
2087
2087
  });
2088
2088
  }
@@ -2105,10 +2105,10 @@ var ScopesResourceBase = class {
2105
2105
  * ```
2106
2106
  */
2107
2107
  async mcpExposureCatalog(scopeId, request) {
2108
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2109
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_mcpExposureCatalog", {
2108
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2109
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_mcpExposureCatalog", {
2110
2110
  pathParams: { id: scopeId },
2111
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, request)
2111
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, request)
2112
2112
  });
2113
2113
  return data;
2114
2114
  }
@@ -2123,8 +2123,8 @@ var ScopesResourceBase = class {
2123
2123
  * @param scopeId - Numeric scope id.
2124
2124
  */
2125
2125
  async restore(scopeId) {
2126
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2127
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_restore", {
2126
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2127
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_restore", {
2128
2128
  pathParams: { id: scopeId },
2129
2129
  jsonBody: {}
2130
2130
  });
@@ -2141,8 +2141,8 @@ var ScopesResourceBase = class {
2141
2141
  * @param scopeId - Numeric scope id.
2142
2142
  */
2143
2143
  async cancelOwnershipTransfer(scopeId) {
2144
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2145
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_cancelOwnershipTransfer", {
2144
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2145
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_cancelOwnershipTransfer", {
2146
2146
  pathParams: { id: scopeId }
2147
2147
  });
2148
2148
  return data;
@@ -2157,8 +2157,8 @@ var ScopesResourceBase = class {
2157
2157
  * @param scopeId - Numeric scope id.
2158
2158
  */
2159
2159
  async acceptOwnershipTransfer(scopeId) {
2160
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2161
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_acceptOwnershipTransfer", {
2160
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2161
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_acceptOwnershipTransfer", {
2162
2162
  pathParams: { id: scopeId },
2163
2163
  jsonBody: {}
2164
2164
  });
@@ -2223,20 +2223,20 @@ var ScopesMemoriesResourceBase = class {
2223
2223
  */
2224
2224
  list(options = {}) {
2225
2225
  const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
2226
- _chunkNA3ZD35Tcjs.validatePageSize.call(void 0, pageSize);
2226
+ _chunk3MHHVC6Ccjs.validatePageSize.call(void 0, pageSize);
2227
2227
  return this.listPage(pageSize, options.pageToken, options.userId);
2228
2228
  }
2229
2229
  async listPage(pageSize, pageToken, userId) {
2230
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2230
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2231
2231
  const extra = {};
2232
2232
  if (userId !== void 0) extra.userId = userId;
2233
- const data = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
2234
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_list", {
2233
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
2234
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_list", {
2235
2235
  pathParams: { id: this.scopeId },
2236
- query: _chunkNA3ZD35Tcjs.aipListParams.call(void 0, pageSize, pageToken, extra)
2236
+ query: _chunk3MHHVC6Ccjs.aipListParams.call(void 0, pageSize, pageToken, extra)
2237
2237
  })
2238
2238
  );
2239
- return _chunkNA3ZD35Tcjs.buildAipPage.call(void 0,
2239
+ return _chunk3MHHVC6Ccjs.buildAipPage.call(void 0,
2240
2240
  data,
2241
2241
  "memories",
2242
2242
  (raw) => raw,
@@ -2255,10 +2255,10 @@ var ScopesMemoriesResourceBase = class {
2255
2255
  * @param request - Request body; see `MemorySearchRequest`.
2256
2256
  */
2257
2257
  async search(request) {
2258
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2259
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_search", {
2258
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2259
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_search", {
2260
2260
  pathParams: { id: this.scopeId },
2261
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, request)
2261
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, request)
2262
2262
  });
2263
2263
  return data;
2264
2264
  }
@@ -2276,12 +2276,12 @@ var ScopesMemoriesResourceBase = class {
2276
2276
  * provided fields.
2277
2277
  */
2278
2278
  async update(memoryId, update, options = {}) {
2279
- _chunkNA3ZD35Tcjs.validateId.call(void 0, memoryId, "memory_id");
2280
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2281
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_update", {
2279
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, memoryId, "memory_id");
2280
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2281
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_update", {
2282
2282
  pathParams: { id: this.scopeId, memoryId },
2283
2283
  query: updateMaskQuery(options.updateMask),
2284
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, update)
2284
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, update)
2285
2285
  });
2286
2286
  }
2287
2287
  /**
@@ -2294,9 +2294,9 @@ var ScopesMemoriesResourceBase = class {
2294
2294
  * @param memoryId - Opaque memory id as returned by the list / search endpoints.
2295
2295
  */
2296
2296
  async delete(memoryId) {
2297
- _chunkNA3ZD35Tcjs.validateId.call(void 0, memoryId, "memory_id");
2298
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2299
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_delete", {
2297
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, memoryId, "memory_id");
2298
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2299
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeMemoriesController_delete", {
2300
2300
  pathParams: { id: this.scopeId, memoryId }
2301
2301
  });
2302
2302
  }
@@ -2326,8 +2326,8 @@ var ScopesEvaluationsResourceBase = class {
2326
2326
  * **Requires:** `scopes:read`
2327
2327
  */
2328
2328
  async getConfig() {
2329
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2330
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_getConfig", {
2329
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2330
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_getConfig", {
2331
2331
  pathParams: { id: this.scopeId }
2332
2332
  });
2333
2333
  return data;
@@ -2343,10 +2343,10 @@ var ScopesEvaluationsResourceBase = class {
2343
2343
  * @param update - Request body; see `UpdateEvaluationConfig`.
2344
2344
  */
2345
2345
  async updateConfig(update) {
2346
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2347
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_updateConfig", {
2346
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2347
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_updateConfig", {
2348
2348
  pathParams: { id: this.scopeId },
2349
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, update)
2349
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, update)
2350
2350
  });
2351
2351
  return data;
2352
2352
  }
@@ -2361,8 +2361,8 @@ var ScopesEvaluationsResourceBase = class {
2361
2361
  * /scopes/{id}/evaluations/runs/{runId}` for status.
2362
2362
  */
2363
2363
  async triggerRun() {
2364
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2365
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_triggerRun", {
2364
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2365
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_triggerRun", {
2366
2366
  pathParams: { id: this.scopeId }
2367
2367
  });
2368
2368
  return data;
@@ -2381,18 +2381,18 @@ var ScopesEvaluationsResourceBase = class {
2381
2381
  */
2382
2382
  listRuns(options = {}) {
2383
2383
  const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
2384
- _chunkNA3ZD35Tcjs.validatePageSize.call(void 0, pageSize);
2384
+ _chunk3MHHVC6Ccjs.validatePageSize.call(void 0, pageSize);
2385
2385
  return this.listRunsPage(pageSize, options.pageToken);
2386
2386
  }
2387
2387
  async listRunsPage(pageSize, pageToken) {
2388
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2389
- const data = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
2390
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_listRuns", {
2388
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2389
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
2390
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_listRuns", {
2391
2391
  pathParams: { id: this.scopeId },
2392
- query: _chunkNA3ZD35Tcjs.aipListParams.call(void 0, pageSize, pageToken)
2392
+ query: _chunk3MHHVC6Ccjs.aipListParams.call(void 0, pageSize, pageToken)
2393
2393
  })
2394
2394
  );
2395
- return _chunkNA3ZD35Tcjs.buildAipPage.call(void 0,
2395
+ return _chunk3MHHVC6Ccjs.buildAipPage.call(void 0,
2396
2396
  data,
2397
2397
  "runs",
2398
2398
  (raw) => raw,
@@ -2409,9 +2409,9 @@ var ScopesEvaluationsResourceBase = class {
2409
2409
  * @param runId - Run ID.
2410
2410
  */
2411
2411
  async getRun(runId) {
2412
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2413
- _chunkNA3ZD35Tcjs.validateId.call(void 0, runId, "run_id");
2414
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_getRun", {
2412
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2413
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, runId, "run_id");
2414
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "EvaluationsController_getRun", {
2415
2415
  pathParams: { id: this.scopeId, runId }
2416
2416
  });
2417
2417
  return data;
@@ -2439,12 +2439,12 @@ var ScopeEvaluationsResource = class extends ScopesEvaluationsResourceBase {
2439
2439
  * ```
2440
2440
  */
2441
2441
  async addCase(input) {
2442
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2442
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2443
2443
  const id = _nullishCoalesce(input.id, () => ( _crypto.randomUUID.call(void 0, )));
2444
- _chunkNA3ZD35Tcjs.validateId.call(void 0, id, "id");
2445
- return await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_addEvaluationCase", {
2444
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, id, "id");
2445
+ return await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_addEvaluationCase", {
2446
2446
  pathParams: { id: this.scopeId },
2447
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, { ...input, id })
2447
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, { ...input, id })
2448
2448
  });
2449
2449
  }
2450
2450
  /**
@@ -2464,11 +2464,11 @@ var ScopeEvaluationsResource = class extends ScopesEvaluationsResourceBase {
2464
2464
  * ```
2465
2465
  */
2466
2466
  async updateCase(caseId, patch) {
2467
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2468
- _chunkNA3ZD35Tcjs.validateId.call(void 0, caseId, "case_id");
2469
- return await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_updateEvaluationCase", {
2467
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2468
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, caseId, "case_id");
2469
+ return await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_updateEvaluationCase", {
2470
2470
  pathParams: { id: this.scopeId, caseId },
2471
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, patch)
2471
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, patch)
2472
2472
  });
2473
2473
  }
2474
2474
  /**
@@ -2482,9 +2482,9 @@ var ScopeEvaluationsResource = class extends ScopesEvaluationsResourceBase {
2482
2482
  * ```
2483
2483
  */
2484
2484
  async deleteCase(caseId) {
2485
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2486
- _chunkNA3ZD35Tcjs.validateId.call(void 0, caseId, "case_id");
2487
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_deleteEvaluationCase", {
2485
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2486
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, caseId, "case_id");
2487
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopesController_deleteEvaluationCase", {
2488
2488
  pathParams: { id: this.scopeId, caseId }
2489
2489
  });
2490
2490
  }
@@ -2507,8 +2507,8 @@ var ScopesInterfacesResourceBase = class {
2507
2507
  * **Requires:** `scopes:read`
2508
2508
  */
2509
2509
  async list() {
2510
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2511
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_list", {
2510
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2511
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_list", {
2512
2512
  pathParams: { id: this.scopeId }
2513
2513
  });
2514
2514
  return data.interfaces;
@@ -2524,9 +2524,9 @@ var ScopesInterfacesResourceBase = class {
2524
2524
  * @param interfaceId - Interface id (UUID).
2525
2525
  */
2526
2526
  async delete(interfaceId) {
2527
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2528
- _chunkNA3ZD35Tcjs.validateId.call(void 0, interfaceId, "interface_id");
2529
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_delete", {
2527
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2528
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, interfaceId, "interface_id");
2529
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_delete", {
2530
2530
  pathParams: { id: this.scopeId, interfaceId }
2531
2531
  });
2532
2532
  }
@@ -2541,10 +2541,10 @@ var ScopeInterfacesResource = class extends ScopesInterfacesResourceBase {
2541
2541
  * @returns The created interface.
2542
2542
  */
2543
2543
  async create(options) {
2544
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2545
- return await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_add", {
2544
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2545
+ return await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_add", {
2546
2546
  pathParams: { id: this.scopeId },
2547
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, options)
2547
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, options)
2548
2548
  });
2549
2549
  }
2550
2550
  /**
@@ -2556,9 +2556,9 @@ var ScopeInterfacesResource = class extends ScopesInterfacesResourceBase {
2556
2556
  * @returns The updated interface.
2557
2557
  */
2558
2558
  async update(interfaceId, options, updateMask) {
2559
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2560
- _chunkNA3ZD35Tcjs.validateId.call(void 0, interfaceId, "interface_id");
2561
- return await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_update", {
2559
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2560
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, interfaceId, "interface_id");
2561
+ return await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeInterfacesController_update", {
2562
2562
  pathParams: { id: this.scopeId, interfaceId },
2563
2563
  query: updateMaskQuery(updateMask),
2564
2564
  jsonBody: updateBody(options, updateMask)
@@ -2586,8 +2586,8 @@ var ScopesSupervisionResourceBase = class {
2586
2586
  * @param options.view - Which variation snapshot to read. Defaults to `active`.
2587
2587
  */
2588
2588
  async get(options = {}) {
2589
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2590
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_get", {
2589
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2590
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_get", {
2591
2591
  pathParams: { id: this.scopeId },
2592
2592
  query: { view: options.view }
2593
2593
  });
@@ -2605,8 +2605,8 @@ var ScopesSupervisionResourceBase = class {
2605
2605
  * @param request - Request body; see `SetSupervisionRequest`.
2606
2606
  */
2607
2607
  async set(request) {
2608
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2609
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_set", {
2608
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2609
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_set", {
2610
2610
  pathParams: { id: this.scopeId },
2611
2611
  jsonBody: request
2612
2612
  });
@@ -2624,8 +2624,8 @@ var ScopesSupervisionResourceBase = class {
2624
2624
  * @param request - Request body; see `SetSupervisionRequest`.
2625
2625
  */
2626
2626
  async setActive(request) {
2627
- _chunkNA3ZD35Tcjs.validateId.call(void 0, this.scopeId, "scope_id");
2628
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_setActive", {
2627
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, this.scopeId, "scope_id");
2628
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ScopeSupervisionController_setActive", {
2629
2629
  pathParams: { id: this.scopeId },
2630
2630
  jsonBody: request
2631
2631
  });
@@ -2668,7 +2668,7 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2668
2668
  * @returns A conversations resource scoped to the scope.
2669
2669
  */
2670
2670
  conversations(scopeId) {
2671
- return new (0, _chunkNA3ZD35Tcjs.ScopeConversationsResource)(this.http, this.config, scopeId);
2671
+ return new (0, _chunk3MHHVC6Ccjs.ScopeConversationsResource)(this.http, this.config, scopeId);
2672
2672
  }
2673
2673
  /**
2674
2674
  * Long-term memories for a scope.
@@ -2725,7 +2725,7 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2725
2725
  * ```
2726
2726
  */
2727
2727
  async create(options) {
2728
- const body = _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, {
2728
+ const body = _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, {
2729
2729
  name: options.name,
2730
2730
  description: options.description,
2731
2731
  expectedOutput: options.expectedOutput,
@@ -2738,7 +2738,7 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2738
2738
  interfaces: options.interfaces,
2739
2739
  accessConfig: accessConfigBodyForCreate(options.guardrails)
2740
2740
  });
2741
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.create, {
2741
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.create, {
2742
2742
  jsonBody: body
2743
2743
  });
2744
2744
  return parseScope(data);
@@ -2765,11 +2765,11 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2765
2765
  * ```
2766
2766
  */
2767
2767
  async update(scopeId, options = {}) {
2768
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2768
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2769
2769
  const accessConfig = await accessConfigBodyForUpdate(
2770
2770
  options.guardrails,
2771
- async () => _chunkNA3ZD35Tcjs.asRecord.call(void 0,
2772
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.get, {
2771
+ async () => _chunk3MHHVC6Ccjs.asRecord.call(void 0,
2772
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.get, {
2773
2773
  pathParams: { id: scopeId }
2774
2774
  })
2775
2775
  )
@@ -2790,7 +2790,7 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2790
2790
  supervisionSubordinateDescriptions: options.supervisionSubordinateDescriptions
2791
2791
  };
2792
2792
  const body = updateBody(fields, options.updateMask);
2793
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.update, {
2793
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.update, {
2794
2794
  pathParams: { id: scopeId },
2795
2795
  query: updateMaskQuery(options.updateMask),
2796
2796
  jsonBody: body
@@ -2811,9 +2811,9 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2811
2811
  * ```
2812
2812
  */
2813
2813
  async deploy(scopeId) {
2814
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2815
- const data = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
2816
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.deploy, {
2814
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2815
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
2816
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.deploy, {
2817
2817
  pathParams: { id: scopeId },
2818
2818
  jsonBody: {}
2819
2819
  })
@@ -2824,8 +2824,8 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2824
2824
  * Apply selection changes to a scope.
2825
2825
  *
2826
2826
  * Pass `validateOnly: true` to run the same checks and return the scope that would
2827
- * be saved, without writing. `selectRoot`, `deselectRoot`, and `setRootDeepRules`
2828
- * are deprecated; send `setConnectionPreferences`.
2827
+ * be saved, without writing. Set a connection with `setConnectionPreferences` and
2828
+ * remove it with `removeConnection`.
2829
2829
  *
2830
2830
  * @param scopeId - Scope id.
2831
2831
  * @param ops - Selection changes, applied in order.
@@ -2844,10 +2844,10 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2844
2844
  * ```
2845
2845
  */
2846
2846
  async applySelectionOps(scopeId, ops, options) {
2847
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2848
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.applySelectionOps, {
2847
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2848
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.applySelectionOps, {
2849
2849
  pathParams: { id: scopeId },
2850
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, {
2850
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, {
2851
2851
  ops,
2852
2852
  toolset: _optionalChain([options, 'optionalAccess', _17 => _17.toolset]),
2853
2853
  validateOnly: _optionalChain([options, 'optionalAccess', _18 => _18.validateOnly]) ? true : void 0
@@ -2867,14 +2867,14 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2867
2867
  * @returns The scope with a pending ownership transfer.
2868
2868
  */
2869
2869
  async requestOwnershipTransfer(scopeId, options) {
2870
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2871
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0,
2870
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2871
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0,
2872
2872
  this.config,
2873
2873
  this.http,
2874
2874
  this.ops.requestOwnershipTransfer,
2875
2875
  {
2876
2876
  pathParams: { id: scopeId },
2877
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, { newOwnerUserId: options.newOwnerUserId })
2877
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, { newOwnerUserId: options.newOwnerUserId })
2878
2878
  }
2879
2879
  );
2880
2880
  return parseScope(data);
@@ -2886,10 +2886,10 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2886
2886
  * @param options.mcpConfig - MCP configuration object.
2887
2887
  */
2888
2888
  async patchMcpConfig(scopeId, options) {
2889
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2890
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.patchMcpConfig, {
2889
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2890
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.patchMcpConfig, {
2891
2891
  pathParams: { id: scopeId },
2892
- jsonBody: _chunkNA3ZD35Tcjs.omitUndefined.call(void 0, { config: options.mcpConfig })
2892
+ jsonBody: _chunk3MHHVC6Ccjs.omitUndefined.call(void 0, { config: options.mcpConfig })
2893
2893
  });
2894
2894
  }
2895
2895
  /**
@@ -2900,9 +2900,9 @@ var ManagementScopesResource = class extends ScopesResourceBase {
2900
2900
  * @returns The scope variation.
2901
2901
  */
2902
2902
  async getVariation(scopeId, options) {
2903
- _chunkNA3ZD35Tcjs.validateId.call(void 0, scopeId, "scope_id");
2904
- _chunkNA3ZD35Tcjs.validateId.call(void 0, options.variationUid, "variation_uid");
2905
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.getVariation, {
2903
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, scopeId, "scope_id");
2904
+ _chunk3MHHVC6Ccjs.validateId.call(void 0, options.variationUid, "variation_uid");
2905
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, this.ops.getVariation, {
2906
2906
  pathParams: { id: scopeId, variationUid: options.variationUid }
2907
2907
  });
2908
2908
  return parseScope(data);
@@ -2929,7 +2929,7 @@ var UsageResourceBase = class {
2929
2929
  * @param options.until - ISO8601 end of the query window (exclusive).
2930
2930
  */
2931
2931
  async listUsers(options) {
2932
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "UsageController_listUsers", {
2932
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "UsageController_listUsers", {
2933
2933
  query: { since: options.since, until: options.until }
2934
2934
  });
2935
2935
  return data;
@@ -2958,7 +2958,7 @@ var ManagementUsageResource = class extends UsageResourceBase {
2958
2958
  };
2959
2959
  if (options.model !== void 0) query.model = options.model;
2960
2960
  if (options.userEmail !== void 0) query.user_email = [...options.userEmail];
2961
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "UsageController_list", { query });
2961
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "UsageController_list", { query });
2962
2962
  return data;
2963
2963
  }
2964
2964
  };
@@ -2985,16 +2985,16 @@ var ToolsResourceBase = class {
2985
2985
  */
2986
2986
  list(options = {}) {
2987
2987
  const pageSize = _nullishCoalesce(options.pageSize, () => ( 25));
2988
- _chunkNA3ZD35Tcjs.validatePageSize.call(void 0, pageSize);
2988
+ _chunk3MHHVC6Ccjs.validatePageSize.call(void 0, pageSize);
2989
2989
  return this.listPage(pageSize, options.pageToken);
2990
2990
  }
2991
2991
  async listPage(pageSize, pageToken) {
2992
- const data = _chunkNA3ZD35Tcjs.asRecord.call(void 0,
2993
- await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0, this.config, this.http, "ToolsController_list", {
2994
- query: _chunkNA3ZD35Tcjs.aipListParams.call(void 0, pageSize, pageToken)
2992
+ const data = _chunk3MHHVC6Ccjs.asRecord.call(void 0,
2993
+ await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0, this.config, this.http, "ToolsController_list", {
2994
+ query: _chunk3MHHVC6Ccjs.aipListParams.call(void 0, pageSize, pageToken)
2995
2995
  })
2996
2996
  );
2997
- return _chunkNA3ZD35Tcjs.buildAipPage.call(void 0,
2997
+ return _chunk3MHHVC6Ccjs.buildAipPage.call(void 0,
2998
2998
  data,
2999
2999
  "tools",
3000
3000
  (raw) => raw,
@@ -3015,7 +3015,7 @@ var ManagementUsersResource = class {
3015
3015
  }
3016
3016
  /** List member groups in the organization. */
3017
3017
  async listMemberGroups() {
3018
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0,
3018
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0,
3019
3019
  this.config,
3020
3020
  this.http,
3021
3021
  "MemberGroupsController_list"
@@ -3024,7 +3024,7 @@ var ManagementUsersResource = class {
3024
3024
  }
3025
3025
  /** List organization members. */
3026
3026
  async listOrgMembers() {
3027
- const data = await _chunkNA3ZD35Tcjs.invokeWithRetry.call(void 0,
3027
+ const data = await _chunk3MHHVC6Ccjs.invokeWithRetry.call(void 0,
3028
3028
  this.config,
3029
3029
  this.http,
3030
3030
  "OrgMembersController_list"
@@ -3034,7 +3034,7 @@ var ManagementUsersResource = class {
3034
3034
  };
3035
3035
 
3036
3036
  // src/management/index.ts
3037
- var ModusManagement = class extends _chunkNA3ZD35Tcjs.ModusClientBase {
3037
+ var ModusManagement = class extends _chunk3MHHVC6Ccjs.ModusClientBase {
3038
3038
  constructor(options = {}) {
3039
3039
  super(options);
3040
3040
  this.scopes = new ManagementScopesResource(this.http, this.config);