@getmodus/sdk 0.12.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.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HttpClient, c as components, M as ModusConfig, P as Page, V as VariationView, S as Scope, a as ScopeConversationsResource, C as Conversation, b as ConversationKind, d as ConversationListItem, W as WorkflowType, e as Workflow, f as ContextItemsQuery, g as ContextItemsQueryResult, h as ContextItem, i as ContextItemLookupRow, j as CustomContextItemsResource, k as ModusClientBase, l as ModusOptions } from './_client-base-DvrAQWuU.cjs';
2
- export { A as Agent, m as AgentType, B as BatchDeleteCustomContextItemsInput, n as BatchDeleteCustomContextItemsResult, o as ContextItemAccessUpdate, p as ContextItemAncestor, q as ContextItemDeletion, r as ContextItemMove, s as ContextType, t as CreateCustomContextItemInput, u as CreatedCustomContextItem, v as CustomAttributeInput, w as CustomContextItemDeletion, x as CustomContextItemKind, y as CustomContextItemRelationInput, z as Message, O as OPERATIONS, D as OperationId, E as OperationSpec, F as ScopeStatus, G as ScopeVariation, I as Skill, J as SkillStatus, K as SkillVariation, L as SupervisionView, U as UpdateContextItemAccessInput, N as UpdateCustomContextItemInput, Q as conversationScopeId, R as conversationSkillId, T as operations, X as paths } from './_client-base-DvrAQWuU.cjs';
1
+ import { H as HttpClient, c as components, M as ModusConfig, P as Page, V as VariationView, S as Scope, a as ScopeConversationsResource, C as Conversation, b as ConversationKind, d as ConversationListItem, W as WorkflowType, e as Workflow, f as ContextItemsQuery, g as ContextItemsQueryResult, h as ContextItem, i as ContextItemLookupRow, j as CustomContextItemsResource, k as ModusClientBase, l as ModusOptions } from './_client-base-CGqIZtrm.cjs';
2
+ export { A as Agent, m as AgentType, B as BatchDeleteCustomContextItemsInput, n as BatchDeleteCustomContextItemsResult, o as ContextItemAccessUpdate, p as ContextItemAncestor, q as ContextItemDeletion, r as ContextItemMove, s as ContextType, t as CreateCustomContextItemInput, u as CreatedCustomContextItem, v as CustomAttributeInput, w as CustomContextItemDeletion, x as CustomContextItemKind, y as CustomContextItemRelationInput, z as Message, O as OPERATIONS, D as OperationId, E as OperationSpec, F as ScopeStatus, G as ScopeVariation, I as Skill, J as SkillStatus, K as SkillVariation, L as SupervisionView, U as UpdateContextItemAccessInput, N as UpdateCustomContextItemInput, Q as conversationScopeId, R as conversationSkillId, T as operations, X as paths } from './_client-base-CGqIZtrm.cjs';
3
3
 
4
4
  /**
5
5
  * Base class for all Modus SDK errors.
@@ -135,7 +135,7 @@ declare class ValidationError extends ModusError {
135
135
  constructor(message: string);
136
136
  }
137
137
 
138
- declare const CHAT_MODELS: readonly ["claude-sonnet-5", "claude-sonnet-5.5", "claude-sonnet-4.6", "claude-opus-4.8", "claude-opus-5.5", "claude-haiku-5.5", "gpt-5.2", "gpt-5.5", "gpt-5-mini", "gpt-5.6-luna", "gpt-6-luna", "gpt-oss-120b", "gpt-oss-20b", "qwen3-235b-a22b-2507", "qwen3-coder", "qwen3-32b", "deepseek-chat-v3.1", "deepseek-v4-pro", "deepseek-v4-flash-latest", "deepseek-v4.1-flash-1017", "minimax-m2.7", "llama-4-maverick", "llama-4-scout", "llama-3.3-70b-instruct", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-3.8-flash", "grok-4.3-fast", "grok-4.3", "grok-4.7", "kimi-k3"];
138
+ declare const CHAT_MODELS: readonly ["claude-sonnet-5", "claude-sonnet-5.5", "claude-sonnet-4.6", "claude-opus-4.8", "claude-opus-5.5", "claude-haiku-5.5", "gpt-5.2", "gpt-5.5", "gpt-5-mini", "gpt-5.6-luna", "gpt-6-luna", "gpt-oss-120b", "gpt-oss-20b", "qwen3-235b-a22b-2507", "qwen3-coder", "qwen3-32b", "deepseek-chat-v3.1", "deepseek-v4-pro", "deepseek-v4-flash-latest", "deepseek-v4.1-flash-1017", "minimax-m2.7", "llama-4-maverick", "llama-4-scout", "llama-3.3-70b-instruct", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-3.8-flash", "gemini-4-neon", "grok-4.3-fast", "grok-4.3", "grok-4.7", "kimi-k3"];
139
139
 
140
140
  /** Fields every run event carries. */
