@gravity-rail/sdk 8.2.0 → 9.0.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 (51) hide show
  1. package/README.md +2 -3
  2. package/dist/{agent_standing_job-CQqd8LDQ.d.ts → agent_team-CeErHy0t.d.ts} +846 -110
  3. package/dist/{agent_standing_job-DfjwGfg_.d.cts → agent_team-J0TyZPkg.d.cts} +846 -110
  4. package/dist/{chunk-U2U5X3LY.js → chunk-AMJ2MMBM.js} +238 -226
  5. package/dist/chunk-AMJ2MMBM.js.map +1 -0
  6. package/dist/{chunk-IIIRXFKG.js → chunk-MWTQXZGB.js} +1 -1
  7. package/dist/chunk-MWTQXZGB.js.map +1 -0
  8. package/dist/{chunk-6KPGCPGW.js → chunk-ZJJDZUAK.js} +40 -1
  9. package/dist/chunk-ZJJDZUAK.js.map +1 -0
  10. package/dist/{client-BGGgZhKg.d.cts → client-CO1hYs43.d.cts} +2238 -1099
  11. package/dist/{client-Bd-zXY42.d.ts → client-xtsG-YOi.d.ts} +2238 -1099
  12. package/dist/helpers.cjs +41 -0
  13. package/dist/helpers.cjs.map +1 -1
  14. package/dist/helpers.d.cts +2 -2
  15. package/dist/helpers.d.ts +2 -2
  16. package/dist/helpers.js +5 -1
  17. package/dist/helpers.js.map +1 -1
  18. package/dist/index.cjs +283 -305
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +7 -23
  21. package/dist/index.d.ts +7 -23
  22. package/dist/index.js +14 -84
  23. package/dist/index.js.map +1 -1
  24. package/dist/internal.cjs +245 -230
  25. package/dist/internal.cjs.map +1 -1
  26. package/dist/internal.d.cts +775 -927
  27. package/dist/internal.d.ts +775 -927
  28. package/dist/internal.js +12 -9
  29. package/dist/internal.js.map +1 -1
  30. package/dist/member-import-CzGVMtgv.d.cts +92 -0
  31. package/dist/member-import-q5-fCvfV.d.ts +92 -0
  32. package/dist/realtime.cjs +109 -54
  33. package/dist/realtime.cjs.map +1 -1
  34. package/dist/realtime.d.cts +7 -2
  35. package/dist/realtime.d.ts +7 -2
  36. package/dist/realtime.js +109 -54
  37. package/dist/realtime.js.map +1 -1
  38. package/dist/schemas.cjs +24 -6
  39. package/dist/schemas.cjs.map +1 -1
  40. package/dist/schemas.d.cts +62 -48
  41. package/dist/schemas.d.ts +62 -48
  42. package/dist/schemas.js +24 -7
  43. package/dist/schemas.js.map +1 -1
  44. package/dist/{tasks-BTURuIlD.d.cts → tasks-BM3pb5W6.d.cts} +67 -904
  45. package/dist/{tasks-2LhXIwL8.d.ts → tasks-Dc89D2Gu.d.ts} +67 -904
  46. package/package.json +3 -3
  47. package/dist/chunk-6KPGCPGW.js.map +0 -1
  48. package/dist/chunk-IIIRXFKG.js.map +0 -1
  49. package/dist/chunk-U2U5X3LY.js.map +0 -1
  50. package/dist/member-import-4VSE3yYo.d.cts +0 -46
  51. package/dist/member-import-BQDFoSyf.d.ts +0 -46
@@ -1,5 +1,5 @@
1
- import { cR as ChannelMessagesUnavailableReason, vl as UiPromptProposedMessage, qC as Resource$1, a7 as ActivityEventLine, X as ActivityAggregateResponse, a9 as ActivityEventsResponse, nW as PathDefinition, b2 as AgentTimeWindow } from './client-Bd-zXY42.js';
2
- import { eV as SortOrder } from './tasks-2LhXIwL8.js';
1
+ import { dx as ChannelMessagesUnavailableReason, w0 as UiPromptProposedMessage, KM as XAIRealtimeModelConfig$1, r8 as Resource$1, a7 as ActivityEventLine, X as ActivityAggregateResponse, a9 as ActivityEventsResponse, or as PathDefinition, cn as BotTimeWindow, bT as BotConfiguration } from './client-xtsG-YOi.js';
2
+ import { ew as SortOrder } from './tasks-Dc89D2Gu.js';
3
3
 
4
4
  /**
5
5
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
@@ -164,9 +164,13 @@ interface MemberNotificationPreferences {
164
164
  * Who a `member:notify` rule notifies.
165
165
  * - `target_member`: the Member the event is about (its target Member, else its Member).
166
166
  * - `specific_member`: the Member named by `memberId`.
167
- * - `shared_destination`: the approved shared destination (a Teams channel)
168
- * named by `destinationId`. It takes no `messageTemplate` or
169
- * `subjectTemplate`: the channel gets a fixed card.
167
+ * - `shared_destination`: the approved shared destination (a Teams or Slack
168
+ * channel) named by `destinationId`. `messageTemplate` is optional and
169
+ * `subjectTemplate` is refused. For a Teams channel, everyone in the
170
+ * channel sees the rendered message when the Bot's Teams installation is
171
+ * approved for protected information; otherwise, for a Slack channel, or
172
+ * when blank, the channel gets a generic notification with an Open Gravity
173
+ * Rail link.
170
174
  */
171
175
  type MemberNotifyRecipientMode = 'target_member' | 'specific_member' | 'shared_destination';
172
176
  interface MemberNotifyActionParams {
@@ -182,11 +186,15 @@ interface MemberNotifyActionParams {
182
186
  * stored rules; new rules set `recipientMode` and never this flag.
183
187
  */
184
188
  sendToOwner?: boolean;
189
+ /**
190
+ * The notification text, a `{{variable}}` template. Required and not blank
191
+ * for a Member; optional for `shared_destination`.
192
+ */
185
193
  messageTemplate?: string | null;
186
194
  /**
187
195
  * Email Subject line. Supports the same `{{variable}}` syntax and permission
188
196
  * rules as `messageTemplate`. Omitted or blank keeps
189
- * `Notification from <workspace>`.
197
+ * `Notification from <workspace>`. Not allowed for `shared_destination`.
190
198
  */
191
199
  subjectTemplate?: string | null;
192
200
  }
@@ -1297,15 +1305,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1297
1305
  readonly label: "Parent";
1298
1306
  readonly inverseLabel: "Child";
1299
1307
  readonly description: "This person is a parent of the member. For a minor, also add Legal guardian if they should read the chart.";
1300
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1301
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1308
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1309
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1302
1310
  }, {
1303
1311
  readonly role: "child";
1304
1312
  readonly label: "Child";
1305
1313
  readonly inverseLabel: "Parent";
1306
1314
  readonly description: "This person is a child of the member.";
1307
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1308
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1315
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1316
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1309
1317
  }];
1310
1318
  }, {
1311
1319
  readonly kind: "sibling_of";
@@ -1317,8 +1325,8 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1317
1325
  readonly label: "Sibling";
1318
1326
  readonly inverseLabel: "Sibling";
1319
1327
  readonly description: "These members are siblings.";
1320
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1321
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1328
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1329
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1322
1330
  }];
1323
1331
  }, {
1324
1332
  readonly kind: "spouse_of";
@@ -1330,8 +1338,8 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1330
1338
  readonly label: "Spouse";
1331
1339
  readonly inverseLabel: "Spouse";
1332
1340
  readonly description: "These members are spouses or partners.";
1333
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1334
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1341
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1342
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1335
1343
  }];
1336
1344
  }, {
1337
1345
  readonly kind: "caregiver_of";
@@ -1343,15 +1351,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1343
1351
  readonly label: "Caregiver";
1344
1352
  readonly inverseLabel: "Care recipient";
1345
1353
  readonly description: "This person provides care for the member at home.";
1346
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1347
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1354
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1355
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1348
1356
  }, {
1349
1357
  readonly role: "care_recipient";
1350
1358
  readonly label: "Care recipient";
1351
1359
  readonly inverseLabel: "Caregiver";
1352
1360
  readonly description: "This person receives care from the member.";
1353
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1354
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1361
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1362
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1355
1363
  }];
1356
1364
  }, {
1357
1365
  readonly kind: "emergency_contact_of";
@@ -1363,15 +1371,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1363
1371
  readonly label: "Emergency contact";
1364
1372
  readonly inverseLabel: "Emergency contact for";
1365
1373
  readonly description: "This person is the member's emergency contact.";
1366
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1367
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1374
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1375
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1368
1376
  }, {
1369
1377
  readonly role: "emergency_contact_for";
1370
1378
  readonly label: "Emergency contact for";
1371
1379
  readonly inverseLabel: "Emergency contact";
1372
1380
  readonly description: "The member is listed as this person's emergency contact.";
1373
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1374
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1381
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1382
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1375
1383
  }];
1376
1384
  }, {
1377
1385
  readonly kind: "next_of_kin_of";
@@ -1383,15 +1391,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1383
1391
  readonly label: "Next of kin";
1384
1392
  readonly inverseLabel: "Next of kin for";
1385
1393
  readonly description: "This person is the member's designated next of kin. A member has at most one.";
1386
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1387
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1394
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1395
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1388
1396
  }, {
1389
1397
  readonly role: "next_of_kin_for";
1390
1398
  readonly label: "Next of kin for";
1391
1399
  readonly inverseLabel: "Next of kin";
1392
1400
  readonly description: "The member is this person's designated next of kin.";
1393
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1394
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1401
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1402
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1395
1403
  }];
1396
1404
  }, {
1397
1405
  readonly kind: "legal_guardian_of";
@@ -1403,15 +1411,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1403
1411
  readonly label: "Legal guardian";
1404
1412
  readonly inverseLabel: "Legal guardian for";
1405
1413
  readonly description: "Court-appointed guardian, or parent/person with parental responsibility for a minor.";
1406
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1407
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1414
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1415
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1408
1416
  }, {
1409
1417
  readonly role: "legal_guardian_for";
1410
1418
  readonly label: "Legal guardian for";
1411
1419
  readonly inverseLabel: "Legal guardian";
1412
1420
  readonly description: "The member is this person's legal guardian.";
1413
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1414
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1421
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1422
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1415
1423
  }];
1416
1424
  }, {
1417
1425
  readonly kind: "healthcare_agent_of";
@@ -1423,15 +1431,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1423
1431
  readonly label: "Healthcare agent";
1424
1432
  readonly inverseLabel: "Healthcare agent for";
1425
1433
  readonly description: "Healthcare power of attorney or health proxy.";
1426
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1427
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1434
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1435
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1428
1436
  }, {
1429
1437
  readonly role: "healthcare_agent_for";
1430
1438
  readonly label: "Healthcare agent for";
1431
1439
  readonly inverseLabel: "Healthcare agent";
1432
1440
  readonly description: "The member is this person's healthcare agent (healthcare power of attorney or health proxy).";
1433
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1434
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1441
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1442
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1435
1443
  }];
