@stigmer/sdk 3.12.4 → 3.12.6

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.
Files changed (159) hide show
  1. package/__tests__/mcpserver-connect.test.d.ts +2 -0
  2. package/__tests__/mcpserver-connect.test.d.ts.map +1 -0
  3. package/__tests__/mcpserver-connect.test.js +146 -0
  4. package/__tests__/mcpserver-connect.test.js.map +1 -0
  5. package/__tests__/update-input-roundtrip.test.d.ts +2 -0
  6. package/__tests__/update-input-roundtrip.test.d.ts.map +1 -0
  7. package/__tests__/update-input-roundtrip.test.js +791 -0
  8. package/__tests__/update-input-roundtrip.test.js.map +1 -0
  9. package/__tests__/update-input.test.d.ts +2 -0
  10. package/__tests__/update-input.test.d.ts.map +1 -0
  11. package/__tests__/update-input.test.js +188 -0
  12. package/__tests__/update-input.test.js.map +1 -0
  13. package/gen/agent.d.ts +21 -0
  14. package/gen/agent.d.ts.map +1 -1
  15. package/gen/agent.js +73 -1
  16. package/gen/agent.js.map +1 -1
  17. package/gen/agentchannel.d.ts +23 -1
  18. package/gen/agentchannel.d.ts.map +1 -1
  19. package/gen/agentchannel.js +55 -1
  20. package/gen/agentchannel.js.map +1 -1
  21. package/gen/agentexecution.d.ts +29 -1
  22. package/gen/agentexecution.d.ts.map +1 -1
  23. package/gen/agentexecution.js +155 -2
  24. package/gen/agentexecution.js.map +1 -1
  25. package/gen/agentinstance.d.ts +21 -0
  26. package/gen/agentinstance.d.ts.map +1 -1
  27. package/gen/agentinstance.js +32 -1
  28. package/gen/agentinstance.js.map +1 -1
  29. package/gen/agentshare.d.ts +23 -1
  30. package/gen/agentshare.d.ts.map +1 -1
  31. package/gen/agentshare.js +53 -1
  32. package/gen/agentshare.js.map +1 -1
  33. package/gen/apikey.d.ts +21 -0
  34. package/gen/apikey.d.ts.map +1 -1
  35. package/gen/apikey.js +33 -1
  36. package/gen/apikey.js.map +1 -1
  37. package/gen/artifact.d.ts +8 -0
  38. package/gen/artifact.d.ts.map +1 -1
  39. package/gen/artifact.js +1 -0
  40. package/gen/artifact.js.map +1 -1
  41. package/gen/channelapp.d.ts +21 -0
  42. package/gen/channelapp.d.ts.map +1 -1
  43. package/gen/channelapp.js +45 -0
  44. package/gen/channelapp.js.map +1 -1
  45. package/gen/client.d.ts +3 -3
  46. package/gen/client.d.ts.map +1 -1
  47. package/gen/environment.d.ts +21 -0
  48. package/gen/environment.d.ts.map +1 -1
  49. package/gen/environment.js +31 -1
  50. package/gen/environment.js.map +1 -1
  51. package/gen/executioncontext.d.ts +8 -0
  52. package/gen/executioncontext.d.ts.map +1 -1
  53. package/gen/executioncontext.js +1 -0
  54. package/gen/executioncontext.js.map +1 -1
  55. package/gen/iampolicy.d.ts +8 -0
  56. package/gen/iampolicy.d.ts.map +1 -1
  57. package/gen/iampolicy.js +1 -0
  58. package/gen/iampolicy.js.map +1 -1
  59. package/gen/identityaccount.d.ts +29 -0
  60. package/gen/identityaccount.d.ts.map +1 -1
  61. package/gen/identityaccount.js +57 -2
  62. package/gen/identityaccount.js.map +1 -1
  63. package/gen/identityprovider.d.ts +21 -0
  64. package/gen/identityprovider.d.ts.map +1 -1
  65. package/gen/identityprovider.js +40 -0
  66. package/gen/identityprovider.js.map +1 -1
  67. package/gen/invitation.d.ts +8 -0
  68. package/gen/invitation.d.ts.map +1 -1
  69. package/gen/invitation.js +1 -0
  70. package/gen/invitation.js.map +1 -1
  71. package/gen/mcpserver.d.ts +22 -0
  72. package/gen/mcpserver.d.ts.map +1 -1
  73. package/gen/mcpserver.js +87 -1
  74. package/gen/mcpserver.js.map +1 -1
  75. package/gen/oauthapp.d.ts +23 -1
  76. package/gen/oauthapp.d.ts.map +1 -1
  77. package/gen/oauthapp.js +40 -0
  78. package/gen/oauthapp.js.map +1 -1
  79. package/gen/organization.d.ts +26 -0
  80. package/gen/organization.d.ts.map +1 -1
  81. package/gen/organization.js +49 -2
  82. package/gen/organization.js.map +1 -1
  83. package/gen/platformclient.d.ts +22 -0
  84. package/gen/platformclient.d.ts.map +1 -1
  85. package/gen/platformclient.js +42 -1
  86. package/gen/platformclient.js.map +1 -1
  87. package/gen/project.d.ts +21 -0
  88. package/gen/project.d.ts.map +1 -1
  89. package/gen/project.js +32 -1
  90. package/gen/project.js.map +1 -1
  91. package/gen/proto-utils.d.ts +36 -0
  92. package/gen/proto-utils.d.ts.map +1 -1
  93. package/gen/proto-utils.js +58 -0
  94. package/gen/proto-utils.js.map +1 -1
  95. package/gen/schedule.d.ts +23 -1
  96. package/gen/schedule.d.ts.map +1 -1
  97. package/gen/schedule.js +79 -1
  98. package/gen/schedule.js.map +1 -1
  99. package/gen/session.d.ts +21 -0
  100. package/gen/session.d.ts.map +1 -1
  101. package/gen/session.js +80 -1
  102. package/gen/session.js.map +1 -1
  103. package/gen/skill.d.ts +8 -0
  104. package/gen/skill.d.ts.map +1 -1
  105. package/gen/skill.js +1 -0
  106. package/gen/skill.js.map +1 -1
  107. package/gen/workflow.d.ts +21 -0
  108. package/gen/workflow.d.ts.map +1 -1
  109. package/gen/workflow.js +79 -0
  110. package/gen/workflow.js.map +1 -1
  111. package/gen/workflowexecution.d.ts +21 -0
  112. package/gen/workflowexecution.d.ts.map +1 -1
  113. package/gen/workflowexecution.js +36 -1
  114. package/gen/workflowexecution.js.map +1 -1
  115. package/gen/workflowinstance.d.ts +21 -0
  116. package/gen/workflowinstance.d.ts.map +1 -1
  117. package/gen/workflowinstance.js +33 -1
  118. package/gen/workflowinstance.js.map +1 -1
  119. package/index.d.ts +21 -20
  120. package/index.d.ts.map +1 -1
  121. package/index.js +25 -21
  122. package/index.js.map +1 -1
  123. package/mcpserver-connect.d.ts +79 -0
  124. package/mcpserver-connect.d.ts.map +1 -0
  125. package/mcpserver-connect.js +114 -0
  126. package/mcpserver-connect.js.map +1 -0
  127. package/package.json +2 -2
  128. package/src/__tests__/mcpserver-connect.test.ts +181 -0
  129. package/src/__tests__/update-input-roundtrip.test.ts +1031 -0
  130. package/src/__tests__/update-input.test.ts +250 -0
  131. package/src/gen/agent.ts +89 -3
  132. package/src/gen/agentchannel.ts +72 -4
  133. package/src/gen/agentexecution.ts +188 -6
  134. package/src/gen/agentinstance.ts +41 -1
  135. package/src/gen/agentshare.ts +68 -4
  136. package/src/gen/apikey.ts +42 -1
  137. package/src/gen/artifact.ts +9 -0
  138. package/src/gen/channelapp.ts +57 -1
  139. package/src/gen/client.ts +3 -3
  140. package/src/gen/environment.ts +40 -1
  141. package/src/gen/executioncontext.ts +9 -0
  142. package/src/gen/iampolicy.ts +9 -0
  143. package/src/gen/identityaccount.ts +77 -2
  144. package/src/gen/identityprovider.ts +49 -0
  145. package/src/gen/invitation.ts +9 -0
  146. package/src/gen/mcpserver.ts +101 -3
  147. package/src/gen/oauthapp.ts +51 -1
  148. package/src/gen/organization.ts +66 -2
  149. package/src/gen/platformclient.ts +52 -1
  150. package/src/gen/project.ts +41 -1
  151. package/src/gen/proto-utils.ts +64 -0
  152. package/src/gen/schedule.ts +98 -4
  153. package/src/gen/session.ts +97 -3
  154. package/src/gen/skill.ts +9 -0
  155. package/src/gen/workflow.ts +96 -2
  156. package/src/gen/workflowexecution.ts +45 -1
  157. package/src/gen/workflowinstance.ts +42 -1
  158. package/src/index.ts +32 -3
  159. package/src/mcpserver-connect.ts +159 -0
