@archastro/sdk 0.20.0 → 0.21.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.
Files changed (152) hide show
  1. package/dist/channels/api_artifact_channel.d.ts +48 -0
  2. package/dist/channels/api_artifact_channel.d.ts.map +1 -0
  3. package/dist/channels/api_artifact_channel.js +85 -0
  4. package/dist/channels/api_artifact_channel.js.map +1 -0
  5. package/dist/client.d.ts +6 -0
  6. package/dist/client.d.ts.map +1 -1
  7. package/dist/client.js +7 -1
  8. package/dist/client.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +2 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/types/ai.d.ts +124 -10
  14. package/dist/types/ai.d.ts.map +1 -1
  15. package/dist/types/ai.js +27 -7
  16. package/dist/types/ai.js.map +1 -1
  17. package/dist/types/artifacts.d.ts +351 -0
  18. package/dist/types/artifacts.d.ts.map +1 -1
  19. package/dist/types/artifacts.js +65 -1
  20. package/dist/types/artifacts.js.map +1 -1
  21. package/dist/types/automations.d.ts +22 -22
  22. package/dist/types/automations.d.ts.map +1 -1
  23. package/dist/types/automations.js +7 -7
  24. package/dist/types/automations.js.map +1 -1
  25. package/dist/types/chat.d.ts +388 -0
  26. package/dist/types/chat.d.ts.map +1 -1
  27. package/dist/types/common.d.ts +1132 -287
  28. package/dist/types/common.d.ts.map +1 -1
  29. package/dist/types/common.js +146 -28
  30. package/dist/types/common.js.map +1 -1
  31. package/dist/types/computers.d.ts +22 -0
  32. package/dist/types/computers.d.ts.map +1 -0
  33. package/dist/types/computers.js +12 -0
  34. package/dist/types/computers.js.map +1 -0
  35. package/dist/types/events.d.ts +34 -16
  36. package/dist/types/events.d.ts.map +1 -1
  37. package/dist/types/events.js +3 -1
  38. package/dist/types/events.js.map +1 -1
  39. package/dist/types/index.d.ts +2 -0
  40. package/dist/types/index.d.ts.map +1 -1
  41. package/dist/types/index.js +3 -1
  42. package/dist/types/index.js.map +1 -1
  43. package/dist/types/relays.d.ts +22 -0
  44. package/dist/types/relays.d.ts.map +1 -0
  45. package/dist/types/relays.js +12 -0
  46. package/dist/types/relays.js.map +1 -0
  47. package/dist/types/tasks.d.ts +598 -14
  48. package/dist/types/tasks.d.ts.map +1 -1
  49. package/dist/types/tasks.js +43 -11
  50. package/dist/types/tasks.js.map +1 -1
  51. package/dist/types/threads.d.ts +64 -0
  52. package/dist/types/threads.d.ts.map +1 -1
  53. package/dist/v1/resources/agent_computers.d.ts +33 -1
  54. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  55. package/dist/v1/resources/agent_computers.js +17 -1
  56. package/dist/v1/resources/agent_computers.js.map +1 -1
  57. package/dist/v1/resources/agent_requests.d.ts +54 -0
  58. package/dist/v1/resources/agent_requests.d.ts.map +1 -0
  59. package/dist/v1/resources/agent_requests.js +71 -0
  60. package/dist/v1/resources/agent_requests.js.map +1 -0
  61. package/dist/v1/resources/agent_sessions.d.ts +23 -1
  62. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  63. package/dist/v1/resources/agent_sessions.js +26 -1
  64. package/dist/v1/resources/agent_sessions.js.map +1 -1
  65. package/dist/v1/resources/agents.d.ts +31 -1
  66. package/dist/v1/resources/agents.d.ts.map +1 -1
  67. package/dist/v1/resources/agents.js +12 -2
  68. package/dist/v1/resources/agents.js.map +1 -1
  69. package/dist/v1/resources/ai.d.ts +55 -4
  70. package/dist/v1/resources/ai.d.ts.map +1 -1
  71. package/dist/v1/resources/ai.js +44 -4
  72. package/dist/v1/resources/ai.js.map +1 -1
  73. package/dist/v1/resources/artifacts.d.ts +34 -2
  74. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  75. package/dist/v1/resources/artifacts.js +3 -2
  76. package/dist/v1/resources/artifacts.js.map +1 -1
  77. package/dist/v1/resources/custom_objects.d.ts +94 -0
  78. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  79. package/dist/v1/resources/custom_objects.js +60 -1
  80. package/dist/v1/resources/custom_objects.js.map +1 -1
  81. package/dist/v1/resources/event_subscriptions.d.ts +12 -0
  82. package/dist/v1/resources/event_subscriptions.d.ts.map +1 -1
  83. package/dist/v1/resources/event_subscriptions.js +7 -1
  84. package/dist/v1/resources/event_subscriptions.js.map +1 -1
  85. package/dist/v1/resources/files.d.ts +32 -10
  86. package/dist/v1/resources/files.d.ts.map +1 -1
  87. package/dist/v1/resources/files.js +32 -11
  88. package/dist/v1/resources/files.js.map +1 -1
  89. package/dist/v1/resources/index.d.ts +3 -0
  90. package/dist/v1/resources/index.d.ts.map +1 -1
  91. package/dist/v1/resources/index.js +4 -1
  92. package/dist/v1/resources/index.js.map +1 -1
  93. package/dist/v1/resources/knowledge_sources.d.ts +4 -0
  94. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
  95. package/dist/v1/resources/knowledge_sources.js +1 -1
  96. package/dist/v1/resources/kv.d.ts +75 -31
  97. package/dist/v1/resources/kv.d.ts.map +1 -1
  98. package/dist/v1/resources/kv.js +79 -32
  99. package/dist/v1/resources/kv.js.map +1 -1
  100. package/dist/v1/resources/notifications.d.ts +14 -0
  101. package/dist/v1/resources/notifications.d.ts.map +1 -1
  102. package/dist/v1/resources/notifications.js +13 -1
  103. package/dist/v1/resources/notifications.js.map +1 -1
  104. package/dist/v1/resources/oauth.d.ts +2 -0
  105. package/dist/v1/resources/oauth.d.ts.map +1 -1
  106. package/dist/v1/resources/oauth.js +2 -1
  107. package/dist/v1/resources/oauth.js.map +1 -1
  108. package/dist/v1/resources/orgs.d.ts +630 -1
  109. package/dist/v1/resources/orgs.d.ts.map +1 -1
  110. package/dist/v1/resources/orgs.js +351 -2
  111. package/dist/v1/resources/orgs.js.map +1 -1
  112. package/dist/v1/resources/private_service_enrollments.d.ts +7 -0
  113. package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -1
  114. package/dist/v1/resources/private_service_enrollments.js +10 -1
  115. package/dist/v1/resources/private_service_enrollments.js.map +1 -1
  116. package/dist/v1/resources/relays.d.ts +38 -0
  117. package/dist/v1/resources/relays.d.ts.map +1 -0
  118. package/dist/v1/resources/relays.js +44 -0
  119. package/dist/v1/resources/relays.js.map +1 -0
  120. package/dist/v1/resources/scripts.d.ts +20 -9
  121. package/dist/v1/resources/scripts.d.ts.map +1 -1
  122. package/dist/v1/resources/scripts.js +18 -10
  123. package/dist/v1/resources/scripts.js.map +1 -1
  124. package/dist/v1/resources/task_ownership_conversions.d.ts +14 -0
  125. package/dist/v1/resources/task_ownership_conversions.d.ts.map +1 -0
  126. package/dist/v1/resources/task_ownership_conversions.js +19 -0
  127. package/dist/v1/resources/task_ownership_conversions.js.map +1 -0
  128. package/dist/v1/resources/tasks.d.ts +62 -1
  129. package/dist/v1/resources/tasks.d.ts.map +1 -1
  130. package/dist/v1/resources/tasks.js +35 -1
  131. package/dist/v1/resources/tasks.js.map +1 -1
  132. package/dist/v1/resources/teams.d.ts +129 -1
  133. package/dist/v1/resources/teams.d.ts.map +1 -1
  134. package/dist/v1/resources/teams.js +71 -1
  135. package/dist/v1/resources/teams.js.map +1 -1
  136. package/dist/v1/resources/threads.d.ts +76 -0
  137. package/dist/v1/resources/threads.d.ts.map +1 -1
  138. package/dist/v1/resources/threads.js +42 -1
  139. package/dist/v1/resources/threads.js.map +1 -1
  140. package/dist/v1/resources/users.d.ts +129 -3
  141. package/dist/v1/resources/users.d.ts.map +1 -1
  142. package/dist/v1/resources/users.js +73 -3
  143. package/dist/v1/resources/users.js.map +1 -1
  144. package/dist/v1/resources/workflows.d.ts +5 -1
  145. package/dist/v1/resources/workflows.d.ts.map +1 -1
  146. package/dist/v1/resources/workflows.js +6 -2
  147. package/dist/v1/resources/workflows.js.map +1 -1
  148. package/dist/v1.d.ts +6 -0
  149. package/dist/v1.d.ts.map +1 -1
  150. package/dist/v1.js +10 -1
  151. package/dist/v1.js.map +1 -1
  152. package/package.json +1 -1
@@ -4,6 +4,22 @@ import type { Config } from "./config.js";
4
4
  import type { ImageSource } from "./image.js";
5
5
  import type { User } from "./users.js";
6
6
  import type { WorkflowJournal, WorkflowJournalEntry } from "./workflows.js";
7
+ /** The model declined to judge this question. */
8
+ export interface Refusal {
9
+ id: string;
10
+ type: "refusal";
11
+ }
12
+ /** Runtime validator for {@link Refusal}. */
13
+ export declare const refusalSchema: z.ZodObject<{
14
+ id: z.ZodString;
15
+ type: z.ZodLiteral<"refusal">;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: "refusal";
18
+ id: string;
19
+ }, {
20
+ type: "refusal";
21
+ id: string;
22
+ }>;
7
23
  /** A single access-control grant that pairs a principal with the set of actions it is allowed to perform. */