141
141
  interface RunEventBase {
@@ -222,7 +222,7 @@ type RunEvent = TokenEvent | DoneEvent | ErrorEvent | CancelledEvent | StreamTim
222
222
  * - `qwen3-235b-a22b-2507`, `qwen3-coder`, `qwen3-32b`
223
223
  * - `deepseek-chat-v3.1`, `deepseek-v4-pro`, `deepseek-v4-flash-latest`, `deepseek-v4.1-flash-1017`, `minimax-m2.7`
224
224
  * - `llama-4-maverick`, `llama-4-scout`, `llama-3.3-70b-instruct`
225
- * - `gemini-3.1-pro-preview`, `gemini-3-flash-preview`, `gemini-3.8-flash`
225
+ * - `gemini-3.1-pro-preview`, `gemini-3-flash-preview`, `gemini-3.8-flash`, `gemini-4-neon`
226
226
  * - `grok-4.3-fast`, `grok-4.3`, `grok-4.7`, `kimi-k3`
227
227
  *
228
228
  * @example
@@ -661,7 +661,6 @@ declare class WorkflowRunsResource {
661
661
  }
662
662
 
663
663
  type Connection = components['schemas']['ConnectionDto'];
664
- type ConnectionSelection = components['schemas']['ConnectionSelectionDto'];
665
664
 
666
665
  /** One element of a context item's array field, from `listValues`. */
667
666
  type ContextValueRow = {
@@ -1352,36 +1351,6 @@ declare class ConnectionsResource extends ConnectionsResourceBase {
1352
1351
  type?: string;
1353
1352
  pageSize?: number;
1354
1353
  }): Promise<Connection | undefined>;
1355
- /**
1356
- * List the selectable units on a connection (a repository, a schema, a project).
1357
- *
1358
- * @param connectionId - Connection id.
1359
- * @param options.pageSize - Maximum items per page (default 25).
1360
- * @param options.pageToken - Opaque token from a previous page.
1361
- * @returns A page of selectable units — use {@link iterSelections} or `.autoPagingIter()` for every page.
1362
- * @example
1363
- * for await (const unit of client.connections.iterSelections('7a3f9d2c-1111-4000-a000-000000000abc')) {
1364
- * console.log(unit.objectType, unit.path)
1365
- * }
1366
- */
1367
- listSelections(connectionId: string, options?: {
1368
- pageSize?: number;
1369
- pageToken?: string;
1370
- }): Promise<Page<ConnectionSelection>>;
1371
- private listSelectionsPage;
1372
- /**
1373
- * Yield every selectable unit on a connection, following pages.
1374
- *
1375
- * @param connectionId - Connection id.
1376
- * @param options.pageSize - Maximum items per page (default 25).
1377
- * @example
1378
- * for await (const unit of client.connections.iterSelections('7a3f9d2c-1111-4000-a000-000000000abc')) {
1379
- * console.log(unit.objectType, unit.displayName)
1380
- * }
1381
- */
1382
- iterSelections(connectionId: string, options?: {
1383
- pageSize?: number;
1384
- }): AsyncGenerator<ConnectionSelection>;
1385
1354
  }
1386
1355
 
