@getmodus/sdk 0.11.0 → 0.13.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.
@@ -1,4 +1,4 @@
1
- import { H as HttpClient, M as ModusConfig, W as WorkflowType, V as VariationView, P as Page, e as Workflow, c as components, z as OperationId, h as ContextItem, p as ContextItemDeletion, q as ContextItemMove, U as UpdateContextItemAccessInput, n as ContextItemAccessUpdate, j as CustomContextItemsResource, T as CreatedContextItem, S as Scope, J as SupervisionView, a as ScopeConversationsResource, k as ModusClientBase, l as ModusOptions } from '../_client-base-DdnxB9JA.cjs';
1
+ import { H as HttpClient, M as ModusConfig, W as WorkflowType, V as VariationView, P as Page, e as Workflow, c as components, D as OperationId, h as ContextItem, q as ContextItemDeletion, r as ContextItemMove, U as UpdateContextItemAccessInput, o as ContextItemAccessUpdate, j as CustomContextItemsResource, Y as CreatedContextItem, S as Scope, L as SupervisionView, a as ScopeConversationsResource, k as ModusClientBase, l as ModusOptions } from '../_client-base-CGqIZtrm.cjs';
2
2
 
3
3
  /** Generated base for the management `workflows` resource. */
4
4
  declare class WorkflowsResourceBase {
@@ -364,13 +364,15 @@ declare class ManagementContextItemsResource {
364
364
  /**
365
365
  * Move a live file or Files folder.
366
366
  *
367
- * Pass `destinationFolderUid: null` to move to the Files root. The
368
- * destination folder must already exist. Same-parent moves succeed as a
369
- * no-op. Does not rename or merge folders.
367
+ * Pass exactly one destination: `destinationFolderUid` (an existing folder,
368
+ * or `null` for the Files root), or `destinationFolderPath` (a root-relative
369
+ * path such as `reports/2026`; missing folders on it are created with the
370
+ * move). Same-parent moves succeed as a no-op. Does not rename or merge folders.
370
371
  *
371
372
  * @param uid - Stored context-item uid of the file or folder to move.
372
373
  * @param options.destinationFolderUid - Stored context-item uid of the
373
374
  * destination folder, or `null` for the Files root.
375
+ * @param options.destinationFolderPath - Root-relative destination folder path.
374
376
  * @returns How many items changed parent (`0` is a successful no-op).
375
377
  * @throws {NotFoundError} The source is missing or not visible.
376
378
  * @throws {ModusError} The destination is missing, not a Files folder, or
@@ -389,6 +391,10 @@ declare class ManagementContextItemsResource {
389
391
  */
390
392
  move(uid: string, options: {
391
393
  destinationFolderUid: string | null;
394
+ destinationFolderPath?: never;
395
+ } | {
396
+ destinationFolderPath: string;
397
+ destinationFolderUid?: never;
392
398
  }): Promise<ContextItemMove>;
393
399
  /**
394
400
  * Replace who can view and manage a note, saved query, link or uploaded file.
@@ -1446,9 +1452,19 @@ interface ToolsetSlot {
1446
1452
  actions: string[];
1447
1453
  rules?: ToolsetRules;
1448
1454
  }
1449
- /** Integration grants keyed by the explicit, lowercase connection UUID. */
1455
+ /**
1456
+ * Integration grants keyed by the explicit, lowercase UUID of a shared connection.
1457
+ * A save that adds a personal connection's UUID here, or adds actions to one stored here, is refused
1458
+ * with 422; grant those with `personal`. A stored entry sent back unchanged still saves.
1459
+ */
1450
1460
  interface PlatformToolsetEntry {
1451
1461
  byConnection: Record<string, ToolsetSlot>;
1462
+ /**
1463
+ * Actions granted on the personal connection of whoever runs the skill; absent grants none.
1464
+ * A runner who has not connected the platform is asked to connect it (a tool error outside chat);
1465
+ * nobody else's connection is used. Only platforms people connect personally, such as Gmail or Google Drive.
1466
+ */
1467
+ personal?: ToolsetSlot;
1452
1468
  }
1453
1469
  /**
1454
1470
  * Skill toolset wire object, keyed by catalog platform or nonintegration tool name.
@@ -1464,6 +1480,7 @@ interface PlatformToolsetEntry {
1464
1480
  * '11111111-1111-4111-8111-111111111111': { actions: ['query'] },
1465
1481
  * },
1466
1482
  * } satisfies PlatformToolsetEntry,
1483
+ * gmail: { byConnection: {}, personal: { actions: ['search-threads'] } } satisfies PlatformToolsetEntry,
1467
1484
  * memory: { enabled: true },
1468
1485
  * }
1469
1486
  * ```
@@ -1804,6 +1821,7 @@ interface CreateScopeOptions {
1804
1821
  connectionSet?: ReadonlyArray<ConnectionSetRowInput>;
1805
1822
  contextSelections?: JsonObjectListInput;
1806
1823
  includeOwnLearnings?: boolean;
1824
+ includeOrgLearnings?: boolean;
1807
1825
  interfaces?: JsonObjectListInput;
1808
1826
  guardrails?: string[];
1809
1827
  }
@@ -1879,6 +1897,7 @@ declare class ManagementScopesResource extends ScopesResourceBase {
1879
1897
  * @param options.model - Optional model id.
1880
1898
  * @param options.toolset - Optional tool selection for the scope.
1881
1899
  * @param options.includeOwnLearnings - Whether the scope reads what is taught while using it. Defaults to true.
1900
+ * @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.
1882
1901
  * @param options.guardrails - Runtime guardrail labels (for example `"no-pii"`). Omit to create with no guardrails.
1883
1902
  * @returns The created scope (draft).
1884
1903
  * @example
@@ -1989,6 +2008,8 @@ declare class ManagementScopesResource extends ScopesResourceBase {
1989
2008
 
1990
2009
  type UsageReport = components['schemas']['ListUsageResponseDto'];
1991
2010
  type UsageBucket = components['schemas']['UsageBucketDto'];
2011
+ type UsageEntity = components['schemas']['UsageEntityDto'];
2012
+ type UsageEntityStatus = components['schemas']['UsageEntityStatus'];
1992
2013
  type UsageTotals = components['schemas']['UsageTotalsDto'];
1993
2014
  type UsageRollup = 'hour' | 'day';
1994
2015
  type UsageUsersReport = components['schemas']['ListUsageUsersResponseDto'];
@@ -2101,4 +2122,4 @@ declare class ModusManagement extends ModusClientBase {
2101
2122
  constructor(options?: ModusOptions);
2102
2123
  }
2103
2124
 
2104
- export { type AddAgentInterface, type AddEvaluationCase, type AddScopeInterface, type AgentInterface, type AgentSelectionInput, type BatchUploadOptions, type BulkFinalizeResult, type BulkUploadFromUrlsResult, type BulkUploadUrlsResult, ContextItemAccessUpdate, ContextItemDeletion, ContextItemMove, type CreateAgentOptions, type CreateDashboardElementInput, type CreateDashboardInput, type CreateScopeOptions, type CreateSkillOptions, type CreateWorkflowOptions, CreatedContextItem, type Dashboard, type DashboardDraftSnapshot, type DashboardElementKind, type DashboardElementLayout, type DashboardElementPatch, type DashboardElementResult, type DashboardElementSummary, type DashboardElementsList, type DashboardLayoutElement, type DashboardPublishResult, type DashboardVersion, type DashboardView, type EvaluationCase, type EvaluationConfig, type EvaluationRun, type EvaluationRunWithResults, type FailedUploadFromUrl, type FailedUploadUrl, type FileUpload, type FileUploadStatus, type FinalizeFailure, type FinalizeInput, type JsonObjectInput, type JsonObjectListInput, ManagementContextFilesResource, ManagementContextItemsResource, ManagementContextResource, ManagementDashboardElementsResource, ManagementDashboardsResource, ManagementScopesResource, ManagementToolsResource, ManagementUsageResource, ManagementUsersResource, ManagementWorkflowsResource, type McpExposureCatalog, type McpExposureCatalogRequest, type MemberGroup, type Memory, type MemorySearchRequest, type MemorySearchResult, type MemoryUpdate, ModusConfig, ModusManagement, ModusOptions, type OrgMember, type PlatformToolsetEntry, type PublishDashboardInput, ScopeEvaluationsResource, type ScopeInterface, ScopeInterfacesResource, ScopeMemoriesResource, ScopeSupervisionResource, type SetSupervisionRequest, type Supervision, type ToolCatalogEntry, type ToolsetInput, type ToolsetRules, type ToolsetSlot, type TransferDashboardOwnershipInput, type TriggerEvaluationRunResponse, type TriggerInput, type UpdateAgentInterface, type UpdateAgentOptions, UpdateContextItemAccessInput, type UpdateDashboardAccessInput, type UpdateDashboardDraftInput, type UpdateDashboardElementInput, type UpdateDashboardLayoutInput, type UpdateEvaluationCase, type UpdateEvaluationConfig, type UpdateScopeInterface, type UpdateScopeOptions, type UpdateSkillOptions, type UpdateWorkflowOptions, type UploadDirFailure, type UploadDirResult, type UploadFileInput, type UploadFromUrlInput, type UploadProgress, type UploadProgressCallback, type UploadUrlInput, type UploadUrlSlot, type UsageBucket, type UsageReport, type UsageRollup, type UsageTotals, type UsageUser, type UsageUsersReport, type UserFeedback, type WaitUntil, type WorkflowGraphInput, WorkflowInterfacesResource };
2125
+ export { type AddAgentInterface, type AddEvaluationCase, type AddScopeInterface, type AgentInterface, type AgentSelectionInput, type BatchUploadOptions, type BulkFinalizeResult, type BulkUploadFromUrlsResult, type BulkUploadUrlsResult, ContextItemAccessUpdate, ContextItemDeletion, ContextItemMove, type CreateAgentOptions, type CreateDashboardElementInput, type CreateDashboardInput, type CreateScopeOptions, type CreateSkillOptions, type CreateWorkflowOptions, CreatedContextItem, type Dashboard, type DashboardDraftSnapshot, type DashboardElementKind, type DashboardElementLayout, type DashboardElementPatch, type DashboardElementResult, type DashboardElementSummary, type DashboardElementsList, type DashboardLayoutElement, type DashboardPublishResult, type DashboardVersion, type DashboardView, type EvaluationCase, type EvaluationConfig, type EvaluationRun, type EvaluationRunWithResults, type FailedUploadFromUrl, type FailedUploadUrl, type FileUpload, type FileUploadStatus, type FinalizeFailure, type FinalizeInput, type JsonObjectInput, type JsonObjectListInput, ManagementContextFilesResource, ManagementContextItemsResource, ManagementContextResource, ManagementDashboardElementsResource, ManagementDashboardsResource, ManagementScopesResource, ManagementToolsResource, ManagementUsageResource, ManagementUsersResource, ManagementWorkflowsResource, type McpExposureCatalog, type McpExposureCatalogRequest, type MemberGroup, type Memory, type MemorySearchRequest, type MemorySearchResult, type MemoryUpdate, ModusConfig, ModusManagement, ModusOptions, type OrgMember, type PlatformToolsetEntry, type PublishDashboardInput, ScopeEvaluationsResource, type ScopeInterface, ScopeInterfacesResource, ScopeMemoriesResource, ScopeSupervisionResource, type SetSupervisionRequest, type Supervision, type ToolCatalogEntry, type ToolsetInput, type ToolsetRules, type ToolsetSlot, type TransferDashboardOwnershipInput, type TriggerEvaluationRunResponse, type TriggerInput, type UpdateAgentInterface, type UpdateAgentOptions, UpdateContextItemAccessInput, type UpdateDashboardAccessInput, type UpdateDashboardDraftInput, type UpdateDashboardElementInput, type UpdateDashboardLayoutInput, type UpdateEvaluationCase, type UpdateEvaluationConfig, type UpdateScopeInterface, type UpdateScopeOptions, type UpdateSkillOptions, type UpdateWorkflowOptions, type UploadDirFailure, type UploadDirResult, type UploadFileInput, type UploadFromUrlInput, type UploadProgress, type UploadProgressCallback, type UploadUrlInput, type UploadUrlSlot, type UsageBucket, type UsageEntity, type UsageEntityStatus, type UsageReport, type UsageRollup, type UsageTotals, type UsageUser, type UsageUsersReport, type UserFeedback, type WaitUntil, type WorkflowGraphInput, WorkflowInterfacesResource };
@@ -1,4 +1,4 @@
1
- import { H as HttpClient, M as ModusConfig, W as WorkflowType, V as VariationView, P as Page, e as Workflow, c as components, z as OperationId, h as ContextItem, p as ContextItemDeletion, q as ContextItemMove, U as UpdateContextItemAccessInput, n as ContextItemAccessUpdate, j as CustomContextItemsResource, T as CreatedContextItem, S as Scope, J as SupervisionView, a as ScopeConversationsResource, k as ModusClientBase, l as ModusOptions } from '../_client-base-DdnxB9JA.js';
1
+ import { H as HttpClient, M as ModusConfig, W as WorkflowType, V as VariationView, P as Page, e as Workflow, c as components, D as OperationId, h as ContextItem, q as ContextItemDeletion, r as ContextItemMove, U as UpdateContextItemAccessInput, o as ContextItemAccessUpdate, j as CustomContextItemsResource, Y as CreatedContextItem, S as Scope, L as SupervisionView, a as ScopeConversationsResource, k as ModusClientBase, l as ModusOptions } from '../_client-base-CGqIZtrm.js';
2
2
 
3
3
  /** Generated base for the management `workflows` resource. */
4
4
  declare class WorkflowsResourceBase {
@@ -364,13 +364,15 @@ declare class ManagementContextItemsResource {
364
364
  /**
365
365
  * Move a live file or Files folder.
366
366
  *
367
- * Pass `destinationFolderUid: null` to move to the Files root. The
368
- * destination folder must already exist. Same-parent moves succeed as a
369
- * no-op. Does not rename or merge folders.
367
+ * Pass exactly one destination: `destinationFolderUid` (an existing folder,
368
+ * or `null` for the Files root), or `destinationFolderPath` (a root-relative
369
+ * path such as `reports/2026`; missing folders on it are created with the
370
+ * move). Same-parent moves succeed as a no-op. Does not rename or merge folders.
370
371
  *
371
372
  * @param uid - Stored context-item uid of the file or folder to move.
372
373
  * @param options.destinationFolderUid - Stored context-item uid of the
373
374
  * destination folder, or `null` for the Files root.
375
+ * @param options.destinationFolderPath - Root-relative destination folder path.
374
376
  * @returns How many items changed parent (`0` is a successful no-op).
375
377
  * @throws {NotFoundError} The source is missing or not visible.
376
378
  * @throws {ModusError} The destination is missing, not a Files folder, or
@@ -389,6 +391,10 @@ declare class ManagementContextItemsResource {
389
391
  */
390
392
  move(uid: string, options: {
391
393
  destinationFolderUid: string | null;
394
+ destinationFolderPath?: never;
395
+ } | {
396
+ destinationFolderPath: string;
397
+ destinationFolderUid?: never;
392
398
  }): Promise<ContextItemMove>;
393
399
  /**
394
400
  * Replace who can view and manage a note, saved query, link or uploaded file.
@@ -1446,9 +1452,19 @@ interface ToolsetSlot {
1446
1452
  actions: string[];
1447
1453
  rules?: ToolsetRules;
1448
1454
  }
1449
- /** Integration grants keyed by the explicit, lowercase connection UUID. */
1455
+ /**
1456
+ * Integration grants keyed by the explicit, lowercase UUID of a shared connection.
1457
+ * A save that adds a personal connection's UUID here, or adds actions to one stored here, is refused
1458
+ * with 422; grant those with `personal`. A stored entry sent back unchanged still saves.
1459
+ */
1450
1460
  interface PlatformToolsetEntry {
1451
1461
  byConnection: Record<string, ToolsetSlot>;
1462
+ /**
1463
+ * Actions granted on the personal connection of whoever runs the skill; absent grants none.
1464
+ * A runner who has not connected the platform is asked to connect it (a tool error outside chat);
1465
+ * nobody else's connection is used. Only platforms people connect personally, such as Gmail or Google Drive.
1466
+ */
1467
+ personal?: ToolsetSlot;
1452
1468
  }
1453
1469
  /**
1454
1470
  * Skill toolset wire object, keyed by catalog platform or nonintegration tool name.
@@ -1464,6 +1480,7 @@ interface PlatformToolsetEntry {
1464
1480
  * '11111111-1111-4111-8111-111111111111': { actions: ['query'] },
1465
1481
  * },
1466
1482
  * } satisfies PlatformToolsetEntry,
1483
+ * gmail: { byConnection: {}, personal: { actions: ['search-threads'] } } satisfies PlatformToolsetEntry,
1467
1484
  * memory: { enabled: true },
1468
1485
  * }
1469
1486
  * ```
@@ -1804,6 +1821,7 @@ interface CreateScopeOptions {
1804
1821
  connectionSet?: ReadonlyArray<ConnectionSetRowInput>;
1805
1822
  contextSelections?: JsonObjectListInput;
1806
1823
  includeOwnLearnings?: boolean;
1824
+ includeOrgLearnings?: boolean;
1807
1825
  interfaces?: JsonObjectListInput;
1808
1826
  guardrails?: string[];
1809
1827
  }
@@ -1879,6 +1897,7 @@ declare class ManagementScopesResource extends ScopesResourceBase {
1879
1897
  * @param options.model - Optional model id.
1880
1898
  * @param options.toolset - Optional tool selection for the scope.
1881
1899
  * @param options.includeOwnLearnings - Whether the scope reads what is taught while using it. Defaults to true.
1900
+ * @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.
1882
1901
  * @param options.guardrails - Runtime guardrail labels (for example `"no-pii"`). Omit to create with no guardrails.
1883
1902
  * @returns The created scope (draft).
1884
1903
  * @example
@@ -1989,6 +2008,8 @@ declare class ManagementScopesResource extends ScopesResourceBase {
1989
2008
 
1990
2009
  type UsageReport = components['schemas']['ListUsageResponseDto'];
1991
2010
  type UsageBucket = components['schemas']['UsageBucketDto'];
2011
+ type UsageEntity = components['schemas']['UsageEntityDto'];
2012
+ type UsageEntityStatus = components['schemas']['UsageEntityStatus'];
1992
2013
  type UsageTotals = components['schemas']['UsageTotalsDto'];
1993
2014
  type UsageRollup = 'hour' | 'day';
1994
2015
  type UsageUsersReport = components['schemas']['ListUsageUsersResponseDto'];
@@ -2101,4 +2122,4 @@ declare class ModusManagement extends ModusClientBase {
2101
2122
  constructor(options?: ModusOptions);
2102
2123
  }
2103
2124
 
2104
- export { type AddAgentInterface, type AddEvaluationCase, type AddScopeInterface, type AgentInterface, type AgentSelectionInput, type BatchUploadOptions, type BulkFinalizeResult, type BulkUploadFromUrlsResult, type BulkUploadUrlsResult, ContextItemAccessUpdate, ContextItemDeletion, ContextItemMove, type CreateAgentOptions, type CreateDashboardElementInput, type CreateDashboardInput, type CreateScopeOptions, type CreateSkillOptions, type CreateWorkflowOptions, CreatedContextItem, type Dashboard, type DashboardDraftSnapshot, type DashboardElementKind, type DashboardElementLayout, type DashboardElementPatch, type DashboardElementResult, type DashboardElementSummary, type DashboardElementsList, type DashboardLayoutElement, type DashboardPublishResult, type DashboardVersion, type DashboardView, type EvaluationCase, type EvaluationConfig, type EvaluationRun, type EvaluationRunWithResults, type FailedUploadFromUrl, type FailedUploadUrl, type FileUpload, type FileUploadStatus, type FinalizeFailure, type FinalizeInput, type JsonObjectInput, type JsonObjectListInput, ManagementContextFilesResource, ManagementContextItemsResource, ManagementContextResource, ManagementDashboardElementsResource, ManagementDashboardsResource, ManagementScopesResource, ManagementToolsResource, ManagementUsageResource, ManagementUsersResource, ManagementWorkflowsResource, type McpExposureCatalog, type McpExposureCatalogRequest, type MemberGroup, type Memory, type MemorySearchRequest, type MemorySearchResult, type MemoryUpdate, ModusConfig, ModusManagement, ModusOptions, type OrgMember, type PlatformToolsetEntry, type PublishDashboardInput, ScopeEvaluationsResource, type ScopeInterface, ScopeInterfacesResource, ScopeMemoriesResource, ScopeSupervisionResource, type SetSupervisionRequest, type Supervision, type ToolCatalogEntry, type ToolsetInput, type ToolsetRules, type ToolsetSlot, type TransferDashboardOwnershipInput, type TriggerEvaluationRunResponse, type TriggerInput, type UpdateAgentInterface, type UpdateAgentOptions, UpdateContextItemAccessInput, type UpdateDashboardAccessInput, type UpdateDashboardDraftInput, type UpdateDashboardElementInput, type UpdateDashboardLayoutInput, type UpdateEvaluationCase, type UpdateEvaluationConfig, type UpdateScopeInterface, type UpdateScopeOptions, type UpdateSkillOptions, type UpdateWorkflowOptions, type UploadDirFailure, type UploadDirResult, type UploadFileInput, type UploadFromUrlInput, type UploadProgress, type UploadProgressCallback, type UploadUrlInput, type UploadUrlSlot, type UsageBucket, type UsageReport, type UsageRollup, type UsageTotals, type UsageUser, type UsageUsersReport, type UserFeedback, type WaitUntil, type WorkflowGraphInput, WorkflowInterfacesResource };
2125
+ export { type AddAgentInterface, type AddEvaluationCase, type AddScopeInterface, type AgentInterface, type AgentSelectionInput, type BatchUploadOptions, type BulkFinalizeResult, type BulkUploadFromUrlsResult, type BulkUploadUrlsResult, ContextItemAccessUpdate, ContextItemDeletion, ContextItemMove, type CreateAgentOptions, type CreateDashboardElementInput, type CreateDashboardInput, type CreateScopeOptions, type CreateSkillOptions, type CreateWorkflowOptions, CreatedContextItem, type Dashboard, type DashboardDraftSnapshot, type DashboardElementKind, type DashboardElementLayout, type DashboardElementPatch, type DashboardElementResult, type DashboardElementSummary, type DashboardElementsList, type DashboardLayoutElement, type DashboardPublishResult, type DashboardVersion, type DashboardView, type EvaluationCase, type EvaluationConfig, type EvaluationRun, type EvaluationRunWithResults, type FailedUploadFromUrl, type FailedUploadUrl, type FileUpload, type FileUploadStatus, type FinalizeFailure, type FinalizeInput, type JsonObjectInput, type JsonObjectListInput, ManagementContextFilesResource, ManagementContextItemsResource, ManagementContextResource, ManagementDashboardElementsResource, ManagementDashboardsResource, ManagementScopesResource, ManagementToolsResource, ManagementUsageResource, ManagementUsersResource, ManagementWorkflowsResource, type McpExposureCatalog, type McpExposureCatalogRequest, type MemberGroup, type Memory, type MemorySearchRequest, type MemorySearchResult, type MemoryUpdate, ModusConfig, ModusManagement, ModusOptions, type OrgMember, type PlatformToolsetEntry, type PublishDashboardInput, ScopeEvaluationsResource, type ScopeInterface, ScopeInterfacesResource, ScopeMemoriesResource, ScopeSupervisionResource, type SetSupervisionRequest, type Supervision, type ToolCatalogEntry, type ToolsetInput, type ToolsetRules, type ToolsetSlot, type TransferDashboardOwnershipInput, type TriggerEvaluationRunResponse, type TriggerInput, type UpdateAgentInterface, type UpdateAgentOptions, UpdateContextItemAccessInput, type UpdateDashboardAccessInput, type UpdateDashboardDraftInput, type UpdateDashboardElementInput, type UpdateDashboardLayoutInput, type UpdateEvaluationCase, type UpdateEvaluationConfig, type UpdateScopeInterface, type UpdateScopeOptions, type UpdateSkillOptions, type UpdateWorkflowOptions, type UploadDirFailure, type UploadDirResult, type UploadFileInput, type UploadFromUrlInput, type UploadProgress, type UploadProgressCallback, type UploadUrlInput, type UploadUrlSlot, type UsageBucket, type UsageEntity, type UsageEntityStatus, type UsageReport, type UsageRollup, type UsageTotals, type UsageUser, type UsageUsersReport, type UserFeedback, type WaitUntil, type WorkflowGraphInput, WorkflowInterfacesResource };
@@ -11,7 +11,7 @@ import {
11
11
  omitUndefined,
12
12
  validateId,
13
13
  validatePageSize
14
- } from "../chunk-JVTQBBMZ.js";
14
+ } from "../chunk-KX2P3TAH.js";
15
15
 
16
16
  // src/_generated/resources/management/workflows.ts
17
17
  var WorkflowsResourceBase = class {
@@ -1630,6 +1630,13 @@ function contextListParams(pageSize, pageToken, filters = {}) {
1630
1630
  }
1631
1631
  return aipListParams(pageSize, pageToken, extra);
1632
1632
  }
1633
+ function moveBody(options) {
1634
+ if (options.destinationFolderPath === void 0) return { destinationFolderUid: options.destinationFolderUid };
1635
+ if (options.destinationFolderUid !== void 0) {
1636
+ throw new ValidationError("Pass destinationFolderUid or destinationFolderPath, not both");
1637
+ }
1638
+ return { destinationFolderPath: options.destinationFolderPath };
1639
+ }
1633
1640
  function parseContextItem(raw) {
1634
1641
  return raw;
1635
1642
  }
@@ -1745,13 +1752,15 @@ var ManagementContextItemsResource = class {
1745
1752
  /**
1746
1753
  * Move a live file or Files folder.
1747
1754
  *
1748
- * Pass `destinationFolderUid: null` to move to the Files root. The
1749
- * destination folder must already exist. Same-parent moves succeed as a
1750
- * no-op. Does not rename or merge folders.
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
@@ -1775,7 +1784,7 @@ var ManagementContextItemsResource = class {
1775
1784
  "ContextItemsController_move",
1776
1785
  {
1777
1786
  pathParams: { uid },
1778
- jsonBody: { destinationFolderUid: options.destinationFolderUid }
1787
+ jsonBody: moveBody(options)
1779
1788
  }
1780
1789
  );
1781
1790
  return data;
@@ -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
@@ -2735,6 +2745,7 @@ 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
  });