@caido/sdk-frontend 0.43.1-beta.0 → 0.43.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "0.43.1-beta.0",
3
+ "version": "0.43.2-beta.0",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -49,6 +49,10 @@ export type Scalars = {
49
49
  input: string;
50
50
  output: string;
51
51
  };
52
+ Binary: {
53
+ input: Uint8Array;
54
+ output: Uint8Array;
55
+ };
52
56
  Blob: {
53
57
  input: string;
54
58
  output: string;
@@ -595,6 +599,30 @@ export type CancelTaskPayload = {
595
599
  cancelledId?: Maybe<Scalars["ID"]["output"]>;
596
600
  error?: Maybe<CancelTaskError>;
597
601
  };
602
+ export type Certificate = {
603
+ p12: Scalars["Binary"]["output"];
604
+ };
605
+ export type CertificateP12Args = {
606
+ password?: InputMaybe<Scalars["Sensitive"]["input"]>;
607
+ };
608
+ export declare const CertificateErrorReason: {
609
+ readonly InvalidCertificate: "INVALID_CERTIFICATE";
610
+ readonly InvalidP12: "INVALID_P12";
611
+ readonly InvalidPassword: "INVALID_PASSWORD";
612
+ readonly InvalidPrivateKey: "INVALID_PRIVATE_KEY";
613
+ };
614
+ export type CertificateErrorReason = (typeof CertificateErrorReason)[keyof typeof CertificateErrorReason];
615
+ export type CertificateInput = {
616
+ p12: CertificateInputP12;
617
+ };
618
+ export type CertificateInputP12 = {
619
+ file: Scalars["Upload"]["input"];
620
+ password?: InputMaybe<Scalars["Sensitive"]["input"]>;
621
+ };
622
+ export type CertificateUserError = UserError & {
623
+ code: Scalars["String"]["output"];
624
+ reason: CertificateErrorReason;
625
+ };
598
626
  export type ConnectionInfo = {
599
627
  host: Scalars["String"]["output"];
600
628
  isTls: Scalars["Boolean"]["output"];
@@ -1213,6 +1241,13 @@ export type HostedFile = {
1213
1241
  size: Scalars["Int"]["output"];
1214
1242
  updatedAt: Scalars["DateTime"]["output"];
1215
1243
  };
1244
+ export type ImportCertificateError = CertificateUserError | OtherUserError;
1245
+ export type ImportCertificateInput = {
1246
+ certificate: CertificateInput;
1247
+ };
1248
+ export type ImportCertificatePayload = {
1249
+ error?: Maybe<ImportCertificateError>;
1250
+ };
1216
1251
  export type InstallBrowserError = OtherUserError | UnsupportedPlatformUserError;
1217
1252
  export type InstallBrowserPayload = {
1218
1253
  browser?: Maybe<Browser>;
@@ -1408,6 +1443,7 @@ export type MutationRoot = {
1408
1443
  enableTamperRule: EnableTamperRulePayload;
1409
1444
  forwardInterceptMessage: ForwardInterceptMessagePayload;
1410
1445
  globalizeWorkflow: GlobalizeWorkflowPayload;
1446
+ importCertificate: ImportCertificatePayload;
1411
1447
  installBrowser: InstallBrowserPayload;
1412
1448
  installPluginPackage: InstallPluginPackagePayload;
1413
1449
  localizeWorkflow: LocalizeWorkflowPayload;
@@ -1420,6 +1456,7 @@ export type MutationRoot = {
1420
1456
  rankUpstreamProxyHttp: RankUpstreamProxyHttpPayload;
1421
1457
  rankUpstreamProxySocks: RankUpstreamProxySocksPayload;
1422
1458
  refreshAuthenticationToken: RefreshAuthenticationTokenPayload;
1459
+ regenerateCertificate: RegenerateCertificatePayload;
1423
1460
  renameAssistantSession: RenameAssistantSessionPayload;
1424
1461
  renameAutomateEntry: RenameAutomateEntryPayload;
1425
1462
  renameAutomateSession: RenameAutomateSessionPayload;
@@ -1609,6 +1646,9 @@ export type MutationRootForwardInterceptMessageArgs = {
1609
1646
  export type MutationRootGlobalizeWorkflowArgs = {
1610
1647
  id: Scalars["ID"]["input"];
1611
1648
  };
1649
+ export type MutationRootImportCertificateArgs = {
1650
+ input: ImportCertificateInput;
1651
+ };
1612
1652
  export type MutationRootInstallPluginPackageArgs = {
1613
1653
  input: InstallPluginPackageInput;
1614
1654
  };
@@ -2240,6 +2280,9 @@ export type RefreshAuthenticationTokenPayload = {
2240
2280
  error?: Maybe<RefreshAuthenticationTokenError>;
2241
2281
  token?: Maybe<AuthenticationToken>;
2242
2282
  };
2283
+ export type RegenerateCertificatePayload = {
2284
+ success: Scalars["Boolean"]["output"];
2285
+ };
2243
2286
  export type Release = {
2244
2287
  links: Array<ReleaseLink>;
2245
2288
  releasedAt: Scalars["DateTime"]["output"];
@@ -2596,6 +2639,7 @@ export type RunConvertWorkflowPayload = {
2596
2639
  };
2597
2640
  export type Runtime = {
2598
2641
  availableUpdate?: Maybe<Release>;
2642
+ certificate: Certificate;
2599
2643
  logs: Scalars["Uri"]["output"];
2600
2644
  platform: Scalars["String"]["output"];
2601
2645
  version: Scalars["String"]["output"];
@@ -5734,6 +5778,10 @@ type UserErrorFull_BackupUserError_Fragment = {
5734
5778
  __typename: "BackupUserError";
5735
5779
  code: string;
5736
5780
  };
5781
+ type UserErrorFull_CertificateUserError_Fragment = {
5782
+ __typename: "CertificateUserError";
5783
+ code: string;
5784
+ };
5737
5785
  type UserErrorFull_InternalUserError_Fragment = {
5738
5786
  __typename: "InternalUserError";
5739
5787
  code: string;
@@ -5798,7 +5846,7 @@ type UserErrorFull_WorkflowUserError_Fragment = {
5798
5846
  __typename: "WorkflowUserError";
5799
5847
  code: string;
5800
5848
  };
5801
- export type UserErrorFullFragment = UserErrorFull_AliasTakenUserError_Fragment | UserErrorFull_AssistantUserError_Fragment | UserErrorFull_AuthenticationUserError_Fragment | UserErrorFull_AutomateTaskUserError_Fragment | UserErrorFull_BackupUserError_Fragment | UserErrorFull_InternalUserError_Fragment | UserErrorFull_InvalidGlobTermsUserError_Fragment | UserErrorFull_InvalidHttpqlUserError_Fragment | UserErrorFull_InvalidRegexUserError_Fragment | UserErrorFull_NameTakenUserError_Fragment | UserErrorFull_OtherUserError_Fragment | UserErrorFull_PermissionDeniedUserError_Fragment | UserErrorFull_PluginUserError_Fragment | UserErrorFull_ProjectUserError_Fragment | UserErrorFull_ReadOnlyUserError_Fragment | UserErrorFull_RenderFailedUserError_Fragment | UserErrorFull_StoreUserError_Fragment | UserErrorFull_TaskInProgressUserError_Fragment | UserErrorFull_UnknownIdUserError_Fragment | UserErrorFull_UnsupportedPlatformUserError_Fragment | UserErrorFull_WorkflowUserError_Fragment;
5849
+ export type UserErrorFullFragment = UserErrorFull_AliasTakenUserError_Fragment | UserErrorFull_AssistantUserError_Fragment | UserErrorFull_AuthenticationUserError_Fragment | UserErrorFull_AutomateTaskUserError_Fragment | UserErrorFull_BackupUserError_Fragment | UserErrorFull_CertificateUserError_Fragment | UserErrorFull_InternalUserError_Fragment | UserErrorFull_InvalidGlobTermsUserError_Fragment | UserErrorFull_InvalidHttpqlUserError_Fragment | UserErrorFull_InvalidRegexUserError_Fragment | UserErrorFull_NameTakenUserError_Fragment | UserErrorFull_OtherUserError_Fragment | UserErrorFull_PermissionDeniedUserError_Fragment | UserErrorFull_PluginUserError_Fragment | UserErrorFull_ProjectUserError_Fragment | UserErrorFull_ReadOnlyUserError_Fragment | UserErrorFull_RenderFailedUserError_Fragment | UserErrorFull_StoreUserError_Fragment | UserErrorFull_TaskInProgressUserError_Fragment | UserErrorFull_UnknownIdUserError_Fragment | UserErrorFull_UnsupportedPlatformUserError_Fragment | UserErrorFull_WorkflowUserError_Fragment;
5802
5850
  export type InvalidHttpqlUserErrorFullFragment = {
5803
5851
  __typename: "InvalidHTTPQLUserError";
5804
5852
  query: string;
@@ -5819,6 +5867,11 @@ export type ProjectUserErrorFullFragment = {
5819
5867
  code: string;
5820
5868
  projectReason: ProjectErrorReason;
5821
5869
  };
5870
+ export type CertificateUserErrorFullFragment = {
5871
+ __typename: "CertificateUserError";
5872
+ code: string;
5873
+ certificateReason: CertificateErrorReason;
5874
+ };
5822
5875
  export type DataExportMetaFragment = {
5823
5876
  __typename: "DataExport";
5824
5877
  id: string;
@@ -7807,6 +7860,29 @@ export type RenameProjectMutation = {
7807
7860
  } | undefined | null;
7808
7861
  };
7809
7862
  };
7863
+ export type ImportCertificateMutationVariables = Exact<{
7864
+ input: ImportCertificateInput;
7865
+ }>;
7866
+ export type ImportCertificateMutation = {
7867
+ importCertificate: {
7868
+ error?: {
7869
+ __typename: "CertificateUserError";
7870
+ code: string;
7871
+ certificateReason: CertificateErrorReason;
7872
+ } | {
7873
+ __typename: "OtherUserError";
7874
+ code: string;
7875
+ } | undefined | null;
7876
+ };
7877
+ };
7878
+ export type RegenerateCertificateMutationVariables = Exact<{
7879
+ [key: string]: never;
7880
+ }>;
7881
+ export type RegenerateCertificateMutation = {
7882
+ regenerateCertificate: {
7883
+ success: boolean;
7884
+ };
7885
+ };
7810
7886
  export type CreateScopeMutationVariables = Exact<{
7811
7887
  input: CreateScopeInput;
7812
7888
  }>;
@@ -9600,6 +9676,16 @@ export type GetLogsQuery = {
9600
9676
  logs: string;
9601
9677
  };
9602
9678
  };
9679
+ export type GetCertificateQueryVariables = Exact<{
9680
+ password?: InputMaybe<Scalars["Sensitive"]["input"]>;
9681
+ }>;
9682
+ export type GetCertificateQuery = {
9683
+ runtime: {
9684
+ certificate: {
9685
+ p12: Uint8Array;
9686
+ };
9687
+ };
9688
+ };
9603
9689
  export type ScopesQueryVariables = Exact<{
9604
9690
  [key: string]: never;
9605
9691
  }>;
@@ -14565,6 +14651,8 @@ export type FinishedTaskSubscription = {
14565
14651
  code: string;
14566
14652
  } | {
14567
14653
  code: string;
14654
+ } | {
14655
+ code: string;
14568
14656
  } | undefined | null;
14569
14657
  };
14570
14658
  };
@@ -14806,6 +14894,7 @@ export declare const InvalidHttpqlUserErrorFullFragmentDoc = "\n fragment inv
14806
14894
  export declare const PluginUserErrorFullFragmentDoc = "\n fragment pluginUserErrorFull on PluginUserError {\n ...userErrorFull\n reason\n}\n ";
14807
14895
  export declare const StoreUserErrorFullFragmentDoc = "\n fragment storeUserErrorFull on StoreUserError {\n ...userErrorFull\n storeReason: reason\n}\n ";
14808
14896
  export declare const ProjectUserErrorFullFragmentDoc = "\n fragment projectUserErrorFull on ProjectUserError {\n ...userErrorFull\n projectReason: reason\n}\n ";
14897
+ export declare const CertificateUserErrorFullFragmentDoc = "\n fragment certificateUserErrorFull on CertificateUserError {\n ...userErrorFull\n certificateReason: reason\n}\n ";
14809
14898
  export declare const DataExportMetaFieldsFragmentDoc = "\n fragment dataExportMetaFields on DataExport {\n __typename\n id\n name\n path\n size\n status\n format\n error\n createdAt\n}\n ";
14810
14899
  export declare const DataExportMetaFragmentDoc = "\n fragment dataExportMeta on DataExport {\n ...dataExportMetaFields\n}\n ";
14811
14900
  export declare const DataExportFullFieldsFragmentDoc = "\n fragment dataExportFullFields on DataExport {\n ...dataExportMeta\n downloadUri\n}\n ";
@@ -14956,6 +15045,8 @@ export declare const CreateProjectDocument = "\n mutation createProject($inpu
14956
15045
  export declare const SelectProjectDocument = "\n mutation selectProject($id: ID!) {\n selectProject(id: $id) {\n project {\n ...projectFull\n }\n error {\n ... on ProjectUserError {\n ...projectUserErrorFull\n }\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment projectFull on Project {\n __typename\n id\n name\n path\n version\n status\n size\n createdAt\n updatedAt\n backups {\n id\n }\n}\n \n\n fragment projectUserErrorFull on ProjectUserError {\n ...userErrorFull\n projectReason: reason\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 otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
14957
15046
  export declare const DeleteProjectDocument = "\n mutation deleteProject($id: ID!) {\n deleteProject(id: $id) {\n deletedId\n error {\n ... on ProjectUserError {\n ...projectUserErrorFull\n }\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment projectUserErrorFull on ProjectUserError {\n ...userErrorFull\n projectReason: reason\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 otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
14958
15047
  export declare const RenameProjectDocument = "\n mutation renameProject($id: ID!, $name: String!) {\n renameProject(id: $id, name: $name) {\n project {\n ...projectFull\n }\n error {\n ... on NameTakenUserError {\n ...nameTakenUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment projectFull on Project {\n __typename\n id\n name\n path\n version\n status\n size\n createdAt\n updatedAt\n backups {\n id\n }\n}\n \n\n fragment nameTakenUserErrorFull on NameTakenUserError {\n ...userErrorFull\n name\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
15048
+ export declare const ImportCertificateDocument = "\n mutation importCertificate($input: ImportCertificateInput!) {\n importCertificate(input: $input) {\n error {\n __typename\n ... on CertificateUserError {\n ...certificateUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment certificateUserErrorFull on CertificateUserError {\n ...userErrorFull\n certificateReason: reason\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
15049
+ export declare const RegenerateCertificateDocument = "\n mutation regenerateCertificate {\n regenerateCertificate {\n success\n }\n}\n ";
14959
15050
  export declare const CreateScopeDocument = "\n mutation createScope($input: CreateScopeInput!) {\n createScope(input: $input) {\n error {\n ... on InvalidGlobTermsUserError {\n ...invalidGlobTermsUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n scope {\n ...scopeFull\n }\n }\n}\n \n fragment invalidGlobTermsUserErrorFull on InvalidGlobTermsUserError {\n ...userErrorFull\n terms\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment scopeFull on Scope {\n __typename\n id\n name\n allowlist\n denylist\n indexed\n}\n ";
14960
15051
  export declare const UpdateScopeDocument = "\n mutation updateScope($id: ID!, $input: UpdateScopeInput!) {\n updateScope(id: $id, input: $input) {\n error {\n ... on InvalidGlobTermsUserError {\n ...invalidGlobTermsUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n scope {\n ...scopeFull\n }\n }\n}\n \n fragment invalidGlobTermsUserErrorFull on InvalidGlobTermsUserError {\n ...userErrorFull\n terms\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment scopeFull on Scope {\n __typename\n id\n name\n allowlist\n denylist\n indexed\n}\n ";
14961
15052
  export declare const DeleteScopeDocument = "\n mutation deleteScope($id: ID!) {\n deleteScope(id: $id) {\n deletedId\n }\n}\n ";
@@ -15024,6 +15115,7 @@ export declare const ProjectsDocument = "\n query projects {\n projects {\n
15024
15115
  export declare const ResponseDocument = "\n query response($id: ID!) {\n response(id: $id) {\n ...responseFull\n }\n}\n \n fragment responseFull on Response {\n ...responseMeta\n raw\n edits {\n ...responseMeta\n }\n}\n \n\n fragment responseMeta on Response {\n __typename\n id\n statusCode\n roundtripTime\n length\n createdAt\n alteration\n edited\n}\n ";
15025
15116
  export declare const GetRuntimeDocument = "\n query getRuntime {\n runtime {\n ...runtimeFull\n }\n}\n \n fragment runtimeFull on Runtime {\n __typename\n version\n platform\n availableUpdate {\n ...releaseFull\n }\n}\n \n\n fragment releaseFull on Release {\n __typename\n links {\n __typename\n display\n link\n platform\n }\n releasedAt\n version\n}\n ";
15026
15117
  export declare const GetLogsDocument = "\n query getLogs {\n runtime {\n logs\n }\n}\n ";
15118
+ export declare const GetCertificateDocument = "\n query getCertificate($password: Sensitive) {\n runtime {\n certificate {\n p12(password: $password)\n }\n }\n}\n ";
15027
15119
  export declare const ScopesDocument = "\n query scopes {\n scopes {\n ...scopeFull\n }\n}\n \n fragment scopeFull on Scope {\n __typename\n id\n name\n allowlist\n denylist\n indexed\n}\n ";
15028
15120
  export declare const SitemapRootEntriesDocument = "\n query sitemapRootEntries($scopeId: ID) {\n sitemapRootEntries(scopeId: $scopeId) {\n edges {\n ...sitemapEntryEdgeMeta\n }\n }\n}\n \n fragment sitemapEntryEdgeMeta on SitemapEntryEdge {\n __typename\n cursor\n node {\n ...sitemapEntryMeta\n }\n}\n \n\n fragment sitemapEntryMeta on SitemapEntry {\n __typename\n id\n label\n kind\n parentId\n metadata {\n ... on SitemapEntryMetadataDomain {\n isTls\n port\n }\n }\n hasDescendants\n}\n ";
15029
15121
  export declare const SitemapEntryChildrenDocument = "\n query sitemapEntryChildren($id: ID!) {\n sitemapDescendantEntries(parentId: $id, depth: DIRECT) {\n edges {\n cursor\n node {\n ...sitemapEntryMeta\n }\n }\n }\n}\n \n fragment sitemapEntryMeta on SitemapEntry {\n __typename\n id\n label\n kind\n parentId\n metadata {\n ... on SitemapEntryMetadataDomain {\n isTls\n port\n }\n }\n hasDescendants\n}\n ";
@@ -15209,6 +15301,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
15209
15301
  selectProject(variables: SelectProjectMutationVariables, options?: C): Promise<SelectProjectMutation>;
15210
15302
  deleteProject(variables: DeleteProjectMutationVariables, options?: C): Promise<DeleteProjectMutation>;
15211
15303
  renameProject(variables: RenameProjectMutationVariables, options?: C): Promise<RenameProjectMutation>;
15304
+ importCertificate(variables: ImportCertificateMutationVariables, options?: C): Promise<ImportCertificateMutation>;
15305
+ regenerateCertificate(variables?: RegenerateCertificateMutationVariables, options?: C): Promise<RegenerateCertificateMutation>;
15212
15306
  createScope(variables: CreateScopeMutationVariables, options?: C): Promise<CreateScopeMutation>;
15213
15307
  updateScope(variables: UpdateScopeMutationVariables, options?: C): Promise<UpdateScopeMutation>;
15214
15308
  deleteScope(variables: DeleteScopeMutationVariables, options?: C): Promise<DeleteScopeMutation>;
@@ -15277,6 +15371,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
15277
15371
  response(variables: ResponseQueryVariables, options?: C): Promise<ResponseQuery>;
15278
15372
  getRuntime(variables?: GetRuntimeQueryVariables, options?: C): Promise<GetRuntimeQuery>;
15279
15373
  getLogs(variables?: GetLogsQueryVariables, options?: C): Promise<GetLogsQuery>;
15374
+ getCertificate(variables?: GetCertificateQueryVariables, options?: C): Promise<GetCertificateQuery>;
15280
15375
  scopes(variables?: ScopesQueryVariables, options?: C): Promise<ScopesQuery>;
15281
15376
  sitemapRootEntries(variables?: SitemapRootEntriesQueryVariables, options?: C): Promise<SitemapRootEntriesQuery>;
15282
15377
  sitemapEntryChildren(variables: SitemapEntryChildrenQueryVariables, options?: C): Promise<SitemapEntryChildrenQuery>;