@caido/sdk-frontend 0.43.2-beta.2 → 0.43.2-beta.4

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.2-beta.2",
3
+ "version": "0.43.2-beta.4",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -659,6 +659,15 @@ export type CreateBackupPayload = {
659
659
  error?: Maybe<CreateBackupError>;
660
660
  task?: Maybe<BackupTask>;
661
661
  };
662
+ export type CreateEnvironmentError = NameTakenUserError | OtherUserError | PermissionDeniedUserError;
663
+ export type CreateEnvironmentInput = {
664
+ name: Scalars["String"]["input"];
665
+ variables: Array<EnvironmentVariableInput>;
666
+ };
667
+ export type CreateEnvironmentPayload = {
668
+ environment?: Maybe<Environment>;
669
+ error?: Maybe<CreateEnvironmentError>;
670
+ };
662
671
  export type CreateFilterPresetError = AliasTakenUserError | NameTakenUserError | OtherUserError | PermissionDeniedUserError;
663
672
  export type CreateFilterPresetInput = {
664
673
  alias: Scalars["Alias"]["input"];
@@ -811,6 +820,10 @@ export type CreatedDataExportPayload = {
811
820
  export type CreatedDataExportTaskPayload = {
812
821
  exportTaskEdge: DataExportTaskEdge;
813
822
  };
823
+ export type CreatedEnvironmentPayload = {
824
+ environment: Environment;
825
+ snapshot: Scalars["Snapshot"]["output"];
826
+ };
814
827
  export type CreatedFilterPresetPayload = {
815
828
  filterEdge: FilterPresetEdge;
816
829
  };
@@ -970,6 +983,11 @@ export type DeleteDataExportPayload = {
970
983
  deletedId?: Maybe<Scalars["ID"]["output"]>;
971
984
  userError?: Maybe<DeleteDataExportError>;
972
985
  };
986
+ export type DeleteEnvironmentError = OtherUserError | UnknownIdUserError;
987
+ export type DeleteEnvironmentPayload = {
988
+ deletedId?: Maybe<Scalars["ID"]["output"]>;
989
+ error?: Maybe<DeleteEnvironmentError>;
990
+ };
973
991
  export type DeleteFilterPresetPayload = {
974
992
  deletedId?: Maybe<Scalars["ID"]["output"]>;
975
993
  };
@@ -1056,6 +1074,10 @@ export type DeletedDataExportPayload = {
1056
1074
  export type DeletedDataExportTaskPayload = {
1057
1075
  deletedExportTaskId: Scalars["ID"]["output"];
1058
1076
  };
1077
+ export type DeletedEnvironmentPayload = {
1078
+ deletedEnvironmentId: Scalars["ID"]["output"];
1079
+ snapshot: Scalars["Snapshot"]["output"];
1080
+ };
1059
1081
  export type DeletedFilterPresetPayload = {
1060
1082
  deletedFilterId: Scalars["ID"]["output"];
1061
1083
  };
@@ -1121,6 +1143,31 @@ export type DuplicateAutomateSessionPayload = {
1121
1143
  export type EnableTamperRulePayload = {
1122
1144
  rule?: Maybe<TamperRule>;
1123
1145
  };
1146
+ export type Environment = {
1147
+ id: Scalars["ID"]["output"];
1148
+ name: Scalars["String"]["output"];
1149
+ variables: Array<EnvironmentVariable>;
1150
+ version: Scalars["Int"]["output"];
1151
+ };
1152
+ export type EnvironmentContext = {
1153
+ global?: Maybe<Environment>;
1154
+ selected?: Maybe<Environment>;
1155
+ };
1156
+ export type EnvironmentVariable = {
1157
+ kind: EnvironmentVariableKind;
1158
+ name: Scalars["String"]["output"];
1159
+ value: Scalars["String"]["output"];
1160
+ };
1161
+ export type EnvironmentVariableInput = {
1162
+ kind: EnvironmentVariableKind;
1163
+ name: Scalars["String"]["input"];
1164
+ value: Scalars["String"]["input"];
1165
+ };
1166
+ export declare const EnvironmentVariableKind: {
1167
+ readonly Plain: "PLAIN";
1168
+ readonly Secret: "SECRET";
1169
+ };
1170
+ export type EnvironmentVariableKind = (typeof EnvironmentVariableKind)[keyof typeof EnvironmentVariableKind];
1124
1171
  export type FilterClauseFindingInput = {
1125
1172
  reporter?: InputMaybe<Scalars["String"]["input"]>;
1126
1173
  };
@@ -1407,6 +1454,7 @@ export type MutationRoot = {
1407
1454
  createAssistantSession: CreateAssistantSessionPayload;
1408
1455
  createAutomateSession: CreateAutomateSessionPayload;
1409
1456
  createBackup: CreateBackupPayload;
1457
+ createEnvironment: CreateEnvironmentPayload;
1410
1458
  createFilterPreset: CreateFilterPresetPayload;
1411
1459
  createFinding: CreateFindingPayload;
1412
1460
  createProject: CreateProjectPayload;
@@ -1425,6 +1473,7 @@ export type MutationRoot = {
1425
1473
  deleteBackup: DeleteBackupPayload;
1426
1474
  deleteBrowser: DeleteBrowserPayload;
1427
1475
  deleteDataExport: DeleteDataExportPayload;
1476
+ deleteEnvironment: DeleteEnvironmentPayload;
1428
1477
  deleteFilterPreset: DeleteFilterPresetPayload;
1429
1478
  deleteFindings: DeleteFindingsPayload;
1430
1479
  deleteHostedFile: DeleteHostedFilePayload;
@@ -1478,6 +1527,7 @@ export type MutationRoot = {
1478
1527
  resumeIntercept: ResumeInterceptPayload;
1479
1528
  runActiveWorkflow: RunActiveWorkflowPayload;
1480
1529
  runConvertWorkflow: RunConvertWorkflowPayload;
1530
+ selectEnvironment: SelectEnvironmentPayload;
1481
1531
  selectProject: SelectProjectPayload;
1482
1532
  sendAssistantMessage: SendAssistantMessagePayload;
1483
1533
  /** @deprecated Remove usage, no replacement */
@@ -1500,6 +1550,7 @@ export type MutationRoot = {
1500
1550
  uninstallPluginPackage: UninstallPluginPackagePayload;
1501
1551
  updateAutomateSession: UpdateAutomateSessionPayload;
1502
1552
  updateBrowser: UpdateBrowserPayload;
1553
+ updateEnvironment: UpdateEnvironmentPayload;
1503
1554
  updateFilterPreset: UpdateFilterPresetPayload;
1504
1555
  updateRequestMetadata: UpdateRequestMetadataPayload;
1505
1556
  updateScope: UpdateScopePayload;
@@ -1534,6 +1585,9 @@ export type MutationRootCreateAutomateSessionArgs = {
1534
1585
  export type MutationRootCreateBackupArgs = {
1535
1586
  projectId: Scalars["ID"]["input"];
1536
1587
  };
1588
+ export type MutationRootCreateEnvironmentArgs = {
1589
+ input: CreateEnvironmentInput;
1590
+ };
1537
1591
  export type MutationRootCreateFilterPresetArgs = {
1538
1592
  input: CreateFilterPresetInput;
1539
1593
  };
@@ -1586,6 +1640,9 @@ export type MutationRootDeleteBackupArgs = {
1586
1640
  export type MutationRootDeleteDataExportArgs = {
1587
1641
  id: Scalars["ID"]["input"];
1588
1642
  };
1643
+ export type MutationRootDeleteEnvironmentArgs = {
1644
+ id: Scalars["ID"]["input"];
1645
+ };
1589
1646
  export type MutationRootDeleteFilterPresetArgs = {
1590
1647
  id: Scalars["ID"]["input"];
1591
1648
  };
@@ -1753,6 +1810,9 @@ export type MutationRootRunConvertWorkflowArgs = {
1753
1810
  id: Scalars["ID"]["input"];
1754
1811
  input: Scalars["Blob"]["input"];
1755
1812
  };
1813
+ export type MutationRootSelectEnvironmentArgs = {
1814
+ id?: InputMaybe<Scalars["ID"]["input"]>;
1815
+ };
1756
1816
  export type MutationRootSelectProjectArgs = {
1757
1817
  id: Scalars["ID"]["input"];
1758
1818
  };
@@ -1819,6 +1879,10 @@ export type MutationRootUpdateAutomateSessionArgs = {
1819
1879
  id: Scalars["ID"]["input"];
1820
1880
  input: UpdateAutomateSessionInput;
1821
1881
  };
1882
+ export type MutationRootUpdateEnvironmentArgs = {
1883
+ id: Scalars["ID"]["input"];
1884
+ input: UpdateEnvironmentInput;
1885
+ };
1822
1886
  export type MutationRootUpdateFilterPresetArgs = {
1823
1887
  id: Scalars["ID"]["input"];
1824
1888
  input: UpdateFilterPresetInput;
@@ -1857,6 +1921,10 @@ export type NameTakenUserError = UserError & {
1857
1921
  code: Scalars["String"]["output"];
1858
1922
  name: Scalars["String"]["output"];
1859
1923
  };
1924
+ export type NewerVersionUserError = UserError & {
1925
+ code: Scalars["String"]["output"];
1926
+ version: Scalars["Int"]["output"];
1927
+ };
1860
1928
  export type OnboardingState = {
1861
1929
  caCertificate: Scalars["Boolean"]["output"];
1862
1930
  license: Scalars["Boolean"]["output"];
@@ -2019,6 +2087,9 @@ export type QueryRoot = {
2019
2087
  dataExport?: Maybe<DataExport>;
2020
2088
  dataExportTasks: Array<DataExportTask>;
2021
2089
  dataExports: Array<DataExport>;
2090
+ environment?: Maybe<Environment>;
2091
+ environmentContext: EnvironmentContext;
2092
+ environments: Array<Environment>;
2022
2093
  filterPreset?: Maybe<FilterPreset>;
2023
2094
  filterPresets: Array<FilterPreset>;
2024
2095
  finding?: Maybe<Finding>;
@@ -2095,6 +2166,9 @@ export type QueryRootBackupArgs = {
2095
2166
  export type QueryRootDataExportArgs = {
2096
2167
  id: Scalars["ID"]["input"];
2097
2168
  };
2169
+ export type QueryRootEnvironmentArgs = {
2170
+ id: Scalars["ID"]["input"];
2171
+ };
2098
2172
  export type QueryRootFilterPresetArgs = {
2099
2173
  id: Scalars["ID"]["input"];
2100
2174
  };
@@ -2400,6 +2474,12 @@ export type ReplayEntrySettingsInput = {
2400
2474
  placeholders: Array<ReplayPlaceholderInput>;
2401
2475
  updateContentLength: Scalars["Boolean"]["input"];
2402
2476
  };
2477
+ export type ReplayEnvironmentPreprocessor = {
2478
+ variableName: Scalars["String"]["output"];
2479
+ };
2480
+ export type ReplayEnvironmentPreprocessorInput = {
2481
+ variableName: Scalars["String"]["input"];
2482
+ };
2403
2483
  export type ReplayPlaceholder = {
2404
2484
  inputRange: Range;
2405
2485
  outputRange: Range;
@@ -2422,23 +2502,33 @@ export type ReplayPreprocessor = {
2422
2502
  export type ReplayPreprocessorInput = {
2423
2503
  options: ReplayPreprocessorOptionsInput;
2424
2504
  };
2425
- export type ReplayPreprocessorOptions = ReplayPrefixPreprocessor | ReplaySuffixPreprocessor | ReplayUrlEncodePreprocessor | ReplayWorkflowPreprocessor;
2505
+ export type ReplayPreprocessorOptions = ReplayEnvironmentPreprocessor | ReplayPrefixPreprocessor | ReplaySuffixPreprocessor | ReplayUrlEncodePreprocessor | ReplayWorkflowPreprocessor;
2426
2506
  export type ReplayPreprocessorOptionsInput = {
2507
+ environment: ReplayEnvironmentPreprocessorInput;
2508
+ prefix?: never;
2509
+ suffix?: never;
2510
+ urlEncode?: never;
2511
+ workflow?: never;
2512
+ } | {
2513
+ environment?: never;
2427
2514
  prefix: ReplayPrefixPreprocessorInput;
2428
2515
  suffix?: never;
2429
2516
  urlEncode?: never;
2430
2517
  workflow?: never;
2431
2518
  } | {
2519
+ environment?: never;
2432
2520
  prefix?: never;
2433
2521
  suffix: ReplaySuffixPreprocessorInput;
2434
2522
  urlEncode?: never;
2435
2523
  workflow?: never;
2436
2524
  } | {
2525
+ environment?: never;
2437
2526
  prefix?: never;
2438
2527
  suffix?: never;
2439
2528
  urlEncode: ReplayUrlEncodePreprocessorInput;
2440
2529
  workflow?: never;
2441
2530
  } | {
2531
+ environment?: never;
2442
2532
  prefix?: never;
2443
2533
  suffix?: never;
2444
2534
  urlEncode?: never;
@@ -2661,6 +2751,11 @@ export type ScopeEdge = {
2661
2751
  /** The item at the end of the edge */
2662
2752
  node: Scope;
2663
2753
  };
2754
+ export type SelectEnvironmentError = OtherUserError | UnknownIdUserError;
2755
+ export type SelectEnvironmentPayload = {
2756
+ environment?: Maybe<Environment>;
2757
+ error?: Maybe<SelectEnvironmentError>;
2758
+ };
2664
2759
  export type SelectProjectPayload = {
2665
2760
  error?: Maybe<SelectProjectPayloadError>;
2666
2761
  project?: Maybe<Project>;
@@ -2927,6 +3022,7 @@ export type SubscriptionRoot = {
2927
3022
  createdBackup: CreatedBackupPayload;
2928
3023
  createdDataExport: CreatedDataExportPayload;
2929
3024
  createdDataExportTask: CreatedDataExportTaskPayload;
3025
+ createdEnvironment: CreatedEnvironmentPayload;
2930
3026
  createdFilterPreset: CreatedFilterPresetPayload;
2931
3027
  createdFinding: CreatedFindingPayload;
2932
3028
  createdInterceptEntry: CreatedInterceptEntryPayload;
@@ -2954,6 +3050,7 @@ export type SubscriptionRoot = {
2954
3050
  deletedBrowser: DeletedBrowserPayload;
2955
3051
  deletedDataExport: DeletedDataExportPayload;
2956
3052
  deletedDataExportTask: DeletedDataExportTaskPayload;
3053
+ deletedEnvironment: DeletedEnvironmentPayload;
2957
3054
  deletedFilterPreset: DeletedFilterPresetPayload;
2958
3055
  deletedFindings: DeletedFindingsPayload;
2959
3056
  deletedHostedFile: DeletedHostedFilePayload;
@@ -2987,6 +3084,8 @@ export type SubscriptionRoot = {
2987
3084
  updatedBrowser: UpdatedBrowserPayload;
2988
3085
  updatedDataExport: UpdatedDataExportPayload;
2989
3086
  updatedDeleteInterceptEntriesTask: UpdatedDeleteInterceptEntriesTaskPayload;
3087
+ updatedEnvironment: UpdatedEnvironmentPayload;
3088
+ updatedEnvironmentContext: UpdatedEnvironmentContextPayload;
2990
3089
  updatedFilterPreset: UpdatedFilterPresetPayload;
2991
3090
  updatedHostedFile: UpdatedHostedFilePayload;
2992
3091
  updatedInterceptEntry: UpdatedInterceptEntryPayload;
@@ -3170,6 +3269,16 @@ export type UpdateBrowserPayload = {
3170
3269
  browser?: Maybe<Browser>;
3171
3270
  error?: Maybe<UpdateBrowserError>;
3172
3271
  };
3272
+ export type UpdateEnvironmentError = NameTakenUserError | NewerVersionUserError | OtherUserError | PermissionDeniedUserError | UnknownIdUserError;
3273
+ export type UpdateEnvironmentInput = {
3274
+ name: Scalars["String"]["input"];
3275
+ variables: Array<EnvironmentVariableInput>;
3276
+ version: Scalars["Int"]["input"];
3277
+ };
3278
+ export type UpdateEnvironmentPayload = {
3279
+ environment?: Maybe<Environment>;
3280
+ error?: Maybe<UpdateEnvironmentError>;
3281
+ };
3173
3282
  export type UpdateFilterPresetError = AliasTakenUserError | NameTakenUserError | OtherUserError;
3174
3283
  export type UpdateFilterPresetInput = {
3175
3284
  alias: Scalars["Alias"]["input"];
@@ -3280,6 +3389,13 @@ export type UpdatedDeleteInterceptEntriesTaskPayload = {
3280
3389
  snapshot: Scalars["Snapshot"]["output"];
3281
3390
  task: DeleteInterceptEntriesTask;
3282
3391
  };
3392
+ export type UpdatedEnvironmentContextPayload = {
3393
+ environmentContext: EnvironmentContext;
3394
+ };
3395
+ export type UpdatedEnvironmentPayload = {
3396
+ environment: Environment;
3397
+ snapshot: Scalars["Snapshot"]["output"];
3398
+ };
3283
3399
  export type UpdatedFilterPresetPayload = {
3284
3400
  filterEdge: FilterPresetEdge;
3285
3401
  };
@@ -5508,6 +5624,287 @@ export type DeletedAutomateSessionSubscription = {
5508
5624
  deletedAutomateSessionId: string;
5509
5625
  };
5510
5626
  };
5627
+ export type EnvironmentMetaFragment = {
5628
+ __typename: "Environment";
5629
+ id: string;
5630
+ name: string;
5631
+ version: number;
5632
+ };
5633
+ export type EnvironmentVariableFullFragment = {
5634
+ name: string;
5635
+ value: string;
5636
+ kind: EnvironmentVariableKind;
5637
+ };
5638
+ export type EnvironmentFullFragment = {
5639
+ __typename: "Environment";
5640
+ id: string;
5641
+ name: string;
5642
+ version: number;
5643
+ variables: Array<{
5644
+ name: string;
5645
+ value: string;
5646
+ kind: EnvironmentVariableKind;
5647
+ }>;
5648
+ };
5649
+ export type EnvironmentContextFullFragment = {
5650
+ global?: {
5651
+ __typename: "Environment";
5652
+ id: string;
5653
+ name: string;
5654
+ version: number;
5655
+ variables: Array<{
5656
+ name: string;
5657
+ value: string;
5658
+ kind: EnvironmentVariableKind;
5659
+ }>;
5660
+ } | undefined | null;
5661
+ selected?: {
5662
+ __typename: "Environment";
5663
+ id: string;
5664
+ name: string;
5665
+ version: number;
5666
+ variables: Array<{
5667
+ name: string;
5668
+ value: string;
5669
+ kind: EnvironmentVariableKind;
5670
+ }>;
5671
+ } | undefined | null;
5672
+ };
5673
+ export type EnvironmentQueryVariables = Exact<{
5674
+ id: Scalars["ID"]["input"];
5675
+ }>;
5676
+ export type EnvironmentQuery = {
5677
+ environment?: {
5678
+ __typename: "Environment";
5679
+ id: string;
5680
+ name: string;
5681
+ version: number;
5682
+ variables: Array<{
5683
+ name: string;
5684
+ value: string;
5685
+ kind: EnvironmentVariableKind;
5686
+ }>;
5687
+ } | undefined | null;
5688
+ };
5689
+ export type EnvironmentsQueryVariables = Exact<{
5690
+ [key: string]: never;
5691
+ }>;
5692
+ export type EnvironmentsQuery = {
5693
+ environments: Array<{
5694
+ __typename: "Environment";
5695
+ id: string;
5696
+ name: string;
5697
+ version: number;
5698
+ }>;
5699
+ };
5700
+ export type EnvironmentContextQueryVariables = Exact<{
5701
+ [key: string]: never;
5702
+ }>;
5703
+ export type EnvironmentContextQuery = {
5704
+ environmentContext: {
5705
+ global?: {
5706
+ __typename: "Environment";
5707
+ id: string;
5708
+ name: string;
5709
+ version: number;
5710
+ variables: Array<{
5711
+ name: string;
5712
+ value: string;
5713
+ kind: EnvironmentVariableKind;
5714
+ }>;
5715
+ } | undefined | null;
5716
+ selected?: {
5717
+ __typename: "Environment";
5718
+ id: string;
5719
+ name: string;
5720
+ version: number;
5721
+ variables: Array<{
5722
+ name: string;
5723
+ value: string;
5724
+ kind: EnvironmentVariableKind;
5725
+ }>;
5726
+ } | undefined | null;
5727
+ };
5728
+ };
5729
+ export type CreateEnvironmentMutationVariables = Exact<{
5730
+ input: CreateEnvironmentInput;
5731
+ }>;
5732
+ export type CreateEnvironmentMutation = {
5733
+ createEnvironment: {
5734
+ environment?: {
5735
+ __typename: "Environment";
5736
+ id: string;
5737
+ name: string;
5738
+ version: number;
5739
+ variables: Array<{
5740
+ name: string;
5741
+ value: string;
5742
+ kind: EnvironmentVariableKind;
5743
+ }>;
5744
+ } | undefined | null;
5745
+ error?: {
5746
+ __typename: "NameTakenUserError";
5747
+ name: string;
5748
+ code: string;
5749
+ } | {
5750
+ __typename: "OtherUserError";
5751
+ code: string;
5752
+ } | {
5753
+ __typename: "PermissionDeniedUserError";
5754
+ code: string;
5755
+ permissionDeniedReason: PermissionDeniedErrorReason;
5756
+ } | undefined | null;
5757
+ };
5758
+ };
5759
+ export type UpdateEnvironmentMutationVariables = Exact<{
5760
+ id: Scalars["ID"]["input"];
5761
+ input: UpdateEnvironmentInput;
5762
+ }>;
5763
+ export type UpdateEnvironmentMutation = {
5764
+ updateEnvironment: {
5765
+ environment?: {
5766
+ __typename: "Environment";
5767
+ id: string;
5768
+ name: string;
5769
+ version: number;
5770
+ variables: Array<{
5771
+ name: string;
5772
+ value: string;
5773
+ kind: EnvironmentVariableKind;
5774
+ }>;
5775
+ } | undefined | null;
5776
+ error?: {
5777
+ __typename: "NameTakenUserError";
5778
+ name: string;
5779
+ code: string;
5780
+ } | {
5781
+ __typename: "NewerVersionUserError";
5782
+ version: number;
5783
+ code: string;
5784
+ } | {
5785
+ __typename: "OtherUserError";
5786
+ code: string;
5787
+ } | {
5788
+ __typename: "PermissionDeniedUserError";
5789
+ code: string;
5790
+ permissionDeniedReason: PermissionDeniedErrorReason;
5791
+ } | {
5792
+ __typename: "UnknownIdUserError";
5793
+ id: string;
5794
+ code: string;
5795
+ } | undefined | null;
5796
+ };
5797
+ };
5798
+ export type DeleteEnvironmentMutationVariables = Exact<{
5799
+ id: Scalars["ID"]["input"];
5800
+ }>;
5801
+ export type DeleteEnvironmentMutation = {
5802
+ deleteEnvironment: {
5803
+ deletedId?: string | undefined | null;
5804
+ error?: {
5805
+ __typename: "OtherUserError";
5806
+ code: string;
5807
+ } | {
5808
+ __typename: "UnknownIdUserError";
5809
+ id: string;
5810
+ code: string;
5811
+ } | undefined | null;
5812
+ };
5813
+ };
5814
+ export type SelectEnvironmentMutationVariables = Exact<{
5815
+ id?: InputMaybe<Scalars["ID"]["input"]>;
5816
+ }>;
5817
+ export type SelectEnvironmentMutation = {
5818
+ selectEnvironment: {
5819
+ environment?: {
5820
+ __typename: "Environment";
5821
+ id: string;
5822
+ name: string;
5823
+ version: number;
5824
+ variables: Array<{
5825
+ name: string;
5826
+ value: string;
5827
+ kind: EnvironmentVariableKind;
5828
+ }>;
5829
+ } | undefined | null;
5830
+ error?: {
5831
+ __typename: "OtherUserError";
5832
+ code: string;
5833
+ } | {
5834
+ __typename: "UnknownIdUserError";
5835
+ id: string;
5836
+ code: string;
5837
+ } | undefined | null;
5838
+ };
5839
+ };
5840
+ export type CreatedEnvironmentSubscriptionVariables = Exact<{
5841
+ [key: string]: never;
5842
+ }>;
5843
+ export type CreatedEnvironmentSubscription = {
5844
+ createdEnvironment: {
5845
+ snapshot: number;
5846
+ environment: {
5847
+ __typename: "Environment";
5848
+ id: string;
5849
+ name: string;
5850
+ version: number;
5851
+ };
5852
+ };
5853
+ };
5854
+ export type UpdatedEnvironmentSubscriptionVariables = Exact<{
5855
+ [key: string]: never;
5856
+ }>;
5857
+ export type UpdatedEnvironmentSubscription = {
5858
+ updatedEnvironment: {
5859
+ snapshot: number;
5860
+ environment: {
5861
+ __typename: "Environment";
5862
+ id: string;
5863
+ name: string;
5864
+ version: number;
5865
+ };
5866
+ };
5867
+ };
5868
+ export type DeletedEnvironmentSubscriptionVariables = Exact<{
5869
+ [key: string]: never;
5870
+ }>;
5871
+ export type DeletedEnvironmentSubscription = {
5872
+ deletedEnvironment: {
5873
+ deletedEnvironmentId: string;
5874
+ snapshot: number;
5875
+ };
5876
+ };
5877
+ export type UpdatedEnvironmentContextSubscriptionVariables = Exact<{
5878
+ [key: string]: never;
5879
+ }>;
5880
+ export type UpdatedEnvironmentContextSubscription = {
5881
+ updatedEnvironmentContext: {
5882
+ environmentContext: {
5883
+ global?: {
5884
+ __typename: "Environment";
5885
+ id: string;
5886
+ name: string;
5887
+ version: number;
5888
+ variables: Array<{
5889
+ name: string;
5890
+ value: string;
5891
+ kind: EnvironmentVariableKind;
5892
+ }>;
5893
+ } | undefined | null;
5894
+ selected?: {
5895
+ __typename: "Environment";
5896
+ id: string;
5897
+ name: string;
5898
+ version: number;
5899
+ variables: Array<{
5900
+ name: string;
5901
+ value: string;
5902
+ kind: EnvironmentVariableKind;
5903
+ }>;
5904
+ } | undefined | null;
5905
+ };
5906
+ };
5907
+ };
5511
5908
  export type AuthenticationRequestFullFragment = {
5512
5909
  __typename: "AuthenticationRequest";
5513
5910
  id: string;
@@ -5816,6 +6213,10 @@ type UserErrorFull_NameTakenUserError_Fragment = {
5816
6213
  __typename: "NameTakenUserError";
5817
6214
  code: string;
5818
6215
  };
6216
+ type UserErrorFull_NewerVersionUserError_Fragment = {
6217
+ __typename: "NewerVersionUserError";
6218
+ code: string;
6219
+ };
5819
6220
  type UserErrorFull_OtherUserError_Fragment = {
5820
6221
  __typename: "OtherUserError";
5821
6222
  code: string;
@@ -5860,7 +6261,7 @@ type UserErrorFull_WorkflowUserError_Fragment = {
5860
6261
  __typename: "WorkflowUserError";
5861
6262
  code: string;
5862
6263
  };
5863
- 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;
6264
+ 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_NewerVersionUserError_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;
5864
6265
  export type InvalidHttpqlUserErrorFullFragment = {
5865
6266
  __typename: "InvalidHTTPQLUserError";
5866
6267
  query: string;
@@ -5886,6 +6287,11 @@ export type CertificateUserErrorFullFragment = {
5886
6287
  code: string;
5887
6288
  certificateReason: CertificateErrorReason;
5888
6289
  };
6290
+ export type NewerVersionUserErrorFullFragment = {
6291
+ __typename: "NewerVersionUserError";
6292
+ version: number;
6293
+ code: string;
6294
+ };
5889
6295
  export type DataExportMetaFragment = {
5890
6296
  __typename: "DataExport";
5891
6297
  id: string;
@@ -10380,6 +10786,9 @@ export type ReplayEntryFullFragment = {
10380
10786
  preprocessors: Array<{
10381
10787
  __typename: "ReplayPreprocessor";
10382
10788
  options: {
10789
+ __typename: "ReplayEnvironmentPreprocessor";
10790
+ variableName: string;
10791
+ } | {
10383
10792
  __typename: "ReplayPrefixPreprocessor";
10384
10793
  value: string;
10385
10794
  } | {
@@ -10745,9 +11154,16 @@ export type ReplayWorkflowPreprocessorFullFragment = {
10745
11154
  __typename: "ReplayWorkflowPreprocessor";
10746
11155
  id: string;
10747
11156
  };
11157
+ export type ReplayEnvironmentPreprocessorFullFragment = {
11158
+ __typename: "ReplayEnvironmentPreprocessor";
11159
+ variableName: string;
11160
+ };
10748
11161
  export type ReplayPreprocessorFullFragment = {
10749
11162
  __typename: "ReplayPreprocessor";
10750
11163
  options: {
11164
+ __typename: "ReplayEnvironmentPreprocessor";
11165
+ variableName: string;
11166
+ } | {
10751
11167
  __typename: "ReplayPrefixPreprocessor";
10752
11168
  value: string;
10753
11169
  } | {
@@ -10775,6 +11191,9 @@ export type ReplayPlaceholderFullFragment = {
10775
11191
  preprocessors: Array<{
10776
11192
  __typename: "ReplayPreprocessor";
10777
11193
  options: {
11194
+ __typename: "ReplayEnvironmentPreprocessor";
11195
+ variableName: string;
11196
+ } | {
10778
11197
  __typename: "ReplayPrefixPreprocessor";
10779
11198
  value: string;
10780
11199
  } | {
@@ -10813,6 +11232,9 @@ export type ReplayEntryQuery = {
10813
11232
  preprocessors: Array<{
10814
11233
  __typename: "ReplayPreprocessor";
10815
11234
  options: {
11235
+ __typename: "ReplayEnvironmentPreprocessor";
11236
+ variableName: string;
11237
+ } | {
10816
11238
  __typename: "ReplayPrefixPreprocessor";
10817
11239
  value: string;
10818
11240
  } | {
@@ -14805,6 +15227,8 @@ export type FinishedTaskSubscription = {
14805
15227
  code: string;
14806
15228
  } | {
14807
15229
  code: string;
15230
+ } | {
15231
+ code: string;
14808
15232
  } | undefined | null;
14809
15233
  };
14810
15234
  };
@@ -15020,6 +15444,10 @@ export declare const ConnectionInfoFullFragmentDoc = "\n fragment connectionI
15020
15444
  export declare const AutomateSessionFullFragmentDoc = "\n fragment automateSessionFull on AutomateSession {\n ...automateSessionMeta\n connection {\n ...connectionInfoFull\n }\n settings {\n ...automateSettingsFull\n }\n raw\n}\n ";
15021
15445
  export declare const AutomateTaskMetaFragmentDoc = "\n fragment automateTaskMeta on AutomateTask {\n id\n paused\n entry {\n ...automateEntryMeta\n }\n}\n ";
15022
15446
  export declare const AutomateTaskEdgeMetaFragmentDoc = "\n fragment automateTaskEdgeMeta on AutomateTaskEdge {\n node {\n ...automateTaskMeta\n }\n}\n ";
15447
+ export declare const EnvironmentMetaFragmentDoc = "\n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n ";
15448
+ export declare const EnvironmentVariableFullFragmentDoc = "\n fragment environmentVariableFull on EnvironmentVariable {\n name\n value\n kind\n}\n ";
15449
+ export declare const EnvironmentFullFragmentDoc = "\n fragment environmentFull on Environment {\n ...environmentMeta\n variables {\n ...environmentVariableFull\n }\n}\n ";
15450
+ export declare const EnvironmentContextFullFragmentDoc = "\n fragment environmentContextFull on EnvironmentContext {\n global {\n ...environmentFull\n }\n selected {\n ...environmentFull\n }\n}\n ";
15023
15451
  export declare const AuthenticationRequestFullFragmentDoc = "\n fragment authenticationRequestFull on AuthenticationRequest {\n __typename\n id\n expiresAt\n userCode\n verificationUrl\n}\n ";
15024
15452
  export declare const AuthenticationTokenFullFragmentDoc = "\n fragment authenticationTokenFull on AuthenticationToken {\n __typename\n accessToken\n expiresAt\n refreshToken\n scopes\n}\n ";
15025
15453
  export declare const BackupMetaFragmentDoc = "\n fragment backupMeta on Backup {\n __typename\n id\n name\n path\n size\n status\n createdAt\n updatedAt\n project {\n id\n }\n}\n ";
@@ -15051,6 +15479,7 @@ export declare const PluginUserErrorFullFragmentDoc = "\n fragment pluginUser
15051
15479
  export declare const StoreUserErrorFullFragmentDoc = "\n fragment storeUserErrorFull on StoreUserError {\n ...userErrorFull\n storeReason: reason\n}\n ";
15052
15480
  export declare const ProjectUserErrorFullFragmentDoc = "\n fragment projectUserErrorFull on ProjectUserError {\n ...userErrorFull\n projectReason: reason\n}\n ";
15053
15481
  export declare const CertificateUserErrorFullFragmentDoc = "\n fragment certificateUserErrorFull on CertificateUserError {\n ...userErrorFull\n certificateReason: reason\n}\n ";
15482
+ export declare const NewerVersionUserErrorFullFragmentDoc = "\n fragment newerVersionUserErrorFull on NewerVersionUserError {\n ...userErrorFull\n version\n}\n ";
15054
15483
  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 ";
15055
15484
  export declare const DataExportMetaFragmentDoc = "\n fragment dataExportMeta on DataExport {\n ...dataExportMetaFields\n}\n ";
15056
15485
  export declare const DataExportFullFieldsFragmentDoc = "\n fragment dataExportFullFields on DataExport {\n ...dataExportMeta\n downloadUri\n}\n ";
@@ -15112,7 +15541,8 @@ export declare const ReplayPrefixPreprocessorFullFragmentDoc = "\n fragment r
15112
15541
  export declare const ReplaySuffixPreprocessorFullFragmentDoc = "\n fragment replaySuffixPreprocessorFull on ReplaySuffixPreprocessor {\n __typename\n value\n}\n ";
15113
15542
  export declare const ReplayUrlEncodePreprocessorFullFragmentDoc = "\n fragment replayUrlEncodePreprocessorFull on ReplayUrlEncodePreprocessor {\n __typename\n charset\n nonAscii\n}\n ";
15114
15543
  export declare const ReplayWorkflowPreprocessorFullFragmentDoc = "\n fragment replayWorkflowPreprocessorFull on ReplayWorkflowPreprocessor {\n __typename\n id\n}\n ";
15115
- export declare const ReplayPreprocessorFullFragmentDoc = "\n fragment replayPreprocessorFull on ReplayPreprocessor {\n __typename\n options {\n ... on ReplayPrefixPreprocessor {\n ...replayPrefixPreprocessorFull\n }\n ... on ReplaySuffixPreprocessor {\n ...replaySuffixPreprocessorFull\n }\n ... on ReplayUrlEncodePreprocessor {\n ...replayUrlEncodePreprocessorFull\n }\n ... on ReplayWorkflowPreprocessor {\n ...replayWorkflowPreprocessorFull\n }\n }\n}\n ";
15544
+ export declare const ReplayEnvironmentPreprocessorFullFragmentDoc = "\n fragment replayEnvironmentPreprocessorFull on ReplayEnvironmentPreprocessor {\n __typename\n variableName\n}\n ";
15545
+ export declare const ReplayPreprocessorFullFragmentDoc = "\n fragment replayPreprocessorFull on ReplayPreprocessor {\n __typename\n options {\n ... on ReplayPrefixPreprocessor {\n ...replayPrefixPreprocessorFull\n }\n ... on ReplaySuffixPreprocessor {\n ...replaySuffixPreprocessorFull\n }\n ... on ReplayUrlEncodePreprocessor {\n ...replayUrlEncodePreprocessorFull\n }\n ... on ReplayWorkflowPreprocessor {\n ...replayWorkflowPreprocessorFull\n }\n ... on ReplayEnvironmentPreprocessor {\n ...replayEnvironmentPreprocessorFull\n }\n }\n}\n ";
15116
15546
  export declare const ReplayPlaceholderFullFragmentDoc = "\n fragment replayPlaceholderFull on ReplayPlaceholder {\n __typename\n inputRange {\n ...rangeFull\n }\n outputRange {\n ...rangeFull\n }\n preprocessors {\n ...replayPreprocessorFull\n }\n}\n ";
15117
15547
  export declare const ReplayEntryFullFragmentDoc = "\n fragment replayEntryFull on ReplayEntry {\n ...replayEntryMeta\n raw\n settings {\n placeholders {\n ...replayPlaceholderFull\n }\n }\n}\n ";
15118
15548
  export declare const PageInfoFullFragmentDoc = "\n fragment pageInfoFull on PageInfo {\n __typename\n hasPreviousPage\n hasNextPage\n startCursor\n endCursor\n}\n ";
@@ -15161,6 +15591,17 @@ export declare const DeletedAutomateEntryDocument = "\n subscription deletedA
15161
15591
  export declare const CreatedAutomateSessionDocument = "\n subscription createdAutomateSession {\n createdAutomateSession {\n automateSessionEdge {\n node {\n ...automateSessionMeta\n }\n }\n }\n}\n \n fragment automateSessionMeta on AutomateSession {\n __typename\n id\n name\n createdAt\n entries {\n ...automateEntryMeta\n }\n}\n \n\n fragment automateEntryMeta on AutomateEntry {\n __typename\n id\n name\n createdAt\n session {\n id\n }\n}\n ";
15162
15592
  export declare const UpdatedAutomateSessionDocument = "\n subscription updatedAutomateSession {\n updatedAutomateSession {\n automateSessionEdge {\n node {\n ...automateSessionMeta\n }\n }\n snapshot\n }\n}\n \n fragment automateSessionMeta on AutomateSession {\n __typename\n id\n name\n createdAt\n entries {\n ...automateEntryMeta\n }\n}\n \n\n fragment automateEntryMeta on AutomateEntry {\n __typename\n id\n name\n createdAt\n session {\n id\n }\n}\n ";
15163
15593
  export declare const DeletedAutomateSessionDocument = "\n subscription deletedAutomateSession {\n deletedAutomateSession {\n deletedAutomateSessionId\n }\n}\n ";
15594
+ export declare const EnvironmentDocument = "\n query environment($id: ID!) {\n environment(id: $id) {\n ...environmentFull\n }\n}\n \n fragment environmentFull on Environment {\n ...environmentMeta\n variables {\n ...environmentVariableFull\n }\n}\n \n\n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n \n\n fragment environmentVariableFull on EnvironmentVariable {\n name\n value\n kind\n}\n ";
15595
+ export declare const EnvironmentsDocument = "\n query environments {\n environments {\n ...environmentMeta\n }\n}\n \n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n ";
15596
+ export declare const EnvironmentContextDocument = "\n query environmentContext {\n environmentContext {\n ...environmentContextFull\n }\n}\n \n fragment environmentContextFull on EnvironmentContext {\n global {\n ...environmentFull\n }\n selected {\n ...environmentFull\n }\n}\n \n\n fragment environmentFull on Environment {\n ...environmentMeta\n variables {\n ...environmentVariableFull\n }\n}\n \n\n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n \n\n fragment environmentVariableFull on EnvironmentVariable {\n name\n value\n kind\n}\n ";
15597
+ export declare const CreateEnvironmentDocument = "\n mutation createEnvironment($input: CreateEnvironmentInput!) {\n createEnvironment(input: $input) {\n environment {\n ...environmentFull\n }\n error {\n ... on NameTakenUserError {\n ...nameTakenUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n ... on PermissionDeniedUserError {\n ...permissionDeniedUserErrorFull\n }\n }\n }\n}\n \n fragment environmentFull on Environment {\n ...environmentMeta\n variables {\n ...environmentVariableFull\n }\n}\n \n\n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n \n\n fragment environmentVariableFull on EnvironmentVariable {\n name\n value\n kind\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 \n\n fragment permissionDeniedUserErrorFull on PermissionDeniedUserError {\n ...userErrorFull\n permissionDeniedReason: reason\n}\n ";
15598
+ export declare const UpdateEnvironmentDocument = "\n mutation updateEnvironment($id: ID!, $input: UpdateEnvironmentInput!) {\n updateEnvironment(id: $id, input: $input) {\n environment {\n ...environmentFull\n }\n error {\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on NameTakenUserError {\n ...nameTakenUserErrorFull\n }\n ... on NewerVersionUserError {\n ...newerVersionUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n ... on PermissionDeniedUserError {\n ...permissionDeniedUserErrorFull\n }\n }\n }\n}\n \n fragment environmentFull on Environment {\n ...environmentMeta\n variables {\n ...environmentVariableFull\n }\n}\n \n\n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n \n\n fragment environmentVariableFull on EnvironmentVariable {\n name\n value\n kind\n}\n \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment nameTakenUserErrorFull on NameTakenUserError {\n ...userErrorFull\n name\n}\n \n\n fragment newerVersionUserErrorFull on NewerVersionUserError {\n ...userErrorFull\n version\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment permissionDeniedUserErrorFull on PermissionDeniedUserError {\n ...userErrorFull\n permissionDeniedReason: reason\n}\n ";
15599
+ export declare const DeleteEnvironmentDocument = "\n mutation deleteEnvironment($id: ID!) {\n deleteEnvironment(id: $id) {\n deletedId\n error {\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
15600
+ export declare const SelectEnvironmentDocument = "\n mutation selectEnvironment($id: ID) {\n selectEnvironment(id: $id) {\n environment {\n ...environmentFull\n }\n error {\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment environmentFull on Environment {\n ...environmentMeta\n variables {\n ...environmentVariableFull\n }\n}\n \n\n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n \n\n fragment environmentVariableFull on EnvironmentVariable {\n name\n value\n kind\n}\n \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
15601
+ export declare const CreatedEnvironmentDocument = "\n subscription createdEnvironment {\n createdEnvironment {\n environment {\n ...environmentMeta\n }\n snapshot\n }\n}\n \n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n ";
15602
+ export declare const UpdatedEnvironmentDocument = "\n subscription updatedEnvironment {\n updatedEnvironment {\n environment {\n ...environmentMeta\n }\n snapshot\n }\n}\n \n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n ";
15603
+ export declare const DeletedEnvironmentDocument = "\n subscription deletedEnvironment {\n deletedEnvironment {\n deletedEnvironmentId\n snapshot\n }\n}\n ";
15604
+ export declare const UpdatedEnvironmentContextDocument = "\n subscription updatedEnvironmentContext {\n updatedEnvironmentContext {\n environmentContext {\n ...environmentContextFull\n }\n }\n}\n \n fragment environmentContextFull on EnvironmentContext {\n global {\n ...environmentFull\n }\n selected {\n ...environmentFull\n }\n}\n \n\n fragment environmentFull on Environment {\n ...environmentMeta\n variables {\n ...environmentVariableFull\n }\n}\n \n\n fragment environmentMeta on Environment {\n __typename\n id\n name\n version\n}\n \n\n fragment environmentVariableFull on EnvironmentVariable {\n name\n value\n kind\n}\n ";
15164
15605
  export declare const StartAuthenticationFlowDocument = "\n mutation startAuthenticationFlow {\n startAuthenticationFlow {\n request {\n ...authenticationRequestFull\n }\n error {\n ... on AuthenticationUserError {\n ...authenticationUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment authenticationRequestFull on AuthenticationRequest {\n __typename\n id\n expiresAt\n userCode\n verificationUrl\n}\n \n\n fragment authenticationUserErrorFull on AuthenticationUserError {\n ...userErrorFull\n 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 ";
15165
15606
  export declare const RefreshAuthenticationTokenDocument = "\n mutation refreshAuthenticationToken($refreshToken: Token!) {\n refreshAuthenticationToken(refreshToken: $refreshToken) {\n token {\n ...authenticationTokenFull\n }\n }\n}\n \n fragment authenticationTokenFull on AuthenticationToken {\n __typename\n accessToken\n expiresAt\n refreshToken\n scopes\n}\n ";
15166
15607
  export declare const LogoutDocument = "\n mutation logout {\n logout {\n success\n }\n}\n ";
@@ -15293,7 +15734,7 @@ export declare const UserSettingsDocument = "\n query userSettings {\n viewe
15293
15734
  export declare const WorkflowDocument = "\n query workflow($id: ID!) {\n workflow(id: $id) {\n ...workflowFull\n }\n}\n \n fragment workflowFull on Workflow {\n ...workflowMeta\n definition\n}\n \n\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n ";
15294
15735
  export declare const WorkflowsDocument = "\n query workflows {\n workflows {\n ...workflowFull\n }\n}\n \n fragment workflowFull on Workflow {\n ...workflowMeta\n definition\n}\n \n\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n ";
15295
15736
  export declare const WorkflowNodeDefinitionsDocument = "\n query workflowNodeDefinitions {\n workflowNodeDefinitions {\n ...workflowNodeDefinitionFull\n }\n}\n \n fragment workflowNodeDefinitionFull on WorkflowNodeDefinition {\n __typename\n raw\n}\n ";
15296
- export declare const ReplayEntryDocument = "\n query replayEntry($id: ID!) {\n replayEntry(id: $id) {\n ...replayEntryFull\n }\n}\n \n fragment replayEntryFull on ReplayEntry {\n ...replayEntryMeta\n raw\n settings {\n placeholders {\n ...replayPlaceholderFull\n }\n }\n}\n \n\n fragment replayEntryMeta on ReplayEntry {\n __typename\n id\n error\n connection {\n ...connectionInfoFull\n }\n session {\n id\n }\n request {\n ...requestMeta\n }\n}\n \n\n fragment connectionInfoFull on ConnectionInfo {\n __typename\n host\n port\n isTLS\n SNI\n}\n \n\n fragment requestMeta on Request {\n __typename\n id\n host\n port\n path\n query\n method\n edited\n isTls\n sni\n length\n alteration\n metadata {\n ...requestMetadataFull\n }\n fileExtension\n source\n createdAt\n response {\n ...responseMeta\n }\n}\n \n\n fragment requestMetadataFull on RequestMetadata {\n __typename\n id\n color\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 \n\n fragment replayPlaceholderFull on ReplayPlaceholder {\n __typename\n inputRange {\n ...rangeFull\n }\n outputRange {\n ...rangeFull\n }\n preprocessors {\n ...replayPreprocessorFull\n }\n}\n \n\n fragment rangeFull on Range {\n start\n end\n}\n \n\n fragment replayPreprocessorFull on ReplayPreprocessor {\n __typename\n options {\n ... on ReplayPrefixPreprocessor {\n ...replayPrefixPreprocessorFull\n }\n ... on ReplaySuffixPreprocessor {\n ...replaySuffixPreprocessorFull\n }\n ... on ReplayUrlEncodePreprocessor {\n ...replayUrlEncodePreprocessorFull\n }\n ... on ReplayWorkflowPreprocessor {\n ...replayWorkflowPreprocessorFull\n }\n }\n}\n \n\n fragment replayPrefixPreprocessorFull on ReplayPrefixPreprocessor {\n __typename\n value\n}\n \n\n fragment replaySuffixPreprocessorFull on ReplaySuffixPreprocessor {\n __typename\n value\n}\n \n\n fragment replayUrlEncodePreprocessorFull on ReplayUrlEncodePreprocessor {\n __typename\n charset\n nonAscii\n}\n \n\n fragment replayWorkflowPreprocessorFull on ReplayWorkflowPreprocessor {\n __typename\n id\n}\n ";
15737
+ export declare const ReplayEntryDocument = "\n query replayEntry($id: ID!) {\n replayEntry(id: $id) {\n ...replayEntryFull\n }\n}\n \n fragment replayEntryFull on ReplayEntry {\n ...replayEntryMeta\n raw\n settings {\n placeholders {\n ...replayPlaceholderFull\n }\n }\n}\n \n\n fragment replayEntryMeta on ReplayEntry {\n __typename\n id\n error\n connection {\n ...connectionInfoFull\n }\n session {\n id\n }\n request {\n ...requestMeta\n }\n}\n \n\n fragment connectionInfoFull on ConnectionInfo {\n __typename\n host\n port\n isTLS\n SNI\n}\n \n\n fragment requestMeta on Request {\n __typename\n id\n host\n port\n path\n query\n method\n edited\n isTls\n sni\n length\n alteration\n metadata {\n ...requestMetadataFull\n }\n fileExtension\n source\n createdAt\n response {\n ...responseMeta\n }\n}\n \n\n fragment requestMetadataFull on RequestMetadata {\n __typename\n id\n color\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 \n\n fragment replayPlaceholderFull on ReplayPlaceholder {\n __typename\n inputRange {\n ...rangeFull\n }\n outputRange {\n ...rangeFull\n }\n preprocessors {\n ...replayPreprocessorFull\n }\n}\n \n\n fragment rangeFull on Range {\n start\n end\n}\n \n\n fragment replayPreprocessorFull on ReplayPreprocessor {\n __typename\n options {\n ... on ReplayPrefixPreprocessor {\n ...replayPrefixPreprocessorFull\n }\n ... on ReplaySuffixPreprocessor {\n ...replaySuffixPreprocessorFull\n }\n ... on ReplayUrlEncodePreprocessor {\n ...replayUrlEncodePreprocessorFull\n }\n ... on ReplayWorkflowPreprocessor {\n ...replayWorkflowPreprocessorFull\n }\n ... on ReplayEnvironmentPreprocessor {\n ...replayEnvironmentPreprocessorFull\n }\n }\n}\n \n\n fragment replayPrefixPreprocessorFull on ReplayPrefixPreprocessor {\n __typename\n value\n}\n \n\n fragment replaySuffixPreprocessorFull on ReplaySuffixPreprocessor {\n __typename\n value\n}\n \n\n fragment replayUrlEncodePreprocessorFull on ReplayUrlEncodePreprocessor {\n __typename\n charset\n nonAscii\n}\n \n\n fragment replayWorkflowPreprocessorFull on ReplayWorkflowPreprocessor {\n __typename\n id\n}\n \n\n fragment replayEnvironmentPreprocessorFull on ReplayEnvironmentPreprocessor {\n __typename\n variableName\n}\n ";
15297
15738
  export declare const ActiveReplayEntryBySessionDocument = "\n query activeReplayEntryBySession($sessionId: ID!) {\n replaySession(id: $sessionId) {\n ...replaySessionMeta\n activeEntry {\n ...replayEntryMeta\n }\n }\n}\n \n fragment replaySessionMeta on ReplaySession {\n __typename\n id\n name\n activeEntry {\n ...replayEntryMeta\n }\n collection {\n id\n }\n entries {\n nodes {\n ...replayEntryMeta\n }\n pageInfo {\n ...pageInfoFull\n }\n count {\n ...countFull\n }\n }\n}\n \n\n fragment replayEntryMeta on ReplayEntry {\n __typename\n id\n error\n connection {\n ...connectionInfoFull\n }\n session {\n id\n }\n request {\n ...requestMeta\n }\n}\n \n\n fragment connectionInfoFull on ConnectionInfo {\n __typename\n host\n port\n isTLS\n SNI\n}\n \n\n fragment requestMeta on Request {\n __typename\n id\n host\n port\n path\n query\n method\n edited\n isTls\n sni\n length\n alteration\n metadata {\n ...requestMetadataFull\n }\n fileExtension\n source\n createdAt\n response {\n ...responseMeta\n }\n}\n \n\n fragment requestMetadataFull on RequestMetadata {\n __typename\n id\n color\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 \n\n fragment pageInfoFull on PageInfo {\n __typename\n hasPreviousPage\n hasNextPage\n startCursor\n endCursor\n}\n \n\n fragment countFull on Count {\n __typename\n value\n snapshot\n}\n ";
15298
15739
  export declare const ReplayEntriesBySessionDocument = "\n query replayEntriesBySession($sessionId: ID!) {\n replaySession(id: $sessionId) {\n ...replaySessionMeta\n entries {\n edges {\n cursor\n node {\n ...replayEntryMeta\n }\n }\n pageInfo {\n ...pageInfoFull\n }\n count {\n ...countFull\n }\n }\n }\n}\n \n fragment replaySessionMeta on ReplaySession {\n __typename\n id\n name\n activeEntry {\n ...replayEntryMeta\n }\n collection {\n id\n }\n entries {\n nodes {\n ...replayEntryMeta\n }\n pageInfo {\n ...pageInfoFull\n }\n count {\n ...countFull\n }\n }\n}\n \n\n fragment replayEntryMeta on ReplayEntry {\n __typename\n id\n error\n connection {\n ...connectionInfoFull\n }\n session {\n id\n }\n request {\n ...requestMeta\n }\n}\n \n\n fragment connectionInfoFull on ConnectionInfo {\n __typename\n host\n port\n isTLS\n SNI\n}\n \n\n fragment requestMeta on Request {\n __typename\n id\n host\n port\n path\n query\n method\n edited\n isTls\n sni\n length\n alteration\n metadata {\n ...requestMetadataFull\n }\n fileExtension\n source\n createdAt\n response {\n ...responseMeta\n }\n}\n \n\n fragment requestMetadataFull on RequestMetadata {\n __typename\n id\n color\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 \n\n fragment pageInfoFull on PageInfo {\n __typename\n hasPreviousPage\n hasNextPage\n startCursor\n endCursor\n}\n \n\n fragment countFull on Count {\n __typename\n value\n snapshot\n}\n ";
15299
15740
  export declare const ReplaySessionEntriesDocument = "\n query replaySessionEntries($id: ID!) {\n replaySession(id: $id) {\n activeEntry {\n ...replayEntryMeta\n }\n entries {\n edges {\n cursor\n node {\n ...replayEntryMeta\n }\n }\n pageInfo {\n ...pageInfoFull\n }\n count {\n ...countFull\n }\n }\n }\n}\n \n fragment replayEntryMeta on ReplayEntry {\n __typename\n id\n error\n connection {\n ...connectionInfoFull\n }\n session {\n id\n }\n request {\n ...requestMeta\n }\n}\n \n\n fragment connectionInfoFull on ConnectionInfo {\n __typename\n host\n port\n isTLS\n SNI\n}\n \n\n fragment requestMeta on Request {\n __typename\n id\n host\n port\n path\n query\n method\n edited\n isTls\n sni\n length\n alteration\n metadata {\n ...requestMetadataFull\n }\n fileExtension\n source\n createdAt\n response {\n ...responseMeta\n }\n}\n \n\n fragment requestMetadataFull on RequestMetadata {\n __typename\n id\n color\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 \n\n fragment pageInfoFull on PageInfo {\n __typename\n hasPreviousPage\n hasNextPage\n startCursor\n endCursor\n}\n \n\n fragment countFull on Count {\n __typename\n value\n snapshot\n}\n ";
@@ -15417,6 +15858,17 @@ export declare function getSdk<C>(requester: Requester<C>): {
15417
15858
  createdAutomateSession(variables?: CreatedAutomateSessionSubscriptionVariables, options?: C): AsyncIterable<CreatedAutomateSessionSubscription>;
15418
15859
  updatedAutomateSession(variables?: UpdatedAutomateSessionSubscriptionVariables, options?: C): AsyncIterable<UpdatedAutomateSessionSubscription>;
15419
15860
  deletedAutomateSession(variables?: DeletedAutomateSessionSubscriptionVariables, options?: C): AsyncIterable<DeletedAutomateSessionSubscription>;
15861
+ environment(variables: EnvironmentQueryVariables, options?: C): Promise<EnvironmentQuery>;
15862
+ environments(variables?: EnvironmentsQueryVariables, options?: C): Promise<EnvironmentsQuery>;
15863
+ environmentContext(variables?: EnvironmentContextQueryVariables, options?: C): Promise<EnvironmentContextQuery>;
15864
+ createEnvironment(variables: CreateEnvironmentMutationVariables, options?: C): Promise<CreateEnvironmentMutation>;
15865
+ updateEnvironment(variables: UpdateEnvironmentMutationVariables, options?: C): Promise<UpdateEnvironmentMutation>;
15866
+ deleteEnvironment(variables: DeleteEnvironmentMutationVariables, options?: C): Promise<DeleteEnvironmentMutation>;
15867
+ selectEnvironment(variables?: SelectEnvironmentMutationVariables, options?: C): Promise<SelectEnvironmentMutation>;
15868
+ createdEnvironment(variables?: CreatedEnvironmentSubscriptionVariables, options?: C): AsyncIterable<CreatedEnvironmentSubscription>;
15869
+ updatedEnvironment(variables?: UpdatedEnvironmentSubscriptionVariables, options?: C): AsyncIterable<UpdatedEnvironmentSubscription>;
15870
+ deletedEnvironment(variables?: DeletedEnvironmentSubscriptionVariables, options?: C): AsyncIterable<DeletedEnvironmentSubscription>;
15871
+ updatedEnvironmentContext(variables?: UpdatedEnvironmentContextSubscriptionVariables, options?: C): AsyncIterable<UpdatedEnvironmentContextSubscription>;
15420
15872
  startAuthenticationFlow(variables?: StartAuthenticationFlowMutationVariables, options?: C): Promise<StartAuthenticationFlowMutation>;
15421
15873
  refreshAuthenticationToken(variables: RefreshAuthenticationTokenMutationVariables, options?: C): Promise<RefreshAuthenticationTokenMutation>;
15422
15874
  logout(variables?: LogoutMutationVariables, options?: C): Promise<LogoutMutation>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Utilities to interact with the environment.
3
+ * @category Environment
4
+ */
5
+ export type EnvironmentSDK = {
6
+ /**
7
+ * Get the value of an environment variable.
8
+ * @param name The name of the environment variable.
9
+ * @returns The value of the environment variable.
10
+ */
11
+ getVar: (name: string) => string | undefined;
12
+ };
@@ -17,6 +17,7 @@ import type { HTTPHistorySDK } from "./httpHistory";
17
17
  import type { FilesSDK } from "./files";
18
18
  import type { FiltersSDK } from "./filters";
19
19
  import type { MatchReplaceSDK } from "./matchReplace";
20
+ import type { EnvironmentSDK } from "./environment";
20
21
  export type { CommandContext } from "./commands";
21
22
  export type { MenuItem } from "./menu";
22
23
  export type { ReplayTab, ReplaySession, ReplayCollection } from "./replay";
@@ -105,4 +106,8 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
105
106
  * Utilities to interact with Match and Replace page.
106
107
  */
107
108
  matchReplace: MatchReplaceSDK;
109
+ /**
110
+ * Utilities to interact with the environment.
111
+ */
112
+ env: EnvironmentSDK;
108
113
  };
@@ -19,9 +19,11 @@ export type NavigationSDK = {
19
19
  * @param options Options for the page.
20
20
  * @param options.body The body of the page.
21
21
  * @param options.topbar The topbar of the page.
22
+ * @param options.onEnter The callback to execute when the page is entered.
22
23
  */
23
24
  addPage: (path: string, options: {
24
25
  body: HTMLElement;
25
26
  topbar?: HTMLElement;
27
+ onEnter?: () => void;
26
28
  }) => void;
27
29
  };