@macro-inc/sdk 0.3.0 → 0.4.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 (100) hide show
  1. package/README.md +45 -0
  2. package/dist/{chunk-Y4HQV7EL.js → chunk-AZJUIUIV.js} +26 -0
  3. package/dist/{chunk-KPR5JIGY.js → chunk-G43PLP2U.js} +95 -0
  4. package/dist/{chunk-IIICUUWY.js → chunk-PPR7IWZ7.js} +51 -51
  5. package/dist/{chunk-PTMBRVEK.js → chunk-PTX2RV2N.js} +84 -0
  6. package/dist/{chunk-OEHZOKGE.js → chunk-PZPTJI6F.js} +16 -0
  7. package/dist/{chunk-HR32RQGP.js → chunk-ZLBDES7U.js} +307 -1
  8. package/dist/generated/agent-fold/index.d.ts +6 -1
  9. package/dist/generated/agent-harness/index.d.ts +1 -1
  10. package/dist/generated/agent-harness/index.js +1 -1
  11. package/dist/generated/agent-harness/sdk.gen.d.ts +44 -1
  12. package/dist/generated/agent-harness/types.gen.d.ts +699 -0
  13. package/dist/generated/calendar/index.d.ts +1 -1
  14. package/dist/generated/calendar/index.js +1 -1
  15. package/dist/generated/calendar/sdk.gen.d.ts +41 -1
  16. package/dist/generated/calendar/types.gen.d.ts +904 -2
  17. package/dist/generated/cognition/index.d.ts +1 -1
  18. package/dist/generated/cognition/index.js +1 -1
  19. package/dist/generated/cognition/sdk.gen.d.ts +9 -1
  20. package/dist/generated/cognition/types.gen.d.ts +79 -0
  21. package/dist/generated/email/types.gen.d.ts +11 -1
  22. package/dist/generated/notification/index.js +1 -1
  23. package/dist/generated/notification/sdk.gen.d.ts +20 -20
  24. package/dist/generated/notification/types.gen.d.ts +77 -72
  25. package/dist/generated/scheduled-action/index.d.ts +1 -1
  26. package/dist/generated/scheduled-action/index.js +1 -1
  27. package/dist/generated/scheduled-action/sdk.gen.d.ts +4 -1
  28. package/dist/generated/scheduled-action/types.gen.d.ts +388 -7
  29. package/dist/generated/storage/index.d.ts +1 -1
  30. package/dist/generated/storage/index.js +1 -1
  31. package/dist/generated/storage/sdk.gen.d.ts +151 -1
  32. package/dist/generated/storage/types.gen.d.ts +3888 -139
  33. package/dist/src/entities/account-managers/grant.d.ts +39 -0
  34. package/dist/src/entities/account-managers/namespace.d.ts +17 -0
  35. package/dist/src/entities/agent-sessions/activity.d.ts +39 -0
  36. package/dist/src/entities/agent-sessions/agent-session.d.ts +42 -0
  37. package/dist/src/entities/agent-sessions/namespace.d.ts +7 -1
  38. package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
  39. package/dist/src/entities/ai/namespace.d.ts +1 -1
  40. package/dist/src/entities/bots/bot.d.ts +108 -0
  41. package/dist/src/entities/bots/namespace.d.ts +15 -4
  42. package/dist/src/entities/bots/token.d.ts +34 -0
  43. package/dist/src/entities/calendar/booking-link.d.ts +49 -0
  44. package/dist/src/entities/calendar/booking-namespace.d.ts +130 -0
  45. package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
  46. package/dist/src/entities/calendar/booking.d.ts +77 -0
  47. package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
  48. package/dist/src/entities/calendar/namespace.d.ts +63 -15
  49. package/dist/src/entities/calls/call-record.d.ts +25 -3
  50. package/dist/src/entities/calls/connection.d.ts +53 -0
  51. package/dist/src/entities/calls/errors.d.ts +15 -0
  52. package/dist/src/entities/calls/namespace.d.ts +19 -2
  53. package/dist/src/entities/calls/participant.d.ts +22 -0
  54. package/dist/src/entities/channels/channel.d.ts +21 -3
  55. package/dist/src/entities/channels/namespace.d.ts +3 -3
  56. package/dist/src/entities/channels/post.d.ts +10 -2
  57. package/dist/src/entities/channels/thread.d.ts +4 -0
  58. package/dist/src/entities/chats/chat.d.ts +1 -1
  59. package/dist/src/entities/chats/namespace.d.ts +14 -1
  60. package/dist/src/entities/connected-apps/connected-app.d.ts +107 -0
  61. package/dist/src/entities/connected-apps/connector.d.ts +56 -0
  62. package/dist/src/entities/connected-apps/namespace.d.ts +74 -0
  63. package/dist/src/entities/crm/company.d.ts +1 -1
  64. package/dist/src/entities/crm/pipeline.d.ts +1 -1
  65. package/dist/src/entities/documents/document.d.ts +156 -7
  66. package/dist/src/entities/documents/namespace.d.ts +41 -2
  67. package/dist/src/entities/documents/office-files.d.ts +47 -0
  68. package/dist/src/entities/email/draft.d.ts +26 -4
  69. package/dist/src/entities/email/message.d.ts +91 -1
  70. package/dist/src/entities/email/namespace.d.ts +26 -3
  71. package/dist/src/entities/email/namespace.test.d.ts +1 -0
  72. package/dist/src/entities/email/thread.d.ts +7 -2
  73. package/dist/src/entities/external-chat/namespace.d.ts +2 -0
  74. package/dist/src/entities/favorites/namespace.d.ts +1 -1
  75. package/dist/src/entities/harnesses/namespace.d.ts +5 -1
  76. package/dist/src/entities/images/namespace.d.ts +5 -1
  77. package/dist/src/entities/me/namespace.d.ts +5 -1
  78. package/dist/src/entities/meetings/meeting.d.ts +5 -0
  79. package/dist/src/entities/messages/thread.d.ts +1 -1
  80. package/dist/src/entities/pins/namespace.d.ts +1 -1
  81. package/dist/src/entities/projects/namespace.d.ts +1 -1
  82. package/dist/src/entities/projects/project.d.ts +1 -1
  83. package/dist/src/entities/search/namespace.d.ts +65 -0
  84. package/dist/src/entities/search/options.d.ts +29 -0
  85. package/dist/src/entities/search/types.d.ts +90 -0
  86. package/dist/src/entities/tasks/namespace.d.ts +1 -1
  87. package/dist/src/entities/tasks/task.d.ts +4 -3
  88. package/dist/src/entities/users/namespace.d.ts +1 -1
  89. package/dist/src/entities/whatsapp/namespace.d.ts +2 -0
  90. package/dist/src/entities/workspace/items.d.ts +7 -0
  91. package/dist/src/entities/workspace/namespace.d.ts +14 -9
  92. package/dist/src/entities/workspace/query.d.ts +23 -0
  93. package/dist/src/entities/workspace/types.d.ts +6 -3
  94. package/dist/src/events/hydrate/call.d.ts +101 -0
  95. package/dist/src/events/types.d.ts +2 -1
  96. package/dist/src/macro.d.ts +33 -1
  97. package/dist/src/macro.js +6423 -4265
  98. package/dist/src/utils/activity.d.ts +23 -2
  99. package/package.json +1 -1
  100. package/dist/src/entities/search.d.ts +0 -53
@@ -92,6 +92,68 @@ export type AccessiblePipeline = Pipeline & {
92
92
  */
93
93
  grant: AccessLevel;
94
94
  };
95
+ /**
96
+ * A response to a request.
97
+ */
98
+ export type AccountManagerDecision = 'approve' | 'decline';
99
+ /**
100
+ * A request for manager access and what became of it.
101
+ */
102
+ export type AccountManagerGrant = {
103
+ /**
104
+ * When the manager claimed the credential.
105
+ */
106
+ claimedAt?: string | null;
107
+ /**
108
+ * When the request was made.
109
+ */
110
+ createdAt: string;
111
+ /**
112
+ * When the pending request or unclaimed approval stops being usable.
113
+ */
114
+ expiresAt?: string | null;
115
+ /**
116
+ * Grant id.
117
+ */
118
+ id: string;
119
+ /**
120
+ * When the credential was last used, to the minute.
121
+ */
122
+ lastUsedAt?: string | null;
123
+ /**
124
+ * The account being managed.
125
+ */
126
+ managedUserId: string;
127
+ /**
128
+ * The agent account doing the managing.
129
+ */
130
+ managerUserId: string;
131
+ /**
132
+ * The side that asked.
133
+ */
134
+ requestedBy: AccountManagerRole;
135
+ /**
136
+ * Lifecycle status.
137
+ */
138
+ status: AccountManagerGrantStatus;
139
+ };
140
+ /**
141
+ * Where a grant is in its lifecycle.
142
+ */
143
+ export type AccountManagerGrantStatus = 'pending' | 'approved' | 'declined' | 'active' | 'revoked' | 'expired';
144
+ /**
145
+ * One side of a grant.
146
+ */
147
+ export type AccountManagerRole = 'managed' | 'manager';
148
+ /**
149
+ * The managers of the caller's account.
150
+ */
151
+ export type AccountManagersList = {
152
+ /**
153
+ * Approved and active grants on the caller's account.
154
+ */
155
+ grants: Array<AccountManagerGrant>;
156
+ };
95
157
  /**
96
158
  * A currently active call, as returned by the batch active-calls listing.
97
159
  */
