@mitralab.io/sdk-core 0.3.5 → 0.3.7

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.cjs CHANGED
@@ -1791,6 +1791,7 @@ function createAgentTasksModule(transport, errors = defaultSdkCoreErrorFactory)
1791
1791
  size: options.size,
1792
1792
  sort: options.sort,
1793
1793
  kinds: options.kinds,
1794
+ include: options.include,
1794
1795
  before: options.before
1795
1796
  }
1796
1797
  }),
@@ -3955,12 +3956,14 @@ var AgentDirectChannel = class {
3955
3956
  const otherLog = historyCursor?.boxLog !== void 0 && channel.boxLog !== void 0 && historyCursor.boxLog !== channel.boxLog;
3956
3957
  const historyFrom = historyCursor === void 0 ? void 0 : otherLog ? 0 : historyCursor.sequence;
3957
3958
  let cursor = historyFrom ?? channel.lastSequence;
3959
+ let boxLog = channel.boxLog;
3958
3960
  const abort = new AbortController();
3959
3961
  const onAbort = () => abort.abort(signal?.reason);
3960
3962
  signal?.addEventListener("abort", onAbort, { once: true });
3961
- const onFrame = (event) => {
3962
- const hello = helloOf(event);
3963
+ const onFrame = (frame) => {
3964
+ const hello = helloOf(frame);
3963
3965
  if (hello) thread = hello.threadId;
3966
+ const event = hello && boxLog !== void 0 ? { ...frame, payload: { ...asObject(frame.payload), boxLog } } : frame;
3964
3967
  if (typeof event.sequence === "number" && event.sequence > cursor) cursor = event.sequence;
3965
3968
  if (isSubagentFrame(event)) {
3966
3969
  observer.onEvent(event);
@@ -3991,6 +3994,7 @@ var AgentDirectChannel = class {
3991
3994
  onFrame,
3992
3995
  onLost,
3993
3996
  replayFrom: (next) => {
3997
+ boxLog = next.boxLog;
3994
3998
  const decide = (hello) => {
3995
3999
  const nextBox = boxAddress(next.wsUrl);
3996
4000
  const zeroed = next.lastSequence === 0 && cursor > 0;
@@ -4497,12 +4501,22 @@ function isChatRow(message) {
4497
4501
  var REQUEST_ROW_KINDS = {
4498
4502
  APPROVAL: "approval",
4499
4503
  USER_INPUT_REQUEST: "userInputRequest",
4500
- NOTIFICATION: "notification"
4504
+ NOTIFICATION: "notification",
4505
+ PLAN: "plan"
4501
4506
  };
4502
4507
  function notificationFieldsOf(payload) {
4503
4508
  const { source, outcome, summary, detail } = payload;
4504
4509
  return { source, outcome, summary, ...detail !== void 0 ? { detail } : {} };
4505
4510
  }
4511
+ function planFieldsOf(payload) {
4512
+ const { planId, steps, explanation, status } = payload;
4513
+ return {
4514
+ planId: planId ?? null,
4515
+ steps: Array.isArray(steps) ? steps : [],
4516
+ ...explanation !== void 0 ? { explanation } : {},
4517
+ status: status ?? null
4518
+ };
4519
+ }
4506
4520
  function parseJson(text) {
4507
4521
  try {
4508
4522
  return JSON.parse(text);
@@ -4532,7 +4546,10 @@ function toAgentTimelineItem(message) {
4532
4546
  ...timelineIdentityOf(message),
4533
4547
  ...parentToolIdOf(message.parentToolId)
4534
4548
  };
4535
- return requestKind === "notification" ? { ...item, kind: requestKind, ...notificationFieldsOf(payload) } : { ...item, kind: requestKind };
4549
+ if (requestKind === "notification") {
4550
+ return { ...item, kind: requestKind, ...notificationFieldsOf(payload) };
4551
+ }
4552
+ return requestKind === "plan" ? { ...item, kind: requestKind, ...planFieldsOf(payload) } : { ...item, kind: requestKind };
4536
4553
  }
4537
4554
  }
4538
4555
  if (message.type === "TOOL_USE") {
@@ -4683,6 +4700,9 @@ var CoreAgentTaskSession = class {
4683
4700
  _hasOlder = false;
4684
4701
  // Moves whenever `history` is replaced, so a `loadOlder` still reading drops what it read.
4685
4702
  historyGeneration = 0;
4703
+ // Whether the box the channel follows counts in the log of the history's rows. A box whose hello
4704
+ // names another log, or reports a log shorter than the history's, has sequences that start over.
4705
+ rowsInChannelLog = true;
4686
4706
  olderRead = null;
4687
4707
  get taskId() {
4688
4708
  return this._taskId;
@@ -4778,7 +4798,8 @@ var CoreAgentTaskSession = class {
4778
4798
  const page = await this.dependencies.tasks.listMessages(this._taskId, {
4779
4799
  ...options.limit !== void 0 ? { size: options.limit } : {},
4780
4800
  sort: "createdAt,desc",
4781
- kinds: "all"
4801
+ kinds: "all",
4802
+ include: "plan"
4782
4803
  });
4783
4804
  this.historyLimit = options.limit;
4784
4805
  this.replaceHistory(page);
@@ -4808,7 +4829,8 @@ var CoreAgentTaskSession = class {
4808
4829
  before: oldest.id,
4809
4830
  ...this.historyLimit !== void 0 ? { size: this.historyLimit } : {},
4810
4831
  sort: "createdAt,desc",
4811
- kinds: "all"
4832
+ kinds: "all",
4833
+ include: "plan"
4812
4834
  });
4813
4835
  } catch (error) {
4814
4836
  if (generation !== this.historyGeneration || this.isClosed()) return [];
@@ -4823,6 +4845,7 @@ var CoreAgentTaskSession = class {
4823
4845
  }
4824
4846
  replaceHistory(page) {
4825
4847
  this.historyGeneration += 1;
4848
+ this.rowsInChannelLog = true;
4826
4849
  this._hasOlder = hasOlderRows(page);
4827
4850
  this._history = [...page.content].reverse().map(toAgentTimelineItem);
4828
4851
  }
@@ -5240,7 +5263,8 @@ var CoreAgentTaskSession = class {
5240
5263
  const page = await this.dependencies.tasks.listMessages(this._taskId, {
5241
5264
  size: 100,
5242
5265
  sort: "createdAt,desc",
5243
- kinds: "all"
5266
+ kinds: "all",
5267
+ include: "plan"
5244
5268
  });
5245
5269
  this.turnBaselineIds = new Set(page.content.map((message) => message.id));
5246
5270
  }
@@ -5249,7 +5273,8 @@ var CoreAgentTaskSession = class {
5249
5273
  const page = await this.dependencies.tasks.listMessages(this._taskId, {
5250
5274
  size: 100,
5251
5275
  sort: "createdAt,desc",
5252
- kinds: "all"
5276
+ kinds: "all",
5277
+ include: "plan"
5253
5278
  });
5254
5279
  this.replaceHistory(page);
5255
5280
  this.emit("historyLoaded", { history: this.history });
@@ -5403,6 +5428,15 @@ var CoreAgentTaskSession = class {
5403
5428
  ...typeof lifecycle?.clientMessageId === "string" ? { clientMessageId: lifecycle.clientMessageId } : {}
5404
5429
  });
5405
5430
  break;
5431
+ case "hello": {
5432
+ const lastSequence = payload?.lastSequence;
5433
+ const history = historyCursorOf(this._history);
5434
+ const rowsLog = [...this._history].reverse().find((item) => item.boxLog !== void 0)?.boxLog;
5435
+ if (typeof payload?.boxLog === "number" && rowsLog !== void 0 && payload.boxLog !== rowsLog || typeof lastSequence === "number" && history !== void 0 && lastSequence < history.sequence) {
5436
+ this.rowsInChannelLog = false;
5437
+ }
5438
+ break;
5439
+ }
5406
5440
  case "backgroundTasks":
5407
5441
  this._backgroundTasks = backgroundTasksOf(payload?.tasks);
5408
5442
  this.emit("backgroundTasks", { tasks: this._backgroundTasks });
@@ -5491,6 +5525,15 @@ var CoreAgentTaskSession = class {
5491
5525
  });
5492
5526
  }
5493
5527
  break;
5528
+ case "plan":
5529
+ if (payload && this.livePlan(event, payload)) {
5530
+ this.emit("plan", {
5531
+ ...payload,
5532
+ ...planFieldsOf(payload),
5533
+ ...pieceIdentityOf(event, payload)
5534
+ });
5535
+ }
5536
+ break;
5494
5537
  default:
5495
5538
  break;
5496
5539
  }
@@ -5670,6 +5713,7 @@ var CoreAgentTaskSession = class {
5670
5713
  const text = (id !== void 0 ? this.sentTexts.get(id) : void 0) ?? boxText;
5671
5714
  if (typeof text !== "string" || !text) return;
5672
5715
  const sequence = typeof event.sequence === "number" ? event.sequence : void 0;
5716
+ if ((id === void 0 || !this.sentTexts.has(id)) && this.beforeLoadedRows(sequence)) return;
5673
5717
  this.livePiece(
5674
5718
  (item) => item.kind === "user" && (id !== void 0 && item.clientMessageId === id || sequence !== void 0 && item.sequence === sequence && item.text === text),
5675
5719
  () => ({
@@ -5683,6 +5727,20 @@ var CoreAgentTaskSession = class {
5683
5727
  (item) => item
5684
5728
  );
5685
5729
  }
5730
+ // Every connection to the box brings the running turn's `stepStart` again, and a history loaded
5731
+ // while that turn ran can start after its question (mitra-core-sdk#140: 121 rows after it, a
5732
+ // page of 100). Before the oldest row the history holds, with older rows still on the server,
5733
+ // the question is one of those rows, and `loadOlder` brings it in its place.
5734
+ beforeLoadedRows(sequence) {
5735
+ if (sequence === void 0 || !this._hasOlder || !this.rowsInChannelLog) return false;
5736
+ const rows = this._history.filter(
5737
+ (item) => !item.id.startsWith("live:") && typeof item.sequence === "number"
5738
+ );
5739
+ const oldest = rows[0];
5740
+ const newest = rows[rows.length - 1];
5741
+ if (oldest?.sequence === void 0 || oldest.boxLog !== newest?.boxLog) return false;
5742
+ return sequence < oldest.sequence;
5743
+ }
5686
5744
  liveText(event, payload, kind, parentToolId) {
5687
5745
  const itemId = typeof payload?.itemId === "string" ? payload.itemId : void 0;
5688
5746
  if (itemId === void 0) return;
@@ -5753,6 +5811,44 @@ var CoreAgentTaskSession = class {
5753
5811
  (item) => item
5754
5812
  );
5755
5813
  }
5814
+ // T3 sends the list whole on each update: the item takes the last one where it first came, as
5815
+ // the Copilot's row does. An update the item already holds (a replay after the history) leaves
5816
+ // it as it is and answers false.
5817
+ livePlan(event, payload) {
5818
+ const itemId = typeof payload.itemId === "string" ? payload.itemId : void 0;
5819
+ const sequence = typeof event.sequence === "number" ? event.sequence : void 0;
5820
+ if (itemId === void 0 && sequence === void 0) return true;
5821
+ let applied = true;
5822
+ this.livePiece(
5823
+ (item) => item.kind === "plan" && (itemId !== void 0 ? item.itemId === itemId : item.sequence === sequence),
5824
+ () => ({
5825
+ id: `live:plan:${itemId ?? sequence}`,
5826
+ kind: "plan",
5827
+ payload,
5828
+ ...planFieldsOf(payload),
5829
+ at: liveAtOf(event),
5830
+ ...sequence === void 0 ? {} : { sequence },
5831
+ ...itemId === void 0 ? {} : { itemId }
5832
+ }),
5833
+ (item) => {
5834
+ const held = item.lastSequence ?? item.sequence;
5835
+ if (sequence !== void 0 && held !== void 0 && sequence <= held) {
5836
+ applied = false;
5837
+ return item;
5838
+ }
5839
+ const fields = planFieldsOf(payload);
5840
+ const next = {
5841
+ ...item,
5842
+ payload,
5843
+ ...fields,
5844
+ ...sequence === void 0 ? {} : { lastSequence: sequence }
5845
+ };
5846
+ if (fields.explanation === void 0) delete next.explanation;
5847
+ return next;
5848
+ }
5849
+ );
5850
+ return applied;
5851
+ }
5756
5852
  // A child thread's frames are the subagent's conversation: they open no turn and settle no
5757
5853
  // message. Its text and tools still reach `delta`, `content` and `tool` as they did in 0.2.13,
5758
5854
  // which knew no subagents, so an app that only bumps the version sees what it saw before.
package/dist/index.d.cts CHANGED
@@ -536,6 +536,11 @@ interface AgentMessageListOptions extends PageOptions {
536
536
  * and `TOOL_USE` rows of the chat itself, as before.
537
537
  */
538
538
  kinds?: "all";
539
+ /**
540
+ * `plan` also asks for the `PLAN` rows, which `kinds: "all"` alone leaves out: 0.3.0 to 0.3.5 read
541
+ * a row of a type they do not know as text. A Copilot without them ignores it.
542
+ */
543
+ include?: "plan";
539
544
  /** Id of a message: only the rows recorded before it, so the next page back holds still. */
540
545
  before?: string;
541
546
  }
@@ -1232,7 +1237,7 @@ interface AgentMessage {
1232
1237
  sender: string;
1233
1238
  /**
1234
1239
  * `TEXT`, `ERROR`, `TOOL_USE`; asked with `kinds: "all"`, also `REASONING`, `SUBAGENT_TEXT`,
1235
- * `APPROVAL`, `USER_INPUT_REQUEST` and `NOTIFICATION`.
1240
+ * `APPROVAL`, `USER_INPUT_REQUEST` and `NOTIFICATION`; with `include: "plan"`, also `PLAN`.
1236
1241
  */
1237
1242
  type: string;
1238
1243
  content: string;
@@ -2374,6 +2379,31 @@ interface AgentNotification {
2374
2379
  itemId?: string;
2375
2380
  [field: string]: unknown;
2376
2381
  }
2382
+ /**
2383
+ * One step of the turn's list, as T3 has it: `status` `pending`, `running` or `completed`, and
2384
+ * `durationMs` once T3 timed a completed step. Values are passed as they come, an unknown one
2385
+ * included.
2386
+ */
2387
+ interface AgentPlanStep {
2388
+ id: string;
2389
+ text: string;
2390
+ status: string;
2391
+ durationMs?: number;
2392
+ [field: string]: unknown;
2393
+ }
2394
+ /**
2395
+ * The turn's list of steps as it stands, T3's `todo_list` item: Claude's TodoWrite and tasks and
2396
+ * Codex's plan. Each update carries the whole list; the same `itemId` is the same list. `status`
2397
+ * is the item's own, as T3 sends it.
2398
+ */
2399
+ interface AgentPlan {
2400
+ planId: string | null;
2401
+ steps: AgentPlanStep[];
2402
+ explanation?: string;
2403
+ status: string | null;
2404
+ itemId?: string;
2405
+ [field: string]: unknown;
2406
+ }
2377
2407
  interface AgentToolEvent extends AgentPieceIdentity {
2378
2408
  tool: string;
2379
2409
  /** The title the box gave the tool: a subagent's own name (its description), as T3 shows it. */
@@ -2450,6 +2480,17 @@ type AgentTimelineItem = ({
2450
2480
  at: string;
2451
2481
  parentToolId?: string;
2452
2482
  } & Pick<AgentNotification, "source" | "outcome" | "summary" | "detail"> & AgentTimelineItemIdentity) | ({
2483
+ id: string;
2484
+ /**
2485
+ * The turn's list of steps (`PLAN` row), one item per T3 item with its last state: `planId`,
2486
+ * `steps`, `explanation` and `status` as the live `plan` event carries them, and the box's
2487
+ * frame as it came in `payload`. Live, each update replaces the item in place.
2488
+ */
2489
+ kind: "plan";
2490
+ payload: Record<string, unknown>;
2491
+ at: string;
2492
+ parentToolId?: string;
2493
+ } & Pick<AgentPlan, "planId" | "steps" | "explanation" | "status"> & AgentTimelineItemIdentity) | ({
2453
2494
  id: string;
2454
2495
  kind: "tool";
2455
2496
  tool: AgentToolEvent;
@@ -2522,6 +2563,8 @@ interface AgentTaskSessionEventMap {
2522
2563
  };
2523
2564
  /** Background work ended: what it was, how it ended and T3's line for it. */
2524
2565
  notification: AgentNotification & AgentPieceIdentity;
2566
+ /** The turn's list of steps changed: the whole list, as T3 shows it. */
2567
+ plan: AgentPlan & AgentPieceIdentity;
2525
2568
  /**
2526
2569
  * The box took a message into the running turn at this point, with no turn of its own: the
2527
2570
  * place the app shows it in that turn. The turn's `turnEnd` answers it.
@@ -2709,4 +2752,4 @@ declare function expectPage<T extends object>(value: unknown, context: string, e
2709
2752
  declare function expectLegacyPage<T extends object>(value: unknown, context: string, errors?: SdkCoreErrorFactory, validateItem?: (value: unknown, context: string, errors: SdkCoreErrorFactory) => T): LegacyPage<T>;
2710
2753
  declare function expectEmpty(value: unknown, context: string, errors?: SdkCoreErrorFactory): void;
2711
2754
 
2712
- export { API_KEY_EXCHANGE_PATH, type AgentBackgroundTask, type AgentBulkDeleteResult, type AgentConnection, type AgentConnectionCreateInput, type AgentConnectionCustomProvider, type AgentConnectionCustomProviderInput, type AgentConnectionsModule, type AgentCredentialOptions, type AgentCredentialScope, type AgentCredentialsModule, type AgentDefinition, type AgentDirectChannelOptions, type AgentFetch, type AgentFetchResponse, type AgentHistoryCursor, type AgentInput, type AgentMessage, type AgentMessageListOptions, type AgentModel, type AgentNotification, type AgentPieceIdentity, type AgentProviderUsage, type AgentQueueItem, type AgentReadyProvider, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, type AgentSubagent, type AgentSubagentFrame, type AgentSubagentStatus, type AgentTask, type AgentTaskChannel, type AgentTaskCreateInput, type AgentTaskEvent, type AgentTaskEventConnection, type AgentTaskEventObserver, type AgentTaskEventSource, type AgentTaskInput, type AgentTaskListOptions, type AgentTaskRuntime, type AgentTaskSession, type AgentTaskSessionEventMap, type AgentTaskSessionManager, type AgentTaskSessionManagerOptions, type AgentTaskSessionOptions, type AgentTaskSessionStatus, AgentTaskTurnError, type AgentTasksModule, type AgentTasksWithSessions, type AgentTimelineItem, type AgentTimelineItemIdentity, type AgentToolEvent, type AgentTurnResult, type AgentTurnUsage, type AgentTurnUsageRequest, type AgentUpdateItem, type AgentWebSocket, type AgentWebSocketConstructor, type AgentsModule, type ApiKeyExchangeCaller, type AppColor, type AppContext, type AppCreateInput, type AppDefinition, type AppDeploy, type AppDomain, type AppFiles, type AppGetOptions, type AppListOptions, type AppMember, type AppPublishOptions, type AppSummary, type AppUpdateInput, type AppVersion, type AppVersionStatus, type AppsModule, type AuthModule, type AuthenticationResult, type BatchExecution, type BatchStatementResult, type BulkUnsubscribeResult, type ColumnInput, type ConnectionConfig, type ConnectionConfigResponse, type ConnectionTestResult, type ContextModule, type ContextModuleDependencies, type CopilotProvider, type CredentialStatus, type CredentialUsage, type CredentialUsageWindow, type CustomQueriesModule, type CustomQueryDefinition, type CustomQueryInput, type CustomQuerySummary, type CustomQueryUpdateInput, type DataSourceBulkItemResult, type DataSourceBulkResult, type DataSourceCreateInput, type DataSourceDbType, type DataSourceDefinition, type DataSourceInstanceType, type DataSourceUpdateInput, type DataSourcesModule, type DdlStatement, type DeviceAuthorization, type DmlStatement, type EffectiveEmailSender, type EmailSender, type EmailSenderInput, type EmailSettings, type EmailSettingsInput, type EmailTemplate, type EmailTemplateInput, type EmailTemplatePreview, type EmailTemplateType, type EmailTemplateTypeCatalog, type EmailTemplateUpsertResult, type EmailTemplateVariable, type EmptyFunctionInput, type EntitiesModule, type EntitiesProxy, type EntityListOptions, type EntityListResponse, type EntityTable, type ExistingAgentTaskSessionOptions, type FunctionBulkCreateInput, type FunctionBulkDeleteInput, type FunctionBulkDeleteResult, type FunctionBulkPatchInput, type FunctionBulkPatchItem, type FunctionBulkUpdateItem, type FunctionCreateInput, type FunctionDefinition, type FunctionExecution, type FunctionListOptions, type FunctionPatchInput, type FunctionRuntime, type FunctionSecrets, type FunctionSummary, type FunctionUpdateInput, type FunctionVersion, type FunctionVersionListOptions, type FunctionVisibility, type FunctionsAdminModule, type FunctionsModule, type FunctionsModuleOptions, type HttpMethod, type ImportColumnMapping, type ImportDefinition, type ImportExecution, type ImportExecutionListOptions, type ImportInput, type ImportProcessing, type ImportSchedule, type ImportSource, type ImportSourceResponse, type ImportTarget, type ImportsModule, type IntegrationAdminModule, type IntegrationConnectionStatus, type IntegrationCredentialRule, type IntegrationExecution, type IntegrationFieldSchema, type IntegrationFieldSchemaInput, type IntegrationLoginConfig, type IntegrationModule, type IntegrationProxyMode, type IntegrationRequestConfig, type IntegrationResource, type IntegrationResourceInput, type IntegrationResourceParam, type IntegrationResourceSummary, type IntegrationResourceUpdateInput, type IntegrationResourcesModule, type IntegrationTemplate, type IntegrationTemplateSummary, type IntegrationTemplateType, type IntegrationTemplatesModule, type IntegrationTokenExtraction, type InviteAppUserInput, type InvocationType, type JsonValue, type LegacyPage, type ListTablesOptions, type ListTemplateConfigsOptions, type MembersModule, type MessageAccepted, type MessengerModule, type NewAgentTaskSessionOptions, type OAuthExchangeInput, type OAuthStartResult, type Page, type PageOptions, type PlanPrice, type ProviderCredentialStatus, type ProxyInput, type ProxyResult, type PublicFunctionAsyncResult, type PublicFunctionResult, type PublicFunctionsModule, type QueriesModule, type QueryParamPrimitive, type QueryParamValue, type QueryResult, type SchemaModule, type SchemaScope, type SchemaTables, type SdkCore, SdkCoreConfigurationError, type SdkCoreErrorFactory, type SdkCoreOptions, SdkCoreResponseError, type SdkCoreTransports, type SendEmailInput, type SqlModule, type TableColumn, type TableDefinition, type TableForeignKey, type TemplateConfig, type TemplateConfigBulkItemResult, type TemplateConfigBulkResult, type TemplateConfigCreateInput, type TemplateConfigPage, type TemplateConfigSummary, type TemplateConfigUpdateInput, type Tenant, type TestCredentialsInput, type Transport, type TransportRequestOptions, type User, type UserPlan, type WorkflowDefinition, type WorkflowExecution, type WorkflowInput, type WorkflowSummary, type WorkflowsModule, appAccessTokenPath, createAgentConnectionsModule, createAgentCredentialsModule, createAgentTaskSessionManager, createAgentTasksModule, createAgentsModule, createAppsModule, createAuthModule, createContextModule, createCustomQueriesModule, createDataSourcesModule, createEntitiesModule, createFunctionsAdminModule, createFunctionsModule, createImportsModule, createIntegrationAdminModule, createIntegrationModule, createIntegrationResourcesModule, createIntegrationTemplatesModule, createMembersModule, createMessengerModule, createPublicFunctionsModule, createQueriesModule, createSchemaModule, createSdkCore, createSqlModule, createWorkflowsModule, defaultSdkCoreErrorFactory, encodePathSegment, expectEmpty, expectLegacyPage, expectNullableObject, expectObject, expectObjectArray, expectPage, expectStringArray, isWorkspaceSession, readTokenAppId, readTokenExpiry, resolveApiKeyToken, toAgentTimelineItem, tokenAuthorizesApp, withAgentTaskSessions };
2755
+ export { API_KEY_EXCHANGE_PATH, type AgentBackgroundTask, type AgentBulkDeleteResult, type AgentConnection, type AgentConnectionCreateInput, type AgentConnectionCustomProvider, type AgentConnectionCustomProviderInput, type AgentConnectionsModule, type AgentCredentialOptions, type AgentCredentialScope, type AgentCredentialsModule, type AgentDefinition, type AgentDirectChannelOptions, type AgentFetch, type AgentFetchResponse, type AgentHistoryCursor, type AgentInput, type AgentMessage, type AgentMessageListOptions, type AgentModel, type AgentNotification, type AgentPieceIdentity, type AgentPlan, type AgentPlanStep, type AgentProviderUsage, type AgentQueueItem, type AgentReadyProvider, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, type AgentSubagent, type AgentSubagentFrame, type AgentSubagentStatus, type AgentTask, type AgentTaskChannel, type AgentTaskCreateInput, type AgentTaskEvent, type AgentTaskEventConnection, type AgentTaskEventObserver, type AgentTaskEventSource, type AgentTaskInput, type AgentTaskListOptions, type AgentTaskRuntime, type AgentTaskSession, type AgentTaskSessionEventMap, type AgentTaskSessionManager, type AgentTaskSessionManagerOptions, type AgentTaskSessionOptions, type AgentTaskSessionStatus, AgentTaskTurnError, type AgentTasksModule, type AgentTasksWithSessions, type AgentTimelineItem, type AgentTimelineItemIdentity, type AgentToolEvent, type AgentTurnResult, type AgentTurnUsage, type AgentTurnUsageRequest, type AgentUpdateItem, type AgentWebSocket, type AgentWebSocketConstructor, type AgentsModule, type ApiKeyExchangeCaller, type AppColor, type AppContext, type AppCreateInput, type AppDefinition, type AppDeploy, type AppDomain, type AppFiles, type AppGetOptions, type AppListOptions, type AppMember, type AppPublishOptions, type AppSummary, type AppUpdateInput, type AppVersion, type AppVersionStatus, type AppsModule, type AuthModule, type AuthenticationResult, type BatchExecution, type BatchStatementResult, type BulkUnsubscribeResult, type ColumnInput, type ConnectionConfig, type ConnectionConfigResponse, type ConnectionTestResult, type ContextModule, type ContextModuleDependencies, type CopilotProvider, type CredentialStatus, type CredentialUsage, type CredentialUsageWindow, type CustomQueriesModule, type CustomQueryDefinition, type CustomQueryInput, type CustomQuerySummary, type CustomQueryUpdateInput, type DataSourceBulkItemResult, type DataSourceBulkResult, type DataSourceCreateInput, type DataSourceDbType, type DataSourceDefinition, type DataSourceInstanceType, type DataSourceUpdateInput, type DataSourcesModule, type DdlStatement, type DeviceAuthorization, type DmlStatement, type EffectiveEmailSender, type EmailSender, type EmailSenderInput, type EmailSettings, type EmailSettingsInput, type EmailTemplate, type EmailTemplateInput, type EmailTemplatePreview, type EmailTemplateType, type EmailTemplateTypeCatalog, type EmailTemplateUpsertResult, type EmailTemplateVariable, type EmptyFunctionInput, type EntitiesModule, type EntitiesProxy, type EntityListOptions, type EntityListResponse, type EntityTable, type ExistingAgentTaskSessionOptions, type FunctionBulkCreateInput, type FunctionBulkDeleteInput, type FunctionBulkDeleteResult, type FunctionBulkPatchInput, type FunctionBulkPatchItem, type FunctionBulkUpdateItem, type FunctionCreateInput, type FunctionDefinition, type FunctionExecution, type FunctionListOptions, type FunctionPatchInput, type FunctionRuntime, type FunctionSecrets, type FunctionSummary, type FunctionUpdateInput, type FunctionVersion, type FunctionVersionListOptions, type FunctionVisibility, type FunctionsAdminModule, type FunctionsModule, type FunctionsModuleOptions, type HttpMethod, type ImportColumnMapping, type ImportDefinition, type ImportExecution, type ImportExecutionListOptions, type ImportInput, type ImportProcessing, type ImportSchedule, type ImportSource, type ImportSourceResponse, type ImportTarget, type ImportsModule, type IntegrationAdminModule, type IntegrationConnectionStatus, type IntegrationCredentialRule, type IntegrationExecution, type IntegrationFieldSchema, type IntegrationFieldSchemaInput, type IntegrationLoginConfig, type IntegrationModule, type IntegrationProxyMode, type IntegrationRequestConfig, type IntegrationResource, type IntegrationResourceInput, type IntegrationResourceParam, type IntegrationResourceSummary, type IntegrationResourceUpdateInput, type IntegrationResourcesModule, type IntegrationTemplate, type IntegrationTemplateSummary, type IntegrationTemplateType, type IntegrationTemplatesModule, type IntegrationTokenExtraction, type InviteAppUserInput, type InvocationType, type JsonValue, type LegacyPage, type ListTablesOptions, type ListTemplateConfigsOptions, type MembersModule, type MessageAccepted, type MessengerModule, type NewAgentTaskSessionOptions, type OAuthExchangeInput, type OAuthStartResult, type Page, type PageOptions, type PlanPrice, type ProviderCredentialStatus, type ProxyInput, type ProxyResult, type PublicFunctionAsyncResult, type PublicFunctionResult, type PublicFunctionsModule, type QueriesModule, type QueryParamPrimitive, type QueryParamValue, type QueryResult, type SchemaModule, type SchemaScope, type SchemaTables, type SdkCore, SdkCoreConfigurationError, type SdkCoreErrorFactory, type SdkCoreOptions, SdkCoreResponseError, type SdkCoreTransports, type SendEmailInput, type SqlModule, type TableColumn, type TableDefinition, type TableForeignKey, type TemplateConfig, type TemplateConfigBulkItemResult, type TemplateConfigBulkResult, type TemplateConfigCreateInput, type TemplateConfigPage, type TemplateConfigSummary, type TemplateConfigUpdateInput, type Tenant, type TestCredentialsInput, type Transport, type TransportRequestOptions, type User, type UserPlan, type WorkflowDefinition, type WorkflowExecution, type WorkflowInput, type WorkflowSummary, type WorkflowsModule, appAccessTokenPath, createAgentConnectionsModule, createAgentCredentialsModule, createAgentTaskSessionManager, createAgentTasksModule, createAgentsModule, createAppsModule, createAuthModule, createContextModule, createCustomQueriesModule, createDataSourcesModule, createEntitiesModule, createFunctionsAdminModule, createFunctionsModule, createImportsModule, createIntegrationAdminModule, createIntegrationModule, createIntegrationResourcesModule, createIntegrationTemplatesModule, createMembersModule, createMessengerModule, createPublicFunctionsModule, createQueriesModule, createSchemaModule, createSdkCore, createSqlModule, createWorkflowsModule, defaultSdkCoreErrorFactory, encodePathSegment, expectEmpty, expectLegacyPage, expectNullableObject, expectObject, expectObjectArray, expectPage, expectStringArray, isWorkspaceSession, readTokenAppId, readTokenExpiry, resolveApiKeyToken, toAgentTimelineItem, tokenAuthorizesApp, withAgentTaskSessions };
package/dist/index.d.ts CHANGED
@@ -536,6 +536,11 @@ interface AgentMessageListOptions extends PageOptions {
536
536
  * and `TOOL_USE` rows of the chat itself, as before.
537
537
  */
538
538
  kinds?: "all";
539
+ /**
540
+ * `plan` also asks for the `PLAN` rows, which `kinds: "all"` alone leaves out: 0.3.0 to 0.3.5 read
541
+ * a row of a type they do not know as text. A Copilot without them ignores it.
542
+ */
543
+ include?: "plan";
539
544
  /** Id of a message: only the rows recorded before it, so the next page back holds still. */
540
545
  before?: string;
541
546
  }
@@ -1232,7 +1237,7 @@ interface AgentMessage {
1232
1237
  sender: string;
1233
1238
  /**
1234
1239
  * `TEXT`, `ERROR`, `TOOL_USE`; asked with `kinds: "all"`, also `REASONING`, `SUBAGENT_TEXT`,
1235
- * `APPROVAL`, `USER_INPUT_REQUEST` and `NOTIFICATION`.
1240
+ * `APPROVAL`, `USER_INPUT_REQUEST` and `NOTIFICATION`; with `include: "plan"`, also `PLAN`.
1236
1241
  */
1237
1242
  type: string;
1238
1243
  content: string;
@@ -2374,6 +2379,31 @@ interface AgentNotification {
2374
2379
  itemId?: string;
2375
2380
  [field: string]: unknown;
2376
2381
  }
2382
+ /**
2383
+ * One step of the turn's list, as T3 has it: `status` `pending`, `running` or `completed`, and
2384
+ * `durationMs` once T3 timed a completed step. Values are passed as they come, an unknown one
2385
+ * included.
2386
+ */
2387
+ interface AgentPlanStep {
2388
+ id: string;
2389
+ text: string;
2390
+ status: string;
2391
+ durationMs?: number;
2392
+ [field: string]: unknown;
2393
+ }
2394
+ /**
2395
+ * The turn's list of steps as it stands, T3's `todo_list` item: Claude's TodoWrite and tasks and
2396
+ * Codex's plan. Each update carries the whole list; the same `itemId` is the same list. `status`
2397
+ * is the item's own, as T3 sends it.
2398
+ */
2399
+ interface AgentPlan {
2400
+ planId: string | null;
2401
+ steps: AgentPlanStep[];
2402
+ explanation?: string;
2403
+ status: string | null;
2404
+ itemId?: string;
2405
+ [field: string]: unknown;
2406
+ }
2377
2407
  interface AgentToolEvent extends AgentPieceIdentity {
2378
2408
  tool: string;
2379
2409
  /** The title the box gave the tool: a subagent's own name (its description), as T3 shows it. */
@@ -2450,6 +2480,17 @@ type AgentTimelineItem = ({
2450
2480
  at: string;
2451
2481
  parentToolId?: string;
2452
2482
  } & Pick<AgentNotification, "source" | "outcome" | "summary" | "detail"> & AgentTimelineItemIdentity) | ({
2483
+ id: string;
2484
+ /**
2485
+ * The turn's list of steps (`PLAN` row), one item per T3 item with its last state: `planId`,
2486
+ * `steps`, `explanation` and `status` as the live `plan` event carries them, and the box's
2487
+ * frame as it came in `payload`. Live, each update replaces the item in place.
2488
+ */
2489
+ kind: "plan";
2490
+ payload: Record<string, unknown>;
2491
+ at: string;
2492
+ parentToolId?: string;
2493
+ } & Pick<AgentPlan, "planId" | "steps" | "explanation" | "status"> & AgentTimelineItemIdentity) | ({
2453
2494
  id: string;
2454
2495
  kind: "tool";
2455
2496
  tool: AgentToolEvent;
@@ -2522,6 +2563,8 @@ interface AgentTaskSessionEventMap {
2522
2563
  };
2523
2564
  /** Background work ended: what it was, how it ended and T3's line for it. */
2524
2565
  notification: AgentNotification & AgentPieceIdentity;
2566
+ /** The turn's list of steps changed: the whole list, as T3 shows it. */
2567
+ plan: AgentPlan & AgentPieceIdentity;
2525
2568
  /**
2526
2569
  * The box took a message into the running turn at this point, with no turn of its own: the
2527
2570
  * place the app shows it in that turn. The turn's `turnEnd` answers it.
@@ -2709,4 +2752,4 @@ declare function expectPage<T extends object>(value: unknown, context: string, e
2709
2752
  declare function expectLegacyPage<T extends object>(value: unknown, context: string, errors?: SdkCoreErrorFactory, validateItem?: (value: unknown, context: string, errors: SdkCoreErrorFactory) => T): LegacyPage<T>;
2710
2753
  declare function expectEmpty(value: unknown, context: string, errors?: SdkCoreErrorFactory): void;
2711
2754
 
2712
- export { API_KEY_EXCHANGE_PATH, type AgentBackgroundTask, type AgentBulkDeleteResult, type AgentConnection, type AgentConnectionCreateInput, type AgentConnectionCustomProvider, type AgentConnectionCustomProviderInput, type AgentConnectionsModule, type AgentCredentialOptions, type AgentCredentialScope, type AgentCredentialsModule, type AgentDefinition, type AgentDirectChannelOptions, type AgentFetch, type AgentFetchResponse, type AgentHistoryCursor, type AgentInput, type AgentMessage, type AgentMessageListOptions, type AgentModel, type AgentNotification, type AgentPieceIdentity, type AgentProviderUsage, type AgentQueueItem, type AgentReadyProvider, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, type AgentSubagent, type AgentSubagentFrame, type AgentSubagentStatus, type AgentTask, type AgentTaskChannel, type AgentTaskCreateInput, type AgentTaskEvent, type AgentTaskEventConnection, type AgentTaskEventObserver, type AgentTaskEventSource, type AgentTaskInput, type AgentTaskListOptions, type AgentTaskRuntime, type AgentTaskSession, type AgentTaskSessionEventMap, type AgentTaskSessionManager, type AgentTaskSessionManagerOptions, type AgentTaskSessionOptions, type AgentTaskSessionStatus, AgentTaskTurnError, type AgentTasksModule, type AgentTasksWithSessions, type AgentTimelineItem, type AgentTimelineItemIdentity, type AgentToolEvent, type AgentTurnResult, type AgentTurnUsage, type AgentTurnUsageRequest, type AgentUpdateItem, type AgentWebSocket, type AgentWebSocketConstructor, type AgentsModule, type ApiKeyExchangeCaller, type AppColor, type AppContext, type AppCreateInput, type AppDefinition, type AppDeploy, type AppDomain, type AppFiles, type AppGetOptions, type AppListOptions, type AppMember, type AppPublishOptions, type AppSummary, type AppUpdateInput, type AppVersion, type AppVersionStatus, type AppsModule, type AuthModule, type AuthenticationResult, type BatchExecution, type BatchStatementResult, type BulkUnsubscribeResult, type ColumnInput, type ConnectionConfig, type ConnectionConfigResponse, type ConnectionTestResult, type ContextModule, type ContextModuleDependencies, type CopilotProvider, type CredentialStatus, type CredentialUsage, type CredentialUsageWindow, type CustomQueriesModule, type CustomQueryDefinition, type CustomQueryInput, type CustomQuerySummary, type CustomQueryUpdateInput, type DataSourceBulkItemResult, type DataSourceBulkResult, type DataSourceCreateInput, type DataSourceDbType, type DataSourceDefinition, type DataSourceInstanceType, type DataSourceUpdateInput, type DataSourcesModule, type DdlStatement, type DeviceAuthorization, type DmlStatement, type EffectiveEmailSender, type EmailSender, type EmailSenderInput, type EmailSettings, type EmailSettingsInput, type EmailTemplate, type EmailTemplateInput, type EmailTemplatePreview, type EmailTemplateType, type EmailTemplateTypeCatalog, type EmailTemplateUpsertResult, type EmailTemplateVariable, type EmptyFunctionInput, type EntitiesModule, type EntitiesProxy, type EntityListOptions, type EntityListResponse, type EntityTable, type ExistingAgentTaskSessionOptions, type FunctionBulkCreateInput, type FunctionBulkDeleteInput, type FunctionBulkDeleteResult, type FunctionBulkPatchInput, type FunctionBulkPatchItem, type FunctionBulkUpdateItem, type FunctionCreateInput, type FunctionDefinition, type FunctionExecution, type FunctionListOptions, type FunctionPatchInput, type FunctionRuntime, type FunctionSecrets, type FunctionSummary, type FunctionUpdateInput, type FunctionVersion, type FunctionVersionListOptions, type FunctionVisibility, type FunctionsAdminModule, type FunctionsModule, type FunctionsModuleOptions, type HttpMethod, type ImportColumnMapping, type ImportDefinition, type ImportExecution, type ImportExecutionListOptions, type ImportInput, type ImportProcessing, type ImportSchedule, type ImportSource, type ImportSourceResponse, type ImportTarget, type ImportsModule, type IntegrationAdminModule, type IntegrationConnectionStatus, type IntegrationCredentialRule, type IntegrationExecution, type IntegrationFieldSchema, type IntegrationFieldSchemaInput, type IntegrationLoginConfig, type IntegrationModule, type IntegrationProxyMode, type IntegrationRequestConfig, type IntegrationResource, type IntegrationResourceInput, type IntegrationResourceParam, type IntegrationResourceSummary, type IntegrationResourceUpdateInput, type IntegrationResourcesModule, type IntegrationTemplate, type IntegrationTemplateSummary, type IntegrationTemplateType, type IntegrationTemplatesModule, type IntegrationTokenExtraction, type InviteAppUserInput, type InvocationType, type JsonValue, type LegacyPage, type ListTablesOptions, type ListTemplateConfigsOptions, type MembersModule, type MessageAccepted, type MessengerModule, type NewAgentTaskSessionOptions, type OAuthExchangeInput, type OAuthStartResult, type Page, type PageOptions, type PlanPrice, type ProviderCredentialStatus, type ProxyInput, type ProxyResult, type PublicFunctionAsyncResult, type PublicFunctionResult, type PublicFunctionsModule, type QueriesModule, type QueryParamPrimitive, type QueryParamValue, type QueryResult, type SchemaModule, type SchemaScope, type SchemaTables, type SdkCore, SdkCoreConfigurationError, type SdkCoreErrorFactory, type SdkCoreOptions, SdkCoreResponseError, type SdkCoreTransports, type SendEmailInput, type SqlModule, type TableColumn, type TableDefinition, type TableForeignKey, type TemplateConfig, type TemplateConfigBulkItemResult, type TemplateConfigBulkResult, type TemplateConfigCreateInput, type TemplateConfigPage, type TemplateConfigSummary, type TemplateConfigUpdateInput, type Tenant, type TestCredentialsInput, type Transport, type TransportRequestOptions, type User, type UserPlan, type WorkflowDefinition, type WorkflowExecution, type WorkflowInput, type WorkflowSummary, type WorkflowsModule, appAccessTokenPath, createAgentConnectionsModule, createAgentCredentialsModule, createAgentTaskSessionManager, createAgentTasksModule, createAgentsModule, createAppsModule, createAuthModule, createContextModule, createCustomQueriesModule, createDataSourcesModule, createEntitiesModule, createFunctionsAdminModule, createFunctionsModule, createImportsModule, createIntegrationAdminModule, createIntegrationModule, createIntegrationResourcesModule, createIntegrationTemplatesModule, createMembersModule, createMessengerModule, createPublicFunctionsModule, createQueriesModule, createSchemaModule, createSdkCore, createSqlModule, createWorkflowsModule, defaultSdkCoreErrorFactory, encodePathSegment, expectEmpty, expectLegacyPage, expectNullableObject, expectObject, expectObjectArray, expectPage, expectStringArray, isWorkspaceSession, readTokenAppId, readTokenExpiry, resolveApiKeyToken, toAgentTimelineItem, tokenAuthorizesApp, withAgentTaskSessions };
2755
+ export { API_KEY_EXCHANGE_PATH, type AgentBackgroundTask, type AgentBulkDeleteResult, type AgentConnection, type AgentConnectionCreateInput, type AgentConnectionCustomProvider, type AgentConnectionCustomProviderInput, type AgentConnectionsModule, type AgentCredentialOptions, type AgentCredentialScope, type AgentCredentialsModule, type AgentDefinition, type AgentDirectChannelOptions, type AgentFetch, type AgentFetchResponse, type AgentHistoryCursor, type AgentInput, type AgentMessage, type AgentMessageListOptions, type AgentModel, type AgentNotification, type AgentPieceIdentity, type AgentPlan, type AgentPlanStep, type AgentProviderUsage, type AgentQueueItem, type AgentReadyProvider, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, type AgentSubagent, type AgentSubagentFrame, type AgentSubagentStatus, type AgentTask, type AgentTaskChannel, type AgentTaskCreateInput, type AgentTaskEvent, type AgentTaskEventConnection, type AgentTaskEventObserver, type AgentTaskEventSource, type AgentTaskInput, type AgentTaskListOptions, type AgentTaskRuntime, type AgentTaskSession, type AgentTaskSessionEventMap, type AgentTaskSessionManager, type AgentTaskSessionManagerOptions, type AgentTaskSessionOptions, type AgentTaskSessionStatus, AgentTaskTurnError, type AgentTasksModule, type AgentTasksWithSessions, type AgentTimelineItem, type AgentTimelineItemIdentity, type AgentToolEvent, type AgentTurnResult, type AgentTurnUsage, type AgentTurnUsageRequest, type AgentUpdateItem, type AgentWebSocket, type AgentWebSocketConstructor, type AgentsModule, type ApiKeyExchangeCaller, type AppColor, type AppContext, type AppCreateInput, type AppDefinition, type AppDeploy, type AppDomain, type AppFiles, type AppGetOptions, type AppListOptions, type AppMember, type AppPublishOptions, type AppSummary, type AppUpdateInput, type AppVersion, type AppVersionStatus, type AppsModule, type AuthModule, type AuthenticationResult, type BatchExecution, type BatchStatementResult, type BulkUnsubscribeResult, type ColumnInput, type ConnectionConfig, type ConnectionConfigResponse, type ConnectionTestResult, type ContextModule, type ContextModuleDependencies, type CopilotProvider, type CredentialStatus, type CredentialUsage, type CredentialUsageWindow, type CustomQueriesModule, type CustomQueryDefinition, type CustomQueryInput, type CustomQuerySummary, type CustomQueryUpdateInput, type DataSourceBulkItemResult, type DataSourceBulkResult, type DataSourceCreateInput, type DataSourceDbType, type DataSourceDefinition, type DataSourceInstanceType, type DataSourceUpdateInput, type DataSourcesModule, type DdlStatement, type DeviceAuthorization, type DmlStatement, type EffectiveEmailSender, type EmailSender, type EmailSenderInput, type EmailSettings, type EmailSettingsInput, type EmailTemplate, type EmailTemplateInput, type EmailTemplatePreview, type EmailTemplateType, type EmailTemplateTypeCatalog, type EmailTemplateUpsertResult, type EmailTemplateVariable, type EmptyFunctionInput, type EntitiesModule, type EntitiesProxy, type EntityListOptions, type EntityListResponse, type EntityTable, type ExistingAgentTaskSessionOptions, type FunctionBulkCreateInput, type FunctionBulkDeleteInput, type FunctionBulkDeleteResult, type FunctionBulkPatchInput, type FunctionBulkPatchItem, type FunctionBulkUpdateItem, type FunctionCreateInput, type FunctionDefinition, type FunctionExecution, type FunctionListOptions, type FunctionPatchInput, type FunctionRuntime, type FunctionSecrets, type FunctionSummary, type FunctionUpdateInput, type FunctionVersion, type FunctionVersionListOptions, type FunctionVisibility, type FunctionsAdminModule, type FunctionsModule, type FunctionsModuleOptions, type HttpMethod, type ImportColumnMapping, type ImportDefinition, type ImportExecution, type ImportExecutionListOptions, type ImportInput, type ImportProcessing, type ImportSchedule, type ImportSource, type ImportSourceResponse, type ImportTarget, type ImportsModule, type IntegrationAdminModule, type IntegrationConnectionStatus, type IntegrationCredentialRule, type IntegrationExecution, type IntegrationFieldSchema, type IntegrationFieldSchemaInput, type IntegrationLoginConfig, type IntegrationModule, type IntegrationProxyMode, type IntegrationRequestConfig, type IntegrationResource, type IntegrationResourceInput, type IntegrationResourceParam, type IntegrationResourceSummary, type IntegrationResourceUpdateInput, type IntegrationResourcesModule, type IntegrationTemplate, type IntegrationTemplateSummary, type IntegrationTemplateType, type IntegrationTemplatesModule, type IntegrationTokenExtraction, type InviteAppUserInput, type InvocationType, type JsonValue, type LegacyPage, type ListTablesOptions, type ListTemplateConfigsOptions, type MembersModule, type MessageAccepted, type MessengerModule, type NewAgentTaskSessionOptions, type OAuthExchangeInput, type OAuthStartResult, type Page, type PageOptions, type PlanPrice, type ProviderCredentialStatus, type ProxyInput, type ProxyResult, type PublicFunctionAsyncResult, type PublicFunctionResult, type PublicFunctionsModule, type QueriesModule, type QueryParamPrimitive, type QueryParamValue, type QueryResult, type SchemaModule, type SchemaScope, type SchemaTables, type SdkCore, SdkCoreConfigurationError, type SdkCoreErrorFactory, type SdkCoreOptions, SdkCoreResponseError, type SdkCoreTransports, type SendEmailInput, type SqlModule, type TableColumn, type TableDefinition, type TableForeignKey, type TemplateConfig, type TemplateConfigBulkItemResult, type TemplateConfigBulkResult, type TemplateConfigCreateInput, type TemplateConfigPage, type TemplateConfigSummary, type TemplateConfigUpdateInput, type Tenant, type TestCredentialsInput, type Transport, type TransportRequestOptions, type User, type UserPlan, type WorkflowDefinition, type WorkflowExecution, type WorkflowInput, type WorkflowSummary, type WorkflowsModule, appAccessTokenPath, createAgentConnectionsModule, createAgentCredentialsModule, createAgentTaskSessionManager, createAgentTasksModule, createAgentsModule, createAppsModule, createAuthModule, createContextModule, createCustomQueriesModule, createDataSourcesModule, createEntitiesModule, createFunctionsAdminModule, createFunctionsModule, createImportsModule, createIntegrationAdminModule, createIntegrationModule, createIntegrationResourcesModule, createIntegrationTemplatesModule, createMembersModule, createMessengerModule, createPublicFunctionsModule, createQueriesModule, createSchemaModule, createSdkCore, createSqlModule, createWorkflowsModule, defaultSdkCoreErrorFactory, encodePathSegment, expectEmpty, expectLegacyPage, expectNullableObject, expectObject, expectObjectArray, expectPage, expectStringArray, isWorkspaceSession, readTokenAppId, readTokenExpiry, resolveApiKeyToken, toAgentTimelineItem, tokenAuthorizesApp, withAgentTaskSessions };