@anthropic-ai/sdk 0.122.0 → 0.123.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 (206) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/core/credentials.d.mts.map +1 -1
  3. package/core/credentials.d.ts.map +1 -1
  4. package/core/credentials.js +5 -7
  5. package/core/credentials.js.map +1 -1
  6. package/core/credentials.mjs +5 -7
  7. package/core/credentials.mjs.map +1 -1
  8. package/internal/file-store.d.mts.map +1 -1
  9. package/internal/file-store.d.ts.map +1 -1
  10. package/internal/file-store.js +23 -25
  11. package/internal/file-store.js.map +1 -1
  12. package/internal/file-store.mjs +5 -6
  13. package/internal/file-store.mjs.map +1 -1
  14. package/internal/node.browser.d.mts +9 -0
  15. package/internal/node.browser.d.mts.map +1 -0
  16. package/internal/node.browser.d.ts +9 -0
  17. package/internal/node.browser.d.ts.map +1 -0
  18. package/internal/node.browser.js +22 -0
  19. package/internal/node.browser.js.map +1 -0
  20. package/internal/node.browser.mjs +19 -0
  21. package/internal/node.browser.mjs.map +1 -0
  22. package/internal/node.d.mts +14 -0
  23. package/internal/node.d.mts.map +1 -0
  24. package/internal/node.d.ts +14 -0
  25. package/internal/node.d.ts.map +1 -0
  26. package/internal/node.js +24 -0
  27. package/internal/node.js.map +1 -0
  28. package/internal/node.mjs +14 -0
  29. package/internal/node.mjs.map +1 -0
  30. package/lib/BetaMessageStream.d.mts.map +1 -1
  31. package/lib/BetaMessageStream.d.ts.map +1 -1
  32. package/lib/BetaMessageStream.js +3 -0
  33. package/lib/BetaMessageStream.js.map +1 -1
  34. package/lib/BetaMessageStream.mjs +3 -0
  35. package/lib/BetaMessageStream.mjs.map +1 -1
  36. package/lib/credentials/credential-chain.js +1 -1
  37. package/lib/credentials/credential-chain.js.map +1 -1
  38. package/lib/credentials/credential-chain.mjs +1 -1
  39. package/lib/credentials/credential-chain.mjs.map +1 -1
  40. package/lib/credentials/identity-token.js +1 -1
  41. package/lib/credentials/identity-token.js.map +1 -1
  42. package/lib/credentials/identity-token.mjs +1 -1
  43. package/lib/credentials/identity-token.mjs.map +1 -1
  44. package/lib/credentials/types.d.mts.map +1 -1
  45. package/lib/credentials/types.d.ts.map +1 -1
  46. package/lib/credentials/types.js +2 -3
  47. package/lib/credentials/types.js.map +1 -1
  48. package/lib/credentials/types.mjs +2 -3
  49. package/lib/credentials/types.mjs.map +1 -1
  50. package/lib/credentials/user-oauth.js +1 -1
  51. package/lib/credentials/user-oauth.js.map +1 -1
  52. package/lib/credentials/user-oauth.mjs +1 -1
  53. package/lib/credentials/user-oauth.mjs.map +1 -1
  54. package/lib/middleware.d.mts.map +1 -1
  55. package/lib/middleware.d.ts.map +1 -1
  56. package/lib/middleware.js +30 -7
  57. package/lib/middleware.js.map +1 -1
  58. package/lib/middleware.mjs +30 -7
  59. package/lib/middleware.mjs.map +1 -1
  60. package/package.json +3 -1
  61. package/resources/beta/agents/agents.d.mts +1 -1
  62. package/resources/beta/agents/agents.d.mts.map +1 -1
  63. package/resources/beta/agents/agents.d.ts +1 -1
  64. package/resources/beta/agents/agents.d.ts.map +1 -1
  65. package/resources/beta/agents/agents.js.map +1 -1
  66. package/resources/beta/agents/agents.mjs.map +1 -1
  67. package/resources/beta/beta.d.mts +5 -5
  68. package/resources/beta/beta.d.mts.map +1 -1
  69. package/resources/beta/beta.d.ts +5 -5
  70. package/resources/beta/beta.d.ts.map +1 -1
  71. package/resources/beta/beta.js.map +1 -1
  72. package/resources/beta/beta.mjs.map +1 -1
  73. package/resources/beta/deployment-runs.d.mts +6 -6
  74. package/resources/beta/deployment-runs.d.ts +6 -6
  75. package/resources/beta/deployments.d.mts +3 -2
  76. package/resources/beta/deployments.d.mts.map +1 -1
  77. package/resources/beta/deployments.d.ts +3 -2
  78. package/resources/beta/deployments.d.ts.map +1 -1
  79. package/resources/beta/dreams.d.mts +28 -1
  80. package/resources/beta/dreams.d.mts.map +1 -1
  81. package/resources/beta/dreams.d.ts +28 -1
  82. package/resources/beta/dreams.d.ts.map +1 -1
  83. package/resources/beta/index.d.mts +2 -2
  84. package/resources/beta/index.d.mts.map +1 -1
  85. package/resources/beta/index.d.ts +2 -2
  86. package/resources/beta/index.d.ts.map +1 -1
  87. package/resources/beta/index.js.map +1 -1
  88. package/resources/beta/index.mjs.map +1 -1
  89. package/resources/beta/memory-stores/memories.d.mts +6 -4
  90. package/resources/beta/memory-stores/memories.d.mts.map +1 -1
  91. package/resources/beta/memory-stores/memories.d.ts +6 -4
  92. package/resources/beta/memory-stores/memories.d.ts.map +1 -1
  93. package/resources/beta/messages/index.d.mts +1 -1
  94. package/resources/beta/messages/index.d.mts.map +1 -1
  95. package/resources/beta/messages/index.d.ts +1 -1
  96. package/resources/beta/messages/index.d.ts.map +1 -1
  97. package/resources/beta/messages/index.js.map +1 -1
  98. package/resources/beta/messages/index.mjs.map +1 -1
  99. package/resources/beta/messages/messages.d.mts +130 -3
  100. package/resources/beta/messages/messages.d.mts.map +1 -1
  101. package/resources/beta/messages/messages.d.ts +130 -3
  102. package/resources/beta/messages/messages.d.ts.map +1 -1
  103. package/resources/beta/messages/messages.js.map +1 -1
  104. package/resources/beta/messages/messages.mjs.map +1 -1
  105. package/resources/beta/organization/compliance-settings.d.mts +74 -0
  106. package/resources/beta/organization/compliance-settings.d.mts.map +1 -0
  107. package/resources/beta/organization/compliance-settings.d.ts +74 -0
  108. package/resources/beta/organization/compliance-settings.d.ts.map +1 -0
  109. package/resources/beta/organization/compliance-settings.js +52 -0
  110. package/resources/beta/organization/compliance-settings.js.map +1 -0
  111. package/resources/beta/organization/compliance-settings.mjs +48 -0
  112. package/resources/beta/organization/compliance-settings.mjs.map +1 -0
  113. package/resources/beta/organization/external-keys.d.mts +6 -3
  114. package/resources/beta/organization/external-keys.d.mts.map +1 -1
  115. package/resources/beta/organization/external-keys.d.ts +6 -3
  116. package/resources/beta/organization/external-keys.d.ts.map +1 -1
  117. package/resources/beta/organization/index.d.mts +1 -0
  118. package/resources/beta/organization/index.d.mts.map +1 -1
  119. package/resources/beta/organization/index.d.ts +1 -0
  120. package/resources/beta/organization/index.d.ts.map +1 -1
  121. package/resources/beta/organization/index.js +3 -1
  122. package/resources/beta/organization/index.js.map +1 -1
  123. package/resources/beta/organization/index.mjs +1 -0
  124. package/resources/beta/organization/index.mjs.map +1 -1
  125. package/resources/beta/organization/organization.d.mts +4 -0
  126. package/resources/beta/organization/organization.d.mts.map +1 -1
  127. package/resources/beta/organization/organization.d.ts +4 -0
  128. package/resources/beta/organization/organization.d.ts.map +1 -1
  129. package/resources/beta/organization/organization.js +4 -0
  130. package/resources/beta/organization/organization.js.map +1 -1
  131. package/resources/beta/organization/organization.mjs +4 -0
  132. package/resources/beta/organization/organization.mjs.map +1 -1
  133. package/resources/beta/organization/workspaces/workspaces.d.mts +28 -12
  134. package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -1
  135. package/resources/beta/organization/workspaces/workspaces.d.ts +28 -12
  136. package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -1
  137. package/resources/beta/organization/workspaces/workspaces.js.map +1 -1
  138. package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -1
  139. package/resources/beta/sessions/events.d.mts +1 -1
  140. package/resources/beta/sessions/events.d.ts +1 -1
  141. package/resources/beta/sessions/sessions.d.mts +10 -10
  142. package/resources/beta/sessions/sessions.d.ts +10 -10
  143. package/resources/beta/user-profiles.d.mts +21 -25
  144. package/resources/beta/user-profiles.d.mts.map +1 -1
  145. package/resources/beta/user-profiles.d.ts +21 -25
  146. package/resources/beta/user-profiles.d.ts.map +1 -1
  147. package/resources/messages/messages.d.mts +1 -3
  148. package/resources/messages/messages.d.mts.map +1 -1
  149. package/resources/messages/messages.d.ts +1 -3
  150. package/resources/messages/messages.d.ts.map +1 -1
  151. package/resources/messages/messages.js.map +1 -1
  152. package/resources/messages/messages.mjs.map +1 -1
  153. package/src/core/credentials.ts +5 -7
  154. package/src/internal/file-store.ts +11 -10
  155. package/src/internal/node.browser.ts +22 -0
  156. package/src/internal/node.ts +14 -0
  157. package/src/lib/BetaMessageStream.ts +4 -0
  158. package/src/lib/credentials/credential-chain.ts +1 -1
  159. package/src/lib/credentials/identity-token.ts +1 -1
  160. package/src/lib/credentials/types.ts +2 -3
  161. package/src/lib/credentials/user-oauth.ts +1 -1
  162. package/src/lib/middleware.ts +33 -9
  163. package/src/resources/beta/agents/agents.ts +1 -0
  164. package/src/resources/beta/beta.ts +16 -1
  165. package/src/resources/beta/deployment-runs.ts +6 -6
  166. package/src/resources/beta/deployments.ts +3 -2
  167. package/src/resources/beta/dreams.ts +42 -0
  168. package/src/resources/beta/index.ts +6 -0
  169. package/src/resources/beta/memory-stores/memories.ts +6 -4
  170. package/src/resources/beta/messages/index.ts +4 -0
  171. package/src/resources/beta/messages/messages.ts +149 -8
  172. package/src/resources/beta/organization/compliance-settings.ts +96 -0
  173. package/src/resources/beta/organization/external-keys.ts +6 -3
  174. package/src/resources/beta/organization/index.ts +9 -0
  175. package/src/resources/beta/organization/organization.ts +24 -0
  176. package/src/resources/beta/organization/workspaces/workspaces.ts +28 -12
  177. package/src/resources/beta/sessions/events.ts +1 -1
  178. package/src/resources/beta/sessions/sessions.ts +10 -10
  179. package/src/resources/beta/user-profiles.ts +24 -27
  180. package/src/resources/messages/messages.ts +2 -8
  181. package/src/tools/agent-toolset/fs-util.ts +6 -5
  182. package/src/tools/agent-toolset/memories.ts +5 -3
  183. package/src/tools/agent-toolset/skills.ts +5 -10
  184. package/src/version.ts +1 -1
  185. package/tools/agent-toolset/fs-util.d.mts.map +1 -1
  186. package/tools/agent-toolset/fs-util.d.ts.map +1 -1
  187. package/tools/agent-toolset/fs-util.js +13 -15
  188. package/tools/agent-toolset/fs-util.js.map +1 -1
  189. package/tools/agent-toolset/fs-util.mjs +3 -4
  190. package/tools/agent-toolset/fs-util.mjs.map +1 -1
  191. package/tools/agent-toolset/memories.d.mts.map +1 -1
  192. package/tools/agent-toolset/memories.d.ts.map +1 -1
  193. package/tools/agent-toolset/memories.js +6 -4
  194. package/tools/agent-toolset/memories.js.map +1 -1
  195. package/tools/agent-toolset/memories.mjs +5 -3
  196. package/tools/agent-toolset/memories.mjs.map +1 -1
  197. package/tools/agent-toolset/skills.d.mts.map +1 -1
  198. package/tools/agent-toolset/skills.d.ts.map +1 -1
  199. package/tools/agent-toolset/skills.js +15 -21
  200. package/tools/agent-toolset/skills.js.map +1 -1
  201. package/tools/agent-toolset/skills.mjs +4 -9
  202. package/tools/agent-toolset/skills.mjs.map +1 -1
  203. package/version.d.mts +1 -1
  204. package/version.d.ts +1 -1
  205. package/version.js +1 -1
  206. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/organization/workspaces/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAExD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAOL,OAAO,GACR,sBAAkB;AACnB,OAAO,KAAK,aAAa,0BAAsB;AAC/C,OAAO,EAKL,UAAU,GACX,0BAAsB;AACvB,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAOL,eAAe,GAChB,+BAA2B;AAE5B,OAAO,EAAE,IAAI,EAAgC,wCAAoC;AACjF,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiG7G,CAAC;IA/FC;;;;;;;;;;OAUG;IACH,MAA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;CACF;AAwPD,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;AACnC,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;AAC7B,UAAU,CAAC,eAAe,GAAG,eAAe,CAAC"}