1387
1356
  /**
@@ -1467,4 +1436,4 @@ declare class Modus extends ModusClientBase {
1467
1436
  constructor(options?: ModusOptions);
1468
1437
  }
1469
1438
 
1470
- export { APIConnectionError, type ActiveConversationRun, type ActiveConversationRunStatus, type AgentRun, type AgentRunCreateRequest, type AgentRunListItem, type AgentRunStream, AgentWorkflowActionsResource, type ApprovalRequiredEvent, type ApprovalScope, type AssistantContentResetEvent, AuthenticationError, BadRequestError, type CancelRunRequest, type CancelledEvent, type ChatModel, type ChatOptions, type ChatResult, ChatSession, type ComposeSkillContextRequest, ConflictError, type Connection, type ConnectionSelection, ConnectionsResource, type ContentProjection, ContextItem, ContextItemLookupRow, ContextItemsQuery, ContextItemsQueryResult, ContextItemsResource, ContextResource, type ContextValueRow, Conversation, ConversationKind, ConversationListItem, type CreateAgentRunRequest, CustomContextItemsResource, type DoneEvent, type EditQueuedRunRequest, type ErrorEvent, type FollowUpRunRequest, type HttpIngestedDataRequest, type IngestedDataRequest, IngestedDataResource, type IngestedDataResponse, type IngestedDataResponseFormat, type IngestedDataUploadResult, InternalServerError, type InterruptRunRequest, type JsonObjectInput, Modus, ModusConfig, type ModusContextComposition, type ModusContextRequest, ModusConversationsResource, ModusError, ModusOptions, ModusResource, type ModusRunCreateRequest, NotFoundError, Page, PermissionDeniedError, RateLimitError, type RecordSuggestionEventRequest, type ResumeRunRequest, type RunAdmission, RunCancelledError, type RunEvent, type RunEventBase, type RunEventsPollResponse, type RunStatus, type RunTimeframe, Scope, ScopeConversationsResource, ScopesResource, type SkillContextComposition, type SkillRunCreateRequest, type SqlIngestedDataRequest, StreamTimeoutError, type StreamTimeoutEvent, type SuggestionEventSource, type SuggestionEventType, type SuggestionQuestion, SuggestionsResource, type TokenEvent, UnprocessableError, type UploadIngestedDataOptions, ValidationError, VariationView, Workflow, type WorkflowActionRequest, type WorkflowChatOptions, WorkflowRunsResource, WorkflowType, WorkflowsResource, components };
1439
+ export { APIConnectionError, type ActiveConversationRun, type ActiveConversationRunStatus, type AgentRun, type AgentRunCreateRequest, type AgentRunListItem, type AgentRunStream, AgentWorkflowActionsResource, type ApprovalRequiredEvent, type ApprovalScope, type AssistantContentResetEvent, AuthenticationError, BadRequestError, type CancelRunRequest, type CancelledEvent, type ChatModel, type ChatOptions, type ChatResult, ChatSession, type ComposeSkillContextRequest, ConflictError, type Connection, ConnectionsResource, type ContentProjection, ContextItem, ContextItemLookupRow, ContextItemsQuery, ContextItemsQueryResult, ContextItemsResource, ContextResource, type ContextValueRow, Conversation, ConversationKind, ConversationListItem, type CreateAgentRunRequest, CustomContextItemsResource, type DoneEvent, type EditQueuedRunRequest, type ErrorEvent, type FollowUpRunRequest, type HttpIngestedDataRequest, type IngestedDataRequest, IngestedDataResource, type IngestedDataResponse, type IngestedDataResponseFormat, type IngestedDataUploadResult, InternalServerError, type InterruptRunRequest, type JsonObjectInput, Modus, ModusConfig, type ModusContextComposition, type ModusContextRequest, ModusConversationsResource, ModusError, ModusOptions, ModusResource, type ModusRunCreateRequest, NotFoundError, Page, PermissionDeniedError, RateLimitError, type RecordSuggestionEventRequest, type ResumeRunRequest, type RunAdmission, RunCancelledError, type RunEvent, type RunEventBase, type RunEventsPollResponse, type RunStatus, type RunTimeframe, Scope, ScopeConversationsResource, ScopesResource, type SkillContextComposition, type SkillRunCreateRequest, type SqlIngestedDataRequest, StreamTimeoutError, type StreamTimeoutEvent, type SuggestionEventSource, type SuggestionEventType, type SuggestionQuestion, SuggestionsResource, type TokenEvent, UnprocessableError, type UploadIngestedDataOptions, ValidationError, VariationView, Workflow, type WorkflowActionRequest, type WorkflowChatOptions, WorkflowRunsResource, WorkflowType, WorkflowsResource, components };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HttpClient, c as components, M as ModusConfig, P as Page, V as VariationView, S as Scope, a as ScopeConversationsResource, C as Conversation, b as ConversationKind, d as ConversationListItem, W as WorkflowType, e as Workflow, f as ContextItemsQuery, g as ContextItemsQueryResult, h as ContextItem, i as ContextItemLookupRow, j as CustomContextItemsResource, k as ModusClientBase, l as ModusOptions } from './_client-base-DvrAQWuU.js';
2
- export { A as Agent, m as AgentType, B as BatchDeleteCustomContextItemsInput, n as BatchDeleteCustomContextItemsResult, o as ContextItemAccessUpdate, p as ContextItemAncestor, q as ContextItemDeletion, r as ContextItemMove, s as ContextType, t as CreateCustomContextItemInput, u as CreatedCustomContextItem, v as CustomAttributeInput, w as CustomContextItemDeletion, x as CustomContextItemKind, y as CustomContextItemRelationInput, z as Message, O as OPERATIONS, D as OperationId, E as OperationSpec, F as ScopeStatus, G as ScopeVariation, I as Skill, J as SkillStatus, K as SkillVariation, L as SupervisionView, U as UpdateContextItemAccessInput, N as UpdateCustomContextItemInput, Q as conversationScopeId, R as conversationSkillId, T as operations, X as paths } from './_client-base-DvrAQWuU.js';
1
+ import { H as HttpClient, c as components, M as ModusConfig, P as Page, V as VariationView, S as Scope, a as ScopeConversationsResource, C as Conversation, b as ConversationKind, d as ConversationListItem, W as WorkflowType, e as Workflow, f as ContextItemsQuery, g as ContextItemsQueryResult, h as ContextItem, i as ContextItemLookupRow, j as CustomContextItemsResource, k as ModusClientBase, l as ModusOptions } from './_client-base-CGqIZtrm.js';
2
+ export { A as Agent, m as AgentType, B as BatchDeleteCustomContextItemsInput, n as BatchDeleteCustomContextItemsResult, o as ContextItemAccessUpdate, p as ContextItemAncestor, q as ContextItemDeletion, r as ContextItemMove, s as ContextType, t as CreateCustomContextItemInput, u as CreatedCustomContextItem, v as CustomAttributeInput, w as CustomContextItemDeletion, x as CustomContextItemKind, y as CustomContextItemRelationInput, z as Message, O as OPERATIONS, D as OperationId, E as OperationSpec, F as ScopeStatus, G as ScopeVariation, I as Skill, J as SkillStatus, K as SkillVariation, L as SupervisionView, U as UpdateContextItemAccessInput, N as UpdateCustomContextItemInput, Q as conversationScopeId, R as conversationSkillId, T as operations, X as paths } from './_client-base-CGqIZtrm.js';
3
3
 
4
4
  /**
5
5
  * Base class for all Modus SDK errors.
@@ -135,7 +135,7 @@ declare class ValidationError extends ModusError {
135
135
  constructor(message: string);
136
136
  }
137
137
 
138
- declare const CHAT_MODELS: readonly ["claude-sonnet-5", "claude-sonnet-5.5", "claude-sonnet-4.6", "claude-opus-4.8", "claude-opus-5.5", "claude-haiku-5.5", "gpt-5.2", "gpt-5.5", "gpt-5-mini", "gpt-5.6-luna", "gpt-6-luna", "gpt-oss-120b", "gpt-oss-20b", "qwen3-235b-a22b-2507", "qwen3-coder", "qwen3-32b", "deepseek-chat-v3.1", "deepseek-v4-pro", "deepseek-v4-flash-latest", "deepseek-v4.1-flash-1017", "minimax-m2.7", "llama-4-maverick", "llama-4-scout", "llama-3.3-70b-instruct", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-3.8-flash", "grok-4.3-fast", "grok-4.3", "grok-4.7", "kimi-k3"];
138
+ declare const CHAT_MODELS: readonly ["claude-sonnet-5", "claude-sonnet-5.5", "claude-sonnet-4.6", "claude-opus-4.8", "claude-opus-5.5", "claude-haiku-5.5", "gpt-5.2", "gpt-5.5", "gpt-5-mini", "gpt-5.6-luna", "gpt-6-luna", "gpt-oss-120b", "gpt-oss-20b", "qwen3-235b-a22b-2507", "qwen3-coder", "qwen3-32b", "deepseek-chat-v3.1", "deepseek-v4-pro", "deepseek-v4-flash-latest", "deepseek-v4.1-flash-1017", "minimax-m2.7", "llama-4-maverick", "llama-4-scout", "llama-3.3-70b-instruct", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-3.8-flash", "gemini-4-neon", "grok-4.3-fast", "grok-4.3", "grok-4.7", "kimi-k3"];
139
139
 
140
140
  /** Fields every run event carries. */
