@macro-inc/sdk 0.5.0 → 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.
- package/README.md +156 -23
- package/dist/{chunk-3SW6QVDV.js → chunk-4MI52GWV.js} +60 -1
- package/dist/{chunk-GT5EUYOR.js → chunk-HO75UE4Z.js} +133 -0
- package/dist/{chunk-P4DTO6VD.js → chunk-MCSQNZ4E.js} +6 -0
- package/dist/{chunk-HIW6KU2I.js → chunk-SJ6S2GAT.js} +712 -14
- package/dist/{chunk-J2VK3NOR.js → chunk-SK5CMXRV.js} +44 -14
- package/dist/{chunk-UVJLWLSJ.js → chunk-TMTYN2UK.js} +190 -2
- package/dist/{chunk-PPR7IWZ7.js → chunk-ZYBAKW25.js} +2 -1
- package/dist/generated/agent-fold/index.d.ts +194 -8
- package/dist/generated/agent-harness/index.d.ts +1 -1
- package/dist/generated/agent-harness/index.js +1 -1
- package/dist/generated/agent-harness/sdk.gen.d.ts +33 -2
- package/dist/generated/agent-harness/types.gen.d.ts +341 -8
- package/dist/generated/agent-reviews/index.d.ts +11 -9
- package/dist/generated/auth/index.d.ts +1 -1
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +69 -1
- package/dist/generated/auth/types.gen.d.ts +734 -3
- package/dist/generated/calendar/types.gen.d.ts +10 -3
- package/dist/generated/cognition/index.d.ts +1 -1
- package/dist/generated/cognition/index.js +1 -1
- package/dist/generated/cognition/sdk.gen.d.ts +23 -6
- package/dist/generated/cognition/types.gen.d.ts +202 -114
- package/dist/generated/contacts/index.d.ts +1 -1
- package/dist/generated/contacts/index.js +1 -1
- package/dist/generated/contacts/sdk.gen.d.ts +5 -1
- package/dist/generated/contacts/types.gen.d.ts +56 -0
- package/dist/generated/email/types.gen.d.ts +8 -2
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/index.js +1 -1
- package/dist/generated/notification/sdk.gen.d.ts +2 -1
- package/dist/generated/notification/types.gen.d.ts +138 -0
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +1 -1
- package/dist/generated/scheduled-action/sdk.gen.d.ts +92 -2
- package/dist/generated/scheduled-action/types.gen.d.ts +1455 -21
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +50 -11
- package/dist/generated/storage/index.d.ts +1 -1
- package/dist/generated/storage/index.js +1 -1
- package/dist/generated/storage/sdk.gen.d.ts +309 -15
- package/dist/generated/storage/types.gen.d.ts +12437 -8899
- package/dist/src/entities/agent-sessions/activity.d.ts +3 -2
- package/dist/src/entities/agent-sessions/agent-session.d.ts +17 -5
- package/dist/src/entities/agent-sessions/namespace.d.ts +5 -4
- package/dist/src/entities/agent-sessions/review.d.ts +1 -1
- package/dist/src/entities/ai/namespace.d.ts +2 -2
- package/dist/src/entities/api-keys/namespace.d.ts +5 -2
- package/dist/src/entities/bots/bot.d.ts +6 -3
- package/dist/src/entities/calendar/booking-namespace.d.ts +1 -1
- package/dist/src/entities/calendar/calendar.d.ts +3 -2
- package/dist/src/entities/calendar/event.d.ts +9 -0
- package/dist/src/entities/calendar/namespace.d.ts +3 -2
- package/dist/src/entities/calls/call-record.d.ts +19 -5
- package/dist/src/entities/canvases/canvas.d.ts +5 -0
- package/dist/src/entities/channels/channel.d.ts +27 -7
- package/dist/src/entities/channels/message.d.ts +65 -2
- package/dist/src/entities/channels/message.test.d.ts +1 -0
- package/dist/src/entities/channels/namespace.d.ts +9 -4
- package/dist/src/entities/channels/post.d.ts +13 -7
- package/dist/src/entities/channels/share.d.ts +9 -0
- package/dist/src/entities/channels/share.test.d.ts +1 -0
- package/dist/src/entities/channels/thread.d.ts +5 -1
- package/dist/src/entities/chats/chat.d.ts +1 -1
- package/dist/src/entities/chats/namespace.d.ts +1 -1
- package/dist/src/entities/connected-apps/connected-app.d.ts +2 -1
- package/dist/src/entities/connected-apps/namespace.d.ts +2 -0
- package/dist/src/entities/crm/company.d.ts +1 -1
- package/dist/src/entities/crm/contact.d.ts +44 -3
- package/dist/src/entities/crm/namespace.d.ts +30 -13
- package/dist/src/entities/crm/pipeline-entry.d.ts +10 -3
- package/dist/src/entities/crm/pipeline.d.ts +39 -20
- package/dist/src/entities/crm/pipelines.d.ts +33 -5
- package/dist/src/entities/crm-email-privacy/email-privacy.d.ts +238 -0
- package/dist/src/entities/crm-email-privacy/email-rule-preview.d.ts +55 -0
- package/dist/src/entities/crm-email-privacy/email-rule-revision.d.ts +27 -0
- package/dist/src/entities/crm-email-privacy/email-rules.d.ts +32 -0
- package/dist/src/entities/databases/database.d.ts +34 -6
- package/dist/src/entities/databases/namespace.d.ts +26 -6
- package/dist/src/entities/databases/saved-query.d.ts +7 -1
- package/dist/src/entities/databases/table.d.ts +9 -0
- package/dist/src/entities/databases/view.d.ts +10 -0
- package/dist/src/entities/documents/create.test.d.ts +1 -0
- package/dist/src/entities/documents/document.d.ts +41 -6
- package/dist/src/entities/documents/namespace.d.ts +17 -3
- package/dist/src/entities/email/draft.d.ts +2 -2
- package/dist/src/entities/email/message.d.ts +18 -7
- package/dist/src/entities/email/namespace.d.ts +11 -7
- package/dist/src/entities/email/thread.d.ts +26 -3
- package/dist/src/entities/entity.d.ts +10 -1
- package/dist/src/entities/external-chat/chat.d.ts +19 -2
- package/dist/src/entities/foreign/namespace.d.ts +1 -1
- package/dist/src/entities/forms/form.d.ts +20 -1
- package/dist/src/entities/harnesses/namespace.d.ts +1 -1
- package/dist/src/entities/harnesses/pairing.d.ts +2 -1
- package/dist/src/entities/imports/entry.d.ts +65 -0
- package/dist/src/entities/imports/namespace.d.ts +103 -0
- package/dist/src/entities/imports/namespace.test.d.ts +1 -0
- package/dist/src/entities/initiatives/initiative.d.ts +14 -4
- package/dist/src/entities/initiatives/namespace.d.ts +4 -2
- package/dist/src/entities/me/namespace.d.ts +1 -1
- package/dist/src/entities/meetings/meeting.d.ts +2 -1
- package/dist/src/entities/notifications/namespace.d.ts +2 -1
- package/dist/src/entities/notifications/notification.d.ts +2 -1
- package/dist/src/entities/passwords/item.d.ts +118 -0
- package/dist/src/entities/passwords/namespace.d.ts +45 -0
- package/dist/src/entities/projects/namespace.d.ts +1 -1
- package/dist/src/entities/projects/project.d.ts +11 -1
- package/dist/src/entities/referrals/namespace.d.ts +1 -1
- package/dist/src/entities/routines/namespace.d.ts +81 -18
- package/dist/src/entities/routines/routine.d.ts +65 -4
- package/dist/src/entities/routines/suggestion.d.ts +38 -0
- package/dist/src/entities/saved-views/namespace.d.ts +2 -1
- package/dist/src/entities/search/exclusions.d.ts +6 -0
- package/dist/src/entities/search/namespace.d.ts +4 -2
- package/dist/src/entities/search/options.d.ts +3 -2
- package/dist/src/entities/suggestions/namespace.d.ts +118 -0
- package/dist/src/entities/suggestions/suggestion.d.ts +172 -0
- package/dist/src/entities/suggestions/suggestion.test.d.ts +1 -0
- package/dist/src/entities/tasks/namespace.d.ts +6 -5
- package/dist/src/entities/tasks/task.d.ts +14 -2
- package/dist/src/entities/teams/team.d.ts +16 -3
- package/dist/src/entities/ui/app-link.d.ts +24 -0
- package/dist/src/entities/ui/namespace.d.ts +75 -0
- package/dist/src/entities/users/namespace.d.ts +7 -3
- package/dist/src/entities/web/namespace.d.ts +2 -2
- package/dist/src/entities/workspace/namespace.d.ts +5 -3
- package/dist/src/entities/workspace/query.test.d.ts +1 -0
- package/dist/src/events/hydrate/document.d.ts +5 -0
- package/dist/src/macro.d.ts +26 -1
- package/dist/src/macro.js +4086 -1234
- package/dist/src/utils/activity.d.ts +2 -0
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/lazy.d.ts +13 -0
- package/dist/src/utils/options.d.ts +7 -0
- package/dist/src/utils/pagination.d.ts +16 -0
- package/dist/src/utils/verbs.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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
|
*/
|
|
@@ -1293,8 +1453,8 @@ export type PatchTeamCrmSettingsRequest = {
|
|
|
1293
1453
|
enabled: boolean;
|
|
1294
1454
|
};
|
|
1295
1455
|
/**
|
|
1296
|
-
* Compatibility response for `PATCH /team/crm`.
|
|
1297
|
-
*
|
|
1456
|
+
* Compatibility response for `PATCH /team/crm`. Record access follows member
|
|
1457
|
+
* permissions; this endpoint does not enroll mailboxes or backfill emails.
|
|
1298
1458
|
*/
|
|
1299
1459
|
export type PatchTeamCrmSettingsResponse = {
|
|
1300
1460
|
/**
|
|
@@ -1314,6 +1474,19 @@ export type PatchTeamCrmSettingsResponse = {
|
|
|
1314
1474
|
*/
|
|
1315
1475
|
enabled: boolean;
|
|
1316
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
|
+
};
|
|
1317
1490
|
/**
|
|
1318
1491
|
* Request body for `PATCH /team/members/{member_user_id}/plan`.
|
|
1319
1492
|
*/
|
|
@@ -1329,6 +1502,7 @@ export type PatchTeamMemberPlanRequest = {
|
|
|
1329
1502
|
export type PatchTeamRequest = {
|
|
1330
1503
|
default_link_share?: null | LinkShare;
|
|
1331
1504
|
language?: null | Language;
|
|
1505
|
+
member_crm_access?: null | PatchTeamMemberCrmAccess;
|
|
1332
1506
|
/**
|
|
1333
1507
|
* The new name for the team
|
|
1334
1508
|
*/
|
|
@@ -1459,6 +1633,15 @@ export type PlanTier = 'free' | 'premium' | 'max';
|
|
|
1459
1633
|
export type PostGetNamesRequestBody = {
|
|
1460
1634
|
user_ids: Array<string>;
|
|
1461
1635
|
};
|
|
1636
|
+
/**
|
|
1637
|
+
* Body of a power change.
|
|
1638
|
+
*/
|
|
1639
|
+
export type PowerBody = {
|
|
1640
|
+
/**
|
|
1641
|
+
* Requested power state.
|
|
1642
|
+
*/
|
|
1643
|
+
on: boolean;
|
|
1644
|
+
};
|
|
1462
1645
|
export type ProfilePictureQueryParams = {
|
|
1463
1646
|
url: string;
|
|
1464
1647
|
};
|
|
@@ -1495,6 +1678,41 @@ export type PublicGtmInviteLink = {
|
|
|
1495
1678
|
*/
|
|
1496
1679
|
status: GtmInviteLinkStatus;
|
|
1497
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
|
+
};
|
|
1498
1716
|
/**
|
|
1499
1717
|
* The key someone pasted.
|
|
1500
1718
|
*/
|
|
@@ -1545,6 +1763,31 @@ export type PutUserNameQueryParams = {
|
|
|
1545
1763
|
*/
|
|
1546
1764
|
last_name?: string | null;
|
|
1547
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
|
+
};
|
|
1548
1791
|
/**
|
|
1549
1792
|
* Request body to redeem a link.
|
|
1550
1793
|
*/
|
|
@@ -1554,6 +1797,15 @@ export type RedeemGtmInviteLinkRequest = {
|
|
|
1554
1797
|
*/
|
|
1555
1798
|
token: string;
|
|
1556
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
|
+
};
|
|
1557
1809
|
export type ResendFusionauthVerifyUserEmailRequest = {
|
|
1558
1810
|
/**
|
|
1559
1811
|
* The email address to resend the verification email to
|
|
@@ -1685,6 +1937,60 @@ export type SetGithubPullRequestStateResponse = {
|
|
|
1685
1937
|
*/
|
|
1686
1938
|
state: GithubPullRequestState;
|
|
1687
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
|
+
};
|
|
1688
1994
|
export type SsoRequiredResponse = {
|
|
1689
1995
|
/**
|
|
1690
1996
|
* The idp_id you need to perform sso login with.
|
|
@@ -1717,10 +2023,116 @@ export type StripeSessionResponse = {
|
|
|
1717
2023
|
*/
|
|
1718
2024
|
url: string;
|
|
1719
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
|
+
};
|
|
1720
2131
|
/**
|
|
1721
2132
|
* Current renewal and scheduled change; empty for accounts without a subscription.
|
|
1722
2133
|
*/
|
|
1723
2134
|
export type SubscriptionStatus = {
|
|
2135
|
+
billing?: null | SubscriptionBilling;
|
|
1724
2136
|
/**
|
|
1725
2137
|
* Provider-confirmed subscription renewal date.
|
|
1726
2138
|
*/
|
|
@@ -1786,6 +2198,61 @@ export type Team = {
|
|
|
1786
2198
|
owner_id: string;
|
|
1787
2199
|
slug: string;
|
|
1788
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
|
+
};
|
|
1789
2256
|
/**
|
|
1790
2257
|
* Detailed information about a team invite
|
|
1791
2258
|
*/
|
|
@@ -1903,6 +2370,12 @@ export type TeamRole = 'member' | 'admin' | 'owner';
|
|
|
1903
2370
|
* A team with its members
|
|
1904
2371
|
*/
|
|
1905
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
|
+
};
|
|
1906
2379
|
/**
|
|
1907
2380
|
* The members of the team
|
|
1908
2381
|
*/
|
|
@@ -3512,6 +3985,7 @@ export type PatchTeamErrors = {
|
|
|
3512
3985
|
401: ErrorResponse;
|
|
3513
3986
|
404: ErrorResponse;
|
|
3514
3987
|
500: ErrorResponse;
|
|
3988
|
+
503: ErrorResponse;
|
|
3515
3989
|
};
|
|
3516
3990
|
export type PatchTeamError = PatchTeamErrors[keyof PatchTeamErrors];
|
|
3517
3991
|
export type PatchTeamResponses = {
|
|
@@ -3526,6 +4000,7 @@ export type CreateTeamData = {
|
|
|
3526
4000
|
export type CreateTeamErrors = {
|
|
3527
4001
|
400: ErrorResponse;
|
|
3528
4002
|
403: ErrorResponse;
|
|
4003
|
+
409: ErrorResponse;
|
|
3529
4004
|
500: ErrorResponse;
|
|
3530
4005
|
};
|
|
3531
4006
|
export type CreateTeamError = CreateTeamErrors[keyof CreateTeamErrors];
|
|
@@ -3551,6 +4026,155 @@ export type ToggleTeamAutoJoinDomainResponses = {
|
|
|
3551
4026
|
200: ToggleAutoJoinDomainResponse;
|
|
3552
4027
|
};
|
|
3553
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];
|
|
3554
4178
|
export type PatchTeamCrmSettingsData = {
|
|
3555
4179
|
body: PatchTeamCrmSettingsRequest;
|
|
3556
4180
|
path?: never;
|
|
@@ -3869,6 +4493,113 @@ export type GetUserInvitesResponses = {
|
|
|
3869
4493
|
200: TeamInvitesResponse;
|
|
3870
4494
|
};
|
|
3871
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];
|
|
3872
4603
|
export type AgentSetupData = {
|
|
3873
4604
|
body?: never;
|
|
3874
4605
|
path?: never;
|
|
@@ -3878,7 +4609,7 @@ export type AgentSetupData = {
|
|
|
3878
4609
|
export type AgentSetupErrors = {
|
|
3879
4610
|
401: string;
|
|
3880
4611
|
/**
|
|
3881
|
-
* The account is not an agent
|
|
4612
|
+
* The account is not an agent, or the caller is an agent's program
|
|
3882
4613
|
*/
|
|
3883
4614
|
403: ErrorResponse;
|
|
3884
4615
|
/**
|