@caido/sdk-frontend 0.51.1 → 0.51.2-beta.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "v0.51.1",
3
+ "version": "0.51.2-beta.1",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -132,6 +132,47 @@ export type Scalars = {
132
132
  output: string;
133
133
  };
134
134
  };
135
+ export declare const AiErrorReason: {
136
+ readonly InvalidAuthentication: "INVALID_AUTHENTICATION";
137
+ readonly ProviderNotConfigured: "PROVIDER_NOT_CONFIGURED";
138
+ readonly RequestMalformed: "REQUEST_MALFORMED";
139
+ };
140
+ export type AiErrorReason = (typeof AiErrorReason)[keyof typeof AiErrorReason];
141
+ export type AiProviderAnthropic = {
142
+ apiKey: Scalars["Sensitive"]["output"];
143
+ };
144
+ export type AiProviderAnthropicInput = {
145
+ apiKey: Scalars["Sensitive"]["input"];
146
+ };
147
+ export type AiProviderGoogle = {
148
+ apiKey: Scalars["Sensitive"]["output"];
149
+ };
150
+ export type AiProviderGoogleInput = {
151
+ apiKey: Scalars["Sensitive"]["input"];
152
+ };
153
+ export type AiProviderOpenAi = {
154
+ apiKey: Scalars["Sensitive"]["output"];
155
+ };
156
+ export type AiProviderOpenAiInput = {
157
+ apiKey: Scalars["Sensitive"]["input"];
158
+ };
159
+ export type AiProviderOpenRouter = {
160
+ apiKey: Scalars["Sensitive"]["output"];
161
+ };
162
+ export type AiProviderOpenRouterInput = {
163
+ apiKey: Scalars["Sensitive"]["input"];
164
+ };
165
+ export type AiProviders = {
166
+ anthropic?: Maybe<AiProviderAnthropic>;
167
+ google?: Maybe<AiProviderGoogle>;
168
+ openai?: Maybe<AiProviderOpenAi>;
169
+ openrouter?: Maybe<AiProviderOpenRouter>;
170
+ };
171
+ export type AiUserError = UserError & {
172
+ code: Scalars["String"]["output"];
173
+ message: Scalars["String"]["output"];
174
+ reason: AiErrorReason;
175
+ };
135
176
  export type AliasTakenUserError = UserError & {
136
177
  alias: Scalars["String"]["output"];
137
178
  code: Scalars["String"]["output"];
@@ -1477,6 +1518,9 @@ export type InstallPluginPackagePayload = {
1477
1518
  error?: Maybe<InstallPluginPackageError>;
1478
1519
  package?: Maybe<PluginPackage>;
1479
1520
  };
1521
+ export type InstanceSettings = {
1522
+ aiProviders: AiProviders;
1523
+ };
1480
1524
  export type InterceptEntry = {
1481
1525
  id: Scalars["ID"]["output"];
1482
1526
  request: Request;
@@ -1747,6 +1791,7 @@ export type MutationRoot = {
1747
1791
  setGlobalConfigOnboarding: SetConfigOnboardingPayload;
1748
1792
  setGlobalConfigPort: SetConfigPortPayload;
1749
1793
  setGlobalConfigProject: SetConfigProjectPayload;
1794
+ setInstanceSettings: SetInstanceSettingsPayload;
1750
1795
  setInterceptOptions: SetInterceptOptionsPayload;
1751
1796
  setPluginData: SetPluginDataPayload;
1752
1797
  setProjectConfigStream: SetProjectConfigStreamPayload;
@@ -1754,6 +1799,7 @@ export type MutationRoot = {
1754
1799
  startAutomateTask: StartAutomateTaskPayload;
1755
1800
  startExportRequestsTask: StartExportRequestsTaskPayload;
1756
1801
  startReplayTask: StartReplayTaskPayload;
1802
+ testAiProvider: TestAiProviderPayload;
1757
1803
  testTamperRule: TestTamperRulePayload;
1758
1804
  testUpstreamProxyHttp: TestUpstreamProxyHttpPayload;
1759
1805
  testUpstreamProxySocks: TestUpstreamProxySocksPayload;
@@ -2074,6 +2120,9 @@ export type MutationRootSetGlobalConfigPortArgs = {
2074
2120
  export type MutationRootSetGlobalConfigProjectArgs = {
2075
2121
  input: SetConfigProjectInput;
2076
2122
  };
2123
+ export type MutationRootSetInstanceSettingsArgs = {
2124
+ input: SetInstanceSettingsInput;
2125
+ };
2077
2126
  export type MutationRootSetInterceptOptionsArgs = {
2078
2127
  input: InterceptOptionsInput;
2079
2128
  };
@@ -2094,6 +2143,9 @@ export type MutationRootStartReplayTaskArgs = {
2094
2143
  input: StartReplayTaskInput;
2095
2144
  sessionId: Scalars["ID"]["input"];
2096
2145
  };
2146
+ export type MutationRootTestAiProviderArgs = {
2147
+ input: TestAiProviderInput;
2148
+ };
2097
2149
  export type MutationRootTestTamperRuleArgs = {
2098
2150
  input: TestTamperRuleInput;
2099
2151
  };
@@ -2236,7 +2288,7 @@ export type PauseInterceptPayload = {
2236
2288
  export declare const PermissionDeniedErrorReason: {
2237
2289
  readonly Entitlement: "ENTITLEMENT";
2238
2290
  readonly GuestUser: "GUEST_USER";
2239
- readonly PluginUser: "PLUGIN_USER";
2291
+ readonly ScriptUser: "SCRIPT_USER";
2240
2292
  };
2241
2293
  export type PermissionDeniedErrorReason = (typeof PermissionDeniedErrorReason)[keyof typeof PermissionDeniedErrorReason];
2242
2294
  export type PermissionDeniedUserError = UserError & {
@@ -2306,9 +2358,15 @@ export type PluginPackage = {
2306
2358
  export type PluginPackageSource = {
2307
2359
  file: Scalars["Upload"]["input"];
2308
2360
  manifestId?: never;
2361
+ url?: never;
2309
2362
  } | {
2310
2363
  file?: never;
2311
2364
  manifestId: Scalars["ID"]["input"];
2365
+ url?: never;
2366
+ } | {
2367
+ file?: never;
2368
+ manifestId?: never;
2369
+ url: Scalars["Url"]["input"];
2312
2370
  };
2313
2371
  export declare const PluginRuntime: {
2314
2372
  readonly Javascript: "JAVASCRIPT";
@@ -2404,6 +2462,7 @@ export type QueryRoot = {
2404
2462
  findingsByOffset: FindingConnection;
2405
2463
  globalConfig: GlobalConfig;
2406
2464
  hostedFiles: Array<HostedFile>;
2465
+ instanceSettings: InstanceSettings;
2407
2466
  interceptEntries: InterceptEntryConnection;
2408
2467
  interceptEntriesByOffset: InterceptEntryConnection;
2409
2468
  interceptEntry?: Maybe<InterceptEntry>;
@@ -3128,6 +3187,12 @@ export type SetConfigProjectInput = {
3128
3187
  export type SetConfigProjectPayload = {
3129
3188
  config: GlobalConfig;
3130
3189
  };
3190
+ export type SetInstanceSettingsInput = {
3191
+ aiProvider: SettingsAiProviderInput;
3192
+ };
3193
+ export type SetInstanceSettingsPayload = {
3194
+ settings: InstanceSettings;
3195
+ };
3131
3196
  export type SetInterceptOptionsPayload = {
3132
3197
  options: InterceptOptions;
3133
3198
  };
@@ -3139,6 +3204,27 @@ export type SetPluginDataPayload = {
3139
3204
  export type SetProjectConfigStreamPayload = {
3140
3205
  config: ProjectConfigStream;
3141
3206
  };
3207
+ export type SettingsAiProviderInput = {
3208
+ anthropic: AiProviderAnthropicInput;
3209
+ google?: never;
3210
+ openai?: never;
3211
+ openrouter?: never;
3212
+ } | {
3213
+ anthropic?: never;
3214
+ google: AiProviderGoogleInput;
3215
+ openai?: never;
3216
+ openrouter?: never;
3217
+ } | {
3218
+ anthropic?: never;
3219
+ google?: never;
3220
+ openai: AiProviderOpenAiInput;
3221
+ openrouter?: never;
3222
+ } | {
3223
+ anthropic?: never;
3224
+ google?: never;
3225
+ openai?: never;
3226
+ openrouter: AiProviderOpenRouterInput;
3227
+ };
3142
3228
  export declare const SitemapDescendantsDepth: {
3143
3229
  readonly All: "ALL";
3144
3230
  readonly Direct: "DIRECT";
@@ -3459,6 +3545,7 @@ export type SubscriptionRoot = {
3459
3545
  updatedFilterPreset: UpdatedFilterPresetPayload;
3460
3546
  updatedFindings: UpdatedFindingsPayload;
3461
3547
  updatedHostedFile: UpdatedHostedFilePayload;
3548
+ updatedInstanceSettings: UpdatedInstanceSettingsPayload;
3462
3549
  updatedInterceptEntry: UpdatedInterceptEntryPayload;
3463
3550
  updatedInterceptOptions: UpdatedInterceptOptionsPayload;
3464
3551
  updatedInterceptStatus: UpdatedInterceptStatusPayload;
@@ -3938,6 +4025,32 @@ export type TaskInProgressUserError = UserError & {
3938
4025
  code: Scalars["String"]["output"];
3939
4026
  taskId: Scalars["ID"]["output"];
3940
4027
  };
4028
+ export type TestAiProviderError = AiUserError | OtherUserError;
4029
+ export type TestAiProviderInput = {
4030
+ anthropic: AiProviderAnthropicInput;
4031
+ google?: never;
4032
+ openai?: never;
4033
+ openrouter?: never;
4034
+ } | {
4035
+ anthropic?: never;
4036
+ google: AiProviderGoogleInput;
4037
+ openai?: never;
4038
+ openrouter?: never;
4039
+ } | {
4040
+ anthropic?: never;
4041
+ google?: never;
4042
+ openai: AiProviderOpenAiInput;
4043
+ openrouter?: never;
4044
+ } | {
4045
+ anthropic?: never;
4046
+ google?: never;
4047
+ openai?: never;
4048
+ openrouter: AiProviderOpenRouterInput;
4049
+ };
4050
+ export type TestAiProviderPayload = {
4051
+ error?: Maybe<TestAiProviderError>;
4052
+ success?: Maybe<Scalars["Boolean"]["output"]>;
4053
+ };
3941
4054
  export type TestTamperRuleError = InvalidRegexUserError | OtherUserError;
3942
4055
  export type TestTamperRuleInput = {
3943
4056
  raw: Scalars["Blob"]["input"];
@@ -4215,6 +4328,9 @@ export type UpdatedFindingsPayload = {
4215
4328
  export type UpdatedHostedFilePayload = {
4216
4329
  hostedFile: HostedFile;
4217
4330
  };
4331
+ export type UpdatedInstanceSettingsPayload = {
4332
+ settings: InstanceSettings;
4333
+ };
4218
4334
  export type UpdatedInterceptEntryPayload = {
4219
4335
  interceptEntryEdge: InterceptEntryEdge;
4220
4336
  snapshot: Scalars["Snapshot"]["output"];
@@ -8174,6 +8290,10 @@ export type InvalidGlobTermsUserErrorFullFragment = {
8174
8290
  terms: Array<string>;
8175
8291
  code: string;
8176
8292
  };
8293
+ type UserErrorFull_AiUserError_Fragment = {
8294
+ __typename: "AIUserError";
8295
+ code: string;
8296
+ };
8177
8297
  type UserErrorFull_AliasTakenUserError_Fragment = {
8178
8298
  __typename: "AliasTakenUserError";
8179
8299
  code: string;
@@ -8278,7 +8398,7 @@ type UserErrorFull_WorkflowUserError_Fragment = {
8278
8398
  __typename: "WorkflowUserError";
8279
8399
  code: string;
8280
8400
  };
8281
- export type UserErrorFullFragment = UserErrorFull_AliasTakenUserError_Fragment | UserErrorFull_AssistantUserError_Fragment | UserErrorFull_AuthenticationUserError_Fragment | UserErrorFull_AuthorizationUserError_Fragment | UserErrorFull_AutomateTaskUserError_Fragment | UserErrorFull_BackupUserError_Fragment | UserErrorFull_CertificateUserError_Fragment | UserErrorFull_CloudUserError_Fragment | UserErrorFull_InternalUserError_Fragment | UserErrorFull_InvalidGlobTermsUserError_Fragment | UserErrorFull_InvalidHttpqlUserError_Fragment | UserErrorFull_InvalidRegexUserError_Fragment | UserErrorFull_NameTakenUserError_Fragment | UserErrorFull_NewerVersionUserError_Fragment | UserErrorFull_OtherUserError_Fragment | UserErrorFull_PermissionDeniedUserError_Fragment | UserErrorFull_PluginUserError_Fragment | UserErrorFull_ProjectUserError_Fragment | UserErrorFull_RankUserError_Fragment | UserErrorFull_ReadOnlyUserError_Fragment | UserErrorFull_RenderFailedUserError_Fragment | UserErrorFull_StoreUserError_Fragment | UserErrorFull_TaskInProgressUserError_Fragment | UserErrorFull_UnknownIdUserError_Fragment | UserErrorFull_UnsupportedPlatformUserError_Fragment | UserErrorFull_WorkflowUserError_Fragment;
8401
+ export type UserErrorFullFragment = UserErrorFull_AiUserError_Fragment | UserErrorFull_AliasTakenUserError_Fragment | UserErrorFull_AssistantUserError_Fragment | UserErrorFull_AuthenticationUserError_Fragment | UserErrorFull_AuthorizationUserError_Fragment | UserErrorFull_AutomateTaskUserError_Fragment | UserErrorFull_BackupUserError_Fragment | UserErrorFull_CertificateUserError_Fragment | UserErrorFull_CloudUserError_Fragment | UserErrorFull_InternalUserError_Fragment | UserErrorFull_InvalidGlobTermsUserError_Fragment | UserErrorFull_InvalidHttpqlUserError_Fragment | UserErrorFull_InvalidRegexUserError_Fragment | UserErrorFull_NameTakenUserError_Fragment | UserErrorFull_NewerVersionUserError_Fragment | UserErrorFull_OtherUserError_Fragment | UserErrorFull_PermissionDeniedUserError_Fragment | UserErrorFull_PluginUserError_Fragment | UserErrorFull_ProjectUserError_Fragment | UserErrorFull_RankUserError_Fragment | UserErrorFull_ReadOnlyUserError_Fragment | UserErrorFull_RenderFailedUserError_Fragment | UserErrorFull_StoreUserError_Fragment | UserErrorFull_TaskInProgressUserError_Fragment | UserErrorFull_UnknownIdUserError_Fragment | UserErrorFull_UnsupportedPlatformUserError_Fragment | UserErrorFull_WorkflowUserError_Fragment;
8282
8402
  export type InvalidHttpqlUserErrorFullFragment = {
8283
8403
  __typename: "InvalidHTTPQLUserError";
8284
8404
  query: string;
@@ -9939,6 +10059,118 @@ export type HostedFilesQuery = {
9939
10059
  createdAt: Date;
9940
10060
  }>;
9941
10061
  };
10062
+ export type InstanceSettingsFullFragment = {
10063
+ __typename: "InstanceSettings";
10064
+ aiProviders: {
10065
+ anthropic?: {
10066
+ apiKey: string;
10067
+ } | undefined | null;
10068
+ google?: {
10069
+ apiKey: string;
10070
+ } | undefined | null;
10071
+ openai?: {
10072
+ apiKey: string;
10073
+ } | undefined | null;
10074
+ openrouter?: {
10075
+ apiKey: string;
10076
+ } | undefined | null;
10077
+ };
10078
+ };
10079
+ export type TestAiProviderPayloadFullFragment = {
10080
+ success?: boolean | undefined | null;
10081
+ error?: {
10082
+ code: string;
10083
+ message: string;
10084
+ reason: AiErrorReason;
10085
+ } | {
10086
+ code: string;
10087
+ } | undefined | null;
10088
+ };
10089
+ export type SetInstanceSettingsMutationVariables = Exact<{
10090
+ input: SetInstanceSettingsInput;
10091
+ }>;
10092
+ export type SetInstanceSettingsMutation = {
10093
+ setInstanceSettings: {
10094
+ settings: {
10095
+ __typename: "InstanceSettings";
10096
+ aiProviders: {
10097
+ anthropic?: {
10098
+ apiKey: string;
10099
+ } | undefined | null;
10100
+ google?: {
10101
+ apiKey: string;
10102
+ } | undefined | null;
10103
+ openai?: {
10104
+ apiKey: string;
10105
+ } | undefined | null;
10106
+ openrouter?: {
10107
+ apiKey: string;
10108
+ } | undefined | null;
10109
+ };
10110
+ };
10111
+ };
10112
+ };
10113
+ export type TestAiProviderMutationVariables = Exact<{
10114
+ input: TestAiProviderInput;
10115
+ }>;
10116
+ export type TestAiProviderMutation = {
10117
+ testAiProvider: {
10118
+ success?: boolean | undefined | null;
10119
+ error?: {
10120
+ code: string;
10121
+ message: string;
10122
+ reason: AiErrorReason;
10123
+ } | {
10124
+ code: string;
10125
+ } | undefined | null;
10126
+ };
10127
+ };
10128
+ export type InstanceSettingsQueryVariables = Exact<{
10129
+ [key: string]: never;
10130
+ }>;
10131
+ export type InstanceSettingsQuery = {
10132
+ instanceSettings: {
10133
+ __typename: "InstanceSettings";
10134
+ aiProviders: {
10135
+ anthropic?: {
10136
+ apiKey: string;
10137
+ } | undefined | null;
10138
+ google?: {
10139
+ apiKey: string;
10140
+ } | undefined | null;
10141
+ openai?: {
10142
+ apiKey: string;
10143
+ } | undefined | null;
10144
+ openrouter?: {
10145
+ apiKey: string;
10146
+ } | undefined | null;
10147
+ };
10148
+ };
10149
+ };
10150
+ export type UpdatedInstanceSettingsSubscriptionVariables = Exact<{
10151
+ [key: string]: never;
10152
+ }>;
10153
+ export type UpdatedInstanceSettingsSubscription = {
10154
+ updatedInstanceSettings: {
10155
+ settings: {
10156
+ __typename: "InstanceSettings";
10157
+ aiProviders: {
10158
+ anthropic?: {
10159
+ apiKey: string;
10160
+ } | undefined | null;
10161
+ google?: {
10162
+ apiKey: string;
10163
+ } | undefined | null;
10164
+ openai?: {
10165
+ apiKey: string;
10166
+ } | undefined | null;
10167
+ openrouter?: {
10168
+ apiKey: string;
10169
+ } | undefined | null;
10170
+ };
10171
+ };
10172
+ };
10173
+ };
9942
10174
  export type InterceptRequestMessageMetaFragment = {
9943
10175
  __typename: "InterceptRequestMessage";
9944
10176
  id: string;
@@ -15140,6 +15372,7 @@ export type StorePluginPackageFullFragment = {
15140
15372
  name?: string | undefined | null;
15141
15373
  repository: string;
15142
15374
  version: string;
15375
+ official: boolean;
15143
15376
  author?: {
15144
15377
  email?: string | undefined | null;
15145
15378
  name?: string | undefined | null;
@@ -15229,6 +15462,7 @@ export type StorePluginPackagesQuery = {
15229
15462
  name?: string | undefined | null;
15230
15463
  repository: string;
15231
15464
  version: string;
15465
+ official: boolean;
15232
15466
  author?: {
15233
15467
  email?: string | undefined | null;
15234
15468
  name?: string | undefined | null;
@@ -20949,6 +21183,8 @@ export type FinishedTaskSubscription = {
20949
21183
  code: string;
20950
21184
  } | {
20951
21185
  code: string;
21186
+ } | {
21187
+ code: string;
20952
21188
  } | undefined | null;
20953
21189
  };
20954
21190
  };
@@ -22071,6 +22307,8 @@ export declare const InterceptEntryFullFragmentDoc = "\n fragment interceptEn
22071
22307
  export declare const InterceptEntryEdgeMetaFragmentDoc = "\n fragment interceptEntryEdgeMeta on InterceptEntryEdge {\n __typename\n cursor\n node {\n ...interceptEntryMeta\n }\n}\n ";
22072
22308
  export declare const DeleteInterceptEntriesTaskFullFragmentDoc = "\n fragment deleteInterceptEntriesTaskFull on DeleteInterceptEntriesTask {\n __typename\n id\n deletedEntryIds\n}\n ";
22073
22309
  export declare const HostedFileFullFragmentDoc = "\n fragment hostedFileFull on HostedFile {\n __typename\n id\n name\n path\n size\n status\n updatedAt\n createdAt\n}\n ";
22310
+ export declare const InstanceSettingsFullFragmentDoc = "\n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
22311
+ export declare const TestAiProviderPayloadFullFragmentDoc = "\n fragment testAiProviderPayloadFull on TestAIProviderPayload {\n error {\n ... on AIUserError {\n code\n message\n reason\n }\n ... on OtherUserError {\n code\n }\n }\n success\n}\n ";
22074
22312
  export declare const InterceptRequestMessageMetaFragmentDoc = "\n fragment interceptRequestMessageMeta on InterceptRequestMessage {\n __typename\n id\n request {\n ...requestMeta\n }\n}\n ";
22075
22313
  export declare const InterceptResponseMessageMetaFragmentDoc = "\n fragment interceptResponseMessageMeta on InterceptResponseMessage {\n __typename\n id\n response {\n ...responseMeta\n }\n request {\n ...requestMeta\n }\n}\n ";
22076
22314
  export declare const StreamWsMessageEditRefFragmentDoc = "\n fragment streamWsMessageEditRef on StreamWsMessageEditRef {\n id\n alteration\n}\n ";
@@ -22125,7 +22363,7 @@ export declare const PluginBackendFullFragmentDoc = "\n fragment pluginBacken
22125
22363
  export declare const WorkflowMetaFragmentDoc = "\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n ";
22126
22364
  export declare const PluginWorkflowFullFragmentDoc = "\n fragment pluginWorkflowFull on PluginWorkflow {\n ...pluginMeta\n name\n workflow {\n ...workflowMeta\n }\n}\n ";
22127
22365
  export declare const PluginPackageFullFragmentDoc = "\n fragment pluginPackageFull on PluginPackage {\n ...pluginPackageMeta\n plugins {\n ... on PluginFrontend {\n ...pluginFrontendFull\n }\n ... on PluginBackend {\n ...pluginBackendFull\n }\n ... on PluginWorkflow {\n ...pluginWorkflowFull\n }\n }\n}\n ";
22128
- export declare const StorePluginPackageFullFragmentDoc = "\n fragment storePluginPackageFull on StorePluginPackage {\n author {\n email\n name\n url\n }\n description\n downloads\n license\n manifestId\n name\n repository\n version\n}\n ";
22366
+ export declare const StorePluginPackageFullFragmentDoc = "\n fragment storePluginPackageFull on StorePluginPackage {\n author {\n email\n name\n url\n }\n description\n downloads\n license\n manifestId\n name\n repository\n version\n official\n}\n ";
22129
22367
  export declare const ProjectConfigStreamFullFragmentDoc = "\n fragment projectConfigStreamFull on ProjectConfigStream {\n stripExtension\n}\n ";
22130
22368
  export declare const ProjectConfigFullFragmentDoc = "\n fragment projectConfigFull on ProjectConfig {\n stream {\n ...projectConfigStreamFull\n }\n}\n ";
22131
22369
  export declare const CurrentProjectFullFragmentDoc = "\n fragment currentProjectFull on CurrentProject {\n project {\n ...projectFull\n }\n config {\n ...projectConfigFull\n }\n}\n ";
@@ -22307,6 +22545,10 @@ export declare const DeleteHostedFileDocument = "\n mutation deleteHostedFile
22307
22545
  export declare const RenameHostedFileDocument = "\n mutation renameHostedFile($id: ID!, $name: String!) {\n renameHostedFile(id: $id, name: $name) {\n hostedFile {\n ...hostedFileFull\n }\n }\n}\n \n fragment hostedFileFull on HostedFile {\n __typename\n id\n name\n path\n size\n status\n updatedAt\n createdAt\n}\n ";
22308
22546
  export declare const UploadHostedFileDocument = "\n mutation uploadHostedFile($input: UploadHostedFileInput!) {\n uploadHostedFile(input: $input) {\n hostedFile {\n ...hostedFileFull\n }\n }\n}\n \n fragment hostedFileFull on HostedFile {\n __typename\n id\n name\n path\n size\n status\n updatedAt\n createdAt\n}\n ";
22309
22547
  export declare const HostedFilesDocument = "\n query hostedFiles {\n hostedFiles {\n ...hostedFileFull\n }\n}\n \n fragment hostedFileFull on HostedFile {\n __typename\n id\n name\n path\n size\n status\n updatedAt\n createdAt\n}\n ";
22548
+ export declare const SetInstanceSettingsDocument = "\n mutation setInstanceSettings($input: SetInstanceSettingsInput!) {\n setInstanceSettings(input: $input) {\n settings {\n ...instanceSettingsFull\n }\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
22549
+ export declare const TestAiProviderDocument = "\n mutation testAiProvider($input: TestAIProviderInput!) {\n testAiProvider(input: $input) {\n ...testAiProviderPayloadFull\n }\n}\n \n fragment testAiProviderPayloadFull on TestAIProviderPayload {\n error {\n ... on AIUserError {\n code\n message\n reason\n }\n ... on OtherUserError {\n code\n }\n }\n success\n}\n ";
22550
+ export declare const InstanceSettingsDocument = "\n query instanceSettings {\n instanceSettings {\n ...instanceSettingsFull\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
22551
+ export declare const UpdatedInstanceSettingsDocument = "\n subscription updatedInstanceSettings {\n updatedInstanceSettings {\n settings {\n ...instanceSettingsFull\n }\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
22310
22552
  export declare const ForwardInterceptMessageDocument = "\n mutation forwardInterceptMessage($id: ID!, $input: ForwardInterceptMessageInput) {\n forwardInterceptMessage(id: $id, input: $input) {\n forwardedId\n }\n}\n ";
22311
22553
  export declare const DropInterceptMesageDocument = "\n mutation dropInterceptMesage($id: ID!) {\n dropInterceptMessage(id: $id) {\n droppedId\n }\n}\n ";
22312
22554
  export declare const SetInterceptOptionsDocument = "\n mutation setInterceptOptions($input: InterceptOptionsInput!) {\n setInterceptOptions(input: $input) {\n options {\n ...interceptOptionsMeta\n }\n }\n}\n \n fragment interceptOptionsMeta on InterceptOptions {\n request {\n ...interceptRequestOptionsMeta\n }\n response {\n ...interceptResponseOptionsMeta\n }\n streamWs {\n ...interceptStreamWsOptionsMeta\n }\n scope {\n ...interceptScopeOptionsMeta\n }\n}\n \n\n fragment interceptRequestOptionsMeta on InterceptRequestOptions {\n enabled\n filter\n}\n \n\n fragment interceptResponseOptionsMeta on InterceptResponseOptions {\n enabled\n filter\n}\n \n\n fragment interceptStreamWsOptionsMeta on InterceptStreamWsOptions {\n enabled\n}\n \n\n fragment interceptScopeOptionsMeta on InterceptScopeOptions {\n scopeId\n}\n ";
@@ -22334,7 +22576,7 @@ export declare const ToggleTamperRuleDocument = "\n mutation toggleTamperRule
22334
22576
  export declare const RankTamperRuleDocument = "\n mutation rankTamperRule($id: ID!, $input: RankTamperRuleInput!) {\n rankTamperRule(id: $id, input: $input) {\n rule {\n ...tamperRuleFull\n }\n }\n}\n \n fragment tamperRuleFull on TamperRule {\n __typename\n id\n name\n section {\n ...tamperSectionFull\n }\n enable {\n rank\n }\n condition\n collection {\n id\n }\n}\n \n\n fragment tamperSectionFull on TamperSection {\n __typename\n ... on TamperSectionRequestPath {\n operation {\n ...tamperOperationPathFull\n }\n }\n ... on TamperSectionRequestMethod {\n operation {\n ...tamperOperationMethodFull\n }\n }\n ... on TamperSectionRequestQuery {\n operation {\n ...tamperOperationQueryFull\n }\n }\n ... on TamperSectionRequestFirstLine {\n operation {\n ...tamperOperationFirstLineFull\n }\n }\n ... on TamperSectionRequestHeader {\n operation {\n ...tamperOperationHeaderFull\n }\n }\n ... on TamperSectionRequestBody {\n operation {\n ...tamperOperationBodyFull\n }\n }\n ... on TamperSectionResponseFirstLine {\n operation {\n ...tamperOperationFirstLineFull\n }\n }\n ... on TamperSectionResponseStatusCode {\n operation {\n ...tamperOperationStatusCodeFull\n }\n }\n ... on TamperSectionResponseHeader {\n operation {\n ...tamperOperationHeaderFull\n }\n }\n ... on TamperSectionResponseBody {\n operation {\n ...tamperOperationBodyFull\n }\n }\n}\n \n\n fragment tamperOperationPathFull on TamperOperationPath {\n __typename\n ... on TamperOperationPathRaw {\n ...tamperOperationPathRawFull\n }\n}\n \n\n fragment tamperOperationPathRawFull on TamperOperationPathRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperMatcherRawFull on TamperMatcherRaw {\n __typename\n ... on TamperMatcherValue {\n ...tamperMatcherValueFull\n }\n ... on TamperMatcherRegex {\n ...tamperMatcherRegexFull\n }\n}\n \n\n fragment tamperMatcherValueFull on TamperMatcherValue {\n __typename\n value\n}\n \n\n fragment tamperMatcherRegexFull on TamperMatcherRegex {\n __typename\n regex\n}\n \n\n fragment tamperReplacerFull on TamperReplacer {\n __typename\n ... on TamperReplacerTerm {\n ...tamperReplacerTermFull\n }\n ... on TamperReplacerWorkflow {\n ...tamperReplacerWorkflowFull\n }\n}\n \n\n fragment tamperReplacerTermFull on TamperReplacerTerm {\n __typename\n term\n}\n \n\n fragment tamperReplacerWorkflowFull on TamperReplacerWorkflow {\n __typename\n id\n}\n \n\n fragment tamperOperationMethodFull on TamperOperationMethod {\n __typename\n ... on TamperOperationMethodUpdate {\n ...tamperOperationMethodUpdateFull\n }\n}\n \n\n fragment tamperOperationMethodUpdateFull on TamperOperationMethodUpdate {\n __typename\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationQueryFull on TamperOperationQuery {\n __typename\n ... on TamperOperationQueryRaw {\n ...tamperOperationQueryRawFull\n }\n ... on TamperOperationQueryUpdate {\n ...tamperOperationQueryUpdateFull\n }\n ... on TamperOperationQueryAdd {\n ...tamperOperationQueryAddFull\n }\n ... on TamperOperationQueryRemove {\n ...tamperOperationQueryRemoveFull\n }\n}\n \n\n fragment tamperOperationQueryRawFull on TamperOperationQueryRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationQueryUpdateFull on TamperOperationQueryUpdate {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperMatcherNameFull on TamperMatcherName {\n __typename\n name\n}\n \n\n fragment tamperOperationQueryAddFull on TamperOperationQueryAdd {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationQueryRemoveFull on TamperOperationQueryRemove {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n}\n \n\n fragment tamperOperationFirstLineFull on TamperOperationFirstLine {\n __typename\n ... on TamperOperationFirstLineRaw {\n ...tamperOperationFirstLineRawFull\n }\n}\n \n\n fragment tamperOperationFirstLineRawFull on TamperOperationFirstLineRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationHeaderFull on TamperOperationHeader {\n __typename\n ... on TamperOperationHeaderRaw {\n ...tamperOperationHeaderRawFull\n }\n ... on TamperOperationHeaderUpdate {\n ...tamperOperationHeaderUpdateFull\n }\n ... on TamperOperationHeaderAdd {\n ...tamperOperationHeaderAddFull\n }\n ... on TamperOperationHeaderRemove {\n ...tamperOperationHeaderRemoveFull\n }\n}\n \n\n fragment tamperOperationHeaderRawFull on TamperOperationHeaderRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationHeaderUpdateFull on TamperOperationHeaderUpdate {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationHeaderAddFull on TamperOperationHeaderAdd {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationHeaderRemoveFull on TamperOperationHeaderRemove {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n}\n \n\n fragment tamperOperationBodyFull on TamperOperationBody {\n __typename\n ... on TamperOperationBodyRaw {\n ...tamperOperationBodyRawFull\n }\n}\n \n\n fragment tamperOperationBodyRawFull on TamperOperationBodyRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationStatusCodeFull on TamperOperationStatusCode {\n __typename\n ... on TamperOperationStatusCodeUpdate {\n ...tamperOperationStatusCodeUpdateFull\n }\n}\n \n\n fragment tamperOperationStatusCodeUpdateFull on TamperOperationStatusCodeUpdate {\n __typename\n replacer {\n ...tamperReplacerFull\n }\n}\n ";
22335
22577
  export declare const MoveTamperRuleDocument = "\n mutation moveTamperRule($id: ID!, $collectionId: ID!) {\n moveTamperRule(id: $id, collectionId: $collectionId) {\n rule {\n ...tamperRuleFull\n }\n }\n}\n \n fragment tamperRuleFull on TamperRule {\n __typename\n id\n name\n section {\n ...tamperSectionFull\n }\n enable {\n rank\n }\n condition\n collection {\n id\n }\n}\n \n\n fragment tamperSectionFull on TamperSection {\n __typename\n ... on TamperSectionRequestPath {\n operation {\n ...tamperOperationPathFull\n }\n }\n ... on TamperSectionRequestMethod {\n operation {\n ...tamperOperationMethodFull\n }\n }\n ... on TamperSectionRequestQuery {\n operation {\n ...tamperOperationQueryFull\n }\n }\n ... on TamperSectionRequestFirstLine {\n operation {\n ...tamperOperationFirstLineFull\n }\n }\n ... on TamperSectionRequestHeader {\n operation {\n ...tamperOperationHeaderFull\n }\n }\n ... on TamperSectionRequestBody {\n operation {\n ...tamperOperationBodyFull\n }\n }\n ... on TamperSectionResponseFirstLine {\n operation {\n ...tamperOperationFirstLineFull\n }\n }\n ... on TamperSectionResponseStatusCode {\n operation {\n ...tamperOperationStatusCodeFull\n }\n }\n ... on TamperSectionResponseHeader {\n operation {\n ...tamperOperationHeaderFull\n }\n }\n ... on TamperSectionResponseBody {\n operation {\n ...tamperOperationBodyFull\n }\n }\n}\n \n\n fragment tamperOperationPathFull on TamperOperationPath {\n __typename\n ... on TamperOperationPathRaw {\n ...tamperOperationPathRawFull\n }\n}\n \n\n fragment tamperOperationPathRawFull on TamperOperationPathRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperMatcherRawFull on TamperMatcherRaw {\n __typename\n ... on TamperMatcherValue {\n ...tamperMatcherValueFull\n }\n ... on TamperMatcherRegex {\n ...tamperMatcherRegexFull\n }\n}\n \n\n fragment tamperMatcherValueFull on TamperMatcherValue {\n __typename\n value\n}\n \n\n fragment tamperMatcherRegexFull on TamperMatcherRegex {\n __typename\n regex\n}\n \n\n fragment tamperReplacerFull on TamperReplacer {\n __typename\n ... on TamperReplacerTerm {\n ...tamperReplacerTermFull\n }\n ... on TamperReplacerWorkflow {\n ...tamperReplacerWorkflowFull\n }\n}\n \n\n fragment tamperReplacerTermFull on TamperReplacerTerm {\n __typename\n term\n}\n \n\n fragment tamperReplacerWorkflowFull on TamperReplacerWorkflow {\n __typename\n id\n}\n \n\n fragment tamperOperationMethodFull on TamperOperationMethod {\n __typename\n ... on TamperOperationMethodUpdate {\n ...tamperOperationMethodUpdateFull\n }\n}\n \n\n fragment tamperOperationMethodUpdateFull on TamperOperationMethodUpdate {\n __typename\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationQueryFull on TamperOperationQuery {\n __typename\n ... on TamperOperationQueryRaw {\n ...tamperOperationQueryRawFull\n }\n ... on TamperOperationQueryUpdate {\n ...tamperOperationQueryUpdateFull\n }\n ... on TamperOperationQueryAdd {\n ...tamperOperationQueryAddFull\n }\n ... on TamperOperationQueryRemove {\n ...tamperOperationQueryRemoveFull\n }\n}\n \n\n fragment tamperOperationQueryRawFull on TamperOperationQueryRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationQueryUpdateFull on TamperOperationQueryUpdate {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperMatcherNameFull on TamperMatcherName {\n __typename\n name\n}\n \n\n fragment tamperOperationQueryAddFull on TamperOperationQueryAdd {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationQueryRemoveFull on TamperOperationQueryRemove {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n}\n \n\n fragment tamperOperationFirstLineFull on TamperOperationFirstLine {\n __typename\n ... on TamperOperationFirstLineRaw {\n ...tamperOperationFirstLineRawFull\n }\n}\n \n\n fragment tamperOperationFirstLineRawFull on TamperOperationFirstLineRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationHeaderFull on TamperOperationHeader {\n __typename\n ... on TamperOperationHeaderRaw {\n ...tamperOperationHeaderRawFull\n }\n ... on TamperOperationHeaderUpdate {\n ...tamperOperationHeaderUpdateFull\n }\n ... on TamperOperationHeaderAdd {\n ...tamperOperationHeaderAddFull\n }\n ... on TamperOperationHeaderRemove {\n ...tamperOperationHeaderRemoveFull\n }\n}\n \n\n fragment tamperOperationHeaderRawFull on TamperOperationHeaderRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationHeaderUpdateFull on TamperOperationHeaderUpdate {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationHeaderAddFull on TamperOperationHeaderAdd {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationHeaderRemoveFull on TamperOperationHeaderRemove {\n __typename\n matcher {\n ...tamperMatcherNameFull\n }\n}\n \n\n fragment tamperOperationBodyFull on TamperOperationBody {\n __typename\n ... on TamperOperationBodyRaw {\n ...tamperOperationBodyRawFull\n }\n}\n \n\n fragment tamperOperationBodyRawFull on TamperOperationBodyRaw {\n __typename\n matcher {\n ...tamperMatcherRawFull\n }\n replacer {\n ...tamperReplacerFull\n }\n}\n \n\n fragment tamperOperationStatusCodeFull on TamperOperationStatusCode {\n __typename\n ... on TamperOperationStatusCodeUpdate {\n ...tamperOperationStatusCodeUpdateFull\n }\n}\n \n\n fragment tamperOperationStatusCodeUpdateFull on TamperOperationStatusCodeUpdate {\n __typename\n replacer {\n ...tamperReplacerFull\n }\n}\n ";
22336
22578
  export declare const PluginPackagesDocument = "\n query pluginPackages {\n pluginPackages {\n ...pluginPackageFull\n }\n}\n \n fragment pluginPackageFull on PluginPackage {\n ...pluginPackageMeta\n plugins {\n ... on PluginFrontend {\n ...pluginFrontendFull\n }\n ... on PluginBackend {\n ...pluginBackendFull\n }\n ... on PluginWorkflow {\n ...pluginWorkflowFull\n }\n }\n}\n \n\n fragment pluginPackageMeta on PluginPackage {\n id\n name\n description\n author {\n ...pluginAuthorFull\n }\n links {\n ...pluginLinksFull\n }\n version\n installedAt\n manifestId\n}\n \n\n fragment pluginAuthorFull on PluginAuthor {\n name\n email\n url\n}\n \n\n fragment pluginLinksFull on PluginLinks {\n sponsor\n}\n \n\n fragment pluginFrontendFull on PluginFrontend {\n ...pluginMeta\n entrypoint\n style\n data\n backend {\n ...pluginBackendMeta\n }\n}\n \n\n fragment pluginMeta on Plugin {\n __typename\n id\n name\n enabled\n manifestId\n package {\n id\n }\n}\n \n\n fragment pluginBackendMeta on PluginBackend {\n __typename\n id\n}\n \n\n fragment pluginBackendFull on PluginBackend {\n ...pluginMeta\n runtime\n state {\n error\n running\n }\n}\n \n\n fragment pluginWorkflowFull on PluginWorkflow {\n ...pluginMeta\n name\n workflow {\n ...workflowMeta\n }\n}\n \n\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n ";
22337
- export declare const StorePluginPackagesDocument = "\n query storePluginPackages {\n store {\n pluginPackages {\n ...storePluginPackageFull\n }\n }\n}\n \n fragment storePluginPackageFull on StorePluginPackage {\n author {\n email\n name\n url\n }\n description\n downloads\n license\n manifestId\n name\n repository\n version\n}\n ";
22579
+ export declare const StorePluginPackagesDocument = "\n query storePluginPackages {\n store {\n pluginPackages {\n ...storePluginPackageFull\n }\n }\n}\n \n fragment storePluginPackageFull on StorePluginPackage {\n author {\n email\n name\n url\n }\n description\n downloads\n license\n manifestId\n name\n repository\n version\n official\n}\n ";
22338
22580
  export declare const InstallPluginPackageDocument = "\n mutation installPluginPackage($input: InstallPluginPackageInput!) {\n installPluginPackage(input: $input) {\n package {\n ...pluginPackageFull\n }\n error {\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n ... on PluginUserError {\n ...pluginUserErrorFull\n }\n ... on StoreUserError {\n ...storeUserErrorFull\n }\n ... on CloudUserError {\n ...cloudUserErrorFull\n }\n }\n }\n}\n \n fragment pluginPackageFull on PluginPackage {\n ...pluginPackageMeta\n plugins {\n ... on PluginFrontend {\n ...pluginFrontendFull\n }\n ... on PluginBackend {\n ...pluginBackendFull\n }\n ... on PluginWorkflow {\n ...pluginWorkflowFull\n }\n }\n}\n \n\n fragment pluginPackageMeta on PluginPackage {\n id\n name\n description\n author {\n ...pluginAuthorFull\n }\n links {\n ...pluginLinksFull\n }\n version\n installedAt\n manifestId\n}\n \n\n fragment pluginAuthorFull on PluginAuthor {\n name\n email\n url\n}\n \n\n fragment pluginLinksFull on PluginLinks {\n sponsor\n}\n \n\n fragment pluginFrontendFull on PluginFrontend {\n ...pluginMeta\n entrypoint\n style\n data\n backend {\n ...pluginBackendMeta\n }\n}\n \n\n fragment pluginMeta on Plugin {\n __typename\n id\n name\n enabled\n manifestId\n package {\n id\n }\n}\n \n\n fragment pluginBackendMeta on PluginBackend {\n __typename\n id\n}\n \n\n fragment pluginBackendFull on PluginBackend {\n ...pluginMeta\n runtime\n state {\n error\n running\n }\n}\n \n\n fragment pluginWorkflowFull on PluginWorkflow {\n ...pluginMeta\n name\n workflow {\n ...workflowMeta\n }\n}\n \n\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment pluginUserErrorFull on PluginUserError {\n ...userErrorFull\n reason\n}\n \n\n fragment storeUserErrorFull on StoreUserError {\n ...userErrorFull\n storeReason: reason\n}\n \n\n fragment cloudUserErrorFull on CloudUserError {\n ...userErrorFull\n cloudReason: reason\n}\n ";
22339
22581
  export declare const UninstallPluginPackageDocument = "\n mutation uninstallPluginPackage($id: ID!) {\n uninstallPluginPackage(id: $id) {\n deletedId\n error {\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n }\n }\n}\n \n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n ";
22340
22582
  export declare const TogglePluginDocument = "\n mutation togglePlugin($id: ID!, $enabled: Boolean!) {\n togglePlugin(id: $id, enabled: $enabled) {\n plugin {\n ... on PluginFrontend {\n ...pluginFrontendFull\n }\n ... on PluginBackend {\n ...pluginBackendFull\n }\n ... on PluginWorkflow {\n ...pluginWorkflowFull\n }\n }\n error {\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on PluginUserError {\n ...pluginUserErrorFull\n }\n }\n }\n}\n \n fragment pluginFrontendFull on PluginFrontend {\n ...pluginMeta\n entrypoint\n style\n data\n backend {\n ...pluginBackendMeta\n }\n}\n \n\n fragment pluginMeta on Plugin {\n __typename\n id\n name\n enabled\n manifestId\n package {\n id\n }\n}\n \n\n fragment pluginBackendMeta on PluginBackend {\n __typename\n id\n}\n \n\n fragment pluginBackendFull on PluginBackend {\n ...pluginMeta\n runtime\n state {\n error\n running\n }\n}\n \n\n fragment pluginWorkflowFull on PluginWorkflow {\n ...pluginMeta\n name\n workflow {\n ...workflowMeta\n }\n}\n \n\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n \n\n fragment pluginUserErrorFull on PluginUserError {\n ...userErrorFull\n reason\n}\n ";
@@ -22611,6 +22853,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
22611
22853
  renameHostedFile(variables: RenameHostedFileMutationVariables, options?: C): Promise<RenameHostedFileMutation>;
22612
22854
  uploadHostedFile(variables: UploadHostedFileMutationVariables, options?: C): Promise<UploadHostedFileMutation>;
22613
22855
  hostedFiles(variables?: HostedFilesQueryVariables, options?: C): Promise<HostedFilesQuery>;
22856
+ setInstanceSettings(variables: SetInstanceSettingsMutationVariables, options?: C): Promise<SetInstanceSettingsMutation>;
22857
+ testAiProvider(variables: TestAiProviderMutationVariables, options?: C): Promise<TestAiProviderMutation>;
22858
+ instanceSettings(variables?: InstanceSettingsQueryVariables, options?: C): Promise<InstanceSettingsQuery>;
22859
+ updatedInstanceSettings(variables?: UpdatedInstanceSettingsSubscriptionVariables, options?: C): AsyncIterable<UpdatedInstanceSettingsSubscription>;
22614
22860
  forwardInterceptMessage(variables: ForwardInterceptMessageMutationVariables, options?: C): Promise<ForwardInterceptMessageMutation>;
22615
22861
  dropInterceptMesage(variables: DropInterceptMesageMutationVariables, options?: C): Promise<DropInterceptMesageMutation>;
22616
22862
  setInterceptOptions(variables: SetInterceptOptionsMutationVariables, options?: C): Promise<SetInterceptOptionsMutation>;
@@ -1,6 +1,6 @@
1
1
  export { FooterSlot, type FooterSlotContent } from "./types/footer";
2
2
  export type { DialogOptions } from "./types/window";
3
- export type { CommandContext } from "./types/commands";
3
+ export type { CommandContext, CommandContextRequest, CommandContextRequestRow, CommandContextResponse, CommandContextBase, } from "./types/commands";
4
4
  export type { MenuItem } from "./types/menu";
5
5
  export { type ReplayTab, type ReplaySession, type ReplayCollection, type SendRequestOptions, ReplaySlot, type ReplaySlotContent, type RequestSource, } from "./types/replay";
6
6
  export type { HostedFile } from "./types/files";
@@ -8,7 +8,7 @@ export type { Filter } from "./types/filter";
8
8
  export type { HTTPQL, ID, ComponentDefinition } from "./types/utils";
9
9
  export type { JSONValue, JSONCompatible } from "./types/json";
10
10
  export type { SlotContent, ButtonSlotContent, CustomSlotContent, CommandSlotContent, } from "./types/slots";
11
- export type { RequestViewModeOptions } from "./types/request";
11
+ export type { RequestViewModeOptions, RequestFull, RequestDraft, RequestMeta, } from "./types/request";
12
12
  export type { MatchReplaceRule, MatchReplaceCollection, MatchReplaceSection, MatchReplaceSectionRequestBody, MatchReplaceSectionRequestFirstLine, MatchReplaceSectionRequestHeader, MatchReplaceSectionRequestMethod, MatchReplaceSectionRequestPath, MatchReplaceSectionRequestQuery, MatchReplaceSectionResponseBody, MatchReplaceSectionResponseFirstLine, MatchReplaceSectionResponseHeader, MatchReplaceSectionResponseStatusCode, MatchReplaceOperationStatusCode, MatchReplaceOperationStatusCodeUpdate, MatchReplaceOperationQuery, MatchReplaceOperationQueryRaw, MatchReplaceOperationQueryAdd, MatchReplaceOperationQueryRemove, MatchReplaceOperationQueryUpdate, MatchReplaceOperationPath, MatchReplaceOperationPathRaw, MatchReplaceOperationMethod, MatchReplaceOperationMethodUpdate, MatchReplaceOperationHeader, MatchReplaceOperationHeaderRaw, MatchReplaceOperationHeaderAdd, MatchReplaceOperationHeaderRemove, MatchReplaceOperationHeaderUpdate, MatchReplaceOperationBody, MatchReplaceOperationBodyRaw, MatchReplaceOperationFirstLine, MatchReplaceOperationFirstLineRaw, MatchReplaceReplacer, MatchReplaceReplacerTerm, MatchReplaceReplacerWorkflow, MatchReplaceMatcherName, MatchReplaceMatcherRaw, MatchReplaceMatcherRawFull, MatchReplaceMatcherRawRegex, MatchReplaceMatcherRawValue, } from "./types/matchReplace";
13
13
  export type { Scope } from "./types/scopes";
14
14
  export type { EnvironmentVariable } from "./types/environment";
@@ -0,0 +1,18 @@
1
+ import type { Extension } from "@codemirror/state";
2
+ import type { RequestViewModeOptions } from "../types/request";
3
+ /**
4
+ * Utilities to interact with the Automate page.
5
+ * @category Automate
6
+ */
7
+ export type AutomateSDK = {
8
+ /**
9
+ * Add an extension to the request editor.
10
+ * @param extension The extension to add.
11
+ */
12
+ addRequestEditorExtension: (extension: Extension) => void;
13
+ /**
14
+ * Add a custom request view mode.
15
+ * @param options The view mode options.
16
+ */
17
+ addRequestViewMode: (options: RequestViewModeOptions) => void;
18
+ };
@@ -1,6 +1,7 @@
1
1
  import type { Sdk as GraphqlSDK } from "../__generated__/graphql-sdk";
2
2
  import { type BackendEndpoints, type BackendEvents } from "../types/backend";
3
3
  import type { AssetsSDK } from "./assets";
4
+ import type { AutomateSDK } from "./automate";
4
5
  import type { BackendSDK } from "./backend";
5
6
  import type { CommandPaletteSDK } from "./commandPalette";
6
7
  import type { CommandsSDK } from "./commands";
@@ -98,6 +99,10 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
98
99
  * Utilities to interact with the HTTP History page.
99
100
  */
100
101
  httpHistory: HTTPHistorySDK;
102
+ /**
103
+ * Utilities to interact with the Automate page.
104
+ */
105
+ automate: AutomateSDK;
101
106
  /**
102
107
  * Utilities to interact with the Files page.
103
108
  */
@@ -1,3 +1,5 @@
1
+ import type { Extension } from "@codemirror/state";
2
+ import type { RequestViewModeOptions } from "../types/request";
1
3
  import type { HTTPQL, ID } from "../types/utils";
2
4
  /**
3
5
  * Utilities to interact with the Search page.
@@ -24,4 +26,14 @@ export type SearchSDK = {
24
26
  * @param id The ID of the scope to set.
25
27
  */
26
28
  setScope: (id: ID | undefined) => Promise<void>;
29
+ /**
30
+ * Add an extension to the request editor.
31
+ * @param extension The extension to add.
32
+ */
33
+ addRequestEditorExtension: (extension: Extension) => void;
34
+ /**
35
+ * Add a custom request view mode.
36
+ * @param options The view mode options.
37
+ */
38
+ addRequestViewMode: (options: RequestViewModeOptions) => void;
27
39
  };
@@ -1,3 +1,5 @@
1
+ import type { Extension } from "@codemirror/state";
2
+ import type { RequestViewModeOptions } from "../types/request";
1
3
  import type { ID } from "../types/utils";
2
4
  /**
3
5
  * Utilities to interact with the Sitemap page.
@@ -14,4 +16,14 @@ export type SitemapSDK = {
14
16
  * @param id The ID of the scope to set.
15
17
  */
16
18
  setScope: (id: ID | undefined) => void;
19
+ /**
20
+ * Add an extension to the request editor.
21
+ * @param extension The extension to add.
22
+ */
23
+ addRequestEditorExtension: (extension: Extension) => void;
24
+ /**
25
+ * Add a custom request view mode.
26
+ * @param options The view mode options.
27
+ */
28
+ addRequestViewMode: (options: RequestViewModeOptions) => void;
17
29
  };
@@ -1,3 +1,4 @@
1
+ import { type RequestDraft, type RequestFull, type RequestMeta } from "./request";
1
2
  import { type ID } from "./utils";
2
3
  /**
3
4
  * A unique command identifier.
@@ -16,48 +17,31 @@ export type CommandContext = CommandContextBase | CommandContextRequestRow | Com
16
17
  * This context is used for commands that are not executed in a specific context, such as via shortcuts and the command palette.
17
18
  * @category Commands
18
19
  */
19
- type CommandContextBase = {
20
+ export type CommandContextBase = {
20
21
  type: "BaseContext";
21
22
  };
22
23
  /**
23
24
  * The context for a command that is executed on a row in the request table.
24
25
  * @category Commands
25
26
  */
26
- type CommandContextRequestRow = {
27
+ export type CommandContextRequestRow = {
27
28
  type: "RequestRowContext";
28
29
  /**
29
30
  * The requests that are selected in the request table.
30
31
  */
31
- requests: {
32
- id: ID;
33
- host: string;
34
- port: number;
35
- path: string;
36
- query: string;
37
- isTls: boolean;
38
- streamId?: ID;
39
- }[];
32
+ requests: RequestMeta[];
40
33
  };
41
34
  /**
42
35
  * The context for a command that is executed on a request pane.
43
36
  * @category Commands
44
37
  */
45
- type CommandContextRequest = {
38
+ export type CommandContextRequest = {
46
39
  type: "RequestContext";
47
40
  /**
48
41
  * The request that is currently open in the request pane.
49
42
  * If the request has not yet been saved in the database, the id will be undefined.
50
43
  */
51
- request: {
52
- id: ID | undefined;
53
- host: string;
54
- port: number;
55
- path: string;
56
- query: string;
57
- isTls: boolean;
58
- raw: string;
59
- streamId?: ID;
60
- };
44
+ request: RequestDraft | RequestFull;
61
45
  /**
62
46
  * The currently selected text in the request pane.
63
47
  */
@@ -67,20 +51,12 @@ type CommandContextRequest = {
67
51
  * The context for a command that is executed on a response pane.
68
52
  * @category Commands
69
53
  */
70
- type CommandContextResponse = {
54
+ export type CommandContextResponse = {
71
55
  type: "ResponseContext";
72
56
  /**
73
57
  * The request that is associated with the response.
74
58
  */
75
- request: {
76
- id: ID;
77
- host: string;
78
- port: number;
79
- path: string;
80
- query: string;
81
- isTls: boolean;
82
- streamId?: ID;
83
- };
59
+ request: RequestMeta;
84
60
  /**
85
61
  * The response that is currently open in the response pane.
86
62
  */
@@ -95,4 +71,3 @@ type CommandContextResponse = {
95
71
  */
96
72
  selection: string;
97
73
  };
98
- export {};
@@ -1,4 +1,31 @@
1
- import { type ComponentDefinition } from "./utils";
1
+ import { type As, type ComponentDefinition, type ID, type Prettify } from "./utils";
2
+ export type RequestDraft = Prettify<As<"RequestDraft"> & {
3
+ host: string;
4
+ port: number;
5
+ path: string;
6
+ query: string;
7
+ isTls: boolean;
8
+ raw: string;
9
+ }>;
10
+ export type RequestMeta = Prettify<As<"RequestMeta"> & {
11
+ id: ID;
12
+ host: string;
13
+ port: number;
14
+ path: string;
15
+ query: string;
16
+ isTls: boolean;
17
+ streamId: ID | undefined;
18
+ }>;
19
+ export type RequestFull = Prettify<As<"RequestFull"> & {
20
+ id: ID;
21
+ host: string;
22
+ port: number;
23
+ path: string;
24
+ query: string;
25
+ isTls: boolean;
26
+ streamId: ID | undefined;
27
+ raw: string;
28
+ }>;
2
29
  export type RequestViewModeOptions = {
3
30
  /**
4
31
  * The label of the view mode.
@@ -38,3 +38,9 @@ export type ListenerHandle = {
38
38
  */
39
39
  stop: () => void;
40
40
  };
41
+ export type Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
44
+ export type As<TType extends string> = {
45
+ type: TType;
46
+ };