141
141
  interface RunEventBase {
@@ -222,7 +222,7 @@ type RunEvent = TokenEvent | DoneEvent | ErrorEvent | CancelledEvent | StreamTim
222
222
  * - `qwen3-235b-a22b-2507`, `qwen3-coder`, `qwen3-32b`
223
223
  * - `deepseek-chat-v3.1`, `deepseek-v4-pro`, `deepseek-v4-flash-latest`, `deepseek-v4.1-flash-1017`, `minimax-m2.7`
224
224
  * - `llama-4-maverick`, `llama-4-scout`, `llama-3.3-70b-instruct`
225
- * - `gemini-3.1-pro-preview`, `gemini-3-flash-preview`, `gemini-3.8-flash`
225
+ * - `gemini-3.1-pro-preview`, `gemini-3-flash-preview`, `gemini-3.8-flash`, `gemini-4-neon`
226
226
  * - `grok-4.3-fast`, `grok-4.3`, `grok-4.7`, `kimi-k3`
227
227
  *
228
228
  * @example
@@ -661,7 +661,6 @@ declare class WorkflowRunsResource {
661
661
  }
662
662
 
663
663
  type Connection = components['schemas']['ConnectionDto'];
664
- type ConnectionSelection = components['schemas']['ConnectionSelectionDto'];
665
664
 
666
665
  /** One element of a context item's array field, from `listValues`. */
667
666
  type ContextValueRow = {
@@ -1352,36 +1351,6 @@ declare class ConnectionsResource extends ConnectionsResourceBase {
1352
1351
  type?: string;
1353
1352
  pageSize?: number;
1354
1353
  }): Promise<Connection | undefined>;
1355
- /**
1356
- * List the selectable units on a connection (a repository, a schema, a project).
1357
- *
1358
- * @param connectionId - Connection id.
1359
- * @param options.pageSize - Maximum items per page (default 25).
1360
- * @param options.pageToken - Opaque token from a previous page.
1361
- * @returns A page of selectable units — use {@link iterSelections} or `.autoPagingIter()` for every page.
1362
- * @example
1363
- * for await (const unit of client.connections.iterSelections('7a3f9d2c-1111-4000-a000-000000000abc')) {
1364
- * console.log(unit.objectType, unit.path)
1365
- * }
1366
- */
1367
- listSelections(connectionId: string, options?: {
1368
- pageSize?: number;
1369
- pageToken?: string;
1370
- }): Promise<Page<ConnectionSelection>>;
1371
- private listSelectionsPage;
1372
- /**
1373
- * Yield every selectable unit on a connection, following pages.
1374
- *
1375
- * @param connectionId - Connection id.
1376
- * @param options.pageSize - Maximum items per page (default 25).
1377
- * @example
1378
- * for await (const unit of client.connections.iterSelections('7a3f9d2c-1111-4000-a000-000000000abc')) {
1379
- * console.log(unit.objectType, unit.displayName)
1380
- * }
1381
- */
1382
- iterSelections(connectionId: string, options?: {
1383
- pageSize?: number;
1384
- }): AsyncGenerator<ConnectionSelection>;
1385
1354
  }