8
24
  export interface AclGrant {
9
25
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -4932,6 +4948,82 @@ export declare const installedConfigEntrySchema: z.ZodObject<{
4932
4948
  id: string;
4933
4949
  lookup_key?: string | null | undefined;
4934
4950
  }>;
4951
+ /** Approval policy, excluding user IDs. */
4952
+ export interface Approvers {
4953
+ mode: string;
4954
+ }
4955
+ /** Runtime validator for {@link Approvers}. */
4956
+ export declare const approversSchema: z.ZodObject<{
4957
+ mode: z.ZodString;
4958
+ }, "strip", z.ZodTypeAny, {
4959
+ mode: string;
4960
+ }, {
4961
+ mode: string;
4962
+ }>;
4963
+ /** Origin references. */
4964
+ export interface Origin {
4965
+ routine_id?: string | null | undefined;
4966
+ session_id?: string | null | undefined;
4967
+ thread_id?: string | null | undefined;
4968
+ }
4969
+ /** Runtime validator for {@link Origin}. */
4970
+ export declare const originSchema: z.ZodObject<{
4971
+ routine_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4972
+ session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4973
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4974
+ }, "strip", z.ZodTypeAny, {
4975
+ routine_id?: string | null | undefined;
4976
+ session_id?: string | null | undefined;
4977
+ thread_id?: string | null | undefined;
4978
+ }, {
4979
+ routine_id?: string | null | undefined;
4980
+ session_id?: string | null | undefined;
4981
+ thread_id?: string | null | undefined;
4982
+ }>;
4983
+ /** Question request payload. */
4984
+ export interface Payload {
4985
+ question: string;
4986
+ }
4987
+ /** Runtime validator for {@link Payload}. */
4988
+ export declare const payloadSchema: z.ZodObject<{
4989
+ question: z.ZodString;
4990
+ }, "strip", z.ZodTypeAny, {
4991
+ question: string;
4992
+ }, {
4993
+ question: string;
4994
+ }>;
4995
+ /** Answer or rejection reason; null before resolution. */
4996
+ export interface Resolution {
4997
+ answer?: string | undefined;
4998
+ reason?: string | undefined;
4999
+ }
5000
+ /** Runtime validator for {@link Resolution}. */
5001
+ export declare const resolutionSchema: z.ZodObject<{
5002
+ answer: z.ZodOptional<z.ZodString>;
5003
+ reason: z.ZodOptional<z.ZodString>;
5004
+ }, "strip", z.ZodTypeAny, {
5005
+ answer?: string | undefined;
5006
+ reason?: string | undefined;
5007
+ }, {
5008
+ answer?: string | undefined;
5009
+ reason?: string | undefined;
5010
+ }>;
5011
+ /** Kind-provided summary. */
5012
+ export interface Summary {
5013
+ lines: string[];
5014
+ title: string;
5015
+ }
5016
+ /** Runtime validator for {@link Summary}. */
5017
+ export declare const summarySchema: z.ZodObject<{
5018
+ lines: z.ZodArray<z.ZodString, "many">;
5019
+ title: z.ZodString;
5020
+ }, "strip", z.ZodTypeAny, {
5021
+ title: string;
5022
+ lines: string[];
5023
+ }, {
5024
+ title: string;
5025
+ lines: string[];
5026
+ }>;
4935
5027
  /** Controls visibility and canonical recipient selection for routine-emitted messages. */
4936
5028
  export interface MessagePolicy {
4937
5029
  /** Required and non-empty for private visibility. Sources are additive. Routine owner includes the agent owner and optional user co-owner. */
@@ -5059,20 +5151,24 @@ export declare const setupSchema: z.ZodObject<{
5059
5151
  /** Reason for the current MCP setup state. */
5060
5152
  reason: z.ZodString;
5061
5153
  }, "strip", z.ZodTypeAny, {
5154
+ reason: string;
5062
5155
  next_action: string;
5063
5156
  protocol_status: "not_checked";
5064
- reason: string;
5065
5157
  }, {
5158
+ reason: string;
5066
5159
  next_action: string;
5067
5160
  protocol_status: "not_checked";
5068
- reason: string;
5069
5161
  }>;
5070
5162
  /** A processed variant of a media item, such as the original upload or a resized thumbnail, including a signed download URL resolved at request time. */
5071
5163
  export interface MediaVariant {
5164
+ /** Size of the stored bytes. */
5165
+ byte_size?: number | null | undefined;
5072
5166
  /** MIME type of this variant's file (e.g., `"image/jpeg"`, `"video/mp4"`). `null` if the file is not loaded. */
5073
5167
  content_type?: string | null | undefined;
5074
5168
  /** When this variant was created (ISO 8601). */
5075
5169
  created_at?: string | undefined;
5170
+ /** Client-declared video duration in milliseconds; not server-probed. */
5171
+ duration_ms?: number | null | undefined;
5076
5172
  /** ID of the underlying storage file that backs this variant (`fil_...`). */
5077
5173
  file?: string | undefined;
5078
5174
  /** Original filename of the uploaded file for this variant. `null` if the file is not loaded. */
@@ -5083,10 +5179,14 @@ export interface MediaVariant {
5083
5179
  id: string;
5084
5180
  /** Resolved image delivery metadata for this variant, including dimensions and CDN URL. `null` for non-image content types. */
5085
5181
  image_source?: ImageSource | null | undefined;
5182
+ /** Lowercase SHA-256 of the stored bytes. */
5183
+ sha256?: string | null | undefined;
5086
5184
  /** When this variant was last updated (ISO 8601). */
5087
5185
  updated_at?: string | undefined;
5088
5186
  /** Signed download URL for this variant, resolved at request time. `null` if the file is unavailable. */
5089
5187
  url?: string | null | undefined;
5188
+ /** Expiry of this variant's playable URL. */
5189
+ url_expires_at?: string | null | undefined;
5090
5190
  /** Identifier for this variant's processing tier. Common values include `"original"` (the unmodified upload) and `"thumbnail"` (a resized preview). */
5091
5191
  variant_key?: string | undefined;
5092
5192
  /** Width of this variant in pixels. `null` if not recorded. */
@@ -5094,10 +5194,14 @@ export interface MediaVariant {
5094
5194
  }
5095
5195
  /** Runtime validator for {@link MediaVariant}. */
5096
5196
  export declare const mediaVariantSchema: z.ZodObject<{
5197
+ /** Size of the stored bytes. */
5198
+ byte_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5097
5199
  /** MIME type of this variant's file (e.g., `"image/jpeg"`, `"video/mp4"`). `null` if the file is not loaded. */
5098
5200
  content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5099
5201
  /** When this variant was created (ISO 8601). */
5100
5202
  created_at: z.ZodOptional<z.ZodString>;
5203
+ /** Client-declared video duration in milliseconds; not server-probed. */
5204
+ duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5101
5205
  /** ID of the underlying storage file that backs this variant (`fil_...`). */
5102
5206
  file: z.ZodOptional<z.ZodString>;
5103
5207
  /** Original filename of the uploaded file for this variant. `null` if the file is not loaded. */
@@ -5132,10 +5236,14 @@ export declare const mediaVariantSchema: z.ZodObject<{
5132
5236
  url?: string | null | undefined;
5133
5237
  width?: number | null | undefined;
5134
5238
  }>>>;
5239
+ /** Lowercase SHA-256 of the stored bytes. */
5240
+ sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5135
5241
  /** When this variant was last updated (ISO 8601). */
5136
5242
  updated_at: z.ZodOptional<z.ZodString>;
5137
5243
  /** Signed download URL for this variant, resolved at request time. `null` if the file is unavailable. */
5138
5244
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5245
+ /** Expiry of this variant's playable URL. */
5246
+ url_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5139
5247
  /** Identifier for this variant's processing tier. Common values include `"original"` (the unmodified upload) and `"thumbnail"` (a resized preview). */
5140
5248
  variant_key: z.ZodOptional<z.ZodString>;
5141
5249
  /** Width of this variant in pixels. `null` if not recorded. */
@@ -5148,7 +5256,9 @@ export declare const mediaVariantSchema: z.ZodObject<{
5148
5256
  height?: number | null | undefined;
5149
5257
  url?: string | null | undefined;
5150
5258
  width?: number | null | undefined;
5259
+ byte_size?: number | null | undefined;
5151
5260
  content_type?: string | null | undefined;
5261
+ duration_ms?: number | null | undefined;
5152
5262
  filename?: string | null | undefined;
5153
5263
  image_source?: {
5154
5264
  mime_type?: string | null | undefined;
@@ -5159,6 +5269,8 @@ export declare const mediaVariantSchema: z.ZodObject<{
5159
5269
  url?: string | null | undefined;
5160
5270
  width?: number | null | undefined;
5161
5271
  } | null | undefined;
5272
+ sha256?: string | null | undefined;
5273
+ url_expires_at?: string | null | undefined;
5162
5274
  variant_key?: string | undefined;
5163
5275
  }, {
5164
5276
  id: string;
@@ -5168,7 +5280,9 @@ export declare const mediaVariantSchema: z.ZodObject<{
5168
5280
  height?: number | null | undefined;
5169
5281
  url?: string | null | undefined;
5170
5282
  width?: number | null | undefined;
5283
+ byte_size?: number | null | undefined;
5171
5284
  content_type?: string | null | undefined;
5285
+ duration_ms?: number | null | undefined;
5172
5286
  filename?: string | null | undefined;
5173
5287
  image_source?: {
5174
5288
  mime_type?: string | null | undefined;
@@ -5179,6 +5293,8 @@ export declare const mediaVariantSchema: z.ZodObject<{
5179
5293
  url?: string | null | undefined;
5180
5294
  width?: number | null | undefined;
5181
5295
  } | null | undefined;
5296
+ sha256?: string | null | undefined;
5297
+ url_expires_at?: string | null | undefined;
5182
5298
  variant_key?: string | undefined;
5183
5299
  }>;
5184
5300
  /** A rich attachment associated with a message, such as a file, scraped link, artifact, task, media item, or inline action. */
@@ -5282,10 +5398,14 @@ export declare const attachmentSchema: z.ZodObject<{
5282
5398
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5283
5399
  /** Array of available encoding variants for the media item (e.g. different resolutions). Present on `media` type only; omitted otherwise. */
5284
5400
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
5401
+ /** Size of the stored bytes. */
5402
+ byte_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5285
5403
  /** MIME type of this variant's file (e.g., `"image/jpeg"`, `"video/mp4"`). `null` if the file is not loaded. */
5286
5404
  content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5287
5405
  /** When this variant was created (ISO 8601). */
5288
5406
  created_at: z.ZodOptional<z.ZodString>;
5407
+ /** Client-declared video duration in milliseconds; not server-probed. */
5408
+ duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5289
5409
  /** ID of the underlying storage file that backs this variant (`fil_...`). */
5290
5410
  file: z.ZodOptional<z.ZodString>;
5291
5411
  /** Original filename of the uploaded file for this variant. `null` if the file is not loaded. */
@@ -5320,10 +5440,14 @@ export declare const attachmentSchema: z.ZodObject<{
5320
5440
  url?: string | null | undefined;
5321
5441
  width?: number | null | undefined;
5322
5442
  }>>>;
5443
+ /** Lowercase SHA-256 of the stored bytes. */
5444
+ sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5323
5445
  /** When this variant was last updated (ISO 8601). */
5324
5446
  updated_at: z.ZodOptional<z.ZodString>;
5325
5447
  /** Signed download URL for this variant, resolved at request time. `null` if the file is unavailable. */
5326
5448
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5449
+ /** Expiry of this variant's playable URL. */
5450
+ url_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5327
5451
  /** Identifier for this variant's processing tier. Common values include `"original"` (the unmodified upload) and `"thumbnail"` (a resized preview). */
5328
5452
  variant_key: z.ZodOptional<z.ZodString>;
5329
5453
  /** Width of this variant in pixels. `null` if not recorded. */
@@ -5336,7 +5460,9 @@ export declare const attachmentSchema: z.ZodObject<{
5336
5460
  height?: number | null | undefined;
5337
5461
  url?: string | null | undefined;
5338
5462
  width?: number | null | undefined;
5463
+ byte_size?: number | null | undefined;
5339
5464
  content_type?: string | null | undefined;
5465
+ duration_ms?: number | null | undefined;
5340
5466
  filename?: string | null | undefined;
5341
5467
  image_source?: {
5342
5468
  mime_type?: string | null | undefined;
@@ -5347,6 +5473,8 @@ export declare const attachmentSchema: z.ZodObject<{
5347
5473
  url?: string | null | undefined;
5348
5474
  width?: number | null | undefined;
5349
5475
  } | null | undefined;
5476
+ sha256?: string | null | undefined;
5477
+ url_expires_at?: string | null | undefined;
5350
5478
  variant_key?: string | undefined;
5351
5479
  }, {
5352
5480
  id: string;
@@ -5356,7 +5484,9 @@ export declare const attachmentSchema: z.ZodObject<{
5356
5484
  height?: number | null | undefined;
5357
5485
  url?: string | null | undefined;
5358
5486
  width?: number | null | undefined;
5487
+ byte_size?: number | null | undefined;
5359
5488
  content_type?: string | null | undefined;
5489
+ duration_ms?: number | null | undefined;
5360
5490
  filename?: string | null | undefined;
5361
5491
  image_source?: {
5362
5492
  mime_type?: string | null | undefined;
@@ -5367,6 +5497,8 @@ export declare const attachmentSchema: z.ZodObject<{
5367
5497
  url?: string | null | undefined;
5368
5498
  width?: number | null | undefined;
5369
5499
  } | null | undefined;
5500
+ sha256?: string | null | undefined;
5501
+ url_expires_at?: string | null | undefined;
5370
5502
  variant_key?: string | undefined;
5371
5503
  }>, "many">>;
5372
5504
  /** Version number of the attached artifact at the time of attachment. Present on `artifact` type only. `null` otherwise. */
@@ -5407,7 +5539,9 @@ export declare const attachmentSchema: z.ZodObject<{
5407
5539
  height?: number | null | undefined;
5408
5540
  url?: string | null | undefined;
5409
5541
  width?: number | null | undefined;
5542
+ byte_size?: number | null | undefined;
5410
5543
  content_type?: string | null | undefined;
5544
+ duration_ms?: number | null | undefined;
5411
5545
  filename?: string | null | undefined;
5412
5546
  image_source?: {
5413
5547
  mime_type?: string | null | undefined;
@@ -5418,6 +5552,8 @@ export declare const attachmentSchema: z.ZodObject<{
5418
5552
  url?: string | null | undefined;
5419
5553
  width?: number | null | undefined;
5420
5554
  } | null | undefined;
5555
+ sha256?: string | null | undefined;
5556
+ url_expires_at?: string | null | undefined;
5421
5557
  variant_key?: string | undefined;
5422
5558
  }[] | undefined;
5423
5559
  version?: number | null | undefined;
@@ -5455,7 +5591,9 @@ export declare const attachmentSchema: z.ZodObject<{
5455
5591
  height?: number | null | undefined;
5456
5592
  url?: string | null | undefined;
5457
5593
  width?: number | null | undefined;
5594
+ byte_size?: number | null | undefined;
5458
5595
  content_type?: string | null | undefined;
5596
+ duration_ms?: number | null | undefined;
5459
5597
  filename?: string | null | undefined;
5460
5598
  image_source?: {
5461
5599
  mime_type?: string | null | undefined;
@@ -5466,6 +5604,8 @@ export declare const attachmentSchema: z.ZodObject<{
5466
5604
  url?: string | null | undefined;
5467
5605
  width?: number | null | undefined;
5468
5606
  } | null | undefined;
5607
+ sha256?: string | null | undefined;
5608
+ url_expires_at?: string | null | undefined;
5469
5609
  variant_key?: string | undefined;
5470
5610
  }[] | undefined;
5471
5611
  version?: number | null | undefined;
@@ -6173,10 +6313,14 @@ export declare const messageSchema: z.ZodObject<{
6173
6313
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6174
6314
  /** Array of available encoding variants for the media item (e.g. different resolutions). Present on `media` type only; omitted otherwise. */
6175
6315
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
6316
+ /** Size of the stored bytes. */
6317
+ byte_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6176
6318
  /** MIME type of this variant's file (e.g., `"image/jpeg"`, `"video/mp4"`). `null` if the file is not loaded. */
6177
6319
  content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6178
6320
  /** When this variant was created (ISO 8601). */
6179
6321
  created_at: z.ZodOptional<z.ZodString>;
6322
+ /** Client-declared video duration in milliseconds; not server-probed. */
6323
+ duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6180
6324
  /** ID of the underlying storage file that backs this variant (`fil_...`). */
6181
6325
  file: z.ZodOptional<z.ZodString>;
6182
6326
  /** Original filename of the uploaded file for this variant. `null` if the file is not loaded. */
@@ -6211,10 +6355,14 @@ export declare const messageSchema: z.ZodObject<{
6211
6355
  url?: string | null | undefined;
6212
6356
  width?: number | null | undefined;
6213
6357
  }>>>;
6358
+ /** Lowercase SHA-256 of the stored bytes. */
6359
+ sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6214
6360
  /** When this variant was last updated (ISO 8601). */
6215
6361
  updated_at: z.ZodOptional<z.ZodString>;
6216
6362
  /** Signed download URL for this variant, resolved at request time. `null` if the file is unavailable. */
6217
6363
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6364
+ /** Expiry of this variant's playable URL. */
6365
+ url_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6218
6366
  /** Identifier for this variant's processing tier. Common values include `"original"` (the unmodified upload) and `"thumbnail"` (a resized preview). */
6219
6367
  variant_key: z.ZodOptional<z.ZodString>;
6220
6368
  /** Width of this variant in pixels. `null` if not recorded. */
@@ -6227,7 +6375,9 @@ export declare const messageSchema: z.ZodObject<{
6227
6375
  height?: number | null | undefined;
6228
6376
  url?: string | null | undefined;
6229
6377
  width?: number | null | undefined;
6378
+ byte_size?: number | null | undefined;
6230
6379
  content_type?: string | null | undefined;
6380
+ duration_ms?: number | null | undefined;
6231
6381
  filename?: string | null | undefined;
6232
6382
  image_source?: {
6233
6383
  mime_type?: string | null | undefined;
@@ -6238,6 +6388,8 @@ export declare const messageSchema: z.ZodObject<{
6238
6388
  url?: string | null | undefined;
6239
6389
  width?: number | null | undefined;
6240
6390
  } | null | undefined;
6391
+ sha256?: string | null | undefined;
6392
+ url_expires_at?: string | null | undefined;
6241
6393
  variant_key?: string | undefined;
6242
6394
  }, {
6243
6395
  id: string;
@@ -6247,7 +6399,9 @@ export declare const messageSchema: z.ZodObject<{
6247
6399
  height?: number | null | undefined;
6248
6400
  url?: string | null | undefined;
6249
6401
  width?: number | null | undefined;
6402
+ byte_size?: number | null | undefined;
6250
6403
  content_type?: string | null | undefined;
6404
+ duration_ms?: number | null | undefined;
6251
6405
  filename?: string | null | undefined;
6252
6406
  image_source?: {
6253
6407
  mime_type?: string | null | undefined;
@@ -6258,6 +6412,8 @@ export declare const messageSchema: z.ZodObject<{
6258
6412
  url?: string | null | undefined;
6259
6413
  width?: number | null | undefined;
6260
6414
  } | null | undefined;
6415
+ sha256?: string | null | undefined;
6416
+ url_expires_at?: string | null | undefined;
6261
6417
  variant_key?: string | undefined;
6262
6418
  }>, "many">>;
6263
6419
  /** Version number of the attached artifact at the time of attachment. Present on `artifact` type only. `null` otherwise. */
@@ -6298,7 +6454,9 @@ export declare const messageSchema: z.ZodObject<{
6298
6454
  height?: number | null | undefined;
6299
6455
  url?: string | null | undefined;
6300
6456
  width?: number | null | undefined;
6457
+ byte_size?: number | null | undefined;
6301
6458
  content_type?: string | null | undefined;
6459
+ duration_ms?: number | null | undefined;
6302
6460
  filename?: string | null | undefined;
6303
6461
  image_source?: {
6304
6462
  mime_type?: string | null | undefined;
@@ -6309,6 +6467,8 @@ export declare const messageSchema: z.ZodObject<{
6309
6467
  url?: string | null | undefined;
6310
6468
  width?: number | null | undefined;
6311
6469
  } | null | undefined;
6470
+ sha256?: string | null | undefined;
6471
+ url_expires_at?: string | null | undefined;
6312
6472
  variant_key?: string | undefined;
6313
6473
  }[] | undefined;
6314
6474
  version?: number | null | undefined;
@@ -6346,7 +6506,9 @@ export declare const messageSchema: z.ZodObject<{
6346
6506
  height?: number | null | undefined;
6347
6507
  url?: string | null | undefined;
6348
6508
  width?: number | null | undefined;
6509
+ byte_size?: number | null | undefined;
6349
6510
  content_type?: string | null | undefined;
6511
+ duration_ms?: number | null | undefined;
6350
6512
  filename?: string | null | undefined;
6351
6513
  image_source?: {
6352
6514
  mime_type?: string | null | undefined;
@@ -6357,6 +6519,8 @@ export declare const messageSchema: z.ZodObject<{
6357
6519
  url?: string | null | undefined;
6358
6520
  width?: number | null | undefined;
6359
6521
  } | null | undefined;
6522
+ sha256?: string | null | undefined;
6523
+ url_expires_at?: string | null | undefined;
6360
6524
  variant_key?: string | undefined;
6361
6525
  }[] | undefined;
6362
6526
  version?: number | null | undefined;
@@ -6587,7 +6751,9 @@ export declare const messageSchema: z.ZodObject<{
6587
6751
  height?: number | null | undefined;
6588
6752
  url?: string | null | undefined;
6589
6753
  width?: number | null | undefined;
6754
+ byte_size?: number | null | undefined;
6590
6755
  content_type?: string | null | undefined;
6756
+ duration_ms?: number | null | undefined;
6591
6757
  filename?: string | null | undefined;
6592
6758
  image_source?: {
6593
6759
  mime_type?: string | null | undefined;
@@ -6598,6 +6764,8 @@ export declare const messageSchema: z.ZodObject<{
6598
6764
  url?: string | null | undefined;
6599
6765
  width?: number | null | undefined;
6600
6766
  } | null | undefined;
6767
+ sha256?: string | null | undefined;
6768
+ url_expires_at?: string | null | undefined;
6601
6769
  variant_key?: string | undefined;
6602
6770
  }[] | undefined;
6603
6771
  version?: number | null | undefined;
@@ -6723,7 +6891,9 @@ export declare const messageSchema: z.ZodObject<{
6723
6891
  height?: number | null | undefined;
6724
6892
  url?: string | null | undefined;
6725
6893
  width?: number | null | undefined;
6894
+ byte_size?: number | null | undefined;
6726
6895
  content_type?: string | null | undefined;
6896
+ duration_ms?: number | null | undefined;
6727
6897
  filename?: string | null | undefined;
6728
6898
  image_source?: {
6729
6899
  mime_type?: string | null | undefined;
@@ -6734,6 +6904,8 @@ export declare const messageSchema: z.ZodObject<{
6734
6904
  url?: string | null | undefined;
6735
6905
  width?: number | null | undefined;
6736
6906
  } | null | undefined;
6907
+ sha256?: string | null | undefined;
6908
+ url_expires_at?: string | null | undefined;
6737
6909
  variant_key?: string | undefined;
6738
6910
  }[] | undefined;
6739
6911
  version?: number | null | undefined;
@@ -6842,26 +7014,6 @@ export declare const commandSchema: z.ZodObject<{
6842
7014
  expectedInput?: Record<string, {} | null> | undefined;
6843
7015
  successOutput?: Record<string, {} | null> | undefined;
6844
7016
  }>;
6845
- /** The result of executing a shell command on an agent's computer environment. Contains the captured output and the process exit code. */
6846
- export interface ComputerExecResult {
6847
- /** The UNIX exit code returned by the process. `0` indicates success; any non-zero value indicates an error. `null` if the process did not terminate normally. */
6848
- exit_code?: number | undefined;
6849
- /** The combined stdout and stderr output produced by the command. `null` if the command produced no output. */
6850
- output?: string | undefined;
6851
- }
6852
- /** Runtime validator for {@link ComputerExecResult}. */
6853
- export declare const computerExecResultSchema: z.ZodObject<{
6854
- /** The UNIX exit code returned by the process. `0` indicates success; any non-zero value indicates an error. `null` if the process did not terminate normally. */
6855
- exit_code: z.ZodOptional<z.ZodNumber>;
6856
- /** The combined stdout and stderr output produced by the command. `null` if the command produced no output. */
6857
- output: z.ZodOptional<z.ZodString>;
6858
- }, "strip", z.ZodTypeAny, {
6859
- exit_code?: number | undefined;
6860
- output?: string | undefined;
6861
- }, {
6862
- exit_code?: number | undefined;
6863
- output?: string | undefined;
6864
- }>;
6865
7017
  /** A context document stored within a context source. Carries metadata and size information only; retrieve the full text content via the `/content` endpoint. */
6866
7018
  export interface ContextDocument {
6867
7019
  /** ID of the agent that owns this document (`agi_...`). `null` if owned by a user or team. */
@@ -7228,12 +7380,20 @@ export interface EffectiveAccessEntitlement {
7228
7380
  granted: boolean;
7229
7381
  /** Stable entitlement catalog key. */
7230
7382
  key: string;
7383
+ /** Unexpired metered allowance, including exhausted grants; null for boolean entitlements. */
7384
+ limit?: number | null | undefined;
7231
7385
  /** Privacy-safe principal kinds that contribute to the effective value. */
7232
7386
  provided_by: ("personal" | "organization")[];
7387
+ /** Effective purchased quantity from the recurring terms linked to this key (for example seats), summed across granting principals. `null` when the key is not granted or no granting plan links a term to it. */
7388
+ quantity?: number | null | undefined;
7389
+ /** Remaining metered allowance credits; null for boolean entitlements. */
7390
+ remaining?: number | null | undefined;
7391
+ /** Signed metered consumption in the allowance window; may be negative after reversals. Null for boolean entitlements. */
7392
+ used?: number | null | undefined;
7233
7393
  /** Merged entitlement value, or `null` when the key is not granted. */
7234
7394
  value?: boolean | null | undefined;
7235
7395
  /** Catalog type used to interpret `value`. */
7236
- value_type: "boolean";
7396
+ value_type: "boolean" | "metered";
7237
7397
  }
7238
7398
  /** Runtime validator for {@link EffectiveAccessEntitlement}. */
7239
7399
  export declare const effectiveAccessEntitlementSchema: z.ZodObject<{
@@ -7241,24 +7401,40 @@ export declare const effectiveAccessEntitlementSchema: z.ZodObject<{
7241
7401
  granted: z.ZodBoolean;
7242
7402
  /** Stable entitlement catalog key. */
7243
7403
  key: z.ZodString;
7404
+ /** Unexpired metered allowance, including exhausted grants; null for boolean entitlements. */
7405
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7244
7406
  /** Privacy-safe principal kinds that contribute to the effective value. */
7245
7407
  provided_by: z.ZodArray<z.ZodEnum<["personal", "organization"]>, "many">;
7408
+ /** Effective purchased quantity from the recurring terms linked to this key (for example seats), summed across granting principals. `null` when the key is not granted or no granting plan links a term to it. */
7409
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7410
+ /** Remaining metered allowance credits; null for boolean entitlements. */
7411
+ remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7412
+ /** Signed metered consumption in the allowance window; may be negative after reversals. Null for boolean entitlements. */
7413
+ used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7246
7414
  /** Merged entitlement value, or `null` when the key is not granted. */
7247
7415
  value: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7248
7416
  /** Catalog type used to interpret `value`. */
7249
- value_type: z.ZodLiteral<"boolean">;
7417
+ value_type: z.ZodEnum<["boolean", "metered"]>;
7250
7418
  }, "strip", z.ZodTypeAny, {
7251
7419
  key: string;
7252
7420
  granted: boolean;
7253
7421
  provided_by: ("personal" | "organization")[];
7254
- value_type: "boolean";
7422
+ value_type: "boolean" | "metered";
7255
7423
  value?: boolean | null | undefined;
7424
+ limit?: number | null | undefined;
7425
+ quantity?: number | null | undefined;
7426
+ remaining?: number | null | undefined;
7427
+ used?: number | null | undefined;
7256
7428
  }, {
7257
7429
  key: string;
7258
7430
  granted: boolean;
7259
7431
  provided_by: ("personal" | "organization")[];
7260
- value_type: "boolean";
7432
+ value_type: "boolean" | "metered";
7261
7433
  value?: boolean | null | undefined;
7434
+ limit?: number | null | undefined;
7435
+ quantity?: number | null | undefined;
7436
+ remaining?: number | null | undefined;
7437
+ used?: number | null | undefined;
7262
7438
  }>;
7263
7439
  /** Live effective access, billing authority, and relevant trials for the authenticated user. */
7264
7440
  export interface EffectiveAccess {
@@ -7314,24 +7490,40 @@ export declare const effectiveAccessSchema: z.ZodObject<{
7314
7490
  granted: z.ZodBoolean;
7315
7491
  /** Stable entitlement catalog key. */
7316
7492
  key: z.ZodString;
7493
+ /** Unexpired metered allowance, including exhausted grants; null for boolean entitlements. */
7494
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7317
7495
  /** Privacy-safe principal kinds that contribute to the effective value. */
7318
7496
  provided_by: z.ZodArray<z.ZodEnum<["personal", "organization"]>, "many">;
7497
+ /** Effective purchased quantity from the recurring terms linked to this key (for example seats), summed across granting principals. `null` when the key is not granted or no granting plan links a term to it. */
7498
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7499
+ /** Remaining metered allowance credits; null for boolean entitlements. */
7500
+ remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7501
+ /** Signed metered consumption in the allowance window; may be negative after reversals. Null for boolean entitlements. */
7502
+ used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7319
7503
  /** Merged entitlement value, or `null` when the key is not granted. */
7320
7504
  value: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7321
7505
  /** Catalog type used to interpret `value`. */
7322
- value_type: z.ZodLiteral<"boolean">;
7506
+ value_type: z.ZodEnum<["boolean", "metered"]>;
7323
7507
  }, "strip", z.ZodTypeAny, {
7324
7508
  key: string;
7325
7509
  granted: boolean;
7326
7510
  provided_by: ("personal" | "organization")[];
7327
- value_type: "boolean";
7511
+ value_type: "boolean" | "metered";
7328
7512
  value?: boolean | null | undefined;
7513
+ limit?: number | null | undefined;
7514
+ quantity?: number | null | undefined;
7515
+ remaining?: number | null | undefined;
7516
+ used?: number | null | undefined;
7329
7517
  }, {
7330
7518
  key: string;
7331
7519
  granted: boolean;
7332
7520
  provided_by: ("personal" | "organization")[];
7333
- value_type: "boolean";
7521
+ value_type: "boolean" | "metered";
7334
7522
  value?: boolean | null | undefined;
7523
+ limit?: number | null | undefined;
7524
+ quantity?: number | null | undefined;
7525
+ remaining?: number | null | undefined;
7526
+ used?: number | null | undefined;
7335
7527
  }>, "many">;
7336
7528
  }, "strip", z.ZodTypeAny, {
7337
7529
  billing: {
@@ -7347,8 +7539,12 @@ export declare const effectiveAccessSchema: z.ZodObject<{
7347
7539
  key: string;
7348
7540
  granted: boolean;
7349
7541
  provided_by: ("personal" | "organization")[];
7350
- value_type: "boolean";
7542
+ value_type: "boolean" | "metered";
7351
7543
  value?: boolean | null | undefined;
7544
+ limit?: number | null | undefined;
7545
+ quantity?: number | null | undefined;
7546
+ remaining?: number | null | undefined;
7547
+ used?: number | null | undefined;
7352
7548
  }[];
7353
7549
  }, {
7354
7550
  billing: {
@@ -7364,8 +7560,12 @@ export declare const effectiveAccessSchema: z.ZodObject<{
7364
7560
  key: string;
7365
7561
  granted: boolean;
7366
7562
  provided_by: ("personal" | "organization")[];
7367
- value_type: "boolean";
7563
+ value_type: "boolean" | "metered";
7368
7564
  value?: boolean | null | undefined;
7565
+ limit?: number | null | undefined;
7566
+ quantity?: number | null | undefined;
7567
+ remaining?: number | null | undefined;
7568
+ used?: number | null | undefined;
7369
7569
  }[];
7370
7570
  }>;
7371
7571
  /** The authenticated user's profile, live session context, and optional effective access. */
@@ -7390,6 +7590,8 @@ export interface CurrentUser {
7390
7590
  name?: string | null | undefined;
7391
7591
  /** The authenticated user's notification preferences. */
7392
7592
  notification_settings: Record<string, unknown>;
7593
+ /** Registered display name of the verified OAuth client, when available. Not a verified vendor identity. */
7594
+ oauth_client_name?: string | undefined;
7393
7595
  /** ID of the current organization (`org_...`). */
7394
7596
  org?: string | null | undefined;
7395
7597
  /** Whether the current organization is company-domain or person-owned. */
@@ -7464,24 +7666,40 @@ export declare const currentUserSchema: z.ZodObject<{
7464
7666
  granted: z.ZodBoolean;
7465
7667
  /** Stable entitlement catalog key. */
7466
7668
  key: z.ZodString;
7669
+ /** Unexpired metered allowance, including exhausted grants; null for boolean entitlements. */
7670
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7467
7671
  /** Privacy-safe principal kinds that contribute to the effective value. */
7468
7672
  provided_by: z.ZodArray<z.ZodEnum<["personal", "organization"]>, "many">;
7673
+ /** Effective purchased quantity from the recurring terms linked to this key (for example seats), summed across granting principals. `null` when the key is not granted or no granting plan links a term to it. */
7674
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7675
+ /** Remaining metered allowance credits; null for boolean entitlements. */
7676
+ remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7677
+ /** Signed metered consumption in the allowance window; may be negative after reversals. Null for boolean entitlements. */
7678
+ used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7469
7679
  /** Merged entitlement value, or `null` when the key is not granted. */
7470
7680
  value: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7471
7681
  /** Catalog type used to interpret `value`. */
7472
- value_type: z.ZodLiteral<"boolean">;
7682
+ value_type: z.ZodEnum<["boolean", "metered"]>;
7473
7683
  }, "strip", z.ZodTypeAny, {
7474
7684
  key: string;
7475
7685
  granted: boolean;
7476
7686
  provided_by: ("personal" | "organization")[];
7477
- value_type: "boolean";
7687
+ value_type: "boolean" | "metered";
7478
7688
  value?: boolean | null | undefined;
7689
+ limit?: number | null | undefined;
7690
+ quantity?: number | null | undefined;
7691
+ remaining?: number | null | undefined;
7692
+ used?: number | null | undefined;
7479
7693
  }, {
7480
7694
  key: string;
7481
7695
  granted: boolean;
7482
7696
  provided_by: ("personal" | "organization")[];
7483
- value_type: "boolean";
7697
+ value_type: "boolean" | "metered";
7484
7698
  value?: boolean | null | undefined;
7699
+ limit?: number | null | undefined;
7700
+ quantity?: number | null | undefined;
7701
+ remaining?: number | null | undefined;
7702
+ used?: number | null | undefined;
7485
7703
  }>, "many">;
7486
7704
  }, "strip", z.ZodTypeAny, {
7487
7705
  billing: {
@@ -7497,8 +7715,12 @@ export declare const currentUserSchema: z.ZodObject<{
7497
7715
  key: string;
7498
7716
  granted: boolean;
7499
7717
  provided_by: ("personal" | "organization")[];
7500
- value_type: "boolean";
7718
+ value_type: "boolean" | "metered";
7501
7719
  value?: boolean | null | undefined;
7720
+ limit?: number | null | undefined;
7721
+ quantity?: number | null | undefined;
7722
+ remaining?: number | null | undefined;
7723
+ used?: number | null | undefined;
7502
7724
  }[];
7503
7725
  }, {
7504
7726
  billing: {
@@ -7514,8 +7736,12 @@ export declare const currentUserSchema: z.ZodObject<{
7514
7736
  key: string;
7515
7737
  granted: boolean;
7516
7738
  provided_by: ("personal" | "organization")[];
7517
- value_type: "boolean";
7739
+ value_type: "boolean" | "metered";
7518
7740
  value?: boolean | null | undefined;
7741
+ limit?: number | null | undefined;
7742
+ quantity?: number | null | undefined;
7743
+ remaining?: number | null | undefined;
7744
+ used?: number | null | undefined;
7519
7745
  }[];
7520
7746
  }>>;
7521
7747
  /** Email address of the user. */
@@ -7530,6 +7756,8 @@ export declare const currentUserSchema: z.ZodObject<{
7530
7756
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7531
7757
  /** The authenticated user's notification preferences. */
7532
7758
  notification_settings: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
7759
+ /** Registered display name of the verified OAuth client, when available. Not a verified vendor identity. */
7760
+ oauth_client_name: z.ZodOptional<z.ZodString>;
7533
7761
  /** ID of the current organization (`org_...`). */
7534
7762
  org: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7535
7763
  /** Whether the current organization is company-domain or person-owned. */
@@ -7612,10 +7840,15 @@ export declare const currentUserSchema: z.ZodObject<{
7612
7840
  key: string;
7613
7841
  granted: boolean;
7614
7842
  provided_by: ("personal" | "organization")[];
7615
- value_type: "boolean";
7843
+ value_type: "boolean" | "metered";
7616
7844
  value?: boolean | null | undefined;
7845
+ limit?: number | null | undefined;
7846
+ quantity?: number | null | undefined;
7847
+ remaining?: number | null | undefined;
7848
+ used?: number | null | undefined;
7617
7849
  }[];
7618
7850
  } | undefined;
7851
+ oauth_client_name?: string | undefined;
7619
7852
  org_kind?: "personal" | "company" | null | undefined;
7620
7853
  }, {
7621
7854
  id: string;
@@ -7657,18 +7890,27 @@ export declare const currentUserSchema: z.ZodObject<{
7657
7890
  key: string;
7658
7891
  granted: boolean;
7659
7892
  provided_by: ("personal" | "organization")[];
7660
- value_type: "boolean";
7893
+ value_type: "boolean" | "metered";
7661
7894
  value?: boolean | null | undefined;
7895
+ limit?: number | null | undefined;
7896
+ quantity?: number | null | undefined;
7897
+ remaining?: number | null | undefined;
7898
+ used?: number | null | undefined;
7662
7899
  }[];
7663
7900
  } | undefined;
7901
+ oauth_client_name?: string | undefined;
7664
7902
  org_kind?: "personal" | "company" | null | undefined;
7665
7903
  }>;
7666
7904
  /** A custom object belonging to an organization. Custom objects store arbitrary structured data defined by a schema type and are scoped to an org, team, or user. */
7667
7905
  export interface CustomObject {
7668
7906
  /** Access control list governing read and write access to this custom object. Only returned to resource owners and privileged or organization-admin viewers; `null` for everyone else. */
7669
7907
  acl?: Acl | undefined;
7908
+ /** ID of the agent that owns this object (`agt_...`). `null` for other ownership types. */
7909
+ agent?: string | undefined;
7670
7910
  /** When the custom object was created (ISO 8601). */
7671
7911
  created_at?: string | undefined;
7912
+ /** Absolute expiry time (RFC 3339). Null when no expiry is set. */
7913
+ expires_at?: string | null | undefined;
7672
7914
  /** Map of field names to their current values as defined by the object's schema type. */
7673
7915
  fields?: Record<string, unknown> | undefined;
7674
7916
  /** Unique identifier for the custom object (`cobj_...`). */
@@ -7772,8 +8014,12 @@ export declare const customObjectSchema: z.ZodObject<{
7772
8014
  principal?: string | undefined;
7773
8015
  }[] | undefined;
7774
8016
  }>>;
8017
+ /** ID of the agent that owns this object (`agt_...`). `null` for other ownership types. */
8018
+ agent: z.ZodOptional<z.ZodString>;
7775
8019
  /** When the custom object was created (ISO 8601). */
7776
8020
  created_at: z.ZodOptional<z.ZodString>;
8021
+ /** Absolute expiry time (RFC 3339). Null when no expiry is set. */
8022
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7777
8023
  /** Map of field names to their current values as defined by the object's schema type. */
7778
8024
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
7779
8025
  /** Unique identifier for the custom object (`cobj_...`). */
@@ -7798,6 +8044,7 @@ export declare const customObjectSchema: z.ZodObject<{
7798
8044
  id: string;
7799
8045
  user?: string | undefined;
7800
8046
  org?: string | undefined;
8047
+ agent?: string | undefined;
7801
8048
  team?: string | undefined;
7802
8049
  created_at?: string | undefined;
7803
8050
  updated_at?: string | undefined;
@@ -7819,6 +8066,7 @@ export declare const customObjectSchema: z.ZodObject<{
7819
8066
  }[] | undefined;
7820
8067
  } | undefined;
7821
8068
  version?: number | undefined;
8069
+ expires_at?: string | null | undefined;
7822
8070
  fields?: Record<string, {} | null> | undefined;
7823
8071
  row_key?: string | undefined;
7824
8072
  schema_type?: string | undefined;
@@ -7826,6 +8074,7 @@ export declare const customObjectSchema: z.ZodObject<{
7826
8074
  id: string;
7827
8075
  user?: string | undefined;
7828
8076
  org?: string | undefined;
8077
+ agent?: string | undefined;
7829
8078
  team?: string | undefined;
7830
8079
  created_at?: string | undefined;
7831
8080
  updated_at?: string | undefined;
@@ -7847,6 +8096,7 @@ export declare const customObjectSchema: z.ZodObject<{
7847
8096
  }[] | undefined;
7848
8097
  } | undefined;
7849
8098
  version?: number | undefined;
8099
+ expires_at?: string | null | undefined;
7850
8100
  fields?: Record<string, {} | null> | undefined;
7851
8101
  row_key?: string | undefined;
7852
8102
  schema_type?: string | undefined;
@@ -7901,10 +8151,10 @@ export interface CustomObjectListResponse {
7901
8151
  page: number;
7902
8152
  /** Maximum number of results returned per page. */
7903
8153
  page_size: number;
7904
- /** Total number of custom objects matching the query across all pages. */
7905
- total_entries: number;
7906
- /** Total number of pages available for the current query. */
7907
- total_pages: number;
8154
+ /** Total number of custom objects matching the query across all pages; null when include_count is false. */
8155
+ total_entries: number | null;
8156
+ /** Total number of pages available for the current query; null when include_count is false. */
8157
+ total_pages: number | null;
7908
8158
  }
7909
8159
  /** Runtime validator for {@link CustomObjectListResponse}. */
7910
8160
  export declare const customObjectListResponseSchema: z.ZodObject<{
@@ -7990,8 +8240,12 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
7990
8240
  principal?: string | undefined;
7991
8241
  }[] | undefined;
7992
8242
  }>>;
8243
+ /** ID of the agent that owns this object (`agt_...`). `null` for other ownership types. */
8244
+ agent: z.ZodOptional<z.ZodString>;
7993
8245
  /** When the custom object was created (ISO 8601). */
7994
8246
  created_at: z.ZodOptional<z.ZodString>;
8247
+ /** Absolute expiry time (RFC 3339). Null when no expiry is set. */
8248
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7995
8249
  /** Map of field names to their current values as defined by the object's schema type. */
7996
8250
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
7997
8251
  /** Unique identifier for the custom object (`cobj_...`). */
@@ -8016,6 +8270,7 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8016
8270
  id: string;
8017
8271
  user?: string | undefined;
8018
8272
  org?: string | undefined;
8273
+ agent?: string | undefined;
8019
8274
  team?: string | undefined;
8020
8275
  created_at?: string | undefined;
8021
8276
  updated_at?: string | undefined;
@@ -8037,6 +8292,7 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8037
8292
  }[] | undefined;
8038
8293
  } | undefined;
8039
8294
  version?: number | undefined;
8295
+ expires_at?: string | null | undefined;
8040
8296
  fields?: Record<string, {} | null> | undefined;
8041
8297
  row_key?: string | undefined;
8042
8298
  schema_type?: string | undefined;
@@ -8044,6 +8300,7 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8044
8300
  id: string;
8045
8301
  user?: string | undefined;
8046
8302
  org?: string | undefined;
8303
+ agent?: string | undefined;
8047
8304
  team?: string | undefined;
8048
8305
  created_at?: string | undefined;
8049
8306
  updated_at?: string | undefined;
@@ -8065,6 +8322,7 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8065
8322
  }[] | undefined;
8066
8323
  } | undefined;
8067
8324
  version?: number | undefined;
8325
+ expires_at?: string | null | undefined;
8068
8326
  fields?: Record<string, {} | null> | undefined;
8069
8327
  row_key?: string | undefined;
8070
8328
  schema_type?: string | undefined;
@@ -8077,15 +8335,16 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8077
8335
  page: z.ZodNumber;
8078
8336
  /** Maximum number of results returned per page. */
8079
8337
  page_size: z.ZodNumber;
8080
- /** Total number of custom objects matching the query across all pages. */
8081
- total_entries: z.ZodNumber;
8082
- /** Total number of pages available for the current query. */
8083
- total_pages: z.ZodNumber;
8338
+ /** Total number of custom objects matching the query across all pages; null when include_count is false. */
8339
+ total_entries: z.ZodNullable<z.ZodNumber>;
8340
+ /** Total number of pages available for the current query; null when include_count is false. */
8341
+ total_pages: z.ZodNullable<z.ZodNumber>;
8084
8342
  }, "strip", z.ZodTypeAny, {
8085
8343
  data: {
8086
8344
  id: string;
8087
8345
  user?: string | undefined;
8088
8346
  org?: string | undefined;
8347
+ agent?: string | undefined;
8089
8348
  team?: string | undefined;
8090
8349
  created_at?: string | undefined;
8091
8350
  updated_at?: string | undefined;
@@ -8107,6 +8366,7 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8107
8366
  }[] | undefined;
8108
8367
  } | undefined;
8109
8368
  version?: number | undefined;
8369
+ expires_at?: string | null | undefined;
8110
8370
  fields?: Record<string, {} | null> | undefined;
8111
8371
  row_key?: string | undefined;
8112
8372
  schema_type?: string | undefined;
@@ -8115,13 +8375,14 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8115
8375
  has_prev: boolean;
8116
8376
  page: number;
8117
8377
  page_size: number;
8118
- total_entries: number;
8119
- total_pages: number;
8378
+ total_entries: number | null;
8379
+ total_pages: number | null;
8120
8380
  }, {
8121
8381
  data: {
8122
8382
  id: string;
8123
8383
  user?: string | undefined;
8124
8384
  org?: string | undefined;
8385
+ agent?: string | undefined;
8125
8386
  team?: string | undefined;
8126
8387
  created_at?: string | undefined;
8127
8388
  updated_at?: string | undefined;
@@ -8143,6 +8404,7 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8143
8404
  }[] | undefined;
8144
8405
  } | undefined;
8145
8406
  version?: number | undefined;
8407
+ expires_at?: string | null | undefined;
8146
8408
  fields?: Record<string, {} | null> | undefined;
8147
8409
  row_key?: string | undefined;
8148
8410
  schema_type?: string | undefined;
@@ -8151,8 +8413,8 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8151
8413
  has_prev: boolean;
8152
8414
  page: number;
8153
8415
  page_size: number;
8154
- total_entries: number;
8155
- total_pages: number;
8416
+ total_entries: number | null;
8417
+ total_pages: number | null;
8156
8418
  }>;
8157
8419
  /** Acknowledges an ephemeral custom-object presence update. */
8158
8420
  export interface CustomObjectPresenceAck {
@@ -9324,54 +9586,86 @@ export declare const installationSourceListResponseSchema: z.ZodObject<{
9324
9586
  parent_source?: string | undefined;
9325
9587
  }[];
9326
9588
  }>;
9327
- /** A single key-value storage entry belonging to a user. Represents one key/value pair written to a user's isolated storage namespace within an app. */
9589
+ /** An owner-scoped key/value pair within an app, optionally expiring. */
9328
9590
  export interface KeyValueStorageEntry {
9591
+ /** Agent owner, if any. */
9592
+ agent?: string | undefined;
9329
9593
  /** When this storage entry was first created (ISO 8601). `null` if not yet persisted. */
9330
9594
  created_at?: string | undefined;
9595
+ /** Expiry deadline, or null for entries without expiry. */
9596
+ expires_at?: string | undefined;
9331
9597
  /** The string key used to store and look up this entry. */
9332
9598
  key: string;
9599
+ /** Organization scope. */
9600
+ org?: string | undefined;
9601
+ /** Team owner, if any. */
9602
+ team?: string | undefined;
9333
9603
  /** When this storage entry was last updated (ISO 8601). `null` if not yet persisted. */
9334
9604
  updated_at?: string | undefined;
9335
- /** ID of the user who owns this storage entry (`usr_...`). */
9336
- user: string;
9605
+ /** ID of the user owner, or null for non-user ownership. */
9606
+ user?: string | undefined;
9337
9607
  /** The string value stored under `key` for this user. */
9338
9608
  value: string;
9339
9609
  }
9340
9610
  /** Runtime validator for {@link KeyValueStorageEntry}. */
9341
9611
  export declare const keyValueStorageEntrySchema: z.ZodObject<{
9612
+ /** Agent owner, if any. */
9613
+ agent: z.ZodOptional<z.ZodString>;
9342
9614
  /** When this storage entry was first created (ISO 8601). `null` if not yet persisted. */
9343
9615
  created_at: z.ZodOptional<z.ZodString>;
9616
+ /** Expiry deadline, or null for entries without expiry. */
9617
+ expires_at: z.ZodOptional<z.ZodString>;
9344
9618
  /** The string key used to store and look up this entry. */
9345
9619
  key: z.ZodString;
9620
+ /** Organization scope. */
9621
+ org: z.ZodOptional<z.ZodString>;
9622
+ /** Team owner, if any. */
9623
+ team: z.ZodOptional<z.ZodString>;
9346
9624
  /** When this storage entry was last updated (ISO 8601). `null` if not yet persisted. */
9347
9625
  updated_at: z.ZodOptional<z.ZodString>;
9348
- /** ID of the user who owns this storage entry (`usr_...`). */
9349
- user: z.ZodString;
9626
+ /** ID of the user owner, or null for non-user ownership. */
9627
+ user: z.ZodOptional<z.ZodString>;
9350
9628
  /** The string value stored under `key` for this user. */
9351
9629
  value: z.ZodString;
9352
9630
  }, "strip", z.ZodTypeAny, {
9353
9631
  value: string;
9354
9632
  key: string;
9355
- user: string;
9633
+ user?: string | undefined;
9634
+ org?: string | undefined;
9635
+ agent?: string | undefined;
9636
+ team?: string | undefined;
9356
9637
  created_at?: string | undefined;
9357
9638
  updated_at?: string | undefined;
9639
+ expires_at?: string | undefined;
9358
9640
  }, {
9359
9641
  value: string;
9360
9642
  key: string;
9361
- user: string;
9643
+ user?: string | undefined;
9644
+ org?: string | undefined;
9645
+ agent?: string | undefined;
9646
+ team?: string | undefined;
9362
9647
  created_at?: string | undefined;
9363
9648
  updated_at?: string | undefined;
9649
+ expires_at?: string | undefined;
9364
9650
  }>;
9365
9651
  /** A key-value storage entry enriched with owner information. Developer and server-to-server callers receive `user_email` and `user_name` populated; end-user (user-JWT) callers receive those fields as `null`. */
9366
9652
  export interface KeyValueStorageEntryWithUser {
9653
+ /** Agent owner, if any. */
9654
+ agent?: string | undefined;
9367
9655
  /** When this storage entry was first created (ISO 8601). */
9368
9656
  created_at: string;
9657
+ /** Expiry deadline, or null for entries without expiry. */
9658
+ expires_at?: string | undefined;
9369
9659
  /** The string key used to store and look up this entry. */
9370
9660
  key: string;
9661
+ /** Organization scope. */
9662
+ org?: string | undefined;
9663
+ /** Team owner, if any. */
9664
+ team?: string | undefined;
9371
9665
  /** When this storage entry was last updated (ISO 8601). */
9372
9666
  updated_at: string;
9373
- /** ID of the user who owns this storage entry (`usr_...`). */
9374
- user: string;
9667
+ /** ID of the user owner, or null for non-user ownership. */
9668
+ user?: string | undefined;
9375
9669
  /** Email address of the owning user. `null` for end-user (user-JWT) callers; populated for developer and server-to-server callers. */
9376
9670
  user_email?: string | undefined;
9377
9671
  /** Display name of the owning user. `null` for end-user (user-JWT) callers; populated for developer and server-to-server callers. */
@@ -9381,14 +9675,22 @@ export interface KeyValueStorageEntryWithUser {
9381
9675
  }
9382
9676
  /** Runtime validator for {@link KeyValueStorageEntryWithUser}. */
9383
9677
  export declare const keyValueStorageEntryWithUserSchema: z.ZodObject<{
9678
+ /** Agent owner, if any. */
9679
+ agent: z.ZodOptional<z.ZodString>;
9384
9680
  /** When this storage entry was first created (ISO 8601). */
9385
9681
  created_at: z.ZodString;
9682
+ /** Expiry deadline, or null for entries without expiry. */
9683
+ expires_at: z.ZodOptional<z.ZodString>;
9386
9684
  /** The string key used to store and look up this entry. */
9387
9685
  key: z.ZodString;
9686
+ /** Organization scope. */
9687
+ org: z.ZodOptional<z.ZodString>;
9688
+ /** Team owner, if any. */
9689
+ team: z.ZodOptional<z.ZodString>;
9388
9690
  /** When this storage entry was last updated (ISO 8601). */
9389
9691
  updated_at: z.ZodString;
9390
- /** ID of the user who owns this storage entry (`usr_...`). */
9391
- user: z.ZodString;
9692
+ /** ID of the user owner, or null for non-user ownership. */
9693
+ user: z.ZodOptional<z.ZodString>;
9392
9694
  /** Email address of the owning user. `null` for end-user (user-JWT) callers; populated for developer and server-to-server callers. */
9393
9695
  user_email: z.ZodOptional<z.ZodString>;
9394
9696
  /** Display name of the owning user. `null` for end-user (user-JWT) callers; populated for developer and server-to-server callers. */
@@ -9398,17 +9700,25 @@ export declare const keyValueStorageEntryWithUserSchema: z.ZodObject<{
9398
9700
  }, "strip", z.ZodTypeAny, {
9399
9701
  value: string;
9400
9702
  key: string;
9401
- user: string;
9402
9703
  created_at: string;
9403
9704
  updated_at: string;
9705
+ user?: string | undefined;
9706
+ org?: string | undefined;
9707
+ agent?: string | undefined;
9708
+ team?: string | undefined;
9709
+ expires_at?: string | undefined;
9404
9710
  user_email?: string | undefined;
9405
9711
  user_name?: string | undefined;
9406
9712
  }, {
9407
9713
  value: string;
9408
9714
  key: string;
9409
- user: string;
9410
9715
  created_at: string;
9411
9716
  updated_at: string;
9717
+ user?: string | undefined;
9718
+ org?: string | undefined;
9719
+ agent?: string | undefined;
9720
+ team?: string | undefined;
9721
+ expires_at?: string | undefined;
9412
9722
  user_email?: string | undefined;
9413
9723
  user_name?: string | undefined;
9414
9724
  }>;
@@ -9433,14 +9743,22 @@ export interface KeyValueStorageEntryPage {
9433
9743
  export declare const keyValueStorageEntryPageSchema: z.ZodObject<{
9434
9744
  /** Array of key-value storage entries for the current page. */
9435
9745
  data: z.ZodArray<z.ZodObject<{
9746
+ /** Agent owner, if any. */
9747
+ agent: z.ZodOptional<z.ZodString>;
9436
9748
  /** When this storage entry was first created (ISO 8601). */
9437
9749
  created_at: z.ZodString;
9750
+ /** Expiry deadline, or null for entries without expiry. */
9751
+ expires_at: z.ZodOptional<z.ZodString>;
9438
9752
  /** The string key used to store and look up this entry. */
9439
9753
  key: z.ZodString;
9754
+ /** Organization scope. */
9755
+ org: z.ZodOptional<z.ZodString>;
9756
+ /** Team owner, if any. */
9757
+ team: z.ZodOptional<z.ZodString>;
9440
9758
  /** When this storage entry was last updated (ISO 8601). */
9441
9759
  updated_at: z.ZodString;
9442
- /** ID of the user who owns this storage entry (`usr_...`). */
9443
- user: z.ZodString;
9760
+ /** ID of the user owner, or null for non-user ownership. */
9761
+ user: z.ZodOptional<z.ZodString>;
9444
9762
  /** Email address of the owning user. `null` for end-user (user-JWT) callers; populated for developer and server-to-server callers. */
9445
9763
  user_email: z.ZodOptional<z.ZodString>;
9446
9764
  /** Display name of the owning user. `null` for end-user (user-JWT) callers; populated for developer and server-to-server callers. */
@@ -9450,17 +9768,25 @@ export declare const keyValueStorageEntryPageSchema: z.ZodObject<{
9450
9768
  }, "strip", z.ZodTypeAny, {
9451
9769
  value: string;
9452
9770
  key: string;
9453
- user: string;
9454
9771
  created_at: string;
9455
9772
  updated_at: string;
9773
+ user?: string | undefined;
9774
+ org?: string | undefined;
9775
+ agent?: string | undefined;
9776
+ team?: string | undefined;
9777
+ expires_at?: string | undefined;
9456
9778
  user_email?: string | undefined;
9457
9779
  user_name?: string | undefined;
9458
9780
  }, {
9459
9781
  value: string;
9460
9782
  key: string;
9461
- user: string;
9462
9783
  created_at: string;
9463
9784
  updated_at: string;
9785
+ user?: string | undefined;
9786
+ org?: string | undefined;
9787
+ agent?: string | undefined;
9788
+ team?: string | undefined;
9789
+ expires_at?: string | undefined;
9464
9790
  user_email?: string | undefined;
9465
9791
  user_name?: string | undefined;
9466
9792
  }>, "many">;
@@ -9480,9 +9806,13 @@ export declare const keyValueStorageEntryPageSchema: z.ZodObject<{
9480
9806
  data: {
9481
9807
  value: string;
9482
9808
  key: string;
9483
- user: string;
9484
9809
  created_at: string;
9485
9810
  updated_at: string;
9811
+ user?: string | undefined;
9812
+ org?: string | undefined;
9813
+ agent?: string | undefined;
9814
+ team?: string | undefined;
9815
+ expires_at?: string | undefined;
9486
9816
  user_email?: string | undefined;
9487
9817
  user_name?: string | undefined;
9488
9818
  }[];
@@ -9496,9 +9826,13 @@ export declare const keyValueStorageEntryPageSchema: z.ZodObject<{
9496
9826
  data: {
9497
9827
  value: string;
9498
9828
  key: string;
9499
- user: string;
9500
9829
  created_at: string;
9501
9830
  updated_at: string;
9831
+ user?: string | undefined;
9832
+ org?: string | undefined;
9833
+ agent?: string | undefined;
9834
+ team?: string | undefined;
9835
+ expires_at?: string | undefined;
9502
9836
  user_email?: string | undefined;
9503
9837
  user_name?: string | undefined;
9504
9838
  }[];
@@ -10063,10 +10397,14 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10063
10397
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10064
10398
  /** Array of available encoding variants for the media item (e.g. different resolutions). Present on `media` type only; omitted otherwise. */
10065
10399
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
10400
+ /** Size of the stored bytes. */
10401
+ byte_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10066
10402
  /** MIME type of this variant's file (e.g., `"image/jpeg"`, `"video/mp4"`). `null` if the file is not loaded. */
10067
10403
  content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10068
10404
  /** When this variant was created (ISO 8601). */
10069
10405
  created_at: z.ZodOptional<z.ZodString>;
10406
+ /** Client-declared video duration in milliseconds; not server-probed. */
10407
+ duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10070
10408
  /** ID of the underlying storage file that backs this variant (`fil_...`). */
10071
10409
  file: z.ZodOptional<z.ZodString>;
10072
10410
  /** Original filename of the uploaded file for this variant. `null` if the file is not loaded. */
@@ -10101,10 +10439,14 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10101
10439
  url?: string | null | undefined;
10102
10440
  width?: number | null | undefined;
10103
10441
  }>>>;
10442
+ /** Lowercase SHA-256 of the stored bytes. */
10443
+ sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10104
10444
  /** When this variant was last updated (ISO 8601). */
10105
10445
  updated_at: z.ZodOptional<z.ZodString>;
10106
10446
  /** Signed download URL for this variant, resolved at request time. `null` if the file is unavailable. */
10107
10447
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10448
+ /** Expiry of this variant's playable URL. */
10449
+ url_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10108
10450
  /** Identifier for this variant's processing tier. Common values include `"original"` (the unmodified upload) and `"thumbnail"` (a resized preview). */
10109
10451
  variant_key: z.ZodOptional<z.ZodString>;
10110
10452
  /** Width of this variant in pixels. `null` if not recorded. */
@@ -10117,7 +10459,9 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10117
10459
  height?: number | null | undefined;
10118
10460
  url?: string | null | undefined;
10119
10461
  width?: number | null | undefined;
10462
+ byte_size?: number | null | undefined;
10120
10463
  content_type?: string | null | undefined;
10464
+ duration_ms?: number | null | undefined;
10121
10465
  filename?: string | null | undefined;
10122
10466
  image_source?: {
10123
10467
  mime_type?: string | null | undefined;
@@ -10128,6 +10472,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10128
10472
  url?: string | null | undefined;
10129
10473
  width?: number | null | undefined;
10130
10474
  } | null | undefined;
10475
+ sha256?: string | null | undefined;
10476
+ url_expires_at?: string | null | undefined;
10131
10477
  variant_key?: string | undefined;
10132
10478
  }, {
10133
10479
  id: string;
@@ -10137,7 +10483,9 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10137
10483
  height?: number | null | undefined;
10138
10484
  url?: string | null | undefined;
10139
10485
  width?: number | null | undefined;
10486
+ byte_size?: number | null | undefined;
10140
10487
  content_type?: string | null | undefined;
10488
+ duration_ms?: number | null | undefined;
10141
10489
  filename?: string | null | undefined;
10142
10490
  image_source?: {
10143
10491
  mime_type?: string | null | undefined;
@@ -10148,6 +10496,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10148
10496
  url?: string | null | undefined;
10149
10497
  width?: number | null | undefined;
10150
10498
  } | null | undefined;
10499
+ sha256?: string | null | undefined;
10500
+ url_expires_at?: string | null | undefined;
10151
10501
  variant_key?: string | undefined;
10152
10502
  }>, "many">>;
10153
10503
  /** Version number of the attached artifact at the time of attachment. Present on `artifact` type only. `null` otherwise. */
@@ -10188,7 +10538,9 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10188
10538
  height?: number | null | undefined;
10189
10539
  url?: string | null | undefined;
10190
10540
  width?: number | null | undefined;
10541
+ byte_size?: number | null | undefined;
10191
10542
  content_type?: string | null | undefined;
10543
+ duration_ms?: number | null | undefined;
10192
10544
  filename?: string | null | undefined;
10193
10545
  image_source?: {
10194
10546
  mime_type?: string | null | undefined;
@@ -10199,6 +10551,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10199
10551
  url?: string | null | undefined;
10200
10552
  width?: number | null | undefined;
10201
10553
  } | null | undefined;
10554
+ sha256?: string | null | undefined;
10555
+ url_expires_at?: string | null | undefined;
10202
10556
  variant_key?: string | undefined;
10203
10557
  }[] | undefined;
10204
10558
  version?: number | null | undefined;
@@ -10236,7 +10590,9 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10236
10590
  height?: number | null | undefined;
10237
10591
  url?: string | null | undefined;
10238
10592
  width?: number | null | undefined;
10593
+ byte_size?: number | null | undefined;
10239
10594
  content_type?: string | null | undefined;
10595
+ duration_ms?: number | null | undefined;
10240
10596
  filename?: string | null | undefined;
10241
10597
  image_source?: {
10242
10598
  mime_type?: string | null | undefined;
@@ -10247,6 +10603,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10247
10603
  url?: string | null | undefined;
10248
10604
  width?: number | null | undefined;
10249
10605
  } | null | undefined;
10606
+ sha256?: string | null | undefined;
10607
+ url_expires_at?: string | null | undefined;
10250
10608
  variant_key?: string | undefined;
10251
10609
  }[] | undefined;
10252
10610
  version?: number | null | undefined;
@@ -10477,7 +10835,9 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10477
10835
  height?: number | null | undefined;
10478
10836
  url?: string | null | undefined;
10479
10837
  width?: number | null | undefined;
10838
+ byte_size?: number | null | undefined;
10480
10839
  content_type?: string | null | undefined;
10840
+ duration_ms?: number | null | undefined;
10481
10841
  filename?: string | null | undefined;
10482
10842
  image_source?: {
10483
10843
  mime_type?: string | null | undefined;
@@ -10488,6 +10848,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10488
10848
  url?: string | null | undefined;
10489
10849
  width?: number | null | undefined;
10490
10850
  } | null | undefined;
10851
+ sha256?: string | null | undefined;
10852
+ url_expires_at?: string | null | undefined;
10491
10853
  variant_key?: string | undefined;
10492
10854
  }[] | undefined;
10493
10855
  version?: number | null | undefined;
@@ -10613,7 +10975,9 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10613
10975
  height?: number | null | undefined;
10614
10976
  url?: string | null | undefined;
10615
10977
  width?: number | null | undefined;
10978
+ byte_size?: number | null | undefined;
10616
10979
  content_type?: string | null | undefined;
10980
+ duration_ms?: number | null | undefined;
10617
10981
  filename?: string | null | undefined;
10618
10982
  image_source?: {
10619
10983
  mime_type?: string | null | undefined;
@@ -10624,6 +10988,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10624
10988
  url?: string | null | undefined;
10625
10989
  width?: number | null | undefined;
10626
10990
  } | null | undefined;
10991
+ sha256?: string | null | undefined;
10992
+ url_expires_at?: string | null | undefined;
10627
10993
  variant_key?: string | undefined;
10628
10994
  }[] | undefined;
10629
10995
  version?: number | null | undefined;
@@ -10753,7 +11119,9 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10753
11119
  height?: number | null | undefined;
10754
11120
  url?: string | null | undefined;
10755
11121
  width?: number | null | undefined;
11122
+ byte_size?: number | null | undefined;
10756
11123
  content_type?: string | null | undefined;
11124
+ duration_ms?: number | null | undefined;
10757
11125
  filename?: string | null | undefined;
10758
11126
  image_source?: {
10759
11127
  mime_type?: string | null | undefined;
@@ -10764,6 +11132,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10764
11132
  url?: string | null | undefined;
10765
11133
  width?: number | null | undefined;
10766
11134
  } | null | undefined;
11135
+ sha256?: string | null | undefined;
11136
+ url_expires_at?: string | null | undefined;
10767
11137
  variant_key?: string | undefined;
10768
11138
  }[] | undefined;
10769
11139
  version?: number | null | undefined;
@@ -10895,7 +11265,9 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10895
11265
  height?: number | null | undefined;
10896
11266
  url?: string | null | undefined;
10897
11267
  width?: number | null | undefined;
11268
+ byte_size?: number | null | undefined;
10898
11269
  content_type?: string | null | undefined;
11270
+ duration_ms?: number | null | undefined;
10899
11271
  filename?: string | null | undefined;
10900
11272
  image_source?: {
10901
11273
  mime_type?: string | null | undefined;
@@ -10906,6 +11278,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10906
11278
  url?: string | null | undefined;
10907
11279
  width?: number | null | undefined;
10908
11280
  } | null | undefined;
11281
+ sha256?: string | null | undefined;
11282
+ url_expires_at?: string | null | undefined;
10909
11283
  variant_key?: string | undefined;
10910
11284
  }[] | undefined;
10911
11285
  version?: number | null | undefined;
@@ -11480,14 +11854,14 @@ export declare const runtimeCapabilitySchema: z.ZodObject<{
11480
11854
  expires_at: z.ZodString;
11481
11855
  gateway_url: z.ZodString;
11482
11856
  }, "strip", z.ZodTypeAny, {
11857
+ expires_at: string;
11483
11858
  bindings: Record<string, {} | null>;
11484
11859
  capability: string;
11485
- expires_at: string;
11486
11860
  gateway_url: string;
11487
11861
  }, {
11862
+ expires_at: string;
11488
11863
  bindings: Record<string, {} | null>;
11489
11864
  capability: string;
11490
- expires_at: string;
11491
11865
  gateway_url: string;
11492
11866
  }>;
11493
11867
  /** A single runtime environment variable available within a script execution context, including its key, description, and origin. */
@@ -16060,7 +16434,7 @@ export declare const agentSchema: z.ZodObject<{
16060
16434
  /** A cloud computer resource provisioned for an agent to use for browser and desktop automation tasks. */
16061
16435
  export interface AgentComputer {
16062
16436
  /** ID of the agent that owns this computer (`agi_...`). `null` if the computer is not yet assigned to an agent. */
16063
- agent?: string | undefined;
16437
+ agent?: string | null | undefined;
16064
16438
  /** ID of the app this computer belongs to (`dap_...`). */
16065
16439
  app?: string | undefined;
16066
16440
  /** Provider-specific configuration key-value pairs for the computer. Structure depends on the underlying compute provider. */
@@ -16068,32 +16442,36 @@ export interface AgentComputer {
16068
16442
  /** When the computer was created (ISO 8601). */
16069
16443
  created_at?: string | undefined;
16070
16444
  /** Human-readable error description when `status` is `"error"`. `null` otherwise. */
16071
- error_message?: string | undefined;
16445
+ error_message?: string | null | undefined;
16072
16446
  /** Computer ID (`cmp_...`). */
16073
16447
  id: string;
16448
+ /** Stable key unique within the thread, or null if unset. */
16449
+ key?: string | null | undefined;
16074
16450
  /** When the computer last reported activity or received a command. `null` if the computer has never been active. */
16075
- last_active_at?: string | undefined;
16451
+ last_active_at?: string | null | undefined;
16076
16452
  /** Unique, stable identifier you assign to this computer within its app. `null` if not set. */
16077
- lookup_key?: string | undefined;
16453
+ lookup_key?: string | null | undefined;
16078
16454
  /** Arbitrary key-value metadata you attached to the computer. `null` if none was provided. */
16079
16455
  metadata?: Record<string, unknown> | undefined;
16080
16456
  /** Human-readable display name for the computer. `null` if not set. */
16081
16457
  name?: string | undefined;
16082
- /** Compute backend powering this computer: `"sprites"` (Fly Sprites) or `"vercel"` (Vercel Sandbox). */
16458
+ /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox) or `"e2b"` (E2B). */
16083
16459
  provider?: string | undefined;
16084
- /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`). */
16085
- region?: string | undefined;
16460
+ /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`, `"e2b"`). */
16461
+ region?: string | null | undefined;
16086
16462
  /** URL of the live screenshot sprite used to render a real-time preview of the computer's screen. `null` when no sprite is available. */
16087
- sprite_url?: string | undefined;
16463
+ sprite_url?: string | null | undefined;
16088
16464
  /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"error"`, and `"terminated"`. */
16089
- status?: string | undefined;
16465
+ status?: string | null | undefined;
16466
+ /** Thread this computer belongs to, or null for a non-thread computer. */
16467
+ thread_id?: string | null | undefined;
16090
16468
  /** When the computer record was last modified (ISO 8601). */
16091
16469
  updated_at?: string | undefined;
16092
16470
  }
16093
16471
  /** Runtime validator for {@link AgentComputer}. */
16094
16472
  export declare const agentComputerSchema: z.ZodObject<{
16095
16473
  /** ID of the agent that owns this computer (`agi_...`). `null` if the computer is not yet assigned to an agent. */
16096
- agent: z.ZodOptional<z.ZodString>;
16474
+ agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16097
16475
  /** ID of the app this computer belongs to (`dap_...`). */
16098
16476
  app: z.ZodOptional<z.ZodString>;
16099
16477
  /** Provider-specific configuration key-value pairs for the computer. Structure depends on the underlying compute provider. */
@@ -16101,59 +16479,67 @@ export declare const agentComputerSchema: z.ZodObject<{
16101
16479
  /** When the computer was created (ISO 8601). */
16102
16480
  created_at: z.ZodOptional<z.ZodString>;
16103
16481
  /** Human-readable error description when `status` is `"error"`. `null` otherwise. */
16104
- error_message: z.ZodOptional<z.ZodString>;
16482
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16105
16483
  /** Computer ID (`cmp_...`). */
16106
16484
  id: z.ZodString;
16485
+ /** Stable key unique within the thread, or null if unset. */
16486
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16107
16487
  /** When the computer last reported activity or received a command. `null` if the computer has never been active. */
16108
- last_active_at: z.ZodOptional<z.ZodString>;
16488
+ last_active_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16109
16489
  /** Unique, stable identifier you assign to this computer within its app. `null` if not set. */
16110
- lookup_key: z.ZodOptional<z.ZodString>;
16490
+ lookup_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16111
16491
  /** Arbitrary key-value metadata you attached to the computer. `null` if none was provided. */
16112
16492
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
16113
16493
  /** Human-readable display name for the computer. `null` if not set. */
16114
16494
  name: z.ZodOptional<z.ZodString>;
16115
- /** Compute backend powering this computer: `"sprites"` (Fly Sprites) or `"vercel"` (Vercel Sandbox). */
16495
+ /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox) or `"e2b"` (E2B). */
16116
16496
  provider: z.ZodOptional<z.ZodString>;
16117
- /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`). */
16118
- region: z.ZodOptional<z.ZodString>;
16497
+ /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`, `"e2b"`). */
16498
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16119
16499
  /** URL of the live screenshot sprite used to render a real-time preview of the computer's screen. `null` when no sprite is available. */
16120
- sprite_url: z.ZodOptional<z.ZodString>;
16500
+ sprite_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16121
16501
  /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"error"`, and `"terminated"`. */
16122
- status: z.ZodOptional<z.ZodString>;
16502
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16503
+ /** Thread this computer belongs to, or null for a non-thread computer. */
16504
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16123
16505
  /** When the computer record was last modified (ISO 8601). */
16124
16506
  updated_at: z.ZodOptional<z.ZodString>;
16125
16507
  }, "strip", z.ZodTypeAny, {
16126
16508
  id: string;
16509
+ key?: string | null | undefined;
16127
16510
  name?: string | undefined;
16128
- agent?: string | undefined;
16129
- status?: string | undefined;
16511
+ agent?: string | null | undefined;
16512
+ status?: string | null | undefined;
16130
16513
  app?: string | undefined;
16131
16514
  created_at?: string | undefined;
16132
16515
  updated_at?: string | undefined;
16133
- lookup_key?: string | undefined;
16516
+ lookup_key?: string | null | undefined;
16134
16517
  metadata?: Record<string, {} | null> | undefined;
16518
+ thread_id?: string | null | undefined;
16135
16519
  config?: Record<string, {} | null> | undefined;
16136
16520
  provider?: string | undefined;
16137
- error_message?: string | undefined;
16138
- last_active_at?: string | undefined;
16139
- region?: string | undefined;
16140
- sprite_url?: string | undefined;
16521
+ error_message?: string | null | undefined;
16522
+ last_active_at?: string | null | undefined;
16523
+ region?: string | null | undefined;
16524
+ sprite_url?: string | null | undefined;
16141
16525
  }, {
16142
16526
  id: string;
16527
+ key?: string | null | undefined;
16143
16528
  name?: string | undefined;
16144
- agent?: string | undefined;
16145
- status?: string | undefined;
16529
+ agent?: string | null | undefined;
16530
+ status?: string | null | undefined;
16146
16531
  app?: string | undefined;
16147
16532
  created_at?: string | undefined;
16148
16533
  updated_at?: string | undefined;
16149
- lookup_key?: string | undefined;
16534
+ lookup_key?: string | null | undefined;
16150
16535
  metadata?: Record<string, {} | null> | undefined;
16536
+ thread_id?: string | null | undefined;
16151
16537
  config?: Record<string, {} | null> | undefined;
16152
16538
  provider?: string | undefined;
16153
- error_message?: string | undefined;
16154
- last_active_at?: string | undefined;
16155
- region?: string | undefined;
16156
- sprite_url?: string | undefined;
16539
+ error_message?: string | null | undefined;
16540
+ last_active_at?: string | null | undefined;
16541
+ region?: string | null | undefined;
16542
+ sprite_url?: string | null | undefined;
16157
16543
  }>;
16158
16544
  /** A list of agent computers returned by a list query. */
16159
16545
  export interface AgentComputerListResponse {
@@ -16165,7 +16551,7 @@ export declare const agentComputerListResponseSchema: z.ZodObject<{
16165
16551
  /** Array of agent computer objects matching the query. */
16166
16552
  data: z.ZodArray<z.ZodObject<{
16167
16553
  /** ID of the agent that owns this computer (`agi_...`). `null` if the computer is not yet assigned to an agent. */
16168
- agent: z.ZodOptional<z.ZodString>;
16554
+ agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16169
16555
  /** ID of the app this computer belongs to (`dap_...`). */
16170
16556
  app: z.ZodOptional<z.ZodString>;
16171
16557
  /** Provider-specific configuration key-value pairs for the computer. Structure depends on the underlying compute provider. */
@@ -16173,95 +16559,107 @@ export declare const agentComputerListResponseSchema: z.ZodObject<{
16173
16559
  /** When the computer was created (ISO 8601). */
16174
16560
  created_at: z.ZodOptional<z.ZodString>;
16175
16561
  /** Human-readable error description when `status` is `"error"`. `null` otherwise. */
16176
- error_message: z.ZodOptional<z.ZodString>;
16562
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16177
16563
  /** Computer ID (`cmp_...`). */
16178
16564
  id: z.ZodString;
16565
+ /** Stable key unique within the thread, or null if unset. */
16566
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16179
16567
  /** When the computer last reported activity or received a command. `null` if the computer has never been active. */
16180
- last_active_at: z.ZodOptional<z.ZodString>;
16568
+ last_active_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16181
16569
  /** Unique, stable identifier you assign to this computer within its app. `null` if not set. */
16182
- lookup_key: z.ZodOptional<z.ZodString>;
16570
+ lookup_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16183
16571
  /** Arbitrary key-value metadata you attached to the computer. `null` if none was provided. */
16184
16572
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
16185
16573
  /** Human-readable display name for the computer. `null` if not set. */
16186
16574
  name: z.ZodOptional<z.ZodString>;
16187
- /** Compute backend powering this computer: `"sprites"` (Fly Sprites) or `"vercel"` (Vercel Sandbox). */
16575
+ /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox) or `"e2b"` (E2B). */
16188
16576
  provider: z.ZodOptional<z.ZodString>;
16189
- /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`). */
16190
- region: z.ZodOptional<z.ZodString>;
16577
+ /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`, `"e2b"`). */
16578
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16191
16579
  /** URL of the live screenshot sprite used to render a real-time preview of the computer's screen. `null` when no sprite is available. */
16192
- sprite_url: z.ZodOptional<z.ZodString>;
16580
+ sprite_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16193
16581
  /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"error"`, and `"terminated"`. */
16194
- status: z.ZodOptional<z.ZodString>;
16582
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16583
+ /** Thread this computer belongs to, or null for a non-thread computer. */
16584
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16195
16585
  /** When the computer record was last modified (ISO 8601). */
16196
16586
  updated_at: z.ZodOptional<z.ZodString>;
16197
16587
  }, "strip", z.ZodTypeAny, {
16198
16588
  id: string;
16589
+ key?: string | null | undefined;
16199
16590
  name?: string | undefined;
16200
- agent?: string | undefined;
16201
- status?: string | undefined;
16591
+ agent?: string | null | undefined;
16592
+ status?: string | null | undefined;
16202
16593
  app?: string | undefined;
16203
16594
  created_at?: string | undefined;
16204
16595
  updated_at?: string | undefined;
16205
- lookup_key?: string | undefined;
16596
+ lookup_key?: string | null | undefined;
16206
16597
  metadata?: Record<string, {} | null> | undefined;
16598
+ thread_id?: string | null | undefined;
16207
16599
  config?: Record<string, {} | null> | undefined;
16208
16600
  provider?: string | undefined;
16209
- error_message?: string | undefined;
16210
- last_active_at?: string | undefined;
16211
- region?: string | undefined;
16212
- sprite_url?: string | undefined;
16601
+ error_message?: string | null | undefined;
16602
+ last_active_at?: string | null | undefined;
16603
+ region?: string | null | undefined;
16604
+ sprite_url?: string | null | undefined;
16213
16605
  }, {
16214
16606
  id: string;
16607
+ key?: string | null | undefined;
16215
16608
  name?: string | undefined;
16216
- agent?: string | undefined;
16217
- status?: string | undefined;
16609
+ agent?: string | null | undefined;
16610
+ status?: string | null | undefined;
16218
16611
  app?: string | undefined;
16219
16612
  created_at?: string | undefined;
16220
16613
  updated_at?: string | undefined;
16221
- lookup_key?: string | undefined;
16614
+ lookup_key?: string | null | undefined;
16222
16615
  metadata?: Record<string, {} | null> | undefined;
16616
+ thread_id?: string | null | undefined;
16223
16617
  config?: Record<string, {} | null> | undefined;
16224
16618
  provider?: string | undefined;
16225
- error_message?: string | undefined;
16226
- last_active_at?: string | undefined;
16227
- region?: string | undefined;
16228
- sprite_url?: string | undefined;
16619
+ error_message?: string | null | undefined;
16620
+ last_active_at?: string | null | undefined;
16621
+ region?: string | null | undefined;
16622
+ sprite_url?: string | null | undefined;
16229
16623
  }>, "many">;
16230
16624
  }, "strip", z.ZodTypeAny, {
16231
16625
  data: {
16232
16626
  id: string;
16627
+ key?: string | null | undefined;
16233
16628
  name?: string | undefined;
16234
- agent?: string | undefined;
16235
- status?: string | undefined;
16629
+ agent?: string | null | undefined;
16630
+ status?: string | null | undefined;
16236
16631
  app?: string | undefined;
16237
16632
  created_at?: string | undefined;
16238
16633
  updated_at?: string | undefined;
16239
- lookup_key?: string | undefined;
16634
+ lookup_key?: string | null | undefined;
16240
16635
  metadata?: Record<string, {} | null> | undefined;
16636
+ thread_id?: string | null | undefined;
16241
16637
  config?: Record<string, {} | null> | undefined;
16242
16638
  provider?: string | undefined;
16243
- error_message?: string | undefined;
16244
- last_active_at?: string | undefined;
16245
- region?: string | undefined;
16246
- sprite_url?: string | undefined;
16639
+ error_message?: string | null | undefined;
16640
+ last_active_at?: string | null | undefined;
16641
+ region?: string | null | undefined;
16642
+ sprite_url?: string | null | undefined;
16247
16643
  }[];
16248
16644
  }, {
16249
16645
  data: {
16250
16646
  id: string;
16647
+ key?: string | null | undefined;
16251
16648
  name?: string | undefined;
16252
- agent?: string | undefined;
16253
- status?: string | undefined;
16649
+ agent?: string | null | undefined;
16650
+ status?: string | null | undefined;
16254
16651
  app?: string | undefined;
16255
16652
  created_at?: string | undefined;
16256
16653
  updated_at?: string | undefined;
16257
- lookup_key?: string | undefined;
16654
+ lookup_key?: string | null | undefined;
16258
16655
  metadata?: Record<string, {} | null> | undefined;
16656
+ thread_id?: string | null | undefined;
16259
16657
  config?: Record<string, {} | null> | undefined;
16260
16658
  provider?: string | undefined;
16261
- error_message?: string | undefined;
16262
- last_active_at?: string | undefined;
16263
- region?: string | undefined;
16264
- sprite_url?: string | undefined;
16659
+ error_message?: string | null | undefined;
16660
+ last_active_at?: string | null | undefined;
16661
+ region?: string | null | undefined;
16662
+ sprite_url?: string | null | undefined;
16265
16663
  }[];
16266
16664
  }>;
16267
16665
  /** The response returned by `POST /api/v1/agents`. Contains all agent fields plus an optional `installed_configs` array when a `template_bundle` was supplied in the request. */
@@ -20848,58 +21246,467 @@ export declare const agentListResponseSchema: z.ZodObject<{
20848
21246
  total_entries?: number | undefined;
20849
21247
  total_pages?: number | undefined;
20850
21248
  }>;
20851
- /** An agent routine defines a reusable handler — script, preset, or chain — that runs in response to events or on a schedule. */
20852
- export interface AgentRoutine {
20853
- /** Access control list for the routine. Contains a `grants` array where each entry specifies `principal_type`, `principal`, and `actions` (`"read"`, `"invoke"`, or `"assign"` — an `"assign"` grant names the agents or orgs that may be handed this routine's embedded work items). `null` when no ACL restrictions are applied and the routine is accessible to all members of its scope. */
20854
- acl?: Acl | undefined;
20855
- /** ID of the agent that owns this routine (`agi_...`). */
20856
- agent?: string | undefined;
20857
- /** Application that scopes this routine (`dap_...`). */
20858
- app?: string | undefined;
20859
- /** ID of the Config record that backs this routine's configuration (`cfg_...`). `null` when the routine is not config-backed. */
20860
- config?: string | undefined;
20861
- /** When this routine was created (ISO 8601). */
20862
- created_at?: string | undefined;
20863
- /** Optional description of what this routine does. `null` when not set. */
20864
- description?: string | undefined;
20865
- /** Additional configuration controlling how the event trigger is matched or filtered. Shape depends on `event_type`. `null` when not configured. */
20866
- event_config?: Record<string, unknown> | undefined;
20867
- /** Platform event type that triggers this routine, e.g. `"agentroutine.invoked"`. `null` for schedule-only routines. */
20868
- event_type?: string | undefined;
20869
- /** Execution strategy for this routine. One of `"workflow_graph"`, `"script"`, `"preset"`, or `"chain"`. */
20870
- handler_type?: string | undefined;
20871
- /** Routine ID (`arn_...`). */
21249
+ /** Originating agent. */
21250
+ export interface AgentRequestAgent {
20872
21251
  id: string;
20873
- /** ID of the AgentRoutineTemplate Config this routine was last provisioned or updated from (`cfg_...`). `null` for hand-built routines. */
20874
- last_applied_template_config?: string | undefined;
20875
- /** Unique human-readable key used to look up this routine without knowing its ID. `null` when not set. */
20876
- lookup_key?: string | undefined;
20877
- /** Visibility and explicit recipient selection for messages emitted by this routine. */
20878
- message_policy?: MessagePolicy | undefined;
20879
- /** Arbitrary key-value metadata attached to this routine. `null` when not set. */
20880
- metadata?: Record<string, unknown> | undefined;
20881
- /** Human-readable name for the routine. */
20882
- name?: string | undefined;
20883
- /** Resolved preset configuration when `handler_type` is `"preset"`. `null` for other handler types. */
20884
- preset_config?: PresetConfig | undefined;
20885
- /** Name of the preset invoked when `handler_type` is `"preset"`. `null` for other handler types. */
20886
- preset_name?: string | undefined;
20887
- /** Cron expression controlling when the routine fires on a schedule. `null` for event-only routines. */
20888
- schedule?: string | undefined;
20889
- /** Inline script body executed when `handler_type` is `"script"`. `null` for other handler types. */
20890
- script?: string | undefined;
20891
- /** Lifecycle status of the routine. One of `"draft"`, `"active"`, or `"paused"`. Only `"active"` routines respond to triggers. */
21252
+ name?: string | null | undefined;
21253
+ }
21254
+ /** Runtime validator for {@link AgentRequestAgent}. */
21255
+ export declare const agentRequestAgentSchema: z.ZodObject<{
21256
+ id: z.ZodString;
21257
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21258
+ }, "strip", z.ZodTypeAny, {
21259
+ id: string;
21260
+ name?: string | null | undefined;
21261
+ }, {
21262
+ id: string;
21263
+ name?: string | null | undefined;
21264
+ }>;
21265
+ /** A request for human approval or input. Secret input is never returned. */
21266
+ export interface AgentRequest {
21267
+ /** Originating agent. */
21268
+ agent?: AgentRequestAgent | undefined;
21269
+ /** Approval policy, excluding user IDs. */
21270
+ approvers?: Approvers | undefined;
21271
+ /** Expiration time. */
21272
+ expires_at?: string | undefined;
21273
+ /** Request ID (`arq_...`). */
21274
+ id: string;
21275
+ /** Whether the authenticated caller is an approver, regardless of request status. */
21276
+ is_approver?: boolean | undefined;
21277
+ /** Registered request kind. */
21278
+ kind?: string | undefined;
21279
+ /** Origin references. */
21280
+ origin?: Origin | undefined;
21281
+ /** Question request payload. */
21282
+ payload?: Payload | undefined;
21283
+ /** Answer or rejection reason; null before resolution. */
21284
+ resolution?: Resolution | null | undefined;
21285
+ /** Resolution time. */
21286
+ resolved_at?: string | undefined;
21287
+ /** Resolving user ID. */
21288
+ resolved_by?: string | undefined;
21289
+ /** Request status. */
20892
21290
  status?: string | undefined;
20893
- /** Ordered list of chain steps (present when handler_type is "chain"). Each step is a plain map with handler_type, optional body fields (preset_name / preset_config / script / config), and step-local plumbing (name, inputs, output_key, on_error). */
20894
- steps?: Record<string, unknown>[] | undefined;
20895
- /** Execution context in which runs are created. One of `"event"` (background job) or `"chat_session"` (interactive session). Defaults to `"event"`. */
20896
- trigger_context?: string | undefined;
20897
- /** When this routine was last updated (ISO 8601). */
20898
- updated_at?: string | undefined;
20899
- /** Optional co-owner user (`usr_...`). When set, that user shares view/modify/delete authority on this routine without administering the parent agent. `null` when not set. Never inferred from the caller — only present when explicitly provided on create/update. */
20900
- user?: string | undefined;
21291
+ /** Kind-provided summary. */
21292
+ summary?: Summary | undefined;
20901
21293
  }
20902
- /** Runtime validator for {@link AgentRoutine}. */
21294
+ /** Runtime validator for {@link AgentRequest}. */
21295
+ export declare const agentRequestSchema: z.ZodObject<{
21296
+ /** Originating agent. */
21297
+ agent: z.ZodOptional<z.ZodObject<{
21298
+ id: z.ZodString;
21299
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21300
+ }, "strip", z.ZodTypeAny, {
21301
+ id: string;
21302
+ name?: string | null | undefined;
21303
+ }, {
21304
+ id: string;
21305
+ name?: string | null | undefined;
21306
+ }>>;
21307
+ /** Approval policy, excluding user IDs. */
21308
+ approvers: z.ZodOptional<z.ZodObject<{
21309
+ mode: z.ZodString;
21310
+ }, "strip", z.ZodTypeAny, {
21311
+ mode: string;
21312
+ }, {
21313
+ mode: string;
21314
+ }>>;
21315
+ /** Expiration time. */
21316
+ expires_at: z.ZodOptional<z.ZodString>;
21317
+ /** Request ID (`arq_...`). */
21318
+ id: z.ZodString;
21319
+ /** Whether the authenticated caller is an approver, regardless of request status. */
21320
+ is_approver: z.ZodOptional<z.ZodBoolean>;
21321
+ /** Registered request kind. */
21322
+ kind: z.ZodOptional<z.ZodString>;
21323
+ /** Origin references. */
21324
+ origin: z.ZodOptional<z.ZodObject<{
21325
+ routine_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21326
+ session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21327
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21328
+ }, "strip", z.ZodTypeAny, {
21329
+ routine_id?: string | null | undefined;
21330
+ session_id?: string | null | undefined;
21331
+ thread_id?: string | null | undefined;
21332
+ }, {
21333
+ routine_id?: string | null | undefined;
21334
+ session_id?: string | null | undefined;
21335
+ thread_id?: string | null | undefined;
21336
+ }>>;
21337
+ /** Question request payload. */
21338
+ payload: z.ZodOptional<z.ZodObject<{
21339
+ question: z.ZodString;
21340
+ }, "strip", z.ZodTypeAny, {
21341
+ question: string;
21342
+ }, {
21343
+ question: string;
21344
+ }>>;
21345
+ /** Answer or rejection reason; null before resolution. */
21346
+ resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21347
+ answer: z.ZodOptional<z.ZodString>;
21348
+ reason: z.ZodOptional<z.ZodString>;
21349
+ }, "strip", z.ZodTypeAny, {
21350
+ answer?: string | undefined;
21351
+ reason?: string | undefined;
21352
+ }, {
21353
+ answer?: string | undefined;
21354
+ reason?: string | undefined;
21355
+ }>>>;
21356
+ /** Resolution time. */
21357
+ resolved_at: z.ZodOptional<z.ZodString>;
21358
+ /** Resolving user ID. */
21359
+ resolved_by: z.ZodOptional<z.ZodString>;
21360
+ /** Request status. */
21361
+ status: z.ZodOptional<z.ZodString>;
21362
+ /** Kind-provided summary. */
21363
+ summary: z.ZodOptional<z.ZodObject<{
21364
+ lines: z.ZodArray<z.ZodString, "many">;
21365
+ title: z.ZodString;
21366
+ }, "strip", z.ZodTypeAny, {
21367
+ title: string;
21368
+ lines: string[];
21369
+ }, {
21370
+ title: string;
21371
+ lines: string[];
21372
+ }>>;
21373
+ }, "strip", z.ZodTypeAny, {
21374
+ id: string;
21375
+ kind?: string | undefined;
21376
+ agent?: {
21377
+ id: string;
21378
+ name?: string | null | undefined;
21379
+ } | undefined;
21380
+ status?: string | undefined;
21381
+ payload?: {
21382
+ question: string;
21383
+ } | undefined;
21384
+ expires_at?: string | undefined;
21385
+ approvers?: {
21386
+ mode: string;
21387
+ } | undefined;
21388
+ is_approver?: boolean | undefined;
21389
+ origin?: {
21390
+ routine_id?: string | null | undefined;
21391
+ session_id?: string | null | undefined;
21392
+ thread_id?: string | null | undefined;
21393
+ } | undefined;
21394
+ resolution?: {
21395
+ answer?: string | undefined;
21396
+ reason?: string | undefined;
21397
+ } | null | undefined;
21398
+ resolved_at?: string | undefined;
21399
+ resolved_by?: string | undefined;
21400
+ summary?: {
21401
+ title: string;
21402
+ lines: string[];
21403
+ } | undefined;
21404
+ }, {
21405
+ id: string;
21406
+ kind?: string | undefined;
21407
+ agent?: {
21408
+ id: string;
21409
+ name?: string | null | undefined;
21410
+ } | undefined;
21411
+ status?: string | undefined;
21412
+ payload?: {
21413
+ question: string;
21414
+ } | undefined;
21415
+ expires_at?: string | undefined;
21416
+ approvers?: {
21417
+ mode: string;
21418
+ } | undefined;
21419
+ is_approver?: boolean | undefined;
21420
+ origin?: {
21421
+ routine_id?: string | null | undefined;
21422
+ session_id?: string | null | undefined;
21423
+ thread_id?: string | null | undefined;
21424
+ } | undefined;
21425
+ resolution?: {
21426
+ answer?: string | undefined;
21427
+ reason?: string | undefined;
21428
+ } | null | undefined;
21429
+ resolved_at?: string | undefined;
21430
+ resolved_by?: string | undefined;
21431
+ summary?: {
21432
+ title: string;
21433
+ lines: string[];
21434
+ } | undefined;
21435
+ }>;
21436
+ /** A page of visible agent requests. */
21437
+ export interface AgentRequestListResponse {
21438
+ /** Visible requests. */
21439
+ data: AgentRequest[];
21440
+ /** Pass as cursor for the next page; null at the end. */
21441
+ next_cursor?: string | undefined;
21442
+ }
21443
+ /** Runtime validator for {@link AgentRequestListResponse}. */
21444
+ export declare const agentRequestListResponseSchema: z.ZodObject<{
21445
+ /** Visible requests. */
21446
+ data: z.ZodArray<z.ZodObject<{
21447
+ /** Originating agent. */
21448
+ agent: z.ZodOptional<z.ZodObject<{
21449
+ id: z.ZodString;
21450
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21451
+ }, "strip", z.ZodTypeAny, {
21452
+ id: string;
21453
+ name?: string | null | undefined;
21454
+ }, {
21455
+ id: string;
21456
+ name?: string | null | undefined;
21457
+ }>>;
21458
+ /** Approval policy, excluding user IDs. */
21459
+ approvers: z.ZodOptional<z.ZodObject<{
21460
+ mode: z.ZodString;
21461
+ }, "strip", z.ZodTypeAny, {
21462
+ mode: string;
21463
+ }, {
21464
+ mode: string;
21465
+ }>>;
21466
+ /** Expiration time. */
21467
+ expires_at: z.ZodOptional<z.ZodString>;
21468
+ /** Request ID (`arq_...`). */
21469
+ id: z.ZodString;
21470
+ /** Whether the authenticated caller is an approver, regardless of request status. */
21471
+ is_approver: z.ZodOptional<z.ZodBoolean>;
21472
+ /** Registered request kind. */
21473
+ kind: z.ZodOptional<z.ZodString>;
21474
+ /** Origin references. */
21475
+ origin: z.ZodOptional<z.ZodObject<{
21476
+ routine_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21477
+ session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21478
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21479
+ }, "strip", z.ZodTypeAny, {
21480
+ routine_id?: string | null | undefined;
21481
+ session_id?: string | null | undefined;
21482
+ thread_id?: string | null | undefined;
21483
+ }, {
21484
+ routine_id?: string | null | undefined;
21485
+ session_id?: string | null | undefined;
21486
+ thread_id?: string | null | undefined;
21487
+ }>>;
21488
+ /** Question request payload. */
21489
+ payload: z.ZodOptional<z.ZodObject<{
21490
+ question: z.ZodString;
21491
+ }, "strip", z.ZodTypeAny, {
21492
+ question: string;
21493
+ }, {
21494
+ question: string;
21495
+ }>>;
21496
+ /** Answer or rejection reason; null before resolution. */
21497
+ resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21498
+ answer: z.ZodOptional<z.ZodString>;
21499
+ reason: z.ZodOptional<z.ZodString>;
21500
+ }, "strip", z.ZodTypeAny, {
21501
+ answer?: string | undefined;
21502
+ reason?: string | undefined;
21503
+ }, {
21504
+ answer?: string | undefined;
21505
+ reason?: string | undefined;
21506
+ }>>>;
21507
+ /** Resolution time. */
21508
+ resolved_at: z.ZodOptional<z.ZodString>;
21509
+ /** Resolving user ID. */
21510
+ resolved_by: z.ZodOptional<z.ZodString>;
21511
+ /** Request status. */
21512
+ status: z.ZodOptional<z.ZodString>;
21513
+ /** Kind-provided summary. */
21514
+ summary: z.ZodOptional<z.ZodObject<{
21515
+ lines: z.ZodArray<z.ZodString, "many">;
21516
+ title: z.ZodString;
21517
+ }, "strip", z.ZodTypeAny, {
21518
+ title: string;
21519
+ lines: string[];
21520
+ }, {
21521
+ title: string;
21522
+ lines: string[];
21523
+ }>>;
21524
+ }, "strip", z.ZodTypeAny, {
21525
+ id: string;
21526
+ kind?: string | undefined;
21527
+ agent?: {
21528
+ id: string;
21529
+ name?: string | null | undefined;
21530
+ } | undefined;
21531
+ status?: string | undefined;
21532
+ payload?: {
21533
+ question: string;
21534
+ } | undefined;
21535
+ expires_at?: string | undefined;
21536
+ approvers?: {
21537
+ mode: string;
21538
+ } | undefined;
21539
+ is_approver?: boolean | undefined;
21540
+ origin?: {
21541
+ routine_id?: string | null | undefined;
21542
+ session_id?: string | null | undefined;
21543
+ thread_id?: string | null | undefined;
21544
+ } | undefined;
21545
+ resolution?: {
21546
+ answer?: string | undefined;
21547
+ reason?: string | undefined;
21548
+ } | null | undefined;
21549
+ resolved_at?: string | undefined;
21550
+ resolved_by?: string | undefined;
21551
+ summary?: {
21552
+ title: string;
21553
+ lines: string[];
21554
+ } | undefined;
21555
+ }, {
21556
+ id: string;
21557
+ kind?: string | undefined;
21558
+ agent?: {
21559
+ id: string;
21560
+ name?: string | null | undefined;
21561
+ } | undefined;
21562
+ status?: string | undefined;
21563
+ payload?: {
21564
+ question: string;
21565
+ } | undefined;
21566
+ expires_at?: string | undefined;
21567
+ approvers?: {
21568
+ mode: string;
21569
+ } | undefined;
21570
+ is_approver?: boolean | undefined;
21571
+ origin?: {
21572
+ routine_id?: string | null | undefined;
21573
+ session_id?: string | null | undefined;
21574
+ thread_id?: string | null | undefined;
21575
+ } | undefined;
21576
+ resolution?: {
21577
+ answer?: string | undefined;
21578
+ reason?: string | undefined;
21579
+ } | null | undefined;
21580
+ resolved_at?: string | undefined;
21581
+ resolved_by?: string | undefined;
21582
+ summary?: {
21583
+ title: string;
21584
+ lines: string[];
21585
+ } | undefined;
21586
+ }>, "many">;
21587
+ /** Pass as cursor for the next page; null at the end. */
21588
+ next_cursor: z.ZodOptional<z.ZodString>;
21589
+ }, "strip", z.ZodTypeAny, {
21590
+ data: {
21591
+ id: string;
21592
+ kind?: string | undefined;
21593
+ agent?: {
21594
+ id: string;
21595
+ name?: string | null | undefined;
21596
+ } | undefined;
21597
+ status?: string | undefined;
21598
+ payload?: {
21599
+ question: string;
21600
+ } | undefined;
21601
+ expires_at?: string | undefined;
21602
+ approvers?: {
21603
+ mode: string;
21604
+ } | undefined;
21605
+ is_approver?: boolean | undefined;
21606
+ origin?: {
21607
+ routine_id?: string | null | undefined;
21608
+ session_id?: string | null | undefined;
21609
+ thread_id?: string | null | undefined;
21610
+ } | undefined;
21611
+ resolution?: {
21612
+ answer?: string | undefined;
21613
+ reason?: string | undefined;
21614
+ } | null | undefined;
21615
+ resolved_at?: string | undefined;
21616
+ resolved_by?: string | undefined;
21617
+ summary?: {
21618
+ title: string;
21619
+ lines: string[];
21620
+ } | undefined;
21621
+ }[];
21622
+ next_cursor?: string | undefined;
21623
+ }, {
21624
+ data: {
21625
+ id: string;
21626
+ kind?: string | undefined;
21627
+ agent?: {
21628
+ id: string;
21629
+ name?: string | null | undefined;
21630
+ } | undefined;
21631
+ status?: string | undefined;
21632
+ payload?: {
21633
+ question: string;
21634
+ } | undefined;
21635
+ expires_at?: string | undefined;
21636
+ approvers?: {
21637
+ mode: string;
21638
+ } | undefined;
21639
+ is_approver?: boolean | undefined;
21640
+ origin?: {
21641
+ routine_id?: string | null | undefined;
21642
+ session_id?: string | null | undefined;
21643
+ thread_id?: string | null | undefined;
21644
+ } | undefined;
21645
+ resolution?: {
21646
+ answer?: string | undefined;
21647
+ reason?: string | undefined;
21648
+ } | null | undefined;
21649
+ resolved_at?: string | undefined;
21650
+ resolved_by?: string | undefined;
21651
+ summary?: {
21652
+ title: string;
21653
+ lines: string[];
21654
+ } | undefined;
21655
+ }[];
21656
+ next_cursor?: string | undefined;
21657
+ }>;
21658
+ /** An agent routine defines a reusable handler — script, preset, or chain — that runs in response to events or on a schedule. */
21659
+ export interface AgentRoutine {
21660
+ /** Access control list for the routine. Contains a `grants` array where each entry specifies `principal_type`, `principal`, and `actions` (`"read"`, `"invoke"`, or `"assign"` — an `"assign"` grant names the agents or orgs that may be handed this routine's embedded work items). `null` when no ACL restrictions are applied and the routine is accessible to all members of its scope. */
21661
+ acl?: Acl | undefined;
21662
+ /** ID of the agent that owns this routine (`agi_...`). */
21663
+ agent?: string | undefined;
21664
+ /** Application that scopes this routine (`dap_...`). */
21665
+ app?: string | undefined;
21666
+ /** ID of the Config record that backs this routine's configuration (`cfg_...`). `null` when the routine is not config-backed. */
21667
+ config?: string | undefined;
21668
+ /** When this routine was created (ISO 8601). */
21669
+ created_at?: string | undefined;
21670
+ /** Optional description of what this routine does. `null` when not set. */
21671
+ description?: string | undefined;
21672
+ /** Additional configuration controlling how the event trigger is matched or filtered. Shape depends on `event_type`. `null` when not configured. */
21673
+ event_config?: Record<string, unknown> | undefined;
21674
+ /** Platform event type that triggers this routine, e.g. `"agentroutine.invoked"`. `null` for schedule-only routines. */
21675
+ event_type?: string | undefined;
21676
+ /** Execution strategy for this routine. One of `"workflow_graph"`, `"script"`, `"preset"`, or `"chain"`. */
21677
+ handler_type?: string | undefined;
21678
+ /** Routine ID (`arn_...`). */
21679
+ id: string;
21680
+ /** ID of the AgentRoutineTemplate Config this routine was last provisioned or updated from (`cfg_...`). `null` for hand-built routines. */
21681
+ last_applied_template_config?: string | undefined;
21682
+ /** Unique human-readable key used to look up this routine without knowing its ID. `null` when not set. */
21683
+ lookup_key?: string | undefined;
21684
+ /** Visibility and explicit recipient selection for messages emitted by this routine. */
21685
+ message_policy?: MessagePolicy | undefined;
21686
+ /** Arbitrary key-value metadata attached to this routine. `null` when not set. */
21687
+ metadata?: Record<string, unknown> | undefined;
21688
+ /** Human-readable name for the routine. */
21689
+ name?: string | undefined;
21690
+ /** Resolved preset configuration when `handler_type` is `"preset"`. `null` for other handler types. */
21691
+ preset_config?: PresetConfig | undefined;
21692
+ /** Name of the preset invoked when `handler_type` is `"preset"`. `null` for other handler types. */
21693
+ preset_name?: string | undefined;
21694
+ /** Cron expression controlling when the routine fires on a schedule. `null` for event-only routines. */
21695
+ schedule?: string | undefined;
21696
+ /** Inline script body executed when `handler_type` is `"script"`. `null` for other handler types. */
21697
+ script?: string | undefined;
21698
+ /** Lifecycle status of the routine. One of `"draft"`, `"active"`, or `"paused"`. Only `"active"` routines respond to triggers. */
21699
+ status?: string | undefined;
21700
+ /** Ordered list of chain steps (present when handler_type is "chain"). Each step is a plain map with handler_type, optional body fields (preset_name / preset_config / script / config), and step-local plumbing (name, inputs, output_key, on_error). */
21701
+ steps?: Record<string, unknown>[] | undefined;
21702
+ /** Execution context in which runs are created. One of `"event"` (background job) or `"chat_session"` (interactive session). Defaults to `"event"`. */
21703
+ trigger_context?: string | undefined;
21704
+ /** When this routine was last updated (ISO 8601). */
21705
+ updated_at?: string | undefined;
21706
+ /** Optional co-owner user (`usr_...`). When set, that user shares view/modify/delete authority on this routine without administering the parent agent. `null` when not set. Never inferred from the caller — only present when explicitly provided on create/update. */
21707
+ user?: string | undefined;
21708
+ }
21709
+ /** Runtime validator for {@link AgentRoutine}. */
20903
21710
  export declare const agentRoutineSchema: z.ZodObject<{
20904
21711
  /** Access control list for the routine. Contains a `grants` array where each entry specifies `principal_type`, `principal`, and `actions` (`"read"`, `"invoke"`, or `"assign"` — an `"assign"` grant names the agents or orgs that may be handed this routine's embedded work items). `null` when no ACL restrictions are applied and the routine is accessible to all members of its scope. */
20905
21712
  acl: z.ZodOptional<z.ZodObject<{
@@ -21840,6 +22647,7 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
21840
22647
  principal?: string | undefined;
21841
22648
  }[] | undefined;
21842
22649
  } | undefined;
22650
+ duration_ms?: number | undefined;
21843
22651
  delivery?: {
21844
22652
  type: "thread" | "none" | "reply";
21845
22653
  status: "pending" | "failed" | "delivered" | "not_requested";
@@ -21849,7 +22657,6 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
21849
22657
  delivered_message?: string | undefined;
21850
22658
  last_error?: string | undefined;
21851
22659
  } | undefined;
21852
- duration_ms?: number | undefined;
21853
22660
  routine?: string | undefined;
21854
22661
  structured_response?: Record<string, {} | null> | undefined;
21855
22662
  worker?: {
@@ -21885,6 +22692,7 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
21885
22692
  principal?: string | undefined;
21886
22693
  }[] | undefined;
21887
22694
  } | undefined;
22695
+ duration_ms?: number | undefined;
21888
22696
  delivery?: {
21889
22697
  type: "thread" | "none" | "reply";
21890
22698
  status: "pending" | "failed" | "delivered" | "not_requested";
@@ -21894,7 +22702,6 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
21894
22702
  delivered_message?: string | undefined;
21895
22703
  last_error?: string | undefined;
21896
22704
  } | undefined;
21897
- duration_ms?: number | undefined;
21898
22705
  routine?: string | undefined;
21899
22706
  structured_response?: Record<string, {} | null> | undefined;
21900
22707
  worker?: {
@@ -22106,6 +22913,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22106
22913
  principal?: string | undefined;
22107
22914
  }[] | undefined;
22108
22915
  } | undefined;
22916
+ duration_ms?: number | undefined;
22109
22917
  delivery?: {
22110
22918
  type: "thread" | "none" | "reply";
22111
22919
  status: "pending" | "failed" | "delivered" | "not_requested";
@@ -22115,7 +22923,6 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22115
22923
  delivered_message?: string | undefined;
22116
22924
  last_error?: string | undefined;
22117
22925
  } | undefined;
22118
- duration_ms?: number | undefined;
22119
22926
  routine?: string | undefined;
22120
22927
  structured_response?: Record<string, {} | null> | undefined;
22121
22928
  worker?: {
@@ -22151,6 +22958,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22151
22958
  principal?: string | undefined;
22152
22959
  }[] | undefined;
22153
22960
  } | undefined;
22961
+ duration_ms?: number | undefined;
22154
22962
  delivery?: {
22155
22963
  type: "thread" | "none" | "reply";
22156
22964
  status: "pending" | "failed" | "delivered" | "not_requested";
@@ -22160,7 +22968,6 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22160
22968
  delivered_message?: string | undefined;
22161
22969
  last_error?: string | undefined;
22162
22970
  } | undefined;
22163
- duration_ms?: number | undefined;
22164
22971
  routine?: string | undefined;
22165
22972
  structured_response?: Record<string, {} | null> | undefined;
22166
22973
  worker?: {
@@ -22198,6 +23005,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22198
23005
  principal?: string | undefined;
22199
23006
  }[] | undefined;
22200
23007
  } | undefined;
23008
+ duration_ms?: number | undefined;
22201
23009
  delivery?: {
22202
23010
  type: "thread" | "none" | "reply";
22203
23011
  status: "pending" | "failed" | "delivered" | "not_requested";
@@ -22207,7 +23015,6 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22207
23015
  delivered_message?: string | undefined;
22208
23016
  last_error?: string | undefined;
22209
23017
  } | undefined;
22210
- duration_ms?: number | undefined;
22211
23018
  routine?: string | undefined;
22212
23019
  structured_response?: Record<string, {} | null> | undefined;
22213
23020
  worker?: {
@@ -22247,6 +23054,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22247
23054
  principal?: string | undefined;
22248
23055
  }[] | undefined;
22249
23056
  } | undefined;
23057
+ duration_ms?: number | undefined;
22250
23058
  delivery?: {
22251
23059
  type: "thread" | "none" | "reply";
22252
23060
  status: "pending" | "failed" | "delivered" | "not_requested";
@@ -22256,7 +23064,6 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22256
23064
  delivered_message?: string | undefined;
22257
23065
  last_error?: string | undefined;
22258
23066
  } | undefined;
22259
- duration_ms?: number | undefined;
22260
23067
  routine?: string | undefined;
22261
23068
  structured_response?: Record<string, {} | null> | undefined;
22262
23069
  worker?: {
@@ -22488,6 +23295,44 @@ export declare const agentSessionSchema: z.ZodObject<{
22488
23295
  max_turns?: number | undefined;
22489
23296
  trajectory?: string | undefined;
22490
23297
  }>;
23298
+ /** One event from the coding harness running an agent session on a computer. */
23299
+ export interface AgentSessionEvent {
23300
+ /** Event name: `session_started`, `message`, `tool_use`, `needs_input`, `activity`, `error`, `turn_complete`, `finished`, `adopted`, or `harness_raw`. */
23301
+ event?: string | undefined;
23302
+ /** Harness that emitted it. */
23303
+ harness?: string | null | undefined;
23304
+ /** Event ID; pass as `after` to page. */
23305
+ id?: string | undefined;
23306
+ /** When the event happened in the sandbox. */
23307
+ occurred_at?: string | undefined;
23308
+ /** Harness-specific event data. */
23309
+ payload?: Record<string, unknown> | null | undefined;
23310
+ }
23311
+ /** Runtime validator for {@link AgentSessionEvent}. */
23312
+ export declare const agentSessionEventSchema: z.ZodObject<{
23313
+ /** Event name: `session_started`, `message`, `tool_use`, `needs_input`, `activity`, `error`, `turn_complete`, `finished`, `adopted`, or `harness_raw`. */
23314
+ event: z.ZodOptional<z.ZodString>;
23315
+ /** Harness that emitted it. */
23316
+ harness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23317
+ /** Event ID; pass as `after` to page. */
23318
+ id: z.ZodOptional<z.ZodString>;
23319
+ /** When the event happened in the sandbox. */
23320
+ occurred_at: z.ZodOptional<z.ZodString>;
23321
+ /** Harness-specific event data. */
23322
+ payload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>>;
23323
+ }, "strip", z.ZodTypeAny, {
23324
+ payload?: Record<string, {} | null> | null | undefined;
23325
+ id?: string | undefined;
23326
+ event?: string | undefined;
23327
+ harness?: string | null | undefined;
23328
+ occurred_at?: string | undefined;
23329
+ }, {
23330
+ payload?: Record<string, {} | null> | null | undefined;
23331
+ id?: string | undefined;
23332
+ event?: string | undefined;
23333
+ harness?: string | null | undefined;
23334
+ occurred_at?: string | undefined;
23335
+ }>;
22491
23336
  /** Paginated list response containing an array of agent session objects. */
22492
23337
  export interface AgentSessionListResponse {
22493
23338
  /** Array of agent session objects for the current page. */
@@ -22852,13 +23697,13 @@ export declare const agentToolSchema: z.ZodObject<{
22852
23697
  /** Reason for the current MCP setup state. */
22853
23698
  reason: z.ZodString;
22854
23699
  }, "strip", z.ZodTypeAny, {
23700
+ reason: string;
22855
23701
  next_action: string;
22856
23702
  protocol_status: "not_checked";
22857
- reason: string;
22858
23703
  }, {
23704
+ reason: string;
22859
23705
  next_action: string;
22860
23706
  protocol_status: "not_checked";
22861
- reason: string;
22862
23707
  }>>>;
22863
23708
  /** Current status of the tool. One of `"active"` or `"draft"`. */
22864
23709
  status: z.ZodOptional<z.ZodString>;
@@ -22887,9 +23732,9 @@ export declare const agentToolSchema: z.ZodObject<{
22887
23732
  parameters?: Record<string, {} | null> | undefined;
22888
23733
  parameters_config?: string | undefined;
22889
23734
  setup?: {
23735
+ reason: string;
22890
23736
  next_action: string;
22891
23737
  protocol_status: "not_checked";
22892
- reason: string;
22893
23738
  } | null | undefined;
22894
23739
  }, {
22895
23740
  id: string;
@@ -22914,9 +23759,9 @@ export declare const agentToolSchema: z.ZodObject<{
22914
23759
  parameters?: Record<string, {} | null> | undefined;
22915
23760
  parameters_config?: string | undefined;
22916
23761
  setup?: {
23762
+ reason: string;
22917
23763
  next_action: string;
22918
23764
  protocol_status: "not_checked";
22919
- reason: string;
22920
23765
  } | null | undefined;
22921
23766
  }>;
22922
23767
  /** Paginated list response containing the tools attached to an agent. */
@@ -22975,13 +23820,13 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
22975
23820
  /** Reason for the current MCP setup state. */
22976
23821
  reason: z.ZodString;
22977
23822
  }, "strip", z.ZodTypeAny, {
23823
+ reason: string;
22978
23824
  next_action: string;
22979
23825
  protocol_status: "not_checked";
22980
- reason: string;
22981
23826
  }, {
23827
+ reason: string;
22982
23828
  next_action: string;
22983
23829
  protocol_status: "not_checked";
22984
- reason: string;
22985
23830
  }>>>;
22986
23831
  /** Current status of the tool. One of `"active"` or `"draft"`. */
22987
23832
  status: z.ZodOptional<z.ZodString>;
@@ -23010,9 +23855,9 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
23010
23855
  parameters?: Record<string, {} | null> | undefined;
23011
23856
  parameters_config?: string | undefined;
23012
23857
  setup?: {
23858
+ reason: string;
23013
23859
  next_action: string;
23014
23860
  protocol_status: "not_checked";
23015
- reason: string;
23016
23861
  } | null | undefined;
23017
23862
  }, {
23018
23863
  id: string;
@@ -23037,9 +23882,9 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
23037
23882
  parameters?: Record<string, {} | null> | undefined;
23038
23883
  parameters_config?: string | undefined;
23039
23884
  setup?: {
23885
+ reason: string;
23040
23886
  next_action: string;
23041
23887
  protocol_status: "not_checked";
23042
- reason: string;
23043
23888
  } | null | undefined;
23044
23889
  }>, "many">;
23045
23890
  }, "strip", z.ZodTypeAny, {
@@ -23066,9 +23911,9 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
23066
23911
  parameters?: Record<string, {} | null> | undefined;
23067
23912
  parameters_config?: string | undefined;
23068
23913
  setup?: {
23914
+ reason: string;
23069
23915
  next_action: string;
23070
23916
  protocol_status: "not_checked";
23071
- reason: string;
23072
23917
  } | null | undefined;
23073
23918
  }[];
23074
23919
  }, {
@@ -23095,9 +23940,9 @@ export declare const agentToolListResponseSchema: z.ZodObject<{
23095
23940
  parameters?: Record<string, {} | null> | undefined;
23096
23941
  parameters_config?: string | undefined;
23097
23942
  setup?: {
23943
+ reason: string;
23098
23944
  next_action: string;
23099
23945
  protocol_status: "not_checked";
23100
- reason: string;
23101
23946
  } | null | undefined;
23102
23947
  }[];
23103
23948
  }>;
@@ -23641,6 +24486,13 @@ export declare const agentUpgradeResultSchema: z.ZodObject<{
23641
24486
  }>;
23642
24487
  }, "strip", z.ZodTypeAny, {
23643
24488
  status: string;
24489
+ mode: string;
24490
+ summary: {
24491
+ adds: number;
24492
+ noops: number;
24493
+ removes: number;
24494
+ updates: number;
24495
+ };
23644
24496
  changes: {
23645
24497
  action: string;
23646
24498
  parent_template_config: {
@@ -23680,6 +24532,9 @@ export declare const agentUpgradeResultSchema: z.ZodObject<{
23680
24532
  } | undefined;
23681
24533
  }[];
23682
24534
  dry_run: boolean;
24535
+ review_fingerprint?: string | undefined;
24536
+ }, {
24537
+ status: string;
23683
24538
  mode: string;
23684
24539
  summary: {
23685
24540
  adds: number;
@@ -23687,9 +24542,6 @@ export declare const agentUpgradeResultSchema: z.ZodObject<{
23687
24542
  removes: number;
23688
24543
  updates: number;
23689
24544
  };
23690
- review_fingerprint?: string | undefined;
23691
- }, {
23692
- status: string;
23693
24545
  changes: {
23694
24546
  action: string;
23695
24547
  parent_template_config: {
@@ -23729,13 +24581,6 @@ export declare const agentUpgradeResultSchema: z.ZodObject<{
23729
24581
  } | undefined;
23730
24582
  }[];
23731
24583
  dry_run: boolean;
23732
- mode: string;
23733
- summary: {
23734
- adds: number;
23735
- noops: number;
23736
- removes: number;
23737
- updates: number;
23738
- };
23739
24584
  review_fingerprint?: string | undefined;
23740
24585
  }>;
23741
24586
  /** Response returned by the agent upgrade endpoint, combining the updated agent, its source Solution and template, and the full upgrade diff. */
@@ -25948,6 +26793,13 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
25948
26793
  }>;
25949
26794
  }, "strip", z.ZodTypeAny, {
25950
26795
  status: string;
26796
+ mode: string;
26797
+ summary: {
26798
+ adds: number;
26799
+ noops: number;
26800
+ removes: number;
26801
+ updates: number;
26802
+ };
25951
26803
  changes: {
25952
26804
  action: string;
25953
26805
  parent_template_config: {
@@ -25987,6 +26839,9 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
25987
26839
  } | undefined;
25988
26840
  }[];
25989
26841
  dry_run: boolean;
26842
+ review_fingerprint?: string | undefined;
26843
+ }, {
26844
+ status: string;
25990
26845
  mode: string;
25991
26846
  summary: {
25992
26847
  adds: number;
@@ -25994,9 +26849,6 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
25994
26849
  removes: number;
25995
26850
  updates: number;
25996
26851
  };
25997
- review_fingerprint?: string | undefined;
25998
- }, {
25999
- status: string;
26000
26852
  changes: {
26001
26853
  action: string;
26002
26854
  parent_template_config: {
@@ -26036,13 +26888,6 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26036
26888
  } | undefined;
26037
26889
  }[];
26038
26890
  dry_run: boolean;
26039
- mode: string;
26040
- summary: {
26041
- adds: number;
26042
- noops: number;
26043
- removes: number;
26044
- updates: number;
26045
- };
26046
26891
  review_fingerprint?: string | undefined;
26047
26892
  }>;
26048
26893
  }, "strip", z.ZodTypeAny, {
@@ -26123,6 +26968,13 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26123
26968
  };
26124
26969
  upgrade_result: {
26125
26970
  status: string;
26971
+ mode: string;
26972
+ summary: {
26973
+ adds: number;
26974
+ noops: number;
26975
+ removes: number;
26976
+ updates: number;
26977
+ };
26126
26978
  changes: {
26127
26979
  action: string;
26128
26980
  parent_template_config: {
@@ -26162,13 +27014,6 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26162
27014
  } | undefined;
26163
27015
  }[];
26164
27016
  dry_run: boolean;
26165
- mode: string;
26166
- summary: {
26167
- adds: number;
26168
- noops: number;
26169
- removes: number;
26170
- updates: number;
26171
- };
26172
27017
  review_fingerprint?: string | undefined;
26173
27018
  };
26174
27019
  agent?: {
@@ -26428,6 +27273,13 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26428
27273
  };
26429
27274
  upgrade_result: {
26430
27275
  status: string;
27276
+ mode: string;
27277
+ summary: {
27278
+ adds: number;
27279
+ noops: number;
27280
+ removes: number;
27281
+ updates: number;
27282
+ };
26431
27283
  changes: {
26432
27284
  action: string;
26433
27285
  parent_template_config: {
@@ -26467,13 +27319,6 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26467
27319
  } | undefined;
26468
27320
  }[];
26469
27321
  dry_run: boolean;
26470
- mode: string;
26471
- summary: {
26472
- adds: number;
26473
- noops: number;
26474
- removes: number;
26475
- updates: number;
26476
- };
26477
27322
  review_fingerprint?: string | undefined;
26478
27323
  };
26479
27324
  agent?: {
@@ -29094,6 +29939,14 @@ export declare const solutionUpgradeResultSchema: z.ZodObject<{
29094
29939
  version_change: z.ZodString;
29095
29940
  }, "strip", z.ZodTypeAny, {
29096
29941
  status: string;
29942
+ summary: {
29943
+ adds: number;
29944
+ noops: number;
29945
+ updates: number;
29946
+ deletes: number;
29947
+ orphans: number;
29948
+ referenced_orphans: number;
29949
+ };
29097
29950
  changes: {
29098
29951
  key: string;
29099
29952
  action: string;
@@ -29113,14 +29966,6 @@ export declare const solutionUpgradeResultSchema: z.ZodObject<{
29113
29966
  }[] | undefined;
29114
29967
  }[];
29115
29968
  dry_run: boolean;
29116
- summary: {
29117
- adds: number;
29118
- noops: number;
29119
- updates: number;
29120
- deletes: number;
29121
- orphans: number;
29122
- referenced_orphans: number;
29123
- };
29124
29969
  version_change: string;
29125
29970
  message?: string | undefined;
29126
29971
  code?: string | undefined;
@@ -29129,6 +29974,14 @@ export declare const solutionUpgradeResultSchema: z.ZodObject<{
29129
29974
  incoming_solution_version?: string | undefined;
29130
29975
  }, {
29131
29976
  status: string;
29977
+ summary: {
29978
+ adds: number;
29979
+ noops: number;
29980
+ updates: number;
29981
+ deletes: number;
29982
+ orphans: number;
29983
+ referenced_orphans: number;
29984
+ };
29132
29985
  changes: {
29133
29986
  key: string;
29134
29987
  action: string;
@@ -29148,14 +30001,6 @@ export declare const solutionUpgradeResultSchema: z.ZodObject<{
29148
30001
  }[] | undefined;
29149
30002
  }[];
29150
30003
  dry_run: boolean;
29151
- summary: {
29152
- adds: number;
29153
- noops: number;
29154
- updates: number;
29155
- deletes: number;
29156
- orphans: number;
29157
- referenced_orphans: number;
29158
- };
29159
30004
  version_change: string;
29160
30005
  message?: string | undefined;
29161
30006
  code?: string | undefined;
@@ -29718,6 +30563,14 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
29718
30563
  version_change: z.ZodString;
29719
30564
  }, "strip", z.ZodTypeAny, {
29720
30565
  status: string;
30566
+ summary: {
30567
+ adds: number;
30568
+ noops: number;
30569
+ updates: number;
30570
+ deletes: number;
30571
+ orphans: number;
30572
+ referenced_orphans: number;
30573
+ };
29721
30574
  changes: {
29722
30575
  key: string;
29723
30576
  action: string;
@@ -29737,14 +30590,6 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
29737
30590
  }[] | undefined;
29738
30591
  }[];
29739
30592
  dry_run: boolean;
29740
- summary: {
29741
- adds: number;
29742
- noops: number;
29743
- updates: number;
29744
- deletes: number;
29745
- orphans: number;
29746
- referenced_orphans: number;
29747
- };
29748
30593
  version_change: string;
29749
30594
  message?: string | undefined;
29750
30595
  code?: string | undefined;
@@ -29753,6 +30598,14 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
29753
30598
  incoming_solution_version?: string | undefined;
29754
30599
  }, {
29755
30600
  status: string;
30601
+ summary: {
30602
+ adds: number;
30603
+ noops: number;
30604
+ updates: number;
30605
+ deletes: number;
30606
+ orphans: number;
30607
+ referenced_orphans: number;
30608
+ };
29756
30609
  changes: {
29757
30610
  key: string;
29758
30611
  action: string;
@@ -29772,14 +30625,6 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
29772
30625
  }[] | undefined;
29773
30626
  }[];
29774
30627
  dry_run: boolean;
29775
- summary: {
29776
- adds: number;
29777
- noops: number;
29778
- updates: number;
29779
- deletes: number;
29780
- orphans: number;
29781
- referenced_orphans: number;
29782
- };
29783
30628
  version_change: string;
29784
30629
  message?: string | undefined;
29785
30630
  code?: string | undefined;
@@ -29858,6 +30703,14 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
29858
30703
  };
29859
30704
  upgrade_result: {
29860
30705
  status: string;
30706
+ summary: {
30707
+ adds: number;
30708
+ noops: number;
30709
+ updates: number;
30710
+ deletes: number;
30711
+ orphans: number;
30712
+ referenced_orphans: number;
30713
+ };
29861
30714
  changes: {
29862
30715
  key: string;
29863
30716
  action: string;
@@ -29877,14 +30730,6 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
29877
30730
  }[] | undefined;
29878
30731
  }[];
29879
30732
  dry_run: boolean;
29880
- summary: {
29881
- adds: number;
29882
- noops: number;
29883
- updates: number;
29884
- deletes: number;
29885
- orphans: number;
29886
- referenced_orphans: number;
29887
- };
29888
30733
  version_change: string;
29889
30734
  message?: string | undefined;
29890
30735
  code?: string | undefined;
@@ -29971,6 +30816,14 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
29971
30816
  };
29972
30817
  upgrade_result: {
29973
30818
  status: string;
30819
+ summary: {
30820
+ adds: number;
30821
+ noops: number;
30822
+ updates: number;
30823
+ deletes: number;
30824
+ orphans: number;
30825
+ referenced_orphans: number;
30826
+ };
29974
30827
  changes: {
29975
30828
  key: string;
29976
30829
  action: string;
@@ -29990,14 +30843,6 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
29990
30843
  }[] | undefined;
29991
30844
  }[];
29992
30845
  dry_run: boolean;
29993
- summary: {
29994
- adds: number;
29995
- noops: number;
29996
- updates: number;
29997
- deletes: number;
29998
- orphans: number;
29999
- referenced_orphans: number;
30000
- };
30001
30846
  version_change: string;
30002
30847
  message?: string | undefined;
30003
30848
  code?: string | undefined;