@@ -1,21 +1,22 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
3
  import { wrapError } from "./errors.js";
4
- import { stripUndefined, toTimestamp } from "./proto-utils.js";
4
+ import { stripUndefined, toTimestamp, toResourceRefInput, toResourceRefInputs, toExecVarInputMap } from "./proto-utils.js";
5
5
  import { type ResourceRef, type EnvVarInput } from "./types.js";
6
6
  import { create, type JsonObject } from "@bufbuild/protobuf";
7
+ import { timestampDate } from "@bufbuild/protobuf/wkt";
7
8
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
- import { ToolApprovalOverrideSchema, McpServerUsageSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
9
+ import { ToolApprovalOverrideSchema, McpServerUsageSchema, type ToolApprovalOverride, type McpServerUsage } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
9
10
  import { AgentExecutionSchema, type AgentExecution } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
10
11
  import { AgentExecutionCommandController } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/command_pb";
11
- import { InteractionMode, ApprovalMode, ServiceTier } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
12
+ import { InteractionMode, ApprovalMode, ServiceTier, ThinkingMode } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
12
13
  import { AgentExecutionIdSchema, AgentExecutionUpdateStatusInputSchema, UpdateStatusResponseSchema, SubmitApprovalInputSchema, SubmitFileDecisionInputSchema, CancelAgentExecutionInputSchema, TerminateAgentExecutionInputSchema, RecoverAgentExecutionInputSchema, PauseAgentExecutionInputSchema, ResumeAgentExecutionInputSchema, UploadAttachmentRequestSchema, UploadAttachmentResponseSchema, ListAgentExecutionsRequestSchema, AgentExecutionListSchema, ListAgentExecutionsBySessionRequestSchema, GetArtifactDownloadUrlRequestSchema, GetArtifactDownloadUrlResponseSchema, GetArtifactContentRequestSchema, GetArtifactContentResponseSchema, GetExecutionUsageReportInputSchema, GetExecutionUsageReportOutputSchema, GetSessionUsageReportInputSchema, GetSessionUsageReportOutputSchema, GetAgentUsageReportInputSchema, GetAgentUsageReportOutputSchema, GetOrgUsageReportInputSchema, GetOrgUsageReportOutputSchema, GetAgentExecutionSummaryRequestSchema, AgentExecutionSummarySchema, type AgentExecutionUpdateStatusInput, type UpdateStatusResponse, type SubmitApprovalInput, type SubmitFileDecisionInput, type CancelAgentExecutionInput, type TerminateAgentExecutionInput, type RecoverAgentExecutionInput, type PauseAgentExecutionInput, type ResumeAgentExecutionInput, type UploadAttachmentRequest, type UploadAttachmentResponse, type ListAgentExecutionsRequest, type AgentExecutionList, type ListAgentExecutionsBySessionRequest, type GetArtifactDownloadUrlRequest, type GetArtifactDownloadUrlResponse, type GetArtifactContentRequest, type GetArtifactContentResponse, type GetExecutionUsageReportInput, type GetExecutionUsageReportOutput, type GetSessionUsageReportInput, type GetSessionUsageReportOutput, type GetAgentUsageReportInput, type GetAgentUsageReportOutput, type GetOrgUsageReportInput, type GetOrgUsageReportOutput, type GetAgentExecutionSummaryRequest, type AgentExecutionSummary } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/io_pb";
13
14
  import { AgentExecutionQueryController } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/query_pb";
14
- import { AgentExecutionSpecSchema, ContextManagementConfigSchema, ExecutionConfigSchema, AttachmentSchema, ConversationCatchupSchema } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/spec_pb";
15
+ import { AgentExecutionSpecSchema, ContextManagementConfigSchema, ExecutionConfigSchema, AttachmentSchema, ConversationCatchupSchema, DeclaredPreferencesSchema, type ContextManagementConfig, type ExecutionConfig, type Attachment, type ConversationCatchup, type DeclaredPreferences } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/spec_pb";
15
16
  import { ExecutionValueSchema } from "@stigmer/protos/ai/stigmer/agentic/executioncontext/v1/spec_pb";
16
17
  import { Harness, CursorMode, ExecutionTarget, GitWriteBackMode } from "@stigmer/protos/ai/stigmer/agentic/session/v1/enum_pb";
17
- import { SessionSpecSchema } from "@stigmer/protos/ai/stigmer/agentic/session/v1/spec_pb";
18
- import { GitRepoSourceSchema, LocalPathSourceSchema, WorkspaceSourceSchema, WorkspaceEntrySchema } from "@stigmer/protos/ai/stigmer/agentic/session/v1/workspace_pb";
18
+ import { SessionSpecSchema, type SessionSpec } from "@stigmer/protos/ai/stigmer/agentic/session/v1/spec_pb";
19
+ import { GitRepoSourceSchema, LocalPathSourceSchema, WorkspaceSourceSchema, WorkspaceEntrySchema, type GitRepoSource, type LocalPathSource, type WorkspaceSource, type WorkspaceEntry } from "@stigmer/protos/ai/stigmer/agentic/session/v1/workspace_pb";
19
20
  import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
20
21
  import { ApiResourceIdSchema, ApiResourceReferenceSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
21
22
  import { ApiResourceMetadataSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/metadata_pb";
@@ -173,6 +174,14 @@ export class AgentExecutionClient {
173
174
 
174
175
  /** Input for creating/updating a AgentExecution. */
175
176
  export interface AgentExecutionInput {
177
+ /**
178
+ * The resource's `metadata.id`, for exact update addressing when set
179
+ * from a loaded resource. Required for updates to platform-scoped
180
+ * (org-less) kinds, where the org+slug fallback cannot match. On
181
+ * create, the cloud server stamps its own id regardless; the OSS
182
+ * server honors a caller-supplied id (existing apply semantics).
183
+ */
184
+ id?: string;
176
185
  name: string;
177
186
  slug?: string;
178
187
  org: string;
@@ -192,6 +201,7 @@ export interface AgentExecutionInput {
192
201
  activityTaskQueue?: string;
193
202
  supersedesExecutionId?: string;
194
203
  conversationCatchup?: ConversationCatchupInput;
204
+ declaredPreferences?: DeclaredPreferencesInput;
195
205
  }
196
206
 
197
207
  /** SDK input type for SessionSpec. */
@@ -261,6 +271,7 @@ export interface ExecutionConfigInput {
261
271
  buildFromPlan?: boolean;
262
272
  approvalMode?: ApprovalMode;
263
273
  serviceTier?: ServiceTier;
274
+ thinkingMode?: ThinkingMode;
264
275
  }
265
276
 
266
277
  /** SDK input type for ContextManagementConfig. */
@@ -286,6 +297,12 @@ export interface ConversationCatchupInput {
286
297
  windowEnd?: Date | string;
287
298
  }
288
299
 
300
+ /** SDK input type for DeclaredPreferences. */
301
+ export interface DeclaredPreferencesInput {
302
+ orgContext?: string;
303
+ userContext?: string;
304
+ }
305
+
289
306
  function buildGitRepoSourceProto(input: GitRepoSourceInput) {
290
307
  return Object.assign(create(GitRepoSourceSchema), stripUndefined({
291
308
  url: input.url,
@@ -371,6 +388,7 @@ function buildExecutionConfigProto(input: ExecutionConfigInput) {
371
388
  if (input.buildFromPlan !== undefined) msg.buildFromPlan = input.buildFromPlan;
372
389
  if (input.approvalMode !== undefined) msg.approvalMode = input.approvalMode;
373
390
  if (input.serviceTier !== undefined) msg.serviceTier = input.serviceTier;
391
+ if (input.thinkingMode !== undefined) msg.thinkingMode = input.thinkingMode;
374
392
  return msg;
375
393
  }
376
394
 
@@ -392,6 +410,13 @@ function buildConversationCatchupProto(input: ConversationCatchupInput) {
392
410
  return msg;
393
411
  }
394
412
 
413
+ function buildDeclaredPreferencesProto(input: DeclaredPreferencesInput) {
414
+ return Object.assign(create(DeclaredPreferencesSchema), stripUndefined({
415
+ orgContext: input.orgContext,
416
+ userContext: input.userContext,
417
+ }));
418
+ }
419
+
395
420
  export function buildAgentExecutionProto(input: AgentExecutionInput): AgentExecution {
396
421
  const sessionSpec = input.sessionSpec ? buildSessionSpecProto(input.sessionSpec) : undefined;
397
422
  const executionConfig = input.executionConfig ? buildExecutionConfigProto(input.executionConfig) : undefined;
@@ -402,10 +427,12 @@ export function buildAgentExecutionProto(input: AgentExecutionInput): AgentExecu
402
427
  }
403
428
  const attachments = input.attachments?.map(buildAttachmentProto);
404
429
  const conversationCatchup = input.conversationCatchup ? buildConversationCatchupProto(input.conversationCatchup) : undefined;
430
+ const declaredPreferences = input.declaredPreferences ? buildDeclaredPreferencesProto(input.declaredPreferences) : undefined;
405
431
  return Object.assign(create(AgentExecutionSchema), {
406
432
  apiVersion: "agentic.stigmer.ai/v1",
407
433
  kind: "AgentExecution",
408
434
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
435
+ ...(input.id && { id: input.id }),
409
436
  name: input.name,
410
437
  org: input.org,
411
438
  ...(input.slug && { slug: input.slug }),
@@ -427,6 +454,161 @@ export function buildAgentExecutionProto(input: AgentExecutionInput): AgentExecu
427
454
  activityTaskQueue: input.activityTaskQueue,
428
455
  supersedesExecutionId: input.supersedesExecutionId,
429
456
  conversationCatchup,
457
+ declaredPreferences,
430
458
  })),
431
459
  }) as AgentExecution;
432
460
  }
461
+
462
+ function toGitRepoSourceInput(msg: GitRepoSource): GitRepoSourceInput {
463
+ return {
464
+ url: msg.url ?? "",
465
+ branch: msg.branch || undefined,
466
+ commit: msg.commit || undefined,
467
+ depth: msg.depth || undefined,
468
+ writeBackMode: msg.writeBackMode || undefined,
469
+ };
470
+ }
471
+
472
+ function toLocalPathSourceInput(msg: LocalPathSource): LocalPathSourceInput {
473
+ return {
474
+ path: msg.path || undefined,
475
+ };
476
+ }
477
+
478
+ function toWorkspaceSourceInput(msg: WorkspaceSource): WorkspaceSourceInput {
479
+ return {
480
+ gitRepo: msg.source?.case === "gitRepo" ? toGitRepoSourceInput(msg.source.value) : undefined,
481
+ localPath: msg.source?.case === "localPath" ? toLocalPathSourceInput(msg.source.value) : undefined,
482
+ };
483
+ }
484
+
485
+ function toWorkspaceEntryInput(msg: WorkspaceEntry): WorkspaceEntryInput {
486
+ return {
487
+ name: msg.name || undefined,
488
+ source: toWorkspaceSourceInput(msg.source ?? create(WorkspaceSourceSchema)),
489
+ };
490
+ }
491
+
492
+ function toToolApprovalOverrideInput(msg: ToolApprovalOverride): ToolApprovalOverrideInput {
493
+ return {
494
+ toolName: msg.toolName || undefined,
495
+ requiresApproval: msg.requiresApproval || undefined,
496
+ message: msg.message || undefined,
497
+ };
498
+ }
499
+
500
+ function toMcpServerUsageInput(msg: McpServerUsage): McpServerUsageInput {
501
+ return {
502
+ mcpServerRef: toResourceRefInput(msg.mcpServerRef) ?? { org: "", slug: "" },
503
+ enabledTools: msg.enabledTools?.length ? [...msg.enabledTools] : undefined,
504
+ toolApprovalOverrides: msg.toolApprovalOverrides?.length ? msg.toolApprovalOverrides.map(toToolApprovalOverrideInput) : undefined,
505
+ };
506
+ }
507
+
508
+ function toSessionSpecInput(msg: SessionSpec): SessionSpecInput {
509
+ return {
510
+ agentInstanceId: msg.agentInstanceId || undefined,
511
+ subject: msg.subject || undefined,
512
+ harnessStateId: msg.harnessStateId || undefined,
513
+ harnessStateIdHistory: msg.harnessStateIdHistory?.length ? [...msg.harnessStateIdHistory] : undefined,
514
+ metadata: Object.keys(msg.metadata ?? {}).length > 0 ? { ...msg.metadata } : undefined,
515
+ workspaceEntries: msg.workspaceEntries?.length ? msg.workspaceEntries.map(toWorkspaceEntryInput) : undefined,
516
+ mcpServerUsages: msg.mcpServerUsages?.length ? msg.mcpServerUsages.map(toMcpServerUsageInput) : undefined,
517
+ skillRefs: toResourceRefInputs(msg.skillRefs),
518
+ harness: msg.harness || undefined,
519
+ cursorMode: msg.cursorMode || undefined,
520
+ executionTarget: msg.executionTarget || undefined,
521
+ };
522
+ }
523
+
524
+ function toContextManagementConfigInput(msg: ContextManagementConfig): ContextManagementConfigInput {
525
+ return {
526
+ disableSummarization: msg.disableSummarization || undefined,
527
+ customTriggerThreshold: msg.customTriggerThreshold || undefined,
528
+ customTargetTokens: msg.customTargetTokens || undefined,
529
+ };
530
+ }
531
+
532
+ function toExecutionConfigInput(msg: ExecutionConfig): ExecutionConfigInput {
533
+ return {
534
+ modelName: msg.modelName || undefined,
535
+ contextManagement: msg.contextManagement ? toContextManagementConfigInput(msg.contextManagement) : undefined,
536
+ maxToolRounds: msg.maxToolRounds || undefined,
537
+ maxToolResultChars: msg.maxToolResultChars || undefined,
538
+ maxCostUsd: msg.maxCostUsd || undefined,
539
+ interactionMode: msg.interactionMode || undefined,
540
+ structuredOutputSchema: msg.structuredOutputSchema,
541
+ buildFromPlan: msg.buildFromPlan || undefined,
542
+ approvalMode: msg.approvalMode || undefined,
543
+ serviceTier: msg.serviceTier || undefined,
544
+ thinkingMode: msg.thinkingMode || undefined,
545
+ };
546
+ }
547
+
548
+ function toAttachmentInput(msg: Attachment): AttachmentInput {
549
+ return {
550
+ filename: msg.filename || undefined,
551
+ storageKey: msg.storageKey || undefined,
552
+ mountPath: msg.mountPath || undefined,
553
+ contentType: msg.contentType || undefined,
554
+ extract: msg.extract || undefined,
555
+ localPath: msg.localPath || undefined,
556
+ };
557
+ }
558
+
559
+ function toConversationCatchupInput(msg: ConversationCatchup): ConversationCatchupInput {
560
+ return {
561
+ digest: msg.digest || undefined,
562
+ windowEnd: msg.windowEnd ? timestampDate(msg.windowEnd) : undefined,
563
+ };
564
+ }
565
+
566
+ function toDeclaredPreferencesInput(msg: DeclaredPreferences): DeclaredPreferencesInput {
567
+ return {
568
+ orgContext: msg.orgContext || undefined,
569
+ userContext: msg.userContext || undefined,
570
+ };
571
+ }
572
+
573
+ /**
574
+ * Maps a fetched {@link AgentExecution} to a complete {@link AgentExecutionInput} for `update()`.
575
+ *
576
+ * The update RPC replaces the ENTIRE spec — spread this mapper's output
577
+ * and override only the fields you edit (spread nested objects the same
578
+ * way):
579
+ *
580
+ * await client.update({ ...toAgentExecutionUpdateInput(res), description: next });
581
+ *
582
+ * Proto3 defaults normalize to `undefined`; resource references keep
583
+ * `version` (pinned refs) and `kind`.
584
+ */
585
+ export function toAgentExecutionUpdateInput(resource: AgentExecution): AgentExecutionInput {
586
+ const meta = resource.metadata;
587
+ const spec = resource.spec ?? create(AgentExecutionSpecSchema);
588
+ return {
589
+ // Exact update addressing (id-first in the update pipeline) — for
590
+ // platform-scoped (org-less) kinds the org+slug fallback cannot
591
+ // match, so the id is the ONLY working address.
592
+ id: meta?.id || undefined,
593
+ name: meta?.name ?? "",
594
+ slug: meta?.slug || undefined,
595
+ org: meta?.org ?? "",
596
+ labels: meta?.labels && Object.keys(meta.labels).length > 0 ? { ...meta.labels } : undefined,
597
+ visibility: meta?.visibility || undefined,
598
+ sessionId: spec.sessionId || undefined,
599
+ agentId: spec.agentId || undefined,
600
+ sessionSpec: spec.sessionSpec ? toSessionSpecInput(spec.sessionSpec) : undefined,
601
+ message: spec.message || undefined,
602
+ executionConfig: spec.executionConfig ? toExecutionConfigInput(spec.executionConfig) : undefined,
603
+ runtimeEnv: toExecVarInputMap(spec.runtimeEnv),
604
+ callbackToken: spec.callbackToken?.length ? spec.callbackToken : undefined,
605
+ autoApproveAll: spec.autoApproveAll || undefined,
606
+ parentWorkflowId: spec.parentWorkflowId || undefined,
607
+ attachments: spec.attachments?.length ? spec.attachments.map(toAttachmentInput) : undefined,
608
+ workspaceFileRefs: spec.workspaceFileRefs?.length ? [...spec.workspaceFileRefs] : undefined,
609
+ activityTaskQueue: spec.activityTaskQueue || undefined,
610
+ supersedesExecutionId: spec.supersedesExecutionId || undefined,
611
+ conversationCatchup: spec.conversationCatchup ? toConversationCatchupInput(spec.conversationCatchup) : undefined,
612
+ declaredPreferences: spec.declaredPreferences ? toDeclaredPreferencesInput(spec.declaredPreferences) : undefined,
613
+ };
614
+ }
@@ -1,7 +1,7 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
3
  import { wrapError } from "./errors.js";
4
- import { stripUndefined } from "./proto-utils.js";
4
+ import { stripUndefined, toResourceRefInputs } from "./proto-utils.js";
5
5
  import { type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
@@ -82,6 +82,14 @@ export class AgentInstanceClient {
82
82
 
83
83
  /** Input for creating/updating a AgentInstance. */
84
84
  export interface AgentInstanceInput {
85
+ /**
86
+ * The resource's `metadata.id`, for exact update addressing when set
87
+ * from a loaded resource. Required for updates to platform-scoped
88
+ * (org-less) kinds, where the org+slug fallback cannot match. On
89
+ * create, the cloud server stamps its own id regardless; the OSS
90
+ * server honors a caller-supplied id (existing apply semantics).
91
+ */
92
+ id?: string;
85
93
  name: string;
86
94
  slug?: string;
87
95
  org: string;
@@ -98,6 +106,7 @@ export function buildAgentInstanceProto(input: AgentInstanceInput): AgentInstanc
98
106
  apiVersion: "agentic.stigmer.ai/v1",
99
107
  kind: "AgentInstance",
100
108
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
109
+ ...(input.id && { id: input.id }),
101
110
  name: input.name,
102
111
  org: input.org,
103
112
  ...(input.slug && { slug: input.slug }),
@@ -111,3 +120,34 @@ export function buildAgentInstanceProto(input: AgentInstanceInput): AgentInstanc
111
120
  })),
112
121
  }) as AgentInstance;
113
122
  }
123
+
124
+ /**
125
+ * Maps a fetched {@link AgentInstance} to a complete {@link AgentInstanceInput} for `update()`.
126
+ *
127
+ * The update RPC replaces the ENTIRE spec — spread this mapper's output
128
+ * and override only the fields you edit (spread nested objects the same
129
+ * way):
130
+ *
131
+ * await client.update({ ...toAgentInstanceUpdateInput(res), description: next });
132
+ *
133
+ * Proto3 defaults normalize to `undefined`; resource references keep
134
+ * `version` (pinned refs) and `kind`.
135
+ */
136
+ export function toAgentInstanceUpdateInput(resource: AgentInstance): AgentInstanceInput {
137
+ const meta = resource.metadata;
138
+ const spec = resource.spec ?? create(AgentInstanceSpecSchema);
139
+ return {
140
+ // Exact update addressing (id-first in the update pipeline) — for
141
+ // platform-scoped (org-less) kinds the org+slug fallback cannot
142
+ // match, so the id is the ONLY working address.
143
+ id: meta?.id || undefined,
144
+ name: meta?.name ?? "",
145
+ slug: meta?.slug || undefined,
146
+ org: meta?.org ?? "",
147
+ labels: meta?.labels && Object.keys(meta.labels).length > 0 ? { ...meta.labels } : undefined,
148
+ visibility: meta?.visibility || undefined,
149
+ agentId: spec.agentId || undefined,
150
+ description: spec.description || undefined,
151
+ environmentRefs: toResourceRefInputs(spec.environmentRefs),
152
+ };
153
+ }
@@ -1,17 +1,17 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
3
  import { wrapError } from "./errors.js";
4
- import { stripUndefined } from "./proto-utils.js";
4
+ import { stripUndefined, toResourceRefInput, toResourceRefInputs } from "./proto-utils.js";
5
5
  import { type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
- import { ServiceTier } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
9
- import { RunConfigSchema } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/invocation_pb";
8
+ import { ServiceTier, ThinkingMode } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
9
+ import { RunConfigSchema, type RunConfig } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/invocation_pb";
10
10
  import { AgentShareSchema, type AgentShare } from "@stigmer/protos/ai/stigmer/agentic/agentshare/v1/api_pb";
11
11
  import { AgentShareCommandController } from "@stigmer/protos/ai/stigmer/agentic/agentshare/v1/command_pb";
12
12
  import { AgentShareIdSchema, RotateShareLinkInputSchema, GetAgentSharesByAgentRequestSchema, AgentShareListSchema, ListAgentSharesRequestSchema, GetSharedProfileRequestSchema, SharedAgentProfileSchema, type RotateShareLinkInput, type GetAgentSharesByAgentRequest, type AgentShareList, type ListAgentSharesRequest, type GetSharedProfileRequest, type SharedAgentProfile } from "@stigmer/protos/ai/stigmer/agentic/agentshare/v1/io_pb";
13
13
  import { AgentShareQueryController } from "@stigmer/protos/ai/stigmer/agentic/agentshare/v1/query_pb";
14
- import { AgentShareSpecSchema, AgentShareAudience, AgentShareMessagesSchema } from "@stigmer/protos/ai/stigmer/agentic/agentshare/v1/spec_pb";
14
+ import { AgentShareSpecSchema, AgentShareAudience, AgentShareMessagesSchema, type AgentShareMessages } from "@stigmer/protos/ai/stigmer/agentic/agentshare/v1/spec_pb";
15
15
  import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
16
16
  import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
17
17
  import { ApiResourceReferenceSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
@@ -96,6 +96,14 @@ export class AgentShareClient {
96
96
 
97
97
  /** Input for creating/updating a AgentShare. */
98
98
  export interface AgentShareInput {
99
+ /**
100
+ * The resource's `metadata.id`, for exact update addressing when set
101
+ * from a loaded resource. Required for updates to platform-scoped
102
+ * (org-less) kinds, where the org+slug fallback cannot match. On
103
+ * create, the cloud server stamps its own id regardless; the OSS
104
+ * server honors a caller-supplied id (existing apply semantics).
105
+ */
106
+ id?: string;
99
107
  name: string;
100
108
  slug?: string;
101
109
  org: string;
@@ -123,6 +131,7 @@ export interface RunConfigInput {
123
131
  maxCostUsd?: number;
124
132
  maxToolRounds?: number;
125
133
  serviceTier?: ServiceTier;
134
+ thinkingMode?: ThinkingMode;
126
135
  }
127
136
 
128
137
  function buildAgentShareMessagesProto(input: AgentShareMessagesInput) {
@@ -139,6 +148,7 @@ function buildRunConfigProto(input: RunConfigInput) {
139
148
  maxCostUsd: input.maxCostUsd,
140
149
  maxToolRounds: input.maxToolRounds,
141
150
  serviceTier: input.serviceTier,
151
+ thinkingMode: input.thinkingMode,
142
152
  }));
143
153
  }
144
154
 
@@ -151,6 +161,7 @@ export function buildAgentShareProto(input: AgentShareInput): AgentShare {
151
161
  apiVersion: "agentic.stigmer.ai/v1",
152
162
  kind: "AgentShare",
153
163
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
164
+ ...(input.id && { id: input.id }),
154
165
  name: input.name,
155
166
  org: input.org,
156
167
  ...(input.slug && { slug: input.slug }),
@@ -168,3 +179,56 @@ export function buildAgentShareProto(input: AgentShareInput): AgentShare {
168
179
  })),
169
180
  }) as AgentShare;
170
181
  }
