@macro-inc/sdk 0.4.1 → 0.6.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 (228) hide show
  1. package/README.md +316 -21
  2. package/dist/{chunk-PTX2RV2N.js → chunk-4MI52GWV.js} +93 -1
  3. package/dist/{chunk-XFA7NCJ5.js → chunk-HO75UE4Z.js} +146 -15
  4. package/dist/{chunk-P4DTO6VD.js → chunk-MCSQNZ4E.js} +6 -0
  5. package/dist/{chunk-ZLBDES7U.js → chunk-SJ6S2GAT.js} +1271 -87
  6. package/dist/{chunk-AZJUIUIV.js → chunk-SK5CMXRV.js} +100 -14
  7. package/dist/{chunk-PZPTJI6F.js → chunk-TMTYN2UK.js} +229 -2
  8. package/dist/{chunk-PPR7IWZ7.js → chunk-ZYBAKW25.js} +2 -1
  9. package/dist/generated/agent-fold/index.d.ts +202 -14
  10. package/dist/generated/agent-harness/index.d.ts +1 -1
  11. package/dist/generated/agent-harness/index.js +1 -1
  12. package/dist/generated/agent-harness/sdk.gen.d.ts +49 -2
  13. package/dist/generated/agent-harness/types.gen.d.ts +527 -9
  14. package/dist/generated/agent-reviews/index.d.ts +11 -9
  15. package/dist/generated/auth/index.d.ts +1 -1
  16. package/dist/generated/auth/index.js +1 -1
  17. package/dist/generated/auth/sdk.gen.d.ts +82 -16
  18. package/dist/generated/auth/types.gen.d.ts +768 -18
  19. package/dist/generated/calendar/types.gen.d.ts +10 -3
  20. package/dist/generated/cognition/index.d.ts +1 -1
  21. package/dist/generated/cognition/index.js +1 -1
  22. package/dist/generated/cognition/sdk.gen.d.ts +60 -6
  23. package/dist/generated/cognition/types.gen.d.ts +663 -106
  24. package/dist/generated/connection/types.gen.d.ts +1 -1
  25. package/dist/generated/contacts/index.d.ts +1 -1
  26. package/dist/generated/contacts/index.js +1 -1
  27. package/dist/generated/contacts/sdk.gen.d.ts +5 -1
  28. package/dist/generated/contacts/types.gen.d.ts +56 -0
  29. package/dist/generated/email/types.gen.d.ts +8 -2
  30. package/dist/generated/notification/index.d.ts +1 -1
  31. package/dist/generated/notification/index.js +1 -1
  32. package/dist/generated/notification/sdk.gen.d.ts +2 -1
  33. package/dist/generated/notification/types.gen.d.ts +174 -1
  34. package/dist/generated/scheduled-action/index.d.ts +1 -1
  35. package/dist/generated/scheduled-action/index.js +1 -1
  36. package/dist/generated/scheduled-action/sdk.gen.d.ts +107 -2
  37. package/dist/generated/scheduled-action/types.gen.d.ts +2451 -479
  38. package/dist/generated/search/index.d.ts +1 -1
  39. package/dist/generated/search/types.gen.d.ts +50 -11
  40. package/dist/generated/storage/index.d.ts +1 -1
  41. package/dist/generated/storage/index.js +1 -1
  42. package/dist/generated/storage/sdk.gen.d.ts +511 -18
  43. package/dist/generated/storage/types.gen.d.ts +18528 -11395
  44. package/dist/src/entities/account-managers/grant.d.ts +28 -5
  45. package/dist/src/entities/account-managers/namespace.d.ts +15 -3
  46. package/dist/src/entities/activity/entity.d.ts +7 -0
  47. package/dist/src/entities/activity/namespace.d.ts +58 -0
  48. package/dist/src/entities/activity/namespace.test.d.ts +1 -0
  49. package/dist/src/entities/agent-sessions/activity.d.ts +12 -3
  50. package/dist/src/entities/agent-sessions/agent-session.d.ts +209 -22
  51. package/dist/src/entities/agent-sessions/code-execution.d.ts +15 -3
  52. package/dist/src/entities/agent-sessions/conversation.d.ts +46 -9
  53. package/dist/src/entities/agent-sessions/namespace.d.ts +72 -16
  54. package/dist/src/entities/agent-sessions/origin.d.ts +1 -1
  55. package/dist/src/entities/agent-sessions/queued-action.d.ts +17 -3
  56. package/dist/src/entities/agent-sessions/review.d.ts +56 -5
  57. package/dist/src/entities/agent-sessions/tool-approval.d.ts +5 -1
  58. package/dist/src/entities/agents/agent.d.ts +98 -3
  59. package/dist/src/entities/agents/namespace.d.ts +52 -8
  60. package/dist/src/entities/ai/namespace.d.ts +10 -2
  61. package/dist/src/entities/api-keys/api-key.d.ts +6 -1
  62. package/dist/src/entities/api-keys/namespace.d.ts +18 -3
  63. package/dist/src/entities/bots/bot.d.ts +44 -9
  64. package/dist/src/entities/bots/namespace.d.ts +13 -1
  65. package/dist/src/entities/bots/token.d.ts +6 -1
  66. package/dist/src/entities/calendar/booking-link.d.ts +7 -1
  67. package/dist/src/entities/calendar/booking-namespace.d.ts +14 -1
  68. package/dist/src/entities/calendar/booking.d.ts +15 -0
  69. package/dist/src/entities/calendar/calendar.d.ts +10 -3
  70. package/dist/src/entities/calendar/event.d.ts +68 -9
  71. package/dist/src/entities/calendar/namespace.d.ts +91 -12
  72. package/dist/src/entities/calendar/replacement.d.ts +19 -3
  73. package/dist/src/entities/calls/call-record.d.ts +107 -17
  74. package/dist/src/entities/calls/connection.d.ts +7 -1
  75. package/dist/src/entities/calls/message.d.ts +27 -5
  76. package/dist/src/entities/calls/namespace.d.ts +15 -3
  77. package/dist/src/entities/canvases/canvas.d.ts +329 -0
  78. package/dist/src/entities/channels/access-request.d.ts +10 -2
  79. package/dist/src/entities/channels/activity.d.ts +20 -4
  80. package/dist/src/entities/channels/channel.d.ts +154 -27
  81. package/dist/src/entities/channels/labels.d.ts +41 -7
  82. package/dist/src/entities/channels/message.d.ts +105 -8
  83. package/dist/src/entities/channels/message.test.d.ts +1 -0
  84. package/dist/src/entities/channels/namespace.d.ts +37 -7
  85. package/dist/src/entities/channels/post.d.ts +13 -7
  86. package/dist/src/entities/channels/post.test.d.ts +1 -0
  87. package/dist/src/entities/channels/share.d.ts +9 -0
  88. package/dist/src/entities/channels/share.test.d.ts +1 -0
  89. package/dist/src/entities/channels/thread.d.ts +24 -4
  90. package/dist/src/entities/chats/chat.d.ts +57 -7
  91. package/dist/src/entities/chats/generation.d.ts +11 -2
  92. package/dist/src/entities/chats/namespace.d.ts +10 -2
  93. package/dist/src/entities/connected-apps/connected-app.d.ts +16 -2
  94. package/dist/src/entities/connected-apps/connector.d.ts +3 -0
  95. package/dist/src/entities/connected-apps/namespace.d.ts +18 -0
  96. package/dist/src/entities/crm/company.d.ts +64 -16
  97. package/dist/src/entities/crm/contact.d.ts +102 -14
  98. package/dist/src/entities/crm/namespace.d.ts +113 -22
  99. package/dist/src/entities/crm/pipeline-entry.d.ts +109 -0
  100. package/dist/src/entities/crm/pipeline.d.ts +292 -29
  101. package/dist/src/entities/crm/pipelines.d.ts +69 -4
  102. package/dist/src/entities/crm-email-privacy/email-privacy.d.ts +238 -0
  103. package/dist/src/entities/crm-email-privacy/email-rule-preview.d.ts +55 -0
  104. package/dist/src/entities/crm-email-privacy/email-rule-revision.d.ts +27 -0
  105. package/dist/src/entities/crm-email-privacy/email-rules.d.ts +32 -0
  106. package/dist/src/entities/databases/column.d.ts +54 -7
  107. package/dist/src/entities/databases/database.d.ts +160 -18
  108. package/dist/src/entities/databases/namespace.d.ts +40 -8
  109. package/dist/src/entities/databases/row.d.ts +2 -0
  110. package/dist/src/entities/databases/saved-query.d.ts +151 -0
  111. package/dist/src/entities/databases/table.d.ts +73 -10
  112. package/dist/src/entities/databases/view.d.ts +37 -5
  113. package/dist/src/entities/databases/webhook.d.ts +8 -1
  114. package/dist/src/entities/documents/ai-edit.d.ts +2 -0
  115. package/dist/src/entities/documents/anchor.d.ts +12 -2
  116. package/dist/src/entities/documents/comment.d.ts +29 -5
  117. package/dist/src/entities/documents/create.test.d.ts +1 -0
  118. package/dist/src/entities/documents/document.d.ts +284 -26
  119. package/dist/src/entities/documents/markdown.d.ts +25 -0
  120. package/dist/src/entities/documents/namespace.d.ts +146 -13
  121. package/dist/src/entities/documents/skills.test.d.ts +1 -0
  122. package/dist/src/entities/documents/system-skill.d.ts +21 -1
  123. package/dist/src/entities/documents/text-comment.d.ts +41 -0
  124. package/dist/src/entities/documents/text-comment.test.d.ts +1 -0
  125. package/dist/src/entities/documents/version.d.ts +5 -1
  126. package/dist/src/entities/email/attachment.d.ts +3 -0
  127. package/dist/src/entities/email/draft.d.ts +61 -9
  128. package/dist/src/entities/email/filter.d.ts +12 -2
  129. package/dist/src/entities/email/label.d.ts +7 -1
  130. package/dist/src/entities/email/link.d.ts +5 -1
  131. package/dist/src/entities/email/message.d.ts +72 -14
  132. package/dist/src/entities/email/namespace.d.ts +134 -24
  133. package/dist/src/entities/email/thread.d.ts +124 -18
  134. package/dist/src/entities/entity-mentions/mention.d.ts +6 -1
  135. package/dist/src/entities/entity-mentions/namespace.d.ts +5 -1
  136. package/dist/src/entities/entity.d.ts +65 -6
  137. package/dist/src/entities/external-chat/chat.d.ts +80 -12
  138. package/dist/src/entities/external-chat/message.d.ts +1 -1
  139. package/dist/src/entities/external-chat/namespace.d.ts +5 -1
  140. package/dist/src/entities/external-chat/send.d.ts +10 -2
  141. package/dist/src/entities/favorites/namespace.d.ts +20 -3
  142. package/dist/src/entities/foreign/foreign-entity.d.ts +5 -1
  143. package/dist/src/entities/foreign/namespace.d.ts +5 -1
  144. package/dist/src/entities/forms/form.d.ts +91 -14
  145. package/dist/src/entities/forms/namespace.d.ts +10 -2
  146. package/dist/src/entities/forms/question.d.ts +35 -7
  147. package/dist/src/entities/forms/response.d.ts +25 -5
  148. package/dist/src/entities/forms/section.d.ts +15 -3
  149. package/dist/src/entities/github-pull-requests/namespace.d.ts +5 -1
  150. package/dist/src/entities/github-pull-requests/pull-request.d.ts +15 -3
  151. package/dist/src/entities/harnesses/harness.d.ts +51 -3
  152. package/dist/src/entities/harnesses/namespace.d.ts +54 -8
  153. package/dist/src/entities/harnesses/pairing.d.ts +13 -2
  154. package/dist/src/entities/images/image.d.ts +16 -5
  155. package/dist/src/entities/images/namespace.d.ts +8 -1
  156. package/dist/src/entities/imports/entry.d.ts +65 -0
  157. package/dist/src/entities/imports/namespace.d.ts +103 -0
  158. package/dist/src/entities/imports/namespace.test.d.ts +1 -0
  159. package/dist/src/entities/initiatives/initiative.d.ts +128 -4
  160. package/dist/src/entities/initiatives/initiative.test.d.ts +1 -0
  161. package/dist/src/entities/initiatives/namespace.d.ts +71 -7
  162. package/dist/src/entities/me/namespace.d.ts +28 -3
  163. package/dist/src/entities/meetings/meeting.d.ts +46 -8
  164. package/dist/src/entities/meetings/namespace.d.ts +20 -4
  165. package/dist/src/entities/memory/namespace.d.ts +49 -0
  166. package/dist/src/entities/memory/namespace.test.d.ts +1 -0
  167. package/dist/src/entities/messages/discussion.d.ts +84 -0
  168. package/dist/src/entities/messages/thread.d.ts +19 -5
  169. package/dist/src/entities/notifications/namespace.d.ts +41 -7
  170. package/dist/src/entities/notifications/notification.d.ts +31 -6
  171. package/dist/src/entities/passwords/item.d.ts +118 -0
  172. package/dist/src/entities/passwords/namespace.d.ts +45 -0
  173. package/dist/src/entities/pins/namespace.d.ts +23 -4
  174. package/dist/src/entities/projects/namespace.d.ts +29 -0
  175. package/dist/src/entities/projects/project.d.ts +58 -7
  176. package/dist/src/entities/properties/namespace.d.ts +67 -11
  177. package/dist/src/entities/properties/namespace.test.d.ts +1 -0
  178. package/dist/src/entities/properties/property-definition.d.ts +30 -5
  179. package/dist/src/entities/properties/property-option.d.ts +14 -2
  180. package/dist/src/entities/referrals/namespace.d.ts +8 -1
  181. package/dist/src/entities/routines/namespace.d.ts +198 -14
  182. package/dist/src/entities/routines/routine.d.ts +174 -27
  183. package/dist/src/entities/routines/suggestion.d.ts +38 -0
  184. package/dist/src/entities/saved-views/namespace.d.ts +58 -0
  185. package/dist/src/entities/saved-views/saved-view.d.ts +78 -0
  186. package/dist/src/entities/search/exclusions.d.ts +6 -0
  187. package/dist/src/entities/search/namespace.d.ts +9 -3
  188. package/dist/src/entities/search/options.d.ts +3 -2
  189. package/dist/src/entities/sharing/access.d.ts +50 -9
  190. package/dist/src/entities/spreadsheets/spreadsheet.d.ts +201 -0
  191. package/dist/src/entities/suggestions/namespace.d.ts +118 -0
  192. package/dist/src/entities/suggestions/suggestion.d.ts +172 -0
  193. package/dist/src/entities/suggestions/suggestion.test.d.ts +1 -0
  194. package/dist/src/entities/tasks/namespace.d.ts +18 -5
  195. package/dist/src/entities/tasks/task.d.ts +21 -3
  196. package/dist/src/entities/teams/invite.d.ts +3 -0
  197. package/dist/src/entities/teams/namespace.d.ts +10 -2
  198. package/dist/src/entities/teams/team.d.ts +22 -2
  199. package/dist/src/entities/ui/app-link.d.ts +24 -0
  200. package/dist/src/entities/ui/namespace.d.ts +75 -0
  201. package/dist/src/entities/unfurls/namespace.d.ts +12 -2
  202. package/dist/src/entities/users/namespace.d.ts +26 -4
  203. package/dist/src/entities/users/profile-picture.d.ts +29 -0
  204. package/dist/src/entities/users/profile-picture.test.d.ts +1 -0
  205. package/dist/src/entities/users/user.d.ts +52 -1
  206. package/dist/src/entities/web/namespace.d.ts +6 -0
  207. package/dist/src/entities/webhooks/namespace.d.ts +5 -0
  208. package/dist/src/entities/webhooks/webhook.d.ts +47 -7
  209. package/dist/src/entities/whatsapp/account.d.ts +5 -1
  210. package/dist/src/entities/whatsapp/chat.d.ts +9 -1
  211. package/dist/src/entities/whatsapp/namespace.d.ts +7 -1
  212. package/dist/src/entities/workspace/namespace.d.ts +12 -4
  213. package/dist/src/entities/workspace/query.d.ts +5 -1
  214. package/dist/src/entities/workspace/query.test.d.ts +1 -0
  215. package/dist/src/events/hydrate/document.d.ts +5 -0
  216. package/dist/src/events/hydrate/user.d.ts +14 -0
  217. package/dist/src/events/receiver.d.ts +2 -0
  218. package/dist/src/events/types.d.ts +2 -1
  219. package/dist/src/macro.d.ts +59 -6
  220. package/dist/src/macro.js +18710 -10355
  221. package/dist/src/utils/activity.d.ts +2 -0
  222. package/dist/src/utils/index.d.ts +1 -1
  223. package/dist/src/utils/lazy.d.ts +20 -1
  224. package/dist/src/utils/options.d.ts +7 -0
  225. package/dist/src/utils/pagination.d.ts +16 -0
  226. package/dist/src/utils/verbs.d.ts +3 -0
  227. package/package.json +1 -1
  228. package/dist/src/entities/crm/comment.d.ts +0 -64