1386
1355
 
1387
1356
  /**
@@ -1467,4 +1436,4 @@ declare class Modus extends ModusClientBase {
1467
1436
  constructor(options?: ModusOptions);
1468
1437
  }
1469
1438
 
1470
- export { APIConnectionError, type ActiveConversationRun, type ActiveConversationRunStatus, type AgentRun, type AgentRunCreateRequest, type AgentRunListItem, type AgentRunStream, AgentWorkflowActionsResource, type ApprovalRequiredEvent, type ApprovalScope, type AssistantContentResetEvent, AuthenticationError, BadRequestError, type CancelRunRequest, type CancelledEvent, type ChatModel, type ChatOptions, type ChatResult, ChatSession, type ComposeSkillContextRequest, ConflictError, type Connection, type ConnectionSelection, ConnectionsResource, type ContentProjection, ContextItem, ContextItemLookupRow, ContextItemsQuery, ContextItemsQueryResult, ContextItemsResource, ContextResource, type ContextValueRow, Conversation, ConversationKind, ConversationListItem, type CreateAgentRunRequest, CustomContextItemsResource, type DoneEvent, type EditQueuedRunRequest, type ErrorEvent, type FollowUpRunRequest, type HttpIngestedDataRequest, type IngestedDataRequest, IngestedDataResource, type IngestedDataResponse, type IngestedDataResponseFormat, type IngestedDataUploadResult, InternalServerError, type InterruptRunRequest, type JsonObjectInput, Modus, ModusConfig, type ModusContextComposition, type ModusContextRequest, ModusConversationsResource, ModusError, ModusOptions, ModusResource, type ModusRunCreateRequest, NotFoundError, Page, PermissionDeniedError, RateLimitError, type RecordSuggestionEventRequest, type ResumeRunRequest, type RunAdmission, RunCancelledError, type RunEvent, type RunEventBase, type RunEventsPollResponse, type RunStatus, type RunTimeframe, Scope, ScopeConversationsResource, ScopesResource, type SkillContextComposition, type SkillRunCreateRequest, type SqlIngestedDataRequest, StreamTimeoutError, type StreamTimeoutEvent, type SuggestionEventSource, type SuggestionEventType, type SuggestionQuestion, SuggestionsResource, type TokenEvent, UnprocessableError, type UploadIngestedDataOptions, ValidationError, VariationView, Workflow, type WorkflowActionRequest, type WorkflowChatOptions, WorkflowRunsResource, WorkflowType, WorkflowsResource, components };
1439
+ export { APIConnectionError, type ActiveConversationRun, type ActiveConversationRunStatus, type AgentRun, type AgentRunCreateRequest, type AgentRunListItem, type AgentRunStream, AgentWorkflowActionsResource, type ApprovalRequiredEvent, type ApprovalScope, type AssistantContentResetEvent, AuthenticationError, BadRequestError, type CancelRunRequest, type CancelledEvent, type ChatModel, type ChatOptions, type ChatResult, ChatSession, type ComposeSkillContextRequest, ConflictError, type Connection, ConnectionsResource, type ContentProjection, ContextItem, ContextItemLookupRow, ContextItemsQuery, ContextItemsQueryResult, ContextItemsResource, ContextResource, type ContextValueRow, Conversation, ConversationKind, ConversationListItem, type CreateAgentRunRequest, CustomContextItemsResource, type DoneEvent, type EditQueuedRunRequest, type ErrorEvent, type FollowUpRunRequest, type HttpIngestedDataRequest, type IngestedDataRequest, IngestedDataResource, type IngestedDataResponse, type IngestedDataResponseFormat, type IngestedDataUploadResult, InternalServerError, type InterruptRunRequest, type JsonObjectInput, Modus, ModusConfig, type ModusContextComposition, type ModusContextRequest, ModusConversationsResource, ModusError, ModusOptions, ModusResource, type ModusRunCreateRequest, NotFoundError, Page, PermissionDeniedError, RateLimitError, type RecordSuggestionEventRequest, type ResumeRunRequest, type RunAdmission, RunCancelledError, type RunEvent, type RunEventBase, type RunEventsPollResponse, type RunStatus, type RunTimeframe, Scope, ScopeConversationsResource, ScopesResource, type SkillContextComposition, type SkillRunCreateRequest, type SqlIngestedDataRequest, StreamTimeoutError, type StreamTimeoutEvent, type SuggestionEventSource, type SuggestionEventType, type SuggestionQuestion, SuggestionsResource, type TokenEvent, UnprocessableError, type UploadIngestedDataOptions, ValidationError, VariationView, Workflow, type WorkflowActionRequest, type WorkflowChatOptions, WorkflowRunsResource, WorkflowType, WorkflowsResource, components };
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  validateChatModel,
32
32
  validateId,
33
33
  validatePageSize
34
- } from "./chunk-3CKUUDEJ.js";
34
+ } from "./chunk-KX2P3TAH.js";
35
35
 
36
36
  // src/_agent_run_request.ts
37
37
  import { randomUUID } from "crypto";
@@ -1032,52 +1032,6 @@ var ConnectionsResource = class extends ConnectionsResourceBase {
1032
1032
  } while (token !== void 0);
1033
1033
  return void 0;
1034
1034
  }
1035
- /**
1036
- * List the selectable units on a connection (a repository, a schema, a project).
1037
- *
1038
- * @param connectionId - Connection id.
1039
- * @param options.pageSize - Maximum items per page (default 25).
1040
- * @param options.pageToken - Opaque token from a previous page.
1041
- * @returns A page of selectable units — use {@link iterSelections} or `.autoPagingIter()` for every page.
1042
- * @example
1043
- * for await (const unit of client.connections.iterSelections('7a3f9d2c-1111-4000-a000-000000000abc')) {
1044
- * console.log(unit.objectType, unit.path)
1045
- * }
1046
- */
1047
- listSelections(connectionId, options = {}) {
1048
- validateId(connectionId, "connection_id");
1049
- const pageSize = options.pageSize ?? 25;
1050
- validatePageSize(pageSize);
1051
- return this.listSelectionsPage(connectionId, pageSize, options.pageToken);
1052
- }
1053
- async listSelectionsPage(connectionId, pageSize, pageToken) {
1054
- const data = asRecord(
1055
- await invokeWithRetry(this.config, this.http, "ConnectionsController_listSelections", {
1056
- pathParams: { connectionId },
1057
- query: aipListParams(pageSize, pageToken)
1058
- })
1059
- );
1060
- return buildAipPage(
1061
- data,
1062
- "selections",
1063
- (raw) => raw,
1064
- (token) => this.listSelectionsPage(connectionId, pageSize, token)
1065
- );
1066
- }
1067
- /**
1068
- * Yield every selectable unit on a connection, following pages.
1069
- *
1070
- * @param connectionId - Connection id.
1071
- * @param options.pageSize - Maximum items per page (default 25).
1072
- * @example
1073
- * for await (const unit of client.connections.iterSelections('7a3f9d2c-1111-4000-a000-000000000abc')) {
1074
- * console.log(unit.objectType, unit.displayName)
1075
- * }
1076
- */
1077
- async *iterSelections(connectionId, options = {}) {
1078
- const page = await this.listSelections(connectionId, options);
1079
- yield* page.autoPagingIter();
1080
- }
1081
1035
  };
1082
1036
 
1083
1037
  // src/_generated/resources/consumption/context/items.ts