182
+
183
+ function toAgentShareMessagesInput(msg: AgentShareMessages): AgentShareMessagesInput {
184
+ return {
185
+ rateLimited: msg.rateLimited || undefined,
186
+ unavailable: msg.unavailable || undefined,
187
+ conversationEnded: msg.conversationEnded || undefined,
188
+ };
189
+ }
190
+
191
+ function toRunConfigInput(msg: RunConfig): RunConfigInput {
192
+ return {
193
+ modelName: msg.modelName || undefined,
194
+ maxCostUsd: msg.maxCostUsd || undefined,
195
+ maxToolRounds: msg.maxToolRounds || undefined,
196
+ serviceTier: msg.serviceTier || undefined,
197
+ thinkingMode: msg.thinkingMode || undefined,
198
+ };
199
+ }
200
+
201
+ /**
202
+ * Maps a fetched {@link AgentShare} to a complete {@link AgentShareInput} for `update()`.
203
+ *
204
+ * The update RPC replaces the ENTIRE spec — spread this mapper's output
205
+ * and override only the fields you edit (spread nested objects the same
206
+ * way):
207
+ *
208
+ * await client.update({ ...toAgentShareUpdateInput(res), description: next });
209
+ *
210
+ * Proto3 defaults normalize to `undefined`; resource references keep
211
+ * `version` (pinned refs) and `kind`.
212
+ */
213
+ export function toAgentShareUpdateInput(resource: AgentShare): AgentShareInput {
214
+ const meta = resource.metadata;
215
+ const spec = resource.spec ?? create(AgentShareSpecSchema);
216
+ return {
217
+ // Exact update addressing (id-first in the update pipeline) — for
218
+ // platform-scoped (org-less) kinds the org+slug fallback cannot
219
+ // match, so the id is the ONLY working address.
220
+ id: meta?.id || undefined,
221
+ name: meta?.name ?? "",
222
+ slug: meta?.slug || undefined,
223
+ org: meta?.org ?? "",
224
+ labels: meta?.labels && Object.keys(meta.labels).length > 0 ? { ...meta.labels } : undefined,
225
+ visibility: meta?.visibility || undefined,
226
+ agentRef: toResourceRefInput(spec.agentRef) ?? { org: "", slug: "" },
227
+ enabled: spec.enabled || undefined,
228
+ audience: spec.audience || undefined,
229
+ allowedOrigins: spec.allowedOrigins?.length ? [...spec.allowedOrigins] : undefined,
230
+ messages: spec.messages ? toAgentShareMessagesInput(spec.messages) : undefined,
231
+ environmentRefs: toResourceRefInputs(spec.environmentRefs),
232
+ runConfig: spec.runConfig ? toRunConfigInput(spec.runConfig) : undefined,
233
+ };
234
+ }
package/src/gen/apikey.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  import { wrapError } from "./errors.js";
4
4
  import { stripUndefined, toTimestamp } from "./proto-utils.js";