@@ -149,6 +211,15 @@ export type ActiveMeetingsResponse = {
149
211
  * The kind of activity a user performs in a channel.
150
212
  */
151
213
  export type ActivityType = 'view' | 'interact';
214
+ /**
215
+ * Request to add a bot to a channel.
216
+ */
217
+ export type AddChannelBotRequest = {
218
+ /**
219
+ * Bot id.
220
+ */
221
+ bot_id: BotId;
222
+ };
152
223
  /**
153
224
  * Request body for favoriting an entity.
154
225
  */
@@ -448,6 +519,89 @@ export type AnchorId = PdfAnchorId & {
448
519
  export type AnchorResponse = {
449
520
  data: Array<Anchor>;
450
521
  };
522
+ /**
523
+ * An animation's effect group (PowerPoint's Entrance, Emphasis, Exit, and
524
+ * Motion Paths galleries).
525
+ */
526
+ export type AnimationClass = 'entrance' | 'emphasis' | 'exit' | 'path' | 'media' | 'other';
527
+ /**
528
+ * How often an animation plays.
529
+ */
530
+ export type AnimationRepeat = number | RepeatUntil;
531
+ /**
532
+ * One animation of a slide, for [`EditOp::SetAnimations`] and
533
+ * [`EditOp::AddAnimation`]. Omitted (or null) fields take the effect's
534
+ * defaults, or keep the values of the existing animation it matches.
535
+ */
536
+ export type AnimationSpec = {
537
+ /**
538
+ * Effect group: `entrance`, `emphasis`, `exit`, or `path` (`media` and
539
+ * `other` can only keep animations the slide already has).
540
+ */
541
+ class: AnimationClass;
542
+ /**
543
+ * Wait in milliseconds after the animation's start (click, previous
544
+ * animation's start, or its end) before it plays, 0-60000 (default 0).
545
+ */
546
+ delayMs?: number | null;
547
+ /**
548
+ * Effect option (default: the first listed). `flyIn`, `flyOut` (edge it
549
+ * flies in from or out to): `bottom`, `left`, `right`, `top`,
550
+ * `bottomLeft`, `bottomRight`, `topLeft`, `topRight`; `wipe` (edge it
551
+ * starts from): `bottom`, `left`, `right`, `top`; `split` (entrance):
552
+ * `verticalOut`, `horizontalOut`, `verticalIn`, `horizontalIn` (exit:
553
+ * the `In` ones first); `shape` (entrance): `circleOut`, `circleIn`,
554
+ * `boxOut`, `boxIn`, `diamondOut`, `diamondIn`, `plusOut`, `plusIn`
555
+ * (exit: `circleIn` first); `wheel`: `spokes1`, `spokes2`, `spokes3`,
556
+ * `spokes4`, `spokes8`; `randomBars`: `horizontal`, `vertical`; `zoom`:
557
+ * `objectCenter`, `slideCenter`; `floatIn`: `up`, `down`; `floatOut`:
558
+ * `down`, `up`; `spin`: `clockwise`, `counterclockwise`; `path`: `down`,
559
+ * `left`, `right`, `up` (a straight line a quarter of the slide long).
560
+ */
561
+ direction?: string | null;
562
+ /**
563
+ * Duration of one play in milliseconds, 10-60000 (default: the
564
+ * effect's, e.g. 500 for fade, flyIn, wipe, and zoom, 1000 for floatIn
565
+ * and teeter, 2000 for spin, growShrink, shape, wheel, and paths).
566
+ * `appear` and `disappear` are instant and ignore it.
567
+ */
568
+ durationMs?: number | null;
569
+ /**
570
+ * Effect name. Entrance: `appear`, `fade`, `flyIn`, `floatIn`, `split`,
571
+ * `wipe`, `shape`, `wheel`, `randomBars`, `growTurn`, `zoom`, `swivel`,
572
+ * `bounce`. Emphasis: `pulse`, `colorPulse`, `teeter`, `spin`,
573
+ * `growShrink`, `desaturate`, `darken`, `lighten`, `transparency`,
574
+ * `boldFlash`, `wave`. Exit: `disappear`, `fadeOut`, `flyOut`,
575
+ * `floatOut`, `split`, `wipe`, `shape`, `wheel`, `randomBars`,
576
+ * `shrinkTurn`, `zoom`, `swivel`, `bounce`. Path: `path`. Other names
577
+ * the slide's outline reports (and `custom`) only keep an existing
578
+ * animation of that name on the same shape.
579
+ */
580
+ effect: string;
581
+ /**
582
+ * Animate only this paragraph of the shape's text (0-based); omit to
583
+ * animate the whole shape. One animation per paragraph builds a list
584
+ * paragraph by paragraph.
585
+ */
586
+ paragraph?: number | null;
587
+ /**
588
+ * `path` class only: a motion path of its own instead of a direction,
589
+ * in PowerPoint's syntax with coordinates as fractions of the slide's
590
+ * width and height relative to the shape's position (`M 0 0 L 0.25 0.1 E`;
591
+ * commands `M`, `L`, `C`, `Z`, and `E` for the end).
592
+ */
593
+ path?: string | null;
594
+ repeat?: null | AnimationRepeat;
595
+ /**
596
+ * Id of the shape to animate. A group member's id animates only that member.
597
+ */
598
+ shapeId: number;
599
+ start?: null | AnimationStart;
600
+ };
601
+ /**
602
+ * When an animation starts.
603
+ */
604
+ export type AnimationStart = 'onClick' | 'withPrevious' | 'afterPrevious';
451
605
  export type AnnotationIncrementalUpdate = {
452
606
  payload: {
453
607
  documentId: string;
@@ -1280,6 +1434,32 @@ export type BasicDocumentSubType = {
1280
1434
  } | {
1281
1435
  type: 'initiative_description';
1282
1436
  };
1437
+ /**
1438
+ * Text box (body) changes.
1439
+ */
1440
+ export type BodyPatch = {
1441
+ /**
1442
+ * `top`, `middle`, `bottom`.
1443
+ */
1444
+ anchor?: string | null;
1445
+ /**
1446
+ * `none`, `shrink` (shrink text on overflow), `resize` (resize shape to fit).
1447
+ */
1448
+ autofit?: string | null;
1449
+ /**
1450
+ * Number of columns.
1451
+ */
1452
+ columns?: number | null;
1453
+ direction?: null | TextDirection;
1454
+ /**
1455
+ * Insets `[left, top, right, bottom]` in points.
1456
+ */
1457
+ insets?: Array<number> | null;
1458
+ /**
1459
+ * Wrap text at the box width.
1460
+ */
1461
+ wrap?: boolean | null;
1462
+ };
1283
1463
  export type BomPart = {
1284
1464
  /**
1285
1465
  * The uuid of the bom part
@@ -1308,6 +1488,33 @@ export type BookingTarget = {
1308
1488
  */
1309
1489
  profileId: string;
1310
1490
  };
1491
+ /**
1492
+ * Which borders of a cell range [`EditOp::FormatCells`](super::EditOp::FormatCells) changes. A border
1493
+ * between two cells is shared, so both cells get the change.
1494
+ */
1495
+ export type BorderEdges = 'all' | 'outside' | 'inside' | 'top' | 'bottom' | 'left' | 'right' | 'insideHorizontal' | 'insideVertical';
1496
+ /**
1497
+ * A table border change (`None` = leave unchanged). A border that did not
1498
+ * exist yet becomes a solid 1 pt `tx1` line unless the change says otherwise.
1499
+ */
1500
+ export type BorderLine = {
1501
+ /**
1502
+ * Color (`RRGGBB` or theme name).
1503
+ */
1504
+ color?: string | null;
1505
+ /**
1506
+ * Preset dash (`solid`, `dash`, `dot`, `dashDot`, `lgDash`, `sysDash`, `sysDot`).
1507
+ */
1508
+ dash?: string | null;
1509
+ /**
1510
+ * Remove the border (no line).
1511
+ */
1512
+ none?: boolean;
1513
+ /**
1514
+ * Width in points.
1515
+ */
1516
+ width?: number | null;
1517
+ };
1311
1518
  /**
1312
1519
  * Bot row.
1313
1520
  *
@@ -1339,7 +1546,7 @@ export type Bot = {
1339
1546
  */
1340
1547
  handle: string;
1341
1548
  /**
1342
- * Whether mentioning this bot opens a sandboxed coding-agent session.
1549
+ * Whether this bot runs as an AI agent: mentions and DMs start an agent session.
1343
1550
  */
1344
1551
  has_agent: boolean;
1345
1552
  /**
@@ -1500,6 +1707,30 @@ export type BulkWakeupRequest = {
1500
1707
  export type BulkWakeupResponse = {
1501
1708
  dispatched: number;
1502
1709
  };
1710
+ /**
1711
+ * Bullet style for paragraphs.
1712
+ */
1713
+ export type BulletSpec = {
1714
+ kind: 'none';
1715
+ } | {
1716
+ kind: 'inherit';
1717
+ } | {
1718
+ /**
1719
+ * The bullet character.
1720
+ */
1721
+ char: string;
1722
+ kind: 'char';
1723
+ } | {
1724
+ kind: 'number';
1725
+ /**
1726
+ * Numbering scheme.
1727
+ */
1728
+ scheme: string;
1729
+ /**
1730
+ * First number.
1731
+ */
1732
+ start?: number;
1733
+ };
1503
1734
  /**
1504
1735
  * An attendee on a calendar event.
1505
1736
  */
@@ -2007,6 +2238,45 @@ export type CallActiveResponse = {
2007
2238
  */
2008
2239
  createdBy: string;
2009
2240
  };
2241
+ /**
2242
+ * Where a call's discussion lives, decided once when the call is created.
2243
+ * `channel_id` cannot decide this: past channel calls keep their own thread.
2244
+ */
2245
+ export type CallDiscussion = {
2246
+ /**
2247
+ * The channel holding the thread.
2248
+ */
2249
+ channel_id: string;
2250
+ kind: 'channel_thread';
2251
+ /**
2252
+ * The thread's root message.
2253
+ */
2254
+ root_id: string;
2255
+ } | {
2256
+ /**
2257
+ * The call owning the thread.
2258
+ */
2259
+ call_id: string;
2260
+ kind: 'call_chat';
2261
+ };
2262
+ /**
2263
+ * A channel call's life, as its timeline row shows it.
2264
+ */
2265
+ export type CallEntryStatus = {
2266
+ state: 'live';
2267
+ } | {
2268
+ /**
2269
+ * How long it lasted.
2270
+ */
2271
+ duration_ms: number;
2272
+ /**
2273
+ * When it ended.
2274
+ */
2275
+ ended_at: string;
2276
+ state: 'ended';
2277
+ } | {
2278
+ state: 'record_deleted';
2279
+ };
2010
2280
  /**
2011
2281
  * Filters for call records.
2012
2282
  */
@@ -2032,6 +2302,104 @@ export type CallFilters = {
2032
2302
  speaker_ids?: Array<string>;
2033
2303
  status?: null | CallStatus;
2034
2304
  };
2305
+ /**
2306
+ * Public call events. Private variants carry a recipient on the broker only.
2307
+ */
2308
+ export type CallNotificationEvent = {
2309
+ event_type: 'call.started';
2310
+ /**
2311
+ * A call started.
2312
+ */
2313
+ metadata: CallNotificationMetadata;
2314
+ } | {
2315
+ event_type: 'call.ended';
2316
+ /**
2317
+ * A call ended.
2318
+ */
2319
+ metadata: CallNotificationMetadata;
2320
+ } | {
2321
+ event_type: 'call.participant_joined';
2322
+ /**
2323
+ * A participant entered the RTC room.
2324
+ */
2325
+ metadata: CallNotificationMetadata;
2326
+ } | {
2327
+ event_type: 'call.participant_left';
2328
+ /**
2329
+ * A participant left the RTC room.
2330
+ */
2331
+ metadata: CallNotificationMetadata;
2332
+ } | {
2333
+ event_type: 'call.recording_ready';
2334
+ /**
2335
+ * A recording became available.
2336
+ */
2337
+ metadata: CallNotificationMetadata;
2338
+ } | {
2339
+ event_type: 'call.summarized';
2340
+ /**
2341
+ * A summary became available.
2342
+ */
2343
+ metadata: CallNotificationMetadata;
2344
+ } | {
2345
+ event_type: 'call.ringing';
2346
+ /**
2347
+ * The recipient is being rung.
2348
+ */
2349
+ metadata: CallNotificationMetadata;
2350
+ } | {
2351
+ event_type: 'call.answered';
2352
+ /**
2353
+ * The recipient answered.
2354
+ */
2355
+ metadata: CallNotificationMetadata;
2356
+ } | {
2357
+ event_type: 'call.declined';
2358
+ /**
2359
+ * The recipient declined.
2360
+ */
2361
+ metadata: CallNotificationMetadata;
2362
+ } | {
2363
+ event_type: 'call.invited';
2364
+ /**
2365
+ * The recipient was invited.
2366
+ */
2367
+ metadata: CallNotificationMetadata;
2368
+ };
2369
+ /**
2370
+ * Identifiers and actors for a public call notification. Optional fields are
2371
+ * absent when they do not apply to the event.
2372
+ */
2373
+ export type CallNotificationMetadata = {
2374
+ /**
2375
+ * Call identifier.
2376
+ */
2377
+ call_id: string;
2378
+ /**
2379
+ * Channel containing the call, if any.
2380
+ */
2381
+ channel_id?: string | null;
2382
+ /**
2383
+ * User who created the call.
2384
+ */
2385
+ created_by?: string | null;
2386
+ /**
2387
+ * Room identity of the joining or departing participant.
2388
+ */
2389
+ identity?: string | null;
2390
+ /**
2391
+ * User who sent an invitation.
2392
+ */
2393
+ invited_by?: string | null;
2394
+ /**
2395
+ * Meeting associated with an invitation.
2396
+ */
2397
+ meeting_id?: string | null;
2398
+ /**
2399
+ * Account identifier of the participant or answering user.
2400
+ */
2401
+ user_id?: string | null;
2402
+ };
2035
2403
  /**
2036
2404
  * Supported call and transcript providers. Add variants as integrations grow.
2037
2405
  */
@@ -2062,6 +2430,10 @@ export type CallRecord = {
2062
2430
  * archived `call_records`; active calls always return `None`.
2063
2431
  */
2064
2432
  customName?: string | null;
2433
+ /**
2434
+ * Where this call's discussion lives.
2435
+ */
2436
+ discussion: CallDiscussion;
2065
2437
  /**
2066
2438
  * Call duration in milliseconds (None if still active).
2067
2439
  */
@@ -2301,6 +2673,10 @@ export type CallTokenResponse = {
2301
2673
  * Meeting link capability, when joined using a link.
2302
2674
  */
2303
2675
  shareToken?: string | null;
2676
+ /**
2677
+ * Whether this request allocated the call.
2678
+ */
2679
+ started: boolean;
2304
2680
  /**
2305
2681
  * The RTC token for connecting to the room.
2306
2682
  */
@@ -2329,6 +2705,32 @@ export type CardPosition = {
2329
2705
  * Whether a column's values convert to a type.
2330
2706
  */
2331
2707
  export type CastVerdict = 'safe' | 'checked' | 'never';
2708
+ /**
2709
+ * Borders to change in [`EditOp::FormatCells`](super::EditOp::FormatCells).
2710
+ */
2711
+ export type CellBorders = {
2712
+ /**
2713
+ * Which borders.
2714
+ */
2715
+ edges: BorderEdges;
2716
+ /**
2717
+ * The change applied to each of them.
2718
+ */
2719
+ line: BorderLine;
2720
+ };
2721
+ /**
2722
+ * A table cell inside a graphic frame (0-based).
2723
+ */
2724
+ export type CellRef = {
2725
+ /**
2726
+ * Column index.
2727
+ */
2728
+ col: number;
2729
+ /**
2730
+ * Row index.
2731
+ */
2732
+ row: number;
2733
+ };
2332
2734
  /**
2333
2735
  * A cell's value. It must fit the column's type: text for a text column,
2334
2736
  * options of the column for a select, and so on.
@@ -3067,6 +3469,32 @@ export type ChannelWithParticipants = {
3067
3469
  */
3068
3470
  participants: Array<ChannelParticipant>;
3069
3471
  };
3472
+ /**
3473
+ * A series color for [`EditOp::FormatChart`](super::EditOp::FormatChart).
3474
+ */
3475
+ export type ChartSeriesColor = {
3476
+ /**
3477
+ * `RRGGBB`, or a theme color name (`accent1`, `tx1`...).
3478
+ */
3479
+ color: string;
3480
+ /**
3481
+ * Series index in plot order (0-based).
3482
+ */
3483
+ series: number;
3484
+ };
3485
+ /**
3486
+ * One series of chart data.
3487
+ */
3488
+ export type ChartSeriesData = {
3489
+ /**
3490
+ * Series name (legend text).
3491
+ */
3492
+ name: string;
3493
+ /**
3494
+ * One value per category (`null` for a blank).
3495
+ */
3496
+ values: Array<number | null>;
3497
+ };
3070
3498
  export type Chat = {
3071
3499
  /**
3072
3500
  * The time the chat was created
@@ -3146,6 +3574,19 @@ export type ClaimPairingRequest = {
3146
3574
  */
3147
3575
  device_secret: string;
3148
3576
  };
3577
+ /**
3578
+ * The credential, returned only by the claim that issued it.
3579
+ */
3580
+ export type ClaimedAccountManagerToken = {
3581
+ /**
3582
+ * The grant, now active.
3583
+ */
3584
+ grant: AccountManagerGrant;
3585
+ /**
3586
+ * The secret. Shown only once.
3587
+ */
3588
+ token: string;
3589
+ };
3149
3590
  /**
3150
3591
  * The credential released to the daemon when a pairing is claimed.
3151
3592
  */
@@ -3837,7 +4278,7 @@ export type CreateBotRequest = {
3837
4278
  */
3838
4279
  handle: string;
3839
4280
  /**
3840
- * Whether mentioning this bot opens a sandboxed coding-agent session. Defaults to false.
4281
+ * Whether this bot runs as an AI agent: mentions and DMs start an agent session. Defaults to false.
3841
4282
  */
3842
4283
  has_agent?: boolean | null;
3843
4284
  /**
@@ -3849,6 +4290,32 @@ export type CreateBotRequest = {
3849
4290
  */
3850
4291
  team_id?: string | null;
3851
4292
  };
4293
+ /**
4294
+ * Request to create a bot token.
4295
+ */
4296
+ export type CreateBotTokenRequest = {
4297
+ /**
4298
+ * Optional expiration timestamp.
4299
+ */
4300
+ expires_at?: string | null;
4301
+ /**
4302
+ * Token label.
4303
+ */
4304
+ label?: string | null;
4305
+ };
4306
+ /**
4307
+ * Response containing a newly minted token.
4308
+ */
4309
+ export type CreateBotTokenResponse = {
4310
+ /**
4311
+ * Raw bearer token.
4312
+ */
4313
+ bearer_token: string;
4314
+ /**
4315
+ * Token metadata.
4316
+ */
4317
+ token: BotToken;
4318
+ };
3852
4319
  export type CreateBulkDocumentResponse = {
3853
4320
  /**
3854
4321
  * Data to be returned
@@ -3962,7 +4429,7 @@ export type CreateChannelScopedBotRequest = {
3962
4429
  */
3963
4430
  handle: string;
3964
4431
  /**
3965
- * Whether mentioning this bot opens a sandboxed coding-agent session. Defaults to false.
4432
+ * Whether this bot runs as an AI agent: mentions and DMs start an agent session. Defaults to false.
3966
4433
  */
3967
4434
  has_agent?: boolean | null;
3968
4435
  /**
@@ -4332,17 +4799,15 @@ export type CreatePairingRequest = {
4332
4799
  name: string;
4333
4800
  };
4334
4801
  /**
4335
- * Request to create an empty pipeline with the standard CRM columns.
4802
+ * Request to create an empty pipeline: the standard CRM columns for a tracked
4803
+ * record, or one Name column, like a new database, for a generic pipeline.
4336
4804
  */
4337
4805
  export type CreatePipeline = {
4338
4806
  /**
4339
4807
  * Pipeline name.
4340
4808
  */
4341
4809
  name: string;
4342
- /**
4343
- * Company or contact entries.
4344
- */
4345
- recordType: PipelineRecordType;
4810
+ recordType?: null | PipelineRecordType;
4346
4811
  /**
4347
4812
  * Defaults to private.
4348
4813
  */
@@ -4622,6 +5087,23 @@ export type CreatedDatabaseWebhookResponse = {
4622
5087
  */
4623
5088
  webhook: DatabaseWebhookResponse;
4624
5089
  };
5090
+ /**
5091
+ * A slide or shape an edit created.
5092
+ */
5093
+ export type CreatedItem = {
5094
+ /**
5095
+ * Section id, for created sections.
5096
+ */
5097
+ section?: string | null;
5098
+ /**
5099
+ * Shape id, for created shapes.
5100
+ */
5101
+ shape?: number | null;
5102
+ /**
5103
+ * Slide id.
5104
+ */
5105
+ slide: number;
5106
+ };
4625
5107
  /**
4626
5108
  * A pairing the daemon created, including its claim credential.
4627
5109
  *
@@ -4929,7 +5411,11 @@ export type CrmTeamSettingsResponse = {
4929
5411
  team_views: unknown;
4930
5412
  };
4931
5413
  /**
4932
- * One per-diarized-speaker override, used in [`EditCallTranscriptRequest`].
5414
+ * How `cropPicture` fits a picture's image to its frame.
5415
+ */
5416
+ export type CropMode = 'fill' | 'fit';
5417
+ /**
5418
+ * One per-diarized-speaker override, used in [`EditCallTranscriptRequest`].
4933
5419
  *
4934
5420
  * `custom_speaker = None` clears any existing override for this
4935
5421
  * `diarized_speaker_id`; `Some(macro_user_id)` sets it. The string is
@@ -5232,6 +5718,16 @@ export type DeleteUnthreadedPdfAnchorRequest = {
5232
5718
  anchorType: 'highlight';
5233
5719
  uuid: string;
5234
5720
  };
5721
+ /**
5722
+ * A design file described as text.
5723
+ */
5724
+ export type DesignFileDescription = {
5725
+ /**
5726
+ * The description: pages or artboards, the layer tree, and the text of
5727
+ * text layers.
5728
+ */
5729
+ content: string;
5730
+ };
5235
5731
  /**
5236
5732
  * A direct user grant; inherited grants are deliberately not editable here.
5237
5733
  */
@@ -5830,6 +6326,10 @@ export type DocumentSyncEditor = {
5830
6326
  * User or bot that performed the edit.
5831
6327
  */
5832
6328
  actor: string;
6329
+ /**
6330
+ * Invocation from the editor's signed document grant.
6331
+ */
6332
+ agent_correlation_id?: string | null;
5833
6333
  on_behalf_of?: null | MacroUserIdStr;
5834
6334
  };
5835
6335
  /**
@@ -5923,108 +6423,1474 @@ export type DocumentUpdatedMetadata = {
5923
6423
  /**
5924
6424
  * The id of the updated document.
5925
6425
  */
5926
- document_id: string;
6426
+ document_id: string;
6427
+ /**
6428
+ * New (cleaned) document name; `None` when unchanged.
6429
+ */
6430
+ document_name?: string | null;
6431
+ file_type?: null | FileTypeUpdate;
6432
+ on_behalf_of?: null | MacroUserIdStr;
6433
+ /**
6434
+ * The owner of the document.
6435
+ */
6436
+ owner: string;
6437
+ /**
6438
+ * Project id before the update.
6439
+ */
6440
+ previous_project_id?: string | null;
6441
+ /**
6442
+ * New project id; `None` when unchanged, `Some("")` when removed from
6443
+ * its project (mirrors the edit repo args semantics).
6444
+ */
6445
+ project_id?: string | null;
6446
+ /**
6447
+ * Whether share permissions were updated.
6448
+ */
6449
+ share_permission_updated: boolean;
6450
+ };
6451
+ /**
6452
+ * Request body for duplicating a database.
6453
+ */
6454
+ export type DuplicateDatabaseRequest = {
6455
+ /**
6456
+ * The copy's name; left out, "<name> copy".
6457
+ */
6458
+ name?: string | null;
6459
+ };
6460
+ export type EditAnchorRequest = EditPdfAnchorRequest & {
6461
+ fileType: 'pdf';
6462
+ };
6463
+ export type EditAnchorResponse = Anchor & {
6464
+ documentId: string;
6465
+ };
6466
+ /**
6467
+ * Edit call request, as supplied by inbound callers.
6468
+ */
6469
+ export type EditCallRecordRequest = {
6470
+ /**
6471
+ * Updated user-supplied display name for the call. `None` is a no-op;
6472
+ * `Some("")` clears `call_records.custom_name`; any other `Some(s)`
6473
+ * overwrites it with `s`. Only the archived `call_records` row carries
6474
+ * this column — patching while the call is still active is a no-op for
6475
+ * this field.
6476
+ */
6477
+ customName?: string | null;
6478
+ sharePermission?: null | UpdateSharePermissionRequestV2;
6479
+ /**
6480
+ * Deprecated alias for `sharePermission.teamShareAccessLevel`:
6481
+ * `Some(true)` behaves like `"view"`, `Some(false)` like `null`, and
6482
+ * `None` is a no-op. Supplying both with disagreeing values is rejected.
6483
+ * The team is resolved from the call's `created_by`, not the acting user.
6484
+ */
6485
+ shareWithTeam?: boolean | null;
6486
+ };
6487
+ /**
6488
+ * Body of `PATCH /call/record/{call_id}/transcript`.
6489
+ *
6490
+ * Each entry in `assignments` sets (or clears, when `custom_speaker` is
6491
+ * `None`) the `custom_speaker` override for every transcript row in the
6492
+ * call whose `diarized_speaker_id` matches. Diarized speakers not listed
6493
+ * are left untouched. Empty `assignments` is a 204 no-op.
6494
+ */
6495
+ export type EditCallTranscriptRequest = {
6496
+ /**
6497
+ * The set of per-diarized-speaker overrides to apply.
6498
+ */
6499
+ assignments: Array<CustomSpeakerAssignment>;
6500
+ };
6501
+ /**
6502
+ * Edit document response.
6503
+ */
6504
+ export type EditDocumentResponse = {
6505
+ /**
6506
+ * The response data.
6507
+ */
6508
+ data: GenericSuccessResponse;
6509
+ /**
6510
+ * Whether an error occurred.
6511
+ */
6512
+ error: boolean;
6513
+ };
6514
+ /**
6515
+ * Arguments for the edit_document service call.
6516
+ */
6517
+ export type EditDocumentServiceArgs = {
6518
+ /**
6519
+ * The name of the document.
6520
+ */
6521
+ documentName?: string | null;
6522
+ fileType?: null | FileTypeUpdate;
6523
+ /**
6524
+ * The new project id of the document.
6525
+ */
6526
+ projectId?: string | null;
6527
+ sharePermission?: null | UpdateSharePermissionRequestV2;
6528
+ };
6529
+ /**
6530
+ * One edit operation.
6531
+ */
6532
+ export type EditOp = {
6533
+ cell?: null | CellRef;
6534
+ op: 'setText';
6535
+ /**
6536
+ * Shape id.
6537
+ */
6538
+ shape: number;
6539
+ /**
6540
+ * Slide id.
6541
+ */
6542
+ slide: number;
6543
+ /**
6544
+ * New text.
6545
+ */
6546
+ text: string;
6547
+ } | {
6548
+ /**
6549
+ * Where to insert.
6550
+ */
6551
+ at: TextPos;
6552
+ cell?: null | CellRef;
6553
+ op: 'insertText';
6554
+ /**
6555
+ * Shape id.
6556
+ */
6557
+ shape: number;
6558
+ /**
6559
+ * Slide id.
6560
+ */
6561
+ slide: number;
6562
+ /**
6563
+ * Text to insert.
6564
+ */
6565
+ text: string;
6566
+ } | {
6567
+ cell?: null | CellRef;
6568
+ /**
6569
+ * End (exclusive).
6570
+ */
6571
+ end: TextPos;
6572
+ op: 'deleteText';
6573
+ /**
6574
+ * Shape id.
6575
+ */
6576
+ shape: number;
6577
+ /**
6578
+ * Slide id.
6579
+ */
6580
+ slide: number;
6581
+ /**
6582
+ * Start (inclusive).
6583
+ */
6584
+ start: TextPos;
6585
+ } | {
6586
+ cell?: null | CellRef;
6587
+ end?: null | TextPos;
6588
+ op: 'formatText';
6589
+ /**
6590
+ * Changes.
6591
+ */
6592
+ props: RunPatch;
6593
+ /**
6594
+ * Shape id.
6595
+ */
6596
+ shape: number;
6597
+ /**
6598
+ * Slide id.
6599
+ */
6600
+ slide: number;
6601
+ start?: null | TextPos;
6602
+ } | {
6603
+ cell?: null | CellRef;
6604
+ /**
6605
+ * First paragraph.
6606
+ */
6607
+ from?: number | null;
6608
+ op: 'formatParagraphs';
6609
+ /**
6610
+ * Changes.
6611
+ */
6612
+ props: ParaPatch;
6613
+ /**
6614
+ * Shape id.
6615
+ */
6616
+ shape: number;
6617
+ /**
6618
+ * Slide id.
6619
+ */
6620
+ slide: number;
6621
+ /**
6622
+ * Last paragraph.
6623
+ */
6624
+ to?: number | null;
6625
+ } | {
6626
+ cell?: null | CellRef;
6627
+ op: 'formatBody';
6628
+ /**
6629
+ * Changes.
6630
+ */
6631
+ props: BodyPatch;
6632
+ /**
6633
+ * Shape id.
6634
+ */
6635
+ shape: number;
6636
+ /**
6637
+ * Slide id.
6638
+ */
6639
+ slide: number;
6640
+ } | {
6641
+ /**
6642
+ * Horizontal flip.
6643
+ */
6644
+ flipH?: boolean | null;
6645
+ /**
6646
+ * Vertical flip.
6647
+ */
6648
+ flipV?: boolean | null;
6649
+ /**
6650
+ * Height (points).
6651
+ */
6652
+ h?: number | null;
6653
+ op: 'setTransform';
6654
+ /**
6655
+ * Rotation in degrees.
6656
+ */
6657
+ rotation?: number | null;
6658
+ /**
6659
+ * Shape id.
6660
+ */
6661
+ shape: number;
6662
+ /**
6663
+ * Slide id.
6664
+ */
6665
+ slide: number;
6666
+ /**
6667
+ * Width (points).
6668
+ */
6669
+ w?: number | null;
6670
+ /**
6671
+ * Left (points).
6672
+ */
6673
+ x?: number | null;
6674
+ /**
6675
+ * Top (points).
6676
+ */
6677
+ y?: number | null;
6678
+ } | {
6679
+ /**
6680
+ * The fill.
6681
+ */
6682
+ fill: FillSpec;
6683
+ op: 'setFill';
6684
+ /**
6685
+ * Shape id.
6686
+ */
6687
+ shape: number;
6688
+ /**
6689
+ * Slide id.
6690
+ */
6691
+ slide: number;
6692
+ } | {
6693
+ /**
6694
+ * Changes.
6695
+ */
6696
+ line: LinePatch;
6697
+ op: 'setLine';
6698
+ /**
6699
+ * Shape id.
6700
+ */
6701
+ shape: number;
6702
+ /**
6703
+ * Slide id.
6704
+ */
6705
+ slide: number;
6706
+ } | {
6707
+ op: 'setGeometry';
6708
+ /**
6709
+ * Preset name.
6710
+ */
6711
+ preset: string;
6712
+ /**
6713
+ * Shape id.
6714
+ */
6715
+ shape: number;
6716
+ /**
6717
+ * Slide id.
6718
+ */
6719
+ slide: number;
6720
+ } | {
6721
+ /**
6722
+ * Height (points).
6723
+ */
6724
+ h: number;
6725
+ op: 'addShape';
6726
+ /**
6727
+ * What to add.
6728
+ */
6729
+ shape: NewShape;
6730
+ /**
6731
+ * Slide id.
6732
+ */
6733
+ slide: number;
6734
+ /**
6735
+ * Width (points).
6736
+ */
6737
+ w: number;
6738
+ /**
6739
+ * Left (points).
6740
+ */
6741
+ x: number;
6742
+ /**
6743
+ * Top (points).
6744
+ */
6745
+ y: number;
6746
+ } | {
6747
+ op: 'deleteShape';
6748
+ /**
6749
+ * Shape id.
6750
+ */
6751
+ shape: number;
6752
+ /**
6753
+ * Slide id.
6754
+ */
6755
+ slide: number;
6756
+ } | {
6757
+ /**
6758
+ * Horizontal offset.
6759
+ */
6760
+ dx?: number;
6761
+ /**
6762
+ * Vertical offset.
6763
+ */
6764
+ dy?: number;
6765
+ op: 'duplicateShape';
6766
+ /**
6767
+ * Shape id.
6768
+ */
6769
+ shape: number;
6770
+ /**
6771
+ * Slide id.
6772
+ */
6773
+ slide: number;
6774
+ } | {
6775
+ op: 'reorderShape';
6776
+ /**
6777
+ * Shape id.
6778
+ */
6779
+ shape: number;
6780
+ /**
6781
+ * Slide id.
6782
+ */
6783
+ slide: number;
6784
+ /**
6785
+ * Where to move it.
6786
+ */
6787
+ to: ZOrder;
6788
+ } | {
6789
+ /**
6790
+ * Base64-encoded PNG, JPEG, or GIF bytes.
6791
+ */
6792
+ data: string;
6793
+ op: 'replaceImage';
6794
+ /**
6795
+ * Shape id.
6796
+ */
6797
+ shape: number;
6798
+ /**
6799
+ * Slide id.
6800
+ */
6801
+ slide: number;
6802
+ } | {
6803
+ /**
6804
+ * Column.
6805
+ */
6806
+ col: number;
6807
+ op: 'setCellText';
6808
+ /**
6809
+ * Row.
6810
+ */
6811
+ row: number;
6812
+ /**
6813
+ * Graphic frame id.
6814
+ */
6815
+ shape: number;
6816
+ /**
6817
+ * Slide id.
6818
+ */
6819
+ slide: number;
6820
+ /**
6821
+ * Text.
6822
+ */
6823
+ text: string;
6824
+ } | {
6825
+ /**
6826
+ * Index of the new row.
6827
+ */
6828
+ at: number;
6829
+ op: 'insertTableRow';
6830
+ /**
6831
+ * Graphic frame id.
6832
+ */
6833
+ shape: number;
6834
+ /**
6835
+ * Slide id.
6836
+ */
6837
+ slide: number;
6838
+ } | {
6839
+ op: 'deleteTableRow';
6840
+ /**
6841
+ * Row index.
6842
+ */
6843
+ row: number;
6844
+ /**
6845
+ * Graphic frame id.
6846
+ */
6847
+ shape: number;
6848
+ /**
6849
+ * Slide id.
6850
+ */
6851
+ slide: number;
6852
+ } | {
6853
+ /**
6854
+ * Index of the new column.
6855
+ */
6856
+ at: number;
6857
+ op: 'insertTableColumn';
6858
+ /**
6859
+ * Graphic frame id.
6860
+ */
6861
+ shape: number;
6862
+ /**
6863
+ * Slide id.
6864
+ */
6865
+ slide: number;
6866
+ } | {
6867
+ /**
6868
+ * Column index.
6869
+ */
6870
+ col: number;
6871
+ op: 'deleteTableColumn';
6872
+ /**
6873
+ * Graphic frame id.
6874
+ */
6875
+ shape: number;
6876
+ /**
6877
+ * Slide id.
6878
+ */
6879
+ slide: number;
6880
+ } | {
6881
+ /**
6882
+ * One corner of the rectangle.
6883
+ */
6884
+ from: CellRef;
6885
+ op: 'mergeCells';
6886
+ /**
6887
+ * Graphic frame id.
6888
+ */
6889
+ shape: number;
6890
+ /**
6891
+ * Slide id.
6892
+ */
6893
+ slide: number;
6894
+ /**
6895
+ * The opposite corner.
6896
+ */
6897
+ to: CellRef;
6898
+ } | {
6899
+ /**
6900
+ * Any grid cell the merged cell covers.
6901
+ */
6902
+ cell: CellRef;
6903
+ op: 'splitCell';
6904
+ /**
6905
+ * Graphic frame id.
6906
+ */
6907
+ shape: number;
6908
+ /**
6909
+ * Slide id.
6910
+ */
6911
+ slide: number;
6912
+ } | {
6913
+ /**
6914
+ * Vertical text alignment: `top`, `middle`, or `bottom`.
6915
+ */
6916
+ anchor?: string | null;
6917
+ borders?: null | CellBorders;
6918
+ fill?: null | FillSpec;
6919
+ /**
6920
+ * One corner of the rectangle.
6921
+ */
6922
+ from: CellRef;
6923
+ /**
6924
+ * Cell margins `[left, top, right, bottom]` in points.
6925
+ */
6926
+ margins?: Array<number> | null;
6927
+ op: 'formatCells';
6928
+ /**
6929
+ * Graphic frame id.
6930
+ */
6931
+ shape: number;
6932
+ /**
6933
+ * Slide id.
6934
+ */
6935
+ slide: number;
6936
+ /**
6937
+ * The opposite corner.
6938
+ */
6939
+ to: CellRef;
6940
+ } | {
6941
+ /**
6942
+ * Alternate the shading of columns.
6943
+ */
6944
+ bandCol?: boolean | null;
6945
+ /**
6946
+ * Alternate the shading of rows.
6947
+ */
6948
+ bandRow?: boolean | null;
6949
+ /**
6950
+ * Emphasize the first column.
6951
+ */
6952
+ firstCol?: boolean | null;
6953
+ /**
6954
+ * Emphasize the first (header) row.
6955
+ */
6956
+ firstRow?: boolean | null;
6957
+ /**
6958
+ * Emphasize the last column.
6959
+ */
6960
+ lastCol?: boolean | null;
6961
+ /**
6962
+ * Emphasize the last (total) row.
6963
+ */
6964
+ lastRow?: boolean | null;
6965
+ op: 'setTableStyle';
6966
+ /**
6967
+ * Graphic frame id.
6968
+ */
6969
+ shape: number;
6970
+ /**
6971
+ * Slide id.
6972
+ */
6973
+ slide: number;
6974
+ /**
6975
+ * Style id (a GUID from the deck outline's `tableStyles`, e.g.
6976
+ * `{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}` = Medium Style 2 - Accent 1),
6977
+ * or `""` for no style.
6978
+ */
6979
+ style?: string | null;
6980
+ } | {
6981
+ /**
6982
+ * One width per column.
6983
+ */
6984
+ columnWidths?: Array<number> | null;
6985
+ op: 'setTableGrid';
6986
+ /**
6987
+ * One minimum height per row.
6988
+ */
6989
+ rowHeights?: Array<number> | null;
6990
+ /**
6991
+ * Graphic frame id.
6992
+ */
6993
+ shape: number;
6994
+ /**
6995
+ * Slide id.
6996
+ */
6997
+ slide: number;
6998
+ } | {
6999
+ /**
7000
+ * Insert after this slide (end of deck when omitted).
7001
+ */
7002
+ after?: number | null;
7003
+ /**
7004
+ * Body placeholder text (`\n` separates paragraphs).
7005
+ */
7006
+ body?: string | null;
7007
+ /**
7008
+ * Layout name (e.g. "Title and Content"); defaults to the layout of the reference slide.
7009
+ */
7010
+ layout?: string | null;
7011
+ op: 'addSlide';
7012
+ /**
7013
+ * Title placeholder text.
7014
+ */
7015
+ title?: string | null;
7016
+ } | {
7017
+ op: 'duplicateSlide';
7018
+ /**
7019
+ * Slide id.
7020
+ */
7021
+ slide: number;
7022
+ } | {
7023
+ op: 'deleteSlide';
7024
+ /**
7025
+ * Slide id.
7026
+ */
7027
+ slide: number;
7028
+ } | {
7029
+ op: 'moveSlide';
7030
+ /**
7031
+ * Slide id.
7032
+ */
7033
+ slide: number;
7034
+ /**
7035
+ * New index.
7036
+ */
7037
+ to: number;
7038
+ } | {
7039
+ /**
7040
+ * Hidden.
7041
+ */
7042
+ hidden: boolean;
7043
+ op: 'setSlideHidden';
7044
+ /**
7045
+ * Slide id.
7046
+ */
7047
+ slide: number;
7048
+ } | {
7049
+ op: 'setNotes';
7050
+ /**
7051
+ * Slide id.
7052
+ */
7053
+ slide: number;
7054
+ /**
7055
+ * Notes text (`\n` separates paragraphs).
7056
+ */
7057
+ text: string;
7058
+ } | {
7059
+ fill?: null | FillSpec;
7060
+ op: 'setBackground';
7061
+ /**
7062
+ * Slide id.
7063
+ */
7064
+ slide: number;
7065
+ } | {
7066
+ /**
7067
+ * Category labels.
7068
+ */
7069
+ categories: Array<string>;
7070
+ op: 'setChartData';
7071
+ /**
7072
+ * Series in plot order (one value per category).
7073
+ */
7074
+ series: Array<ChartSeriesData>;
7075
+ /**
7076
+ * Graphic frame id.
7077
+ */
7078
+ shape: number;
7079
+ /**
7080
+ * Slide id.
7081
+ */
7082
+ slide: number;
7083
+ } | {
7084
+ /**
7085
+ * `clustered`, `stacked`, `percentStacked`, or `standard` (kept or the type's default when omitted).
7086
+ */
7087
+ grouping?: string | null;
7088
+ /**
7089
+ * `bar` (horizontal), `column`, `line`, `pie`, `doughnut`, or `area`.
7090
+ */
7091
+ kind: string;
7092
+ op: 'setChartType';
7093
+ /**
7094
+ * Graphic frame id.
7095
+ */
7096
+ shape: number;
7097
+ /**
7098
+ * Slide id.
7099
+ */
7100
+ slide: number;
7101
+ } | {
7102
+ /**
7103
+ * Show or hide value data labels on every series.
7104
+ */
7105
+ dataLabels?: boolean | null;
7106
+ /**
7107
+ * Legend position: `right`, `left`, `top`, `bottom`, `topRight`, or `none`.
7108
+ */
7109
+ legend?: string | null;
7110
+ op: 'formatChart';
7111
+ /**
7112
+ * Series colors.
7113
+ */
7114
+ seriesColors?: Array<ChartSeriesColor> | null;
7115
+ /**
7116
+ * Graphic frame id.
7117
+ */
7118
+ shape: number;
7119
+ /**
7120
+ * Slide id.
7121
+ */
7122
+ slide: number;
7123
+ /**
7124
+ * Title text (`""` removes the title).
7125
+ */
7126
+ title?: string | null;
7127
+ } | {
7128
+ op: 'groupShapes';
7129
+ /**
7130
+ * Ids of the shapes to group (at least two).
7131
+ */
7132
+ shapes: Array<number>;
7133
+ /**
7134
+ * Slide id.
7135
+ */
7136
+ slide: number;
7137
+ } | {
7138
+ op: 'ungroupShape';
7139
+ /**
7140
+ * Group id.
7141
+ */
7142
+ shape: number;
7143
+ /**
7144
+ * Slide id.
7145
+ */
7146
+ slide: number;
7147
+ } | {
7148
+ /**
7149
+ * Horizontal offset in points.
7150
+ */
7151
+ dx?: number;
7152
+ /**
7153
+ * Vertical offset in points.
7154
+ */
7155
+ dy?: number;
7156
+ op: 'pasteShapes';
7157
+ /**
7158
+ * The clipboard payload JSON returned by `copyShapes`.
7159
+ */
7160
+ payload: string;
7161
+ /**
7162
+ * Slide id.
7163
+ */
7164
+ slide: number;
7165
+ } | {
7166
+ /**
7167
+ * Insert after this slide (end of deck when omitted).
7168
+ */
7169
+ after?: number | null;
7170
+ op: 'pasteSlides';
7171
+ /**
7172
+ * The clipboard payload JSON returned by `copySlides`.
7173
+ */
7174
+ payload: string;
7175
+ } | {
7176
+ /**
7177
+ * Layout name (e.g. "Title Only"), as listed in the deck's layouts.
7178
+ */
7179
+ layout: string;
7180
+ op: 'setSlideLayout';
7181
+ /**
7182
+ * Slide id.
7183
+ */
7184
+ slide: number;
7185
+ } | {
7186
+ /**
7187
+ * Advance automatically after this many milliseconds; `0` turns
7188
+ * automatic advance off, and an omitted (or null) field keeps the
7189
+ * current setting.
7190
+ */
7191
+ advanceAfterMs?: number | null;
7192
+ /**
7193
+ * Whether a click advances to the next slide.
7194
+ */
7195
+ advanceOnClick?: boolean | null;
7196
+ /**
7197
+ * Give every slide of the deck the resulting transition.
7198
+ */
7199
+ applyToAll?: boolean;
7200
+ /**
7201
+ * Effect option: `fade`: `smooth` or `black`; `push`, `wipe`: `l`,
7202
+ * `r`, `u`, `d`; `cover`, `uncover`: those or `lu`, `ru`, `ld`, `rd`;
7203
+ * `split`: `horzOut`, `horzIn`, `vertOut`, `vertIn`; `reveal`: `l`,
7204
+ * `r`; `randomBar`: `horz`, `vert`; `shape`: `circle`, `diamond`,
7205
+ * `plus`; `zoom`: `in`, `out`; `morph`: `byObject`, `byWord`,
7206
+ * `byChar`. Directions are the OOXML `dir` values.
7207
+ */
7208
+ direction?: string | null;
7209
+ /**
7210
+ * Duration in milliseconds (at most 60000).
7211
+ */
7212
+ durationMs?: number | null;
7213
+ /**
7214
+ * Effect: `none` (removes the transition), `cut`, `fade`, `push`,
7215
+ * `wipe`, `split`, `reveal`, `randomBar`, `shape`, `uncover`,
7216
+ * `cover`, `zoom`, `dissolve`, `flash`, or `morph`.
7217
+ */
7218
+ kind: string;
7219
+ op: 'setTransition';
7220
+ /**
7221
+ * Slide id.
7222
+ */
7223
+ slide: number;
7224
+ } | {
7225
+ /**
7226
+ * Animations in playback order.
7227
+ */
7228
+ animations: Array<AnimationSpec>;
7229
+ op: 'setAnimations';
7230
+ /**
7231
+ * Slide id.
7232
+ */
7233
+ slide: number;
7234
+ } | {
7235
+ /**
7236
+ * The animation.
7237
+ */
7238
+ animation: AnimationSpec;
7239
+ /**
7240
+ * 0-based position in playback order (the end when omitted).
7241
+ */
7242
+ index?: number | null;
7243
+ op: 'addAnimation';
7244
+ /**
7245
+ * Slide id.
7246
+ */
7247
+ slide: number;
7248
+ } | {
7249
+ /**
7250
+ * 0-based playback positions to remove.
7251
+ */
7252
+ indexes?: Array<number> | null;
7253
+ op: 'removeAnimations';
7254
+ /**
7255
+ * Shapes whose animations to remove.
7256
+ */
7257
+ shapeIds?: Array<number> | null;
7258
+ /**
7259
+ * Slide id.
7260
+ */
7261
+ slide: number;
7262
+ } | {
7263
+ /**
7264
+ * Text to find (within one paragraph).
7265
+ */
7266
+ find: string;
7267
+ /**
7268
+ * Match upper and lower case exactly (default: ignore case).
7269
+ */
7270
+ matchCase?: boolean;
7271
+ op: 'replaceText';
7272
+ /**
7273
+ * Replacement text (may be empty; no paragraph or line breaks).
7274
+ */
7275
+ replace: string;
7276
+ /**
7277
+ * Slide id; omit to replace on every slide.
7278
+ */
7279
+ slide?: number | null;
7280
+ /**
7281
+ * Only match whole words (no letter, digit, or `_` on either side).
7282
+ */
7283
+ wholeWord?: boolean;
7284
+ } | {
7285
+ op: 'setAltText';
7286
+ /**
7287
+ * Shape id.
7288
+ */
7289
+ shape: number;
7290
+ /**
7291
+ * Slide id.
7292
+ */
7293
+ slide: number;
7294
+ /**
7295
+ * Alt text.
7296
+ */
7297
+ text: string;
7298
+ } | {
7299
+ /**
7300
+ * New name.
7301
+ */
7302
+ name: string;
7303
+ op: 'setShapeName';
7304
+ /**
7305
+ * Shape id.
7306
+ */
7307
+ shape: number;
7308
+ /**
7309
+ * Slide id.
7310
+ */
7311
+ slide: number;
7312
+ } | {
7313
+ /**
7314
+ * An address (`https://…`, `mailto:…`), `#slide=<id>`, a slide show
7315
+ * jump (`#nextslide`, `#previousslide`, `#firstslide`, `#lastslide`,
7316
+ * `#lastslideviewed`, `#endshow`), or `""` to remove the link.
7317
+ */
7318
+ link: string;
7319
+ op: 'setShapeLink';
7320
+ /**
7321
+ * Shape ids.
7322
+ */
7323
+ shapes: Array<number>;
7324
+ /**
7325
+ * Slide id.
7326
+ */
7327
+ slide: number;
7328
+ /**
7329
+ * The ScreenTip shown on hover.
7330
+ */
7331
+ tip?: string | null;
7332
+ } | {
7333
+ /**
7334
+ * Hidden.
7335
+ */
7336
+ hidden: boolean;
7337
+ op: 'setShapeHidden';
7338
+ /**
7339
+ * Shape id.
7340
+ */
7341
+ shape: number;
7342
+ /**
7343
+ * Slide id.
7344
+ */
7345
+ slide: number;
7346
+ } | {
7347
+ /**
7348
+ * Shape id to copy from (a shape, line, or picture).
7349
+ */
7350
+ fromShape: number;
7351
+ /**
7352
+ * Slide id of the shape to copy from.
7353
+ */
7354
+ fromSlide: number;
7355
+ op: 'pasteFormat';
7356
+ /**
7357
+ * Shape ids to restyle.
7358
+ */
7359
+ shapes: Array<number>;
7360
+ /**
7361
+ * Slide id of the shapes to restyle.
7362
+ */
7363
+ slide: number;
7364
+ } | {
7365
+ /**
7366
+ * Fraction of the image's height cropped off its bottom edge.
7367
+ */
7368
+ bottom?: number | null;
7369
+ /**
7370
+ * Fraction of the image's width cropped off its left edge.
7371
+ */
7372
+ left?: number | null;
7373
+ mode?: null | CropMode;
7374
+ op: 'cropPicture';
7375
+ /**
7376
+ * Fraction of the image's width cropped off its right edge.
7377
+ */
7378
+ right?: number | null;
7379
+ /**
7380
+ * Picture id.
7381
+ */
7382
+ shape: number;
7383
+ /**
7384
+ * Slide id.
7385
+ */
7386
+ slide: number;
7387
+ /**
7388
+ * Fraction of the image's height cropped off its top edge.
7389
+ */
7390
+ top?: number | null;
7391
+ } | {
7392
+ /**
7393
+ * Brightness from -1 to 1 (0 = unchanged, 0.2 = +20%).
7394
+ */
7395
+ brightness?: number | null;
7396
+ /**
7397
+ * Contrast from -1 to 1 (0 = unchanged).
7398
+ */
7399
+ contrast?: number | null;
7400
+ op: 'formatPicture';
7401
+ /**
7402
+ * Recolor: `none`, `grayscale`, `sepia`, `washout`, `blackWhite`
7403
+ * (50% threshold), `blackWhite25`, `blackWhite75`,
7404
+ * `duotone:<color>` (the image in dark shades of the color, on
7405
+ * white), `duotoneLight:<color>` (in light shades of it, on black),
7406
+ * or `duotone:<dark>,<light>` (black and white become these
7407
+ * colors). Colors are `RRGGBB` or theme names (`accent1`...).
7408
+ */
7409
+ recolor?: string | null;
7410
+ /**
7411
+ * First remove the crop (the frame grows back to the whole image at
7412
+ * its current scale) and every adjustment; the other fields then
7413
+ * apply.
7414
+ */
7415
+ reset?: boolean;
7416
+ /**
7417
+ * Ids of the pictures.
7418
+ */
7419
+ shapes: Array<number>;
7420
+ /**
7421
+ * Slide id.
7422
+ */
7423
+ slide: number;
7424
+ /**
7425
+ * Transparency from 0 (opaque) to 1.
7426
+ */
7427
+ transparency?: number | null;
7428
+ } | {
7429
+ glow?: null | EffectSpecGlowOptions;
7430
+ op: 'setShapeEffects';
7431
+ reflection?: null | EffectSpecReflectionOptions;
7432
+ shadow?: null | EffectSpecShadowOptions;
7433
+ /**
7434
+ * Shape ids.
7435
+ */
7436
+ shapes: Array<number>;
7437
+ /**
7438
+ * Slide id.
7439
+ */
7440
+ slide: number;
7441
+ softEdge?: null | EffectSpecSoftEdgeOptions;
7442
+ } | {
7443
+ /**
7444
+ * When true (the default when omitted or null), the shape's box is
7445
+ * moved and resized to the paths' bounds so the outline stays
7446
+ * exactly where it is drawn on the slide, as PowerPoint does after
7447
+ * Edit Points; points may then lie outside the current box. When
7448
+ * false, the box stays and the paths are drawn in it as given
7449
+ * (resizing the shape later stretches them).
7450
+ */
7451
+ fit?: boolean | null;
7452
+ op: 'setCustomGeometry';
7453
+ /**
7454
+ * The outline's paths, in shape-local points (see `PathCommand`).
7455
+ */
7456
+ paths: Array<GeometryPath>;
7457
+ /**
7458
+ * Shape id.
7459
+ */
7460
+ shape: number;
7461
+ /**
7462
+ * Slide id.
7463
+ */
7464
+ slide: number;
7465
+ } | {
7466
+ /**
7467
+ * `union`, `combine`, `fragment`, `intersect`, or `subtract`.
7468
+ */
7469
+ mode: MergeMode;
7470
+ op: 'mergeShapes';
7471
+ /**
7472
+ * Ids of two or more shapes in selection order; the first one's
7473
+ * formatting wins (and `subtract` cuts the others out of it).
7474
+ */
7475
+ shapes: Array<number>;
7476
+ /**
7477
+ * Slide id.
7478
+ */
7479
+ slide: number;
7480
+ } | {
7481
+ /**
7482
+ * Slots to set.
7483
+ */
7484
+ colors: Array<ThemeColor>;
7485
+ /**
7486
+ * New name of the color scheme.
7487
+ */
7488
+ name?: string | null;
7489
+ op: 'setThemeColors';
7490
+ } | {
7491
+ /**
7492
+ * Heading font (kept when omitted).
7493
+ */
7494
+ major?: string | null;
7495
+ /**
7496
+ * Body font (kept when omitted).
7497
+ */
7498
+ minor?: string | null;
7499
+ /**
7500
+ * New name of the font scheme.
7501
+ */
7502
+ name?: string | null;
7503
+ op: 'setThemeFonts';
7504
+ } | {
7505
+ /**
7506
+ * Show the date.
7507
+ */
7508
+ date?: boolean | null;
7509
+ /**
7510
+ * Format of an automatic date: `datetime1` (10/12/2007, the
7511
+ * default), `datetime2` (Friday, October 12, 2007), `datetime3` (12
7512
+ * October 2007), `datetime4` (October 12, 2007), `datetime5`
7513
+ * (12-Oct-07), `datetime6` (October 07), `datetime7` (Oct-07),
7514
+ * `datetime8` (10/12/2007 4:28 PM), `datetime9` (10/12/2007 4:28:34
7515
+ * PM), `datetime10` (16:28), `datetime11` (16:28:34), `datetime12`
7516
+ * (4:28 PM), or `datetime13` (4:28:34 PM). A format without
7517
+ * `dateText` makes the date automatic.
7518
+ */
7519
+ dateFormat?: string | null;
7520
+ /**
7521
+ * Fixed date text (e.g. "Q3 2026"); `""` makes the date automatic
7522
+ * (it shows the current date). Changes slides that show a date, so
7523
+ * pass `date: true` to turn it on.
7524
+ */
7525
+ dateText?: string | null;
7526
+ /**
7527
+ * Show the footer.
7528
+ */
7529
+ footer?: boolean | null;
7530
+ /**
7531
+ * Footer text. Changes slides that show a footer, so pass
7532
+ * `footer: true` to turn it on.
7533
+ */
7534
+ footerText?: string | null;
7535
+ /**
7536
+ * Don't show the elements on slides whose layout is a Title Slide
7537
+ * layout (they are removed there).
7538
+ */
7539
+ notOnTitle?: boolean;
7540
+ op: 'setHeaderFooter';
7541
+ /**
7542
+ * Show the slide number.
7543
+ */
7544
+ slideNumber?: boolean | null;
7545
+ /**
7546
+ * Slide ids to change; omit (or null) for every slide ("Apply to
7547
+ * All", which also makes slides added later show the same elements).
7548
+ */
7549
+ slides?: Array<number> | null;
7550
+ } | {
7551
+ /**
7552
+ * Height in points, 72-4032 (540 for widescreen, 4:3, and A4; 405
7553
+ * for 16:9 on-screen show).
7554
+ */
7555
+ height: number;
7556
+ op: 'setSlideSize';
7557
+ scale?: null | SlideScale;
7558
+ /**
7559
+ * Width in points, 72-4032 (960 for 16:9 widescreen, 720 for 4:3
7560
+ * and 16:9 on-screen show, 780 for A4).
7561
+ */
7562
+ width: number;
7563
+ } | {
7564
+ /**
7565
+ * Id of the section's first slide.
7566
+ */
7567
+ beforeSlide: number;
7568
+ /**
7569
+ * Section name.
7570
+ */
7571
+ name: string;
7572
+ op: 'addSection';
7573
+ } | {
7574
+ /**
7575
+ * Section id (a GUID from the deck outline's `sections`).
7576
+ */
7577
+ id: string;
7578
+ /**
7579
+ * New name.
7580
+ */
7581
+ name: string;
7582
+ op: 'renameSection';
7583
+ } | {
7584
+ /**
7585
+ * Delete the section's slides too.
7586
+ */
7587
+ deleteSlides?: boolean;
7588
+ /**
7589
+ * Section id.
7590
+ */
7591
+ id: string;
7592
+ op: 'removeSection';
7593
+ } | {
7594
+ /**
7595
+ * Section id.
7596
+ */
7597
+ id: string;
7598
+ op: 'moveSection';
7599
+ /**
7600
+ * New index among the sections.
7601
+ */
7602
+ toIndex: number;
7603
+ } | {
7604
+ /**
7605
+ * The guides, in order.
7606
+ */
7607
+ guides: Array<GuideSpec>;
7608
+ op: 'setGuides';
7609
+ } | {
7610
+ /**
7611
+ * Id of the layout to insert it after; a master's id puts it first
7612
+ * (default: right after `duplicate`, else after the master's last
7613
+ * layout).
7614
+ */
7615
+ after?: number | null;
7616
+ /**
7617
+ * Id of a layout to copy, with its shapes and background.
7618
+ */
7619
+ duplicate?: number | null;
7620
+ /**
7621
+ * Id of the master to add it to (default: the master of `after`
7622
+ * or `duplicate`, else the first master).
7623
+ */
7624
+ master?: number | null;
7625
+ /**
7626
+ * Name (default: "Custom Layout", or for a copy the original's name
7627
+ * prefixed "1_", numbered further when the master has one already).
7628
+ */
7629
+ name?: string | null;
7630
+ op: 'addLayout';
7631
+ } | {
7632
+ /**
7633
+ * Layout or master id.
7634
+ */
7635
+ layout: number;
7636
+ /**
7637
+ * New name.
7638
+ */
7639
+ name: string;
7640
+ op: 'renameLayout';
7641
+ } | {
7642
+ /**
7643
+ * Layout or master id.
7644
+ */
7645
+ layout: number;
7646
+ op: 'deleteLayout';
7647
+ } | {
7648
+ /**
7649
+ * Height (points).
7650
+ */
7651
+ h: number;
7652
+ /**
7653
+ * What it holds: `content`, `text`, `picture`, `chart`, `table`,
7654
+ * `smartArt`, or `media`.
7655
+ */
7656
+ kind: PlaceholderKind;
7657
+ /**
7658
+ * Layout id.
7659
+ */
7660
+ layout: number;
7661
+ op: 'insertPlaceholder';
7662
+ /**
7663
+ * Vertical text (PowerPoint's "Content (Vertical)" and "Text
7664
+ * (Vertical)"); content and text placeholders only.
7665
+ */
7666
+ vertical?: boolean;
7667
+ /**
7668
+ * Width (points).
7669
+ */
7670
+ w: number;
7671
+ /**
7672
+ * Left (points).
7673
+ */
7674
+ x: number;
7675
+ /**
7676
+ * Top (points).
7677
+ */
7678
+ y: number;
7679
+ } | {
7680
+ /**
7681
+ * Show the date, footer, and slide number placeholders the master
7682
+ * has (added where the master has them, or removed).
7683
+ */
7684
+ footers?: boolean | null;
7685
+ /**
7686
+ * Hide the master's shapes (logos, lines, pictures) on the layout
7687
+ * and its slides.
7688
+ */
7689
+ hideBackgroundGraphics?: boolean | null;
7690
+ /**
7691
+ * Layout id.
7692
+ */
7693
+ layout: number;
7694
+ op: 'setLayoutOptions';
7695
+ /**
7696
+ * Show a title placeholder (added where the master's title is, or
7697
+ * removed).
7698
+ */
7699
+ title?: boolean | null;
7700
+ } | {
7701
+ op: 'setBackgroundStyle';
7702
+ /**
7703
+ * Slide, master, or layout id.
7704
+ */
7705
+ slide: number;
7706
+ /**
7707
+ * Style number, 1-12.
7708
+ */
7709
+ style: number;
7710
+ } | {
7711
+ /**
7712
+ * The author's name, as the Comments pane shows it.
7713
+ */
7714
+ author: string;
7715
+ /**
7716
+ * The author's initials (omit or null: the first letters of the
7717
+ * first two words of `author`).
7718
+ */
7719
+ initials?: string | null;
7720
+ op: 'addComment';
7721
+ /**
7722
+ * Shape id to attach the comment to (its marker sits at the
7723
+ * shape's top-right corner); omit or null for the slide itself.
7724
+ */
7725
+ shape?: number | null;
7726
+ /**
7727
+ * Slide id.
7728
+ */
7729
+ slide: number;
7730
+ /**
7731
+ * The comment (`\n` separates paragraphs).
7732
+ */
7733
+ text: string;
7734
+ /**
7735
+ * Where the comment's marker sits, in points from the slide's left
7736
+ * edge, for a comment on the slide (omit or null with `y` for
7737
+ * PowerPoint's default, the slide's top-left corner). Ignored with
7738
+ * `shape`.
7739
+ */
7740
+ x?: number | null;
7741
+ /**
7742
+ * Marker position in points from the slide's top edge.
7743
+ */
7744
+ y?: number | null;
7745
+ } | {
7746
+ /**
7747
+ * The author's name.
7748
+ */
7749
+ author: string;
7750
+ /**
7751
+ * Thread id (a comment's `id` in the outline). Legacy comments
7752
+ * (`legacy-…` ids) cannot be replied to.
7753
+ */
7754
+ comment: string;
7755
+ /**
7756
+ * The author's initials (omit or null: derived from `author`).
7757
+ */
7758
+ initials?: string | null;
7759
+ op: 'replyComment';
7760
+ /**
7761
+ * Slide id.
7762
+ */
7763
+ slide: number;
7764
+ /**
7765
+ * The reply (`\n` separates paragraphs).
7766
+ */
7767
+ text: string;
7768
+ } | {
7769
+ /**
7770
+ * Thread or reply id.
7771
+ */
7772
+ comment: string;
7773
+ op: 'editComment';
7774
+ /**
7775
+ * Slide id.
7776
+ */
7777
+ slide: number;
7778
+ /**
7779
+ * The new text.
7780
+ */
7781
+ text: string;
7782
+ } | {
7783
+ /**
7784
+ * Thread id.
7785
+ */
7786
+ comment: string;
7787
+ op: 'resolveComment';
7788
+ /**
7789
+ * `true` resolves; `false` reopens.
7790
+ */
7791
+ resolved: boolean;
7792
+ /**
7793
+ * Slide id.
7794
+ */
7795
+ slide: number;
7796
+ } | {
7797
+ /**
7798
+ * Thread or reply id.
7799
+ */
7800
+ comment: string;
7801
+ op: 'deleteComment';
7802
+ /**
7803
+ * Slide id.
7804
+ */
7805
+ slide: number;
7806
+ } | {
7807
+ op: 'deleteAllComments';
7808
+ /**
7809
+ * Slide id (omit or null: all slides).
7810
+ */
7811
+ slide?: number | null;
7812
+ } | {
7813
+ at?: null | TextPos;
7814
+ cell?: null | CellRef;
7815
+ /**
7816
+ * `true`: a display equation on a line (paragraph) of its own,
7817
+ * centered, with large operators and fractions at full size (what
7818
+ * PowerPoint inserts); `false`: inline, flowing with the text
7819
+ * around it. Omit (or null) for display in an empty paragraph or a
7820
+ * new text box, inline otherwise.
7821
+ */
7822
+ display?: boolean | null;
7823
+ /**
7824
+ * The equation, e.g. `x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}`.
7825
+ */
7826
+ latex: string;
7827
+ op: 'insertEquation';
7828
+ /**
7829
+ * Shape whose text gets the equation; omit (or null) to add a new
7830
+ * text box holding only the equation.
7831
+ */
7832
+ shape?: number | null;
5927
7833
  /**
5928
- * New (cleaned) document name; `None` when unchanged.
7834
+ * Slide id.
5929
7835
  */
5930
- document_name?: string | null;
5931
- file_type?: null | FileTypeUpdate;
5932
- on_behalf_of?: null | MacroUserIdStr;
7836
+ slide: number;
7837
+ } | {
7838
+ cell?: null | CellRef;
5933
7839
  /**
5934
- * The owner of the document.
7840
+ * Make it a display (`true`) or inline (`false`) equation; omit
7841
+ * (or null) to keep.
5935
7842
  */
5936
- owner: string;
7843
+ display?: boolean | null;
5937
7844
  /**
5938
- * Project id before the update.
7845
+ * The equation's character index in the paragraph (its `index` in
7846
+ * the outline).
5939
7847
  */
5940
- previous_project_id?: string | null;
7848
+ index: number;
5941
7849
  /**
5942
- * New project id; `None` when unchanged, `Some("")` when removed from
5943
- * its project (mirrors the edit repo args semantics).
7850
+ * The new equation in the linear format (see `insertEquation`).
5944
7851
  */
5945
- project_id?: string | null;
7852
+ latex: string;
7853
+ op: 'setEquation';
5946
7854
  /**
5947
- * Whether share permissions were updated.
7855
+ * Paragraph index.
5948
7856
  */
5949
- share_permission_updated: boolean;
5950
- };
5951
- /**
5952
- * Request body for duplicating a database.
5953
- */
5954
- export type DuplicateDatabaseRequest = {
7857
+ paragraph: number;
5955
7858
  /**
5956
- * The copy's name; left out, "<name> copy".
7859
+ * Shape id.
5957
7860
  */
5958
- name?: string | null;
5959
- };
5960
- export type EditAnchorRequest = EditPdfAnchorRequest & {
5961
- fileType: 'pdf';
5962
- };
5963
- export type EditAnchorResponse = Anchor & {
5964
- documentId: string;
5965
- };
5966
- /**
5967
- * Edit call request, as supplied by inbound callers.
5968
- */
5969
- export type EditCallRecordRequest = {
7861
+ shape: number;
5970
7862
  /**
5971
- * Updated user-supplied display name for the call. `None` is a no-op;
5972
- * `Some("")` clears `call_records.custom_name`; any other `Some(s)`
5973
- * overwrites it with `s`. Only the archived `call_records` row carries
5974
- * this column — patching while the call is still active is a no-op for
5975
- * this field.
7863
+ * Slide id.
5976
7864
  */
5977
- customName?: string | null;
5978
- sharePermission?: null | UpdateSharePermissionRequestV2;
7865
+ slide: number;
7866
+ } | {
5979
7867
  /**
5980
- * Deprecated alias for `sharePermission.teamShareAccessLevel`:
5981
- * `Some(true)` behaves like `"view"`, `Some(false)` like `null`, and
5982
- * `None` is a no-op. Supplying both with disagreeing values is rejected.
5983
- * The team is resolved from the call's `created_by`, not the acting user.
7868
+ * The change.
5984
7869
  */
5985
- shareWithTeam?: boolean | null;
5986
- };
5987
- /**
5988
- * Body of `PATCH /call/record/{call_id}/transcript`.
5989
- *
5990
- * Each entry in `assignments` sets (or clears, when `custom_speaker` is
5991
- * `None`) the `custom_speaker` override for every transcript row in the
5992
- * call whose `diarized_speaker_id` matches. Diarized speakers not listed
5993
- * are left untouched. Empty `assignments` is a 204 no-op.
5994
- */
5995
- export type EditCallTranscriptRequest = {
7870
+ edit: SmartArtEdit;
7871
+ op: 'editSmartArt';
5996
7872
  /**
5997
- * The set of per-diarized-speaker overrides to apply.
7873
+ * The SmartArt graphic frame's id.
5998
7874
  */
5999
- assignments: Array<CustomSpeakerAssignment>;
6000
- };
6001
- /**
6002
- * Edit document response.
6003
- */
6004
- export type EditDocumentResponse = {
7875
+ shape: number;
6005
7876
  /**
6006
- * The response data.
7877
+ * Slide id.
6007
7878
  */
6008
- data: GenericSuccessResponse;
7879
+ slide: number;
7880
+ } | {
7881
+ op: 'convertSmartArt';
6009
7882
  /**
6010
- * Whether an error occurred.
7883
+ * The SmartArt graphic frame's id.
6011
7884
  */
6012
- error: boolean;
6013
- };
6014
- /**
6015
- * Arguments for the edit_document service call.
6016
- */
6017
- export type EditDocumentServiceArgs = {
7885
+ shape: number;
6018
7886
  /**
6019
- * The name of the document.
7887
+ * Slide id.
6020
7888
  */
6021
- documentName?: string | null;
6022
- fileType?: null | FileTypeUpdate;
7889
+ slide: number;
6023
7890
  /**
6024
- * The new project id of the document.
7891
+ * `shapes` or `text`.
6025
7892
  */
6026
- projectId?: string | null;
6027
- sharePermission?: null | UpdateSharePermissionRequestV2;
7893
+ to: SmartArtTarget;
6028
7894
  };
6029
7895
  export type EditPdfAnchorRequest = EditPdfPlaceableCommentAnchorRequest & {
6030
7896
  anchorType: 'free-comment';
@@ -6044,6 +7910,99 @@ export type EditPdfPlaceableCommentAnchorRequest = {
6044
7910
  xPct?: number | null;
6045
7911
  yPct?: number | null;
6046
7912
  };
7913
+ /**
7914
+ * One effect of `setShapeEffects` (or a text effect of `formatText`): a
7915
+ * preset name (`"none"` removes the effect), or options.
7916
+ */
7917
+ export type EffectSpecGlowOptions = string | {
7918
+ /**
7919
+ * Color: `RRGGBB` or a theme color name (`accent1`...; theme colors
7920
+ * get PowerPoint's 175% saturation). A new glow defaults to `accent1`.
7921
+ */
7922
+ color?: string | null;
7923
+ /**
7924
+ * Glow size in points (a new glow defaults to 10; 0 removes the glow).
7925
+ */
7926
+ sizePt?: number | null;
7927
+ /**
7928
+ * Transparency 0-1 (a new glow defaults to 0.6).
7929
+ */
7930
+ transparency?: number | null;
7931
+ };
7932
+ /**
7933
+ * One effect of `setShapeEffects` (or a text effect of `formatText`): a
7934
+ * preset name (`"none"` removes the effect), or options.
7935
+ */
7936
+ export type EffectSpecReflectionOptions = string | {
7937
+ /**
7938
+ * Blur radius in points.
7939
+ */
7940
+ blurPt?: number | null;
7941
+ /**
7942
+ * Gap between the shape and its reflection in points.
7943
+ */
7944
+ distancePt?: number | null;
7945
+ /**
7946
+ * Preset to start from (the names `reflection` takes); omitted: the
7947
+ * current reflection, or `tightTouching` when there is none.
7948
+ */
7949
+ preset?: string | null;
7950
+ /**
7951
+ * How much of the shape is reflected, in percent of its height (1-100).
7952
+ */
7953
+ sizePct?: number | null;
7954
+ /**
7955
+ * Transparency 0-1 where the reflection starts (it fades out from there).
7956
+ */
7957
+ transparency?: number | null;
7958
+ };
7959
+ /**
7960
+ * One effect of `setShapeEffects` (or a text effect of `formatText`): a
7961
+ * preset name (`"none"` removes the effect), or options.
7962
+ */
7963
+ export type EffectSpecShadowOptions = string | {
7964
+ /**
7965
+ * Direction the shadow falls, in degrees clockwise from the right
7966
+ * (45 = toward the bottom right, 90 = straight down).
7967
+ */
7968
+ angleDeg?: number | null;
7969
+ /**
7970
+ * Blur radius in points.
7971
+ */
7972
+ blurPt?: number | null;
7973
+ /**
7974
+ * Color: `RRGGBB` or a theme color name (presets use black).
7975
+ */
7976
+ color?: string | null;
7977
+ /**
7978
+ * Distance from the shape in points.
7979
+ */
7980
+ distancePt?: number | null;
7981
+ /**
7982
+ * Preset to start from (the names `shadow` takes); omitted: the
7983
+ * current shadow, or `outerBottomRight` when there is none.
7984
+ */
7985
+ preset?: string | null;
7986
+ /**
7987
+ * Size in percent of the shape (outer shadows only; 100 = same size).
7988
+ */
7989
+ sizePct?: number | null;
7990
+ /**
7991
+ * Transparency 0-1 (0 = opaque).
7992
+ */
7993
+ transparency?: number | null;
7994
+ };
7995
+ /**
7996
+ * One effect of `setShapeEffects` (or a text effect of `formatText`): a
7997
+ * preset name (`"none"` removes the effect), or options.
7998
+ */
7999
+ export type EffectSpecSoftEdgeOptions = string | {
8000
+ /**
8001
+ * Width of the feathered edge in points (a new soft edge defaults to
8002
+ * 5; 0 removes it).
8003
+ */
8004
+ sizePt?: number | null;
8005
+ };
6047
8006
  /**
6048
8007
  * The email filters used to filter down what emails you search over.
6049
8008
  */
@@ -7369,6 +9328,32 @@ export type FileTypeUpdate = {
7369
9328
  */
7370
9329
  set: FileType;
7371
9330
  } | 'clear';
9331
+ /**
9332
+ * A fill specification.
9333
+ */
9334
+ export type FillSpec = {
9335
+ kind: 'none';
9336
+ } | {
9337
+ /**
9338
+ * Opacity 0-1.
9339
+ */
9340
+ alpha?: number | null;
9341
+ /**
9342
+ * `RRGGBB`, or a theme color name (`accent1`, `tx1`, `bg1`...).
9343
+ */
9344
+ color: string;
9345
+ kind: 'solid';
9346
+ } | {
9347
+ /**
9348
+ * Angle in degrees.
9349
+ */
9350
+ angle?: number;
9351
+ /**
9352
+ * Stop colors (`RRGGBB` or theme names), evenly spaced.
9353
+ */
9354
+ colors: Array<string>;
9355
+ kind: 'gradient';
9356
+ };
7372
9357
  /**
7373
9358
  * A test of one column's cells.
7374
9359
  */
@@ -8087,6 +10072,21 @@ export type GenericSuccessResponse = {
8087
10072
  */
8088
10073
  success: boolean;
8089
10074
  };
10075
+ /**
10076
+ * One path of a shape's outline: sub-paths filled together (a sub-path
10077
+ * inside another and running the other way is a hole) and outlined.
10078
+ */
10079
+ export type GeometryPath = {
10080
+ /**
10081
+ * The drawing commands; each sub-path starts with `moveTo`.
10082
+ */
10083
+ commands: Array<PathCommand>;
10084
+ fill?: null | PathFillMode;
10085
+ /**
10086
+ * Whether the shape outline draws this path; true when omitted.
10087
+ */
10088
+ stroke?: boolean | null;
10089
+ };
8090
10090
  /**
8091
10091
  * Response from the attachment-references endpoint.
8092
10092
  */
@@ -8912,6 +10912,37 @@ export type GuestPolicy = {
8912
10912
  */
8913
10913
  canSeeOtherGuests: boolean;
8914
10914
  };
10915
+ /**
10916
+ * Which way a drawing guide runs.
10917
+ */
10918
+ export type GuideOrient = 'horizontal' | 'vertical';
10919
+ /**
10920
+ * One drawing guide of [`EditOp::SetGuides`](super::EditOp::SetGuides).
10921
+ */
10922
+ export type GuideSpec = {
10923
+ /**
10924
+ * Color as `RRGGBB` or a theme color name (`accent1`, `tx1`...).
10925
+ * Omitted or null keeps the color of the guide `id` names, and gives a
10926
+ * new guide PowerPoint's gray.
10927
+ */
10928
+ color?: string | null;
10929
+ /**
10930
+ * The id (from the deck outline's `guides`) of the guide this entry
10931
+ * keeps, with anything else the file stores on it. Omitted or null for
10932
+ * a new guide.
10933
+ */
10934
+ id?: number | null;
10935
+ /**
10936
+ * `horizontal` (a line across the slide) or `vertical` (a line down it).
10937
+ */
10938
+ orient: GuideOrient;
10939
+ /**
10940
+ * Distance in points from the slide's top edge (horizontal guides) or
10941
+ * left edge (vertical guides), from 0 to the slide's height or width.
10942
+ * The slide's center is half its height or width.
10943
+ */
10944
+ position: number;
10945
+ };
8915
10946
  /**
8916
10947
  * A registered user-run harness.
8917
10948
  *
@@ -9462,6 +11493,23 @@ export type JobId = string;
9462
11493
  * Job lifecycle. Cancellation remains in progress while any lease is active.
9463
11494
  */
9464
11495
  export type JobStatus = 'uploading' | 'processing' | 'completed' | 'completed_with_errors' | 'failed' | 'cancelling' | 'cancelled';
11496
+ /**
11497
+ * Options for an authenticated call join.
11498
+ */
11499
+ export type JoinCallRequest = {
11500
+ /**
11501
+ * Optional display name in the RTC room.
11502
+ */
11503
+ name?: string | null;
11504
+ /**
11505
+ * What to do when this account is participating in another call.
11506
+ */
11507
+ onOtherCall?: OnOtherCall;
11508
+ /**
11509
+ * Disconnect an existing RTC connection for this identity.
11510
+ */
11511
+ replace?: boolean;
11512
+ };
9465
11513
  /**
9466
11514
  * Single safe source folder/key segment; never a path or authorization proof.
9467
11515
  */
@@ -9574,6 +11622,35 @@ export type LeaveCallResponse = {
9574
11622
  */
9575
11623
  callEnded: boolean;
9576
11624
  };
11625
+ /**
11626
+ * Outline changes.
11627
+ */
11628
+ export type LinePatch = {
11629
+ /**
11630
+ * Color (`RRGGBB` or theme name).
11631
+ */
11632
+ color?: string | null;
11633
+ /**
11634
+ * Preset dash (`solid`, `dash`, `dot`, `dashDot`, `lgDash`, `sysDash`, `sysDot`).
11635
+ */
11636
+ dash?: string | null;
11637
+ /**
11638
+ * Arrowhead at the start.
11639
+ */
11640
+ head?: string | null;
11641
+ /**
11642
+ * Remove the outline.
11643
+ */
11644
+ none?: boolean;
11645
+ /**
11646
+ * Arrowhead at the end (`none`, `triangle`, `stealth`, `diamond`, `oval`, `arrow`).
11647
+ */
11648
+ tail?: string | null;
11649
+ /**
11650
+ * Width in points.
11651
+ */
11652
+ width?: number | null;
11653
+ };
9577
11654
  /**
9578
11655
  * Defines who can access an item through its share link.
9579
11656
  */
@@ -9622,14 +11699,135 @@ export type ListedDatabase = {
9622
11699
  */
9623
11700
  export type ListedForm = {
9624
11701
  /**
9625
- * The caller's level on it.
11702
+ * The caller's level on it.
11703
+ */
11704
+ access: FormAccess;
11705
+ /**
11706
+ * The form's facts.
11707
+ */
11708
+ form: Form;
11709
+ };
11710
+ /**
11711
+ * Whether a live call is associated with a channel.
11712
+ */
11713
+ export type LiveCallKind = 'channel' | 'standalone';
11714
+ /**
11715
+ * A connected participant in an RTC room.
11716
+ */
11717
+ export type LiveCallParticipant = {
11718
+ /**
11719
+ * Name displayed to room members.
11720
+ */
11721
+ displayName: string;
11722
+ /**
11723
+ * RTC identity.
11724
+ */
11725
+ identity: string;
11726
+ /**
11727
+ * Whether the caller is a program.
11728
+ */
11729
+ isProgram: boolean;
11730
+ /**
11731
+ * RTC connection time.
11732
+ */
11733
+ joinedAt?: string | null;
11734
+ /**
11735
+ * User or guest.
11736
+ */
11737
+ kind: LiveParticipantKind;
11738
+ /**
11739
+ * Published media tracks.
11740
+ */
11741
+ tracks: Array<LiveCallTrack>;
11742
+ /**
11743
+ * Macro account identifier, if this is a user.
11744
+ */
11745
+ userId?: string | null;
11746
+ };
11747
+ /**
11748
+ * A live RTC room roster.
11749
+ */
11750
+ export type LiveCallParticipantsResponse = {
11751
+ /**
11752
+ * Connected participants.
11753
+ */
11754
+ participants: Array<LiveCallParticipant>;
11755
+ };
11756
+ /**
11757
+ * A live call visible to an account that can join it.
11758
+ */
11759
+ export type LiveCallSummary = {
11760
+ /**
11761
+ * Session identifier.
11762
+ */
11763
+ callId: string;
11764
+ /**
11765
+ * Channel identifier, if present.
11766
+ */
11767
+ channelId?: string | null;
11768
+ /**
11769
+ * When the session was created.
11770
+ */
11771
+ createdAt: string;
11772
+ /**
11773
+ * Caller identifier.
11774
+ */
11775
+ createdBy: string;
11776
+ /**
11777
+ * Channel or standalone call.
11778
+ */
11779
+ kind: LiveCallKind;
11780
+ /**
11781
+ * Invitation identifier, if present.
11782
+ */
11783
+ meetingId?: string | null;
11784
+ /**
11785
+ * Number of active people and guests.
11786
+ */
11787
+ participantCount: number;
11788
+ /**
11789
+ * Whether this account is currently being rung.
11790
+ */
11791
+ ringing: boolean;
11792
+ /**
11793
+ * Invitation capability, if present.
11794
+ */
11795
+ shareToken?: string | null;
11796
+ /**
11797
+ * Invitation title, if present.
11798
+ */
11799
+ title?: string | null;
11800
+ };
11801
+ /**
11802
+ * A live media track.
11803
+ */
11804
+ export type LiveCallTrack = {
11805
+ /**
11806
+ * Whether the track is muted.
11807
+ */
11808
+ muted: boolean;
11809
+ /**
11810
+ * Microphone, camera, or screen source.
9626
11811
  */
9627
- access: FormAccess;
11812
+ source: LiveTrackSource;
11813
+ };
11814
+ /**
11815
+ * Response containing every live call this account may join.
11816
+ */
11817
+ export type LiveCallsResponse = {
9628
11818
  /**
9629
- * The form's facts.
11819
+ * Joinable live calls.
9630
11820
  */
9631
- form: Form;
11821
+ calls: Array<LiveCallSummary>;
9632
11822
  };
11823
+ /**
11824
+ * Participant kind in the live room.
11825
+ */
11826
+ export type LiveParticipantKind = 'user' | 'guest' | 'bot';
11827
+ /**
11828
+ * A live media track.
11829
+ */
11830
+ export type LiveTrackSource = 'microphone' | 'camera' | 'screen_share' | 'screen_share_audio' | 'unknown';
9633
11831
  export type LocationResponseData = {
9634
11832
  /**
9635
11833
  * The presigned url of the document if it is not a docx
@@ -9784,6 +11982,10 @@ export type MeetingsResponse = {
9784
11982
  */
9785
11983
  meetings: Array<Meeting>;
9786
11984
  };
11985
+ /**
11986
+ * How `mergeShapes` combines the shapes (PowerPoint's Merge Shapes).
11987
+ */
11988
+ export type MergeMode = 'union' | 'combine' | 'fragment' | 'intersect' | 'subtract';
9787
11989
  /**
9788
11990
  * Shared message representation for channel timelines and entity discussions.
9789
11991
  */
@@ -9818,6 +12020,10 @@ export type Message = {
9818
12020
  */
9819
12021
  id: string;
9820
12022
  imported_author?: null | ImportedAuthor;
12023
+ /**
12024
+ * What this message is.
12025
+ */
12026
+ kind?: MessageKind;
9821
12027
  /**
9822
12028
  * Tracked mentions, retained when a caller changes attachments only.
9823
12029
  */
@@ -9994,6 +12200,12 @@ export type MessageChange = {
9994
12200
  */
9995
12201
  message: Message;
9996
12202
  type: 'reaction_changed';
12203
+ } | {
12204
+ /**
12205
+ * Persisted root.
12206
+ */
12207
+ message: Message;
12208
+ type: 'call_root_posted';
9997
12209
  } | {
9998
12210
  /**
9999
12211
  * Persisted thread state.
@@ -10100,6 +12312,10 @@ export type MessageEventAttachment = {
10100
12312
  */
10101
12313
  entity_type: string;
10102
12314
  };
12315
+ /**
12316
+ * What a persisted message is. Set by the server, never by a client.
12317
+ */
12318
+ export type MessageKind = 'message' | 'call_root';
10103
12319
  /**
10104
12320
  * Root message with its small thread preview, independent of its parent type.
10105
12321
  */
@@ -10355,6 +12571,16 @@ export type MessageTimelineEntry = {
10355
12571
  */
10356
12572
  activity: TimelineActivity;
10357
12573
  type: 'activity';
12574
+ } | {
12575
+ /**
12576
+ * The call's root message, its thread state and its reply preview.
12577
+ */
12578
+ message: MessageListItem;
12579
+ /**
12580
+ * Where the call is in its life.
12581
+ */
12582
+ status: CallEntryStatus;
12583
+ type: 'call';
10358
12584
  };
10359
12585
  /**
10360
12586
  * A bounded, newest-first window of a parent's messages and activity, ordered
@@ -10547,6 +12773,133 @@ export type NewOption = {
10547
12773
  */
10548
12774
  label: string;
10549
12775
  };
12776
+ /**
12777
+ * What to add with [`EditOp::AddShape`](super::EditOp::AddShape).
12778
+ */
12779
+ export type NewShape = {
12780
+ kind: 'textBox';
12781
+ /**
12782
+ * Initial text (`\n` separates paragraphs).
12783
+ */
12784
+ text?: string;
12785
+ } | {
12786
+ kind: 'shape';
12787
+ /**
12788
+ * Preset geometry name.
12789
+ */
12790
+ preset: string;
12791
+ /**
12792
+ * Initial text.
12793
+ */
12794
+ text?: string;
12795
+ } | {
12796
+ /**
12797
+ * Arrowhead at the end.
12798
+ */
12799
+ arrow?: boolean;
12800
+ kind: 'line';
12801
+ } | {
12802
+ /**
12803
+ * Base64-encoded PNG, JPEG, or GIF bytes.
12804
+ */
12805
+ data: string;
12806
+ /**
12807
+ * Alt text.
12808
+ */
12809
+ description?: string;
12810
+ kind: 'image';
12811
+ } | {
12812
+ /**
12813
+ * The file's MIME type (`video/mp4`...).
12814
+ */
12815
+ contentType: string;
12816
+ /**
12817
+ * Base64-encoded MP4, M4V, MOV, WebM, WMV, or AVI bytes.
12818
+ */
12819
+ data: string;
12820
+ /**
12821
+ * Alt text.
12822
+ */
12823
+ description?: string;
12824
+ kind: 'video';
12825
+ /**
12826
+ * Base64-encoded PNG or JPEG shown until it plays (its first frame).
12827
+ */
12828
+ poster: string;
12829
+ } | {
12830
+ /**
12831
+ * The file's MIME type (`audio/mpeg`...).
12832
+ */
12833
+ contentType: string;
12834
+ /**
12835
+ * Base64-encoded MP3, M4A, WAV, or OGG bytes.
12836
+ */
12837
+ data: string;
12838
+ /**
12839
+ * Alt text.
12840
+ */
12841
+ description?: string;
12842
+ kind: 'audio';
12843
+ /**
12844
+ * Base64-encoded PNG or JPEG icon.
12845
+ */
12846
+ poster: string;
12847
+ } | {
12848
+ /**
12849
+ * Cell text, row by row.
12850
+ */
12851
+ cells: Array<Array<string>>;
12852
+ kind: 'table';
12853
+ } | {
12854
+ /**
12855
+ * Category labels.
12856
+ */
12857
+ categories: Array<string>;
12858
+ /**
12859
+ * `bar` (horizontal), `column`, `line`, `pie`, `doughnut`, or `area`.
12860
+ */
12861
+ chartType: string;
12862
+ /**
12863
+ * `clustered`, `stacked`, `percentStacked`, or `standard` (the type's default when omitted).
12864
+ */
12865
+ grouping?: string | null;
12866
+ kind: 'chart';
12867
+ /**
12868
+ * Series in plot order.
12869
+ */
12870
+ series: Array<ChartSeriesData>;
12871
+ /**
12872
+ * Chart title (no title when omitted or empty).
12873
+ */
12874
+ title?: string | null;
12875
+ } | {
12876
+ /**
12877
+ * Color variation (`accent1_2` when omitted; see `editSmartArt`'s
12878
+ * `setColors`).
12879
+ */
12880
+ colors?: string | null;
12881
+ /**
12882
+ * The text as an outline (one item per node); omit for the
12883
+ * layout's sample nodes showing the "[Text]" prompt.
12884
+ */
12885
+ items?: Array<SmartArtItem> | null;
12886
+ kind: 'smartArt';
12887
+ /**
12888
+ * Layout: `default` (Basic Block List), `vList2` (Vertical Bullet
12889
+ * List), `hList1` (Horizontal Bullet List), `process1` (Basic
12890
+ * Process), `chevron1` (Basic Chevron Process), `cycle2` (Basic
12891
+ * Cycle), `radial1` (Basic Radial: the first item is the center,
12892
+ * level-2 items around it), `hierarchy1` (Hierarchy), `orgChart1`
12893
+ * (Organization Chart), `venn1` (Basic Venn), or `pyramid1` (Basic
12894
+ * Pyramid).
12895
+ */
12896
+ layout: string;
12897
+ /**
12898
+ * SmartArt style (`simple1` when omitted; see `editSmartArt`'s
12899
+ * `setStyle`).
12900
+ */
12901
+ style?: string | null;
12902
+ };
10550
12903
  /**
10551
12904
  * Location supplied when creating a document discussion.
10552
12905
  */
@@ -10665,6 +13018,10 @@ export type NotificationState = 'unseen' | 'seen' | 'done';
10665
13018
  * How a number cell compares to a number.
10666
13019
  */
10667
13020
  export type NumberOperator = 'is' | 'isNot' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual';
13021
+ /**
13022
+ * Policy for another active call.
13023
+ */
13024
+ export type OnOtherCall = 'fail' | 'switch';
10668
13025
  /**
10669
13026
  * A batch of ops for one database and the versions its tables must be at.
10670
13027
  */
@@ -10829,6 +13186,40 @@ export type PairingDetails = {
10829
13186
  */
10830
13187
  requested_name: string;
10831
13188
  };
13189
+ /**
13190
+ * Paragraph formatting changes.
13191
+ */
13192
+ export type ParaPatch = {
13193
+ /**
13194
+ * `left`, `center`, `right`, `justify`, `distributed`.
13195
+ */
13196
+ align?: string | null;
13197
+ bullet?: null | BulletSpec;
13198
+ /**
13199
+ * First-line indent in points (negative = hanging).
13200
+ */
13201
+ indent?: number | null;
13202
+ /**
13203
+ * Outline level 0-8.
13204
+ */
13205
+ level?: number | null;
13206
+ /**
13207
+ * Line spacing as a multiple of single spacing (1.0, 1.5...).
13208
+ */
13209
+ lineSpacing?: number | null;
13210
+ /**
13211
+ * Left margin in points.
13212
+ */
13213
+ marginLeft?: number | null;
13214
+ /**
13215
+ * Space after in points.
13216
+ */
13217
+ spaceAfter?: number | null;
13218
+ /**
13219
+ * Space before in points.
13220
+ */
13221
+ spaceBefore?: number | null;
13222
+ };
10832
13223
  /**
10833
13224
  * Query parameters shared by soup endpoints.
10834
13225
  */
@@ -10869,7 +13260,7 @@ export type PatchBotRequest = {
10869
13260
  */
10870
13261
  handle?: string | null;
10871
13262
  /**
10872
- * Whether mentioning this bot opens a sandboxed coding-agent session. Omit to leave unchanged.
13263
+ * Whether this bot runs as an AI agent: mentions and DMs start an agent session. Omit to leave unchanged.
10873
13264
  */
10874
13265
  has_agent?: boolean | null;
10875
13266
  /**
@@ -10950,6 +13341,100 @@ export type PatchWebhookRequest = {
10950
13341
  name?: string | null;
10951
13342
  status?: null | WebhookStatus;
10952
13343
  };
13344
+ /**
13345
+ * One drawing command of a [`GeometryPath`], in shape-local points:
13346
+ * `(0, 0)` is the top-left corner of the shape's box before rotation and
13347
+ * flips, x grows to the right and y downward.
13348
+ */
13349
+ export type PathCommand = {
13350
+ cmd: 'moveTo';
13351
+ /**
13352
+ * X (points).
13353
+ */
13354
+ x: number;
13355
+ /**
13356
+ * Y (points).
13357
+ */
13358
+ y: number;
13359
+ } | {
13360
+ cmd: 'lineTo';
13361
+ /**
13362
+ * X (points).
13363
+ */
13364
+ x: number;
13365
+ /**
13366
+ * Y (points).
13367
+ */
13368
+ y: number;
13369
+ } | {
13370
+ cmd: 'cubicBezTo';
13371
+ /**
13372
+ * End X (points).
13373
+ */
13374
+ x: number;
13375
+ /**
13376
+ * First control point X (points).
13377
+ */
13378
+ x1: number;
13379
+ /**
13380
+ * Second control point X (points).
13381
+ */
13382
+ x2: number;
13383
+ /**
13384
+ * End Y (points).
13385
+ */
13386
+ y: number;
13387
+ /**
13388
+ * First control point Y (points).
13389
+ */
13390
+ y1: number;
13391
+ /**
13392
+ * Second control point Y (points).
13393
+ */
13394
+ y2: number;
13395
+ } | {
13396
+ cmd: 'quadBezTo';
13397
+ /**
13398
+ * End X (points).
13399
+ */
13400
+ x: number;
13401
+ /**
13402
+ * Control point X (points).
13403
+ */
13404
+ x1: number;
13405
+ /**
13406
+ * End Y (points).
13407
+ */
13408
+ y: number;
13409
+ /**
13410
+ * Control point Y (points).
13411
+ */
13412
+ y1: number;
13413
+ } | {
13414
+ cmd: 'arcTo';
13415
+ /**
13416
+ * Vertical radius (points).
13417
+ */
13418
+ hR: number;
13419
+ /**
13420
+ * Start angle in degrees.
13421
+ */
13422
+ stAng: number;
13423
+ /**
13424
+ * Sweep in degrees (negative sweeps counter-clockwise).
13425
+ */
13426
+ swAng: number;
13427
+ /**
13428
+ * Horizontal radius (points).
13429
+ */
13430
+ wR: number;
13431
+ } | {
13432
+ cmd: 'close';
13433
+ };
13434
+ /**
13435
+ * How a [`GeometryPath`] is filled (DrawingML's path `fill`).
13436
+ */
13437
+ export type PathFillMode = 'norm' | 'none' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess';
10953
13438
  export type PdfAnchor = (PdfPlaceableCommentAnchor & {
10954
13439
  anchorType: 'placeable';
10955
13440
  }) | (PdfHighlightAnchor & {
@@ -11075,13 +13560,11 @@ export type Pipeline = {
11075
13560
  */
11076
13561
  name: string;
11077
13562
  /**
11078
- * Protected primary column.
13563
+ * A tracked pipeline's protected record reference. A generic pipeline's
13564
+ * Name, which names no column once someone deletes it.
11079
13565
  */
11080
13566
  primaryColumnId: string;
11081
- /**
11082
- * Kind of the primary reference.
11083
- */
11084
- recordType: PipelineRecordType;
13567
+ recordType: null | PipelineRecordType;
11085
13568
  /**
11086
13569
  * Whether the pipeline has a team grant.
11087
13570
  */
@@ -11111,6 +13594,11 @@ export type PipelineRecordType = 'company' | 'contact';
11111
13594
  * Initial sharing, or the desired team grant. Individual ownership is preserved.
11112
13595
  */
11113
13596
  export type PipelineSharing = 'private' | 'team';
13597
+ /**
13598
+ * What a placeholder inserted on a slide layout holds (PowerPoint's Slide
13599
+ * Master ▸ Insert Placeholder menu).
13600
+ */
13601
+ export type PlaceholderKind = 'content' | 'text' | 'picture' | 'chart' | 'table' | 'smartArt' | 'media';
11114
13602
  /**
11115
13603
  * Request body for `POST /channels/activity`.
11116
13604
  */
@@ -11220,6 +13708,67 @@ export type PreSaveDocumentResponseData = {
11220
13708
  * Whether a cell is empty.
11221
13709
  */
11222
13710
  export type PresenceOperator = 'isEmpty' | 'isNotEmpty';
13711
+ /**
13712
+ * Where an edited copy of a presentation is created.
13713
+ */
13714
+ export type PresentationCopyRequest = {
13715
+ /**
13716
+ * Name of the new presentation, without the `.pptx` extension.
13717
+ */
13718
+ name: string;
13719
+ /**
13720
+ * Operations to apply to the copy, at most 100; none for a plain copy.
13721
+ */
13722
+ operations?: Array<EditOp>;
13723
+ /**
13724
+ * Project to create it in; defaults to the original's project when the
13725
+ * caller can edit it.
13726
+ */
13727
+ projectId?: string | null;
13728
+ };
13729
+ /**
13730
+ * A presentation described as text.
13731
+ */
13732
+ export type PresentationDescription = {
13733
+ /**
13734
+ * Slide size, layouts, theme colors, and each slide's id, layout and
13735
+ * shapes (ids, kinds, positions and sizes in points, text, tables,
13736
+ * charts, pictures), plus sections, masters, comments and notes.
13737
+ */
13738
+ content: string;
13739
+ };
13740
+ /**
13741
+ * What an edit did.
13742
+ */
13743
+ export type PresentationEditOutcome = {
13744
+ /**
13745
+ * The changed slides as they now read (after a structure change, the
13746
+ * deck summary and sections too).
13747
+ */
13748
+ changedSlides: string;
13749
+ /**
13750
+ * Slides and shapes the operations created, in order.
13751
+ */
13752
+ created: Array<CreatedItem>;
13753
+ /**
13754
+ * The edited document (clients reload open editors of it).
13755
+ */
13756
+ documentId: string;
13757
+ /**
13758
+ * Whether slides were added, removed, or reordered, or the slide size
13759
+ * or sections changed.
13760
+ */
13761
+ structureChanged: boolean;
13762
+ };
13763
+ /**
13764
+ * An atomic batch of edit operations.
13765
+ */
13766
+ export type PresentationEditRequest = {
13767
+ /**
13768
+ * Operations validated and committed together, in order: 1 to 100.
13769
+ */
13770
+ operations: Array<EditOp>;
13771
+ };
11223
13772
  export type PresignedUrl = {
11224
13773
  /**
11225
13774
  * The presigned url used to upload the sha
@@ -11643,6 +14192,10 @@ export type RecentlyDeletedResponseData = {
11643
14192
  */
11644
14193
  items: Array<Item>;
11645
14194
  };
14195
+ /**
14196
+ * OpenAPI representation of streamed recording bytes.
14197
+ */
14198
+ export type RecordingBytes = Blob | File;
11646
14199
  /**
11647
14200
  * Batched registration, also used to renew an unchanged descriptor's grant.
11648
14201
  */
@@ -11704,6 +14257,10 @@ export type ReorderPinRequest = {
11704
14257
  */
11705
14258
  pinnedItemType: string;
11706
14259
  };
14260
+ /**
14261
+ * The event that ends a repeating animation.
14262
+ */
14263
+ export type RepeatUntil = 'untilNextClick' | 'untilEndOfSlide';
11707
14264
  /**
11708
14265
  * Request body for `PUT /crm/stages`: the whole stage set in order.
11709
14266
  */
@@ -11726,6 +14283,19 @@ export type RequestAccess = {
11726
14283
  */
11727
14284
  revision?: number | null;
11728
14285
  };
14286
+ /**
14287
+ * Request body for asking for a grant.
14288
+ */
14289
+ export type RequestAccountManagerBody = {
14290
+ /**
14291
+ * The side the caller takes.
14292
+ */
14293
+ callerRole: AccountManagerRole;
14294
+ /**
14295
+ * The other account (`macro|...`).
14296
+ */
14297
+ counterpartyId: string;
14298
+ };
11729
14299
  /**
11730
14300
  * Durable outcome; reading a notification never changes it.
11731
14301
  */
@@ -11809,6 +14379,15 @@ export type ResolveRequest = {
11809
14379
  */
11810
14380
  revision: number;
11811
14381
  };
14382
+ /**
14383
+ * Request body for responding to a request.
14384
+ */
14385
+ export type RespondToAccountManagerRequestBody = {
14386
+ /**
14387
+ * The response.
14388
+ */
14389
+ decision: AccountManagerDecision;
14390
+ };
11812
14391
  /**
11813
14392
  * Whether a ledger entry is a saved response or a stop at a gate.
11814
14393
  */
@@ -12013,21 +14592,80 @@ export type RowsChange = {
12013
14592
  export type RowsResult = {
12014
14593
  kind: 'inserted';
12015
14594
  /**
12016
- * The new rows, in the order they were sent.
14595
+ * The new rows, in the order they were sent.
14596
+ */
14597
+ rows: Array<string>;
14598
+ } | {
14599
+ /**
14600
+ * How many rows the op updated.
14601
+ */
14602
+ affected: number;
14603
+ kind: 'updated';
14604
+ } | {
14605
+ /**
14606
+ * How many rows the op deleted.
14607
+ */
14608
+ affected: number;
14609
+ kind: 'deleted';
14610
+ };
14611
+ /**
14612
+ * Character formatting changes (`None` = leave unchanged).
14613
+ */
14614
+ export type RunPatch = {
14615
+ /**
14616
+ * Baseline shift in percent (30 = superscript, -25 = subscript, 0 = normal).
14617
+ */
14618
+ baseline?: number | null;
14619
+ /**
14620
+ * Bold.
14621
+ */
14622
+ bold?: boolean | null;
14623
+ /**
14624
+ * Text color as `RRGGBB`.
14625
+ */
14626
+ color?: string | null;
14627
+ /**
14628
+ * Latin typeface.
14629
+ */
14630
+ font?: string | null;
14631
+ glow?: null | EffectSpecGlowOptions;
14632
+ /**
14633
+ * Highlight color as `RRGGBB`, or `""` to remove.
14634
+ */
14635
+ highlight?: string | null;
14636
+ /**
14637
+ * Italic.
14638
+ */
14639
+ italic?: boolean | null;
14640
+ /**
14641
+ * Hyperlink, or `""` to remove: an address (`https://…`, `mailto:…`),
14642
+ * `#slide=<id>` for another slide by stable id, or a slide show jump
14643
+ * (`#nextslide`, `#previousslide`, `#firstslide`, `#lastslide`,
14644
+ * `#lastslideviewed`, `#endshow`).
14645
+ */
14646
+ link?: string | null;
14647
+ /**
14648
+ * The link's ScreenTip (written with `link`).
12017
14649
  */
12018
- rows: Array<string>;
12019
- } | {
14650
+ linkTip?: string | null;
14651
+ shadow?: null | EffectSpecShadowOptions;
12020
14652
  /**
12021
- * How many rows the op updated.
14653
+ * Size in points.
12022
14654
  */
12023
- affected: number;
12024
- kind: 'updated';
12025
- } | {
14655
+ size?: number | null;
12026
14656
  /**
12027
- * How many rows the op deleted.
14657
+ * Character spacing in points added between letters (negative
14658
+ * condenses; 0 = normal).
12028
14659
  */
12029
- affected: number;
12030
- kind: 'deleted';
14660
+ spacing?: number | null;
14661
+ /**
14662
+ * Strikethrough.
14663
+ */
14664
+ strike?: boolean | null;
14665
+ /**
14666
+ * Underline.
14667
+ */
14668
+ underline?: boolean | null;
12031
14669
  };
12032
14670
  export type S3ObjectInfo = {
12033
14671
  bucket: string;
@@ -12580,6 +15218,137 @@ export type SlackTimestamp = string;
12580
15218
  * Slack member identity (U or W prefix), including USLACKBOT.
12581
15219
  */
12582
15220
  export type SlackUserId = string;
15221
+ /**
15222
+ * How slide content follows a new slide size
15223
+ * ([`EditOp::SetSlideSize`](super::EditOp::SetSlideSize)).
15224
+ */
15225
+ export type SlideScale = 'none' | 'fit' | 'maximize';
15226
+ /**
15227
+ * One change to a SmartArt graphic.
15228
+ */
15229
+ export type SmartArtEdit = {
15230
+ action: 'setText';
15231
+ /**
15232
+ * Node id (from the outline's `smartArt.nodes`).
15233
+ */
15234
+ node: string;
15235
+ /**
15236
+ * New text.
15237
+ */
15238
+ text: string;
15239
+ } | {
15240
+ action: 'addNode';
15241
+ /**
15242
+ * The node to add next to; omit to add a last top-level node.
15243
+ */
15244
+ node?: string | null;
15245
+ /**
15246
+ * Where to add it (`after` when omitted).
15247
+ */
15248
+ position?: SmartArtPosition;
15249
+ /**
15250
+ * Text of the new node (empty: the "[Text]" prompt).
15251
+ */
15252
+ text?: string;
15253
+ } | {
15254
+ action: 'deleteNode';
15255
+ /**
15256
+ * Node id.
15257
+ */
15258
+ node: string;
15259
+ } | {
15260
+ action: 'promote';
15261
+ /**
15262
+ * Node id.
15263
+ */
15264
+ node: string;
15265
+ } | {
15266
+ action: 'demote';
15267
+ /**
15268
+ * Node id.
15269
+ */
15270
+ node: string;
15271
+ } | {
15272
+ action: 'moveUp';
15273
+ /**
15274
+ * Node id.
15275
+ */
15276
+ node: string;
15277
+ } | {
15278
+ action: 'moveDown';
15279
+ /**
15280
+ * Node id.
15281
+ */
15282
+ node: string;
15283
+ } | {
15284
+ action: 'setNodes';
15285
+ /**
15286
+ * The bullets, in order.
15287
+ */
15288
+ items: Array<SmartArtItem>;
15289
+ } | {
15290
+ action: 'setLayout';
15291
+ /**
15292
+ * Layout: `default` (Basic Block List), `vList2` (Vertical Bullet
15293
+ * List), `hList1` (Horizontal Bullet List), `process1` (Basic
15294
+ * Process), `chevron1` (Basic Chevron Process), `cycle2` (Basic
15295
+ * Cycle), `radial1` (Basic Radial), `hierarchy1` (Hierarchy),
15296
+ * `orgChart1` (Organization Chart), `venn1` (Basic Venn), or
15297
+ * `pyramid1` (Basic Pyramid); a full id
15298
+ * (`urn:microsoft.com/office/officeart/2005/8/layout/process1`) or
15299
+ * the display name also works.
15300
+ */
15301
+ layout: string;
15302
+ } | {
15303
+ action: 'setColors';
15304
+ /**
15305
+ * Color variation: `accent0_1` Dark 1 Outline, `accent0_2` Dark 2
15306
+ * Outline, `accent0_3` Dark 2 Fill, `colorful1` Colorful - Accent
15307
+ * Colors, `colorful2`-`colorful5` Colorful Range - Accent Colors
15308
+ * 2 to 3 ... 5 to 6, and for accent N = 1-6: `accentN_1` Colored
15309
+ * Outline, `accentN_2` Colored Fill (PowerPoint's default
15310
+ * `accent1_2`), `accentN_3` Gradient Range, `accentN_4` Gradient
15311
+ * Loop, `accentN_5` Transparent Gradient Range. Full ids
15312
+ * (`urn:microsoft.com/office/officeart/2005/8/colors/colorful1`)
15313
+ * and display names also work.
15314
+ */
15315
+ colors: string;
15316
+ } | {
15317
+ action: 'setStyle';
15318
+ /**
15319
+ * Style: `simple1` Simple Fill (the default), `simple2` White
15320
+ * Outline, `simple3` Subtle Effect, `simple4` Moderate Effect, or
15321
+ * `simple5` Intense Effect (or a full id or display name).
15322
+ */
15323
+ style: string;
15324
+ } | {
15325
+ action: 'reset';
15326
+ };
15327
+ /**
15328
+ * One bullet of a SmartArt graphic's text: a node and its outline level.
15329
+ */
15330
+ export type SmartArtItem = {
15331
+ /**
15332
+ * Outline level: 1 for top-level shapes, 2 for their sub-bullets (or
15333
+ * child shapes in hierarchies), and so on. The first item must be at
15334
+ * level 1, and each item at most one level below the one before it.
15335
+ * Omitted (or null) means 1.
15336
+ */
15337
+ level?: number;
15338
+ /**
15339
+ * The node's text (`""` leaves the "[Text]" prompt; `\u{b}` is a line break).
15340
+ */
15341
+ text: string;
15342
+ };
15343
+ /**
15344
+ * Where `addNode` puts the new node, relative to the given one
15345
+ * (PowerPoint's Add Shape After/Before/Above/Below/Add Assistant).
15346
+ */
15347
+ export type SmartArtPosition = 'after' | 'before' | 'above' | 'below' | 'assistant';
15348
+ /**
15349
+ * What `convertSmartArt` turns a SmartArt graphic into.
15350
+ */
15351
+ export type SmartArtTarget = 'shapes' | 'text';
12583
15352
  /**
12584
15353
  * A channel visible to the caller that matches a smart tag rule.
12585
15354
  */
@@ -14847,10 +17616,40 @@ export type TeamOutOfOfficeResponse = {
14847
17616
  * Ordered least to most privileged so comparisons reflect access strength.
14848
17617
  */
14849
17618
  export type TeamRole = 'member' | 'admin' | 'owner';
17619
+ /**
17620
+ * A text direction (`ST_TextVerticalType`).
17621
+ */
17622
+ export type TextDirection = 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl';
14850
17623
  /**
14851
17624
  * How a text cell compares to a text.
14852
17625
  */
14853
17626
  export type TextOperator = 'is' | 'isNot' | 'contains' | 'doesNotContain' | 'startsWith' | 'endsWith';
17627
+ /**
17628
+ * A position inside a shape's text.
17629
+ */
17630
+ export type TextPos = {
17631
+ /**
17632
+ * Character offset within the paragraph.
17633
+ */
17634
+ offset: number;
17635
+ /**
17636
+ * Paragraph index.
17637
+ */
17638
+ paragraph: number;
17639
+ };
17640
+ /**
17641
+ * One theme color for [`EditOp::SetThemeColors`](super::EditOp::SetThemeColors).
17642
+ */
17643
+ export type ThemeColor = {
17644
+ /**
17645
+ * `RRGGBB`.
17646
+ */
17647
+ color: string;
17648
+ /**
17649
+ * `dk1`, `lt1`, `dk2`, `lt2`, `accent1`-`accent6`, `hlink`, or `folHlink`.
17650
+ */
17651
+ slot: string;
17652
+ };
14854
17653
  /**
14855
17654
  * A thread's location within its document. PDF geometry remains annotation-owned.
14856
17655
  */
@@ -15538,6 +18337,19 @@ export type UploadExtractFolderRequest = {
15538
18337
  parentId?: string | null;
15539
18338
  sha: string;
15540
18339
  };
18340
+ /**
18341
+ * The document created from the uploaded bytes.
18342
+ */
18343
+ export type UploadFileResponse = {
18344
+ /**
18345
+ * The new document.
18346
+ */
18347
+ documentId: string;
18348
+ /**
18349
+ * Number of bytes stored.
18350
+ */
18351
+ sizeBytes: number;
18352
+ };
15541
18353
  export type UploadFolderRequest = {
15542
18354
  /**
15543
18355
  * The content of the folder
@@ -16047,7 +18859,7 @@ export type Webhook = {
16047
18859
  * with the event payload. Endpoint validation additionally sends a
16048
18860
  * `WebhookValidationTestEvent`, which is not part of this union.
16049
18861
  */
16050
- export type WebhookEvent = DocumentTopicEvent | ChannelTopicEvent | MessageTopicEvent | AgentSessionLifecycleEvent;
18862
+ export type WebhookEvent = DocumentTopicEvent | ChannelTopicEvent | CallNotificationEvent | MessageTopicEvent | AgentSessionLifecycleEvent;
16051
18863
  /**
16052
18864
  * Event and optional entity-id constraints used to match webhook deliveries.
16053
18865
  */
@@ -16311,41 +19123,313 @@ export type WhatsAppPairing = {
16311
19123
  */
16312
19124
  state: WhatsAppPairingState;
16313
19125
  };
16314
- /**
16315
- * Pairing transaction state.
16316
- */
16317
- export type WhatsAppPairingState = 'waiting' | 'qr' | 'passkey' | 'success' | 'expired' | 'cancelled' | 'failed';
16318
- /**
16319
- * How a question is asked. Each column kind takes a few, the first its
16320
- * default; kinds asked one way only (numbers, checkboxes, date ranges,
16321
- * entity and row pickers) take none.
16322
- */
16323
- export type Widget = 'short' | 'paragraph' | 'datetime' | 'date' | 'url' | 'file' | 'choice' | 'dropdown' | 'checkboxes';
16324
- /**
16325
- * Wrapper carrying just a call id. Used by the [`CallRecordPreview::DoesNotExist`]
16326
- * variant.
16327
- */
16328
- export type WithCallId = {
16329
- /**
16330
- * The call identifier.
16331
- */
16332
- callId: string;
19126
+ /**
19127
+ * Pairing transaction state.
19128
+ */
19129
+ export type WhatsAppPairingState = 'waiting' | 'qr' | 'passkey' | 'success' | 'expired' | 'cancelled' | 'failed';
19130
+ /**
19131
+ * How a question is asked. Each column kind takes a few, the first its
19132
+ * default; kinds asked one way only (numbers, checkboxes, date ranges,
19133
+ * entity and row pickers) take none.
19134
+ */
19135
+ export type Widget = 'short' | 'paragraph' | 'datetime' | 'date' | 'url' | 'file' | 'choice' | 'dropdown' | 'checkboxes';
19136
+ /**
19137
+ * Wrapper carrying just a call id. Used by the [`CallRecordPreview::DoesNotExist`]
19138
+ * variant.
19139
+ */
19140
+ export type WithCallId = {
19141
+ /**
19142
+ * The call identifier.
19143
+ */
19144
+ callId: string;
19145
+ };
19146
+ /**
19147
+ * Preview payload returned for channels with only id information.
19148
+ */
19149
+ export type WithChannelId = {
19150
+ /**
19151
+ * Channel id.
19152
+ */
19153
+ channel_id: string;
19154
+ };
19155
+ export type WithDocumentId = {
19156
+ document_id: string;
19157
+ };
19158
+ export type WithProjectId = {
19159
+ id: string;
19160
+ };
19161
+ /**
19162
+ * An atomic batch of edits to a Word document.
19163
+ */
19164
+ export type WordDocumentEditRequest = {
19165
+ /**
19166
+ * Name tracked changes and comments are attributed to; omit for the
19167
+ * requesting user's name.
19168
+ */
19169
+ author?: string | null;
19170
+ /**
19171
+ * Operations applied together, in order: 1 to 50.
19172
+ */
19173
+ operations: Array<WordDocumentOperation>;
19174
+ /**
19175
+ * Record the edits as tracked changes (true) or apply them directly
19176
+ * (false); omit to follow the document's own Track Changes setting.
19177
+ */
19178
+ trackChanges?: boolean | null;
19179
+ };
19180
+ /**
19181
+ * One change to a Word document's body. Ids are the paragraph, table and
19182
+ * block ids `ReadWordDocument` reports.
19183
+ */
19184
+ export type WordDocumentOperation = {
19185
+ /**
19186
+ * Exact text to find in that paragraph's plain text.
19187
+ */
19188
+ find: string;
19189
+ /**
19190
+ * Which match (1-based) when `find` appears more than once.
19191
+ */
19192
+ occurrence?: number | null;
19193
+ /**
19194
+ * Paragraph id.
19195
+ */
19196
+ paragraph: string;
19197
+ /**
19198
+ * Replacement text, empty to delete. No line breaks; tabs are kept.
19199
+ */
19200
+ replace: string;
19201
+ type: 'replaceText';
19202
+ } | {
19203
+ /**
19204
+ * Paragraph id.
19205
+ */
19206
+ paragraph: string;
19207
+ /**
19208
+ * The new text. No line breaks; use insertParagraph for more paragraphs.
19209
+ */
19210
+ text: string;
19211
+ type: 'setText';
19212
+ } | {
19213
+ /**
19214
+ * Bold.
19215
+ */
19216
+ bold?: boolean | null;
19217
+ /**
19218
+ * Exact text to format; omit for the whole paragraph.
19219
+ */
19220
+ find?: string | null;
19221
+ /**
19222
+ * Italic.
19223
+ */
19224
+ italic?: boolean | null;
19225
+ /**
19226
+ * Which match (1-based) when `find` appears more than once.
19227
+ */
19228
+ occurrence?: number | null;
19229
+ /**
19230
+ * Paragraph id.
19231
+ */
19232
+ paragraph: string;
19233
+ /**
19234
+ * Strikethrough.
19235
+ */
19236
+ strikethrough?: boolean | null;
19237
+ type: 'formatText';
19238
+ /**
19239
+ * Single underline.
19240
+ */
19241
+ underline?: boolean | null;
19242
+ } | {
19243
+ /**
19244
+ * Insert after this paragraph or block id.
19245
+ */
19246
+ after?: string | null;
19247
+ /**
19248
+ * Insert before this paragraph or block id.
19249
+ */
19250
+ before?: string | null;
19251
+ /**
19252
+ * Paragraph style id or name. Omitted: after a heading the style's
19253
+ * next style (usually Normal), otherwise the neighbour's formatting.
19254
+ */
19255
+ style?: string | null;
19256
+ /**
19257
+ * Text; newlines separate paragraphs.
19258
+ */
19259
+ text: string;
19260
+ type: 'insertParagraph';
19261
+ } | {
19262
+ /**
19263
+ * Paragraph, table or block id.
19264
+ */
19265
+ id: string;
19266
+ type: 'delete';
19267
+ } | {
19268
+ /**
19269
+ * Paragraph id.
19270
+ */
19271
+ paragraph: string;
19272
+ /**
19273
+ * Paragraph style id or name, from the list ReadWordDocument shows.
19274
+ */
19275
+ style: string;
19276
+ type: 'setStyle';
19277
+ } | {
19278
+ /**
19279
+ * Exact text to comment on; omit for the whole paragraph.
19280
+ */
19281
+ find?: string | null;
19282
+ /**
19283
+ * Which match (1-based) when `find` appears more than once.
19284
+ */
19285
+ occurrence?: number | null;
19286
+ /**
19287
+ * Paragraph id.
19288
+ */
19289
+ paragraph: string;
19290
+ /**
19291
+ * The comment. Newlines separate its paragraphs.
19292
+ */
19293
+ text: string;
19294
+ type: 'addComment';
19295
+ };
19296
+ /**
19297
+ * The worker's answer: the document, or the changed blocks, as text.
19298
+ */
19299
+ export type WordDocumentResponse = {
19300
+ /**
19301
+ * Blocks with their ids and text, or what an edit changed.
19302
+ */
19303
+ content: string;
19304
+ };
19305
+ /**
19306
+ * Z-order moves.
19307
+ */
19308
+ export type ZOrder = 'front' | 'back' | 'forward' | 'backward';
19309
+ export type ListAccountManagersData = {
19310
+ body?: never;
19311
+ path?: never;
19312
+ query?: never;
19313
+ url: '/account-managers';
19314
+ };
19315
+ export type ListAccountManagersErrors = {
19316
+ 401: ErrorResponse;
19317
+ 403: ErrorResponse;
19318
+ 500: ErrorResponse;
19319
+ };
19320
+ export type ListAccountManagersError = ListAccountManagersErrors[keyof ListAccountManagersErrors];
19321
+ export type ListAccountManagersResponses = {
19322
+ 200: AccountManagersList;
19323
+ };
19324
+ export type ListAccountManagersResponse = ListAccountManagersResponses[keyof ListAccountManagersResponses];
19325
+ export type RequestAccountManagerData = {
19326
+ body: RequestAccountManagerBody;
19327
+ path?: never;
19328
+ query?: never;
19329
+ url: '/account-managers';
19330
+ };
19331
+ export type RequestAccountManagerErrors = {
19332
+ 400: ErrorResponse;
19333
+ 401: ErrorResponse;
19334
+ 403: ErrorResponse;
19335
+ 500: ErrorResponse;
19336
+ };
19337
+ export type RequestAccountManagerError = RequestAccountManagerErrors[keyof RequestAccountManagerErrors];
19338
+ export type RequestAccountManagerResponses = {
19339
+ 200: AccountManagerGrant;
19340
+ };
19341
+ export type RequestAccountManagerResponse = RequestAccountManagerResponses[keyof RequestAccountManagerResponses];
19342
+ export type RevokeAccountManagerGrantData = {
19343
+ body?: never;
19344
+ path: {
19345
+ /**
19346
+ * Grant id.
19347
+ */
19348
+ id: string;
19349
+ };
19350
+ query?: never;
19351
+ url: '/account-managers/{id}';
19352
+ };
19353
+ export type RevokeAccountManagerGrantErrors = {
19354
+ 401: ErrorResponse;
19355
+ 403: ErrorResponse;
19356
+ 404: ErrorResponse;
19357
+ 409: ErrorResponse;
19358
+ 500: ErrorResponse;
19359
+ };
19360
+ export type RevokeAccountManagerGrantError = RevokeAccountManagerGrantErrors[keyof RevokeAccountManagerGrantErrors];
19361
+ export type RevokeAccountManagerGrantResponses = {
19362
+ 200: AccountManagerGrant;
19363
+ };
19364
+ export type RevokeAccountManagerGrantResponse = RevokeAccountManagerGrantResponses[keyof RevokeAccountManagerGrantResponses];
19365
+ export type GetAccountManagerGrantData = {
19366
+ body?: never;
19367
+ path: {
19368
+ /**
19369
+ * Grant id.
19370
+ */
19371
+ id: string;
19372
+ };
19373
+ query?: never;
19374
+ url: '/account-managers/{id}';
19375
+ };
19376
+ export type GetAccountManagerGrantErrors = {
19377
+ 401: ErrorResponse;
19378
+ 403: ErrorResponse;
19379
+ 404: ErrorResponse;
19380
+ 500: ErrorResponse;
19381
+ };
19382
+ export type GetAccountManagerGrantError = GetAccountManagerGrantErrors[keyof GetAccountManagerGrantErrors];
19383
+ export type GetAccountManagerGrantResponses = {
19384
+ 200: AccountManagerGrant;
19385
+ };
19386
+ export type GetAccountManagerGrantResponse = GetAccountManagerGrantResponses[keyof GetAccountManagerGrantResponses];
19387
+ export type RespondToAccountManagerRequestData = {
19388
+ body: RespondToAccountManagerRequestBody;
19389
+ path: {
19390
+ /**
19391
+ * Grant id.
19392
+ */
19393
+ id: string;
19394
+ };
19395
+ query?: never;
19396
+ url: '/account-managers/{id}/response';
19397
+ };
19398
+ export type RespondToAccountManagerRequestErrors = {
19399
+ 401: ErrorResponse;
19400
+ 403: ErrorResponse;
19401
+ 404: ErrorResponse;
19402
+ 409: ErrorResponse;
19403
+ 500: ErrorResponse;
16333
19404
  };
16334
- /**
16335
- * Preview payload returned for channels with only id information.
16336
- */
16337
- export type WithChannelId = {
16338
- /**
16339
- * Channel id.
16340
- */
16341
- channel_id: string;
19405
+ export type RespondToAccountManagerRequestError = RespondToAccountManagerRequestErrors[keyof RespondToAccountManagerRequestErrors];
19406
+ export type RespondToAccountManagerRequestResponses = {
19407
+ 200: AccountManagerGrant;
16342
19408
  };
16343
- export type WithDocumentId = {
16344
- document_id: string;
19409
+ export type RespondToAccountManagerRequestResponse = RespondToAccountManagerRequestResponses[keyof RespondToAccountManagerRequestResponses];
19410
+ export type ClaimAccountManagerTokenData = {
19411
+ body?: never;
19412
+ path: {
19413
+ /**
19414
+ * Grant id.
19415
+ */
19416
+ id: string;
19417
+ };
19418
+ query?: never;
19419
+ url: '/account-managers/{id}/token';
16345
19420
  };
16346
- export type WithProjectId = {
16347
- id: string;
19421
+ export type ClaimAccountManagerTokenErrors = {
19422
+ 401: ErrorResponse;
19423
+ 403: ErrorResponse;
19424
+ 404: ErrorResponse;
19425
+ 409: ErrorResponse;
19426
+ 500: ErrorResponse;
16348
19427
  };
19428
+ export type ClaimAccountManagerTokenError = ClaimAccountManagerTokenErrors[keyof ClaimAccountManagerTokenErrors];
19429
+ export type ClaimAccountManagerTokenResponses = {
19430
+ 200: ClaimedAccountManagerToken;
19431
+ };
19432
+ export type ClaimAccountManagerTokenResponse = ClaimAccountManagerTokenResponses[keyof ClaimAccountManagerTokenResponses];
16349
19433
  export type ListAgentsData = {
16350
19434
  body?: never;
16351
19435
  path?: never;
@@ -16473,6 +19557,37 @@ export type CreateAnchorResponses = {
16473
19557
  200: CreateUnthreadedAnchorResponse;
16474
19558
  };
16475
19559
  export type CreateAnchorResponse = CreateAnchorResponses[keyof CreateAnchorResponses];
19560
+ export type ListBotsData = {
19561
+ body?: never;
19562
+ path?: never;
19563
+ query?: never;
19564
+ url: '/bots';
19565
+ };
19566
+ export type ListBotsErrors = {
19567
+ 401: ErrorResponse;
19568
+ 500: ErrorResponse;
19569
+ };
19570
+ export type ListBotsError = ListBotsErrors[keyof ListBotsErrors];
19571
+ export type ListBotsResponses = {
19572
+ 200: Array<Bot>;
19573
+ };
19574
+ export type ListBotsResponse = ListBotsResponses[keyof ListBotsResponses];
19575
+ export type CreateBotData = {
19576
+ body: CreateBotRequest;
19577
+ path?: never;
19578
+ query?: never;
19579
+ url: '/bots';
19580
+ };
19581
+ export type CreateBotErrors = {
19582
+ 400: ErrorResponse;
19583
+ 401: ErrorResponse;
19584
+ 500: ErrorResponse;
19585
+ };
19586
+ export type CreateBotError = CreateBotErrors[keyof CreateBotErrors];
19587
+ export type CreateBotResponses = {
19588
+ 201: Bot;
19589
+ };
19590
+ export type CreateBotResponse = CreateBotResponses[keyof CreateBotResponses];
16476
19591
  export type GetSelfBotData = {
16477
19592
  body?: never;
16478
19593
  path?: never;
@@ -16511,6 +19626,70 @@ export type GetBotOwnerProfilesResponses = {
16511
19626
  200: Array<BotOwnerProfile>;
16512
19627
  };
16513
19628
  export type GetBotOwnerProfilesResponse = GetBotOwnerProfilesResponses[keyof GetBotOwnerProfilesResponses];
19629
+ export type DeleteBotData = {
19630
+ body?: never;
19631
+ path: {
19632
+ /**
19633
+ * Bot ID
19634
+ */
19635
+ bot_id: BotId;
19636
+ };
19637
+ query?: never;
19638
+ url: '/bots/{bot_id}';
19639
+ };
19640
+ export type DeleteBotErrors = {
19641
+ 401: ErrorResponse;
19642
+ 404: ErrorResponse;
19643
+ 500: ErrorResponse;
19644
+ };
19645
+ export type DeleteBotError = DeleteBotErrors[keyof DeleteBotErrors];
19646
+ export type DeleteBotResponses = {
19647
+ 204: void;
19648
+ };
19649
+ export type DeleteBotResponse = DeleteBotResponses[keyof DeleteBotResponses];
19650
+ export type GetBotData = {
19651
+ body?: never;
19652
+ path: {
19653
+ /**
19654
+ * Bot ID
19655
+ */
19656
+ bot_id: BotId;
19657
+ };
19658
+ query?: never;
19659
+ url: '/bots/{bot_id}';
19660
+ };
19661
+ export type GetBotErrors = {
19662
+ 401: ErrorResponse;
19663
+ 404: ErrorResponse;
19664
+ 500: ErrorResponse;
19665
+ };
19666
+ export type GetBotError = GetBotErrors[keyof GetBotErrors];
19667
+ export type GetBotResponses = {
19668
+ 200: Bot;
19669
+ };
19670
+ export type GetBotResponse = GetBotResponses[keyof GetBotResponses];
19671
+ export type PatchBotData = {
19672
+ body: PatchBotRequest;
19673
+ path: {
19674
+ /**
19675
+ * Bot ID
19676
+ */
19677
+ bot_id: BotId;
19678
+ };
19679
+ query?: never;
19680
+ url: '/bots/{bot_id}';
19681
+ };
19682
+ export type PatchBotErrors = {
19683
+ 400: ErrorResponse;
19684
+ 401: ErrorResponse;
19685
+ 404: ErrorResponse;
19686
+ 500: ErrorResponse;
19687
+ };
19688
+ export type PatchBotError = PatchBotErrors[keyof PatchBotErrors];
19689
+ export type PatchBotResponses = {
19690
+ 200: Bot;
19691
+ };
19692
+ export type PatchBotResponse = PatchBotResponses[keyof PatchBotResponses];
16514
19693
  export type ListBotChannelsData = {
16515
19694
  body?: never;
16516
19695
  path: {
@@ -16557,6 +19736,74 @@ export type RemoveBotFromChannelByBotResponses = {
16557
19736
  204: void;
16558
19737
  };
16559
19738
  export type RemoveBotFromChannelByBotResponse = RemoveBotFromChannelByBotResponses[keyof RemoveBotFromChannelByBotResponses];
19739
+ export type ListBotTokensData = {
19740
+ body?: never;
19741
+ path: {
19742
+ /**
19743
+ * Bot ID
19744
+ */
19745
+ bot_id: BotId;
19746
+ };
19747
+ query?: never;
19748
+ url: '/bots/{bot_id}/tokens';
19749
+ };
19750
+ export type ListBotTokensErrors = {
19751
+ 401: ErrorResponse;
19752
+ 404: ErrorResponse;
19753
+ 500: ErrorResponse;
19754
+ };
19755
+ export type ListBotTokensError = ListBotTokensErrors[keyof ListBotTokensErrors];
19756
+ export type ListBotTokensResponses = {
19757
+ 200: Array<BotToken>;
19758
+ };
19759
+ export type ListBotTokensResponse = ListBotTokensResponses[keyof ListBotTokensResponses];
19760
+ export type CreateBotTokenData = {
19761
+ body: CreateBotTokenRequest;
19762
+ path: {
19763
+ /**
19764
+ * Bot ID
19765
+ */
19766
+ bot_id: BotId;
19767
+ };
19768
+ query?: never;
19769
+ url: '/bots/{bot_id}/tokens';
19770
+ };
19771
+ export type CreateBotTokenErrors = {
19772
+ 400: ErrorResponse;
19773
+ 401: ErrorResponse;
19774
+ 404: ErrorResponse;
19775
+ 500: ErrorResponse;
19776
+ };
19777
+ export type CreateBotTokenError = CreateBotTokenErrors[keyof CreateBotTokenErrors];
19778
+ export type CreateBotTokenResponses = {
19779
+ 201: CreateBotTokenResponse;
19780
+ };
19781
+ export type CreateBotTokenResponse2 = CreateBotTokenResponses[keyof CreateBotTokenResponses];
19782
+ export type RevokeBotTokenData = {
19783
+ body?: never;
19784
+ path: {
19785
+ /**
19786
+ * Bot ID
19787
+ */
19788
+ bot_id: BotId;
19789
+ /**
19790
+ * Token ID
19791
+ */
19792
+ token_id: string;
19793
+ };
19794
+ query?: never;
19795
+ url: '/bots/{bot_id}/tokens/{token_id}';
19796
+ };
19797
+ export type RevokeBotTokenErrors = {
19798
+ 401: ErrorResponse;
19799
+ 404: ErrorResponse;
19800
+ 500: ErrorResponse;
19801
+ };
19802
+ export type RevokeBotTokenError = RevokeBotTokenErrors[keyof RevokeBotTokenErrors];
19803
+ export type RevokeBotTokenResponses = {
19804
+ 204: void;
19805
+ };
19806
+ export type RevokeBotTokenResponse = RevokeBotTokenResponses[keyof RevokeBotTokenResponses];
16560
19807
  export type ListOccurrencesData = {
16561
19808
  body?: never;
16562
19809
  path?: never;
@@ -16828,6 +20075,16 @@ export type GetActiveCallsResponses = {
16828
20075
  200: ActiveCallsResponse;
16829
20076
  };
16830
20077
  export type GetActiveCallsResponse = GetActiveCallsResponses[keyof GetActiveCallsResponses];
20078
+ export type GetLiveCallsData = {
20079
+ body?: never;
20080
+ path?: never;
20081
+ query?: never;
20082
+ url: '/call/active/all';
20083
+ };
20084
+ export type GetLiveCallsResponses = {
20085
+ 200: LiveCallsResponse;
20086
+ };
20087
+ export type GetLiveCallsResponse = GetLiveCallsResponses[keyof GetLiveCallsResponses];
16831
20088
  export type GuestCallChatReadData = {
16832
20089
  body?: never;
16833
20090
  path: {
@@ -17034,7 +20291,7 @@ export type MeetingInviteUsersResponses = {
17034
20291
  };
17035
20292
  export type MeetingInviteUsersResponse = MeetingInviteUsersResponses[keyof MeetingInviteUsersResponses];
17036
20293
  export type MeetingJoinData = {
17037
- body?: never;
20294
+ body?: JoinCallRequest;
17038
20295
  path: {
17039
20296
  token: string;
17040
20297
  };
@@ -17261,6 +20518,40 @@ export type DeclineCallResponses = {
17261
20518
  204: void;
17262
20519
  };
17263
20520
  export type DeclineCallResponse = DeclineCallResponses[keyof DeclineCallResponses];
20521
+ export type JoinCallData = {
20522
+ body: JoinCallRequest;
20523
+ path: {
20524
+ call_id: string;
20525
+ };
20526
+ query?: never;
20527
+ url: '/call/record/{call_id}/join';
20528
+ };
20529
+ export type JoinCallErrors = {
20530
+ 403: ErrorResponse;
20531
+ 409: unknown;
20532
+ 410: unknown;
20533
+ };
20534
+ export type JoinCallError = JoinCallErrors[keyof JoinCallErrors];
20535
+ export type JoinCallResponses = {
20536
+ 200: CallTokenResponse;
20537
+ };
20538
+ export type JoinCallResponse = JoinCallResponses[keyof JoinCallResponses];
20539
+ export type LeaveCallData = {
20540
+ body?: never;
20541
+ path: {
20542
+ call_id: string;
20543
+ };
20544
+ query?: never;
20545
+ url: '/call/record/{call_id}/leave';
20546
+ };
20547
+ export type LeaveCallErrors = {
20548
+ 404: ErrorResponse;
20549
+ };
20550
+ export type LeaveCallError = LeaveCallErrors[keyof LeaveCallErrors];
20551
+ export type LeaveCallResponses = {
20552
+ 200: LeaveCallResponse;
20553
+ };
20554
+ export type LeaveCallResponse2 = LeaveCallResponses[keyof LeaveCallResponses];
17264
20555
  export type MeetingShareData = {
17265
20556
  body?: never;
17266
20557
  path: {
@@ -17280,6 +20571,55 @@ export type MeetingShareResponses = {
17280
20571
  200: Meeting;
17281
20572
  };
17282
20573
  export type MeetingShareResponse = MeetingShareResponses[keyof MeetingShareResponses];
20574
+ export type GetCallParticipantsData = {
20575
+ body?: never;
20576
+ path: {
20577
+ call_id: string;
20578
+ };
20579
+ query?: never;
20580
+ url: '/call/record/{call_id}/participants';
20581
+ };
20582
+ export type GetCallParticipantsErrors = {
20583
+ 403: unknown;
20584
+ 404: unknown;
20585
+ };
20586
+ export type GetCallParticipantsResponses = {
20587
+ 200: LiveCallParticipantsResponse;
20588
+ };
20589
+ export type GetCallParticipantsResponse = GetCallParticipantsResponses[keyof GetCallParticipantsResponses];
20590
+ export type GetCallRecordingData = {
20591
+ body?: never;
20592
+ path: {
20593
+ /**
20594
+ * Call ID
20595
+ */
20596
+ call_id: string;
20597
+ };
20598
+ query?: never;
20599
+ url: '/call/record/{call_id}/recording';
20600
+ };
20601
+ export type GetCallRecordingErrors = {
20602
+ 403: ErrorResponse;
20603
+ 404: ErrorResponse;
20604
+ 500: ErrorResponse;
20605
+ };
20606
+ export type GetCallRecordingError = GetCallRecordingErrors[keyof GetCallRecordingErrors];
20607
+ export type GetCallRecordingResponses = {
20608
+ 200: RecordingBytes;
20609
+ };
20610
+ export type GetCallRecordingResponse = GetCallRecordingResponses[keyof GetCallRecordingResponses];
20611
+ export type GetCallRingStateData = {
20612
+ body?: never;
20613
+ path: {
20614
+ call_id: string;
20615
+ };
20616
+ query?: never;
20617
+ url: '/call/record/{call_id}/ring';
20618
+ };
20619
+ export type GetCallRingStateResponses = {
20620
+ 200: RingStatusResponse;
20621
+ };
20622
+ export type GetCallRingStateResponse = GetCallRingStateResponses[keyof GetCallRingStateResponses];
17283
20623
  export type ToggleShareWithTeamData = {
17284
20624
  body?: never;
17285
20625
  path: {
@@ -17450,6 +20790,23 @@ export type GetOrCreateCallResponses = {
17450
20790
  200: CallTokenResponse;
17451
20791
  };
17452
20792
  export type GetOrCreateCallResponse = GetOrCreateCallResponses[keyof GetOrCreateCallResponses];
20793
+ export type StartCallData = {
20794
+ body: JoinCallRequest;
20795
+ path: {
20796
+ channel_id: string;
20797
+ };
20798
+ query?: never;
20799
+ url: '/call/{channel_id}';
20800
+ };
20801
+ export type StartCallErrors = {
20802
+ 403: ErrorResponse;
20803
+ 409: unknown;
20804
+ };
20805
+ export type StartCallError = StartCallErrors[keyof StartCallErrors];
20806
+ export type StartCallResponses = {
20807
+ 200: CallTokenResponse;
20808
+ };
20809
+ export type StartCallResponse = StartCallResponses[keyof StartCallResponses];
17453
20810
  export type CheckActiveCallData = {
17454
20811
  body?: never;
17455
20812
  path: {
@@ -18052,7 +21409,49 @@ export type GetChannelAttachmentsError = GetChannelAttachmentsErrors[keyof GetCh
18052
21409
  export type GetChannelAttachmentsResponses = {
18053
21410
  200: ApiChannelAttachmentsPage;
18054
21411
  };
18055
- export type GetChannelAttachmentsResponse = GetChannelAttachmentsResponses[keyof GetChannelAttachmentsResponses];
21412
+ export type GetChannelAttachmentsResponse = GetChannelAttachmentsResponses[keyof GetChannelAttachmentsResponses];
21413
+ export type ListChannelBotsData = {
21414
+ body?: never;
21415
+ path: {
21416
+ /**
21417
+ * Channel ID
21418
+ */
21419
+ channel_id: string;
21420
+ };
21421
+ query?: never;
21422
+ url: '/channels/{channel_id}/bots';
21423
+ };
21424
+ export type ListChannelBotsErrors = {
21425
+ 401: ErrorResponse;
21426
+ 500: ErrorResponse;
21427
+ };
21428
+ export type ListChannelBotsError = ListChannelBotsErrors[keyof ListChannelBotsErrors];
21429
+ export type ListChannelBotsResponses = {
21430
+ 200: Array<Bot>;
21431
+ };
21432
+ export type ListChannelBotsResponse = ListChannelBotsResponses[keyof ListChannelBotsResponses];
21433
+ export type AddChannelBotData = {
21434
+ body: AddChannelBotRequest;
21435
+ path: {
21436
+ /**
21437
+ * Channel ID
21438
+ */
21439
+ channel_id: string;
21440
+ };
21441
+ query?: never;
21442
+ url: '/channels/{channel_id}/bots';
21443
+ };
21444
+ export type AddChannelBotErrors = {
21445
+ 400: ErrorResponse;
21446
+ 401: ErrorResponse;
21447
+ 404: ErrorResponse;
21448
+ 500: ErrorResponse;
21449
+ };
21450
+ export type AddChannelBotError = AddChannelBotErrors[keyof AddChannelBotErrors];
21451
+ export type AddChannelBotResponses = {
21452
+ 204: void;
21453
+ };
21454
+ export type AddChannelBotResponse = AddChannelBotResponses[keyof AddChannelBotResponses];
18056
21455
  export type CreateChannelScopedBotData = {
18057
21456
  body: CreateChannelScopedBotRequest;
18058
21457
  path: {
@@ -20145,6 +23544,53 @@ export type GetSystemSkillsHandlerResponses = {
20145
23544
  };
20146
23545
  };
20147
23546
  export type GetSystemSkillsHandlerResponse = GetSystemSkillsHandlerResponses[keyof GetSystemSkillsHandlerResponses];
23547
+ export type UploadFileData = {
23548
+ /**
23549
+ * The file's bytes, at most 25 MiB.
23550
+ */
23551
+ body: Blob | File;
23552
+ path?: never;
23553
+ query: {
23554
+ /**
23555
+ * Filename including its extension, such as `report.pdf`; the extension
23556
+ * sets the file type. No directory components.
23557
+ */
23558
+ fileName: string;
23559
+ /**
23560
+ * Destination project. Requires edit access; omit for top-level files.
23561
+ */
23562
+ projectId?: string;
23563
+ };
23564
+ url: '/documents/upload';
23565
+ };
23566
+ export type UploadFileErrors = {
23567
+ /**
23568
+ * Invalid filename or content
23569
+ */
23570
+ 400: ErrorResponse;
23571
+ /**
23572
+ * No edit access to the destination project
23573
+ */
23574
+ 401: ErrorResponse;
23575
+ /**
23576
+ * The caller cannot create documents
23577
+ */
23578
+ 403: unknown;
23579
+ /**
23580
+ * The file exceeds 25 MiB
23581
+ */
23582
+ 413: unknown;
23583
+ /**
23584
+ * Document name exceeds the maximum length
23585
+ */
23586
+ 422: ErrorResponse;
23587
+ 500: ErrorResponse;
23588
+ };
23589
+ export type UploadFileError = UploadFileErrors[keyof UploadFileErrors];
23590
+ export type UploadFileResponses = {
23591
+ 200: UploadFileResponse;
23592
+ };
23593
+ export type UploadFileResponse2 = UploadFileResponses[keyof UploadFileResponses];
20148
23594
  export type DeleteDocumentData = {
20149
23595
  body?: never;
20150
23596
  path: {
@@ -20333,6 +23779,46 @@ export type CopyDocumentResponses = {
20333
23779
  200: CopyDocumentResponse;
20334
23780
  };
20335
23781
  export type CopyDocumentResponse2 = CopyDocumentResponses[keyof CopyDocumentResponses];
23782
+ export type ReadDesignData = {
23783
+ body?: never;
23784
+ path: {
23785
+ /**
23786
+ * Document identity
23787
+ */
23788
+ document_id: string;
23789
+ };
23790
+ query?: {
23791
+ /**
23792
+ * 1-based page numbers to read; omit for the whole design.
23793
+ */
23794
+ page?: Array<number>;
23795
+ };
23796
+ url: '/documents/{document_id}/design';
23797
+ };
23798
+ export type ReadDesignErrors = {
23799
+ /**
23800
+ * Not a readable Figma design, or too large
23801
+ */
23802
+ 400: ErrorResponse;
23803
+ /**
23804
+ * Authentication required
23805
+ */
23806
+ 401: unknown;
23807
+ /**
23808
+ * Document access denied
23809
+ */
23810
+ 403: unknown;
23811
+ /**
23812
+ * Document not found
23813
+ */
23814
+ 404: unknown;
23815
+ 500: ErrorResponse;
23816
+ };
23817
+ export type ReadDesignError = ReadDesignErrors[keyof ReadDesignErrors];
23818
+ export type ReadDesignResponses = {
23819
+ 200: DesignFileDescription;
23820
+ };
23821
+ export type ReadDesignResponse = ReadDesignResponses[keyof ReadDesignResponses];
20336
23822
  export type ExportDocumentData = {
20337
23823
  body?: never;
20338
23824
  path: {
@@ -20380,6 +23866,41 @@ export type GetDocumentGithubPullRequestsResponses = {
20380
23866
  200: GithubPullRequestsResponse;
20381
23867
  };
20382
23868
  export type GetDocumentGithubPullRequestsResponse = GetDocumentGithubPullRequestsResponses[keyof GetDocumentGithubPullRequestsResponses];
23869
+ export type ReadIllustratorDocumentData = {
23870
+ body?: never;
23871
+ path: {
23872
+ /**
23873
+ * Document identity
23874
+ */
23875
+ document_id: string;
23876
+ };
23877
+ query?: never;
23878
+ url: '/documents/{document_id}/illustrator';
23879
+ };
23880
+ export type ReadIllustratorDocumentErrors = {
23881
+ /**
23882
+ * Not a readable Illustrator document, or too large
23883
+ */
23884
+ 400: ErrorResponse;
23885
+ /**
23886
+ * Authentication required
23887
+ */
23888
+ 401: unknown;
23889
+ /**
23890
+ * Document access denied
23891
+ */
23892
+ 403: unknown;
23893
+ /**
23894
+ * Document not found
23895
+ */
23896
+ 404: unknown;
23897
+ 500: ErrorResponse;
23898
+ };
23899
+ export type ReadIllustratorDocumentError = ReadIllustratorDocumentErrors[keyof ReadIllustratorDocumentErrors];
23900
+ export type ReadIllustratorDocumentResponses = {
23901
+ 200: DesignFileDescription;
23902
+ };
23903
+ export type ReadIllustratorDocumentResponse = ReadIllustratorDocumentResponses[keyof ReadIllustratorDocumentResponses];
20383
23904
  export type GetLocationHandlerData = {
20384
23905
  body?: never;
20385
23906
  path: {
@@ -20463,6 +23984,155 @@ export type PermanentlyDeleteDocumentResponses = {
20463
23984
  200: SuccessResponse;
20464
23985
  };
20465
23986
  export type PermanentlyDeleteDocumentResponse = PermanentlyDeleteDocumentResponses[keyof PermanentlyDeleteDocumentResponses];
23987
+ export type ReadPhotoshopDocumentData = {
23988
+ body?: never;
23989
+ path: {
23990
+ /**
23991
+ * Document identity
23992
+ */
23993
+ document_id: string;
23994
+ };
23995
+ query?: never;
23996
+ url: '/documents/{document_id}/photoshop';
23997
+ };
23998
+ export type ReadPhotoshopDocumentErrors = {
23999
+ /**
24000
+ * Not a readable Photoshop document, or too large
24001
+ */
24002
+ 400: ErrorResponse;
24003
+ /**
24004
+ * Authentication required
24005
+ */
24006
+ 401: unknown;
24007
+ /**
24008
+ * Document access denied
24009
+ */
24010
+ 403: unknown;
24011
+ /**
24012
+ * Document not found
24013
+ */
24014
+ 404: unknown;
24015
+ 500: ErrorResponse;
24016
+ };
24017
+ export type ReadPhotoshopDocumentError = ReadPhotoshopDocumentErrors[keyof ReadPhotoshopDocumentErrors];
24018
+ export type ReadPhotoshopDocumentResponses = {
24019
+ 200: DesignFileDescription;
24020
+ };
24021
+ export type ReadPhotoshopDocumentResponse = ReadPhotoshopDocumentResponses[keyof ReadPhotoshopDocumentResponses];
24022
+ export type ReadPresentationData = {
24023
+ body?: never;
24024
+ path: {
24025
+ /**
24026
+ * Document identity
24027
+ */
24028
+ document_id: string;
24029
+ };
24030
+ query?: {
24031
+ /**
24032
+ * 1-based slide numbers to read; omit for the whole deck.
24033
+ */
24034
+ slide?: Array<number>;
24035
+ };
24036
+ url: '/documents/{document_id}/presentation';
24037
+ };
24038
+ export type ReadPresentationErrors = {
24039
+ /**
24040
+ * Not a readable PowerPoint presentation
24041
+ */
24042
+ 400: ErrorResponse;
24043
+ /**
24044
+ * Authentication required
24045
+ */
24046
+ 401: unknown;
24047
+ /**
24048
+ * Document access denied
24049
+ */
24050
+ 403: unknown;
24051
+ /**
24052
+ * Document not found
24053
+ */
24054
+ 404: unknown;
24055
+ 500: ErrorResponse;
24056
+ };
24057
+ export type ReadPresentationError = ReadPresentationErrors[keyof ReadPresentationErrors];
24058
+ export type ReadPresentationResponses = {
24059
+ 200: PresentationDescription;
24060
+ };
24061
+ export type ReadPresentationResponse = ReadPresentationResponses[keyof ReadPresentationResponses];
24062
+ export type CopyPresentationData = {
24063
+ body: PresentationCopyRequest;
24064
+ path: {
24065
+ /**
24066
+ * Document identity
24067
+ */
24068
+ document_id: string;
24069
+ };
24070
+ query?: never;
24071
+ url: '/documents/{document_id}/presentation/copy';
24072
+ };
24073
+ export type CopyPresentationErrors = {
24074
+ /**
24075
+ * Not a PowerPoint presentation, an empty name, more than 100 operations, or an operation the deck rejected; nothing was created
24076
+ */
24077
+ 400: ErrorResponse;
24078
+ /**
24079
+ * No edit access to the destination project
24080
+ */
24081
+ 401: ErrorResponse;
24082
+ /**
24083
+ * Document access denied, or the caller cannot create documents
24084
+ */
24085
+ 403: unknown;
24086
+ /**
24087
+ * Document not found
24088
+ */
24089
+ 404: unknown;
24090
+ /**
24091
+ * Document name exceeds the maximum length
24092
+ */
24093
+ 422: unknown;
24094
+ 500: ErrorResponse;
24095
+ };
24096
+ export type CopyPresentationError = CopyPresentationErrors[keyof CopyPresentationErrors];
24097
+ export type CopyPresentationResponses = {
24098
+ 200: PresentationEditOutcome;
24099
+ };
24100
+ export type CopyPresentationResponse = CopyPresentationResponses[keyof CopyPresentationResponses];
24101
+ export type EditPresentationData = {
24102
+ body: PresentationEditRequest;
24103
+ path: {
24104
+ /**
24105
+ * Document identity
24106
+ */
24107
+ document_id: string;
24108
+ };
24109
+ query?: never;
24110
+ url: '/documents/{document_id}/presentation/edits';
24111
+ };
24112
+ export type EditPresentationErrors = {
24113
+ /**
24114
+ * Not a PowerPoint presentation, a batch outside 1 to 100 operations, or an operation the deck rejected; nothing was saved
24115
+ */
24116
+ 400: ErrorResponse;
24117
+ /**
24118
+ * Authentication required
24119
+ */
24120
+ 401: unknown;
24121
+ /**
24122
+ * Document edit access denied
24123
+ */
24124
+ 403: unknown;
24125
+ /**
24126
+ * Document not found
24127
+ */
24128
+ 404: unknown;
24129
+ 500: ErrorResponse;
24130
+ };
24131
+ export type EditPresentationError = EditPresentationErrors[keyof EditPresentationErrors];
24132
+ export type EditPresentationResponses = {
24133
+ 200: PresentationEditOutcome;
24134
+ };
24135
+ export type EditPresentationResponse = EditPresentationResponses[keyof EditPresentationResponses];
20466
24136
  export type GetDocumentProcessingResultData = {
20467
24137
  body?: never;
20468
24138
  path: {
@@ -20725,6 +24395,85 @@ export type GetDocumentViewsHandlerResponses = {
20725
24395
  200: UserViewsResponse;
20726
24396
  };
20727
24397
  export type GetDocumentViewsHandlerResponse = GetDocumentViewsHandlerResponses[keyof GetDocumentViewsHandlerResponses];
24398
+ export type ReadWordDocumentData = {
24399
+ body?: never;
24400
+ path: {
24401
+ /**
24402
+ * Document identity
24403
+ */
24404
+ document_id: string;
24405
+ };
24406
+ query?: {
24407
+ /**
24408
+ * First block to show, 1-based; omit to start at the beginning.
24409
+ */
24410
+ start?: number;
24411
+ /**
24412
+ * Most blocks to show; omit for as many as fit.
24413
+ */
24414
+ count?: number;
24415
+ };
24416
+ url: '/documents/{document_id}/word';
24417
+ };
24418
+ export type ReadWordDocumentErrors = {
24419
+ /**
24420
+ * Not an uploaded Word document, or still being processed after upload
24421
+ */
24422
+ 400: ErrorResponse;
24423
+ /**
24424
+ * Authentication required, or a bot with no acting user
24425
+ */
24426
+ 401: unknown;
24427
+ /**
24428
+ * Document access denied
24429
+ */
24430
+ 403: unknown;
24431
+ /**
24432
+ * Document not found
24433
+ */
24434
+ 404: unknown;
24435
+ 500: ErrorResponse;
24436
+ };
24437
+ export type ReadWordDocumentError = ReadWordDocumentErrors[keyof ReadWordDocumentErrors];
24438
+ export type ReadWordDocumentResponses = {
24439
+ 200: WordDocumentResponse;
24440
+ };
24441
+ export type ReadWordDocumentResponse = ReadWordDocumentResponses[keyof ReadWordDocumentResponses];
24442
+ export type EditWordDocumentData = {
24443
+ body: WordDocumentEditRequest;
24444
+ path: {
24445
+ /**
24446
+ * Document identity
24447
+ */
24448
+ document_id: string;
24449
+ };
24450
+ query?: never;
24451
+ url: '/documents/{document_id}/word/edits';
24452
+ };
24453
+ export type EditWordDocumentErrors = {
24454
+ /**
24455
+ * Not an uploaded Word document, a batch outside 1 to 50 operations, an invalid author, or operations the editor refused; nothing changed
24456
+ */
24457
+ 400: ErrorResponse;
24458
+ /**
24459
+ * Authentication required, or a bot with no acting user
24460
+ */
24461
+ 401: unknown;
24462
+ /**
24463
+ * Document edit access denied
24464
+ */
24465
+ 403: unknown;
24466
+ /**
24467
+ * Document not found
24468
+ */
24469
+ 404: unknown;
24470
+ 500: ErrorResponse;
24471
+ };
24472
+ export type EditWordDocumentError = EditWordDocumentErrors[keyof EditWordDocumentErrors];
24473
+ export type EditWordDocumentResponses = {
24474
+ 200: WordDocumentResponse;
24475
+ };
24476
+ export type EditWordDocumentResponse = EditWordDocumentResponses[keyof EditWordDocumentResponses];
20728
24477
  export type GetDocumentVersionData = {
20729
24478
  body?: never;
20730
24479
  path: {