@to11ai/sdk 3.0.0-rc.24 → 3.0.0-rc.26

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.
@@ -192,6 +192,11 @@ export type PrincipalApiKeyContextInvariant = {
192
192
  workspaceId: string | null;
193
193
  } | null;
194
194
  audience: Array<string>;
195
+ delegation?: {
196
+ actor: 'assistant:slack';
197
+ organizationId: string;
198
+ scopes: Array<string>;
199
+ } | null;
195
200
  email: string | null;
196
201
  emailVerified: boolean;
197
202
  externalId: string;
@@ -1383,7 +1388,6 @@ export type SlackIntegrationLookupSlackInstallationResponses = {
1383
1388
  200: {
1384
1389
  code: number;
1385
1390
  data: {
1386
- apiKey: string;
1387
1391
  botToken: string;
1388
1392
  botUserId: string;
1389
1393
  organizationId: string;
@@ -1416,6 +1420,223 @@ export type SlackIntegrationLookupSlackInstallationResponses = {
1416
1420
 
1417
1421
  export type SlackIntegrationLookupSlackInstallationResponse = SlackIntegrationLookupSlackInstallationResponses[keyof SlackIntegrationLookupSlackInstallationResponses];
1418
1422
 
1423
+ export type SlackIntegrationRecordRefusedSlackRunData = {
1424
+ body: {
1425
+ run: {
1426
+ finishedAt: string;
1427
+ model: string;
1428
+ outcome: 'answered' | 'limit_tool_rounds' | 'limit_wall_clock' | 'limit_output_tokens' | 'refused' | 'credential_expired' | 'model_error' | 'disabled' | 'superseded' | 'credential_unavailable';
1429
+ reason?: 'asker_external' | 'asker_guest' | 'shared_channel' | 'guest_in_channel' | 'unverified' | 'not_linked' | 'credential_unavailable' | null;
1430
+ reportedAsker?: {
1431
+ slackTeamId: string;
1432
+ slackUserId: string;
1433
+ } | null;
1434
+ runId: string;
1435
+ runType: 'data_question' | 'skill_run';
1436
+ startedAt: string;
1437
+ surface: 'slack' | 'web_chat' | 'mcp';
1438
+ toolsCalled: Array<string>;
1439
+ };
1440
+ slackTeamId: string;
1441
+ };
1442
+ path?: never;
1443
+ query?: never;
1444
+ url: '/internal/slack/runs/refused';
1445
+ };
1446
+
1447
+ export type SlackIntegrationRecordRefusedSlackRunErrors = {
1448
+ /**
1449
+ * BadRequestError
1450
+ */
1451
+ 400: BadRequestError;
1452
+ /**
1453
+ * UnauthorizedError
1454
+ */
1455
+ 401: UnauthorizedError;
1456
+ /**
1457
+ * ForbiddenError
1458
+ */
1459
+ 403: ForbiddenError;
1460
+ /**
1461
+ * NotFoundError
1462
+ */
1463
+ 404: NotFoundError;
1464
+ /**
1465
+ * ConflictError
1466
+ */
1467
+ 409: ConflictError;
1468
+ /**
1469
+ * GoneError
1470
+ */
1471
+ 410: GoneError;
1472
+ /**
1473
+ * ContentTooLargeError
1474
+ */
1475
+ 413: ContentTooLargeError;
1476
+ /**
1477
+ * MisdirectedRequestError
1478
+ */
1479
+ 421: MisdirectedRequestError;
1480
+ /**
1481
+ * UnprocessableEntityError
1482
+ */
1483
+ 422: UnprocessableEntityError;
1484
+ /**
1485
+ * TooManyRequestsError
1486
+ */
1487
+ 429: TooManyRequestsError;
1488
+ /**
1489
+ * InternalServerError
1490
+ */
1491
+ 500: InternalServerError;
1492
+ /**
1493
+ * ServiceUnavailableError
1494
+ */
1495
+ 503: ServiceUnavailableError;
1496
+ };
1497
+
1498
+ export type SlackIntegrationRecordRefusedSlackRunError = SlackIntegrationRecordRefusedSlackRunErrors[keyof SlackIntegrationRecordRefusedSlackRunErrors];
1499
+
1500
+ export type SlackIntegrationRecordRefusedSlackRunResponses = {
1501
+ /**
1502
+ * Success
1503
+ */
1504
+ 201: {
1505
+ code: number;
1506
+ data: {
1507
+ id: string;
1508
+ } | null;
1509
+ error: {
1510
+ code: string;
1511
+ details?: unknown | null;
1512
+ message: string;
1513
+ rowErrors?: Array<{
1514
+ code: string;
1515
+ message: string;
1516
+ path: Array<string | number>;
1517
+ }> | null;
1518
+ } | null;
1519
+ pagination: {
1520
+ limit: number;
1521
+ page: number;
1522
+ total: number;
1523
+ totalPages: number;
1524
+ } | null;
1525
+ sdkBehavior?: {
1526
+ flags: {
1527
+ [key: string]: unknown;
1528
+ };
1529
+ v: number;
1530
+ } | null;
1531
+ success: boolean;
1532
+ };
1533
+ };
1534
+
1535
+ export type SlackIntegrationRecordRefusedSlackRunResponse = SlackIntegrationRecordRefusedSlackRunResponses[keyof SlackIntegrationRecordRefusedSlackRunResponses];
1536
+
1537
+ export type SlackIntegrationIssueSlackUserCredentialData = {
1538
+ body: {
1539
+ slackTeamId: string;
1540
+ slackUserId: string;
1541
+ };
1542
+ path?: never;
1543
+ query?: never;
1544
+ url: '/internal/slack/users/credential';
1545
+ };
1546
+
1547
+ export type SlackIntegrationIssueSlackUserCredentialErrors = {
1548
+ /**
1549
+ * BadRequestError
1550
+ */
1551
+ 400: BadRequestError;
1552
+ /**
1553
+ * UnauthorizedError
1554
+ */
1555
+ 401: UnauthorizedError;
1556
+ /**
1557
+ * ForbiddenError
1558
+ */
1559
+ 403: ForbiddenError;
1560
+ /**
1561
+ * NotFoundError
1562
+ */
1563
+ 404: NotFoundError;
1564
+ /**
1565
+ * ConflictError
1566
+ */
1567
+ 409: ConflictError;
1568
+ /**
1569
+ * GoneError
1570
+ */
1571
+ 410: GoneError;
1572
+ /**
1573
+ * ContentTooLargeError
1574
+ */
1575
+ 413: ContentTooLargeError;
1576
+ /**
1577
+ * MisdirectedRequestError
1578
+ */
1579
+ 421: MisdirectedRequestError;
1580
+ /**
1581
+ * UnprocessableEntityError
1582
+ */
1583
+ 422: UnprocessableEntityError;
1584
+ /**
1585
+ * TooManyRequestsError
1586
+ */
1587
+ 429: TooManyRequestsError;
1588
+ /**
1589
+ * InternalServerError
1590
+ */
1591
+ 500: InternalServerError;
1592
+ /**
1593
+ * ServiceUnavailableError
1594
+ */
1595
+ 503: ServiceUnavailableError;
1596
+ };
1597
+
1598
+ export type SlackIntegrationIssueSlackUserCredentialError = SlackIntegrationIssueSlackUserCredentialErrors[keyof SlackIntegrationIssueSlackUserCredentialErrors];
1599
+
1600
+ export type SlackIntegrationIssueSlackUserCredentialResponses = {
1601
+ /**
1602
+ * Success
1603
+ */
1604
+ 200: {
1605
+ code: number;
1606
+ data: {
1607
+ credential: string;
1608
+ displayName: string | null;
1609
+ expiresAt: string;
1610
+ principalId: string;
1611
+ } | null;
1612
+ error: {
1613
+ code: string;
1614
+ details?: unknown | null;
1615
+ message: string;
1616
+ rowErrors?: Array<{
1617
+ code: string;
1618
+ message: string;
1619
+ path: Array<string | number>;
1620
+ }> | null;
1621
+ } | null;
1622
+ pagination: {
1623
+ limit: number;
1624
+ page: number;
1625
+ total: number;
1626
+ totalPages: number;
1627
+ } | null;
1628
+ sdkBehavior?: {
1629
+ flags: {
1630
+ [key: string]: unknown;
1631
+ };
1632
+ v: number;
1633
+ } | null;
1634
+ success: boolean;
1635
+ };
1636
+ };
1637
+
1638
+ export type SlackIntegrationIssueSlackUserCredentialResponse = SlackIntegrationIssueSlackUserCredentialResponses[keyof SlackIntegrationIssueSlackUserCredentialResponses];
1639
+
1419
1640
  export type HealthReadyzData = {
1420
1641
  body?: never;
1421
1642
  path?: never;
@@ -4088,16 +4309,17 @@ export type IngestTokenExchangeIngestTokenResponses = {
4088
4309
 
4089
4310
  export type IngestTokenExchangeIngestTokenResponse = IngestTokenExchangeIngestTokenResponses[keyof IngestTokenExchangeIngestTokenResponses];
4090
4311
 
4091
- export type OrganizationsAcceptOrganizationInvitationData = {
4312
+ export type SlackIntegrationCompleteSlackUserLinkData = {
4092
4313
  body: {
4093
- token: string;
4314
+ code: string;
4315
+ state: string;
4094
4316
  };
4095
4317
  path?: never;
4096
4318
  query?: never;
4097
- url: '/v1/invitations/accept';
4319
+ url: '/v1/integrations/slack/link/complete';
4098
4320
  };
4099
4321
 
4100
- export type OrganizationsAcceptOrganizationInvitationErrors = {
4322
+ export type SlackIntegrationCompleteSlackUserLinkErrors = {
4101
4323
  /**
4102
4324
  * BadRequestError
4103
4325
  */
@@ -4148,17 +4370,24 @@ export type OrganizationsAcceptOrganizationInvitationErrors = {
4148
4370
  503: ServiceUnavailableError;
4149
4371
  };
4150
4372
 
4151
- export type OrganizationsAcceptOrganizationInvitationError = OrganizationsAcceptOrganizationInvitationErrors[keyof OrganizationsAcceptOrganizationInvitationErrors];
4373
+ export type SlackIntegrationCompleteSlackUserLinkError = SlackIntegrationCompleteSlackUserLinkErrors[keyof SlackIntegrationCompleteSlackUserLinkErrors];
4152
4374
 
4153
- export type OrganizationsAcceptOrganizationInvitationResponses = {
4375
+ export type SlackIntegrationCompleteSlackUserLinkResponses = {
4154
4376
  /**
4155
4377
  * Success
4156
4378
  */
4157
4379
  200: {
4158
4380
  code: number;
4159
4381
  data: {
4160
- accepted: boolean;
4161
4382
  organizationId: string;
4383
+ organizationName: string;
4384
+ replaced: Array<{
4385
+ platformPrincipalId: string;
4386
+ slackTeamId: string;
4387
+ slackUserId: string;
4388
+ }>;
4389
+ slackUserName: string | null;
4390
+ workspaceName: string;
4162
4391
  } | null;
4163
4392
  error: {
4164
4393
  code: string;
@@ -4186,16 +4415,16 @@ export type OrganizationsAcceptOrganizationInvitationResponses = {
4186
4415
  };
4187
4416
  };
4188
4417
 
4189
- export type OrganizationsAcceptOrganizationInvitationResponse = OrganizationsAcceptOrganizationInvitationResponses[keyof OrganizationsAcceptOrganizationInvitationResponses];
4418
+ export type SlackIntegrationCompleteSlackUserLinkResponse = SlackIntegrationCompleteSlackUserLinkResponses[keyof SlackIntegrationCompleteSlackUserLinkResponses];
4190
4419
 
4191
- export type OrganizationsAcceptPendingOrganizationInvitationsData = {
4420
+ export type SlackIntegrationStartSlackUserLinkData = {
4192
4421
  body?: never;
4193
4422
  path?: never;
4194
4423
  query?: never;
4195
- url: '/v1/invitations/accept-pending';
4424
+ url: '/v1/integrations/slack/link/start';
4196
4425
  };
4197
4426
 
4198
- export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
4427
+ export type SlackIntegrationStartSlackUserLinkErrors = {
4199
4428
  /**
4200
4429
  * BadRequestError
4201
4430
  */
@@ -4246,16 +4475,16 @@ export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
4246
4475
  503: ServiceUnavailableError;
4247
4476
  };
4248
4477
 
4249
- export type OrganizationsAcceptPendingOrganizationInvitationsError = OrganizationsAcceptPendingOrganizationInvitationsErrors[keyof OrganizationsAcceptPendingOrganizationInvitationsErrors];
4478
+ export type SlackIntegrationStartSlackUserLinkError = SlackIntegrationStartSlackUserLinkErrors[keyof SlackIntegrationStartSlackUserLinkErrors];
4250
4479
 
4251
- export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
4480
+ export type SlackIntegrationStartSlackUserLinkResponses = {
4252
4481
  /**
4253
4482
  * Success
4254
4483
  */
4255
4484
  200: {
4256
4485
  code: number;
4257
4486
  data: {
4258
- acceptedOrganizationIds: Array<string>;
4487
+ authorizeUrl: string;
4259
4488
  } | null;
4260
4489
  error: {
4261
4490
  code: string;
@@ -4283,18 +4512,18 @@ export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
4283
4512
  };
4284
4513
  };
4285
4514
 
4286
- export type OrganizationsAcceptPendingOrganizationInvitationsResponse = OrganizationsAcceptPendingOrganizationInvitationsResponses[keyof OrganizationsAcceptPendingOrganizationInvitationsResponses];
4515
+ export type SlackIntegrationStartSlackUserLinkResponse = SlackIntegrationStartSlackUserLinkResponses[keyof SlackIntegrationStartSlackUserLinkResponses];
4287
4516
 
4288
- export type OrganizationsGetOrganizationInvitationDetailsData = {
4517
+ export type OrganizationsAcceptOrganizationInvitationData = {
4289
4518
  body: {
4290
4519
  token: string;
4291
4520
  };
4292
4521
  path?: never;
4293
4522
  query?: never;
4294
- url: '/v1/invitations/details';
4523
+ url: '/v1/invitations/accept';
4295
4524
  };
4296
4525
 
4297
- export type OrganizationsGetOrganizationInvitationDetailsErrors = {
4526
+ export type OrganizationsAcceptOrganizationInvitationErrors = {
4298
4527
  /**
4299
4528
  * BadRequestError
4300
4529
  */
@@ -4345,20 +4574,17 @@ export type OrganizationsGetOrganizationInvitationDetailsErrors = {
4345
4574
  503: ServiceUnavailableError;
4346
4575
  };
4347
4576
 
4348
- export type OrganizationsGetOrganizationInvitationDetailsError = OrganizationsGetOrganizationInvitationDetailsErrors[keyof OrganizationsGetOrganizationInvitationDetailsErrors];
4577
+ export type OrganizationsAcceptOrganizationInvitationError = OrganizationsAcceptOrganizationInvitationErrors[keyof OrganizationsAcceptOrganizationInvitationErrors];
4349
4578
 
4350
- export type OrganizationsGetOrganizationInvitationDetailsResponses = {
4579
+ export type OrganizationsAcceptOrganizationInvitationResponses = {
4351
4580
  /**
4352
4581
  * Success
4353
4582
  */
4354
4583
  200: {
4355
4584
  code: number;
4356
4585
  data: {
4357
- details: {
4358
- inviterEmail: string | null;
4359
- inviterName: string | null;
4360
- organizationName: string;
4361
- } | null;
4586
+ accepted: boolean;
4587
+ organizationId: string;
4362
4588
  } | null;
4363
4589
  error: {
4364
4590
  code: string;
@@ -4386,21 +4612,16 @@ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
4386
4612
  };
4387
4613
  };
4388
4614
 
4389
- export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
4615
+ export type OrganizationsAcceptOrganizationInvitationResponse = OrganizationsAcceptOrganizationInvitationResponses[keyof OrganizationsAcceptOrganizationInvitationResponses];
4390
4616
 
4391
- export type ApiKeysCreateApiKeySuperData = {
4392
- body: {
4393
- environment: 'live' | 'test';
4394
- orgId?: string | null;
4395
- projectId?: string | null;
4396
- scopes: Array<string>;
4397
- };
4617
+ export type OrganizationsAcceptPendingOrganizationInvitationsData = {
4618
+ body?: never;
4398
4619
  path?: never;
4399
4620
  query?: never;
4400
- url: '/v1/keys';
4621
+ url: '/v1/invitations/accept-pending';
4401
4622
  };
4402
4623
 
4403
- export type ApiKeysCreateApiKeySuperErrors = {
4624
+ export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
4404
4625
  /**
4405
4626
  * BadRequestError
4406
4627
  */
@@ -4451,17 +4672,222 @@ export type ApiKeysCreateApiKeySuperErrors = {
4451
4672
  503: ServiceUnavailableError;
4452
4673
  };
4453
4674
 
4454
- export type ApiKeysCreateApiKeySuperError = ApiKeysCreateApiKeySuperErrors[keyof ApiKeysCreateApiKeySuperErrors];
4675
+ export type OrganizationsAcceptPendingOrganizationInvitationsError = OrganizationsAcceptPendingOrganizationInvitationsErrors[keyof OrganizationsAcceptPendingOrganizationInvitationsErrors];
4455
4676
 
4456
- export type ApiKeysCreateApiKeySuperResponses = {
4677
+ export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
4457
4678
  /**
4458
4679
  * Success
4459
4680
  */
4460
- 201: {
4681
+ 200: {
4461
4682
  code: number;
4462
4683
  data: {
4463
- expiresAt: string;
4464
- jwt: string;
4684
+ acceptedOrganizationIds: Array<string>;
4685
+ } | null;
4686
+ error: {
4687
+ code: string;
4688
+ details?: unknown | null;
4689
+ message: string;
4690
+ rowErrors?: Array<{
4691
+ code: string;
4692
+ message: string;
4693
+ path: Array<string | number>;
4694
+ }> | null;
4695
+ } | null;
4696
+ pagination: {
4697
+ limit: number;
4698
+ page: number;
4699
+ total: number;
4700
+ totalPages: number;
4701
+ } | null;
4702
+ sdkBehavior?: {
4703
+ flags: {
4704
+ [key: string]: unknown;
4705
+ };
4706
+ v: number;
4707
+ } | null;
4708
+ success: boolean;
4709
+ };
4710
+ };
4711
+
4712
+ export type OrganizationsAcceptPendingOrganizationInvitationsResponse = OrganizationsAcceptPendingOrganizationInvitationsResponses[keyof OrganizationsAcceptPendingOrganizationInvitationsResponses];
4713
+
4714
+ export type OrganizationsGetOrganizationInvitationDetailsData = {
4715
+ body: {
4716
+ token: string;
4717
+ };
4718
+ path?: never;
4719
+ query?: never;
4720
+ url: '/v1/invitations/details';
4721
+ };
4722
+
4723
+ export type OrganizationsGetOrganizationInvitationDetailsErrors = {
4724
+ /**
4725
+ * BadRequestError
4726
+ */
4727
+ 400: BadRequestError;
4728
+ /**
4729
+ * UnauthorizedError
4730
+ */
4731
+ 401: UnauthorizedError;
4732
+ /**
4733
+ * ForbiddenError
4734
+ */
4735
+ 403: ForbiddenError;
4736
+ /**
4737
+ * NotFoundError
4738
+ */
4739
+ 404: NotFoundError;
4740
+ /**
4741
+ * ConflictError
4742
+ */
4743
+ 409: ConflictError;
4744
+ /**
4745
+ * GoneError
4746
+ */
4747
+ 410: GoneError;
4748
+ /**
4749
+ * ContentTooLargeError
4750
+ */
4751
+ 413: ContentTooLargeError;
4752
+ /**
4753
+ * MisdirectedRequestError
4754
+ */
4755
+ 421: MisdirectedRequestError;
4756
+ /**
4757
+ * UnprocessableEntityError
4758
+ */
4759
+ 422: UnprocessableEntityError;
4760
+ /**
4761
+ * TooManyRequestsError
4762
+ */
4763
+ 429: TooManyRequestsError;
4764
+ /**
4765
+ * InternalServerError
4766
+ */
4767
+ 500: InternalServerError;
4768
+ /**
4769
+ * ServiceUnavailableError
4770
+ */
4771
+ 503: ServiceUnavailableError;
4772
+ };
4773
+
4774
+ export type OrganizationsGetOrganizationInvitationDetailsError = OrganizationsGetOrganizationInvitationDetailsErrors[keyof OrganizationsGetOrganizationInvitationDetailsErrors];
4775
+
4776
+ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
4777
+ /**
4778
+ * Success
4779
+ */
4780
+ 200: {
4781
+ code: number;
4782
+ data: {
4783
+ details: {
4784
+ inviterEmail: string | null;
4785
+ inviterName: string | null;
4786
+ organizationName: string;
4787
+ } | null;
4788
+ } | null;
4789
+ error: {
4790
+ code: string;
4791
+ details?: unknown | null;
4792
+ message: string;
4793
+ rowErrors?: Array<{
4794
+ code: string;
4795
+ message: string;
4796
+ path: Array<string | number>;
4797
+ }> | null;
4798
+ } | null;
4799
+ pagination: {
4800
+ limit: number;
4801
+ page: number;
4802
+ total: number;
4803
+ totalPages: number;
4804
+ } | null;
4805
+ sdkBehavior?: {
4806
+ flags: {
4807
+ [key: string]: unknown;
4808
+ };
4809
+ v: number;
4810
+ } | null;
4811
+ success: boolean;
4812
+ };
4813
+ };
4814
+
4815
+ export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
4816
+
4817
+ export type ApiKeysCreateApiKeySuperData = {
4818
+ body: {
4819
+ environment: 'live' | 'test';
4820
+ orgId?: string | null;
4821
+ projectId?: string | null;
4822
+ scopes: Array<string>;
4823
+ };
4824
+ path?: never;
4825
+ query?: never;
4826
+ url: '/v1/keys';
4827
+ };
4828
+
4829
+ export type ApiKeysCreateApiKeySuperErrors = {
4830
+ /**
4831
+ * BadRequestError
4832
+ */
4833
+ 400: BadRequestError;
4834
+ /**
4835
+ * UnauthorizedError
4836
+ */
4837
+ 401: UnauthorizedError;
4838
+ /**
4839
+ * ForbiddenError
4840
+ */
4841
+ 403: ForbiddenError;
4842
+ /**
4843
+ * NotFoundError
4844
+ */
4845
+ 404: NotFoundError;
4846
+ /**
4847
+ * ConflictError
4848
+ */
4849
+ 409: ConflictError;
4850
+ /**
4851
+ * GoneError
4852
+ */
4853
+ 410: GoneError;
4854
+ /**
4855
+ * ContentTooLargeError
4856
+ */
4857
+ 413: ContentTooLargeError;
4858
+ /**
4859
+ * MisdirectedRequestError
4860
+ */
4861
+ 421: MisdirectedRequestError;
4862
+ /**
4863
+ * UnprocessableEntityError
4864
+ */
4865
+ 422: UnprocessableEntityError;
4866
+ /**
4867
+ * TooManyRequestsError
4868
+ */
4869
+ 429: TooManyRequestsError;
4870
+ /**
4871
+ * InternalServerError
4872
+ */
4873
+ 500: InternalServerError;
4874
+ /**
4875
+ * ServiceUnavailableError
4876
+ */
4877
+ 503: ServiceUnavailableError;
4878
+ };
4879
+
4880
+ export type ApiKeysCreateApiKeySuperError = ApiKeysCreateApiKeySuperErrors[keyof ApiKeysCreateApiKeySuperErrors];
4881
+
4882
+ export type ApiKeysCreateApiKeySuperResponses = {
4883
+ /**
4884
+ * Success
4885
+ */
4886
+ 201: {
4887
+ code: number;
4888
+ data: {
4889
+ expiresAt: string;
4890
+ jwt: string;
4465
4891
  key: string;
4466
4892
  } | null;
4467
4893
  error: {
@@ -5261,7 +5687,8 @@ export type AssistantRunsRecordAssistantRunData = {
5261
5687
  body: {
5262
5688
  finishedAt: string;
5263
5689
  model: string;
5264
- outcome: 'answered' | 'limit_tool_rounds' | 'limit_wall_clock' | 'limit_output_tokens' | 'refused' | 'credential_expired' | 'model_error' | 'disabled' | 'superseded';
5690
+ outcome: 'answered' | 'limit_tool_rounds' | 'limit_wall_clock' | 'limit_output_tokens' | 'refused' | 'credential_expired' | 'model_error' | 'disabled' | 'superseded' | 'credential_unavailable';
5691
+ reason?: 'asker_external' | 'asker_guest' | 'shared_channel' | 'guest_in_channel' | 'unverified' | 'not_linked' | 'credential_unavailable' | null;
5265
5692
  reportedAsker?: {
5266
5693
  slackTeamId: string;
5267
5694
  slackUserId: string;
@@ -5458,7 +5885,7 @@ export type OrgAuditListOrgAuditEventsResponses = {
5458
5885
  organizationId: string | null;
5459
5886
  reason: string | null;
5460
5887
  resourceId: string;
5461
- resourceType: 'role' | 'organization' | 'organization_invitation' | 'workspace' | 'platform_setting' | 'api_key' | 'assistant_run' | 'slack_installation';
5888
+ resourceType: 'role' | 'organization' | 'organization_invitation' | 'workspace' | 'platform_setting' | 'api_key' | 'assistant_run' | 'slack_installation' | 'slack_user_link';
5462
5889
  scope: 'organization' | 'system';
5463
5890
  workspaceId: string | null;
5464
5891
  }>;
@@ -5919,23 +6346,335 @@ export type IntegrationsGetGitHubIntegrationResponses = {
5919
6346
  };
5920
6347
  };
5921
6348
 
5922
- export type IntegrationsGetGitHubIntegrationResponse = IntegrationsGetGitHubIntegrationResponses[keyof IntegrationsGetGitHubIntegrationResponses];
6349
+ export type IntegrationsGetGitHubIntegrationResponse = IntegrationsGetGitHubIntegrationResponses[keyof IntegrationsGetGitHubIntegrationResponses];
6350
+
6351
+ export type IntegrationsCompleteGitHubIntegrationData = {
6352
+ body: {
6353
+ code: string;
6354
+ installationId?: string | null;
6355
+ setupAction?: string | null;
6356
+ state: string;
6357
+ };
6358
+ path: {
6359
+ orgId: string;
6360
+ };
6361
+ query?: never;
6362
+ url: '/v1/orgs/{orgId}/integrations/github/callback';
6363
+ };
6364
+
6365
+ export type IntegrationsCompleteGitHubIntegrationErrors = {
6366
+ /**
6367
+ * BadRequestError
6368
+ */
6369
+ 400: BadRequestError;
6370
+ /**
6371
+ * UnauthorizedError
6372
+ */
6373
+ 401: UnauthorizedError;
6374
+ /**
6375
+ * ForbiddenError
6376
+ */
6377
+ 403: ForbiddenError;
6378
+ /**
6379
+ * NotFoundError
6380
+ */
6381
+ 404: NotFoundError;
6382
+ /**
6383
+ * ConflictError
6384
+ */
6385
+ 409: ConflictError;
6386
+ /**
6387
+ * GoneError
6388
+ */
6389
+ 410: GoneError;
6390
+ /**
6391
+ * ContentTooLargeError
6392
+ */
6393
+ 413: ContentTooLargeError;
6394
+ /**
6395
+ * MisdirectedRequestError
6396
+ */
6397
+ 421: MisdirectedRequestError;
6398
+ /**
6399
+ * UnprocessableEntityError
6400
+ */
6401
+ 422: UnprocessableEntityError;
6402
+ /**
6403
+ * TooManyRequestsError
6404
+ */
6405
+ 429: TooManyRequestsError;
6406
+ /**
6407
+ * InternalServerError
6408
+ */
6409
+ 500: InternalServerError;
6410
+ /**
6411
+ * ServiceUnavailableError
6412
+ */
6413
+ 503: ServiceUnavailableError;
6414
+ };
6415
+
6416
+ export type IntegrationsCompleteGitHubIntegrationError = IntegrationsCompleteGitHubIntegrationErrors[keyof IntegrationsCompleteGitHubIntegrationErrors];
6417
+
6418
+ export type IntegrationsCompleteGitHubIntegrationResponses = {
6419
+ /**
6420
+ * Success
6421
+ */
6422
+ 200: {
6423
+ code: number;
6424
+ data: {
6425
+ installation: {
6426
+ accountLogin: string;
6427
+ backfillRequestedAt: string | null;
6428
+ createdAt: string;
6429
+ externalId: string;
6430
+ id: string;
6431
+ lastReconciledAt: string | null;
6432
+ repositoryCount: number;
6433
+ suspendedAt: string | null;
6434
+ uninstalledAt: string | null;
6435
+ updatedAt: string;
6436
+ };
6437
+ } | null;
6438
+ error: {
6439
+ code: string;
6440
+ details?: unknown | null;
6441
+ message: string;
6442
+ rowErrors?: Array<{
6443
+ code: string;
6444
+ message: string;
6445
+ path: Array<string | number>;
6446
+ }> | null;
6447
+ } | null;
6448
+ pagination: {
6449
+ limit: number;
6450
+ page: number;
6451
+ total: number;
6452
+ totalPages: number;
6453
+ } | null;
6454
+ sdkBehavior?: {
6455
+ flags: {
6456
+ [key: string]: unknown;
6457
+ };
6458
+ v: number;
6459
+ } | null;
6460
+ success: boolean;
6461
+ };
6462
+ };
6463
+
6464
+ export type IntegrationsCompleteGitHubIntegrationResponse = IntegrationsCompleteGitHubIntegrationResponses[keyof IntegrationsCompleteGitHubIntegrationResponses];
6465
+
6466
+ export type IntegrationsConnectGitHubIntegrationData = {
6467
+ body: {
6468
+ accountLogin?: string | null;
6469
+ mode: 'install' | 'authorize';
6470
+ };
6471
+ path: {
6472
+ orgId: string;
6473
+ };
6474
+ query?: never;
6475
+ url: '/v1/orgs/{orgId}/integrations/github/connect';
6476
+ };
6477
+
6478
+ export type IntegrationsConnectGitHubIntegrationErrors = {
6479
+ /**
6480
+ * BadRequestError
6481
+ */
6482
+ 400: BadRequestError;
6483
+ /**
6484
+ * UnauthorizedError
6485
+ */
6486
+ 401: UnauthorizedError;
6487
+ /**
6488
+ * ForbiddenError
6489
+ */
6490
+ 403: ForbiddenError;
6491
+ /**
6492
+ * NotFoundError
6493
+ */
6494
+ 404: NotFoundError;
6495
+ /**
6496
+ * ConflictError
6497
+ */
6498
+ 409: ConflictError;
6499
+ /**
6500
+ * GoneError
6501
+ */
6502
+ 410: GoneError;
6503
+ /**
6504
+ * ContentTooLargeError
6505
+ */
6506
+ 413: ContentTooLargeError;
6507
+ /**
6508
+ * MisdirectedRequestError
6509
+ */
6510
+ 421: MisdirectedRequestError;
6511
+ /**
6512
+ * UnprocessableEntityError
6513
+ */
6514
+ 422: UnprocessableEntityError;
6515
+ /**
6516
+ * TooManyRequestsError
6517
+ */
6518
+ 429: TooManyRequestsError;
6519
+ /**
6520
+ * InternalServerError
6521
+ */
6522
+ 500: InternalServerError;
6523
+ /**
6524
+ * ServiceUnavailableError
6525
+ */
6526
+ 503: ServiceUnavailableError;
6527
+ };
6528
+
6529
+ export type IntegrationsConnectGitHubIntegrationError = IntegrationsConnectGitHubIntegrationErrors[keyof IntegrationsConnectGitHubIntegrationErrors];
6530
+
6531
+ export type IntegrationsConnectGitHubIntegrationResponses = {
6532
+ /**
6533
+ * Success
6534
+ */
6535
+ 200: {
6536
+ code: number;
6537
+ data: {
6538
+ state: string;
6539
+ url: string;
6540
+ } | null;
6541
+ error: {
6542
+ code: string;
6543
+ details?: unknown | null;
6544
+ message: string;
6545
+ rowErrors?: Array<{
6546
+ code: string;
6547
+ message: string;
6548
+ path: Array<string | number>;
6549
+ }> | null;
6550
+ } | null;
6551
+ pagination: {
6552
+ limit: number;
6553
+ page: number;
6554
+ total: number;
6555
+ totalPages: number;
6556
+ } | null;
6557
+ sdkBehavior?: {
6558
+ flags: {
6559
+ [key: string]: unknown;
6560
+ };
6561
+ v: number;
6562
+ } | null;
6563
+ success: boolean;
6564
+ };
6565
+ };
6566
+
6567
+ export type IntegrationsConnectGitHubIntegrationResponse = IntegrationsConnectGitHubIntegrationResponses[keyof IntegrationsConnectGitHubIntegrationResponses];
6568
+
6569
+ export type IntegrationsRemoveGitHubUserLinkData = {
6570
+ body?: never;
6571
+ path: {
6572
+ orgId: string;
6573
+ };
6574
+ query?: never;
6575
+ url: '/v1/orgs/{orgId}/integrations/github/user-link';
6576
+ };
6577
+
6578
+ export type IntegrationsRemoveGitHubUserLinkErrors = {
6579
+ /**
6580
+ * BadRequestError
6581
+ */
6582
+ 400: BadRequestError;
6583
+ /**
6584
+ * UnauthorizedError
6585
+ */
6586
+ 401: UnauthorizedError;
6587
+ /**
6588
+ * ForbiddenError
6589
+ */
6590
+ 403: ForbiddenError;
6591
+ /**
6592
+ * NotFoundError
6593
+ */
6594
+ 404: NotFoundError;
6595
+ /**
6596
+ * ConflictError
6597
+ */
6598
+ 409: ConflictError;
6599
+ /**
6600
+ * GoneError
6601
+ */
6602
+ 410: GoneError;
6603
+ /**
6604
+ * ContentTooLargeError
6605
+ */
6606
+ 413: ContentTooLargeError;
6607
+ /**
6608
+ * MisdirectedRequestError
6609
+ */
6610
+ 421: MisdirectedRequestError;
6611
+ /**
6612
+ * UnprocessableEntityError
6613
+ */
6614
+ 422: UnprocessableEntityError;
6615
+ /**
6616
+ * TooManyRequestsError
6617
+ */
6618
+ 429: TooManyRequestsError;
6619
+ /**
6620
+ * InternalServerError
6621
+ */
6622
+ 500: InternalServerError;
6623
+ /**
6624
+ * ServiceUnavailableError
6625
+ */
6626
+ 503: ServiceUnavailableError;
6627
+ };
6628
+
6629
+ export type IntegrationsRemoveGitHubUserLinkError = IntegrationsRemoveGitHubUserLinkErrors[keyof IntegrationsRemoveGitHubUserLinkErrors];
6630
+
6631
+ export type IntegrationsRemoveGitHubUserLinkResponses = {
6632
+ /**
6633
+ * Success
6634
+ */
6635
+ 200: {
6636
+ code: number;
6637
+ data: {
6638
+ removed: boolean;
6639
+ } | null;
6640
+ error: {
6641
+ code: string;
6642
+ details?: unknown | null;
6643
+ message: string;
6644
+ rowErrors?: Array<{
6645
+ code: string;
6646
+ message: string;
6647
+ path: Array<string | number>;
6648
+ }> | null;
6649
+ } | null;
6650
+ pagination: {
6651
+ limit: number;
6652
+ page: number;
6653
+ total: number;
6654
+ totalPages: number;
6655
+ } | null;
6656
+ sdkBehavior?: {
6657
+ flags: {
6658
+ [key: string]: unknown;
6659
+ };
6660
+ v: number;
6661
+ } | null;
6662
+ success: boolean;
6663
+ };
6664
+ };
6665
+
6666
+ export type IntegrationsRemoveGitHubUserLinkResponse = IntegrationsRemoveGitHubUserLinkResponses[keyof IntegrationsRemoveGitHubUserLinkResponses];
5923
6667
 
5924
- export type IntegrationsCompleteGitHubIntegrationData = {
5925
- body: {
5926
- code: string;
5927
- installationId?: string | null;
5928
- setupAction?: string | null;
5929
- state: string;
5930
- };
6668
+ export type IntegrationsGetGitHubUserLinkData = {
6669
+ body?: never;
5931
6670
  path: {
5932
6671
  orgId: string;
5933
6672
  };
5934
6673
  query?: never;
5935
- url: '/v1/orgs/{orgId}/integrations/github/callback';
6674
+ url: '/v1/orgs/{orgId}/integrations/github/user-link';
5936
6675
  };
5937
6676
 
5938
- export type IntegrationsCompleteGitHubIntegrationErrors = {
6677
+ export type IntegrationsGetGitHubUserLinkErrors = {
5939
6678
  /**
5940
6679
  * BadRequestError
5941
6680
  */
@@ -5986,27 +6725,26 @@ export type IntegrationsCompleteGitHubIntegrationErrors = {
5986
6725
  503: ServiceUnavailableError;
5987
6726
  };
5988
6727
 
5989
- export type IntegrationsCompleteGitHubIntegrationError = IntegrationsCompleteGitHubIntegrationErrors[keyof IntegrationsCompleteGitHubIntegrationErrors];
6728
+ export type IntegrationsGetGitHubUserLinkError = IntegrationsGetGitHubUserLinkErrors[keyof IntegrationsGetGitHubUserLinkErrors];
5990
6729
 
5991
- export type IntegrationsCompleteGitHubIntegrationResponses = {
6730
+ export type IntegrationsGetGitHubUserLinkResponses = {
5992
6731
  /**
5993
6732
  * Success
5994
6733
  */
5995
6734
  200: {
5996
6735
  code: number;
5997
6736
  data: {
5998
- installation: {
5999
- accountLogin: string;
6000
- backfillRequestedAt: string | null;
6001
- createdAt: string;
6002
- externalId: string;
6003
- id: string;
6004
- lastReconciledAt: string | null;
6005
- repositoryCount: number;
6006
- suspendedAt: string | null;
6007
- uninstalledAt: string | null;
6008
- updatedAt: string;
6009
- };
6737
+ configured: boolean;
6738
+ link: {
6739
+ githubLogin: string;
6740
+ githubUserId: string;
6741
+ linkedAt: string;
6742
+ source: 'user_authorization' | 'installation' | 'sign_in';
6743
+ } | null;
6744
+ signInAccount: {
6745
+ githubLogin: string;
6746
+ githubUserId: string;
6747
+ } | null;
6010
6748
  } | null;
6011
6749
  error: {
6012
6750
  code: string;
@@ -6034,21 +6772,21 @@ export type IntegrationsCompleteGitHubIntegrationResponses = {
6034
6772
  };
6035
6773
  };
6036
6774
 
6037
- export type IntegrationsCompleteGitHubIntegrationResponse = IntegrationsCompleteGitHubIntegrationResponses[keyof IntegrationsCompleteGitHubIntegrationResponses];
6775
+ export type IntegrationsGetGitHubUserLinkResponse = IntegrationsGetGitHubUserLinkResponses[keyof IntegrationsGetGitHubUserLinkResponses];
6038
6776
 
6039
- export type IntegrationsConnectGitHubIntegrationData = {
6777
+ export type IntegrationsCompleteGitHubUserLinkData = {
6040
6778
  body: {
6041
- accountLogin?: string | null;
6042
- mode: 'install' | 'authorize';
6779
+ code: string;
6780
+ state: string;
6043
6781
  };
6044
6782
  path: {
6045
6783
  orgId: string;
6046
6784
  };
6047
6785
  query?: never;
6048
- url: '/v1/orgs/{orgId}/integrations/github/connect';
6786
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/callback';
6049
6787
  };
6050
6788
 
6051
- export type IntegrationsConnectGitHubIntegrationErrors = {
6789
+ export type IntegrationsCompleteGitHubUserLinkErrors = {
6052
6790
  /**
6053
6791
  * BadRequestError
6054
6792
  */
@@ -6099,17 +6837,21 @@ export type IntegrationsConnectGitHubIntegrationErrors = {
6099
6837
  503: ServiceUnavailableError;
6100
6838
  };
6101
6839
 
6102
- export type IntegrationsConnectGitHubIntegrationError = IntegrationsConnectGitHubIntegrationErrors[keyof IntegrationsConnectGitHubIntegrationErrors];
6840
+ export type IntegrationsCompleteGitHubUserLinkError = IntegrationsCompleteGitHubUserLinkErrors[keyof IntegrationsCompleteGitHubUserLinkErrors];
6103
6841
 
6104
- export type IntegrationsConnectGitHubIntegrationResponses = {
6842
+ export type IntegrationsCompleteGitHubUserLinkResponses = {
6105
6843
  /**
6106
6844
  * Success
6107
6845
  */
6108
6846
  200: {
6109
6847
  code: number;
6110
6848
  data: {
6111
- state: string;
6112
- url: string;
6849
+ link: {
6850
+ githubLogin: string;
6851
+ githubUserId: string;
6852
+ linkedAt: string;
6853
+ source: 'user_authorization' | 'installation' | 'sign_in';
6854
+ };
6113
6855
  } | null;
6114
6856
  error: {
6115
6857
  code: string;
@@ -6137,18 +6879,18 @@ export type IntegrationsConnectGitHubIntegrationResponses = {
6137
6879
  };
6138
6880
  };
6139
6881
 
6140
- export type IntegrationsConnectGitHubIntegrationResponse = IntegrationsConnectGitHubIntegrationResponses[keyof IntegrationsConnectGitHubIntegrationResponses];
6882
+ export type IntegrationsCompleteGitHubUserLinkResponse = IntegrationsCompleteGitHubUserLinkResponses[keyof IntegrationsCompleteGitHubUserLinkResponses];
6141
6883
 
6142
- export type IntegrationsRemoveGitHubUserLinkData = {
6884
+ export type IntegrationsConnectGitHubUserLinkData = {
6143
6885
  body?: never;
6144
6886
  path: {
6145
6887
  orgId: string;
6146
6888
  };
6147
6889
  query?: never;
6148
- url: '/v1/orgs/{orgId}/integrations/github/user-link';
6890
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/connect';
6149
6891
  };
6150
6892
 
6151
- export type IntegrationsRemoveGitHubUserLinkErrors = {
6893
+ export type IntegrationsConnectGitHubUserLinkErrors = {
6152
6894
  /**
6153
6895
  * BadRequestError
6154
6896
  */
@@ -6199,16 +6941,17 @@ export type IntegrationsRemoveGitHubUserLinkErrors = {
6199
6941
  503: ServiceUnavailableError;
6200
6942
  };
6201
6943
 
6202
- export type IntegrationsRemoveGitHubUserLinkError = IntegrationsRemoveGitHubUserLinkErrors[keyof IntegrationsRemoveGitHubUserLinkErrors];
6944
+ export type IntegrationsConnectGitHubUserLinkError = IntegrationsConnectGitHubUserLinkErrors[keyof IntegrationsConnectGitHubUserLinkErrors];
6203
6945
 
6204
- export type IntegrationsRemoveGitHubUserLinkResponses = {
6946
+ export type IntegrationsConnectGitHubUserLinkResponses = {
6205
6947
  /**
6206
6948
  * Success
6207
6949
  */
6208
6950
  200: {
6209
6951
  code: number;
6210
6952
  data: {
6211
- removed: boolean;
6953
+ state: string;
6954
+ url: string;
6212
6955
  } | null;
6213
6956
  error: {
6214
6957
  code: string;
@@ -6236,18 +6979,18 @@ export type IntegrationsRemoveGitHubUserLinkResponses = {
6236
6979
  };
6237
6980
  };
6238
6981
 
6239
- export type IntegrationsRemoveGitHubUserLinkResponse = IntegrationsRemoveGitHubUserLinkResponses[keyof IntegrationsRemoveGitHubUserLinkResponses];
6982
+ export type IntegrationsConnectGitHubUserLinkResponse = IntegrationsConnectGitHubUserLinkResponses[keyof IntegrationsConnectGitHubUserLinkResponses];
6240
6983
 
6241
- export type IntegrationsGetGitHubUserLinkData = {
6984
+ export type IntegrationsLinkGitHubSignInAccountData = {
6242
6985
  body?: never;
6243
6986
  path: {
6244
6987
  orgId: string;
6245
6988
  };
6246
6989
  query?: never;
6247
- url: '/v1/orgs/{orgId}/integrations/github/user-link';
6990
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/sign-in-account';
6248
6991
  };
6249
6992
 
6250
- export type IntegrationsGetGitHubUserLinkErrors = {
6993
+ export type IntegrationsLinkGitHubSignInAccountErrors = {
6251
6994
  /**
6252
6995
  * BadRequestError
6253
6996
  */
@@ -6298,26 +7041,21 @@ export type IntegrationsGetGitHubUserLinkErrors = {
6298
7041
  503: ServiceUnavailableError;
6299
7042
  };
6300
7043
 
6301
- export type IntegrationsGetGitHubUserLinkError = IntegrationsGetGitHubUserLinkErrors[keyof IntegrationsGetGitHubUserLinkErrors];
7044
+ export type IntegrationsLinkGitHubSignInAccountError = IntegrationsLinkGitHubSignInAccountErrors[keyof IntegrationsLinkGitHubSignInAccountErrors];
6302
7045
 
6303
- export type IntegrationsGetGitHubUserLinkResponses = {
7046
+ export type IntegrationsLinkGitHubSignInAccountResponses = {
6304
7047
  /**
6305
7048
  * Success
6306
7049
  */
6307
7050
  200: {
6308
7051
  code: number;
6309
7052
  data: {
6310
- configured: boolean;
6311
7053
  link: {
6312
7054
  githubLogin: string;
6313
7055
  githubUserId: string;
6314
7056
  linkedAt: string;
6315
7057
  source: 'user_authorization' | 'installation' | 'sign_in';
6316
- } | null;
6317
- signInAccount: {
6318
- githubLogin: string;
6319
- githubUserId: string;
6320
- } | null;
7058
+ };
6321
7059
  } | null;
6322
7060
  error: {
6323
7061
  code: string;
@@ -6345,21 +7083,18 @@ export type IntegrationsGetGitHubUserLinkResponses = {
6345
7083
  };
6346
7084
  };
6347
7085
 
6348
- export type IntegrationsGetGitHubUserLinkResponse = IntegrationsGetGitHubUserLinkResponses[keyof IntegrationsGetGitHubUserLinkResponses];
7086
+ export type IntegrationsLinkGitHubSignInAccountResponse = IntegrationsLinkGitHubSignInAccountResponses[keyof IntegrationsLinkGitHubSignInAccountResponses];
6349
7087
 
6350
- export type IntegrationsCompleteGitHubUserLinkData = {
6351
- body: {
6352
- code: string;
6353
- state: string;
6354
- };
7088
+ export type SlackIntegrationDisconnectSlackData = {
7089
+ body?: never;
6355
7090
  path: {
6356
7091
  orgId: string;
6357
7092
  };
6358
7093
  query?: never;
6359
- url: '/v1/orgs/{orgId}/integrations/github/user-link/callback';
7094
+ url: '/v1/orgs/{orgId}/integrations/slack';
6360
7095
  };
6361
7096
 
6362
- export type IntegrationsCompleteGitHubUserLinkErrors = {
7097
+ export type SlackIntegrationDisconnectSlackErrors = {
6363
7098
  /**
6364
7099
  * BadRequestError
6365
7100
  */
@@ -6410,21 +7145,16 @@ export type IntegrationsCompleteGitHubUserLinkErrors = {
6410
7145
  503: ServiceUnavailableError;
6411
7146
  };
6412
7147
 
6413
- export type IntegrationsCompleteGitHubUserLinkError = IntegrationsCompleteGitHubUserLinkErrors[keyof IntegrationsCompleteGitHubUserLinkErrors];
7148
+ export type SlackIntegrationDisconnectSlackError = SlackIntegrationDisconnectSlackErrors[keyof SlackIntegrationDisconnectSlackErrors];
6414
7149
 
6415
- export type IntegrationsCompleteGitHubUserLinkResponses = {
7150
+ export type SlackIntegrationDisconnectSlackResponses = {
6416
7151
  /**
6417
7152
  * Success
6418
7153
  */
6419
7154
  200: {
6420
7155
  code: number;
6421
7156
  data: {
6422
- link: {
6423
- githubLogin: string;
6424
- githubUserId: string;
6425
- linkedAt: string;
6426
- source: 'user_authorization' | 'installation' | 'sign_in';
6427
- };
7157
+ disconnected: boolean;
6428
7158
  } | null;
6429
7159
  error: {
6430
7160
  code: string;
@@ -6452,18 +7182,18 @@ export type IntegrationsCompleteGitHubUserLinkResponses = {
6452
7182
  };
6453
7183
  };
6454
7184
 
6455
- export type IntegrationsCompleteGitHubUserLinkResponse = IntegrationsCompleteGitHubUserLinkResponses[keyof IntegrationsCompleteGitHubUserLinkResponses];
7185
+ export type SlackIntegrationDisconnectSlackResponse = SlackIntegrationDisconnectSlackResponses[keyof SlackIntegrationDisconnectSlackResponses];
6456
7186
 
6457
- export type IntegrationsConnectGitHubUserLinkData = {
7187
+ export type SlackIntegrationGetSlackIntegrationData = {
6458
7188
  body?: never;
6459
7189
  path: {
6460
7190
  orgId: string;
6461
7191
  };
6462
7192
  query?: never;
6463
- url: '/v1/orgs/{orgId}/integrations/github/user-link/connect';
7193
+ url: '/v1/orgs/{orgId}/integrations/slack';
6464
7194
  };
6465
7195
 
6466
- export type IntegrationsConnectGitHubUserLinkErrors = {
7196
+ export type SlackIntegrationGetSlackIntegrationErrors = {
6467
7197
  /**
6468
7198
  * BadRequestError
6469
7199
  */
@@ -6514,17 +7244,24 @@ export type IntegrationsConnectGitHubUserLinkErrors = {
6514
7244
  503: ServiceUnavailableError;
6515
7245
  };
6516
7246
 
6517
- export type IntegrationsConnectGitHubUserLinkError = IntegrationsConnectGitHubUserLinkErrors[keyof IntegrationsConnectGitHubUserLinkErrors];
7247
+ export type SlackIntegrationGetSlackIntegrationError = SlackIntegrationGetSlackIntegrationErrors[keyof SlackIntegrationGetSlackIntegrationErrors];
6518
7248
 
6519
- export type IntegrationsConnectGitHubUserLinkResponses = {
7249
+ export type SlackIntegrationGetSlackIntegrationResponses = {
6520
7250
  /**
6521
7251
  * Success
6522
7252
  */
6523
7253
  200: {
6524
7254
  code: number;
6525
7255
  data: {
6526
- state: string;
6527
- url: string;
7256
+ configured: boolean;
7257
+ installation: {
7258
+ botUserId: string;
7259
+ createdAt: string;
7260
+ id: string;
7261
+ installedByPrincipalId: string | null;
7262
+ slackTeamId: string;
7263
+ slackTeamName: string;
7264
+ } | null;
6528
7265
  } | null;
6529
7266
  error: {
6530
7267
  code: string;
@@ -6552,18 +7289,21 @@ export type IntegrationsConnectGitHubUserLinkResponses = {
6552
7289
  };
6553
7290
  };
6554
7291
 
6555
- export type IntegrationsConnectGitHubUserLinkResponse = IntegrationsConnectGitHubUserLinkResponses[keyof IntegrationsConnectGitHubUserLinkResponses];
7292
+ export type SlackIntegrationGetSlackIntegrationResponse = SlackIntegrationGetSlackIntegrationResponses[keyof SlackIntegrationGetSlackIntegrationResponses];
6556
7293
 
6557
- export type IntegrationsLinkGitHubSignInAccountData = {
6558
- body?: never;
7294
+ export type SlackIntegrationCompleteSlackInstallData = {
7295
+ body: {
7296
+ code: string;
7297
+ state: string;
7298
+ };
6559
7299
  path: {
6560
7300
  orgId: string;
6561
7301
  };
6562
7302
  query?: never;
6563
- url: '/v1/orgs/{orgId}/integrations/github/user-link/sign-in-account';
7303
+ url: '/v1/orgs/{orgId}/integrations/slack/complete';
6564
7304
  };
6565
7305
 
6566
- export type IntegrationsLinkGitHubSignInAccountErrors = {
7306
+ export type SlackIntegrationCompleteSlackInstallErrors = {
6567
7307
  /**
6568
7308
  * BadRequestError
6569
7309
  */
@@ -6614,20 +7354,22 @@ export type IntegrationsLinkGitHubSignInAccountErrors = {
6614
7354
  503: ServiceUnavailableError;
6615
7355
  };
6616
7356
 
6617
- export type IntegrationsLinkGitHubSignInAccountError = IntegrationsLinkGitHubSignInAccountErrors[keyof IntegrationsLinkGitHubSignInAccountErrors];
7357
+ export type SlackIntegrationCompleteSlackInstallError = SlackIntegrationCompleteSlackInstallErrors[keyof SlackIntegrationCompleteSlackInstallErrors];
6618
7358
 
6619
- export type IntegrationsLinkGitHubSignInAccountResponses = {
7359
+ export type SlackIntegrationCompleteSlackInstallResponses = {
6620
7360
  /**
6621
7361
  * Success
6622
7362
  */
6623
7363
  200: {
6624
7364
  code: number;
6625
7365
  data: {
6626
- link: {
6627
- githubLogin: string;
6628
- githubUserId: string;
6629
- linkedAt: string;
6630
- source: 'user_authorization' | 'installation' | 'sign_in';
7366
+ installation: {
7367
+ botUserId: string;
7368
+ createdAt: string;
7369
+ id: string;
7370
+ installedByPrincipalId: string | null;
7371
+ slackTeamId: string;
7372
+ slackTeamName: string;
6631
7373
  };
6632
7374
  } | null;
6633
7375
  error: {
@@ -6656,18 +7398,18 @@ export type IntegrationsLinkGitHubSignInAccountResponses = {
6656
7398
  };
6657
7399
  };
6658
7400
 
6659
- export type IntegrationsLinkGitHubSignInAccountResponse = IntegrationsLinkGitHubSignInAccountResponses[keyof IntegrationsLinkGitHubSignInAccountResponses];
7401
+ export type SlackIntegrationCompleteSlackInstallResponse = SlackIntegrationCompleteSlackInstallResponses[keyof SlackIntegrationCompleteSlackInstallResponses];
6660
7402
 
6661
- export type SlackIntegrationDisconnectSlackData = {
7403
+ export type SlackIntegrationCreateSlackInstallUrlData = {
6662
7404
  body?: never;
6663
7405
  path: {
6664
7406
  orgId: string;
6665
7407
  };
6666
7408
  query?: never;
6667
- url: '/v1/orgs/{orgId}/integrations/slack';
7409
+ url: '/v1/orgs/{orgId}/integrations/slack/install-url';
6668
7410
  };
6669
7411
 
6670
- export type SlackIntegrationDisconnectSlackErrors = {
7412
+ export type SlackIntegrationCreateSlackInstallUrlErrors = {
6671
7413
  /**
6672
7414
  * BadRequestError
6673
7415
  */
@@ -6718,16 +7460,17 @@ export type SlackIntegrationDisconnectSlackErrors = {
6718
7460
  503: ServiceUnavailableError;
6719
7461
  };
6720
7462
 
6721
- export type SlackIntegrationDisconnectSlackError = SlackIntegrationDisconnectSlackErrors[keyof SlackIntegrationDisconnectSlackErrors];
7463
+ export type SlackIntegrationCreateSlackInstallUrlError = SlackIntegrationCreateSlackInstallUrlErrors[keyof SlackIntegrationCreateSlackInstallUrlErrors];
6722
7464
 
6723
- export type SlackIntegrationDisconnectSlackResponses = {
7465
+ export type SlackIntegrationCreateSlackInstallUrlResponses = {
6724
7466
  /**
6725
7467
  * Success
6726
7468
  */
6727
7469
  200: {
6728
7470
  code: number;
6729
7471
  data: {
6730
- disconnected: boolean;
7472
+ state: string;
7473
+ url: string;
6731
7474
  } | null;
6732
7475
  error: {
6733
7476
  code: string;
@@ -6755,18 +7498,18 @@ export type SlackIntegrationDisconnectSlackResponses = {
6755
7498
  };
6756
7499
  };
6757
7500
 
6758
- export type SlackIntegrationDisconnectSlackResponse = SlackIntegrationDisconnectSlackResponses[keyof SlackIntegrationDisconnectSlackResponses];
7501
+ export type SlackIntegrationCreateSlackInstallUrlResponse = SlackIntegrationCreateSlackInstallUrlResponses[keyof SlackIntegrationCreateSlackInstallUrlResponses];
6759
7502
 
6760
- export type SlackIntegrationGetSlackIntegrationData = {
7503
+ export type SlackIntegrationListSlackUserLinksData = {
6761
7504
  body?: never;
6762
7505
  path: {
6763
7506
  orgId: string;
6764
7507
  };
6765
7508
  query?: never;
6766
- url: '/v1/orgs/{orgId}/integrations/slack';
7509
+ url: '/v1/orgs/{orgId}/integrations/slack/links';
6767
7510
  };
6768
7511
 
6769
- export type SlackIntegrationGetSlackIntegrationErrors = {
7512
+ export type SlackIntegrationListSlackUserLinksErrors = {
6770
7513
  /**
6771
7514
  * BadRequestError
6772
7515
  */
@@ -6817,25 +7560,21 @@ export type SlackIntegrationGetSlackIntegrationErrors = {
6817
7560
  503: ServiceUnavailableError;
6818
7561
  };
6819
7562
 
6820
- export type SlackIntegrationGetSlackIntegrationError = SlackIntegrationGetSlackIntegrationErrors[keyof SlackIntegrationGetSlackIntegrationErrors];
7563
+ export type SlackIntegrationListSlackUserLinksError = SlackIntegrationListSlackUserLinksErrors[keyof SlackIntegrationListSlackUserLinksErrors];
6821
7564
 
6822
- export type SlackIntegrationGetSlackIntegrationResponses = {
7565
+ export type SlackIntegrationListSlackUserLinksResponses = {
6823
7566
  /**
6824
7567
  * Success
6825
7568
  */
6826
7569
  200: {
6827
7570
  code: number;
6828
- data: {
6829
- configured: boolean;
6830
- installation: {
6831
- botUserId: string;
6832
- createdAt: string;
6833
- id: string;
6834
- installedByPrincipalId: string | null;
6835
- slackTeamId: string;
6836
- slackTeamName: string;
6837
- } | null;
6838
- } | null;
7571
+ data: Array<{
7572
+ createdAt: string;
7573
+ id: string;
7574
+ platformPrincipalId: string;
7575
+ slackTeamId: string;
7576
+ slackUserId: string;
7577
+ }> | null;
6839
7578
  error: {
6840
7579
  code: string;
6841
7580
  details?: unknown | null;
@@ -6862,21 +7601,18 @@ export type SlackIntegrationGetSlackIntegrationResponses = {
6862
7601
  };
6863
7602
  };
6864
7603
 
6865
- export type SlackIntegrationGetSlackIntegrationResponse = SlackIntegrationGetSlackIntegrationResponses[keyof SlackIntegrationGetSlackIntegrationResponses];
7604
+ export type SlackIntegrationListSlackUserLinksResponse = SlackIntegrationListSlackUserLinksResponses[keyof SlackIntegrationListSlackUserLinksResponses];
6866
7605
 
6867
- export type SlackIntegrationCompleteSlackInstallData = {
6868
- body: {
6869
- code: string;
6870
- state: string;
6871
- };
7606
+ export type SlackIntegrationGetMySlackUserLinkData = {
7607
+ body?: never;
6872
7608
  path: {
6873
7609
  orgId: string;
6874
7610
  };
6875
7611
  query?: never;
6876
- url: '/v1/orgs/{orgId}/integrations/slack/complete';
7612
+ url: '/v1/orgs/{orgId}/integrations/slack/links/me';
6877
7613
  };
6878
7614
 
6879
- export type SlackIntegrationCompleteSlackInstallErrors = {
7615
+ export type SlackIntegrationGetMySlackUserLinkErrors = {
6880
7616
  /**
6881
7617
  * BadRequestError
6882
7618
  */
@@ -6927,23 +7663,20 @@ export type SlackIntegrationCompleteSlackInstallErrors = {
6927
7663
  503: ServiceUnavailableError;
6928
7664
  };
6929
7665
 
6930
- export type SlackIntegrationCompleteSlackInstallError = SlackIntegrationCompleteSlackInstallErrors[keyof SlackIntegrationCompleteSlackInstallErrors];
7666
+ export type SlackIntegrationGetMySlackUserLinkError = SlackIntegrationGetMySlackUserLinkErrors[keyof SlackIntegrationGetMySlackUserLinkErrors];
6931
7667
 
6932
- export type SlackIntegrationCompleteSlackInstallResponses = {
7668
+ export type SlackIntegrationGetMySlackUserLinkResponses = {
6933
7669
  /**
6934
7670
  * Success
6935
7671
  */
6936
7672
  200: {
6937
7673
  code: number;
6938
7674
  data: {
6939
- installation: {
6940
- botUserId: string;
6941
- createdAt: string;
6942
- id: string;
6943
- installedByPrincipalId: string | null;
6944
- slackTeamId: string;
6945
- slackTeamName: string;
6946
- };
7675
+ createdAt: string;
7676
+ id: string;
7677
+ platformPrincipalId: string;
7678
+ slackTeamId: string;
7679
+ slackUserId: string;
6947
7680
  } | null;
6948
7681
  error: {
6949
7682
  code: string;
@@ -6971,18 +7704,19 @@ export type SlackIntegrationCompleteSlackInstallResponses = {
6971
7704
  };
6972
7705
  };
6973
7706
 
6974
- export type SlackIntegrationCompleteSlackInstallResponse = SlackIntegrationCompleteSlackInstallResponses[keyof SlackIntegrationCompleteSlackInstallResponses];
7707
+ export type SlackIntegrationGetMySlackUserLinkResponse = SlackIntegrationGetMySlackUserLinkResponses[keyof SlackIntegrationGetMySlackUserLinkResponses];
6975
7708
 
6976
- export type SlackIntegrationCreateSlackInstallUrlData = {
7709
+ export type SlackIntegrationRemoveSlackUserLinkData = {
6977
7710
  body?: never;
6978
7711
  path: {
6979
7712
  orgId: string;
7713
+ linkId: string;
6980
7714
  };
6981
7715
  query?: never;
6982
- url: '/v1/orgs/{orgId}/integrations/slack/install-url';
7716
+ url: '/v1/orgs/{orgId}/integrations/slack/links/{linkId}';
6983
7717
  };
6984
7718
 
6985
- export type SlackIntegrationCreateSlackInstallUrlErrors = {
7719
+ export type SlackIntegrationRemoveSlackUserLinkErrors = {
6986
7720
  /**
6987
7721
  * BadRequestError
6988
7722
  */
@@ -7033,17 +7767,16 @@ export type SlackIntegrationCreateSlackInstallUrlErrors = {
7033
7767
  503: ServiceUnavailableError;
7034
7768
  };
7035
7769
 
7036
- export type SlackIntegrationCreateSlackInstallUrlError = SlackIntegrationCreateSlackInstallUrlErrors[keyof SlackIntegrationCreateSlackInstallUrlErrors];
7770
+ export type SlackIntegrationRemoveSlackUserLinkError = SlackIntegrationRemoveSlackUserLinkErrors[keyof SlackIntegrationRemoveSlackUserLinkErrors];
7037
7771
 
7038
- export type SlackIntegrationCreateSlackInstallUrlResponses = {
7772
+ export type SlackIntegrationRemoveSlackUserLinkResponses = {
7039
7773
  /**
7040
7774
  * Success
7041
7775
  */
7042
7776
  200: {
7043
7777
  code: number;
7044
7778
  data: {
7045
- state: string;
7046
- url: string;
7779
+ deleted: boolean;
7047
7780
  } | null;
7048
7781
  error: {
7049
7782
  code: string;
@@ -7071,7 +7804,7 @@ export type SlackIntegrationCreateSlackInstallUrlResponses = {
7071
7804
  };
7072
7805
  };
7073
7806
 
7074
- export type SlackIntegrationCreateSlackInstallUrlResponse = SlackIntegrationCreateSlackInstallUrlResponses[keyof SlackIntegrationCreateSlackInstallUrlResponses];
7807
+ export type SlackIntegrationRemoveSlackUserLinkResponse = SlackIntegrationRemoveSlackUserLinkResponses[keyof SlackIntegrationRemoveSlackUserLinkResponses];
7075
7808
 
7076
7809
  export type OrganizationsListOrganizationInvitationsData = {
7077
7810
  body?: never;
@@ -10404,9 +11137,8 @@ export type UsageListUsagePrincipalsData = {
10404
11137
  path: {
10405
11138
  orgId: string;
10406
11139
  };
10407
- query?: {
10408
- query?: string | null;
10409
- email?: string | null;
11140
+ query: {
11141
+ query: string;
10410
11142
  };
10411
11143
  url: '/v1/orgs/{orgId}/usage/principals';
10412
11144
  };
@@ -26629,6 +27361,7 @@ export type SessionsListSessionsResponses = {
26629
27361
  code: number;
26630
27362
  data: {
26631
27363
  items: Array<{
27364
+ agentTitle?: string | null;
26632
27365
  apiPriceEquivalentUsd: number | null;
26633
27366
  billedCostUsd: number | null;
26634
27367
  billingMode: 'subscription' | 'api' | 'unknown' | 'mixed' | null;
@@ -26869,6 +27602,7 @@ export type SessionsGetSessionResponses = {
26869
27602
  code: number;
26870
27603
  data: {
26871
27604
  session: {
27605
+ agentTitle?: string | null;
26872
27606
  apiPriceEquivalentUsd: number | null;
26873
27607
  billedCostUsd: number | null;
26874
27608
  billingMode: 'subscription' | 'api' | 'unknown' | 'mixed' | null;
@@ -27021,9 +27755,11 @@ export type SessionsGetSessionResponses = {
27021
27755
  }>;
27022
27756
  };
27023
27757
  timeline: Array<{
27758
+ agentCall?: 'quota-probe' | 'session-title' | null;
27024
27759
  durationMs: number;
27025
27760
  firstUserMessage: string | null;
27026
27761
  inputTokens: number;
27762
+ lastUserMessage?: string | null;
27027
27763
  model: string | null;
27028
27764
  name: string;
27029
27765
  outputTokens: number;
@@ -27133,6 +27869,7 @@ export type SessionsExportSessionResponses = {
27133
27869
  */
27134
27870
  200: {
27135
27871
  session: {
27872
+ agentTitle?: string | null;
27136
27873
  apiPriceEquivalentUsd: number | null;
27137
27874
  billedCostUsd: number | null;
27138
27875
  billingMode: 'subscription' | 'api' | 'unknown' | 'mixed' | null;