5
5
  import { create } from "@bufbuild/protobuf";
6
- import { EmptySchema } from "@bufbuild/protobuf/wkt";
6
+ import { EmptySchema, timestampDate } from "@bufbuild/protobuf/wkt";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
9
9
  import { ApiResourceMetadataSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/metadata_pb";
@@ -62,6 +62,14 @@ export class ApiKeyClient {
62
62
 
63
63
  /** Input for creating/updating a ApiKey. */
64
64
  export interface ApiKeyInput {
65
+ /**
66
+ * The resource's `metadata.id`, for exact update addressing when set
67
+ * from a loaded resource. Required for updates to platform-scoped
68
+ * (org-less) kinds, where the org+slug fallback cannot match. On
69
+ * create, the cloud server stamps its own id regardless; the OSS
70
+ * server honors a caller-supplied id (existing apply semantics).
71
+ */
72
+ id?: string;
65
73
  name: string;
66
74
  slug?: string;
67
75
  org: string;
@@ -79,6 +87,7 @@ export function buildApiKeyProto(input: ApiKeyInput): ApiKey {
79
87
  apiVersion: "iam.stigmer.ai/v1",
80
88
  kind: "ApiKey",
81
89
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
90
+ ...(input.id && { id: input.id }),
82
91
  name: input.name,
83
92
  org: input.org,
84
93
  ...(input.slug && { slug: input.slug }),
@@ -93,3 +102,35 @@ export function buildApiKeyProto(input: ApiKeyInput): ApiKey {
93
102
  })),
94
103
  }) as ApiKey;