1436
1444
  }, {
1437
1445
  readonly kind: "doctor_of";
@@ -1443,15 +1451,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1443
1451
  readonly label: "Doctor";
1444
1452
  readonly inverseLabel: "Patient";
1445
1453
  readonly description: "This person is a treating clinician for the member.";
1446
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1447
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1454
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1455
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1448
1456
  }, {
1449
1457
  readonly role: "patient";
1450
1458
  readonly label: "Patient";
1451
1459
  readonly inverseLabel: "Doctor";
1452
1460
  readonly description: "This person is a patient of the member.";
1453
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1454
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1461
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1462
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1455
1463
  }];
1456
1464
  }, {
1457
1465
  readonly kind: "primary_contact_of";
@@ -1463,15 +1471,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1463
1471
  readonly label: "Primary contact";
1464
1472
  readonly inverseLabel: "Primary contact for";
1465
1473
  readonly description: "This person is the organization's primary contact for the member. A member has at most one.";
1466
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1467
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1474
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1475
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1468
1476
  }, {
1469
1477
  readonly role: "primary_contact_for";
1470
1478
  readonly label: "Primary contact for";
1471
1479
  readonly inverseLabel: "Primary contact";
1472
1480
  readonly description: "The member is this person's assigned primary contact inside the organization.";
1473
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1474
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1481
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1482
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1475
1483
  }];
1476
1484
  }, {
1477
1485
  readonly kind: "contact_owner_of";
@@ -1483,15 +1491,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1483
1491
  readonly label: "Contact owner";
1484
1492
  readonly inverseLabel: "Owns contact";
1485
1493
  readonly description: "This person owns the member's record in the CRM. A member has at most one. Grants no chart access.";
1486
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1487
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1494
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1495
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1488
1496
  }, {
1489
1497
  readonly role: "owns_contact";
1490
1498
  readonly label: "Owns contact";
1491
1499
  readonly inverseLabel: "Contact owner";
1492
1500
  readonly description: "The member owns this person's record in the CRM.";
1493
- readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1494
- readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1501
+ readonly viewedMemberTypes: ["anonymous", "test", "member"];
1502
+ readonly relatedMemberTypes: ["anonymous", "test", "member"];
1495
1503
  }];
