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

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.
@@ -176,6 +176,11 @@ export type PrincipalApiKeyContextInvariant = {
176
176
  workspaceId: string | null;
177
177
  } | null;
178
178
  audience: Array<string>;
179
+ delegation?: {
180
+ actor: 'assistant:slack';
181
+ organizationId: string;
182
+ scopes: Array<string>;
183
+ } | null;
179
184
  email: string | null;
180
185
  emailVerified: boolean;
181
186
  externalId: string;
@@ -1301,7 +1306,6 @@ export type SlackIntegrationLookupSlackInstallationResponses = {
1301
1306
  200: {
1302
1307
  code: number;
1303
1308
  data: {
1304
- apiKey: string;
1305
1309
  botToken: string;
1306
1310
  botUserId: string;
1307
1311
  organizationId: string;
@@ -1332,6 +1336,213 @@ export type SlackIntegrationLookupSlackInstallationResponses = {
1332
1336
  };
1333
1337
  };
1334
1338
  export type SlackIntegrationLookupSlackInstallationResponse = SlackIntegrationLookupSlackInstallationResponses[keyof SlackIntegrationLookupSlackInstallationResponses];
1339
+ export type SlackIntegrationRecordRefusedSlackRunData = {
1340
+ body: {
1341
+ run: {
1342
+ finishedAt: string;
1343
+ model: string;
1344
+ outcome: 'answered' | 'limit_tool_rounds' | 'limit_wall_clock' | 'limit_output_tokens' | 'refused' | 'credential_expired' | 'model_error' | 'disabled' | 'superseded' | 'credential_unavailable';
1345
+ reason?: 'asker_external' | 'asker_guest' | 'shared_channel' | 'guest_in_channel' | 'unverified' | 'not_linked' | 'credential_unavailable' | null;
1346
+ reportedAsker?: {
1347
+ slackTeamId: string;
1348
+ slackUserId: string;
1349
+ } | null;
1350
+ runId: string;
1351
+ runType: 'data_question' | 'skill_run';
1352
+ startedAt: string;
1353
+ surface: 'slack' | 'web_chat' | 'mcp';
1354
+ toolsCalled: Array<string>;
1355
+ };
1356
+ slackTeamId: string;
1357
+ };
1358
+ path?: never;
1359
+ query?: never;
1360
+ url: '/internal/slack/runs/refused';
1361
+ };
1362
+ export type SlackIntegrationRecordRefusedSlackRunErrors = {
1363
+ /**
1364
+ * BadRequestError
1365
+ */
1366
+ 400: BadRequestError;
1367
+ /**
1368
+ * UnauthorizedError
1369
+ */
1370
+ 401: UnauthorizedError;
1371
+ /**
1372
+ * ForbiddenError
1373
+ */
1374
+ 403: ForbiddenError;
1375
+ /**
1376
+ * NotFoundError
1377
+ */
1378
+ 404: NotFoundError;
1379
+ /**
1380
+ * ConflictError
1381
+ */
1382
+ 409: ConflictError;
1383
+ /**
1384
+ * GoneError
1385
+ */
1386
+ 410: GoneError;
1387
+ /**
1388
+ * ContentTooLargeError
1389
+ */
1390
+ 413: ContentTooLargeError;
1391
+ /**
1392
+ * MisdirectedRequestError
1393
+ */
1394
+ 421: MisdirectedRequestError;
1395
+ /**
1396
+ * UnprocessableEntityError
1397
+ */
1398
+ 422: UnprocessableEntityError;
1399
+ /**
1400
+ * TooManyRequestsError
1401
+ */
1402
+ 429: TooManyRequestsError;
1403
+ /**
1404
+ * InternalServerError
1405
+ */
1406
+ 500: InternalServerError;
1407
+ /**
1408
+ * ServiceUnavailableError
1409
+ */
1410
+ 503: ServiceUnavailableError;
1411
+ };
1412
+ export type SlackIntegrationRecordRefusedSlackRunError = SlackIntegrationRecordRefusedSlackRunErrors[keyof SlackIntegrationRecordRefusedSlackRunErrors];
1413
+ export type SlackIntegrationRecordRefusedSlackRunResponses = {
1414
+ /**
1415
+ * Success
1416
+ */
1417
+ 201: {
1418
+ code: number;
1419
+ data: {
1420
+ id: string;
1421
+ } | null;
1422
+ error: {
1423
+ code: string;
1424
+ details?: unknown | null;
1425
+ message: string;
1426
+ rowErrors?: Array<{
1427
+ code: string;
1428
+ message: string;
1429
+ path: Array<string | number>;
1430
+ }> | null;
1431
+ } | null;
1432
+ pagination: {
1433
+ limit: number;
1434
+ page: number;
1435
+ total: number;
1436
+ totalPages: number;
1437
+ } | null;
1438
+ sdkBehavior?: {
1439
+ flags: {
1440
+ [key: string]: unknown;
1441
+ };
1442
+ v: number;
1443
+ } | null;
1444
+ success: boolean;
1445
+ };
1446
+ };
1447
+ export type SlackIntegrationRecordRefusedSlackRunResponse = SlackIntegrationRecordRefusedSlackRunResponses[keyof SlackIntegrationRecordRefusedSlackRunResponses];
1448
+ export type SlackIntegrationIssueSlackUserCredentialData = {
1449
+ body: {
1450
+ slackTeamId: string;
1451
+ slackUserId: string;
1452
+ };
1453
+ path?: never;
1454
+ query?: never;
1455
+ url: '/internal/slack/users/credential';
1456
+ };
1457
+ export type SlackIntegrationIssueSlackUserCredentialErrors = {
1458
+ /**
1459
+ * BadRequestError
1460
+ */
1461
+ 400: BadRequestError;
1462
+ /**
1463
+ * UnauthorizedError
1464
+ */
1465
+ 401: UnauthorizedError;
1466
+ /**
1467
+ * ForbiddenError
1468
+ */
1469
+ 403: ForbiddenError;
1470
+ /**
1471
+ * NotFoundError
1472
+ */
1473
+ 404: NotFoundError;
1474
+ /**
1475
+ * ConflictError
1476
+ */
1477
+ 409: ConflictError;
1478
+ /**
1479
+ * GoneError
1480
+ */
1481
+ 410: GoneError;
1482
+ /**
1483
+ * ContentTooLargeError
1484
+ */
1485
+ 413: ContentTooLargeError;
1486
+ /**
1487
+ * MisdirectedRequestError
1488
+ */
1489
+ 421: MisdirectedRequestError;
1490
+ /**
1491
+ * UnprocessableEntityError
1492
+ */
1493
+ 422: UnprocessableEntityError;
1494
+ /**
1495
+ * TooManyRequestsError
1496
+ */
1497
+ 429: TooManyRequestsError;
1498
+ /**
1499
+ * InternalServerError
1500
+ */
1501
+ 500: InternalServerError;
1502
+ /**
1503
+ * ServiceUnavailableError
1504
+ */
1505
+ 503: ServiceUnavailableError;
1506
+ };
1507
+ export type SlackIntegrationIssueSlackUserCredentialError = SlackIntegrationIssueSlackUserCredentialErrors[keyof SlackIntegrationIssueSlackUserCredentialErrors];
1508
+ export type SlackIntegrationIssueSlackUserCredentialResponses = {
1509
+ /**
1510
+ * Success
1511
+ */
1512
+ 200: {
1513
+ code: number;
1514
+ data: {
1515
+ credential: string;
1516
+ displayName: string | null;
1517
+ expiresAt: string;
1518
+ principalId: string;
1519
+ } | null;
1520
+ error: {
1521
+ code: string;
1522
+ details?: unknown | null;
1523
+ message: string;
1524
+ rowErrors?: Array<{
1525
+ code: string;
1526
+ message: string;
1527
+ path: Array<string | number>;
1528
+ }> | null;
1529
+ } | null;
1530
+ pagination: {
1531
+ limit: number;
1532
+ page: number;
1533
+ total: number;
1534
+ totalPages: number;
1535
+ } | null;
1536
+ sdkBehavior?: {
1537
+ flags: {
1538
+ [key: string]: unknown;
1539
+ };
1540
+ v: number;
1541
+ } | null;
1542
+ success: boolean;
1543
+ };
1544
+ };
1545
+ export type SlackIntegrationIssueSlackUserCredentialResponse = SlackIntegrationIssueSlackUserCredentialResponses[keyof SlackIntegrationIssueSlackUserCredentialResponses];
1335
1546
  export type HealthReadyzData = {
1336
1547
  body?: never;
1337
1548
  path?: never;
@@ -3884,15 +4095,16 @@ export type IngestTokenExchangeIngestTokenResponses = {
3884
4095
  };
3885
4096
  };
3886
4097
  export type IngestTokenExchangeIngestTokenResponse = IngestTokenExchangeIngestTokenResponses[keyof IngestTokenExchangeIngestTokenResponses];
3887
- export type OrganizationsAcceptOrganizationInvitationData = {
4098
+ export type SlackIntegrationCompleteSlackUserLinkData = {
3888
4099
  body: {
3889
- token: string;
4100
+ code: string;
4101
+ state: string;
3890
4102
  };
3891
4103
  path?: never;
3892
4104
  query?: never;
3893
- url: '/v1/invitations/accept';
4105
+ url: '/v1/integrations/slack/link/complete';
3894
4106
  };
3895
- export type OrganizationsAcceptOrganizationInvitationErrors = {
4107
+ export type SlackIntegrationCompleteSlackUserLinkErrors = {
3896
4108
  /**
3897
4109
  * BadRequestError
3898
4110
  */
@@ -3942,16 +4154,23 @@ export type OrganizationsAcceptOrganizationInvitationErrors = {
3942
4154
  */
3943
4155
  503: ServiceUnavailableError;
3944
4156
  };
3945
- export type OrganizationsAcceptOrganizationInvitationError = OrganizationsAcceptOrganizationInvitationErrors[keyof OrganizationsAcceptOrganizationInvitationErrors];
3946
- export type OrganizationsAcceptOrganizationInvitationResponses = {
4157
+ export type SlackIntegrationCompleteSlackUserLinkError = SlackIntegrationCompleteSlackUserLinkErrors[keyof SlackIntegrationCompleteSlackUserLinkErrors];
4158
+ export type SlackIntegrationCompleteSlackUserLinkResponses = {
3947
4159
  /**
3948
4160
  * Success
3949
4161
  */
3950
4162
  200: {
3951
4163
  code: number;
3952
4164
  data: {
3953
- accepted: boolean;
3954
4165
  organizationId: string;
4166
+ organizationName: string;
4167
+ replaced: Array<{
4168
+ platformPrincipalId: string;
4169
+ slackTeamId: string;
4170
+ slackUserId: string;
4171
+ }>;
4172
+ slackUserName: string | null;
4173
+ workspaceName: string;
3955
4174
  } | null;
3956
4175
  error: {
3957
4176
  code: string;
@@ -3978,14 +4197,14 @@ export type OrganizationsAcceptOrganizationInvitationResponses = {
3978
4197
  success: boolean;
3979
4198
  };
3980
4199
  };
3981
- export type OrganizationsAcceptOrganizationInvitationResponse = OrganizationsAcceptOrganizationInvitationResponses[keyof OrganizationsAcceptOrganizationInvitationResponses];
3982
- export type OrganizationsAcceptPendingOrganizationInvitationsData = {
4200
+ export type SlackIntegrationCompleteSlackUserLinkResponse = SlackIntegrationCompleteSlackUserLinkResponses[keyof SlackIntegrationCompleteSlackUserLinkResponses];
4201
+ export type SlackIntegrationStartSlackUserLinkData = {
3983
4202
  body?: never;
3984
4203
  path?: never;
3985
4204
  query?: never;
3986
- url: '/v1/invitations/accept-pending';
4205
+ url: '/v1/integrations/slack/link/start';
3987
4206
  };
3988
- export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
4207
+ export type SlackIntegrationStartSlackUserLinkErrors = {
3989
4208
  /**
3990
4209
  * BadRequestError
3991
4210
  */
@@ -4035,15 +4254,15 @@ export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
4035
4254
  */
4036
4255
  503: ServiceUnavailableError;
4037
4256
  };
4038
- export type OrganizationsAcceptPendingOrganizationInvitationsError = OrganizationsAcceptPendingOrganizationInvitationsErrors[keyof OrganizationsAcceptPendingOrganizationInvitationsErrors];
4039
- export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
4257
+ export type SlackIntegrationStartSlackUserLinkError = SlackIntegrationStartSlackUserLinkErrors[keyof SlackIntegrationStartSlackUserLinkErrors];
4258
+ export type SlackIntegrationStartSlackUserLinkResponses = {
4040
4259
  /**
4041
4260
  * Success
4042
4261
  */
4043
4262
  200: {
4044
4263
  code: number;
4045
4264
  data: {
4046
- acceptedOrganizationIds: Array<string>;
4265
+ authorizeUrl: string;
4047
4266
  } | null;
4048
4267
  error: {
4049
4268
  code: string;
@@ -4070,16 +4289,16 @@ export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
4070
4289
  success: boolean;
4071
4290
  };
4072
4291
  };
4073
- export type OrganizationsAcceptPendingOrganizationInvitationsResponse = OrganizationsAcceptPendingOrganizationInvitationsResponses[keyof OrganizationsAcceptPendingOrganizationInvitationsResponses];
4074
- export type OrganizationsGetOrganizationInvitationDetailsData = {
4292
+ export type SlackIntegrationStartSlackUserLinkResponse = SlackIntegrationStartSlackUserLinkResponses[keyof SlackIntegrationStartSlackUserLinkResponses];
4293
+ export type OrganizationsAcceptOrganizationInvitationData = {
4075
4294
  body: {
4076
4295
  token: string;
4077
4296
  };
4078
4297
  path?: never;
4079
4298
  query?: never;
4080
- url: '/v1/invitations/details';
4299
+ url: '/v1/invitations/accept';
4081
4300
  };
4082
- export type OrganizationsGetOrganizationInvitationDetailsErrors = {
4301
+ export type OrganizationsAcceptOrganizationInvitationErrors = {
4083
4302
  /**
4084
4303
  * BadRequestError
4085
4304
  */
@@ -4129,19 +4348,16 @@ export type OrganizationsGetOrganizationInvitationDetailsErrors = {
4129
4348
  */
4130
4349
  503: ServiceUnavailableError;
4131
4350
  };
4132
- export type OrganizationsGetOrganizationInvitationDetailsError = OrganizationsGetOrganizationInvitationDetailsErrors[keyof OrganizationsGetOrganizationInvitationDetailsErrors];
4133
- export type OrganizationsGetOrganizationInvitationDetailsResponses = {
4351
+ export type OrganizationsAcceptOrganizationInvitationError = OrganizationsAcceptOrganizationInvitationErrors[keyof OrganizationsAcceptOrganizationInvitationErrors];
4352
+ export type OrganizationsAcceptOrganizationInvitationResponses = {
4134
4353
  /**
4135
4354
  * Success
4136
4355
  */
4137
4356
  200: {
4138
4357
  code: number;
4139
4358
  data: {
4140
- details: {
4141
- inviterEmail: string | null;
4142
- inviterName: string | null;
4143
- organizationName: string;
4144
- } | null;
4359
+ accepted: boolean;
4360
+ organizationId: string;
4145
4361
  } | null;
4146
4362
  error: {
4147
4363
  code: string;
@@ -4168,19 +4384,14 @@ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
4168
4384
  success: boolean;
4169
4385
  };
4170
4386
  };
4171
- export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
4172
- export type ApiKeysCreateApiKeySuperData = {
4173
- body: {
4174
- environment: 'live' | 'test';
4175
- orgId?: string | null;
4176
- projectId?: string | null;
4177
- scopes: Array<string>;
4178
- };
4387
+ export type OrganizationsAcceptOrganizationInvitationResponse = OrganizationsAcceptOrganizationInvitationResponses[keyof OrganizationsAcceptOrganizationInvitationResponses];
4388
+ export type OrganizationsAcceptPendingOrganizationInvitationsData = {
4389
+ body?: never;
4179
4390
  path?: never;
4180
4391
  query?: never;
4181
- url: '/v1/keys';
4392
+ url: '/v1/invitations/accept-pending';
4182
4393
  };
4183
- export type ApiKeysCreateApiKeySuperErrors = {
4394
+ export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
4184
4395
  /**
4185
4396
  * BadRequestError
4186
4397
  */
@@ -4230,17 +4441,15 @@ export type ApiKeysCreateApiKeySuperErrors = {
4230
4441
  */
4231
4442
  503: ServiceUnavailableError;
4232
4443
  };
4233
- export type ApiKeysCreateApiKeySuperError = ApiKeysCreateApiKeySuperErrors[keyof ApiKeysCreateApiKeySuperErrors];
4234
- export type ApiKeysCreateApiKeySuperResponses = {
4444
+ export type OrganizationsAcceptPendingOrganizationInvitationsError = OrganizationsAcceptPendingOrganizationInvitationsErrors[keyof OrganizationsAcceptPendingOrganizationInvitationsErrors];
4445
+ export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
4235
4446
  /**
4236
4447
  * Success
4237
4448
  */
4238
- 201: {
4449
+ 200: {
4239
4450
  code: number;
4240
4451
  data: {
4241
- expiresAt: string;
4242
- jwt: string;
4243
- key: string;
4452
+ acceptedOrganizationIds: Array<string>;
4244
4453
  } | null;
4245
4454
  error: {
4246
4455
  code: string;
@@ -4267,14 +4476,211 @@ export type ApiKeysCreateApiKeySuperResponses = {
4267
4476
  success: boolean;
4268
4477
  };
4269
4478
  };
4270
- export type ApiKeysCreateApiKeySuperResponse = ApiKeysCreateApiKeySuperResponses[keyof ApiKeysCreateApiKeySuperResponses];
4271
- export type ApiKeysRevokeApiKeySuperData = {
4272
- body?: never;
4273
- path: {
4274
- id: string;
4275
- };
4276
- query?: never;
4277
- url: '/v1/keys/{id}';
4479
+ export type OrganizationsAcceptPendingOrganizationInvitationsResponse = OrganizationsAcceptPendingOrganizationInvitationsResponses[keyof OrganizationsAcceptPendingOrganizationInvitationsResponses];
4480
+ export type OrganizationsGetOrganizationInvitationDetailsData = {
4481
+ body: {
4482
+ token: string;
4483
+ };
4484
+ path?: never;
4485
+ query?: never;
4486
+ url: '/v1/invitations/details';
4487
+ };
4488
+ export type OrganizationsGetOrganizationInvitationDetailsErrors = {
4489
+ /**
4490
+ * BadRequestError
4491
+ */
4492
+ 400: BadRequestError;
4493
+ /**
4494
+ * UnauthorizedError
4495
+ */
4496
+ 401: UnauthorizedError;
4497
+ /**
4498
+ * ForbiddenError
4499
+ */
4500
+ 403: ForbiddenError;
4501
+ /**
4502
+ * NotFoundError
4503
+ */
4504
+ 404: NotFoundError;
4505
+ /**
4506
+ * ConflictError
4507
+ */
4508
+ 409: ConflictError;
4509
+ /**
4510
+ * GoneError
4511
+ */
4512
+ 410: GoneError;
4513
+ /**
4514
+ * ContentTooLargeError
4515
+ */
4516
+ 413: ContentTooLargeError;
4517
+ /**
4518
+ * MisdirectedRequestError
4519
+ */
4520
+ 421: MisdirectedRequestError;
4521
+ /**
4522
+ * UnprocessableEntityError
4523
+ */
4524
+ 422: UnprocessableEntityError;
4525
+ /**
4526
+ * TooManyRequestsError
4527
+ */
4528
+ 429: TooManyRequestsError;
4529
+ /**
4530
+ * InternalServerError
4531
+ */
4532
+ 500: InternalServerError;
4533
+ /**
4534
+ * ServiceUnavailableError
4535
+ */
4536
+ 503: ServiceUnavailableError;
4537
+ };
4538
+ export type OrganizationsGetOrganizationInvitationDetailsError = OrganizationsGetOrganizationInvitationDetailsErrors[keyof OrganizationsGetOrganizationInvitationDetailsErrors];
4539
+ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
4540
+ /**
4541
+ * Success
4542
+ */
4543
+ 200: {
4544
+ code: number;
4545
+ data: {
4546
+ details: {
4547
+ inviterEmail: string | null;
4548
+ inviterName: string | null;
4549
+ organizationName: string;
4550
+ } | null;
4551
+ } | null;
4552
+ error: {
4553
+ code: string;
4554
+ details?: unknown | null;
4555
+ message: string;
4556
+ rowErrors?: Array<{
4557
+ code: string;
4558
+ message: string;
4559
+ path: Array<string | number>;
4560
+ }> | null;
4561
+ } | null;
4562
+ pagination: {
4563
+ limit: number;
4564
+ page: number;
4565
+ total: number;
4566
+ totalPages: number;
4567
+ } | null;
4568
+ sdkBehavior?: {
4569
+ flags: {
4570
+ [key: string]: unknown;
4571
+ };
4572
+ v: number;
4573
+ } | null;
4574
+ success: boolean;
4575
+ };
4576
+ };
4577
+ export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
4578
+ export type ApiKeysCreateApiKeySuperData = {
4579
+ body: {
4580
+ environment: 'live' | 'test';
4581
+ orgId?: string | null;
4582
+ projectId?: string | null;
4583
+ scopes: Array<string>;
4584
+ };
4585
+ path?: never;
4586
+ query?: never;
4587
+ url: '/v1/keys';
4588
+ };
4589
+ export type ApiKeysCreateApiKeySuperErrors = {
4590
+ /**
4591
+ * BadRequestError
4592
+ */
4593
+ 400: BadRequestError;
4594
+ /**
4595
+ * UnauthorizedError
4596
+ */
4597
+ 401: UnauthorizedError;
4598
+ /**
4599
+ * ForbiddenError
4600
+ */
4601
+ 403: ForbiddenError;
4602
+ /**
4603
+ * NotFoundError
4604
+ */
4605
+ 404: NotFoundError;
4606
+ /**
4607
+ * ConflictError
4608
+ */
4609
+ 409: ConflictError;
4610
+ /**
4611
+ * GoneError
4612
+ */
4613
+ 410: GoneError;
4614
+ /**
4615
+ * ContentTooLargeError
4616
+ */
4617
+ 413: ContentTooLargeError;
4618
+ /**
4619
+ * MisdirectedRequestError
4620
+ */
4621
+ 421: MisdirectedRequestError;
4622
+ /**
4623
+ * UnprocessableEntityError
4624
+ */
4625
+ 422: UnprocessableEntityError;
4626
+ /**
4627
+ * TooManyRequestsError
4628
+ */
4629
+ 429: TooManyRequestsError;
4630
+ /**
4631
+ * InternalServerError
4632
+ */
4633
+ 500: InternalServerError;
4634
+ /**
4635
+ * ServiceUnavailableError
4636
+ */
4637
+ 503: ServiceUnavailableError;
4638
+ };
4639
+ export type ApiKeysCreateApiKeySuperError = ApiKeysCreateApiKeySuperErrors[keyof ApiKeysCreateApiKeySuperErrors];
4640
+ export type ApiKeysCreateApiKeySuperResponses = {
4641
+ /**
4642
+ * Success
4643
+ */
4644
+ 201: {
4645
+ code: number;
4646
+ data: {
4647
+ expiresAt: string;
4648
+ jwt: string;
4649
+ key: string;
4650
+ } | null;
4651
+ error: {
4652
+ code: string;
4653
+ details?: unknown | null;
4654
+ message: string;
4655
+ rowErrors?: Array<{
4656
+ code: string;
4657
+ message: string;
4658
+ path: Array<string | number>;
4659
+ }> | null;
4660
+ } | null;
4661
+ pagination: {
4662
+ limit: number;
4663
+ page: number;
4664
+ total: number;
4665
+ totalPages: number;
4666
+ } | null;
4667
+ sdkBehavior?: {
4668
+ flags: {
4669
+ [key: string]: unknown;
4670
+ };
4671
+ v: number;
4672
+ } | null;
4673
+ success: boolean;
4674
+ };
4675
+ };
4676
+ export type ApiKeysCreateApiKeySuperResponse = ApiKeysCreateApiKeySuperResponses[keyof ApiKeysCreateApiKeySuperResponses];
4677
+ export type ApiKeysRevokeApiKeySuperData = {
4678
+ body?: never;
4679
+ path: {
4680
+ id: string;
4681
+ };
4682
+ query?: never;
4683
+ url: '/v1/keys/{id}';
4278
4684
  };
4279
4685
  export type ApiKeysRevokeApiKeySuperErrors = {
4280
4686
  /**
@@ -5002,7 +5408,8 @@ export type AssistantRunsRecordAssistantRunData = {
5002
5408
  body: {
5003
5409
  finishedAt: string;
5004
5410
  model: string;
5005
- outcome: 'answered' | 'limit_tool_rounds' | 'limit_wall_clock' | 'limit_output_tokens' | 'refused' | 'credential_expired' | 'model_error' | 'disabled' | 'superseded';
5411
+ outcome: 'answered' | 'limit_tool_rounds' | 'limit_wall_clock' | 'limit_output_tokens' | 'refused' | 'credential_expired' | 'model_error' | 'disabled' | 'superseded' | 'credential_unavailable';
5412
+ reason?: 'asker_external' | 'asker_guest' | 'shared_channel' | 'guest_in_channel' | 'unverified' | 'not_linked' | 'credential_unavailable' | null;
5006
5413
  reportedAsker?: {
5007
5414
  slackTeamId: string;
5008
5415
  slackUserId: string;
@@ -5191,7 +5598,7 @@ export type OrgAuditListOrgAuditEventsResponses = {
5191
5598
  organizationId: string | null;
5192
5599
  reason: string | null;
5193
5600
  resourceId: string;
5194
- resourceType: 'role' | 'organization' | 'organization_invitation' | 'workspace' | 'platform_setting' | 'api_key' | 'assistant_run' | 'slack_installation';
5601
+ resourceType: 'role' | 'organization' | 'organization_invitation' | 'workspace' | 'platform_setting' | 'api_key' | 'assistant_run' | 'slack_installation' | 'slack_user_link';
5195
5602
  scope: 'organization' | 'system';
5196
5603
  workspaceId: string | null;
5197
5604
  }>;
@@ -5631,21 +6038,318 @@ export type IntegrationsGetGitHubIntegrationResponses = {
5631
6038
  success: boolean;
5632
6039
  };
5633
6040
  };
5634
- export type IntegrationsGetGitHubIntegrationResponse = IntegrationsGetGitHubIntegrationResponses[keyof IntegrationsGetGitHubIntegrationResponses];
5635
- export type IntegrationsCompleteGitHubIntegrationData = {
5636
- body: {
5637
- code: string;
5638
- installationId?: string | null;
5639
- setupAction?: string | null;
5640
- state: string;
5641
- };
6041
+ export type IntegrationsGetGitHubIntegrationResponse = IntegrationsGetGitHubIntegrationResponses[keyof IntegrationsGetGitHubIntegrationResponses];
6042
+ export type IntegrationsCompleteGitHubIntegrationData = {
6043
+ body: {
6044
+ code: string;
6045
+ installationId?: string | null;
6046
+ setupAction?: string | null;
6047
+ state: string;
6048
+ };
6049
+ path: {
6050
+ orgId: string;
6051
+ };
6052
+ query?: never;
6053
+ url: '/v1/orgs/{orgId}/integrations/github/callback';
6054
+ };
6055
+ export type IntegrationsCompleteGitHubIntegrationErrors = {
6056
+ /**
6057
+ * BadRequestError
6058
+ */
6059
+ 400: BadRequestError;
6060
+ /**
6061
+ * UnauthorizedError
6062
+ */
6063
+ 401: UnauthorizedError;
6064
+ /**
6065
+ * ForbiddenError
6066
+ */
6067
+ 403: ForbiddenError;
6068
+ /**
6069
+ * NotFoundError
6070
+ */
6071
+ 404: NotFoundError;
6072
+ /**
6073
+ * ConflictError
6074
+ */
6075
+ 409: ConflictError;
6076
+ /**
6077
+ * GoneError
6078
+ */
6079
+ 410: GoneError;
6080
+ /**
6081
+ * ContentTooLargeError
6082
+ */
6083
+ 413: ContentTooLargeError;
6084
+ /**
6085
+ * MisdirectedRequestError
6086
+ */
6087
+ 421: MisdirectedRequestError;
6088
+ /**
6089
+ * UnprocessableEntityError
6090
+ */
6091
+ 422: UnprocessableEntityError;
6092
+ /**
6093
+ * TooManyRequestsError
6094
+ */
6095
+ 429: TooManyRequestsError;
6096
+ /**
6097
+ * InternalServerError
6098
+ */
6099
+ 500: InternalServerError;
6100
+ /**
6101
+ * ServiceUnavailableError
6102
+ */
6103
+ 503: ServiceUnavailableError;
6104
+ };
6105
+ export type IntegrationsCompleteGitHubIntegrationError = IntegrationsCompleteGitHubIntegrationErrors[keyof IntegrationsCompleteGitHubIntegrationErrors];
6106
+ export type IntegrationsCompleteGitHubIntegrationResponses = {
6107
+ /**
6108
+ * Success
6109
+ */
6110
+ 200: {
6111
+ code: number;
6112
+ data: {
6113
+ installation: {
6114
+ accountLogin: string;
6115
+ backfillRequestedAt: string | null;
6116
+ createdAt: string;
6117
+ externalId: string;
6118
+ id: string;
6119
+ lastReconciledAt: string | null;
6120
+ repositoryCount: number;
6121
+ suspendedAt: string | null;
6122
+ uninstalledAt: string | null;
6123
+ updatedAt: string;
6124
+ };
6125
+ } | null;
6126
+ error: {
6127
+ code: string;
6128
+ details?: unknown | null;
6129
+ message: string;
6130
+ rowErrors?: Array<{
6131
+ code: string;
6132
+ message: string;
6133
+ path: Array<string | number>;
6134
+ }> | null;
6135
+ } | null;
6136
+ pagination: {
6137
+ limit: number;
6138
+ page: number;
6139
+ total: number;
6140
+ totalPages: number;
6141
+ } | null;
6142
+ sdkBehavior?: {
6143
+ flags: {
6144
+ [key: string]: unknown;
6145
+ };
6146
+ v: number;
6147
+ } | null;
6148
+ success: boolean;
6149
+ };
6150
+ };
6151
+ export type IntegrationsCompleteGitHubIntegrationResponse = IntegrationsCompleteGitHubIntegrationResponses[keyof IntegrationsCompleteGitHubIntegrationResponses];
6152
+ export type IntegrationsConnectGitHubIntegrationData = {
6153
+ body: {
6154
+ accountLogin?: string | null;
6155
+ mode: 'install' | 'authorize';
6156
+ };
6157
+ path: {
6158
+ orgId: string;
6159
+ };
6160
+ query?: never;
6161
+ url: '/v1/orgs/{orgId}/integrations/github/connect';
6162
+ };
6163
+ export type IntegrationsConnectGitHubIntegrationErrors = {
6164
+ /**
6165
+ * BadRequestError
6166
+ */
6167
+ 400: BadRequestError;
6168
+ /**
6169
+ * UnauthorizedError
6170
+ */
6171
+ 401: UnauthorizedError;
6172
+ /**
6173
+ * ForbiddenError
6174
+ */
6175
+ 403: ForbiddenError;
6176
+ /**
6177
+ * NotFoundError
6178
+ */
6179
+ 404: NotFoundError;
6180
+ /**
6181
+ * ConflictError
6182
+ */
6183
+ 409: ConflictError;
6184
+ /**
6185
+ * GoneError
6186
+ */
6187
+ 410: GoneError;
6188
+ /**
6189
+ * ContentTooLargeError
6190
+ */
6191
+ 413: ContentTooLargeError;
6192
+ /**
6193
+ * MisdirectedRequestError
6194
+ */
6195
+ 421: MisdirectedRequestError;
6196
+ /**
6197
+ * UnprocessableEntityError
6198
+ */
6199
+ 422: UnprocessableEntityError;
6200
+ /**
6201
+ * TooManyRequestsError
6202
+ */
6203
+ 429: TooManyRequestsError;
6204
+ /**
6205
+ * InternalServerError
6206
+ */
6207
+ 500: InternalServerError;
6208
+ /**
6209
+ * ServiceUnavailableError
6210
+ */
6211
+ 503: ServiceUnavailableError;
6212
+ };
6213
+ export type IntegrationsConnectGitHubIntegrationError = IntegrationsConnectGitHubIntegrationErrors[keyof IntegrationsConnectGitHubIntegrationErrors];
6214
+ export type IntegrationsConnectGitHubIntegrationResponses = {
6215
+ /**
6216
+ * Success
6217
+ */
6218
+ 200: {
6219
+ code: number;
6220
+ data: {
6221
+ state: string;
6222
+ url: string;
6223
+ } | null;
6224
+ error: {
6225
+ code: string;
6226
+ details?: unknown | null;
6227
+ message: string;
6228
+ rowErrors?: Array<{
6229
+ code: string;
6230
+ message: string;
6231
+ path: Array<string | number>;
6232
+ }> | null;
6233
+ } | null;
6234
+ pagination: {
6235
+ limit: number;
6236
+ page: number;
6237
+ total: number;
6238
+ totalPages: number;
6239
+ } | null;
6240
+ sdkBehavior?: {
6241
+ flags: {
6242
+ [key: string]: unknown;
6243
+ };
6244
+ v: number;
6245
+ } | null;
6246
+ success: boolean;
6247
+ };
6248
+ };
6249
+ export type IntegrationsConnectGitHubIntegrationResponse = IntegrationsConnectGitHubIntegrationResponses[keyof IntegrationsConnectGitHubIntegrationResponses];
6250
+ export type IntegrationsRemoveGitHubUserLinkData = {
6251
+ body?: never;
6252
+ path: {
6253
+ orgId: string;
6254
+ };
6255
+ query?: never;
6256
+ url: '/v1/orgs/{orgId}/integrations/github/user-link';
6257
+ };
6258
+ export type IntegrationsRemoveGitHubUserLinkErrors = {
6259
+ /**
6260
+ * BadRequestError
6261
+ */
6262
+ 400: BadRequestError;
6263
+ /**
6264
+ * UnauthorizedError
6265
+ */
6266
+ 401: UnauthorizedError;
6267
+ /**
6268
+ * ForbiddenError
6269
+ */
6270
+ 403: ForbiddenError;
6271
+ /**
6272
+ * NotFoundError
6273
+ */
6274
+ 404: NotFoundError;
6275
+ /**
6276
+ * ConflictError
6277
+ */
6278
+ 409: ConflictError;
6279
+ /**
6280
+ * GoneError
6281
+ */
6282
+ 410: GoneError;
6283
+ /**
6284
+ * ContentTooLargeError
6285
+ */
6286
+ 413: ContentTooLargeError;
6287
+ /**
6288
+ * MisdirectedRequestError
6289
+ */
6290
+ 421: MisdirectedRequestError;
6291
+ /**
6292
+ * UnprocessableEntityError
6293
+ */
6294
+ 422: UnprocessableEntityError;
6295
+ /**
6296
+ * TooManyRequestsError
6297
+ */
6298
+ 429: TooManyRequestsError;
6299
+ /**
6300
+ * InternalServerError
6301
+ */
6302
+ 500: InternalServerError;
6303
+ /**
6304
+ * ServiceUnavailableError
6305
+ */
6306
+ 503: ServiceUnavailableError;
6307
+ };
6308
+ export type IntegrationsRemoveGitHubUserLinkError = IntegrationsRemoveGitHubUserLinkErrors[keyof IntegrationsRemoveGitHubUserLinkErrors];
6309
+ export type IntegrationsRemoveGitHubUserLinkResponses = {
6310
+ /**
6311
+ * Success
6312
+ */
6313
+ 200: {
6314
+ code: number;
6315
+ data: {
6316
+ removed: boolean;
6317
+ } | null;
6318
+ error: {
6319
+ code: string;
6320
+ details?: unknown | null;
6321
+ message: string;
6322
+ rowErrors?: Array<{
6323
+ code: string;
6324
+ message: string;
6325
+ path: Array<string | number>;
6326
+ }> | null;
6327
+ } | null;
6328
+ pagination: {
6329
+ limit: number;
6330
+ page: number;
6331
+ total: number;
6332
+ totalPages: number;
6333
+ } | null;
6334
+ sdkBehavior?: {
6335
+ flags: {
6336
+ [key: string]: unknown;
6337
+ };
6338
+ v: number;
6339
+ } | null;
6340
+ success: boolean;
6341
+ };
6342
+ };
6343
+ export type IntegrationsRemoveGitHubUserLinkResponse = IntegrationsRemoveGitHubUserLinkResponses[keyof IntegrationsRemoveGitHubUserLinkResponses];
6344
+ export type IntegrationsGetGitHubUserLinkData = {
6345
+ body?: never;
5642
6346
  path: {
5643
6347
  orgId: string;
5644
6348
  };
5645
6349
  query?: never;
5646
- url: '/v1/orgs/{orgId}/integrations/github/callback';
6350
+ url: '/v1/orgs/{orgId}/integrations/github/user-link';
5647
6351
  };
5648
- export type IntegrationsCompleteGitHubIntegrationErrors = {
6352
+ export type IntegrationsGetGitHubUserLinkErrors = {
5649
6353
  /**
5650
6354
  * BadRequestError
5651
6355
  */
@@ -5695,26 +6399,25 @@ export type IntegrationsCompleteGitHubIntegrationErrors = {
5695
6399
  */
5696
6400
  503: ServiceUnavailableError;
5697
6401
  };
5698
- export type IntegrationsCompleteGitHubIntegrationError = IntegrationsCompleteGitHubIntegrationErrors[keyof IntegrationsCompleteGitHubIntegrationErrors];
5699
- export type IntegrationsCompleteGitHubIntegrationResponses = {
6402
+ export type IntegrationsGetGitHubUserLinkError = IntegrationsGetGitHubUserLinkErrors[keyof IntegrationsGetGitHubUserLinkErrors];
6403
+ export type IntegrationsGetGitHubUserLinkResponses = {
5700
6404
  /**
5701
6405
  * Success
5702
6406
  */
5703
6407
  200: {
5704
6408
  code: number;
5705
6409
  data: {
5706
- installation: {
5707
- accountLogin: string;
5708
- backfillRequestedAt: string | null;
5709
- createdAt: string;
5710
- externalId: string;
5711
- id: string;
5712
- lastReconciledAt: string | null;
5713
- repositoryCount: number;
5714
- suspendedAt: string | null;
5715
- uninstalledAt: string | null;
5716
- updatedAt: string;
5717
- };
6410
+ configured: boolean;
6411
+ link: {
6412
+ githubLogin: string;
6413
+ githubUserId: string;
6414
+ linkedAt: string;
6415
+ source: 'user_authorization' | 'installation' | 'sign_in';
6416
+ } | null;
6417
+ signInAccount: {
6418
+ githubLogin: string;
6419
+ githubUserId: string;
6420
+ } | null;
5718
6421
  } | null;
5719
6422
  error: {
5720
6423
  code: string;
@@ -5741,19 +6444,19 @@ export type IntegrationsCompleteGitHubIntegrationResponses = {
5741
6444
  success: boolean;
5742
6445
  };
5743
6446
  };
5744
- export type IntegrationsCompleteGitHubIntegrationResponse = IntegrationsCompleteGitHubIntegrationResponses[keyof IntegrationsCompleteGitHubIntegrationResponses];
5745
- export type IntegrationsConnectGitHubIntegrationData = {
6447
+ export type IntegrationsGetGitHubUserLinkResponse = IntegrationsGetGitHubUserLinkResponses[keyof IntegrationsGetGitHubUserLinkResponses];
6448
+ export type IntegrationsCompleteGitHubUserLinkData = {
5746
6449
  body: {
5747
- accountLogin?: string | null;
5748
- mode: 'install' | 'authorize';
6450
+ code: string;
6451
+ state: string;
5749
6452
  };
5750
6453
  path: {
5751
6454
  orgId: string;
5752
6455
  };
5753
6456
  query?: never;
5754
- url: '/v1/orgs/{orgId}/integrations/github/connect';
6457
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/callback';
5755
6458
  };
5756
- export type IntegrationsConnectGitHubIntegrationErrors = {
6459
+ export type IntegrationsCompleteGitHubUserLinkErrors = {
5757
6460
  /**
5758
6461
  * BadRequestError
5759
6462
  */
@@ -5803,16 +6506,20 @@ export type IntegrationsConnectGitHubIntegrationErrors = {
5803
6506
  */
5804
6507
  503: ServiceUnavailableError;
5805
6508
  };
5806
- export type IntegrationsConnectGitHubIntegrationError = IntegrationsConnectGitHubIntegrationErrors[keyof IntegrationsConnectGitHubIntegrationErrors];
5807
- export type IntegrationsConnectGitHubIntegrationResponses = {
6509
+ export type IntegrationsCompleteGitHubUserLinkError = IntegrationsCompleteGitHubUserLinkErrors[keyof IntegrationsCompleteGitHubUserLinkErrors];
6510
+ export type IntegrationsCompleteGitHubUserLinkResponses = {
5808
6511
  /**
5809
6512
  * Success
5810
6513
  */
5811
6514
  200: {
5812
6515
  code: number;
5813
6516
  data: {
5814
- state: string;
5815
- url: string;
6517
+ link: {
6518
+ githubLogin: string;
6519
+ githubUserId: string;
6520
+ linkedAt: string;
6521
+ source: 'user_authorization' | 'installation' | 'sign_in';
6522
+ };
5816
6523
  } | null;
5817
6524
  error: {
5818
6525
  code: string;
@@ -5839,16 +6546,16 @@ export type IntegrationsConnectGitHubIntegrationResponses = {
5839
6546
  success: boolean;
5840
6547
  };
5841
6548
  };
5842
- export type IntegrationsConnectGitHubIntegrationResponse = IntegrationsConnectGitHubIntegrationResponses[keyof IntegrationsConnectGitHubIntegrationResponses];
5843
- export type IntegrationsRemoveGitHubUserLinkData = {
6549
+ export type IntegrationsCompleteGitHubUserLinkResponse = IntegrationsCompleteGitHubUserLinkResponses[keyof IntegrationsCompleteGitHubUserLinkResponses];
6550
+ export type IntegrationsConnectGitHubUserLinkData = {
5844
6551
  body?: never;
5845
6552
  path: {
5846
6553
  orgId: string;
5847
6554
  };
5848
6555
  query?: never;
5849
- url: '/v1/orgs/{orgId}/integrations/github/user-link';
6556
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/connect';
5850
6557
  };
5851
- export type IntegrationsRemoveGitHubUserLinkErrors = {
6558
+ export type IntegrationsConnectGitHubUserLinkErrors = {
5852
6559
  /**
5853
6560
  * BadRequestError
5854
6561
  */
@@ -5898,15 +6605,16 @@ export type IntegrationsRemoveGitHubUserLinkErrors = {
5898
6605
  */
5899
6606
  503: ServiceUnavailableError;
5900
6607
  };
5901
- export type IntegrationsRemoveGitHubUserLinkError = IntegrationsRemoveGitHubUserLinkErrors[keyof IntegrationsRemoveGitHubUserLinkErrors];
5902
- export type IntegrationsRemoveGitHubUserLinkResponses = {
6608
+ export type IntegrationsConnectGitHubUserLinkError = IntegrationsConnectGitHubUserLinkErrors[keyof IntegrationsConnectGitHubUserLinkErrors];
6609
+ export type IntegrationsConnectGitHubUserLinkResponses = {
5903
6610
  /**
5904
6611
  * Success
5905
6612
  */
5906
6613
  200: {
5907
6614
  code: number;
5908
6615
  data: {
5909
- removed: boolean;
6616
+ state: string;
6617
+ url: string;
5910
6618
  } | null;
5911
6619
  error: {
5912
6620
  code: string;
@@ -5933,16 +6641,16 @@ export type IntegrationsRemoveGitHubUserLinkResponses = {
5933
6641
  success: boolean;
5934
6642
  };
5935
6643
  };
5936
- export type IntegrationsRemoveGitHubUserLinkResponse = IntegrationsRemoveGitHubUserLinkResponses[keyof IntegrationsRemoveGitHubUserLinkResponses];
5937
- export type IntegrationsGetGitHubUserLinkData = {
6644
+ export type IntegrationsConnectGitHubUserLinkResponse = IntegrationsConnectGitHubUserLinkResponses[keyof IntegrationsConnectGitHubUserLinkResponses];
6645
+ export type IntegrationsLinkGitHubSignInAccountData = {
5938
6646
  body?: never;
5939
6647
  path: {
5940
6648
  orgId: string;
5941
6649
  };
5942
6650
  query?: never;
5943
- url: '/v1/orgs/{orgId}/integrations/github/user-link';
6651
+ url: '/v1/orgs/{orgId}/integrations/github/user-link/sign-in-account';
5944
6652
  };
5945
- export type IntegrationsGetGitHubUserLinkErrors = {
6653
+ export type IntegrationsLinkGitHubSignInAccountErrors = {
5946
6654
  /**
5947
6655
  * BadRequestError
5948
6656
  */
@@ -5992,25 +6700,20 @@ export type IntegrationsGetGitHubUserLinkErrors = {
5992
6700
  */
5993
6701
  503: ServiceUnavailableError;
5994
6702
  };
5995
- export type IntegrationsGetGitHubUserLinkError = IntegrationsGetGitHubUserLinkErrors[keyof IntegrationsGetGitHubUserLinkErrors];
5996
- export type IntegrationsGetGitHubUserLinkResponses = {
6703
+ export type IntegrationsLinkGitHubSignInAccountError = IntegrationsLinkGitHubSignInAccountErrors[keyof IntegrationsLinkGitHubSignInAccountErrors];
6704
+ export type IntegrationsLinkGitHubSignInAccountResponses = {
5997
6705
  /**
5998
6706
  * Success
5999
6707
  */
6000
6708
  200: {
6001
6709
  code: number;
6002
6710
  data: {
6003
- configured: boolean;
6004
6711
  link: {
6005
6712
  githubLogin: string;
6006
6713
  githubUserId: string;
6007
6714
  linkedAt: string;
6008
6715
  source: 'user_authorization' | 'installation' | 'sign_in';
6009
- } | null;
6010
- signInAccount: {
6011
- githubLogin: string;
6012
- githubUserId: string;
6013
- } | null;
6716
+ };
6014
6717
  } | null;
6015
6718
  error: {
6016
6719
  code: string;
@@ -6037,19 +6740,16 @@ export type IntegrationsGetGitHubUserLinkResponses = {
6037
6740
  success: boolean;
6038
6741
  };
6039
6742
  };
6040
- export type IntegrationsGetGitHubUserLinkResponse = IntegrationsGetGitHubUserLinkResponses[keyof IntegrationsGetGitHubUserLinkResponses];
6041
- export type IntegrationsCompleteGitHubUserLinkData = {
6042
- body: {
6043
- code: string;
6044
- state: string;
6045
- };
6743
+ export type IntegrationsLinkGitHubSignInAccountResponse = IntegrationsLinkGitHubSignInAccountResponses[keyof IntegrationsLinkGitHubSignInAccountResponses];
6744
+ export type SlackIntegrationDisconnectSlackData = {
6745
+ body?: never;
6046
6746
  path: {
6047
6747
  orgId: string;
6048
6748
  };
6049
6749
  query?: never;
6050
- url: '/v1/orgs/{orgId}/integrations/github/user-link/callback';
6750
+ url: '/v1/orgs/{orgId}/integrations/slack';
6051
6751
  };
6052
- export type IntegrationsCompleteGitHubUserLinkErrors = {
6752
+ export type SlackIntegrationDisconnectSlackErrors = {
6053
6753
  /**
6054
6754
  * BadRequestError
6055
6755
  */
@@ -6099,20 +6799,15 @@ export type IntegrationsCompleteGitHubUserLinkErrors = {
6099
6799
  */
6100
6800
  503: ServiceUnavailableError;
6101
6801
  };
6102
- export type IntegrationsCompleteGitHubUserLinkError = IntegrationsCompleteGitHubUserLinkErrors[keyof IntegrationsCompleteGitHubUserLinkErrors];
6103
- export type IntegrationsCompleteGitHubUserLinkResponses = {
6802
+ export type SlackIntegrationDisconnectSlackError = SlackIntegrationDisconnectSlackErrors[keyof SlackIntegrationDisconnectSlackErrors];
6803
+ export type SlackIntegrationDisconnectSlackResponses = {
6104
6804
  /**
6105
6805
  * Success
6106
6806
  */
6107
6807
  200: {
6108
6808
  code: number;
6109
6809
  data: {
6110
- link: {
6111
- githubLogin: string;
6112
- githubUserId: string;
6113
- linkedAt: string;
6114
- source: 'user_authorization' | 'installation' | 'sign_in';
6115
- };
6810
+ disconnected: boolean;
6116
6811
  } | null;
6117
6812
  error: {
6118
6813
  code: string;
@@ -6139,16 +6834,16 @@ export type IntegrationsCompleteGitHubUserLinkResponses = {
6139
6834
  success: boolean;
6140
6835
  };
6141
6836
  };
6142
- export type IntegrationsCompleteGitHubUserLinkResponse = IntegrationsCompleteGitHubUserLinkResponses[keyof IntegrationsCompleteGitHubUserLinkResponses];
6143
- export type IntegrationsConnectGitHubUserLinkData = {
6837
+ export type SlackIntegrationDisconnectSlackResponse = SlackIntegrationDisconnectSlackResponses[keyof SlackIntegrationDisconnectSlackResponses];
6838
+ export type SlackIntegrationGetSlackIntegrationData = {
6144
6839
  body?: never;
6145
6840
  path: {
6146
6841
  orgId: string;
6147
6842
  };
6148
6843
  query?: never;
6149
- url: '/v1/orgs/{orgId}/integrations/github/user-link/connect';
6844
+ url: '/v1/orgs/{orgId}/integrations/slack';
6150
6845
  };
6151
- export type IntegrationsConnectGitHubUserLinkErrors = {
6846
+ export type SlackIntegrationGetSlackIntegrationErrors = {
6152
6847
  /**
6153
6848
  * BadRequestError
6154
6849
  */
@@ -6198,16 +6893,23 @@ export type IntegrationsConnectGitHubUserLinkErrors = {
6198
6893
  */
6199
6894
  503: ServiceUnavailableError;
6200
6895
  };
6201
- export type IntegrationsConnectGitHubUserLinkError = IntegrationsConnectGitHubUserLinkErrors[keyof IntegrationsConnectGitHubUserLinkErrors];
6202
- export type IntegrationsConnectGitHubUserLinkResponses = {
6896
+ export type SlackIntegrationGetSlackIntegrationError = SlackIntegrationGetSlackIntegrationErrors[keyof SlackIntegrationGetSlackIntegrationErrors];
6897
+ export type SlackIntegrationGetSlackIntegrationResponses = {
6203
6898
  /**
6204
6899
  * Success
6205
6900
  */
6206
6901
  200: {
6207
6902
  code: number;
6208
6903
  data: {
6209
- state: string;
6210
- url: string;
6904
+ configured: boolean;
6905
+ installation: {
6906
+ botUserId: string;
6907
+ createdAt: string;
6908
+ id: string;
6909
+ installedByPrincipalId: string | null;
6910
+ slackTeamId: string;
6911
+ slackTeamName: string;
6912
+ } | null;
6211
6913
  } | null;
6212
6914
  error: {
6213
6915
  code: string;
@@ -6234,16 +6936,19 @@ export type IntegrationsConnectGitHubUserLinkResponses = {
6234
6936
  success: boolean;
6235
6937
  };
6236
6938
  };
6237
- export type IntegrationsConnectGitHubUserLinkResponse = IntegrationsConnectGitHubUserLinkResponses[keyof IntegrationsConnectGitHubUserLinkResponses];
6238
- export type IntegrationsLinkGitHubSignInAccountData = {
6239
- body?: never;
6939
+ export type SlackIntegrationGetSlackIntegrationResponse = SlackIntegrationGetSlackIntegrationResponses[keyof SlackIntegrationGetSlackIntegrationResponses];
6940
+ export type SlackIntegrationCompleteSlackInstallData = {
6941
+ body: {
6942
+ code: string;
6943
+ state: string;
6944
+ };
6240
6945
  path: {
6241
6946
  orgId: string;
6242
6947
  };
6243
6948
  query?: never;
6244
- url: '/v1/orgs/{orgId}/integrations/github/user-link/sign-in-account';
6949
+ url: '/v1/orgs/{orgId}/integrations/slack/complete';
6245
6950
  };
6246
- export type IntegrationsLinkGitHubSignInAccountErrors = {
6951
+ export type SlackIntegrationCompleteSlackInstallErrors = {
6247
6952
  /**
6248
6953
  * BadRequestError
6249
6954
  */
@@ -6293,19 +6998,21 @@ export type IntegrationsLinkGitHubSignInAccountErrors = {
6293
6998
  */
6294
6999
  503: ServiceUnavailableError;
6295
7000
  };
6296
- export type IntegrationsLinkGitHubSignInAccountError = IntegrationsLinkGitHubSignInAccountErrors[keyof IntegrationsLinkGitHubSignInAccountErrors];
6297
- export type IntegrationsLinkGitHubSignInAccountResponses = {
7001
+ export type SlackIntegrationCompleteSlackInstallError = SlackIntegrationCompleteSlackInstallErrors[keyof SlackIntegrationCompleteSlackInstallErrors];
7002
+ export type SlackIntegrationCompleteSlackInstallResponses = {
6298
7003
  /**
6299
7004
  * Success
6300
7005
  */
6301
7006
  200: {
6302
7007
  code: number;
6303
7008
  data: {
6304
- link: {
6305
- githubLogin: string;
6306
- githubUserId: string;
6307
- linkedAt: string;
6308
- source: 'user_authorization' | 'installation' | 'sign_in';
7009
+ installation: {
7010
+ botUserId: string;
7011
+ createdAt: string;
7012
+ id: string;
7013
+ installedByPrincipalId: string | null;
7014
+ slackTeamId: string;
7015
+ slackTeamName: string;
6309
7016
  };
6310
7017
  } | null;
6311
7018
  error: {
@@ -6333,16 +7040,16 @@ export type IntegrationsLinkGitHubSignInAccountResponses = {
6333
7040
  success: boolean;
6334
7041
  };
6335
7042
  };
6336
- export type IntegrationsLinkGitHubSignInAccountResponse = IntegrationsLinkGitHubSignInAccountResponses[keyof IntegrationsLinkGitHubSignInAccountResponses];
6337
- export type SlackIntegrationDisconnectSlackData = {
7043
+ export type SlackIntegrationCompleteSlackInstallResponse = SlackIntegrationCompleteSlackInstallResponses[keyof SlackIntegrationCompleteSlackInstallResponses];
7044
+ export type SlackIntegrationCreateSlackInstallUrlData = {
6338
7045
  body?: never;
6339
7046
  path: {
6340
7047
  orgId: string;
6341
7048
  };
6342
7049
  query?: never;
6343
- url: '/v1/orgs/{orgId}/integrations/slack';
7050
+ url: '/v1/orgs/{orgId}/integrations/slack/install-url';
6344
7051
  };
6345
- export type SlackIntegrationDisconnectSlackErrors = {
7052
+ export type SlackIntegrationCreateSlackInstallUrlErrors = {
6346
7053
  /**
6347
7054
  * BadRequestError
6348
7055
  */
@@ -6392,15 +7099,16 @@ export type SlackIntegrationDisconnectSlackErrors = {
6392
7099
  */
6393
7100
  503: ServiceUnavailableError;
6394
7101
  };
6395
- export type SlackIntegrationDisconnectSlackError = SlackIntegrationDisconnectSlackErrors[keyof SlackIntegrationDisconnectSlackErrors];
6396
- export type SlackIntegrationDisconnectSlackResponses = {
7102
+ export type SlackIntegrationCreateSlackInstallUrlError = SlackIntegrationCreateSlackInstallUrlErrors[keyof SlackIntegrationCreateSlackInstallUrlErrors];
7103
+ export type SlackIntegrationCreateSlackInstallUrlResponses = {
6397
7104
  /**
6398
7105
  * Success
6399
7106
  */
6400
7107
  200: {
6401
7108
  code: number;
6402
7109
  data: {
6403
- disconnected: boolean;
7110
+ state: string;
7111
+ url: string;
6404
7112
  } | null;
6405
7113
  error: {
6406
7114
  code: string;
@@ -6427,16 +7135,16 @@ export type SlackIntegrationDisconnectSlackResponses = {
6427
7135
  success: boolean;
6428
7136
  };
6429
7137
  };
6430
- export type SlackIntegrationDisconnectSlackResponse = SlackIntegrationDisconnectSlackResponses[keyof SlackIntegrationDisconnectSlackResponses];
6431
- export type SlackIntegrationGetSlackIntegrationData = {
7138
+ export type SlackIntegrationCreateSlackInstallUrlResponse = SlackIntegrationCreateSlackInstallUrlResponses[keyof SlackIntegrationCreateSlackInstallUrlResponses];
7139
+ export type SlackIntegrationListSlackUserLinksData = {
6432
7140
  body?: never;
6433
7141
  path: {
6434
7142
  orgId: string;
6435
7143
  };
6436
7144
  query?: never;
6437
- url: '/v1/orgs/{orgId}/integrations/slack';
7145
+ url: '/v1/orgs/{orgId}/integrations/slack/links';
6438
7146
  };
6439
- export type SlackIntegrationGetSlackIntegrationErrors = {
7147
+ export type SlackIntegrationListSlackUserLinksErrors = {
6440
7148
  /**
6441
7149
  * BadRequestError
6442
7150
  */
@@ -6486,24 +7194,20 @@ export type SlackIntegrationGetSlackIntegrationErrors = {
6486
7194
  */
6487
7195
  503: ServiceUnavailableError;
6488
7196
  };
6489
- export type SlackIntegrationGetSlackIntegrationError = SlackIntegrationGetSlackIntegrationErrors[keyof SlackIntegrationGetSlackIntegrationErrors];
6490
- export type SlackIntegrationGetSlackIntegrationResponses = {
7197
+ export type SlackIntegrationListSlackUserLinksError = SlackIntegrationListSlackUserLinksErrors[keyof SlackIntegrationListSlackUserLinksErrors];
7198
+ export type SlackIntegrationListSlackUserLinksResponses = {
6491
7199
  /**
6492
7200
  * Success
6493
7201
  */
6494
7202
  200: {
6495
7203
  code: number;
6496
- data: {
6497
- configured: boolean;
6498
- installation: {
6499
- botUserId: string;
6500
- createdAt: string;
6501
- id: string;
6502
- installedByPrincipalId: string | null;
6503
- slackTeamId: string;
6504
- slackTeamName: string;
6505
- } | null;
6506
- } | null;
7204
+ data: Array<{
7205
+ createdAt: string;
7206
+ id: string;
7207
+ platformPrincipalId: string;
7208
+ slackTeamId: string;
7209
+ slackUserId: string;
7210
+ }> | null;
6507
7211
  error: {
6508
7212
  code: string;
6509
7213
  details?: unknown | null;
@@ -6529,19 +7233,16 @@ export type SlackIntegrationGetSlackIntegrationResponses = {
6529
7233
  success: boolean;
6530
7234
  };
6531
7235
  };
6532
- export type SlackIntegrationGetSlackIntegrationResponse = SlackIntegrationGetSlackIntegrationResponses[keyof SlackIntegrationGetSlackIntegrationResponses];
6533
- export type SlackIntegrationCompleteSlackInstallData = {
6534
- body: {
6535
- code: string;
6536
- state: string;
6537
- };
7236
+ export type SlackIntegrationListSlackUserLinksResponse = SlackIntegrationListSlackUserLinksResponses[keyof SlackIntegrationListSlackUserLinksResponses];
7237
+ export type SlackIntegrationGetMySlackUserLinkData = {
7238
+ body?: never;
6538
7239
  path: {
6539
7240
  orgId: string;
6540
7241
  };
6541
7242
  query?: never;
6542
- url: '/v1/orgs/{orgId}/integrations/slack/complete';
7243
+ url: '/v1/orgs/{orgId}/integrations/slack/links/me';
6543
7244
  };
6544
- export type SlackIntegrationCompleteSlackInstallErrors = {
7245
+ export type SlackIntegrationGetMySlackUserLinkErrors = {
6545
7246
  /**
6546
7247
  * BadRequestError
6547
7248
  */
@@ -6591,22 +7292,19 @@ export type SlackIntegrationCompleteSlackInstallErrors = {
6591
7292
  */
6592
7293
  503: ServiceUnavailableError;
6593
7294
  };
6594
- export type SlackIntegrationCompleteSlackInstallError = SlackIntegrationCompleteSlackInstallErrors[keyof SlackIntegrationCompleteSlackInstallErrors];
6595
- export type SlackIntegrationCompleteSlackInstallResponses = {
7295
+ export type SlackIntegrationGetMySlackUserLinkError = SlackIntegrationGetMySlackUserLinkErrors[keyof SlackIntegrationGetMySlackUserLinkErrors];
7296
+ export type SlackIntegrationGetMySlackUserLinkResponses = {
6596
7297
  /**
6597
7298
  * Success
6598
7299
  */
6599
7300
  200: {
6600
7301
  code: number;
6601
7302
  data: {
6602
- installation: {
6603
- botUserId: string;
6604
- createdAt: string;
6605
- id: string;
6606
- installedByPrincipalId: string | null;
6607
- slackTeamId: string;
6608
- slackTeamName: string;
6609
- };
7303
+ createdAt: string;
7304
+ id: string;
7305
+ platformPrincipalId: string;
7306
+ slackTeamId: string;
7307
+ slackUserId: string;
6610
7308
  } | null;
6611
7309
  error: {
6612
7310
  code: string;
@@ -6633,16 +7331,17 @@ export type SlackIntegrationCompleteSlackInstallResponses = {
6633
7331
  success: boolean;
6634
7332
  };
6635
7333
  };
6636
- export type SlackIntegrationCompleteSlackInstallResponse = SlackIntegrationCompleteSlackInstallResponses[keyof SlackIntegrationCompleteSlackInstallResponses];
6637
- export type SlackIntegrationCreateSlackInstallUrlData = {
7334
+ export type SlackIntegrationGetMySlackUserLinkResponse = SlackIntegrationGetMySlackUserLinkResponses[keyof SlackIntegrationGetMySlackUserLinkResponses];
7335
+ export type SlackIntegrationRemoveSlackUserLinkData = {
6638
7336
  body?: never;
6639
7337
  path: {
6640
7338
  orgId: string;
7339
+ linkId: string;
6641
7340
  };
6642
7341
  query?: never;
6643
- url: '/v1/orgs/{orgId}/integrations/slack/install-url';
7342
+ url: '/v1/orgs/{orgId}/integrations/slack/links/{linkId}';
6644
7343
  };
6645
- export type SlackIntegrationCreateSlackInstallUrlErrors = {
7344
+ export type SlackIntegrationRemoveSlackUserLinkErrors = {
6646
7345
  /**
6647
7346
  * BadRequestError
6648
7347
  */
@@ -6692,16 +7391,15 @@ export type SlackIntegrationCreateSlackInstallUrlErrors = {
6692
7391
  */
6693
7392
  503: ServiceUnavailableError;
6694
7393
  };
6695
- export type SlackIntegrationCreateSlackInstallUrlError = SlackIntegrationCreateSlackInstallUrlErrors[keyof SlackIntegrationCreateSlackInstallUrlErrors];
6696
- export type SlackIntegrationCreateSlackInstallUrlResponses = {
7394
+ export type SlackIntegrationRemoveSlackUserLinkError = SlackIntegrationRemoveSlackUserLinkErrors[keyof SlackIntegrationRemoveSlackUserLinkErrors];
7395
+ export type SlackIntegrationRemoveSlackUserLinkResponses = {
6697
7396
  /**
6698
7397
  * Success
6699
7398
  */
6700
7399
  200: {
6701
7400
  code: number;
6702
7401
  data: {
6703
- state: string;
6704
- url: string;
7402
+ deleted: boolean;
6705
7403
  } | null;
6706
7404
  error: {
6707
7405
  code: string;
@@ -6728,7 +7426,7 @@ export type SlackIntegrationCreateSlackInstallUrlResponses = {
6728
7426
  success: boolean;
6729
7427
  };
6730
7428
  };
6731
- export type SlackIntegrationCreateSlackInstallUrlResponse = SlackIntegrationCreateSlackInstallUrlResponses[keyof SlackIntegrationCreateSlackInstallUrlResponses];
7429
+ export type SlackIntegrationRemoveSlackUserLinkResponse = SlackIntegrationRemoveSlackUserLinkResponses[keyof SlackIntegrationRemoveSlackUserLinkResponses];
6732
7430
  export type OrganizationsListOrganizationInvitationsData = {
6733
7431
  body?: never;
6734
7432
  path: {
@@ -9915,9 +10613,8 @@ export type UsageListUsagePrincipalsData = {
9915
10613
  path: {
9916
10614
  orgId: string;
9917
10615
  };
9918
- query?: {
9919
- query?: string | null;
9920
- email?: string | null;
10616
+ query: {
10617
+ query: string;
9921
10618
  };
9922
10619
  url: '/v1/orgs/{orgId}/usage/principals';
9923
10620
  };