1
+ {"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/organization/workspaces/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAExD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAOL,OAAO,GACR,sBAAkB;AACnB,OAAO,KAAK,aAAa,0BAAsB;AAC/C,OAAO,EAKL,UAAU,GACX,0BAAsB;AACvB,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAOL,eAAe,GAChB,+BAA2B;AAE5B,OAAO,EAAE,IAAI,EAAgC,wCAAoC;AACjF,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiG7G,CAAC;IA/FC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAA6B,EAAE,OAAwB;QAC5D,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE;YACjE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,WAAW,YAAY,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gCAAgC,WAAW,YAAY,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wCAAwC,EAAE,CAAA,IAAmB,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,WAAmB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gCAAgC,WAAW,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;CACF;AAwQD,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;AACnC,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;AAC7B,UAAU,CAAC,eAAe,GAAG,eAAe,CAAC"}
@@ -1463,7 +1463,7 @@ export interface EventListParams extends PageCursorParams {
1463
1463
  'created_at[lte]'?: string;
1464
1464
  /**
1465
1465
  * Query param: Sort direction for results, ordered by the event's `processed_at`.
1466
- * Defaults to asc (chronological).
1466
+ * Defaults to `asc` (chronological).
1467
1467
  */
1468
1468
  order?: 'asc' | 'desc';
1469
1469
  /**
@@ -1463,7 +1463,7 @@ export interface EventListParams extends PageCursorParams {
1463
1463
  'created_at[lte]'?: string;
1464
1464
  /**
1465
1465
  * Query param: Sort direction for results, ordered by the event's `processed_at`.
1466
- * Defaults to asc (chronological).
1466
+ * Defaults to `asc` (chronological).
1467
1467
  */
1468
1468
  order?: 'asc' | 'desc';
1469
1469
  /**
@@ -348,7 +348,7 @@ export interface BetaManagedAgentsMultiagentParams {
348
348
  */
349
349
  export type BetaManagedAgentsMultiagentRosterEntryParams = string | BetaManagedAgentsAgentParams | AgentsAPI.BetaManagedAgentsMultiagentSelfParams | BetaManagedAgentsAdvisorParams;
350
350
  /**
351
- * Evaluation state for a single outcome defined via a define_outcome event.
351
+ * Evaluation state for a single outcome defined via a `define_outcome` event.
352
352
  */
353
353
  export interface BetaManagedAgentsOutcomeEvaluationResource {
354
354
  /**
@@ -360,9 +360,9 @@ export interface BetaManagedAgentsOutcomeEvaluationResource {
360
360
  */
361
361
  description: string;
362
362
  /**
363
- * Grader's verdict text from the most recent evaluation. For satisfied, explains
364
- * why criteria are met; for needs_revision (intermediate), what's missing; for
365
- * failed, why unrecoverable.
363
+ * Grader's verdict text from the most recent evaluation. For `satisfied`, explains
364
+ * why criteria are met; for `needs_revision` (intermediate), what's missing; for
365
+ * `failed`, why unrecoverable.
366
366
  */
367
367
  explanation: string | null;
368
368
  /**
@@ -422,7 +422,7 @@ export interface BetaManagedAgentsSession {
422
422
  [key: string]: string;
423
423
  };
424
424
  /**
425
- * Per-outcome evaluation state. One entry per define_outcome event sent to the
425
+ * Per-outcome evaluation state. One entry per `define_outcome` event sent to the
426
426
  * session.
427
427
  */
428
428
  outcome_evaluations: Array<BetaManagedAgentsOutcomeEvaluationResource>;
@@ -513,7 +513,7 @@ export interface BetaManagedAgentsSessionMultiagentCoordinator {
513
513
  */
514
514
  export interface BetaManagedAgentsSessionStats {
515
515
  /**
516
- * Cumulative time in seconds the session spent in running status. Excludes idle
516
+ * Cumulative time in seconds the session spent in `running` status. Excludes idle
517
517
  * time.
518
518
  */
519
519
  active_seconds?: number;
@@ -798,7 +798,7 @@ export interface SessionListParams extends BidirectionalPageCursorParams {
798
798
  */
799
799
  agent_id?: string;
800
800
  /**
801
- * Query param: Filter by agent version. Only applies when agent_id is also set.
801
+ * Query param: Filter by agent version. Only applies when `agent_id` is also set.
802
802
  */
803
803
  agent_version?: number;
804
804
  /**
@@ -827,13 +827,13 @@ export interface SessionListParams extends BidirectionalPageCursorParams {
827
827
  */
828
828
  include_archived?: boolean;
829
829
  /**
830
- * Query param: Filter sessions whose resources contain a memory_store with this
830
+ * Query param: Filter sessions whose resources contain a `memory_store` with this
831
831
  * memory store ID.
832
832
  */
833
833
  memory_store_id?: string;
834
834
  /**
835
- * Query param: Sort direction for results, ordered by created_at. Defaults to desc
836
- * (newest first).
835
+ * Query param: Sort direction for results, ordered by `created_at`. Defaults to
836
+ * `desc` (newest first).
837
837
  */
838
838
  order?: 'asc' | 'desc';
839
839
  /**
@@ -348,7 +348,7 @@ export interface BetaManagedAgentsMultiagentParams {
348
348
  */
349
349
  export type BetaManagedAgentsMultiagentRosterEntryParams = string | BetaManagedAgentsAgentParams | AgentsAPI.BetaManagedAgentsMultiagentSelfParams | BetaManagedAgentsAdvisorParams;
350
350
  /**
351
- * Evaluation state for a single outcome defined via a define_outcome event.
351
+ * Evaluation state for a single outcome defined via a `define_outcome` event.
352
352
  */
353
353
  export interface BetaManagedAgentsOutcomeEvaluationResource {
354
354
  /**
@@ -360,9 +360,9 @@ export interface BetaManagedAgentsOutcomeEvaluationResource {
360
360
  */
361
361
  description: string;
362
362
  /**
363
- * Grader's verdict text from the most recent evaluation. For satisfied, explains
364
- * why criteria are met; for needs_revision (intermediate), what's missing; for
365
- * failed, why unrecoverable.
363
+ * Grader's verdict text from the most recent evaluation. For `satisfied`, explains
364
+ * why criteria are met; for `needs_revision` (intermediate), what's missing; for
365
+ * `failed`, why unrecoverable.
366
366
  */
367
367
  explanation: string | null;
368
368
  /**
@@ -422,7 +422,7 @@ export interface BetaManagedAgentsSession {
422
422
  [key: string]: string;
423
423
  };
424
424
  /**
425
- * Per-outcome evaluation state. One entry per define_outcome event sent to the
425
+ * Per-outcome evaluation state. One entry per `define_outcome` event sent to the
426
426
  * session.
427
427
  */
428
428
  outcome_evaluations: Array<BetaManagedAgentsOutcomeEvaluationResource>;
@@ -513,7 +513,7 @@ export interface BetaManagedAgentsSessionMultiagentCoordinator {
513
513
  */
514
514
  export interface BetaManagedAgentsSessionStats {
515
515
  /**
516
- * Cumulative time in seconds the session spent in running status. Excludes idle
516
+ * Cumulative time in seconds the session spent in `running` status. Excludes idle
517
517
  * time.
518
518
  */
519
519
  active_seconds?: number;
@@ -798,7 +798,7 @@ export interface SessionListParams extends BidirectionalPageCursorParams {
798
798
  */
799
799
  agent_id?: string;
800
800
  /**
801
- * Query param: Filter by agent version. Only applies when agent_id is also set.
801
+ * Query param: Filter by agent version. Only applies when `agent_id` is also set.
802
802
  */
803
803
  agent_version?: number;
804
804
  /**
@@ -827,13 +827,13 @@ export interface SessionListParams extends BidirectionalPageCursorParams {
827
827
  */
828
828
  include_archived?: boolean;
829
829
  /**
830
- * Query param: Filter sessions whose resources contain a memory_store with this
830
+ * Query param: Filter sessions whose resources contain a `memory_store` with this
831
831
  * memory store ID.
832
832
  */
833
833
  memory_store_id?: string;
834
834
  /**
835
- * Query param: Sort direction for results, ordered by created_at. Defaults to desc
836
- * (newest first).
835
+ * Query param: Sort direction for results, ordered by `created_at`. Defaults to
836
+ * `desc` (newest first).
837
837
  */
838
838
  order?: 'asc' | 'desc';
839
839
  /**
@@ -108,17 +108,15 @@ export interface BetaUserProfile {
108
108
  */
109
109
  external_id?: string | null;
110
110
  /**
111
- * Real-world name of the entity this profile represents (company or individual).
112
- * For a resold-to company (`access_type` `passthrough`, or `relationship` `resold`
113
- * under the `user-profiles-2026-03-24` header) this is that company's name.
111
+ * A timestamp in RFC 3339 format
114
112
  */
115
- name?: string | null;
113
+ external_user_onboarded_at?: string | null;
116
114
  /**
117
- * How the entity behind a user profile relates to the platform that owns the API
118
- * key. `external`: an individual end-user of the platform. `resold`: a company the
119
- * platform resells Claude access to. `internal`: the platform's own usage.
115
+ * Real-world name of the entity this profile represents (company or individual).
116
+ * For a company the platform resells Claude access to (`access_type`
117
+ * `passthrough`) this is that company's name.
120
118
  */
121
- relationship?: 'external' | 'resold' | 'internal';
119
+ name?: string | null;
122
120
  }
123
121
  export interface BetaUserProfileEnrollmentURL {
124
122
  /**
@@ -154,6 +152,10 @@ export interface UserProfileCreateParams {
154
152
  * Maximum 255 characters.
155
153
  */
156
154
  external_id?: string | null;
155
+ /**
156
+ * Body param: A timestamp in RFC 3339 format
157
+ */
158
+ external_user_onboarded_at?: string;
157
159
  /**
158
160
  * Body param: Free-form key-value data to attach to this user profile. Maximum 16
159
161
  * keys, with keys up to 64 characters and values up to 512 characters. Values must
@@ -164,18 +166,11 @@ export interface UserProfileCreateParams {
164
166
  };
165
167
  /**
166
168
  * Body param: Optional for all profiles. Real-world name of the entity this
167
- * profile represents (company or individual); for a resold-to company
168
- * (`relationship` `resold` / `access_type` `passthrough`), that company's name
169
- * where known. Maximum 255 characters.
169
+ * profile represents (company or individual); for a company the platform resells
170
+ * Claude access to (`access_type` `passthrough`), that company's name where known.
171
+ * Maximum 255 characters.
170
172
  */
171
173
  name?: string | null;
172
- /**
173
- * Body param: How the entity behind a user profile relates to the platform that
174
- * owns the API key. `external`: an individual end-user of the platform. `resold`:
175
- * a company the platform resells Claude access to. `internal`: the platform's own
176
- * usage.
177
- */
178
- relationship?: 'external' | 'resold' | 'internal';
179
174
  /**
180
175
  * Header param: Optional header to specify the beta version(s) you want to use.
181
176
  */
@@ -201,6 +196,10 @@ export interface UserProfileUpdateParams {
201
196
  * unchanged. Maximum 255 characters.
202
197
  */
203
198
  external_id?: string | null;
199
+ /**
200
+ * Body param: A timestamp in RFC 3339 format
201
+ */
202
+ external_user_onboarded_at?: string;
204
203
  /**
205
204
  * Body param: Key-value pairs to merge into the stored metadata. Keys provided
206
205
  * overwrite existing values. To remove a key, set its value to an empty string.
@@ -215,13 +214,6 @@ export interface UserProfileUpdateParams {
215
214
  * Maximum 255 characters.
216
215
  */
217
216
  name?: string | null;
218
- /**
219
- * Body param: How the entity behind a user profile relates to the platform that
220
- * owns the API key. `external`: an individual end-user of the platform. `resold`:
221
- * a company the platform resells Claude access to. `internal`: the platform's own
222
- * usage.
223
- */
224
- relationship?: 'external' | 'resold' | 'internal' | null;
225
217
  /**
226
218
  * Header param: Optional header to specify the beta version(s) you want to use.
227
219
  */
@@ -232,6 +224,10 @@ export interface UserProfileListParams extends PageCursorParams {
232
224
  * Query param: Query parameter for order
233
225
  */
234
226
  order?: 'asc' | 'desc';
227
+ /**
228
+ * Query param: Query parameter for order_by
229
+ */
230
+ order_by?: 'created_at' | 'name';
235
231
  /**
236
232
  * Header param: Optional header to specify the beta version(s) you want to use.
237
233
  */
@@ -1 +1 @@
1
- {"version":3,"file":"user-profiles.d.mts","sourceRoot":"","sources":["../../src/resources/beta/user-profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,kCAA8B;AAEvF,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAY9F;;;;;;;;;;OAUG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,C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AKG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAErC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAEjC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oCAAoC,IAAI,oCAAoC,GAClF,CAAC;CACH"}
@@ -108,17 +108,15 @@ export interface BetaUserProfile {
108
108
  */
109
109
  external_id?: string | null;
110
110
  /**
111
- * Real-world name of the entity this profile represents (company or individual).
112
- * For a resold-to company (`access_type` `passthrough`, or `relationship` `resold`
113
- * under the `user-profiles-2026-03-24` header) this is that company's name.
111
+ * A timestamp in RFC 3339 format
114
112
  */
115
- name?: string | null;
113
+ external_user_onboarded_at?: string | null;
116
114
  /**
117
- * How the entity behind a user profile relates to the platform that owns the API
118
- * key. `external`: an individual end-user of the platform. `resold`: a company the
119
- * platform resells Claude access to. `internal`: the platform's own usage.
115
+ * Real-world name of the entity this profile represents (company or individual).
116
+ * For a company the platform resells Claude access to (`access_type`
117
+ * `passthrough`) this is that company's name.
120
118
  */
121
- relationship?: 'external' | 'resold' | 'internal';
119
+ name?: string | null;
122
120
  }
123
121
  export interface BetaUserProfileEnrollmentURL {
124
122
  /**
@@ -154,6 +152,10 @@ export interface UserProfileCreateParams {
154
152
  * Maximum 255 characters.
155
153
  */
156
154
  external_id?: string | null;
155
+ /**
156
+ * Body param: A timestamp in RFC 3339 format
157
+ */
158
+ external_user_onboarded_at?: string;
157
159
  /**
158
160
  * Body param: Free-form key-value data to attach to this user profile. Maximum 16
159
161
  * keys, with keys up to 64 characters and values up to 512 characters. Values must
@@ -164,18 +166,11 @@ export interface UserProfileCreateParams {
164
166
  };
165
167
  /**
166
168
  * Body param: Optional for all profiles. Real-world name of the entity this
167
- * profile represents (company or individual); for a resold-to company
168
- * (`relationship` `resold` / `access_type` `passthrough`), that company's name
169
- * where known. Maximum 255 characters.
169
+ * profile represents (company or individual); for a company the platform resells
170
+ * Claude access to (`access_type` `passthrough`), that company's name where known.
171
+ * Maximum 255 characters.
170
172
  */
171
173
  name?: string | null;
172
- /**
173
- * Body param: How the entity behind a user profile relates to the platform that
174
- * owns the API key. `external`: an individual end-user of the platform. `resold`:
175
- * a company the platform resells Claude access to. `internal`: the platform's own
176
- * usage.
177
- */
178
- relationship?: 'external' | 'resold' | 'internal';
179
174
  /**
180
175
  * Header param: Optional header to specify the beta version(s) you want to use.
181
176
  */
@@ -201,6 +196,10 @@ export interface UserProfileUpdateParams {
201
196
  * unchanged. Maximum 255 characters.
202
197
  */
203
198
  external_id?: string | null;
199
+ /**
200
+ * Body param: A timestamp in RFC 3339 format
201
+ */
202
+ external_user_onboarded_at?: string;
204
203
  /**
205
204
  * Body param: Key-value pairs to merge into the stored metadata. Keys provided
206
205
  * overwrite existing values. To remove a key, set its value to an empty string.
@@ -215,13 +214,6 @@ export interface UserProfileUpdateParams {
215
214
  * Maximum 255 characters.
216
215
  */
217
216
  name?: string | null;
218
- /**
219
- * Body param: How the entity behind a user profile relates to the platform that
220
- * owns the API key. `external`: an individual end-user of the platform. `resold`:
221
- * a company the platform resells Claude access to. `internal`: the platform's own
222
- * usage.
223
- */
224
- relationship?: 'external' | 'resold' | 'internal' | null;
225
217
  /**
226
218
  * Header param: Optional header to specify the beta version(s) you want to use.
227
219
  */
@@ -232,6 +224,10 @@ export interface UserProfileListParams extends PageCursorParams {
232
224
  * Query param: Query parameter for order
233
225
  */
234
226
  order?: 'asc' | 'desc';
227
+ /**
228
+ * Query param: Query parameter for order_by
229
+ */
230
+ order_by?: 'created_at' | 'name';
235
231
  /**
236
232
  * Header param: Optional header to specify the beta version(s) you want to use.
237
233
  */
@@ -1 +1 @@
1
- {"version":3,"file":"user-profiles.d.ts","sourceRoot":"","sources":["../../src/resources/beta/user-profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,iCAA8B;AAEvF,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAY9F;;;;;;;;;;OAUG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAW9B;;;;;;;;;;OAUG;IACH,MAAM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E,CAAC;IAErC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAEjC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oCAAoC,IAAI,oCAAoC,GAClF,CAAC;CACH"}
@@ -724,7 +724,6 @@ export interface BrowserSwitchTabConfig {
724
724
  */
725
725
  export interface BrowserToolset20260801 {
726
726
  type: 'browser_toolset_20260801';
727
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
728
727
  /**
729
728
  * Create a cache control breakpoint at this content block.
730
729
  */
@@ -1518,7 +1517,6 @@ export interface ComputerScrollConfig {
1518
1517
  */
1519
1518
  export interface ComputerToolset20260801 {
1520
1519
  type: 'computer_toolset_20260801';
1521
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1522
1520
  /**
1523
1521
  * Create a cache control breakpoint at this content block.
1524
1522
  */
@@ -2063,7 +2061,7 @@ export interface Metadata {
2063
2061
  * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2064
2062
  * details and options.
2065
2063
  */
2066
- export type Model = 'claude-sonnet-5' | 'claude-fable-5' | 'claude-mythos-5' | 'claude-opus-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-mythos-preview' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-haiku-4-5' | 'claude-haiku-4-5-20251001' | 'claude-opus-4-5' | 'claude-opus-4-5-20251101' | 'claude-sonnet-4-5' | 'claude-sonnet-4-5-20250929' | (string & {});
2064
+ export type Model = 'claude-fable-5-1' | 'claude-mythos-5-1' | 'claude-sonnet-5' | 'claude-fable-5' | 'claude-mythos-5' | 'claude-opus-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-mythos-preview' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-haiku-4-5' | 'claude-haiku-4-5-20251001' | 'claude-opus-4-5' | 'claude-opus-4-5-20251101' | 'claude-sonnet-4-5' | 'claude-sonnet-4-5-20250929' | (string & {});
2067
2065
  export interface OutputConfig {
2068
2066
  /**
2069
2067
  * All possible effort levels.