1496
1504
  }, {
1497
1505
  readonly kind: "employee_of";
@@ -1749,6 +1757,273 @@ interface AcquisitionFunnelResponse {
1749
1757
  declare const WIDGET_SLUGS: readonly ["chat", "operator", "operator-tools", "chat-app"];
1750
1758
  type WidgetSlug = (typeof WIDGET_SLUGS)[number];
1751
1759
 
1760
+ /**
1761
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
1762
+ * (group map from emit_openapi.py). Do not edit manually.
1763
+ * Group: agent_discord
1764
+ */
1765
+ /**
1766
+ * The servers and DMs a whole-application switch moves.
1767
+ */
1768
+ interface AgentDiscordAffectedScope {
1769
+ servers: AgentDiscordAffectedServer[];
1770
+ dmCount: number;
1771
+ truncated: boolean;
1772
+ }
1773
+ interface AgentDiscordAffectedServer {
1774
+ serverId: string;
1775
+ channelCount: number;
1776
+ }
1777
+ interface AgentDiscordApplicationResponse {
1778
+ applicationUuid: string;
1779
+ applicationId: string;
1780
+ botUserId: string;
1781
+ publicKey: string;
1782
+ interactionsUrl: string;
1783
+ status: AgentDiscordApplicationResponseStatus;
1784
+ revision: number;
1785
+ phiApproved: boolean;
1786
+ createdAt: string;
1787
+ }
1788
+ type AgentDiscordApplicationResponseStatus = typeof AgentDiscordApplicationResponseStatus[keyof typeof AgentDiscordApplicationResponseStatus];
1789
+ declare const AgentDiscordApplicationResponseStatus: {
1790
+ readonly active: "active";
1791
+ readonly suspended: "suspended";
1792
+ readonly revoked: "revoked";
1793
+ };
1794
+ interface AgentDiscordApplicationsResponse {
1795
+ items: AgentDiscordApplicationResponse[];
1796
+ }
1797
+ interface AgentDiscordAuthorizationResponse {
1798
+ authorizationUrl: string;
1799
+ redirectUri: string;
1800
+ }
1801
+ interface AgentDiscordBindingRequest {
1802
+ /** @minimum 1 */
1803
+ expectedRevision: number;
1804
+ }
1805
+ interface AgentDiscordConnectionResponse {
1806
+ connectionUuid: string;
1807
+ applicationUuid: string;
1808
+ applicationId: string;
1809
+ chatId: number;
1810
+ status: AgentDiscordConnectionResponseStatus;
1811
+ phiApproved: boolean;
1812
+ workspaceUuid: string | null;
1813
+ }
1814
+ type AgentDiscordConnectionResponseStatus = typeof AgentDiscordConnectionResponseStatus[keyof typeof AgentDiscordConnectionResponseStatus];
1815
+ declare const AgentDiscordConnectionResponseStatus: {
1816
+ readonly active: "active";
1817
+ readonly revoked: "revoked";
1818
+ };
1819
+ interface AgentDiscordConnectionsResponse {
1820
+ items: AgentDiscordConnectionResponse[];
1821
+ nextAfter: string | null;
1822
+ }
1823
+ /**
1824
+ * The Organization and its current Bot; no Bot means unbound.
1825
+ */
1826
+ interface AgentDiscordDestination {
1827
+ organizationUuid: string;
1828
+ organizationName: string;
1829
+ agentUuid?: string | null;
1830
+ agentName?: string | null;
1831
+ }
1832
+ declare const AgentDiscordRevokedResponseValue: {
1833
+ readonly status: "revoked";
1834
+ };
1835
+ type AgentDiscordRevokedResponse = typeof AgentDiscordRevokedResponseValue;
1836
+ declare const AgentDiscordTransferCancelledResponseValue: {
1837
+ readonly status: "cancelled";
1838
+ };
1839
+ type AgentDiscordTransferCancelledResponse = typeof AgentDiscordTransferCancelledResponseValue;
1840
+ interface AgentDiscordTransferPreviewResponse {
1841
+ applicationId: string;
1842
+ canConfirm: boolean;
1843
+ current: AgentDiscordDestination;
1844
+ proposed: AgentDiscordDestination;
1845
+ affected: AgentDiscordAffectedScope;
1846
+ expiresAt: string;
1847
+ }
1848
+ interface AgentDiscordTransferResponse {
1849
+ application: AgentDiscordApplicationResponse;
1850
+ previous: AgentDiscordDestination;
1851
+ }
1852
+ interface ConnectAgentDiscordRequest {
1853
+ applicationUuid: string;
1854
+ /** @minimum 1 */
1855
+ chatId: number;
1856
+ phiApproved?: boolean;
1857
+ workspaceUuid?: string | null;
1858
+ replaceConnectionUuid?: string | null;
1859
+ }
1860
+ interface RegisterAgentDiscordApplication {
1861
+ /** @pattern ^[0-9]{1,32}$ */
1862
+ applicationId: string;
1863
+ /**
1864
+ * @minLength 1
1865
+ * @maxLength 8192
1866
+ */
1867
+ botToken: string;
1868
+ /**
1869
+ * @minLength 1
1870
+ * @maxLength 8192
1871
+ */
1872
+ clientSecret: string;
1873
+ phiApproved?: boolean;
1874
+ }
1875
+
1876
+ /**
1877
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
1878
+ * (group map from emit_openapi.py). Do not edit manually.
1879
+ * Group: org_connection
1880
+ */
1881
+ /**
1882
+ * The customer's own Slack app, created at api.slack.com for this Organization.
1883
+ */
1884
+ interface CreateCustomOrgSlackApplicationRequest {
1885
+ /**
1886
+ * @minLength 1
1887
+ * @maxLength 255
1888
+ */
1889
+ name: string;
1890
+ /** @pattern ^A[A-Z0-9]{1,62}$ */
1891
+ appId: string;
1892
+ /**
1893
+ * @minLength 1
1894
+ * @maxLength 128
1895
+ */
1896
+ clientId: string;
1897
+ /**
1898
+ * @minLength 1
1899
+ * @maxLength 8192
1900
+ */
1901
+ clientSecret: string;
1902
+ /**
1903
+ * @minLength 1
1904
+ * @maxLength 8192
1905
+ */
1906
+ signingSecret: string;
1907
+ }
1908
+ interface CreateHostedOrgTeamsApplicationRequest {
1909
+ agentUuid: string;
1910
+ tenantId: string;
1911
+ phiApproved?: boolean;
1912
+ }
1913
+ interface HostedTeamsSetupAvailability {
1914
+ available: boolean;
1915
+ }
1916
+ interface OrgConnectionAgentBindingResponse {
1917
+ agentUuid: string;
1918
+ agentName: string;
1919
+ sourceUuid: string;
1920
+ status: string;
1921
+ }
1922
+ interface OrgConnectionInstallationResponse {
1923
+ installationUuid: string;
1924
+ name: string;
1925
+ tenantId: string;
1926
+ applicationId: string;
1927
+ status: string;
1928
+ phiApproved: boolean;
1929
+ bindings?: OrgConnectionAgentBindingResponse[];
1930
+ }
1931
+ interface OrgConnectionInventoryBot {
1932
+ uuid: string;
1933
+ name: string;
1934
+ }
1935
+ /**
1936
+ * What the caller may do with one saved provider installation.
1937
+ */
1938
+ interface OrgConnectionInventoryCapabilities {
1939
+ assign: boolean;
1940
+ release: boolean;
1941
+ switch: boolean;
1942
+ }
1943
+ interface OrgConnectionInventoryItem {
1944
+ sourceUuid: string;
1945
+ installationUuid: string;
1946
+ provider: 'teams';
1947
+ tenantId: string;
1948
+ applicationId: string;
1949
+ status: string;
1950
+ available: boolean;
1951
+ currentBot: OrgConnectionInventoryBot;
1952
+ capabilities: OrgConnectionInventoryCapabilities;
1953
+ releasePreview?: OrgConnectionInventoryOperation | null;
1954
+ switchPreview?: OrgConnectionInventoryOperation | null;
1955
+ }
1956
+ interface OrgConnectionInventoryOperation {
1957
+ method: OrgConnectionInventoryOperationMethod;
1958
+ path: string;
1959
+ }
1960
+ type OrgConnectionInventoryOperationMethod = typeof OrgConnectionInventoryOperationMethod[keyof typeof OrgConnectionInventoryOperationMethod];
1961
+ declare const OrgConnectionInventoryOperationMethod: {
1962
+ readonly POST: "POST";
1963
+ readonly DELETE: "DELETE";
1964
+ };
1965
+ interface OrgConnectionInventoryResponse {
1966
+ items: OrgConnectionInventoryItem[];
1967
+ nextAfter?: string | null;
1968
+ }
1969
+ interface OrgConnectionResponse {
1970
+ id: string;
1971
+ provider: OrgConnectionResponseProvider;
1972
+ name: string;
1973
+ agentUuid?: string | null;
1974
+ agentName?: string | null;
1975
+ credentialKind: OrgConnectionResponseCredentialKind;
1976
+ status: OrgConnectionResponseStatus;
1977
+ connected: boolean;
1978
+ canDownloadTeamsPackage?: boolean;
1979
+ supportsBotSwitch?: boolean;
1980
+ revision: number;
1981
+ appId?: string | null;
1982
+ clientId?: string | null;
1983
+ webhookUrl?: string | null;
1984
+ interactivityUrl?: string | null;
1985
+ redirectUri?: string | null;
1986
+ allowedActions?: OrgConnectionResponseAllowedActionsItem[];
1987
+ installations?: OrgConnectionInstallationResponse[];
1988
+ createdAt: string;
1989
+ }
1990
+ type OrgConnectionResponseAllowedActionsItem = typeof OrgConnectionResponseAllowedActionsItem[keyof typeof OrgConnectionResponseAllowedActionsItem];
1991
+ declare const OrgConnectionResponseAllowedActionsItem: {
1992
+ readonly attach: "attach";
1993
+ readonly switch: "switch";
1994
+ readonly release: "release";
1995
+ readonly disconnect: "disconnect";
1996
+ };
1997
+ type OrgConnectionResponseCredentialKind = typeof OrgConnectionResponseCredentialKind[keyof typeof OrgConnectionResponseCredentialKind];
1998
+ declare const OrgConnectionResponseCredentialKind: {
1999
+ readonly platform: "platform";
2000
+ readonly custom: "custom";
2001
+ };
2002
+ type OrgConnectionResponseProvider = typeof OrgConnectionResponseProvider[keyof typeof OrgConnectionResponseProvider];
2003
+ declare const OrgConnectionResponseProvider: {
2004
+ readonly slack: "slack";
2005
+ readonly teams: "teams";
2006
+ readonly discord: "discord";
2007
+ };
2008
+ type OrgConnectionResponseStatus = typeof OrgConnectionResponseStatus[keyof typeof OrgConnectionResponseStatus];
2009
+ declare const OrgConnectionResponseStatus: {
2010
+ readonly active: "active";
2011
+ readonly revoked: "revoked";
2012
+ };
2013
+ interface OrgConnectionsResponse {
2014
+ items: OrgConnectionResponse[];
2015
+ nextAfter?: string | null;
2016
+ }
2017
+ interface UpdateOrgTeamsApplicationRequest {
2018
+ /** @minimum 1 */
2019
+ expectedRevision: number;
2020
+ /**
2021
+ * @minLength 1
2022
+ * @maxLength 8192
2023
+ */
2024
+ clientSecret: string;
2025
+ }
2026
+
1752
2027
  /**
1753
2028
  * App context types - shared between client and server
1754
2029
  *
@@ -1914,6 +2189,199 @@ interface AppContext {
1914
2189
  */
1915
2190
  declare function formatAppContextAsMarkdown(context: AppContext | undefined): string;
1916
2191
 
2192
+ type OpenAITurnDetectionType = 'semantic_vad' | 'server_vad';
2193
+ type OpenAISemanticVADEagerness = 'low' | 'medium' | 'high' | 'auto';
2194
+ interface OpenAISemanticVADTurnDetection {
2195
+ type?: 'semantic_vad';
2196
+ eagerness?: OpenAISemanticVADEagerness | null;
2197
+ create_response?: boolean | null;
2198
+ interrupt_response?: boolean | null;
2199
+ }
2200
+ interface OpenAIServerVADTurnDetection {
2201
+ type?: 'server_vad';
2202
+ threshold?: number | null;
2203
+ prefix_padding_ms?: number | null;
2204
+ silence_duration_ms?: number | null;
2205
+ create_response?: boolean | null;
2206
+ interrupt_response?: boolean | null;
2207
+ }
2208
+ type OpenAITurnDetection = OpenAISemanticVADTurnDetection | OpenAIServerVADTurnDetection;
2209
+ /**
2210
+ * xAI's server-VAD block: OpenAI's fields plus `idle_timeout_ms`, which xAI
2211
+ * documents and OpenAI has no equivalent for. Mirrors
2212
+ * `lib/voice/realtime_config.py:XAIServerVADTurnDetection`.
2213
+ *
2214
+ * A configured `turnDetection` REPLACES xAI's default block wholesale rather
2215
+ * than merging with it, so setting `idle_timeout_ms` alone also drops the
2216
+ * phone-tuned threshold and prefix padding back to schema defaults.
2217
+ */
2218
+ interface XAIServerVADTurnDetection extends OpenAIServerVADTurnDetection {
2219
+ /**
2220
+ * Silence (ms) before xAI speaks again unprompted. Unset means
2221
+ * re-engagement is off; there is deliberately no platform default. xAI
2222
+ * clamps the value up to its own floor, so read back the echoed session
2223
+ * when the exact wait matters.
2224
+ */
2225
+ idle_timeout_ms?: number | null;
2226
+ }
2227
+ type ThinkingSound = 'none' | 'typing' | 'strumming' | 'speech';
2228
+ type InterruptionSound = 'none' | 'clav' | 'bells' | 'organ' | 'guzheng';
2229
+ /** Default filler phrases suggested when the user first enables "speech" mode. */
2230
+ declare const DEFAULT_THINKING_SPEECH_PHRASES: readonly string[];
2231
+ type TTSModel = 'native' | 'xai:tts:v1' | 'elevenlabs:tts:eleven_turbo_v2' | 'elevenlabs:tts:eleven_turbo_v2_5' | 'elevenlabs:tts:eleven_multilingual_v2' | 'elevenlabs:tts:eleven_flash_v2_5' | 'elevenlabs:tts:eleven_v4_turbo' | 'openai:tts:tts-1' | 'openai:tts:tts-1-hd' | 'openai:tts:gpt-4o-mini-tts' | 'aws:tts:polly-generative' | 'aws:tts:polly-neural' | 'google:tts:chirp';
2232
+ /** Extract the provider from a TTSModel ID (e.g. "xai:tts:v1" -> "xai"). */
2233
+ declare function getTTSProvider(ttsModel: string | null | undefined): string | null;
2234
+ /**
2235
+ * Base configuration for all realtime models.
2236
+ * Contains common fields that apply to all realtime model providers.
2237
+ */
2238
+ interface BaseRealtimeModelConfig {
2239
+ /** Sound to play while the agent is processing tool calls. */
2240
+ thinkingSound?: ThinkingSound | null;
2241
+ /** Volume level for the thinking sound (0-100). 0 means muted. Missing or null means full volume (100). */
2242
+ thinkingSoundVolume?: number | null;
2243
+ /** Initial delay in milliseconds before playing thinking sound. Prevents needless interruption on short tool calls. Default: 500ms. */
2244
+ thinkingSoundInitialDelay?: number | null;
2245
+ /** When `thinkingSound` is 'speech', one of these phrases is spoken while the agent runs a tool. Phrases rotate round-robin per session. */
2246
+ thinkingSpeechPhrases?: string[] | null;
2247
+ /** Sound to play when user stops speaking after interrupting the assistant. Provides immediate auditory feedback that input was received. Default: none. */
2248
+ interruptionSound?: InterruptionSound | null;
2249
+ /** Volume level for the interruption sound (0-100). 0 means muted. Missing or null means full volume (100). */
2250
+ interruptionSoundVolume?: number | null;
2251
+ /** TTS model ID in provider:tts:model format (e.g. 'xai:tts:v1'), or 'native'. */
2252
+ ttsModel?: TTSModel | null;
2253
+ /** Canonical voice identifier (e.g., xai:voice:lux) that selects the specific agent voice. */
2254
+ voiceModel?: string | null;
2255
+ /**
2256
+ * Settings belonging to the voice architecture that is NOT currently
2257
+ * selected, parked so switching between the composable stack and a native
2258
+ * speech-to-speech model is lossless and reversible.
2259
+ *
2260
+ * Declared on the base because the native schemas set `extra="forbid"`
2261
+ * server-side: an undeclared key would be rejected on save. Written and
2262
+ * read only by the switch itself (`reconcile_realtime_model_config` on the
2263
+ * server, `parkComposableConfig` / `restoreComposableConfig` in the
2264
+ * editor). Nothing at call time reads it — it is a holding area, never
2265
+ * live configuration.
2266
+ */
2267
+ inactiveConfig?: Record<string, unknown> | null;
2268
+ }
2269
+ /**
2270
+ * Native realtime providers always use the model's built-in audio. The
2271
+ * backend Pydantic schemas now enforce `ttsModel: "native"` and reject
2272
+ * external `sttModel`. Mirroring that contract on the client surface
2273
+ * keeps the editor in sync — see `useVoiceConfig.buildSubmitConfig`.
2274
+ */
2275
+ interface OpenAIRealtimeModelConfig extends BaseRealtimeModelConfig {
2276
+ ttsModel?: 'native' | null;
2277
+ turnDetection?: OpenAITurnDetection | null;
2278
+ }
2279
+ interface CustomRealtimeModelConfig extends BaseRealtimeModelConfig {
2280
+ sttModel?: string | null;
2281
+ sttConfig?: Record<string, unknown> | null;
2282
+ inferenceModel: string;
2283
+ inferenceModelConfig?: ChatModelConfig | null;
2284
+ }
2285
+ /**
2286
+ * xAI Voice Agent realtime config. Only `server_vad` is supported, so
2287
+ * the server-side schema rejects `semantic_vad`. Mirrors
2288
+ * `lib/voice/realtime_config.py:XAIRealtimeModelConfig`.
2289
+ */
2290
+ interface XAIRealtimeModelConfig extends BaseRealtimeModelConfig {
2291
+ ttsModel?: 'native' | null;
2292
+ turnDetection?: XAIServerVADTurnDetection | null;
2293
+ keyterms?: XAIRealtimeModelConfig$1['keyterms'];
2294
+ languageHint?: XAIRealtimeModelConfig$1['languageHint'];
2295
+ reasoningEffort?: XAIRealtimeModelConfig$1['reasoningEffort'];
2296
+ }
2297
+ /**
2298
+ * xAI Grok Voice background reasoning ("high" | "none"). Narrower than the
2299
+ * chat-model `XAIReasoningEffort`.
2300
+ */
2301
+ type XAIRealtimeReasoningEffort = NonNullable<XAIRealtimeModelConfig$1['reasoningEffort']>;
2302
+ type RealtimeModelConfig = OpenAIRealtimeModelConfig | CustomRealtimeModelConfig | XAIRealtimeModelConfig;
2303
+ type GeminiThinkingLevel = 'minimal' | 'low' | 'medium' | 'high';
2304
+ /**
2305
+ * OpenAI GPT-5 reasoning effort. The ACCEPTED SUBSET IS MODEL-DEPENDENT — sending
2306
+ * an out-of-set value is a hard 400 at the API. Mirror of the per-family vocab in
2307
+ * lib/ai/chat_model_config.py (see getOpenAIReasoningEfforts):
2308
+ * gpt-5 (5.0): minimal / low / medium / high
2309
+ * gpt-5.1: none / low / medium / high
2310
+ * gpt-5.4: none / low / medium / high / xhigh
2311
+ * gpt-6.1-sol: low / medium / high / xhigh
2312
+ * This union is the superset; the UI filters it down per selected model.
2313
+ */
2314
+ type OpenAIReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
2315
+ /**
2316
+ * xAI (Grok) reasoning levels. Note "none" disables reasoning entirely
2317
+ * (used by Grok 4.3 to switch into non-reasoning mode). Grok 4.6 and 4.7
2318
+ * accept "xhigh" but not "none". xAI does NOT accept OpenAI's "minimal".
2319
+ * https://docs.x.ai/developers/model-capabilities/text/reasoning#effort-levels
2320
+ */
2321
+ type XAIReasoningEffort = 'none' | 'low' | 'medium' | 'high' | 'xhigh';
2322
+ /**
2323
+ * Claude 5.5 adaptive-thinking effort. These models take effort as their only
2324
+ * thinking control — they reject `thinkingEnabled` / `thinkingBudgetTokens`.
2325
+ * Mirror of `ClaudeChatConfig.reasoningEffort` in lib/ai/chat_model_config.py.
2326
+ */
2327
+ type ClaudeReasoningEffort = 'low' | 'medium' | 'high' | 'xhigh' | 'max';
2328
+ /**
2329
+ * Base configuration for all chat models.
2330
+ * Can be extended for provider-specific options.
2331
+ */
2332
+ interface BaseChatModelConfig {
2333
+ }
2334
+ interface GeminiChatModelConfig extends BaseChatModelConfig {
2335
+ thinkingLevel?: GeminiThinkingLevel | null;
2336
+ includeThoughts?: boolean | null;
2337
+ }
2338
+ interface ClaudeChatModelConfig extends BaseChatModelConfig {
2339
+ thinkingEnabled?: boolean | null;
2340
+ thinkingBudgetTokens?: number | null;
2341
+ /** Claude 5.5 only; Claude Haiku 4.5 uses thinkingEnabled instead. */
2342
+ reasoningEffort?: ClaudeReasoningEffort | null;
2343
+ }
2344
+ interface OpenAIChatModelConfig extends BaseChatModelConfig {
2345
+ provider: 'openai';
2346
+ reasoningEffort?: OpenAIReasoningEffort | null;
2347
+ }
2348
+ interface XAIChatModelConfig extends BaseChatModelConfig {
2349
+ provider: 'xai';
2350
+ reasoningEffort?: XAIReasoningEffort | null;
2351
+ }
2352
+ type ChatModelConfig = GeminiChatModelConfig | ClaudeChatModelConfig | OpenAIChatModelConfig | XAIChatModelConfig;
2353
+ /**
2354
+ * Supported TTS preview providers.
2355
+ * These are the voice providers that support TTS preview in the UI.
2356
+ */
2357
+ declare const TTS_PREVIEW_PROVIDERS: readonly ["openai", "elevenlabs", "google", "aws", "deepgram", "xai"];
2358
+ type TTSPreviewProvider = (typeof TTS_PREVIEW_PROVIDERS)[number];
2359
+ /**
2360
+ * Get the canonical voice model ID from a realtime model config.
2361
+ *
2362
+ * Voice model IDs follow the format: `{provider}:voice:{voiceName}`
2363
+ * Examples:
2364
+ * - `openai:voice:ash`
2365
+ * - `xai:voice:lux`
2366
+ * - `elevenlabs:voice:seamus`
2367
+ * - `google:voice:puck`
2368
+ *
2369
+ * @param entity - An object with optional realtimeModelConfig
2370
+ * @returns The canonical voice model ID, or null if no voice is configured
2371
+ */
2372
+ declare function getVoiceModelId(entity: {
2373
+ realtimeModelConfig?: RealtimeModelConfig | null;
2374
+ }): string | null;
2375
+ /**
2376
+ * Check if an entity's voice can be previewed.
2377
+ *
2378
+ * @param entity - An object with optional realtimeModelConfig
2379
+ * @returns True if the entity's voice supports TTS preview
2380
+ */
2381
+ declare function canPreviewVoice(entity: {
2382
+ realtimeModelConfig?: RealtimeModelConfig | null;
2383
+ }): boolean;
2384
+
1917
2385
  /**
1918
2386
  * Default AI model constants shared across the frontend.
1919
2387
  *
@@ -2688,52 +3156,97 @@ interface AgentChannelTriggersResponse {
2688
3156
  * (group map from emit_openapi.py). Do not edit manually.
2689
3157
  * Group: agent_slack
2690
3158
  */
2691
- interface ConnectSlackRequest {
2692
- chatId?: number | null;
2693
- slackTeamId?: string | null;
2694
- applicationUuid?: string | null;
2695
- phiApproved?: boolean;
2696
- workspaceUuid?: string | null;
2697
- replaceConnectionUuid?: string | null;
2698
- returnTo?: string | null;
3159
+ interface ApproveBotSlackParticipantRequest {
3160
+ /** @minimum 1 */
3161
+ expectedRevision: number;
3162
+ approved: boolean;
2699
3163
  }
2700
- interface OrgAgentSlackConnectionResponse {
3164
+ interface BotSlackConnectionResponse {
2701
3165
  connectionUuid: string;
2702
3166
  teamId: string;
2703
3167
  appId: string;
2704
3168
  chatId: number;
2705
- status: OrgAgentSlackConnectionResponseStatus;
3169
+ status: BotSlackConnectionResponseStatus;
2706
3170
  phiApproved: boolean;
2707
3171
  workspaceUuid: string | null;
2708
3172
  }
2709
- type OrgAgentSlackConnectionResponseStatus = typeof OrgAgentSlackConnectionResponseStatus[keyof typeof OrgAgentSlackConnectionResponseStatus];
2710
- declare const OrgAgentSlackConnectionResponseStatus: {
3173
+ type BotSlackConnectionResponseStatus = typeof BotSlackConnectionResponseStatus[keyof typeof BotSlackConnectionResponseStatus];
3174
+ declare const BotSlackConnectionResponseStatus: {
2711
3175
  readonly active: "active";
2712
3176
  readonly revoked: "revoked";
2713
3177
  };
2714
- interface OrgAgentSlackConnectionsResponse {
2715
- items: OrgAgentSlackConnectionResponse[];
3178
+ interface BotSlackConnectionsResponse {
3179
+ items: BotSlackConnectionResponse[];
2716
3180
  }
2717
- declare const OrgAgentSlackDisconnectResponseValue: {
3181
+ declare const BotSlackDisconnectResponseValue: {
2718
3182
  readonly status: "revoked";
2719
3183
  };
2720
- type OrgAgentSlackDisconnectResponse = typeof OrgAgentSlackDisconnectResponseValue;
3184
+ type BotSlackDisconnectResponse = typeof BotSlackDisconnectResponseValue;
3185
+ interface BotSlackParticipantResponse {
3186
+ connectionUuid: string;
3187
+ orgMemberId: number;
3188
+ displayName: string;
3189
+ identityKind: BotSlackParticipantResponseIdentityKind;
3190
+ revision: number;
3191
+ phiApproved: boolean;
3192
+ status: BotSlackParticipantResponseStatus;
3193
+ canApprove: boolean;
3194
+ }
3195
+ type BotSlackParticipantResponseIdentityKind = typeof BotSlackParticipantResponseIdentityKind[keyof typeof BotSlackParticipantResponseIdentityKind];
3196
+ declare const BotSlackParticipantResponseIdentityKind: {
3197
+ readonly account: "account";
3198
+ readonly org_account: "org_account";
3199
+ };
3200
+ type BotSlackParticipantResponseStatus = typeof BotSlackParticipantResponseStatus[keyof typeof BotSlackParticipantResponseStatus];
3201
+ declare const BotSlackParticipantResponseStatus: {
3202
+ readonly active: "active";
3203
+ readonly revoked: "revoked";
3204
+ };
3205
+ interface BotSlackParticipantsResponse {
3206
+ items: BotSlackParticipantResponse[];
3207
+ nextAfter: string | null;
3208
+ }
3209
+ interface ConnectSlackRequest {
3210
+ chatId?: number | null;
3211
+ slackTeamId?: string | null;
3212
+ applicationUuid?: string | null;
3213
+ phiApproved?: boolean;
3214
+ workspaceUuid?: string | null;
3215
+ replaceConnectionUuid?: string | null;
3216
+ returnTo?: string | null;
3217
+ }
2721
3218
  interface SlackAuthorizationResponse {
2722
3219
  authorizationUrl: string;
2723
3220
  }
3221
+ interface SlackSwitchBotOption {
3222
+ id: string;
3223
+ name: string;
3224
+ }
2724
3225
  interface SlackSwitchConfirmRequest {
2725
3226
  [key: string]: unknown;
2726
3227
  }
2727
3228
  interface SlackSwitchConfirmedResponse {
2728
3229
  redirectUrl: string;
2729
3230
  }
3231
+ interface SlackSwitchDestinationRequest {
3232
+ botId: string;
3233
+ }
2730
3234
  interface SlackSwitchPreviewResponse {
2731
3235
  chatId: number;
2732
3236
  workspaceName: string;
2733
3237
  targetBotName: string;
2734
3238
  currentBotName: string | null;
3239
+ currentBotOrganizationName: string | null;
2735
3240
  canConfirm: boolean;
2736
- }
3241
+ confirmationBlockedBy: SlackSwitchPreviewResponseConfirmationBlockedByItem[];
3242
+ hasBotSpecificSetup: boolean;
3243
+ otherBots: SlackSwitchBotOption[];
3244
+ }
3245
+ type SlackSwitchPreviewResponseConfirmationBlockedByItem = typeof SlackSwitchPreviewResponseConfirmationBlockedByItem[keyof typeof SlackSwitchPreviewResponseConfirmationBlockedByItem];
3246
+ declare const SlackSwitchPreviewResponseConfirmationBlockedByItem: {
3247
+ readonly destination: "destination";
3248
+ readonly source: "source";
3249
+ };
2737
3250
 
2738
3251
  /**
2739
3252
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
@@ -2783,6 +3296,7 @@ interface AgentRoutineOccurrenceResponse {
2783
3296
  status: AgentRoutineOccurrenceResponseStatus;
2784
3297
  reason: string | null;
2785
3298
  jobUuid: string | null;
3299
+ jobStatus?: string | null;
2786
3300
  createdAt: string;
2787
3301
  }
2788
3302
  type AgentRoutineOccurrenceResponseStatus = typeof AgentRoutineOccurrenceResponseStatus[keyof typeof AgentRoutineOccurrenceResponseStatus];
@@ -2805,6 +3319,7 @@ interface AgentRoutineResponse {
2805
3319
  mode: AgentRoutineResponseMode;
2806
3320
  isTest: boolean;
2807
3321
  nextDueAt: string | null;
3322
+ latestOccurrence?: AgentRoutineOccurrenceResponse | null;
2808
3323
  createdAt: string;
2809
3324
  updatedAt: string;
2810
3325
  }
@@ -2855,23 +3370,13 @@ interface AgentRoutineSpec {
2855
3370
  audienceOrgMemberIds: number[];
2856
3371
  schedule?: AgentRoutineSchedule;
2857
3372
  watch?: AgentActivityWatch | null;
2858
- activeHours?: AgentTimeWindow | null;
3373
+ activeHours?: BotTimeWindow | null;
2859
3374
  /**
2860
3375
  * @minimum 60
2861
3376
  * @maximum 86400
2862
3377
  */
2863
3378
  minimumIntervalSeconds?: number;
2864
3379
  silentNoChange?: boolean;
2865
- /**
2866
- * @minimum 1
2867
- * @maximum 1000
2868
- */
2869
- maxActions?: number;
2870
- /**
2871
- * @minimum 1
2872
- * @maximum 200
2873
- */
2874
- maxSteps?: number;
2875
3380
  /**
2876
3381
  * @minimum 1
2877
3382
  * @maximum 1000000
@@ -2899,6 +3404,11 @@ interface RunAgentRoutine {
2899
3404
  expectedRevision: number;
2900
3405
  requestId: string;
2901
3406
  }
3407
+ interface SetPersonalRoutinePause {
3408
+ /** @minimum 1 */
3409
+ expectedRevision: number;
3410
+ paused: boolean;
3411
+ }
2902
3412
  interface UpdateAgentRoutine {
2903
3413
  /** @minimum 1 */
2904
3414
  expectedRevision: number;
@@ -2912,11 +3422,35 @@ declare const UpdateAgentRoutineMode: {
2912
3422
  readonly auto: "auto";
2913
3423
  };
2914
3424
 
3425
+ /**
3426
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
3427
+ * (group map from emit_openapi.py). Do not edit manually.
3428
+ * Group: standing_personal_routine_source
3429
+ */
3430
+ interface StandingPersonalRoutineSource {
3431
+ provider: StandingPersonalRoutineSourceProvider;
3432
+ /** @exclusiveMinimum 0 */
3433
+ chatId: number;
3434
+ chatUuid: string;
3435
+ /** @exclusiveMinimum 0 */
3436
+ requestMessageId: number;
3437
+ threadRootId?: number | null;
3438
+ speakerLinkUuid?: string | null;
3439
+ audienceFingerprint?: string | null;
3440
+ }
3441
+ type StandingPersonalRoutineSourceProvider = typeof StandingPersonalRoutineSourceProvider[keyof typeof StandingPersonalRoutineSourceProvider];
3442
+ declare const StandingPersonalRoutineSourceProvider: {
3443
+ readonly slack: "slack";
3444
+ readonly teams: "teams";
3445
+ readonly email: "email";
3446
+ };
3447
+
2915
3448
  /**
2916
3449
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2917
3450
  * (group map from emit_openapi.py). Do not edit manually.
2918
3451
  * Group: agent_standing_authorization
2919
3452
  */
3453
+
2920
3454
  interface StandingAuthorizationResponse {
2921
3455
  uuid: string;
2922
3456
  agentUuid: string;
@@ -2944,9 +3478,10 @@ interface StandingAuthorizationSpec {
2944
3478
  * @minItems 1
2945
3479
  * @maxItems 64
2946
3480
  */
2947
- actions: StandingAuthorizationSpecActionsItem[];
3481
+ actions: typeof StandingAuthorizationSpecActionsItem[keyof typeof StandingAuthorizationSpecActionsItem][];
2948
3482
  /** @maxItems 32 */
2949
3483
  browserSeedUrls?: string[];
3484
+ personal?: StandingPersonalRoutineGrant | null;
2950
3485
  /** @maxItems 128 */
2951
3486
  destinations?: StandingDestination[];
2952
3487
  /** @maxItems 64 */
@@ -2954,16 +3489,6 @@ interface StandingAuthorizationSpec {
2954
3489
  /** @maxItems 64 */
2955
3490
  audienceOrgMemberIds?: number[];
2956
3491
  expiresAt: string;
2957
- /**
2958
- * @minimum 1
2959
- * @maximum 1000
2960
- */
2961
- maxActions?: number;
2962
- /**
2963
- * @minimum 1
2964
- * @maximum 200
2965
- */
2966
- maxSteps?: number;
2967
3492
  /**
2968
3493
  * @minimum 1
2969
3494
  * @maximum 1000000
@@ -2971,19 +3496,8 @@ interface StandingAuthorizationSpec {
2971
3496
  maxCredits?: number;
2972
3497
  isTest?: boolean;
2973
3498
  }
2974
- type StandingAuthorizationSpecActionsItem = typeof StandingAuthorizationSpecActionsItem[keyof typeof StandingAuthorizationSpecActionsItem];
2975
3499
  declare const StandingAuthorizationSpecActionsItem: {
2976
- readonly read_workspace_record: "read_workspace_record";
2977
- readonly read_workspace_file: "read_workspace_file";
2978
3500
  readonly read_workspace_workflow: "read_workspace_workflow";
2979
- readonly list_workspace_resources: "list_workspace_resources";
2980
- readonly read_workspace_enrollment_rate: "read_workspace_enrollment_rate";
2981
- readonly write_workspace_record: "write_workspace_record";
2982
- readonly write_workspace_file: "write_workspace_file";
2983
- readonly read_record_delivery_status: "read_record_delivery_status";
2984
- readonly list_agent_artifacts: "list_agent_artifacts";
2985
- readonly read_agent_artifact: "read_agent_artifact";
2986
- readonly write_agent_artifact: "write_agent_artifact";
2987
3501
  readonly delegate_workspace_job: "delegate_workspace_job";
2988
3502
  readonly send_email: "send_email";
2989
3503
  readonly send_sms: "send_sms";
@@ -2998,6 +3512,20 @@ declare const StandingAuthorizationSpecActionsItem: {
2998
3512
  readonly browser_type: "browser_type";
2999
3513
  readonly browser_key: "browser_key";
3000
3514
  readonly browser_takeover: "browser_takeover";
3515
+ readonly call_me: "call_me";
3516
+ readonly email_requester: "email_requester";
3517
+ readonly list_agent_artifacts: "list_agent_artifacts";
3518
+ readonly read_agent_artifact: "read_agent_artifact";
3519
+ readonly write_agent_artifact: "write_agent_artifact";
3520
+ readonly read_workspace_record: "read_workspace_record";
3521
+ readonly read_workspace_file: "read_workspace_file";
3522
+ readonly list_workspace_resources: "list_workspace_resources";
3523
+ readonly read_record_delivery_status: "read_record_delivery_status";
3524
+ readonly read_workspace_enrollment_rate: "read_workspace_enrollment_rate";
3525
+ readonly write_workspace_record: "write_workspace_record";
3526
+ readonly write_workspace_file: "write_workspace_file";
3527
+ readonly post_chat_result: "post_chat_result";
3528
+ readonly post_routine_update: "post_routine_update";
3001
3529
  };
3002
3530
  type StandingAuthorizationSpecDataUseMode = typeof StandingAuthorizationSpecDataUseMode[keyof typeof StandingAuthorizationSpecDataUseMode];
3003
3531
  declare const StandingAuthorizationSpecDataUseMode: {
@@ -3043,6 +3571,37 @@ declare const StandingDestinationKind: {
3043
3571
  readonly phone: "phone";
3044
3572
  readonly fax: "fax";
3045
3573
  };
3574
+ interface StandingPersonalCallGrant {
3575
+ /**
3576
+ * @minLength 1
3577
+ * @maxLength 1000
3578
+ */
3579
+ topic: string;
3580
+ phoneVerifiedAt: string;
3581
+ /** @pattern ^[0-9a-f]{64}$ */
3582
+ phoneProof: string;
3583
+ providerPhoneUuid: string;
3584
+ botAssignmentUuid: string;
3585
+ }
3586
+ interface StandingPersonalEmailGrant {
3587
+ emailVerifiedAt: string;
3588
+ /** @pattern ^[0-9a-f]{64}$ */
3589
+ emailProof: string;
3590
+ }
3591
+ interface StandingPersonalRoutineGrant {
3592
+ /** @exclusiveMinimum 0 */
3593
+ orgMemberId: number;
3594
+ /** @exclusiveMinimum 0 */
3595
+ accountId: number;
3596
+ /** @exclusiveMinimum 0 */
3597
+ chatId: number;
3598
+ chatUuid: string;
3599
+ sourceJobUuid?: string | null;
3600
+ source?: StandingPersonalRoutineSource | null;
3601
+ originEmail?: StandingPersonalEmailGrant | null;
3602
+ call?: StandingPersonalCallGrant | null;
3603
+ email?: StandingPersonalEmailGrant | null;
3604
+ }
3046
3605
  interface StandingResource {
3047
3606
  kind: StandingResourceKind;
3048
3607
  /** @exclusiveMinimum 0 */
@@ -3085,22 +3644,11 @@ interface StandingAudienceOptions {
3085
3644
  }
3086
3645
  interface StandingAuthorizationOptions {
3087
3646
  workspaces: StandingWorkspaceOption[];
3088
- actions: StandingAuthorizationOptionsActionsItem[];
3647
+ actions: typeof StandingAuthorizationOptionsActionsItem[keyof typeof StandingAuthorizationOptionsActionsItem][];
3089
3648
  dataUseModes: StandingAuthorizationOptionsDataUseModesItem[];
3090
3649
  }
3091
- type StandingAuthorizationOptionsActionsItem = typeof StandingAuthorizationOptionsActionsItem[keyof typeof StandingAuthorizationOptionsActionsItem];
3092
3650
  declare const StandingAuthorizationOptionsActionsItem: {
3093
- readonly read_workspace_record: "read_workspace_record";
3094
- readonly read_workspace_file: "read_workspace_file";
3095
3651
  readonly read_workspace_workflow: "read_workspace_workflow";
3096
- readonly list_workspace_resources: "list_workspace_resources";
3097
- readonly read_workspace_enrollment_rate: "read_workspace_enrollment_rate";
3098
- readonly write_workspace_record: "write_workspace_record";
3099
- readonly write_workspace_file: "write_workspace_file";
3100
- readonly read_record_delivery_status: "read_record_delivery_status";
3101
- readonly list_agent_artifacts: "list_agent_artifacts";
3102
- readonly read_agent_artifact: "read_agent_artifact";
3103
- readonly write_agent_artifact: "write_agent_artifact";
3104
3652
  readonly delegate_workspace_job: "delegate_workspace_job";
3105
3653
  readonly send_email: "send_email";
3106
3654
  readonly send_sms: "send_sms";
@@ -3115,6 +3663,20 @@ declare const StandingAuthorizationOptionsActionsItem: {
3115
3663
  readonly browser_type: "browser_type";
3116
3664
  readonly browser_key: "browser_key";
3117
3665
  readonly browser_takeover: "browser_takeover";
3666
+ readonly call_me: "call_me";
3667
+ readonly email_requester: "email_requester";
3668
+ readonly list_agent_artifacts: "list_agent_artifacts";
3669
+ readonly read_agent_artifact: "read_agent_artifact";
3670
+ readonly write_agent_artifact: "write_agent_artifact";
3671
+ readonly read_workspace_record: "read_workspace_record";
3672
+ readonly read_workspace_file: "read_workspace_file";
3673
+ readonly list_workspace_resources: "list_workspace_resources";
3674
+ readonly read_record_delivery_status: "read_record_delivery_status";
3675
+ readonly read_workspace_enrollment_rate: "read_workspace_enrollment_rate";
3676
+ readonly write_workspace_record: "write_workspace_record";
3677
+ readonly write_workspace_file: "write_workspace_file";
3678
+ readonly post_chat_result: "post_chat_result";
3679
+ readonly post_routine_update: "post_routine_update";
3118
3680
  };
3119
3681
  type StandingAuthorizationOptionsDataUseModesItem = typeof StandingAuthorizationOptionsDataUseModesItem[keyof typeof StandingAuthorizationOptionsDataUseModesItem];
3120
3682
  declare const StandingAuthorizationOptionsDataUseModesItem: {
@@ -3199,5 +3761,179 @@ declare const StopStandingJobResponseStatus: {
3199
3761
  readonly cancelled: "cancelled";
3200
3762
  };
3201
3763
 
3202
- export { DEFAULT_CUSTOM_VOICE_MODEL as $, ChannelMessageDirection as K, ChannelMessageSource as L, CreateAgentRoutineMode as R, CreateMemberContactPointRequestContactType as T, CreateMemberContactPointRequestPurpose as U, CreateMemberContactPointRequestSharing as V, DEFAULT_AGENT_CHAT_MODEL as X, DEFAULT_AGENT_REALTIME_MODEL as Y, DEFAULT_AGENT_REALTIME_MODEL_CONFIG as Z, DEFAULT_CHAT_MODEL as _, DEFAULT_VOICE_INFERENCE_MODEL as a0, OrgAgentSlackConnectionResponseStatus as aF, OrgAgentSlackDisconnectResponseValue as aI, PIDS_DISPOSITIONS as aJ, PIDS_SOURCES as aK, PROPOSED_MESSAGE_BODY_MAX_LENGTH as aL, PROPOSED_MESSAGE_SETTLED_TOOL_NAME as aM, PROPOSED_MESSAGE_SETTLEMENT_STATUSES as aN, PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH as aO, PROPOSED_MESSAGE_TOOL_NAMES as aP, MAX_EMAIL_SEND_RECIPIENTS as aq, MEMBER_RELATIONSHIP_KINDS as ar, StandingAuthorizationOptionsActionsItem as bA, StandingAuthorizationOptionsDataUseModesItem as bB, StandingAuthorizationResponseStatus as bD, StandingAuthorizationSpecActionsItem as bF, StandingAuthorizationSpecDataUseMode as bG, StandingAuthorizationSpecScopeKind as bH, StandingCredentialKind as bJ, StandingCredentialReferenceType as bK, StandingDestinationKind as bM, StandingJobOutputOutcome as bP, StandingJobStatusStatus as bR, StandingResourceKind as bT, StandingResourceOptionKind as bV, SCOPES as bg, SCOPE_PRESETS as bh, ScopeCategory as bo, ScopeManager as bp, StopStandingJobResponseStatus as c0, SyncErrorCode as c3, getAllResourceSlugs as cA, getPathDefinition as cB, getResourceMetadata as cC, getRevisionState as cD, isProposedMessageSettlementStatus as cE, parseProposedMessage as cF, pathDraftFromStorage as cG, pathDraftToStorage as cH, ScenarioDependencyAssessmentRefusalCodesItem as cJ, ToolkitState as cb, UpdateAgentRoutineMode as ch, UpdateMemberContactPointRequestContactType as cj, UpdateMemberContactPointRequestPurpose as ck, UpdateMemberContactPointRequestSharing as cl, WIDGET_SLUGS as cs, formatAppContextAsMarkdown as cz, AgentActivityWatchEventTypesItem as l, AgentChannelTriggerResponseStatus as n, AgentRoutineOccurrenceResponseStatus as r, AgentRoutineResponseMode as u, AgentRoutineScheduleMode as w, AgentRoutineSpecScopeKind as y };
3203
- export type { AIModelUsageResponse as A, AnalyticsQuery as B, AppContext as C, BillingStatistics as D, BundleScenarioPreflightResponse as E, CallEndSection as F, CallEndStatusEntry as G, ChannelErrorBreakdown as H, ChannelFailures as I, ChannelMessageResponse as J, ChannelMessagesResponse as M, ChatContext as N, CommunicationDetailsResponse as O, ConnectSlackRequest as P, CreateAgentRoutine as Q, CreateMemberContactPointRequest as S, CurrentPlanInfo as W, AIUsageDetailsResponse as a, ProvisionPlanRequest as a$, DailyPhoneRowResponse as a1, DailySMSRowResponse as a2, DashboardMetrics as a3, DataRecordContext as a4, DataRecordImportOutcomes as a5, DeviceCacheFileEntry as a6, DeviceCacheManifestResponse as a7, EfficiencyMetricsResponse as a8, EmailCountsResponse as a9, MetricDataPoint as aA, MetricSection as aB, MetricSummary as aC, MetricValue as aD, OrgAgentSlackConnectionResponse as aE, OrgAgentSlackConnectionsResponse as aG, OrgAgentSlackDisconnectResponse as aH, PageContext as aQ, PathDraft as aR, PerformanceMetrics as aS, PhoneCallPhoneNumberUsageResponse as aT, PhoneCallUsageResponse as aU, PhoneCommunicationDetailsResponse as aV, PhoneNumberUsage as aW, PidsDisposition as aX, PidsSource as aY, ProductOverageConfigResponse as aZ, ProposedMessageSettlementStatus as a_, EmailUsageResponse as aa, EngineTimeSeries as ab, ErrorCodeBucket as ac, EventRuleMetrics as ad, ExportStatistics as ae, FeatureSyncStatus as af, MetricSummary$1 as ag, VoiceMetricsResponse$1 as ah, HealthCheckStatistics as ai, HealthDetailRequest as aj, HealthMetricsRequest as ak, HealthMetricsResponse as al, HealthSummary as am, ImportStatistics as an, JourneyContext as ao, JourneySelectionContext as ap, MemberContactPointResponse as as, MemberContactPointConfirmationResponse as at, MemberContactPointListResponse as au, MemberImportColumnResponse as av, MemberNotificationPreferences as aw, MemberNotifyActionParams as ax, MemberNotifyRecipientMode as ay, MemberUsageReport as az, AcquisitionFunnelChannel as b, StopStandingJobResponse as b$, ProvisionPlanResponse as b0, RawDataRecordImportResponse as b1, ReconcileAthenaBookingRefusalResponse as b2, ReconcileAthenaBookingRequest as b3, ReconcileAthenaBookingResponse as b4, RequestsSection as b5, RequestsStatusEntry as b6, ResourceMetadata as b7, ResourceOverageResponse as b8, ResourceUsageResponse as b9, StandingAuthorizationResponse as bC, StandingAuthorizationSpec as bE, StandingCredential as bI, StandingDestination as bL, StandingJobOutput as bN, StandingJobOutputMessage as bO, StandingJobStatus as bQ, StandingResource as bS, StandingResourceOption as bU, StandingResourceOptions as bW, StandingSourceBinding as bX, StandingWorkspaceCeiling as bY, StandingWorkspaceOption as bZ, StatisticsSummary as b_, RetireMemberContactPointRequest as ba, RevisionState as bb, RevisionStateRevision as bc, RevisionStateWorkflow as bd, RoutineRunMetrics as be, RunAgentRoutine as bf, SMSCommunicationDetailsResponse as bi, SMSMessageUsageResponse as bj, SMSPhoneNumberUsageResponse as bk, SayMessageTranslation as bl, SayTaskConfiguration as bm, ScenarioDependencyAssessment as bn, ScopeName as bq, SiteContext as br, SkippedWorkspace as bs, SlackAuthorizationResponse as bt, SlackSwitchConfirmRequest as bu, SlackSwitchConfirmedResponse as bv, SlackSwitchPreviewResponse as bw, StandingAudienceOption as bx, StandingAudienceOptions as by, StandingAuthorizationOptions as bz, AcquisitionFunnelRecentSignup as c, StoredPath as c1, StripeSubscriptionCreate as c2, SystemStatistics as c4, TaskContext as c5, TaskCountResponse as c6, TimeSeriesData as c7, TimeSeriesDataPoint as c8, ToolParameter as c9, DirectSubscriptionCreate as cI, ScopeDefinition as cK, ToolkitContext as ca, TopOffender as cc, TopResourceOverageResponse as cd, TtsReconnectOutcomeEntry as ce, TtsReconnectSection as cf, UpdateAgentRoutine as cg, UpdateMemberContactPointRequest as ci, UsageProductSummaryResponse as cm, UsageReportResponse as cn, UsageReportRequest as co, UsageStatistics as cp, VoiceMetricsResponse as cq, VoiceMetricsTimeRange as cr, WidgetSlug as ct, WorkflowContext as cu, WorkspaceHealthDetail as cv, WorkspaceHealthResponse as cw, WorkspaceHealthRow as cx, WorkspaceUsageReportResponse as cy, AcquisitionFunnelResponse as d, ActivityDetail as e, ActivityFeedResponse as f, AdminDomainResponse as g, AdminDomainSiteMapping as h, AdminDomainWidgetMapping as i, AdminPidsFindingResponse as j, AgentActivityWatch as k, AgentChannelTriggerResponse as m, AgentChannelTriggersResponse as o, AgentRoutineList as p, AgentRoutineOccurrenceResponse as q, AgentRoutineOccurrences as s, AgentRoutineResponse as t, AgentRoutineSchedule as v, AgentRoutineSpec as x, AnalyticsFilter as z };
3764
+ /**
3765
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
3766
+ * (group map from emit_openapi.py). Do not edit manually.
3767
+ * Group: bot_registry
3768
+ */
3769
+
3770
+ interface CreateBot {
3771
+ /**
3772
+ * @minLength 1
3773
+ * @maxLength 255
3774
+ */
3775
+ name: string;
3776
+ description?: string | null;
3777
+ ownerOrgMemberId?: number | null;
3778
+ configuration?: BotConfiguration;
3779
+ avatarShape?: CreateBotAvatarShape;
3780
+ avatarColor?: CreateBotAvatarColor;
3781
+ visibility?: CreateBotVisibility;
3782
+ }
3783
+ type CreateBotAvatarColor = typeof CreateBotAvatarColor[keyof typeof CreateBotAvatarColor] | null;
3784
+ declare const CreateBotAvatarColor: {
3785
+ readonly lagoon: "lagoon";
3786
+ readonly mango: "mango";
3787
+ readonly iris: "iris";
3788
+ readonly coral: "coral";
3789
+ readonly cobalt: "cobalt";
3790
+ readonly pistachio: "pistachio";
3791
+ readonly orchid: "orchid";
3792
+ readonly copper: "copper";
3793
+ };
3794
+ type CreateBotAvatarShape = typeof CreateBotAvatarShape[keyof typeof CreateBotAvatarShape] | null;
3795
+ declare const CreateBotAvatarShape: {
3796
+ readonly cloud: "cloud";
3797
+ readonly triangle: "triangle";
3798
+ readonly hexagon: "hexagon";
3799
+ readonly circle: "circle";
3800
+ readonly oval: "oval";
3801
+ readonly robot: "robot";
3802
+ readonly woman: "woman";
3803
+ readonly man: "man";
3804
+ };
3805
+ type CreateBotVisibility = typeof CreateBotVisibility[keyof typeof CreateBotVisibility];
3806
+ declare const CreateBotVisibility: {
3807
+ readonly team: "team";
3808
+ readonly personal: "personal";
3809
+ };
3810
+
3811
+ /**
3812
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
3813
+ * (group map from emit_openapi.py). Do not edit manually.
3814
+ * Group: agent_team
3815
+ */
3816
+ interface AgentTeamsAuthorizationResponse {
3817
+ authorizationUrl: string;
3818
+ redirectUri: string;
3819
+ }
3820
+ interface AgentTeamsConnectionResponse {
3821
+ connectionUuid: string;
3822
+ sourceUuid: string;
3823
+ tenantId: string;
3824
+ applicationId: string;
3825
+ chatId: number;
3826
+ status: AgentTeamsConnectionResponseStatus;
3827
+ workspaceUuid: string | null;
3828
+ botChatUrl: string;
3829
+ }
3830
+ type AgentTeamsConnectionResponseStatus = typeof AgentTeamsConnectionResponseStatus[keyof typeof AgentTeamsConnectionResponseStatus];
3831
+ declare const AgentTeamsConnectionResponseStatus: {
3832
+ readonly active: "active";
3833
+ readonly revoked: "revoked";
3834
+ };
3835
+ interface AgentTeamsConnectionsResponse {
3836
+ items: AgentTeamsConnectionResponse[];
3837
+ nextAfter: string | null;
3838
+ }
3839
+ interface AgentTeamsDestinationSwitchConfirmed {
3840
+ sourceUuid: string;
3841
+ previousSourceUuid: string;
3842
+ organizationUuid: string;
3843
+ agentUuid: string;
3844
+ webhookUrl: string | null;
3845
+ status: 'active';
3846
+ revision: number;
3847
+ }
3848
+ /**
3849
+ * The exact destination change a person is asked to confirm.
3850
+ */
3851
+ interface AgentTeamsDestinationSwitchReview {
3852
+ ticket: string | null;
3853
+ unchanged: boolean;
3854
+ current: AgentTeamsDestinationSwitchTarget;
3855
+ proposed: AgentTeamsDestinationSwitchTarget;
3856
+ canConfirm: boolean;
3857
+ phiApprovalCarries: boolean;
3858
+ webhookUrl: string | null;
3859
+ expiresAt: string | null;
3860
+ }
3861
+ interface AgentTeamsDestinationSwitchTarget {
3862
+ organizationUuid: string;
3863
+ organizationName: string;
3864
+ agentUuid: string;
3865
+ agentName: string;
3866
+ }
3867
+ interface AgentTeamsInstallationResponse {
3868
+ sourceUuid: string;
3869
+ tenantId: string;
3870
+ applicationId: string;
3871
+ credentialTenantId: string;
3872
+ webhookUrl: string | null;
3873
+ status: AgentTeamsInstallationResponseStatus;
3874
+ revision: number;
3875
+ phiApproved: boolean;
3876
+ createdAt: string;
3877
+ }
3878
+ type AgentTeamsInstallationResponseStatus = typeof AgentTeamsInstallationResponseStatus[keyof typeof AgentTeamsInstallationResponseStatus];
3879
+ declare const AgentTeamsInstallationResponseStatus: {
3880
+ readonly active: "active";
3881
+ readonly suspended: "suspended";
3882
+ readonly revoked: "revoked";
3883
+ };
3884
+ interface AgentTeamsInstallationsResponse {
3885
+ items: AgentTeamsInstallationResponse[];
3886
+ }
3887
+ interface AgentTeamsParticipantResponse {
3888
+ connectionUuid: string;
3889
+ orgMemberId: number;
3890
+ displayName: string;
3891
+ identityKind: AgentTeamsParticipantResponseIdentityKind;
3892
+ phiEligible: boolean;
3893
+ status: AgentTeamsParticipantResponseStatus;
3894
+ }
3895
+ type AgentTeamsParticipantResponseIdentityKind = typeof AgentTeamsParticipantResponseIdentityKind[keyof typeof AgentTeamsParticipantResponseIdentityKind];
3896
+ declare const AgentTeamsParticipantResponseIdentityKind: {
3897
+ readonly account: "account";
3898
+ readonly org_account: "org_account";
3899
+ };
3900
+ type AgentTeamsParticipantResponseStatus = typeof AgentTeamsParticipantResponseStatus[keyof typeof AgentTeamsParticipantResponseStatus];
3901
+ declare const AgentTeamsParticipantResponseStatus: {
3902
+ readonly active: "active";
3903
+ readonly revoked: "revoked";
3904
+ };
3905
+ interface AgentTeamsParticipantsResponse {
3906
+ items: AgentTeamsParticipantResponse[];
3907
+ nextAfter: string | null;
3908
+ }
3909
+ declare const AgentTeamsRevokedResponseValue: {
3910
+ readonly status: "revoked";
3911
+ };
3912
+ type AgentTeamsRevokedResponse = typeof AgentTeamsRevokedResponseValue;
3913
+ interface ConnectAgentTeamsRequest {
3914
+ sourceUuid: string;
3915
+ chatId?: number | null;
3916
+ workspaceUuid?: string | null;
3917
+ replaceConnectionUuid?: string | null;
3918
+ }
3919
+ interface CreateAgentTeamsDestinationSwitchRequest {
3920
+ organizationUuid: string;
3921
+ agentUuid: string;
3922
+ }
3923
+ interface HostedTeamsAuthorizationResponse {
3924
+ authorizationUrl: string;
3925
+ }
3926
+ interface RegisterAgentTeamsInstallation {
3927
+ tenantId: string;
3928
+ applicationId: string;
3929
+ credentialTenantId: string;
3930
+ /**
3931
+ * @minLength 1
3932
+ * @maxLength 8192
3933
+ */
3934
+ clientSecret: string;
3935
+ phiApproved?: boolean;
3936
+ }
3937
+
3938
+ export { AgentDiscordRevokedResponseValue as C, AgentDiscordTransferCancelledResponseValue as E, AgentRoutineOccurrenceResponseStatus as J, AgentRoutineResponseMode as M, AgentRoutineScheduleMode as O, AgentRoutineSpecScopeKind as Q, AgentTeamsConnectionResponseStatus as T, AgentTeamsInstallationResponseStatus as Z, AgentTeamsParticipantResponseIdentityKind as a0, AgentTeamsParticipantResponseStatus as a1, AgentTeamsRevokedResponseValue as a4, CreateAgentRoutineMode as aD, CreateBotAvatarColor as aG, CreateBotAvatarShape as aH, CreateBotVisibility as aI, CreateMemberContactPointRequestContactType as aM, CreateMemberContactPointRequestPurpose as aN, CreateMemberContactPointRequestSharing as aO, DEFAULT_AGENT_CHAT_MODEL as aR, DEFAULT_AGENT_REALTIME_MODEL as aS, DEFAULT_AGENT_REALTIME_MODEL_CONFIG as aT, DEFAULT_CHAT_MODEL as aU, DEFAULT_CUSTOM_VOICE_MODEL as aV, DEFAULT_THINKING_SPEECH_PHRASES as aW, DEFAULT_VOICE_INFERENCE_MODEL as aX, BotSlackConnectionResponseStatus as ad, BotSlackDisconnectResponseValue as ag, BotSlackParticipantResponseIdentityKind as ai, BotSlackParticipantResponseStatus as aj, ChannelMessageDirection as ar, ChannelMessageSource as as, PIDS_SOURCES as b$, OrgConnectionInventoryOperationMethod as bS, OrgConnectionResponseAllowedActionsItem as bV, OrgConnectionResponseCredentialKind as bW, OrgConnectionResponseProvider as bX, OrgConnectionResponseStatus as bY, PIDS_DISPOSITIONS as b_, MAX_EMAIL_SEND_RECIPIENTS as bq, MEMBER_RELATIONSHIP_KINDS as br, StandingAuthorizationResponseStatus as c$, PROPOSED_MESSAGE_BODY_MAX_LENGTH as c0, PROPOSED_MESSAGE_SETTLED_TOOL_NAME as c1, PROPOSED_MESSAGE_SETTLEMENT_STATUSES as c2, PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH as c3, PROPOSED_MESSAGE_TOOL_NAMES as c4, SCOPES as cA, SCOPE_PRESETS as cB, ScopeCategory as cI, ScopeManager as cJ, SlackSwitchPreviewResponseConfirmationBlockedByItem as cU, StandingAuthorizationOptionsActionsItem as cY, StandingAuthorizationOptionsDataUseModesItem as cZ, StandingAuthorizationSpecActionsItem as d1, StandingAuthorizationSpecDataUseMode as d2, StandingAuthorizationSpecScopeKind as d3, StandingCredentialKind as d5, StandingCredentialReferenceType as d6, StandingDestinationKind as d8, ToolkitState as dH, UpdateAgentRoutineMode as dN, UpdateMemberContactPointRequestContactType as dP, UpdateMemberContactPointRequestPurpose as dQ, UpdateMemberContactPointRequestSharing as dR, WIDGET_SLUGS as dZ, StandingJobOutputOutcome as db, StandingJobStatusStatus as dd, StandingResourceKind as di, StandingResourceOptionKind as dk, StopStandingJobResponseStatus as ds, SyncErrorCode as dv, TTS_PREVIEW_PROVIDERS as dz, canPreviewVoice as e9, formatAppContextAsMarkdown as ea, getAllResourceSlugs as eb, getPathDefinition as ec, getResourceMetadata as ed, getRevisionState as ee, getTTSProvider as ef, getVoiceModelId as eg, isProposedMessageSettlementStatus as eh, parseProposedMessage as ei, pathDraftFromStorage as ej, pathDraftToStorage as ek, ScenarioDependencyAssessmentRefusalCodesItem as em, AgentActivityWatchEventTypesItem as l, AgentChannelTriggerResponseStatus as n, AgentDiscordApplicationResponseStatus as s, AgentDiscordConnectionResponseStatus as x };
3939
+ export type { AgentTeamsParticipantResponse as $, AIModelUsageResponse as A, AgentDiscordRevokedResponse as B, AgentDiscordTransferCancelledResponse as D, AgentDiscordTransferPreviewResponse as F, AgentDiscordTransferResponse as G, AgentRoutineList as H, AgentRoutineOccurrenceResponse as I, AgentRoutineOccurrences as K, AgentRoutineResponse as L, AgentRoutineSchedule as N, AgentRoutineSpec as P, AgentTeamsAuthorizationResponse as R, AgentTeamsConnectionResponse as S, AgentTeamsConnectionsResponse as U, AgentTeamsDestinationSwitchConfirmed as V, AgentTeamsDestinationSwitchReview as W, AgentTeamsDestinationSwitchTarget as X, AgentTeamsInstallationResponse as Y, AgentTeamsInstallationsResponse as _, AIUsageDetailsResponse as a, DataRecordContext as a$, AgentTeamsParticipantsResponse as a2, AgentTeamsRevokedResponse as a3, AnalyticsFilter as a5, AnalyticsQuery as a6, AppContext as a7, ApproveBotSlackParticipantRequest as a8, BaseChatModelConfig as a9, ConnectAgentTeamsRequest as aA, ConnectSlackRequest as aB, CreateAgentRoutine as aC, CreateAgentTeamsDestinationSwitchRequest as aE, CreateBot as aF, CreateCustomOrgSlackApplicationRequest as aJ, CreateHostedOrgTeamsApplicationRequest as aK, CreateMemberContactPointRequest as aL, CurrentPlanInfo as aP, CustomRealtimeModelConfig as aQ, DailyPhoneRowResponse as aY, DailySMSRowResponse as aZ, DashboardMetrics as a_, BaseRealtimeModelConfig as aa, BillingStatistics as ab, BotSlackConnectionResponse as ac, BotSlackConnectionsResponse as ae, BotSlackDisconnectResponse as af, BotSlackParticipantResponse as ah, BotSlackParticipantsResponse as ak, BundleScenarioPreflightResponse as al, CallEndSection as am, CallEndStatusEntry as an, ChannelErrorBreakdown as ao, ChannelFailures as ap, ChannelMessageResponse as aq, ChannelMessagesResponse as at, ChatContext as au, ChatModelConfig as av, ClaudeChatModelConfig as aw, ClaudeReasoningEffort as ax, CommunicationDetailsResponse as ay, ConnectAgentDiscordRequest as az, AcquisitionFunnelChannel as b, DataRecordImportOutcomes as b0, DeviceCacheFileEntry as b1, DeviceCacheManifestResponse as b2, EfficiencyMetricsResponse as b3, EmailCountsResponse as b4, EmailUsageResponse as b5, EngineTimeSeries as b6, ErrorCodeBucket as b7, EventRuleMetrics as b8, ExportStatistics as b9, MetricDataPoint as bA, MetricSection as bB, MetricSummary as bC, MetricValue as bD, OpenAIChatModelConfig as bE, OpenAIRealtimeModelConfig as bF, OpenAIReasoningEffort as bG, OpenAISemanticVADEagerness as bH, OpenAISemanticVADTurnDetection as bI, OpenAIServerVADTurnDetection as bJ, OpenAITurnDetection as bK, OpenAITurnDetectionType as bL, OrgConnectionAgentBindingResponse as bM, OrgConnectionInstallationResponse as bN, OrgConnectionInventoryBot as bO, OrgConnectionInventoryCapabilities as bP, OrgConnectionInventoryItem as bQ, OrgConnectionInventoryOperation as bR, OrgConnectionInventoryResponse as bT, OrgConnectionResponse as bU, OrgConnectionsResponse as bZ, FeatureSyncStatus as ba, GeminiChatModelConfig as bb, GeminiThinkingLevel as bc, MetricSummary$1 as bd, VoiceMetricsResponse$1 as be, HealthCheckStatistics as bf, HealthDetailRequest as bg, HealthMetricsRequest as bh, HealthMetricsResponse as bi, HealthSummary as bj, HostedTeamsAuthorizationResponse as bk, HostedTeamsSetupAvailability as bl, ImportStatistics as bm, InterruptionSound as bn, JourneyContext as bo, JourneySelectionContext as bp, MemberContactPointResponse as bs, MemberContactPointConfirmationResponse as bt, MemberContactPointListResponse as bu, MemberImportColumnResponse as bv, MemberNotificationPreferences as bw, MemberNotifyActionParams as bx, MemberNotifyRecipientMode as by, MemberUsageReport as bz, AcquisitionFunnelRecentSignup as c, PageContext as c5, PathDraft as c6, PerformanceMetrics as c7, PhoneCallPhoneNumberUsageResponse as c8, PhoneCallUsageResponse as c9, SMSCommunicationDetailsResponse as cC, SMSMessageUsageResponse as cD, SMSPhoneNumberUsageResponse as cE, SayMessageTranslation as cF, SayTaskConfiguration as cG, ScenarioDependencyAssessment as cH, ScopeName as cK, SetPersonalRoutinePause as cL, SiteContext as cM, SkippedWorkspace as cN, SlackAuthorizationResponse as cO, SlackSwitchBotOption as cP, SlackSwitchConfirmRequest as cQ, SlackSwitchConfirmedResponse as cR, SlackSwitchDestinationRequest as cS, SlackSwitchPreviewResponse as cT, StandingAudienceOption as cV, StandingAudienceOptions as cW, StandingAuthorizationOptions as cX, StandingAuthorizationResponse as c_, PhoneCommunicationDetailsResponse as ca, PhoneNumberUsage as cb, PidsDisposition as cc, PidsSource as cd, ProductOverageConfigResponse as ce, ProposedMessageSettlementStatus as cf, ProvisionPlanRequest as cg, ProvisionPlanResponse as ch, RawDataRecordImportResponse as ci, RealtimeModelConfig as cj, ReconcileAthenaBookingRefusalResponse as ck, ReconcileAthenaBookingRequest as cl, ReconcileAthenaBookingResponse as cm, RegisterAgentDiscordApplication as cn, RegisterAgentTeamsInstallation as co, RequestsSection as cp, RequestsStatusEntry as cq, ResourceMetadata as cr, ResourceOverageResponse as cs, ResourceUsageResponse as ct, RetireMemberContactPointRequest as cu, RevisionState as cv, RevisionStateRevision as cw, RevisionStateWorkflow as cx, RoutineRunMetrics as cy, RunAgentRoutine as cz, AcquisitionFunnelResponse as d, WorkflowContext as d$, StandingAuthorizationSpec as d0, StandingCredential as d4, StandingDestination as d7, StandingJobOutput as d9, TaskContext as dA, TaskCountResponse as dB, ThinkingSound as dC, TimeSeriesData as dD, TimeSeriesDataPoint as dE, ToolParameter as dF, ToolkitContext as dG, TopOffender as dI, TopResourceOverageResponse as dJ, TtsReconnectOutcomeEntry as dK, TtsReconnectSection as dL, UpdateAgentRoutine as dM, UpdateMemberContactPointRequest as dO, UpdateOrgTeamsApplicationRequest as dS, UsageProductSummaryResponse as dT, UsageReportResponse as dU, UsageReportRequest as dV, UsageStatistics as dW, VoiceMetricsResponse as dX, VoiceMetricsTimeRange as dY, WidgetSlug as d_, StandingJobOutputMessage as da, StandingJobStatus as dc, StandingPersonalCallGrant as de, StandingPersonalEmailGrant as df, StandingPersonalRoutineGrant as dg, StandingResource as dh, StandingResourceOption as dj, StandingResourceOptions as dl, StandingSourceBinding as dm, StandingWorkspaceCeiling as dn, StandingWorkspaceOption as dp, StatisticsSummary as dq, StopStandingJobResponse as dr, StoredPath as dt, StripeSubscriptionCreate as du, SystemStatistics as dw, TTSModel as dx, TTSPreviewProvider as dy, ActivityDetail as e, WorkspaceHealthDetail as e0, WorkspaceHealthResponse as e1, WorkspaceHealthRow as e2, WorkspaceUsageReportResponse as e3, XAIChatModelConfig as e4, XAIRealtimeModelConfig as e5, XAIRealtimeReasoningEffort as e6, XAIReasoningEffort as e7, XAIServerVADTurnDetection as e8, DirectSubscriptionCreate as el, ScopeDefinition as en, ActivityFeedResponse as f, AdminDomainResponse as g, AdminDomainSiteMapping as h, AdminDomainWidgetMapping as i, AdminPidsFindingResponse as j, AgentActivityWatch as k, AgentChannelTriggerResponse as m, AgentChannelTriggersResponse as o, AgentDiscordAffectedScope as p, AgentDiscordAffectedServer as q, AgentDiscordApplicationResponse as r, AgentDiscordApplicationsResponse as t, AgentDiscordAuthorizationResponse as u, AgentDiscordBindingRequest as v, AgentDiscordConnectionResponse as w, AgentDiscordConnectionsResponse as y, AgentDiscordDestination as z };