@@ -31,6 +31,15 @@ export type AgentSetupResponse = {
31
31
  */
32
32
  team_join_failed: boolean;
33
33
  };
34
+ /**
35
+ * The voice an agent speaks with on calls.
36
+ */
37
+ export type AgentVoice = {
38
+ /**
39
+ * The Aura-2 model, `aura-2-<name>-<language>`.
40
+ */
41
+ model: string;
42
+ };
34
43
  /**
35
44
  * Error response body.
36
45
  */
@@ -103,6 +112,14 @@ export type AutoReloadSnapshot = {
103
112
  */
104
113
  target_balance_cents: number;
105
114
  };
115
+ /**
116
+ * How often the team subscription bills.
117
+ */
118
+ export type BillingInterval = 'month' | 'year';
119
+ /**
120
+ * Where a computer's billing stands, as its team sees it.
121
+ */
122
+ export type BillingStatus = 'purchasing' | 'active' | 'past_due' | 'ending' | 'ended' | 'comped';
106
123
  /**
107
124
  * Request body for switching plans
108
125
  */
@@ -253,6 +270,114 @@ export type CodexLoginStart = {
253
270
  * Device authorization state visible to its initiating user.
254
271
  */
255
272
  export type CodexLoginState = 'pending' | 'connected' | 'expired' | 'failed';
273
+ /**
274
+ * A size a team can buy.
275
+ */
276
+ export type ComputerSize = 'standard' | 'large' | 'xl';
277
+ /**
278
+ * A computer as its team sees it.
279
+ */
280
+ export type ComputerStatus = {
281
+ /**
282
+ * Agents bound to the computer's live harness, teammates' private ones
283
+ * included: the ones releasing it deletes.
284
+ */
285
+ agentCount: number;
286
+ billing?: null | BillingStatus;
287
+ /**
288
+ * Whether the computer can be restored (`POST .../restore`): billing
289
+ * ended and the disk is still retained.
290
+ */
291
+ canRestore: boolean;
292
+ /**
293
+ * Whether a cancel at period end can still be undone (until `cancelsAt`).
294
+ */
295
+ canUndoCancel: boolean;
296
+ /**
297
+ * When billing stops, for a computer canceled at period end.
298
+ */
299
+ cancelsAt?: string | null;
300
+ /**
301
+ * Versioned catalog entry saved at purchase.
302
+ */
303
+ catalogEntry: string;
304
+ /**
305
+ * Present for a comped purchase, including after release.
306
+ */
307
+ compReason?: string | null;
308
+ /**
309
+ * Time the computer was reserved.
310
+ */
311
+ createdAt: string;
312
+ /**
313
+ * Bot id of the coding agent the computer came with; null until macrod
314
+ * first connects. It can name an agent the team since deleted.
315
+ */
316
+ defaultAgentId?: string | null;
317
+ /**
318
+ * Root disk limit saved at purchase.
319
+ */
320
+ diskGib: number;
321
+ /**
322
+ * Why the computer failed, as a short sentence safe to show; present
323
+ * when it failed and the cause is known. The full error is only in the logs.
324
+ */
325
+ failureReason?: string | null;
326
+ /**
327
+ * Harness claimed by this guest.
328
+ */
329
+ harnessId?: string | null;
330
+ /**
331
+ * Stable resource identity.
332
+ */
333
+ id: string;
334
+ /**
335
+ * Memory limit saved at purchase.
336
+ */
337
+ memoryGib: number;
338
+ /**
339
+ * Display name.
340
+ */
341
+ name: string;
342
+ /**
343
+ * Since when the team subscription is past due.
344
+ */
345
+ pastDueSince?: string | null;
346
+ /**
347
+ * Whether validated state requests power on; false for quarantined records.
348
+ */
349
+ poweredOn: boolean;
350
+ /**
351
+ * The Macro user who bought it. The team's owner and admins, not the
352
+ * buyer, finish its setup and manage its Claude account.
353
+ */
354
+ purchasedBy: string;
355
+ /**
356
+ * When the disk is destroyed, for a computer whose billing ended.
357
+ */
358
+ retainedUntil?: string | null;
359
+ setup?: null | SetupProgress;
360
+ /**
361
+ * When the team finished the guided setup; null while it is unfinished.
362
+ */
363
+ setupCompletedAt?: string | null;
364
+ /**
365
+ * Purchased catalog size.
366
+ */
367
+ size: ComputerSize;
368
+ /**
369
+ * Observed guest status.
370
+ */
371
+ status: ComputerStatusKind;
372
+ /**
373
+ * Virtual CPU count.
374
+ */
375
+ vcpus: number;
376
+ };
377
+ /**
378
+ * The coarse status the team sees.
379
+ */
380
+ export type ComputerStatusKind = 'setting_up' | 'needs_attention' | 'waiting_for_capacity' | 'ready' | 'starting' | 'stopping' | 'stopped' | 'failed' | 'purchasing' | 'released';
256
381
  export type CreateAccountMergeRequest = {
257
382
  /**
258
383
  * The email address to generate the merge link for.
@@ -331,6 +456,41 @@ export type CreateProfilePictureUploadRequest = {
331
456
  */
332
457
  size_bytes: number;
333
458
  };
459
+ /**
460
+ * Input for inviting an agent teammate and buying its computer.
461
+ */
462
+ export type CreateTeamAgent = {
463
+ /**
464
+ * Profile picture URL (a static file the caller uploaded).
465
+ */
466
+ avatarUrl?: string | null;
467
+ /**
468
+ * What the agent is responsible for. Seeds its workspace.
469
+ */
470
+ jobDescription: string;
471
+ /**
472
+ * Display name.
473
+ */
474
+ name: string;
475
+ /**
476
+ * How the agent behaves and talks. Seeds its workspace.
477
+ */
478
+ personality: string;
479
+ /**
480
+ * One key per Invite dialog, reused when the invite is retried, so a
481
+ * retry never buys a second computer.
482
+ */
483
+ purchaseKey: string;
484
+ /**
485
+ * The computer to buy.
486
+ */
487
+ size: string;
488
+ /**
489
+ * The call voice picked in the invite; `None` keeps the starter
490
+ * agent's default.
491
+ */
492
+ voice?: string | null;
493
+ };
334
494
  /**
335
495
  * The request body to create a new team
336
496
  */
@@ -432,6 +592,11 @@ export type CreditPurchaseStatus = 'paid' | 'declined' | 'payment_method_require
432
592
  * The status every user sees, without who set it.
433
593
  */
434
594
  export type CurrentSystemStatus = SystemStatus & {
595
+ /**
596
+ * The id of the update that set it; absent when no status was ever set.
597
+ * Clients remember dismissed banners by this id.
598
+ */
599
+ id?: string | null;
435
600
  /**
436
601
  * When it was set; absent when no status was ever set. Clients keep the
437
602
  * newest status they have seen, whether fetched or pushed.
@@ -450,6 +615,12 @@ export type CurrentSystemStatus = SystemStatus & {
450
615
  * that cannot reach KMS does not start.
451
616
  */
452
617
  export type CursorApiKeyStatus = {
618
+ /**
619
+ * The reasoning effort those sessions start on, as the value of the
620
+ * default model's effort parameter (e.g. `high`). `None` means the
621
+ * model's own default; never set without `default_model_id`.
622
+ */
623
+ defaultEffort?: string | null;
453
624
  /**
454
625
  * The Cursor model id this user's sessions start on, when they have
455
626
  * chosen one. `None` means the deployment default is in effect — the
@@ -1272,42 +1443,50 @@ export type PasswordlessStartedResponse = {
1272
1443
  */
1273
1444
  export type PatchTeamCrmSettingsRequest = {
1274
1445
  /**
1275
- * On a disabled → enabled transition, whether to backfill the CRM
1276
- * from members' existing email history. Ignored when disabling.
1446
+ * Retained for compatibility and ignored. Email backfill requires
1447
+ * each member's explicit consent through CRM email privacy settings.
1277
1448
  */
1278
1449
  backfill?: boolean;
1279
1450
  /**
1280
- * The desired CRM state for the team.
1451
+ * Legacy compatibility flag. True is a no-op; false is rejected.
1281
1452
  */
1282
1453
  enabled: boolean;
1283
1454
  };
1284
1455
  /**
1285
- * Response for `PATCH /team/crm`. Reports both the resulting state
1286
- * and whether this call changed it; for the enable-flip case it also
1287
- * reports the backfill fan-out tallies.
1456
+ * Compatibility response for `PATCH /team/crm`. Record access follows member
1457
+ * permissions; this endpoint does not enroll mailboxes or backfill emails.
1288
1458
  */
1289
1459
  export type PatchTeamCrmSettingsResponse = {
1290
1460
  /**
1291
- * Number of members for whom a `PopulateCrmForUser` message was
1292
- * enqueued. Non-zero only on a disabled → enabled transition;
1293
- * per-user enqueue failures are logged and swallowed.
1461
+ * Always zero: mailbox contributions require individual consent.
1294
1462
  */
1295
1463
  backfill_enqueued: number;
1296
1464
  /**
1297
- * Number of members whose enqueue failed (and was swallowed).
1298
- * Non-zero only on a disabled → enabled transition.
1465
+ * Always zero: this endpoint does not enqueue backfills.
1299
1466
  */
1300
1467
  backfill_failed: number;
1301
1468
  /**
1302
- * True if this call flipped the value (false → true or true →
1303
- * false). False if the team was already at the requested state.
1469
+ * Always false: the legacy command does not change availability.
1304
1470
  */
1305
1471
  changed: boolean;
1306
1472
  /**
1307
- * The resulting `crm_enabled` value after the call.
1473
+ * Always true: CRM records are available to team members.
1308
1474
  */
1309
1475
  enabled: boolean;
1310
1476
  };
1477
+ /**
1478
+ * An administrator's change to one member's CRM access.
1479
+ */
1480
+ export type PatchTeamMemberCrmAccess = {
1481
+ /**
1482
+ * Whether the member may use CRM records and team-shared pipelines.
1483
+ */
1484
+ enabled: boolean;
1485
+ /**
1486
+ * The current member to update.
1487
+ */
1488
+ user_id: string;
1489
+ };
1311
1490
  /**
1312
1491
  * Request body for `PATCH /team/members/{member_user_id}/plan`.
1313
1492
  */
@@ -1323,6 +1502,7 @@ export type PatchTeamMemberPlanRequest = {
1323
1502
  export type PatchTeamRequest = {
1324
1503
  default_link_share?: null | LinkShare;
1325
1504
  language?: null | Language;
1505
+ member_crm_access?: null | PatchTeamMemberCrmAccess;
1326
1506
  /**
1327
1507
  * The new name for the team
1328
1508
  */
@@ -1453,6 +1633,15 @@ export type PlanTier = 'free' | 'premium' | 'max';
1453
1633
  export type PostGetNamesRequestBody = {
1454
1634
  user_ids: Array<string>;
1455
1635
  };
1636
+ /**
1637
+ * Body of a power change.
1638
+ */
1639
+ export type PowerBody = {
1640
+ /**
1641
+ * Requested power state.
1642
+ */
1643
+ on: boolean;
1644
+ };
1456
1645
  export type ProfilePictureQueryParams = {
1457
1646
  url: string;
1458
1647
  };
@@ -1489,6 +1678,41 @@ export type PublicGtmInviteLink = {
1489
1678
  */
1490
1679
  status: GtmInviteLinkStatus;
1491
1680
  };
1681
+ /**
1682
+ * Body of a team purchase.
1683
+ */
1684
+ export type PurchaseBody = {
1685
+ /**
1686
+ * Display name.
1687
+ */
1688
+ name?: string | null;
1689
+ /**
1690
+ * The client's key for this purchase: one per Buy dialog, sent again
1691
+ * when the purchase is retried, so a retry never charges twice.
1692
+ */
1693
+ purchaseKey: string;
1694
+ /**
1695
+ * Purchased catalog size.
1696
+ */
1697
+ size: ComputerSize;
1698
+ };
1699
+ /**
1700
+ * Where a purchase stands when its request returns.
1701
+ */
1702
+ export type PurchaseState = 'ready' | 'confirming';
1703
+ /**
1704
+ * Answer of a purchase.
1705
+ */
1706
+ export type Purchased = {
1707
+ /**
1708
+ * Computer this operation addresses.
1709
+ */
1710
+ computerId: string;
1711
+ /**
1712
+ * Whether the computer exists yet.
1713
+ */
1714
+ state: PurchaseState;
1715
+ };
1492
1716
  /**
1493
1717
  * The key someone pasted.
1494
1718
  */
@@ -1509,9 +1733,14 @@ export type PutCursorApiKeyRequest = {
1509
1733
  apiKey: string;
1510
1734
  };
1511
1735
  /**
1512
- * The model the user chose for their sessions.
1736
+ * The model the user chose for their sessions, and its effort.
1513
1737
  */
1514
1738
  export type PutCursorDefaultModelRequest = {
1739
+ /**
1740
+ * The value of the model's reasoning-effort parameter (e.g. `high`), or
1741
+ * `null` for the model's own default. Ignored without a model.
1742
+ */
1743
+ effort?: string | null;
1515
1744
  /**
1516
1745
  * A Cursor model id (e.g. `grok-4.6`), or `null` to clear the choice and
1517
1746
  * fall back to the deployment default.
@@ -1534,6 +1763,31 @@ export type PutUserNameQueryParams = {
1534
1763
  */
1535
1764
  last_name?: string | null;
1536
1765
  };
1766
+ /**
1767
+ * What one computer of a size costs the team.
1768
+ */
1769
+ export type Quote = {
1770
+ /**
1771
+ * In the currency's smallest unit.
1772
+ */
1773
+ amount: number;
1774
+ /**
1775
+ * Billing currency code.
1776
+ */
1777
+ currency: string;
1778
+ /**
1779
+ * Subscription billing interval.
1780
+ */
1781
+ interval: BillingInterval;
1782
+ /**
1783
+ * Stripe price saved for billing replay.
1784
+ */
1785
+ priceId: string;
1786
+ /**
1787
+ * Purchased catalog size.
1788
+ */
1789
+ size: ComputerSize;
1790
+ };
1537
1791
  /**
1538
1792
  * Request body to redeem a link.
1539
1793
  */
@@ -1543,6 +1797,15 @@ export type RedeemGtmInviteLinkRequest = {
1543
1797
  */
1544
1798
  token: string;
1545
1799
  };
1800
+ /**
1801
+ * Body of a release.
1802
+ */
1803
+ export type ReleaseBody = {
1804
+ /**
1805
+ * The computer's name, typed to confirm.
1806
+ */
1807
+ confirmName: string;
1808
+ };
1546
1809
  export type ResendFusionauthVerifyUserEmailRequest = {
1547
1810
  /**
1548
1811
  * The email address to resend the verification email to
@@ -1674,6 +1937,60 @@ export type SetGithubPullRequestStateResponse = {
1674
1937
  */
1675
1938
  state: GithubPullRequestState;
1676
1939
  };
1940
+ /**
1941
+ * Setup progress, for invite and purchase flows to show.
1942
+ */
1943
+ export type SetupProgress = {
1944
+ /**
1945
+ * 1-based position of `step`.
1946
+ */
1947
+ position: number;
1948
+ /**
1949
+ * Current setup stage.
1950
+ */
1951
+ step: SetupStep;
1952
+ /**
1953
+ * When `step` began; null when it is not recorded.
1954
+ */
1955
+ stepStartedAt?: string | null;
1956
+ /**
1957
+ * Number of setup stages.
1958
+ */
1959
+ total: number;
1960
+ };
1961
+ /**
1962
+ * Steps a new computer goes through, in order.
1963
+ */
1964
+ export type SetupStep = 'billing' | 'creating' | 'booting' | 'connecting' | 'ready';
1965
+ /**
1966
+ * A size with its resources, price and whether it can be bought now.
1967
+ */
1968
+ export type SizeOffer = {
1969
+ /**
1970
+ * Root disk size in GiB.
1971
+ */
1972
+ diskGb: number;
1973
+ /**
1974
+ * Memory in GiB.
1975
+ */
1976
+ memoryGb: number;
1977
+ /**
1978
+ * Price for one computer.
1979
+ */
1980
+ quote: Quote;
1981
+ /**
1982
+ * Purchased catalog size.
1983
+ */
1984
+ size: ComputerSize;
1985
+ /**
1986
+ * Whether no host can currently sell this size.
1987
+ */
1988
+ soldOut: boolean;
1989
+ /**
1990
+ * Virtual CPU count.
1991
+ */
1992
+ vcpus: number;
1993
+ };
1677
1994
  export type SsoRequiredResponse = {
1678
1995
  /**
1679
1996
  * The idp_id you need to perform sso login with.
@@ -1706,10 +2023,116 @@ export type StripeSessionResponse = {
1706
2023
  */
1707
2024
  url: string;
1708
2025
  };
2026
+ /**
2027
+ * Actual current recurring items and the provider's next invoice preview.
2028
+ */
2029
+ export type SubscriptionBilling = {
2030
+ /**
2031
+ * The subscription's ISO currency, as returned by the provider.
2032
+ */
2033
+ currency: string;
2034
+ /**
2035
+ * Paid seat allocations.
2036
+ */
2037
+ humanSeats: SubscriptionSeatTotal;
2038
+ /**
2039
+ * The actual recurring billing interval shared by these items.
2040
+ */
2041
+ interval: BillingInterval;
2042
+ /**
2043
+ * Real provider line items, allocated only when their ownership is known.
2044
+ */
2045
+ lineItems: Array<SubscriptionBillingLineItem>;
2046
+ nextInvoice?: null | SubscriptionNextInvoice;
2047
+ /**
2048
+ * Recurring item subtotal in minor units, before invoice adjustments.
2049
+ */
2050
+ subscriptionTotal: number;
2051
+ };
2052
+ /**
2053
+ * An allocated provider item or an explicitly included computer.
2054
+ */
2055
+ export type SubscriptionBillingLineItem = {
2056
+ /**
2057
+ * Current recurring amount for this allocated quantity, in minor units.
2058
+ */
2059
+ amount: number;
2060
+ /**
2061
+ * Identified computer, absent for aggregate or unattributed items.
2062
+ */
2063
+ computerId?: string | null;
2064
+ /**
2065
+ * Included without a subscription charge.
2066
+ */
2067
+ included: boolean;
2068
+ /**
2069
+ * Actual billing category; unmatched quantities stay `other`.
2070
+ */
2071
+ kind: SubscriptionBillingLineKind;
2072
+ /**
2073
+ * Entity name or provider item description.
2074
+ */
2075
+ name: string;
2076
+ plan?: null | SeatPlan;
2077
+ /**
2078
+ * Actual subscription quantity allocated to this row.
2079
+ */
2080
+ quantity: number;
2081
+ size?: null | ComputerSize;
2082
+ status?: null | ComputerStatusKind;
2083
+ /**
2084
+ * Provider price per unit in minor units, when fixed.
2085
+ */
2086
+ unitAmount?: number | null;
2087
+ };
2088
+ /**
2089
+ * What an actual subscription item pays for.
2090
+ */
2091
+ export type SubscriptionBillingLineKind = 'human_seat' | 'computer' | 'other';
2092
+ /**
2093
+ * A Stripe price and how many of it to add to the team subscription.
2094
+ */
2095
+ export type SubscriptionItem = {
2096
+ /**
2097
+ * Stripe price saved for billing replay.
2098
+ */
2099
+ priceId: string;
2100
+ /**
2101
+ * Added to the item's current quantity.
2102
+ */
2103
+ quantity: number;
2104
+ };
2105
+ /**
2106
+ * Provider-confirmed next invoice, including its adjustments and credits.
2107
+ */
2108
+ export type SubscriptionNextInvoice = {
2109
+ /**
2110
+ * Actual upcoming invoice amount due in minor units.
2111
+ */
2112
+ amount: number;
2113
+ /**
2114
+ * Provider's next payment or due date, when supplied.
2115
+ */
2116
+ date?: string | null;
2117
+ };
2118
+ /**
2119
+ * Billed seat quantity and current recurring amount in minor units.
2120
+ */
2121
+ export type SubscriptionSeatTotal = {
2122
+ /**
2123
+ * Actual recurring price times allocated quantity, in minor units.
2124
+ */
2125
+ amount: number;
2126
+ /**
2127
+ * Actual billed quantity allocated to this seat kind.
2128
+ */
2129
+ quantity: number;
2130
+ };
1709
2131
  /**
1710
2132
  * Current renewal and scheduled change; empty for accounts without a subscription.
1711
2133
  */
1712
2134
  export type SubscriptionStatus = {
2135
+ billing?: null | SubscriptionBilling;
1713
2136
  /**
1714
2137
  * Provider-confirmed subscription renewal date.
1715
2138
  */
@@ -1758,8 +2181,8 @@ export type Team = {
1758
2181
  */
1759
2182
  auto_join_domain?: string | null;
1760
2183
  /**
1761
- * Whether the CRM is enabled for this team (from `team_crm_settings`;
1762
- * `false` when no row exists).
2184
+ * CRM record availability, always true for teams. This compatibility
2185
+ * field does not indicate whether any mailbox contributes emails.
1763
2186
  */
1764
2187
  crm_enabled: boolean;
1765
2188
  default_link_share?: null | LinkShare;
@@ -1775,6 +2198,61 @@ export type Team = {
1775
2198
  owner_id: string;
1776
2199
  slug: string;
1777
2200
  };
2201
+ /**
2202
+ * An agent teammate: an AI member of a team with its own Macro account and
2203
+ * its own Macro computer.
2204
+ */
2205
+ export type TeamAgent = {
2206
+ /**
2207
+ * The agent's Macro computer, once bought.
2208
+ */
2209
+ computerId?: string | null;
2210
+ /**
2211
+ * When the agent was invited.
2212
+ */
2213
+ createdAt: string;
2214
+ /**
2215
+ * Admin who invited the agent.
2216
+ */
2217
+ createdBy?: string | null;
2218
+ /**
2219
+ * What the agent is responsible for.
2220
+ */
2221
+ jobDescription: string;
2222
+ /**
2223
+ * Display name.
2224
+ */
2225
+ name: string;
2226
+ /**
2227
+ * How the agent behaves and talks.
2228
+ */
2229
+ personality: string;
2230
+ /**
2231
+ * Where the agent is.
2232
+ */
2233
+ status: TeamAgentStatus;
2234
+ /**
2235
+ * Team the agent belongs to.
2236
+ */
2237
+ teamId: string;
2238
+ /**
2239
+ * The agent's Macro user id (`macro|<email>`).
2240
+ */
2241
+ userId: string;
2242
+ };
2243
+ /**
2244
+ * Where an agent teammate is, from its computer.
2245
+ */
2246
+ export type TeamAgentStatus = 'provisioning' | 'running' | 'paused' | 'failed' | 'released';
2247
+ /**
2248
+ * A team's agents.
2249
+ */
2250
+ export type TeamAgents = {
2251
+ /**
2252
+ * The agents, oldest first.
2253
+ */
2254
+ agents: Array<TeamAgent>;
2255
+ };
1778
2256
  /**
1779
2257
  * Detailed information about a team invite
1780
2258
  */
@@ -1892,6 +2370,12 @@ export type TeamRole = 'member' | 'admin' | 'owner';
1892
2370
  * A team with its members
1893
2371
  */
1894
2372
  export type TeamWithMembers = {
2373
+ /**
2374
+ * Current effective CRM access for each member, independent of mailbox consent.
2375
+ */
2376
+ crm_member_access: {
2377
+ [key: string]: boolean;
2378
+ };
1895
2379
  /**
1896
2380
  * The members of the team
1897
2381
  */
@@ -3501,6 +3985,7 @@ export type PatchTeamErrors = {
3501
3985
  401: ErrorResponse;
3502
3986
  404: ErrorResponse;
3503
3987
  500: ErrorResponse;
3988
+ 503: ErrorResponse;
3504
3989
  };
3505
3990
  export type PatchTeamError = PatchTeamErrors[keyof PatchTeamErrors];
3506
3991
  export type PatchTeamResponses = {
@@ -3515,6 +4000,7 @@ export type CreateTeamData = {
3515
4000
  export type CreateTeamErrors = {
3516
4001
  400: ErrorResponse;
3517
4002
  403: ErrorResponse;
4003
+ 409: ErrorResponse;
3518
4004
  500: ErrorResponse;
3519
4005
  };
3520
4006
  export type CreateTeamError = CreateTeamErrors[keyof CreateTeamErrors];
@@ -3540,6 +4026,155 @@ export type ToggleTeamAutoJoinDomainResponses = {
3540
4026
  200: ToggleAutoJoinDomainResponse;
3541
4027
  };
3542
4028
  export type ToggleTeamAutoJoinDomainResponse = ToggleTeamAutoJoinDomainResponses[keyof ToggleTeamAutoJoinDomainResponses];
4029
+ export type ListTeamComputersData = {
4030
+ body?: never;
4031
+ path?: never;
4032
+ query?: never;
4033
+ url: '/team/computers';
4034
+ };
4035
+ export type ListTeamComputersErrors = {
4036
+ 401: ErrorResponse;
4037
+ 403: ErrorResponse;
4038
+ };
4039
+ export type ListTeamComputersError = ListTeamComputersErrors[keyof ListTeamComputersErrors];
4040
+ export type ListTeamComputersResponses = {
4041
+ 200: Array<ComputerStatus>;
4042
+ };
4043
+ export type ListTeamComputersResponse = ListTeamComputersResponses[keyof ListTeamComputersResponses];
4044
+ export type PurchaseTeamComputerData = {
4045
+ body: PurchaseBody;
4046
+ path?: never;
4047
+ query?: never;
4048
+ url: '/team/computers';
4049
+ };
4050
+ export type PurchaseTeamComputerErrors = {
4051
+ 402: ErrorResponse;
4052
+ 409: ErrorResponse;
4053
+ 503: ErrorResponse;
4054
+ };
4055
+ export type PurchaseTeamComputerError = PurchaseTeamComputerErrors[keyof PurchaseTeamComputerErrors];
4056
+ export type PurchaseTeamComputerResponses = {
4057
+ 200: Purchased;
4058
+ 202: Purchased;
4059
+ };
4060
+ export type PurchaseTeamComputerResponse = PurchaseTeamComputerResponses[keyof PurchaseTeamComputerResponses];
4061
+ export type ListTeamComputerOffersData = {
4062
+ body?: never;
4063
+ path?: never;
4064
+ query?: never;
4065
+ url: '/team/computers/offers';
4066
+ };
4067
+ export type ListTeamComputerOffersErrors = {
4068
+ 503: ErrorResponse;
4069
+ };
4070
+ export type ListTeamComputerOffersError = ListTeamComputerOffersErrors[keyof ListTeamComputerOffersErrors];
4071
+ export type ListTeamComputerOffersResponses = {
4072
+ 200: Array<SizeOffer>;
4073
+ };
4074
+ export type ListTeamComputerOffersResponse = ListTeamComputerOffersResponses[keyof ListTeamComputerOffersResponses];
4075
+ export type UndoCancelTeamComputerData = {
4076
+ body?: never;
4077
+ path: {
4078
+ computer_id: string;
4079
+ };
4080
+ query?: never;
4081
+ url: '/team/computers/{computer_id}/cancel';
4082
+ };
4083
+ export type UndoCancelTeamComputerResponses = {
4084
+ 200: ComputerStatus;
4085
+ };
4086
+ export type UndoCancelTeamComputerResponse = UndoCancelTeamComputerResponses[keyof UndoCancelTeamComputerResponses];
4087
+ export type CancelTeamComputerData = {
4088
+ body?: never;
4089
+ path: {
4090
+ computer_id: string;
4091
+ };
4092
+ query?: never;
4093
+ url: '/team/computers/{computer_id}/cancel';
4094
+ };
4095
+ export type CancelTeamComputerResponses = {
4096
+ 200: ComputerStatus;
4097
+ };
4098
+ export type CancelTeamComputerResponse = CancelTeamComputerResponses[keyof CancelTeamComputerResponses];
4099
+ export type SetTeamComputerPowerData = {
4100
+ body: PowerBody;
4101
+ path: {
4102
+ computer_id: string;
4103
+ };
4104
+ query?: never;
4105
+ url: '/team/computers/{computer_id}/power';
4106
+ };
4107
+ export type SetTeamComputerPowerResponses = {
4108
+ 200: ComputerStatus;
4109
+ };
4110
+ export type SetTeamComputerPowerResponse = SetTeamComputerPowerResponses[keyof SetTeamComputerPowerResponses];
4111
+ export type ReleaseTeamComputerData = {
4112
+ body: ReleaseBody;
4113
+ path: {
4114
+ computer_id: string;
4115
+ };
4116
+ query?: never;
4117
+ url: '/team/computers/{computer_id}/release';
4118
+ };
4119
+ export type ReleaseTeamComputerErrors = {
4120
+ 400: ErrorResponse;
4121
+ };
4122
+ export type ReleaseTeamComputerError = ReleaseTeamComputerErrors[keyof ReleaseTeamComputerErrors];
4123
+ export type ReleaseTeamComputerResponses = {
4124
+ 200: ComputerStatus;
4125
+ };
4126
+ export type ReleaseTeamComputerResponse = ReleaseTeamComputerResponses[keyof ReleaseTeamComputerResponses];
4127
+ export type RestoreTeamComputerData = {
4128
+ body?: never;
4129
+ path: {
4130
+ computer_id: string;
4131
+ };
4132
+ query?: never;
4133
+ url: '/team/computers/{computer_id}/restore';
4134
+ };
4135
+ export type RestoreTeamComputerErrors = {
4136
+ 402: ErrorResponse;
4137
+ 409: ErrorResponse;
4138
+ };
4139
+ export type RestoreTeamComputerError = RestoreTeamComputerErrors[keyof RestoreTeamComputerErrors];
4140
+ export type RestoreTeamComputerResponses = {
4141
+ 200: ComputerStatus;
4142
+ };
4143
+ export type RestoreTeamComputerResponse = RestoreTeamComputerResponses[keyof RestoreTeamComputerResponses];
4144
+ export type RetryTeamComputerData = {
4145
+ body?: never;
4146
+ path: {
4147
+ computer_id: string;
4148
+ };
4149
+ query?: never;
4150
+ url: '/team/computers/{computer_id}/retry';
4151
+ };
4152
+ export type RetryTeamComputerErrors = {
4153
+ 404: ErrorResponse;
4154
+ 409: ErrorResponse;
4155
+ };
4156
+ export type RetryTeamComputerError = RetryTeamComputerErrors[keyof RetryTeamComputerErrors];
4157
+ export type RetryTeamComputerResponses = {
4158
+ 200: ComputerStatus;
4159
+ };
4160
+ export type RetryTeamComputerResponse = RetryTeamComputerResponses[keyof RetryTeamComputerResponses];
4161
+ export type CompleteTeamComputerSetupData = {
4162
+ body?: never;
4163
+ path: {
4164
+ computer_id: string;
4165
+ };
4166
+ query?: never;
4167
+ url: '/team/computers/{computer_id}/setup-complete';
4168
+ };
4169
+ export type CompleteTeamComputerSetupErrors = {
4170
+ 403: ErrorResponse;
4171
+ 404: ErrorResponse;
4172
+ };
4173
+ export type CompleteTeamComputerSetupError = CompleteTeamComputerSetupErrors[keyof CompleteTeamComputerSetupErrors];
4174
+ export type CompleteTeamComputerSetupResponses = {
4175
+ 200: ComputerStatus;
4176
+ };
4177
+ export type CompleteTeamComputerSetupResponse = CompleteTeamComputerSetupResponses[keyof CompleteTeamComputerSetupResponses];
3543
4178
  export type PatchTeamCrmSettingsData = {
3544
4179
  body: PatchTeamCrmSettingsRequest;
3545
4180
  path?: never;
@@ -3858,6 +4493,113 @@ export type GetUserInvitesResponses = {
3858
4493
  200: TeamInvitesResponse;
3859
4494
  };
3860
4495
  export type GetUserInvitesResponse = GetUserInvitesResponses[keyof GetUserInvitesResponses];
4496
+ export type ListTeamAgentsData = {
4497
+ body?: never;
4498
+ path?: never;
4499
+ query?: never;
4500
+ url: '/team_agents';
4501
+ };
4502
+ export type ListTeamAgentsErrors = {
4503
+ 401: ErrorResponse;
4504
+ 403: ErrorResponse;
4505
+ 500: ErrorResponse;
4506
+ };
4507
+ export type ListTeamAgentsError = ListTeamAgentsErrors[keyof ListTeamAgentsErrors];
4508
+ export type ListTeamAgentsResponses = {
4509
+ 200: TeamAgents;
4510
+ };
4511
+ export type ListTeamAgentsResponse = ListTeamAgentsResponses[keyof ListTeamAgentsResponses];
4512
+ export type CreateTeamAgentData = {
4513
+ body: CreateTeamAgent;
4514
+ path?: never;
4515
+ query?: never;
4516
+ url: '/team_agents';
4517
+ };
4518
+ export type CreateTeamAgentErrors = {
4519
+ 400: ErrorResponse;
4520
+ 401: ErrorResponse;
4521
+ 403: ErrorResponse;
4522
+ 409: ErrorResponse;
4523
+ 500: ErrorResponse;
4524
+ 502: ErrorResponse;
4525
+ };
4526
+ export type CreateTeamAgentError = CreateTeamAgentErrors[keyof CreateTeamAgentErrors];
4527
+ export type CreateTeamAgentResponses = {
4528
+ 201: TeamAgent;
4529
+ };
4530
+ export type CreateTeamAgentResponse = CreateTeamAgentResponses[keyof CreateTeamAgentResponses];
4531
+ export type DeleteTeamAgentData = {
4532
+ body?: never;
4533
+ path: {
4534
+ /**
4535
+ * The agent's Macro user id.
4536
+ */
4537
+ agent_user_id: string;
4538
+ };
4539
+ query?: never;
4540
+ url: '/team_agents/{agent_user_id}';
4541
+ };
4542
+ export type DeleteTeamAgentErrors = {
4543
+ 400: ErrorResponse;
4544
+ 401: ErrorResponse;
4545
+ 403: ErrorResponse;
4546
+ 404: ErrorResponse;
4547
+ 500: ErrorResponse;
4548
+ 502: ErrorResponse;
4549
+ };
4550
+ export type DeleteTeamAgentError = DeleteTeamAgentErrors[keyof DeleteTeamAgentErrors];
4551
+ export type DeleteTeamAgentResponses = {
4552
+ 204: void;
4553
+ };
4554
+ export type DeleteTeamAgentResponse = DeleteTeamAgentResponses[keyof DeleteTeamAgentResponses];
4555
+ export type GetTeamAgentVoiceData = {
4556
+ body?: never;
4557
+ path: {
4558
+ /**
4559
+ * The agent's Macro user id.
4560
+ */
4561
+ agent_user_id: string;
4562
+ };
4563
+ query?: never;
4564
+ url: '/team_agents/{agent_user_id}/voice';
4565
+ };
4566
+ export type GetTeamAgentVoiceErrors = {
4567
+ 400: ErrorResponse;
4568
+ 401: ErrorResponse;
4569
+ 403: ErrorResponse;
4570
+ 404: ErrorResponse;
4571
+ 500: ErrorResponse;
4572
+ 502: ErrorResponse;
4573
+ };
4574
+ export type GetTeamAgentVoiceError = GetTeamAgentVoiceErrors[keyof GetTeamAgentVoiceErrors];
4575
+ export type GetTeamAgentVoiceResponses = {
4576
+ 200: AgentVoice;
4577
+ };
4578
+ export type GetTeamAgentVoiceResponse = GetTeamAgentVoiceResponses[keyof GetTeamAgentVoiceResponses];
4579
+ export type SetTeamAgentVoiceData = {
4580
+ body: AgentVoice;
4581
+ path: {
4582
+ /**
4583
+ * The agent's Macro user id.
4584
+ */
4585
+ agent_user_id: string;
4586
+ };
4587
+ query?: never;
4588
+ url: '/team_agents/{agent_user_id}/voice';
4589
+ };
4590
+ export type SetTeamAgentVoiceErrors = {
4591
+ 400: ErrorResponse;
4592
+ 401: ErrorResponse;
4593
+ 403: ErrorResponse;
4594
+ 404: ErrorResponse;
4595
+ 500: ErrorResponse;
4596
+ 502: ErrorResponse;
4597
+ };
4598
+ export type SetTeamAgentVoiceError = SetTeamAgentVoiceErrors[keyof SetTeamAgentVoiceErrors];
4599
+ export type SetTeamAgentVoiceResponses = {
4600
+ 200: AgentVoice;
4601
+ };
4602
+ export type SetTeamAgentVoiceResponse = SetTeamAgentVoiceResponses[keyof SetTeamAgentVoiceResponses];
3861
4603
  export type AgentSetupData = {
3862
4604
  body?: never;
3863
4605
  path?: never;
@@ -3867,7 +4609,7 @@ export type AgentSetupData = {
3867
4609
  export type AgentSetupErrors = {
3868
4610
  401: string;
3869
4611
  /**
3870
- * The account is not an agent
4612
+ * The account is not an agent, or the caller is an agent's program
3871
4613
  */
3872
4614
  403: ErrorResponse;
3873
4615
  /**
@@ -4118,6 +4860,10 @@ export type PutProfilePictureData = {
4118
4860
  };
4119
4861
  export type PutProfilePictureErrors = {
4120
4862
  401: string;
4863
+ /**
4864
+ * Picture changed less than a second ago
4865
+ */
4866
+ 429: ErrorResponse;
4121
4867
  500: ErrorResponse;
4122
4868
  };
4123
4869
  export type PutProfilePictureError = PutProfilePictureErrors[keyof PutProfilePictureErrors];
@@ -4168,6 +4914,10 @@ export type PutProfilePictureFileErrors = {
4168
4914
  * The caller has no such file
4169
4915
  */
4170
4916
  404: ErrorResponse;
4917
+ /**
4918
+ * Picture changed less than a second ago
4919
+ */
4920
+ 429: ErrorResponse;
4171
4921
  500: ErrorResponse;
4172
4922
  };
4173
4923
  export type PutProfilePictureFileError = PutProfilePictureFileErrors[keyof PutProfilePictureFileErrors];