@tyvm/knowhow-api-client 0.0.2 → 0.0.3

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.
@@ -23,15 +23,44 @@ declare namespace Components {
23
23
  comment: string;
24
24
  isSystem?: boolean;
25
25
  }
26
+ /**
27
+ * Simple API key passed in header or query parameter
28
+ */
29
+ export interface ApiKeyAuthConfig {
30
+ type: "api_key";
31
+ location: "header" | "query";
32
+ keyName: string;
33
+ keySecretKey: string;
34
+ }
26
35
  export interface ApproveSessionResponse {
27
36
  success: boolean;
28
37
  message: string;
29
38
  }
39
+ export interface AuthStatusResponse {
40
+ isAuthenticated: boolean;
41
+ secretName: string;
42
+ secretType: "org" | "user";
43
+ createdAt?: string;
44
+ }
30
45
  export interface AutoReloadSettings {
31
46
  enabled: boolean;
32
47
  threshold: number; // double
33
48
  amount: number; // double
34
49
  }
50
+ /**
51
+ * Basic Auth via Login URL
52
+ * Posts credentials to a login URL and extracts token from response
53
+ */
54
+ export interface BasicAuthConfig {
55
+ type: "basic";
56
+ loginUrl: string;
57
+ usernameSecretKey: string;
58
+ passwordSecretKey: string;
59
+ jsonBodyTemplate: string;
60
+ responseTokenPath: string;
61
+ responseExpiryPath?: string;
62
+ headerLocation: string;
63
+ }
35
64
  export interface ChatCompletionResponse {
36
65
  choices: {
37
66
  message: OutputMessage;
@@ -86,6 +115,7 @@ declare namespace Components {
86
115
  env?: any;
87
116
  url?: string;
88
117
  secretMapping?: any;
118
+ authConfig?: any;
89
119
  enabled?: boolean;
90
120
  onConnectServiceId?: string;
91
121
  }
@@ -99,6 +129,7 @@ declare namespace Components {
99
129
  secretMapping?: any;
100
130
  enabled?: boolean;
101
131
  onConnectServiceId?: string;
132
+ authConfig?: /* Discriminated union of all auth config types */ McpAuthConfig;
102
133
  }
103
134
  export interface CreateSecretRequest {
104
135
  name: string;
@@ -230,6 +261,11 @@ declare namespace Components {
230
261
  export interface DefaultSelectionPrisma36OrgMcpServerPayload {
231
262
  onConnectServiceId: string;
232
263
  enabled: boolean;
264
+ authConfig: /**
265
+ * From https://github.com/sindresorhus/type-fest/
266
+ * Matches any valid JSON value.
267
+ */
268
+ JsonValue;
233
269
  secretMapping: /**
234
270
  * From https://github.com/sindresorhus/type-fest/
235
271
  * Matches any valid JSON value.
@@ -286,6 +322,11 @@ declare namespace Components {
286
322
  export interface DefaultSelectionPrisma36OrgUserMcpPayload {
287
323
  onConnectServiceId: string;
288
324
  enabled: boolean;
325
+ authConfig: /**
326
+ * From https://github.com/sindresorhus/type-fest/
327
+ * Matches any valid JSON value.
328
+ */
329
+ JsonValue;
289
330
  secretMapping: /**
290
331
  * From https://github.com/sindresorhus/type-fest/
291
332
  * Matches any valid JSON value.
@@ -486,6 +527,18 @@ declare namespace Components {
486
527
  database: ServiceStatus;
487
528
  };
488
529
  }
530
+ export interface InitiateOAuthRequest {
531
+ mcpServerUrl: string;
532
+ secretName: string;
533
+ secretType: "org" | "user";
534
+ clientId?: string;
535
+ clientSecret?: string;
536
+ scopes?: string[];
537
+ }
538
+ export interface InitiateOAuthResponse {
539
+ authorizationUrl: string;
540
+ state: string;
541
+ }
489
542
  /**
490
543
  * Matches a JSON array.
491
544
  * Unlike \`JsonArray\`, readonly arrays are assignable to this type.
@@ -578,7 +631,7 @@ declare namespace Components {
578
631
  * From https://github.com/sindresorhus/type-fest/
579
632
  * Matches a JSON array.
580
633
  */
581
- JsonArray | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null;
634
+ JsonArray | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null;
582
635
  export interface LivenessResponse {
583
636
  status: "live" | "dead";
584
637
  timestamp: string;
@@ -595,6 +648,22 @@ declare namespace Components {
595
648
  */
596
649
  OrgUserTask;
597
650
  }
651
+ /**
652
+ * Discriminated union of all auth config types
653
+ */
654
+ export type McpAuthConfig = /* Discriminated union of all auth config types */ /**
655
+ * OAuth 2.1 Dynamic Client Registration
656
+ * Backend handles the full OAuth flow automatically using discovery
657
+ */
658
+ OAuth21DynamicAuthConfig | /**
659
+ * OAuth 2.1 Static Client Registration
660
+ * Uses pre-configured client ID and secret from org-secrets or org-user-secrets
661
+ */
662
+ OAuth21StaticAuthConfig | /**
663
+ * Basic Auth via Login URL
664
+ * Posts credentials to a login URL and extracts token from response
665
+ */
666
+ BasicAuthConfig | /* Simple API key passed in header or query parameter */ ApiKeyAuthConfig | /* No authentication required */ NoAuthConfig;
598
667
  export interface Message {
599
668
  role: "system" | "user" | "assistant" | "tool";
600
669
  content?: string | MessageContent[];
@@ -617,6 +686,12 @@ declare namespace Components {
617
686
  export type N$16EnumsTaskState = "PENDING" | "IN_PROGRESS" | "COMPLETED" | "FAILED" | "CANCELLED";
618
687
  export type N$16EnumsUserRole = "OWNER" | "ADMIN" | "MEMBER";
619
688
  export type N$16EnumsWaitlistStatus = "PENDING" | "APPROVED" | "REJECTED";
689
+ /**
690
+ * No authentication required
691
+ */
692
+ export interface NoAuthConfig {
693
+ type: "none";
694
+ }
620
695
  export interface NullablePartialPickPrismaOrganizationUncheckedUpdateWithoutUsersInputOrganizationOptionalFields {
621
696
  name?: string | PrismaStringFieldUpdateOperationsInput;
622
697
  autoReloadAmount?: number /* double */ | PrismaNullableFloatFieldUpdateOperationsInput;
@@ -624,6 +699,27 @@ declare namespace Components {
624
699
  autoReloadThreshold?: number /* double */ | PrismaNullableFloatFieldUpdateOperationsInput;
625
700
  coversUserExpenses?: boolean | PrismaBoolFieldUpdateOperationsInput;
626
701
  }
702
+ /**
703
+ * OAuth 2.1 Dynamic Client Registration
704
+ * Backend handles the full OAuth flow automatically using discovery
705
+ */
706
+ export interface OAuth21DynamicAuthConfig {
707
+ type: "oauth2_dynamic";
708
+ discoveryUrl: string;
709
+ scopes?: string[];
710
+ }
711
+ /**
712
+ * OAuth 2.1 Static Client Registration
713
+ * Uses pre-configured client ID and secret from org-secrets or org-user-secrets
714
+ */
715
+ export interface OAuth21StaticAuthConfig {
716
+ type: "oauth2_static";
717
+ tokenUrl: string;
718
+ authorizationUrl: string;
719
+ scopes?: string[];
720
+ clientIdSecretKey: string;
721
+ clientSecretSecretKey: string;
722
+ }
627
723
  /**
628
724
  * Construct a type with the properties of T except for those in type K.
629
725
  */
@@ -1004,6 +1100,18 @@ declare namespace Components {
1004
1100
  export interface PrismaStringFieldUpdateOperationsInput {
1005
1101
  set?: string;
1006
1102
  }
1103
+ export interface ProbeRequest {
1104
+ url: string;
1105
+ }
1106
+ export interface ProbeResponse {
1107
+ url: string;
1108
+ supportsOAuth: boolean;
1109
+ discoveryUrl?: string;
1110
+ authorizationEndpoint?: string;
1111
+ tokenEndpoint?: string;
1112
+ scopes?: string[];
1113
+ requiresStaticCredentials?: boolean;
1114
+ }
1007
1115
  export interface PublicChatRequest {
1008
1116
  behaviorId: string;
1009
1117
  message: string;
@@ -1221,6 +1329,7 @@ declare namespace Components {
1221
1329
  env?: any;
1222
1330
  url?: string;
1223
1331
  secretMapping?: any;
1332
+ authConfig?: any;
1224
1333
  enabled?: boolean;
1225
1334
  onConnectServiceId?: string;
1226
1335
  }
@@ -1283,6 +1392,7 @@ declare namespace Components {
1283
1392
  secretMapping?: any;
1284
1393
  enabled?: boolean;
1285
1394
  onConnectServiceId?: string;
1395
+ authConfig?: /* Discriminated union of all auth config types */ McpAuthConfig;
1286
1396
  }
1287
1397
  export interface UpdateSecretRequest {
1288
1398
  value: string;
@@ -1410,6 +1520,21 @@ declare namespace Paths {
1410
1520
  }
1411
1521
  }
1412
1522
  }
1523
+ namespace CheckAuthStatus {
1524
+ namespace Parameters {
1525
+ export type SecretName = string;
1526
+ export type SecretType = "org" | "user";
1527
+ }
1528
+ export interface PathParameters {
1529
+ secretName: Parameters.SecretName;
1530
+ }
1531
+ export interface QueryParameters {
1532
+ secretType: Parameters.SecretType;
1533
+ }
1534
+ namespace Responses {
1535
+ export type $200 = Components.Schemas.AuthStatusResponse;
1536
+ }
1537
+ }
1413
1538
  namespace CheckAvailability {
1414
1539
  namespace Responses {
1415
1540
  export interface $200 {
@@ -2495,14 +2620,12 @@ declare namespace Paths {
2495
2620
  }
2496
2621
  namespace GetOrgMessages {
2497
2622
  namespace Parameters {
2498
- export type ChannelId = string;
2499
2623
  export type Limit = number; // double
2500
2624
  export type Offset = number; // double
2501
2625
  export type OrgServiceId = string;
2502
2626
  }
2503
2627
  export interface QueryParameters {
2504
2628
  orgServiceId?: Parameters.OrgServiceId;
2505
- channelId?: Parameters.ChannelId;
2506
2629
  limit?: Parameters.Limit /* double */;
2507
2630
  offset?: Parameters.Offset /* double */;
2508
2631
  }
@@ -3029,6 +3152,19 @@ declare namespace Paths {
3029
3152
  }
3030
3153
  }
3031
3154
  }
3155
+ namespace HandleOAuthCallback {
3156
+ export interface RequestBody {
3157
+ state: string;
3158
+ code: string;
3159
+ }
3160
+ namespace Responses {
3161
+ export interface $200 {
3162
+ error?: string;
3163
+ message?: string;
3164
+ ok: boolean;
3165
+ }
3166
+ }
3167
+ }
3032
3168
  namespace HandleSlackEvent {
3033
3169
  export type RequestBody = any;
3034
3170
  namespace Responses {
@@ -3051,6 +3187,12 @@ declare namespace Paths {
3051
3187
  }
3052
3188
  }
3053
3189
  }
3190
+ namespace InitiateOAuthFlow {
3191
+ export type RequestBody = Components.Schemas.InitiateOAuthRequest;
3192
+ namespace Responses {
3193
+ export type $200 = Components.Schemas.InitiateOAuthResponse;
3194
+ }
3195
+ }
3054
3196
  namespace InviteUser {
3055
3197
  export interface RequestBody {
3056
3198
  role: Components.Schemas.UserRole;
@@ -3176,6 +3318,12 @@ declare namespace Paths {
3176
3318
  }
3177
3319
  }
3178
3320
  }
3321
+ namespace ProbeMcpServer {
3322
+ export type RequestBody = Components.Schemas.ProbeRequest;
3323
+ namespace Responses {
3324
+ export type $200 = Components.Schemas.ProbeResponse;
3325
+ }
3326
+ }
3179
3327
  namespace ProxyChatCompletion {
3180
3328
  export type RequestBody = /* Make all properties in T optional */ Components.Schemas.PartialCompletionOptions;
3181
3329
  namespace Responses {
@@ -3680,6 +3828,19 @@ declare namespace Paths {
3680
3828
  }
3681
3829
  }
3682
3830
  }
3831
+ namespace ValidateAuthConfig {
3832
+ export interface RequestBody {
3833
+ url?: string;
3834
+ authConfig: /* Discriminated union of all auth config types */ Components.Schemas.McpAuthConfig;
3835
+ }
3836
+ namespace Responses {
3837
+ export interface $200 {
3838
+ details?: any;
3839
+ message: string;
3840
+ success: boolean;
3841
+ }
3842
+ }
3843
+ }
3683
3844
  namespace Verify2FA {
3684
3845
  export type RequestBody = Components.Schemas.Verify2FARequest;
3685
3846
  namespace Responses {
@@ -4368,6 +4529,15 @@ export interface OperationMethods {
4368
4529
  data?: any,
4369
4530
  config?: AxiosRequestConfig
4370
4531
  ): OperationResponse<Paths.DeleteOrgUserMcp.Responses.$204>
4532
+ /**
4533
+ * ValidateAuthConfig - Validate authentication configuration
4534
+ * Tests if the provided auth config can successfully authenticate
4535
+ */
4536
+ 'ValidateAuthConfig'(
4537
+ parameters?: Parameters<UnknownParamsObject> | null,
4538
+ data?: Paths.ValidateAuthConfig.RequestBody,
4539
+ config?: AxiosRequestConfig
4540
+ ): OperationResponse<Paths.ValidateAuthConfig.Responses.$200>
4371
4541
  /**
4372
4542
  * GetOrgServices
4373
4543
  */
@@ -4704,6 +4874,102 @@ export interface OperationMethods {
4704
4874
  data?: any,
4705
4875
  config?: AxiosRequestConfig
4706
4876
  ): OperationResponse<Paths.ProxyGetModels.Responses.$200>
4877
+ /**
4878
+ * GetChatSessions
4879
+ */
4880
+ 'GetChatSessions'(
4881
+ parameters?: Parameters<Paths.GetChatSessions.QueryParameters> | null,
4882
+ data?: any,
4883
+ config?: AxiosRequestConfig
4884
+ ): OperationResponse<Paths.GetChatSessions.Responses.$200>
4885
+ /**
4886
+ * CreateChatSession
4887
+ */
4888
+ 'CreateChatSession'(
4889
+ parameters?: Parameters<UnknownParamsObject> | null,
4890
+ data?: Paths.CreateChatSession.RequestBody,
4891
+ config?: AxiosRequestConfig
4892
+ ): OperationResponse<Paths.CreateChatSession.Responses.$200>
4893
+ /**
4894
+ * GetChatSession
4895
+ */
4896
+ 'GetChatSession'(
4897
+ parameters?: Parameters<Paths.GetChatSession.PathParameters> | null,
4898
+ data?: any,
4899
+ config?: AxiosRequestConfig
4900
+ ): OperationResponse<Paths.GetChatSession.Responses.$200>
4901
+ /**
4902
+ * UpdateChatSession
4903
+ */
4904
+ 'UpdateChatSession'(
4905
+ parameters?: Parameters<Paths.UpdateChatSession.PathParameters> | null,
4906
+ data?: Paths.UpdateChatSession.RequestBody,
4907
+ config?: AxiosRequestConfig
4908
+ ): OperationResponse<Paths.UpdateChatSession.Responses.$200>
4909
+ /**
4910
+ * DeleteChatSession
4911
+ */
4912
+ 'DeleteChatSession'(
4913
+ parameters?: Parameters<Paths.DeleteChatSession.PathParameters> | null,
4914
+ data?: any,
4915
+ config?: AxiosRequestConfig
4916
+ ): OperationResponse<Paths.DeleteChatSession.Responses.$204>
4917
+ /**
4918
+ * GetChatSessionMessages
4919
+ */
4920
+ 'GetChatSessionMessages'(
4921
+ parameters?: Parameters<Paths.GetChatSessionMessages.PathParameters> | null,
4922
+ data?: any,
4923
+ config?: AxiosRequestConfig
4924
+ ): OperationResponse<Paths.GetChatSessionMessages.Responses.$200>
4925
+ /**
4926
+ * CreateChatMessage
4927
+ */
4928
+ 'CreateChatMessage'(
4929
+ parameters?: Parameters<Paths.CreateChatMessage.PathParameters> | null,
4930
+ data?: Paths.CreateChatMessage.RequestBody,
4931
+ config?: AxiosRequestConfig
4932
+ ): OperationResponse<Paths.CreateChatMessage.Responses.$200>
4933
+ /**
4934
+ * DeleteChatMessage
4935
+ */
4936
+ 'DeleteChatMessage'(
4937
+ parameters?: Parameters<Paths.DeleteChatMessage.PathParameters> | null,
4938
+ data?: any,
4939
+ config?: AxiosRequestConfig
4940
+ ): OperationResponse<Paths.DeleteChatMessage.Responses.$204>
4941
+ /**
4942
+ * PublicChat
4943
+ */
4944
+ 'PublicChat'(
4945
+ parameters?: Parameters<UnknownParamsObject> | null,
4946
+ data?: Paths.PublicChat.RequestBody,
4947
+ config?: AxiosRequestConfig
4948
+ ): OperationResponse<Paths.PublicChat.Responses.$200>
4949
+ /**
4950
+ * CreateSessionFromThread
4951
+ */
4952
+ 'CreateSessionFromThread'(
4953
+ parameters?: Parameters<UnknownParamsObject> | null,
4954
+ data?: Paths.CreateSessionFromThread.RequestBody,
4955
+ config?: AxiosRequestConfig
4956
+ ): OperationResponse<Paths.CreateSessionFromThread.Responses.$200>
4957
+ /**
4958
+ * CreateMessageTask
4959
+ */
4960
+ 'CreateMessageTask'(
4961
+ parameters?: Parameters<UnknownParamsObject> | null,
4962
+ data?: Paths.CreateMessageTask.RequestBody,
4963
+ config?: AxiosRequestConfig
4964
+ ): OperationResponse<Paths.CreateMessageTask.Responses.$200>
4965
+ /**
4966
+ * UpdateOrgTask
4967
+ */
4968
+ 'UpdateOrgTask'(
4969
+ parameters?: Parameters<Paths.UpdateOrgTask.PathParameters> | null,
4970
+ data?: Paths.UpdateOrgTask.RequestBody,
4971
+ config?: AxiosRequestConfig
4972
+ ): OperationResponse<Paths.UpdateOrgTask.Responses.$200>
4707
4973
  /**
4708
4974
  * GetHealth - Basic health check
4709
4975
  *
@@ -4744,6 +5010,39 @@ export interface OperationMethods {
4744
5010
  data?: any,
4745
5011
  config?: AxiosRequestConfig
4746
5012
  ): OperationResponse<Paths.GetLiveness.Responses.$200>
5013
+ /**
5014
+ * ProbeMcpServer - Probe an MCP server URL to detect OAuth capabilities
5015
+ */
5016
+ 'ProbeMcpServer'(
5017
+ parameters?: Parameters<UnknownParamsObject> | null,
5018
+ data?: Paths.ProbeMcpServer.RequestBody,
5019
+ config?: AxiosRequestConfig
5020
+ ): OperationResponse<Paths.ProbeMcpServer.Responses.$200>
5021
+ /**
5022
+ * InitiateOAuthFlow - Initiate OAuth flow for MCP server authentication
5023
+ */
5024
+ 'InitiateOAuthFlow'(
5025
+ parameters?: Parameters<UnknownParamsObject> | null,
5026
+ data?: Paths.InitiateOAuthFlow.RequestBody,
5027
+ config?: AxiosRequestConfig
5028
+ ): OperationResponse<Paths.InitiateOAuthFlow.Responses.$200>
5029
+ /**
5030
+ * HandleOAuthCallback - Handle OAuth callback - Complete the OAuth flow
5031
+ * Called by the frontend after OAuth provider redirects back
5032
+ */
5033
+ 'HandleOAuthCallback'(
5034
+ parameters?: Parameters<UnknownParamsObject> | null,
5035
+ data?: Paths.HandleOAuthCallback.RequestBody,
5036
+ config?: AxiosRequestConfig
5037
+ ): OperationResponse<Paths.HandleOAuthCallback.Responses.$200>
5038
+ /**
5039
+ * CheckAuthStatus - Check authentication status for a secret
5040
+ */
5041
+ 'CheckAuthStatus'(
5042
+ parameters?: Parameters<Paths.CheckAuthStatus.QueryParameters & Paths.CheckAuthStatus.PathParameters> | null,
5043
+ data?: any,
5044
+ config?: AxiosRequestConfig
5045
+ ): OperationResponse<Paths.CheckAuthStatus.Responses.$200>
4747
5046
  /**
4748
5047
  * GetTokenStatus
4749
5048
  */
@@ -5057,139 +5356,43 @@ export interface OperationMethods {
5057
5356
  config?: AxiosRequestConfig
5058
5357
  ): OperationResponse<Paths.CleanupSessions.Responses.$200>
5059
5358
  /**
5060
- * GetChatSessions
5061
- */
5062
- 'GetChatSessions'(
5063
- parameters?: Parameters<Paths.GetChatSessions.QueryParameters> | null,
5064
- data?: any,
5065
- config?: AxiosRequestConfig
5066
- ): OperationResponse<Paths.GetChatSessions.Responses.$200>
5067
- /**
5068
- * CreateChatSession
5359
+ * CreateChatCompletion - Create a chat completion
5069
5360
  */
5070
- 'CreateChatSession'(
5361
+ 'CreateChatCompletion'(
5071
5362
  parameters?: Parameters<UnknownParamsObject> | null,
5072
- data?: Paths.CreateChatSession.RequestBody,
5363
+ data?: Paths.CreateChatCompletion.RequestBody,
5073
5364
  config?: AxiosRequestConfig
5074
- ): OperationResponse<Paths.CreateChatSession.Responses.$200>
5365
+ ): OperationResponse<Paths.CreateChatCompletion.Responses.$200>
5075
5366
  /**
5076
- * GetChatSession
5367
+ * GetModels - Get available models, optionally filtered by type
5077
5368
  */
5078
- 'GetChatSession'(
5079
- parameters?: Parameters<Paths.GetChatSession.PathParameters> | null,
5369
+ 'GetModels'(
5370
+ parameters?: Parameters<Paths.GetModels.QueryParameters> | null,
5080
5371
  data?: any,
5081
5372
  config?: AxiosRequestConfig
5082
- ): OperationResponse<Paths.GetChatSession.Responses.$200>
5083
- /**
5084
- * UpdateChatSession
5085
- */
5086
- 'UpdateChatSession'(
5087
- parameters?: Parameters<Paths.UpdateChatSession.PathParameters> | null,
5088
- data?: Paths.UpdateChatSession.RequestBody,
5089
- config?: AxiosRequestConfig
5090
- ): OperationResponse<Paths.UpdateChatSession.Responses.$200>
5373
+ ): OperationResponse<Paths.GetModels.Responses.$200>
5091
5374
  /**
5092
- * DeleteChatSession
5375
+ * GetTools - Get available tools for the organization/user
5093
5376
  */
5094
- 'DeleteChatSession'(
5095
- parameters?: Parameters<Paths.DeleteChatSession.PathParameters> | null,
5377
+ 'GetTools'(
5378
+ parameters?: Parameters<UnknownParamsObject> | null,
5096
5379
  data?: any,
5097
5380
  config?: AxiosRequestConfig
5098
- ): OperationResponse<Paths.DeleteChatSession.Responses.$204>
5381
+ ): OperationResponse<Paths.GetTools.Responses.$200>
5099
5382
  /**
5100
- * GetChatSessionMessages
5383
+ * TestKnowhowTool - Test a specific tool by calling it with provided arguments
5101
5384
  */
5102
- 'GetChatSessionMessages'(
5103
- parameters?: Parameters<Paths.GetChatSessionMessages.PathParameters> | null,
5104
- data?: any,
5385
+ 'TestKnowhowTool'(
5386
+ parameters?: Parameters<UnknownParamsObject> | null,
5387
+ data?: Paths.TestKnowhowTool.RequestBody,
5105
5388
  config?: AxiosRequestConfig
5106
- ): OperationResponse<Paths.GetChatSessionMessages.Responses.$200>
5389
+ ): OperationResponse<Paths.TestKnowhowTool.Responses.$200>
5107
5390
  /**
5108
- * CreateChatMessage
5391
+ * CreateEmbeddings - Generate text embeddings
5109
5392
  */
5110
- 'CreateChatMessage'(
5111
- parameters?: Parameters<Paths.CreateChatMessage.PathParameters> | null,
5112
- data?: Paths.CreateChatMessage.RequestBody,
5113
- config?: AxiosRequestConfig
5114
- ): OperationResponse<Paths.CreateChatMessage.Responses.$200>
5115
- /**
5116
- * DeleteChatMessage
5117
- */
5118
- 'DeleteChatMessage'(
5119
- parameters?: Parameters<Paths.DeleteChatMessage.PathParameters> | null,
5120
- data?: any,
5121
- config?: AxiosRequestConfig
5122
- ): OperationResponse<Paths.DeleteChatMessage.Responses.$204>
5123
- /**
5124
- * PublicChat
5125
- */
5126
- 'PublicChat'(
5127
- parameters?: Parameters<UnknownParamsObject> | null,
5128
- data?: Paths.PublicChat.RequestBody,
5129
- config?: AxiosRequestConfig
5130
- ): OperationResponse<Paths.PublicChat.Responses.$200>
5131
- /**
5132
- * CreateSessionFromThread
5133
- */
5134
- 'CreateSessionFromThread'(
5135
- parameters?: Parameters<UnknownParamsObject> | null,
5136
- data?: Paths.CreateSessionFromThread.RequestBody,
5137
- config?: AxiosRequestConfig
5138
- ): OperationResponse<Paths.CreateSessionFromThread.Responses.$200>
5139
- /**
5140
- * CreateMessageTask
5141
- */
5142
- 'CreateMessageTask'(
5143
- parameters?: Parameters<UnknownParamsObject> | null,
5144
- data?: Paths.CreateMessageTask.RequestBody,
5145
- config?: AxiosRequestConfig
5146
- ): OperationResponse<Paths.CreateMessageTask.Responses.$200>
5147
- /**
5148
- * UpdateOrgTask
5149
- */
5150
- 'UpdateOrgTask'(
5151
- parameters?: Parameters<Paths.UpdateOrgTask.PathParameters> | null,
5152
- data?: Paths.UpdateOrgTask.RequestBody,
5153
- config?: AxiosRequestConfig
5154
- ): OperationResponse<Paths.UpdateOrgTask.Responses.$200>
5155
- /**
5156
- * CreateChatCompletion - Create a chat completion
5157
- */
5158
- 'CreateChatCompletion'(
5159
- parameters?: Parameters<UnknownParamsObject> | null,
5160
- data?: Paths.CreateChatCompletion.RequestBody,
5161
- config?: AxiosRequestConfig
5162
- ): OperationResponse<Paths.CreateChatCompletion.Responses.$200>
5163
- /**
5164
- * GetModels - Get available models, optionally filtered by type
5165
- */
5166
- 'GetModels'(
5167
- parameters?: Parameters<Paths.GetModels.QueryParameters> | null,
5168
- data?: any,
5169
- config?: AxiosRequestConfig
5170
- ): OperationResponse<Paths.GetModels.Responses.$200>
5171
- /**
5172
- * GetTools - Get available tools for the organization/user
5173
- */
5174
- 'GetTools'(
5175
- parameters?: Parameters<UnknownParamsObject> | null,
5176
- data?: any,
5177
- config?: AxiosRequestConfig
5178
- ): OperationResponse<Paths.GetTools.Responses.$200>
5179
- /**
5180
- * TestKnowhowTool - Test a specific tool by calling it with provided arguments
5181
- */
5182
- 'TestKnowhowTool'(
5183
- parameters?: Parameters<UnknownParamsObject> | null,
5184
- data?: Paths.TestKnowhowTool.RequestBody,
5185
- config?: AxiosRequestConfig
5186
- ): OperationResponse<Paths.TestKnowhowTool.Responses.$200>
5187
- /**
5188
- * CreateEmbeddings - Generate text embeddings
5189
- */
5190
- 'CreateEmbeddings'(
5191
- parameters?: Parameters<UnknownParamsObject> | null,
5192
- data?: Paths.CreateEmbeddings.RequestBody,
5393
+ 'CreateEmbeddings'(
5394
+ parameters?: Parameters<UnknownParamsObject> | null,
5395
+ data?: Paths.CreateEmbeddings.RequestBody,
5193
5396
  config?: AxiosRequestConfig
5194
5397
  ): OperationResponse<Paths.CreateEmbeddings.Responses.$200>
5195
5398
  }
@@ -5962,6 +6165,17 @@ export interface PathsDictionary {
5962
6165
  config?: AxiosRequestConfig
5963
6166
  ): OperationResponse<Paths.DeleteOrgUserMcp.Responses.$204>
5964
6167
  }
6168
+ ['/org-user-mcp/auth-check']: {
6169
+ /**
6170
+ * ValidateAuthConfig - Validate authentication configuration
6171
+ * Tests if the provided auth config can successfully authenticate
6172
+ */
6173
+ 'post'(
6174
+ parameters?: Parameters<UnknownParamsObject> | null,
6175
+ data?: Paths.ValidateAuthConfig.RequestBody,
6176
+ config?: AxiosRequestConfig
6177
+ ): OperationResponse<Paths.ValidateAuthConfig.Responses.$200>
6178
+ }
5965
6179
  ['/org-services']: {
5966
6180
  /**
5967
6181
  * GetOrgServices
@@ -6352,6 +6566,118 @@ export interface PathsDictionary {
6352
6566
  config?: AxiosRequestConfig
6353
6567
  ): OperationResponse<Paths.ProxyGetModels.Responses.$200>
6354
6568
  }
6569
+ ['/chat/sessions']: {
6570
+ /**
6571
+ * GetChatSessions
6572
+ */
6573
+ 'get'(
6574
+ parameters?: Parameters<Paths.GetChatSessions.QueryParameters> | null,
6575
+ data?: any,
6576
+ config?: AxiosRequestConfig
6577
+ ): OperationResponse<Paths.GetChatSessions.Responses.$200>
6578
+ /**
6579
+ * CreateChatSession
6580
+ */
6581
+ 'post'(
6582
+ parameters?: Parameters<UnknownParamsObject> | null,
6583
+ data?: Paths.CreateChatSession.RequestBody,
6584
+ config?: AxiosRequestConfig
6585
+ ): OperationResponse<Paths.CreateChatSession.Responses.$200>
6586
+ }
6587
+ ['/chat/sessions/{sessionId}']: {
6588
+ /**
6589
+ * GetChatSession
6590
+ */
6591
+ 'get'(
6592
+ parameters?: Parameters<Paths.GetChatSession.PathParameters> | null,
6593
+ data?: any,
6594
+ config?: AxiosRequestConfig
6595
+ ): OperationResponse<Paths.GetChatSession.Responses.$200>
6596
+ /**
6597
+ * UpdateChatSession
6598
+ */
6599
+ 'put'(
6600
+ parameters?: Parameters<Paths.UpdateChatSession.PathParameters> | null,
6601
+ data?: Paths.UpdateChatSession.RequestBody,
6602
+ config?: AxiosRequestConfig
6603
+ ): OperationResponse<Paths.UpdateChatSession.Responses.$200>
6604
+ /**
6605
+ * DeleteChatSession
6606
+ */
6607
+ 'delete'(
6608
+ parameters?: Parameters<Paths.DeleteChatSession.PathParameters> | null,
6609
+ data?: any,
6610
+ config?: AxiosRequestConfig
6611
+ ): OperationResponse<Paths.DeleteChatSession.Responses.$204>
6612
+ }
6613
+ ['/chat/sessions/{sessionId}/messages']: {
6614
+ /**
6615
+ * GetChatSessionMessages
6616
+ */
6617
+ 'get'(
6618
+ parameters?: Parameters<Paths.GetChatSessionMessages.PathParameters> | null,
6619
+ data?: any,
6620
+ config?: AxiosRequestConfig
6621
+ ): OperationResponse<Paths.GetChatSessionMessages.Responses.$200>
6622
+ /**
6623
+ * CreateChatMessage
6624
+ */
6625
+ 'post'(
6626
+ parameters?: Parameters<Paths.CreateChatMessage.PathParameters> | null,
6627
+ data?: Paths.CreateChatMessage.RequestBody,
6628
+ config?: AxiosRequestConfig
6629
+ ): OperationResponse<Paths.CreateChatMessage.Responses.$200>
6630
+ }
6631
+ ['/chat/sessions/{sessionId}/messages/{messageId}']: {
6632
+ /**
6633
+ * DeleteChatMessage
6634
+ */
6635
+ 'delete'(
6636
+ parameters?: Parameters<Paths.DeleteChatMessage.PathParameters> | null,
6637
+ data?: any,
6638
+ config?: AxiosRequestConfig
6639
+ ): OperationResponse<Paths.DeleteChatMessage.Responses.$204>
6640
+ }
6641
+ ['/chat/public']: {
6642
+ /**
6643
+ * PublicChat
6644
+ */
6645
+ 'post'(
6646
+ parameters?: Parameters<UnknownParamsObject> | null,
6647
+ data?: Paths.PublicChat.RequestBody,
6648
+ config?: AxiosRequestConfig
6649
+ ): OperationResponse<Paths.PublicChat.Responses.$200>
6650
+ }
6651
+ ['/chat/sessions/from-thread']: {
6652
+ /**
6653
+ * CreateSessionFromThread
6654
+ */
6655
+ 'post'(
6656
+ parameters?: Parameters<UnknownParamsObject> | null,
6657
+ data?: Paths.CreateSessionFromThread.RequestBody,
6658
+ config?: AxiosRequestConfig
6659
+ ): OperationResponse<Paths.CreateSessionFromThread.Responses.$200>
6660
+ }
6661
+ ['/chat/tasks']: {
6662
+ /**
6663
+ * CreateMessageTask
6664
+ */
6665
+ 'post'(
6666
+ parameters?: Parameters<UnknownParamsObject> | null,
6667
+ data?: Paths.CreateMessageTask.RequestBody,
6668
+ config?: AxiosRequestConfig
6669
+ ): OperationResponse<Paths.CreateMessageTask.Responses.$200>
6670
+ }
6671
+ ['/chat/tasks/{taskId}']: {
6672
+ /**
6673
+ * UpdateOrgTask
6674
+ */
6675
+ 'put'(
6676
+ parameters?: Parameters<Paths.UpdateOrgTask.PathParameters> | null,
6677
+ data?: Paths.UpdateOrgTask.RequestBody,
6678
+ config?: AxiosRequestConfig
6679
+ ): OperationResponse<Paths.UpdateOrgTask.Responses.$200>
6680
+ }
6355
6681
  ['/health']: {
6356
6682
  /**
6357
6683
  * GetHealth - Basic health check
@@ -6400,6 +6726,47 @@ export interface PathsDictionary {
6400
6726
  config?: AxiosRequestConfig
6401
6727
  ): OperationResponse<Paths.GetLiveness.Responses.$200>
6402
6728
  }
6729
+ ['/mcp-auth/probe']: {
6730
+ /**
6731
+ * ProbeMcpServer - Probe an MCP server URL to detect OAuth capabilities
6732
+ */
6733
+ 'post'(
6734
+ parameters?: Parameters<UnknownParamsObject> | null,
6735
+ data?: Paths.ProbeMcpServer.RequestBody,
6736
+ config?: AxiosRequestConfig
6737
+ ): OperationResponse<Paths.ProbeMcpServer.Responses.$200>
6738
+ }
6739
+ ['/mcp-auth/initiate']: {
6740
+ /**
6741
+ * InitiateOAuthFlow - Initiate OAuth flow for MCP server authentication
6742
+ */
6743
+ 'post'(
6744
+ parameters?: Parameters<UnknownParamsObject> | null,
6745
+ data?: Paths.InitiateOAuthFlow.RequestBody,
6746
+ config?: AxiosRequestConfig
6747
+ ): OperationResponse<Paths.InitiateOAuthFlow.Responses.$200>
6748
+ }
6749
+ ['/mcp-auth/callback']: {
6750
+ /**
6751
+ * HandleOAuthCallback - Handle OAuth callback - Complete the OAuth flow
6752
+ * Called by the frontend after OAuth provider redirects back
6753
+ */
6754
+ 'post'(
6755
+ parameters?: Parameters<UnknownParamsObject> | null,
6756
+ data?: Paths.HandleOAuthCallback.RequestBody,
6757
+ config?: AxiosRequestConfig
6758
+ ): OperationResponse<Paths.HandleOAuthCallback.Responses.$200>
6759
+ }
6760
+ ['/mcp-auth/status/{secretName}']: {
6761
+ /**
6762
+ * CheckAuthStatus - Check authentication status for a secret
6763
+ */
6764
+ 'get'(
6765
+ parameters?: Parameters<Paths.CheckAuthStatus.QueryParameters & Paths.CheckAuthStatus.PathParameters> | null,
6766
+ data?: any,
6767
+ config?: AxiosRequestConfig
6768
+ ): OperationResponse<Paths.CheckAuthStatus.Responses.$200>
6769
+ }
6403
6770
  ['/github/token-status']: {
6404
6771
  /**
6405
6772
  * GetTokenStatus
@@ -6768,118 +7135,6 @@ export interface PathsDictionary {
6768
7135
  config?: AxiosRequestConfig
6769
7136
  ): OperationResponse<Paths.CleanupSessions.Responses.$200>
6770
7137
  }
6771
- ['/chat/sessions']: {
6772
- /**
6773
- * GetChatSessions
6774
- */
6775
- 'get'(
6776
- parameters?: Parameters<Paths.GetChatSessions.QueryParameters> | null,
6777
- data?: any,
6778
- config?: AxiosRequestConfig
6779
- ): OperationResponse<Paths.GetChatSessions.Responses.$200>
6780
- /**
6781
- * CreateChatSession
6782
- */
6783
- 'post'(
6784
- parameters?: Parameters<UnknownParamsObject> | null,
6785
- data?: Paths.CreateChatSession.RequestBody,
6786
- config?: AxiosRequestConfig
6787
- ): OperationResponse<Paths.CreateChatSession.Responses.$200>
6788
- }
6789
- ['/chat/sessions/{sessionId}']: {
6790
- /**
6791
- * GetChatSession
6792
- */
6793
- 'get'(
6794
- parameters?: Parameters<Paths.GetChatSession.PathParameters> | null,
6795
- data?: any,
6796
- config?: AxiosRequestConfig
6797
- ): OperationResponse<Paths.GetChatSession.Responses.$200>
6798
- /**
6799
- * UpdateChatSession
6800
- */
6801
- 'put'(
6802
- parameters?: Parameters<Paths.UpdateChatSession.PathParameters> | null,
6803
- data?: Paths.UpdateChatSession.RequestBody,
6804
- config?: AxiosRequestConfig
6805
- ): OperationResponse<Paths.UpdateChatSession.Responses.$200>
6806
- /**
6807
- * DeleteChatSession
6808
- */
6809
- 'delete'(
6810
- parameters?: Parameters<Paths.DeleteChatSession.PathParameters> | null,
6811
- data?: any,
6812
- config?: AxiosRequestConfig
6813
- ): OperationResponse<Paths.DeleteChatSession.Responses.$204>
6814
- }
6815
- ['/chat/sessions/{sessionId}/messages']: {
6816
- /**
6817
- * GetChatSessionMessages
6818
- */
6819
- 'get'(
6820
- parameters?: Parameters<Paths.GetChatSessionMessages.PathParameters> | null,
6821
- data?: any,
6822
- config?: AxiosRequestConfig
6823
- ): OperationResponse<Paths.GetChatSessionMessages.Responses.$200>
6824
- /**
6825
- * CreateChatMessage
6826
- */
6827
- 'post'(
6828
- parameters?: Parameters<Paths.CreateChatMessage.PathParameters> | null,
6829
- data?: Paths.CreateChatMessage.RequestBody,
6830
- config?: AxiosRequestConfig
6831
- ): OperationResponse<Paths.CreateChatMessage.Responses.$200>
6832
- }
6833
- ['/chat/sessions/{sessionId}/messages/{messageId}']: {
6834
- /**
6835
- * DeleteChatMessage
6836
- */
6837
- 'delete'(
6838
- parameters?: Parameters<Paths.DeleteChatMessage.PathParameters> | null,
6839
- data?: any,
6840
- config?: AxiosRequestConfig
6841
- ): OperationResponse<Paths.DeleteChatMessage.Responses.$204>
6842
- }
6843
- ['/chat/public']: {
6844
- /**
6845
- * PublicChat
6846
- */
6847
- 'post'(
6848
- parameters?: Parameters<UnknownParamsObject> | null,
6849
- data?: Paths.PublicChat.RequestBody,
6850
- config?: AxiosRequestConfig
6851
- ): OperationResponse<Paths.PublicChat.Responses.$200>
6852
- }
6853
- ['/chat/sessions/from-thread']: {
6854
- /**
6855
- * CreateSessionFromThread
6856
- */
6857
- 'post'(
6858
- parameters?: Parameters<UnknownParamsObject> | null,
6859
- data?: Paths.CreateSessionFromThread.RequestBody,
6860
- config?: AxiosRequestConfig
6861
- ): OperationResponse<Paths.CreateSessionFromThread.Responses.$200>
6862
- }
6863
- ['/chat/tasks']: {
6864
- /**
6865
- * CreateMessageTask
6866
- */
6867
- 'post'(
6868
- parameters?: Parameters<UnknownParamsObject> | null,
6869
- data?: Paths.CreateMessageTask.RequestBody,
6870
- config?: AxiosRequestConfig
6871
- ): OperationResponse<Paths.CreateMessageTask.Responses.$200>
6872
- }
6873
- ['/chat/tasks/{taskId}']: {
6874
- /**
6875
- * UpdateOrgTask
6876
- */
6877
- 'put'(
6878
- parameters?: Parameters<Paths.UpdateOrgTask.PathParameters> | null,
6879
- data?: Paths.UpdateOrgTask.RequestBody,
6880
- config?: AxiosRequestConfig
6881
- ): OperationResponse<Paths.UpdateOrgTask.Responses.$200>
6882
- }
6883
7138
  ['/ai/chat/completions']: {
6884
7139
  /**
6885
7140
  * CreateChatCompletion - Create a chat completion
@@ -6938,8 +7193,11 @@ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
6938
7193
  export type AICompletionOptions = Components.Schemas.AICompletionOptions;
6939
7194
  export type AIEmbeddingOptions = Components.Schemas.AIEmbeddingOptions;
6940
7195
  export type AddCommentRequest = Components.Schemas.AddCommentRequest;
7196
+ export type ApiKeyAuthConfig = Components.Schemas.ApiKeyAuthConfig;
6941
7197
  export type ApproveSessionResponse = Components.Schemas.ApproveSessionResponse;
7198
+ export type AuthStatusResponse = Components.Schemas.AuthStatusResponse;
6942
7199
  export type AutoReloadSettings = Components.Schemas.AutoReloadSettings;
7200
+ export type BasicAuthConfig = Components.Schemas.BasicAuthConfig;
6943
7201
  export type ChatCompletionResponse = Components.Schemas.ChatCompletionResponse;
6944
7202
  export type CliLoginSessionStatus = Components.Schemas.CliLoginSessionStatus;
6945
7203
  export type CompletionResponse = Components.Schemas.CompletionResponse;
@@ -6982,6 +7240,8 @@ export type FilterType_Prisma_OrgFileUpdateWithoutOrganizationInput_OrgFileOptio
6982
7240
  export type Generate2FAResponse = Components.Schemas.Generate2FAResponse;
6983
7241
  export type Get2FAStatusResponse = Components.Schemas.Get2FAStatusResponse;
6984
7242
  export type HealthCheckResponse = Components.Schemas.HealthCheckResponse;
7243
+ export type InitiateOAuthRequest = Components.Schemas.InitiateOAuthRequest;
7244
+ export type InitiateOAuthResponse = Components.Schemas.InitiateOAuthResponse;
6985
7245
  export type InputJsonArray = Components.Schemas.InputJsonArray;
6986
7246
  export type InputJsonObject = Components.Schemas.InputJsonObject;
6987
7247
  export type InputJsonValue = Components.Schemas.InputJsonValue;
@@ -6991,6 +7251,7 @@ export type JsonValue = Components.Schemas.JsonValue;
6991
7251
  export type LivenessResponse = Components.Schemas.LivenessResponse;
6992
7252
  export type MarkCompletedRequest = Components.Schemas.MarkCompletedRequest;
6993
7253
  export type MarkCompletedResponse = Components.Schemas.MarkCompletedResponse;
7254
+ export type McpAuthConfig = Components.Schemas.McpAuthConfig;
6994
7255
  export type Message = Components.Schemas.Message;
6995
7256
  export type MessageContent = Components.Schemas.MessageContent;
6996
7257
  export type N$16_Enums_CheckState = Components.Schemas.N$16EnumsCheckState;
@@ -6999,7 +7260,10 @@ export type N$16_Enums_FundingMethod = Components.Schemas.N$16EnumsFundingMethod
6999
7260
  export type N$16_Enums_TaskState = Components.Schemas.N$16EnumsTaskState;
7000
7261
  export type N$16_Enums_UserRole = Components.Schemas.N$16EnumsUserRole;
7001
7262
  export type N$16_Enums_WaitlistStatus = Components.Schemas.N$16EnumsWaitlistStatus;
7263
+ export type NoAuthConfig = Components.Schemas.NoAuthConfig;
7002
7264
  export type NullablePartial_Pick_Prisma_OrganizationUncheckedUpdateWithoutUsersInput_OrganizationOptionalFields__ = Components.Schemas.NullablePartialPickPrismaOrganizationUncheckedUpdateWithoutUsersInputOrganizationOptionalFields;
7265
+ export type OAuth21DynamicAuthConfig = Components.Schemas.OAuth21DynamicAuthConfig;
7266
+ export type OAuth21StaticAuthConfig = Components.Schemas.OAuth21StaticAuthConfig;
7003
7267
  export type Omit_EmbedSource_output_ = Components.Schemas.OmitEmbedSourceOutput;
7004
7268
  export type Omit_PartialBy_Prisma_OrgEmbeddingUpdateWithoutOrganizationInput_OrgEmbeddingOptionalFields__OrgEmbeddingExcludedFields_ = Components.Schemas.OmitPartialByPrismaOrgEmbeddingUpdateWithoutOrganizationInputOrgEmbeddingOptionalFieldsOrgEmbeddingExcludedFields;
7005
7269
  export type Omit_PartialBy_Prisma_OrgFileUpdateWithoutOrganizationInput_OrgFileOptionalFields__OrgFileExcludedFields_ = Components.Schemas.OmitPartialByPrismaOrgFileUpdateWithoutOrganizationInputOrgFileOptionalFieldsOrgFileExcludedFields;
@@ -7045,6 +7309,8 @@ export type Prisma_NullableStringFieldUpdateOperationsInput = Components.Schemas
7045
7309
  export type Prisma_OrgEmbeddingCreateWithoutOrganizationInput = Components.Schemas.PrismaOrgEmbeddingCreateWithoutOrganizationInput;
7046
7310
  export type Prisma_OrgFileCreateWithoutOrganizationInput = Components.Schemas.PrismaOrgFileCreateWithoutOrganizationInput;
7047
7311
  export type Prisma_StringFieldUpdateOperationsInput = Components.Schemas.PrismaStringFieldUpdateOperationsInput;
7312
+ export type ProbeRequest = Components.Schemas.ProbeRequest;
7313
+ export type ProbeResponse = Components.Schemas.ProbeResponse;
7048
7314
  export type PublicChatRequest = Components.Schemas.PublicChatRequest;
7049
7315
  export type PurchaseHistoryResponse = Components.Schemas.PurchaseHistoryResponse;
7050
7316
  export type ReadinessResponse = Components.Schemas.ReadinessResponse;