95
104
  }
105
+
106
+ /**
107
+ * Maps a fetched {@link ApiKey} to a complete {@link ApiKeyInput} for `update()`.
108
+ *
109
+ * The update RPC replaces the ENTIRE spec — spread this mapper's output
110
+ * and override only the fields you edit (spread nested objects the same
111
+ * way):
112
+ *
113
+ * await client.update({ ...toApiKeyUpdateInput(res), description: next });
114
+ *
115
+ * Proto3 defaults normalize to `undefined`; resource references keep
116
+ * `version` (pinned refs) and `kind`.
117
+ */
118
+ export function toApiKeyUpdateInput(resource: ApiKey): ApiKeyInput {
119
+ const meta = resource.metadata;
120
+ const spec = resource.spec ?? create(ApiKeySpecSchema);
121
+ return {
122
+ // Exact update addressing (id-first in the update pipeline) — for
123
+ // platform-scoped (org-less) kinds the org+slug fallback cannot
124
+ // match, so the id is the ONLY working address.
125
+ id: meta?.id || undefined,
126
+ name: meta?.name ?? "",
127
+ slug: meta?.slug || undefined,
128
+ org: meta?.org ?? "",
129
+ labels: meta?.labels && Object.keys(meta.labels).length > 0 ? { ...meta.labels } : undefined,
130
+ visibility: meta?.visibility || undefined,
131
+ keyHash: spec.keyHash || undefined,
132
+ fingerprint: spec.fingerprint || undefined,
133
+ expiresAt: spec.expiresAt ? timestampDate(spec.expiresAt) : undefined,
134
+ neverExpires: spec.neverExpires || undefined,
135
+ };
136
+ }
@@ -62,6 +62,14 @@ export class ArtifactClient {
62
62
 
63
63
  /** Input for creating/updating a Artifact. */
64
64
  export interface ArtifactInput {
65
+ /**
66
+ * The resource's `metadata.id`, for exact update addressing when set
67
+ * from a loaded resource. Required for updates to platform-scoped
68
+ * (org-less) kinds, where the org+slug fallback cannot match. On
69
+ * create, the cloud server stamps its own id regardless; the OSS
70
+ * server honors a caller-supplied id (existing apply semantics).
71
+ */
72
+ id?: string;
65
73
  name: string;
66
74
  slug?: string;
67
75
  org: string;
@@ -106,6 +114,7 @@ export function buildArtifactProto(input: ArtifactInput): Artifact {
106
114
  apiVersion: "agentic.stigmer.ai/v1",
107
115
  kind: "Artifact",
108
116
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
117
+ ...(input.id && { id: input.id }),
109
118
  name: input.name,
110
119
  org: input.org,
111
120
  ...(input.slug && { slug: input.slug }),
@@ -9,7 +9,7 @@ import { ChannelAppSchema, type ChannelApp } from "@stigmer/protos/ai/stigmer/ag
9
9
  import { ChannelAppCommandController } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/command_pb";
10
10
  import { ListChannelAppsByOrgInputSchema, ChannelAppsSchema, type ListChannelAppsByOrgInput, type ChannelApps } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/io_pb";
11
11
  import { ChannelAppQueryController } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/query_pb";
12
- import { ChannelAppSpecSchema, SlackChannelAppConfigSchema, WhatsAppChannelAppConfigSchema } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/spec_pb";
12
+ import { ChannelAppSpecSchema, SlackChannelAppConfigSchema, WhatsAppChannelAppConfigSchema, type SlackChannelAppConfig, type WhatsAppChannelAppConfig } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/spec_pb";
13
13
  import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
14
14
  import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
15
15
  import { ApiResourceIdSchema, ApiResourceReferenceSchema, ApiResourceDeleteInputSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
@@ -74,6 +74,14 @@ export class ChannelAppClient {
74
74
 
75
75
  /** Input for creating/updating a ChannelApp. */
76
76
  export interface ChannelAppInput {
77
+ /**
78
+ * The resource's `metadata.id`, for exact update addressing when set
79
+ * from a loaded resource. Required for updates to platform-scoped
80
+ * (org-less) kinds, where the org+slug fallback cannot match. On
81
+ * create, the cloud server stamps its own id regardless; the OSS
82
+ * server honors a caller-supplied id (existing apply semantics).
83
+ */
84
+ id?: string;
77
85
  name: string;
78
86
  slug?: string;
79
87
  org: string;
@@ -127,6 +135,7 @@ export function buildChannelAppProto(input: ChannelAppInput): ChannelApp {
127
135
  apiVersion: "agentic.stigmer.ai/v1",
128
136
  kind: "ChannelApp",
129
137
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
138
+ ...(input.id && { id: input.id }),
130
139
  name: input.name,
131
140
  org: input.org,
132
141
  ...(input.slug && { slug: input.slug }),
@@ -136,3 +145,50 @@ export function buildChannelAppProto(input: ChannelAppInput): ChannelApp {
136
145
  spec,
137
146
  }) as ChannelApp;
138
147
  }
148
+
149
+ function toSlackChannelAppConfigInput(msg: SlackChannelAppConfig): SlackChannelAppConfigInput {
150
+ return {
151
+ clientId: msg.clientId || undefined,
152
+ clientSecret: msg.clientSecret || undefined,
153
+ signingSecret: msg.signingSecret || undefined,
154
+ };
155
+ }
156
+
157
+ function toWhatsAppChannelAppConfigInput(msg: WhatsAppChannelAppConfig): WhatsAppChannelAppConfigInput {
158
+ return {
159
+ appId: msg.appId || undefined,
160
+ appSecret: msg.appSecret || undefined,
161
+ accessToken: msg.accessToken || undefined,
162
+ verifyToken: msg.verifyToken || undefined,
163
+ };
164
+ }
165
+
166
+ /**
167
+ * Maps a fetched {@link ChannelApp} to a complete {@link ChannelAppInput} for `update()`.
168
+ *
169
+ * The update RPC replaces the ENTIRE spec — spread this mapper's output
170
+ * and override only the fields you edit (spread nested objects the same
171
+ * way):
172
+ *
173
+ * await client.update({ ...toChannelAppUpdateInput(res), description: next });
174
+ *
175
+ * Proto3 defaults normalize to `undefined`; resource references keep
176
+ * `version` (pinned refs) and `kind`.
177
+ */
178
+ export function toChannelAppUpdateInput(resource: ChannelApp): ChannelAppInput {
179
+ const meta = resource.metadata;
180
+ const spec = resource.spec ?? create(ChannelAppSpecSchema);
181
+ return {
182
+ // Exact update addressing (id-first in the update pipeline) — for
183
+ // platform-scoped (org-less) kinds the org+slug fallback cannot
184
+ // match, so the id is the ONLY working address.
185
+ id: meta?.id || undefined,
186
+ name: meta?.name ?? "",
187
+ slug: meta?.slug || undefined,
188
+ org: meta?.org ?? "",
189
+ labels: meta?.labels && Object.keys(meta.labels).length > 0 ? { ...meta.labels } : undefined,
190
+ visibility: meta?.visibility || undefined,
191
+ slack: spec.providerConfig?.case === "slack" ? toSlackChannelAppConfigInput(spec.providerConfig.value) : undefined,
192
+ whatsapp: spec.providerConfig?.case === "whatsapp" ? toWhatsAppChannelAppConfigInput(spec.providerConfig.value) : undefined,
193
+ };
194
+ }
package/src/gen/client.ts CHANGED
@@ -90,7 +90,7 @@ export { type AgentInput, type McpServerUsageInput, type ToolApprovalOverrideInp
90
90
  export { AgentChannelClient } from "./agentchannel.js";
91
91
  export { type AgentChannelInput, type SlackChannelConfigInput, type WhatsAppChannelConfigInput, type RunConfigInput } from "./agentchannel.js";
92
92
  export { AgentExecutionClient } from "./agentexecution.js";
93
- export { type AgentExecutionInput, type SessionSpecInput, type WorkspaceEntryInput, type WorkspaceSourceInput, type GitRepoSourceInput, type LocalPathSourceInput, type ExecutionConfigInput, type ContextManagementConfigInput, type AttachmentInput, type ConversationCatchupInput } from "./agentexecution.js";
93
+ export { type AgentExecutionInput, type SessionSpecInput, type WorkspaceEntryInput, type WorkspaceSourceInput, type GitRepoSourceInput, type LocalPathSourceInput, type ExecutionConfigInput, type ContextManagementConfigInput, type AttachmentInput, type ConversationCatchupInput, type DeclaredPreferencesInput } from "./agentexecution.js";
94
94
  export { AgentInstanceClient } from "./agentinstance.js";
95
95
  export { type AgentInstanceInput } from "./agentinstance.js";
96
96
  export { AgentShareClient } from "./agentshare.js";
@@ -108,7 +108,7 @@ export { type ExecutionContextInput } from "./executioncontext.js";
108
108
  export { IamPolicyClient } from "./iampolicy.js";
109
109
  export { type IamPolicyInput, type ApiResourceRefInput } from "./iampolicy.js";
110
110
  export { IdentityAccountClient } from "./identityaccount.js";
111
- export { type IdentityAccountInput } from "./identityaccount.js";
111
+ export { type IdentityAccountInput, type IdentityAccountPreferencesInput } from "./identityaccount.js";
112
112
  export { IdentityProviderClient } from "./identityprovider.js";
113
113
  export { type IdentityProviderInput } from "./identityprovider.js";
114
114
  export { InvitationClient } from "./invitation.js";
@@ -118,7 +118,7 @@ export { type McpServerInput, type StdioServerConfigInput, type HttpServerConfig
118
118
  export { OAuthAppClient } from "./oauthapp.js";
119
119
  export { type OAuthAppInput } from "./oauthapp.js";
120
120
  export { OrganizationClient } from "./organization.js";
121
- export { type OrganizationInput } from "./organization.js";
121
+ export { type OrganizationInput, type OrganizationPreferencesInput } from "./organization.js";
122
122
  export { PlatformClientClient } from "./platformclient.js";
123
123
  export { type PlatformClientInput } from "./platformclient.js";
124
124
  export { ProjectClient } from "./project.js";