@engini/client 0.3.0 → 0.4.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/dist/index.js CHANGED
@@ -780,10 +780,19 @@ var client = createClient(
780
780
  );
781
781
 
782
782
  // src/generated/sdk.gen.ts
783
+ var authWhoAmI = (options) => (options?.client ?? client).get({
784
+ security: [
785
+ { scheme: "bearer", type: "http" },
786
+ { name: "x-api-key", type: "apiKey" }
787
+ ],
788
+ url: "/v1/auth/whoami",
789
+ ...options
790
+ });
783
791
  var solutionsCreateSolution = (options) => (options.client ?? client).post({
784
792
  security: [
785
793
  { scheme: "bearer", type: "http" },
786
- { name: "companytoken", type: "apiKey" }
794
+ { name: "companytoken", type: "apiKey" },
795
+ { name: "x-api-key", type: "apiKey" }
787
796
  ],
788
797
  url: "/v1/solutions/admin",
789
798
  ...options,
@@ -793,14 +802,18 @@ var solutionsCreateSolution = (options) => (options.client ?? client).post({
793
802
  }
794
803
  });
795
804
  var solutionsArchiveSolution = (options) => (options.client ?? client).delete({
796
- security: [{ scheme: "bearer", type: "http" }],
805
+ security: [
806
+ { scheme: "bearer", type: "http" },
807
+ { name: "x-api-key", type: "apiKey" }
808
+ ],
797
809
  url: "/v1/solutions/admin/{slug}",
798
810
  ...options
799
811
  });
800
812
  var solutionsUpdateSolution = (options) => (options.client ?? client).put({
801
813
  security: [
802
814
  { scheme: "bearer", type: "http" },
803
- { name: "companytoken", type: "apiKey" }
815
+ { name: "companytoken", type: "apiKey" },
816
+ { name: "x-api-key", type: "apiKey" }
804
817
  ],
805
818
  url: "/v1/solutions/admin/{slug}",
806
819
  ...options,
@@ -810,14 +823,18 @@ var solutionsUpdateSolution = (options) => (options.client ?? client).put({
810
823
  }
811
824
  });
812
825
  var solutionsPublishSolution = (options) => (options.client ?? client).post({
813
- security: [{ scheme: "bearer", type: "http" }],
826
+ security: [
827
+ { scheme: "bearer", type: "http" },
828
+ { name: "x-api-key", type: "apiKey" }
829
+ ],
814
830
  url: "/v1/solutions/admin/{slug}/publish",
815
831
  ...options
816
832
  });
817
833
  var solutionsBuildManifest = (options) => (options.client ?? client).post({
818
834
  security: [
819
835
  { scheme: "bearer", type: "http" },
820
- { name: "companytoken", type: "apiKey" }
836
+ { name: "companytoken", type: "apiKey" },
837
+ { name: "x-api-key", type: "apiKey" }
821
838
  ],
822
839
  url: "/v1/solutions/admin/build-manifest",
823
840
  ...options,
@@ -827,19 +844,26 @@ var solutionsBuildManifest = (options) => (options.client ?? client).post({
827
844
  }
828
845
  });
829
846
  var solutionsGetPublishedSolutions = (options) => (options?.client ?? client).get({
830
- security: [{ scheme: "bearer", type: "http" }],
847
+ security: [
848
+ { scheme: "bearer", type: "http" },
849
+ { name: "x-api-key", type: "apiKey" }
850
+ ],
831
851
  url: "/v1/solutions",
832
852
  ...options
833
853
  });
834
854
  var solutionsGetSolutionBySlug = (options) => (options.client ?? client).get({
835
- security: [{ scheme: "bearer", type: "http" }],
855
+ security: [
856
+ { scheme: "bearer", type: "http" },
857
+ { name: "x-api-key", type: "apiKey" }
858
+ ],
836
859
  url: "/v1/solutions/{slug}",
837
860
  ...options
838
861
  });
839
862
  var solutionsGetInstallations = (options) => (options?.client ?? client).get({
840
863
  security: [
841
864
  { scheme: "bearer", type: "http" },
842
- { name: "companytoken", type: "apiKey" }
865
+ { name: "companytoken", type: "apiKey" },
866
+ { name: "x-api-key", type: "apiKey" }
843
867
  ],
844
868
  url: "/v1/solutions/installations",
845
869
  ...options
@@ -847,7 +871,8 @@ var solutionsGetInstallations = (options) => (options?.client ?? client).get({
847
871
  var solutionsGetInstallationDetail = (options) => (options.client ?? client).get({
848
872
  security: [
849
873
  { scheme: "bearer", type: "http" },
850
- { name: "companytoken", type: "apiKey" }
874
+ { name: "companytoken", type: "apiKey" },
875
+ { name: "x-api-key", type: "apiKey" }
851
876
  ],
852
877
  url: "/v1/solutions/installations/{id}",
853
878
  ...options
@@ -855,7 +880,8 @@ var solutionsGetInstallationDetail = (options) => (options.client ?? client).get
855
880
  var solutionsGetInstallationResources = (options) => (options.client ?? client).get({
856
881
  security: [
857
882
  { scheme: "bearer", type: "http" },
858
- { name: "companytoken", type: "apiKey" }
883
+ { name: "companytoken", type: "apiKey" },
884
+ { name: "x-api-key", type: "apiKey" }
859
885
  ],
860
886
  url: "/v1/solutions/installations/{id}/resources",
861
887
  ...options
@@ -863,7 +889,8 @@ var solutionsGetInstallationResources = (options) => (options.client ?? client).
863
889
  var solutionsInstallSolution = (options) => (options.client ?? client).post({
864
890
  security: [
865
891
  { scheme: "bearer", type: "http" },
866
- { name: "companytoken", type: "apiKey" }
892
+ { name: "companytoken", type: "apiKey" },
893
+ { name: "x-api-key", type: "apiKey" }
867
894
  ],
868
895
  url: "/v1/solutions/{slug}/install",
869
896
  ...options,
@@ -875,7 +902,8 @@ var solutionsInstallSolution = (options) => (options.client ?? client).post({
875
902
  var solutionsUpdateInstallation = (options) => (options.client ?? client).post({
876
903
  security: [
877
904
  { scheme: "bearer", type: "http" },
878
- { name: "companytoken", type: "apiKey" }
905
+ { name: "companytoken", type: "apiKey" },
906
+ { name: "x-api-key", type: "apiKey" }
879
907
  ],
880
908
  url: "/v1/solutions/installations/{id}/update",
881
909
  ...options,
@@ -887,7 +915,8 @@ var solutionsUpdateInstallation = (options) => (options.client ?? client).post({
887
915
  var solutionsUninstallSolution = (options) => (options.client ?? client).post({
888
916
  security: [
889
917
  { scheme: "bearer", type: "http" },
890
- { name: "companytoken", type: "apiKey" }
918
+ { name: "companytoken", type: "apiKey" },
919
+ { name: "x-api-key", type: "apiKey" }
891
920
  ],
892
921
  url: "/v1/solutions/{slug}/uninstall",
893
922
  ...options,
@@ -897,22 +926,34 @@ var solutionsUninstallSolution = (options) => (options.client ?? client).post({
897
926
  }
898
927
  });
899
928
  var applicationsListApplications = (options) => (options?.client ?? client).get({
900
- security: [{ scheme: "bearer", type: "http" }],
929
+ security: [
930
+ { scheme: "bearer", type: "http" },
931
+ { name: "x-api-key", type: "apiKey" }
932
+ ],
901
933
  url: "/v1/applications",
902
934
  ...options
903
935
  });
904
936
  var applicationsGetApplication = (options) => (options.client ?? client).get({
905
- security: [{ scheme: "bearer", type: "http" }],
937
+ security: [
938
+ { scheme: "bearer", type: "http" },
939
+ { name: "x-api-key", type: "apiKey" }
940
+ ],
906
941
  url: "/v1/applications/{slug}",
907
942
  ...options
908
943
  });
909
944
  var connectionsGetConnections = (options) => (options?.client ?? client).get({
910
- security: [{ scheme: "bearer", type: "http" }],
945
+ security: [
946
+ { scheme: "bearer", type: "http" },
947
+ { name: "x-api-key", type: "apiKey" }
948
+ ],
911
949
  url: "/v1/connections",
912
950
  ...options
913
951
  });
914
952
  var connectionsCreateConnection = (options) => (options.client ?? client).post({
915
- security: [{ scheme: "bearer", type: "http" }],
953
+ security: [
954
+ { scheme: "bearer", type: "http" },
955
+ { name: "x-api-key", type: "apiKey" }
956
+ ],
916
957
  url: "/v1/connections",
917
958
  ...options,
918
959
  headers: {
@@ -921,17 +962,26 @@ var connectionsCreateConnection = (options) => (options.client ?? client).post({
921
962
  }
922
963
  });
923
964
  var connectionsDeleteConnection = (options) => (options.client ?? client).delete({
924
- security: [{ scheme: "bearer", type: "http" }],
965
+ security: [
966
+ { scheme: "bearer", type: "http" },
967
+ { name: "x-api-key", type: "apiKey" }
968
+ ],
925
969
  url: "/v1/connections/{connectionId}",
926
970
  ...options
927
971
  });
928
972
  var connectionsGetConnection = (options) => (options.client ?? client).get({
929
- security: [{ scheme: "bearer", type: "http" }],
973
+ security: [
974
+ { scheme: "bearer", type: "http" },
975
+ { name: "x-api-key", type: "apiKey" }
976
+ ],
930
977
  url: "/v1/connections/{connectionId}",
931
978
  ...options
932
979
  });
933
980
  var connectionsUpdateConnection = (options) => (options.client ?? client).put({
934
- security: [{ scheme: "bearer", type: "http" }],
981
+ security: [
982
+ { scheme: "bearer", type: "http" },
983
+ { name: "x-api-key", type: "apiKey" }
984
+ ],
935
985
  url: "/v1/connections/{connectionId}",
936
986
  ...options,
937
987
  headers: {
@@ -940,22 +990,34 @@ var connectionsUpdateConnection = (options) => (options.client ?? client).put({
940
990
  }
941
991
  });
942
992
  var connectionsGetDefaultConnections = (options) => (options?.client ?? client).get({
943
- security: [{ scheme: "bearer", type: "http" }],
993
+ security: [
994
+ { scheme: "bearer", type: "http" },
995
+ { name: "x-api-key", type: "apiKey" }
996
+ ],
944
997
  url: "/v1/connections/Defaults",
945
998
  ...options
946
999
  });
947
1000
  var connectionsClearDefaultConnection = (options) => (options.client ?? client).delete({
948
- security: [{ scheme: "bearer", type: "http" }],
1001
+ security: [
1002
+ { scheme: "bearer", type: "http" },
1003
+ { name: "x-api-key", type: "apiKey" }
1004
+ ],
949
1005
  url: "/v1/connections/{connectionId}/Default",
950
1006
  ...options
951
1007
  });
952
1008
  var connectionsSetDefaultConnection = (options) => (options.client ?? client).put({
953
- security: [{ scheme: "bearer", type: "http" }],
1009
+ security: [
1010
+ { scheme: "bearer", type: "http" },
1011
+ { name: "x-api-key", type: "apiKey" }
1012
+ ],
954
1013
  url: "/v1/connections/{connectionId}/Default",
955
1014
  ...options
956
1015
  });
957
1016
  var connectionsReplaceConnection = (options) => (options.client ?? client).post({
958
- security: [{ scheme: "bearer", type: "http" }],
1017
+ security: [
1018
+ { scheme: "bearer", type: "http" },
1019
+ { name: "x-api-key", type: "apiKey" }
1020
+ ],
959
1021
  url: "/v1/connections/Replace",
960
1022
  ...options,
961
1023
  headers: {
@@ -964,17 +1026,26 @@ var connectionsReplaceConnection = (options) => (options.client ?? client).post(
964
1026
  }
965
1027
  });
966
1028
  var connectionsRefreshObjects = (options) => (options.client ?? client).post({
967
- security: [{ scheme: "bearer", type: "http" }],
1029
+ security: [
1030
+ { scheme: "bearer", type: "http" },
1031
+ { name: "x-api-key", type: "apiKey" }
1032
+ ],
968
1033
  url: "/v1/connections/{connectionId}/RefreshObjects",
969
1034
  ...options
970
1035
  });
971
1036
  var connectionsGetRefreshStatus = (options) => (options.client ?? client).get({
972
- security: [{ scheme: "bearer", type: "http" }],
1037
+ security: [
1038
+ { scheme: "bearer", type: "http" },
1039
+ { name: "x-api-key", type: "apiKey" }
1040
+ ],
973
1041
  url: "/v1/connections/{connectionId}/RefreshStatus",
974
1042
  ...options
975
1043
  });
976
1044
  var connectionsSelectObjects = (options) => (options.client ?? client).post({
977
- security: [{ scheme: "bearer", type: "http" }],
1045
+ security: [
1046
+ { scheme: "bearer", type: "http" },
1047
+ { name: "x-api-key", type: "apiKey" }
1048
+ ],
978
1049
  url: "/v1/connections/{connectionId}/SelectObjects",
979
1050
  ...options,
980
1051
  headers: {
@@ -983,17 +1054,26 @@ var connectionsSelectObjects = (options) => (options.client ?? client).post({
983
1054
  }
984
1055
  });
985
1056
  var connectionsGetConnectionObjects = (options) => (options.client ?? client).get({
986
- security: [{ scheme: "bearer", type: "http" }],
1057
+ security: [
1058
+ { scheme: "bearer", type: "http" },
1059
+ { name: "x-api-key", type: "apiKey" }
1060
+ ],
987
1061
  url: "/v1/connections/{connectionId}/Objects",
988
1062
  ...options
989
1063
  });
990
1064
  var connectionsCheckConnection = (options) => (options.client ?? client).get({
991
- security: [{ scheme: "bearer", type: "http" }],
1065
+ security: [
1066
+ { scheme: "bearer", type: "http" },
1067
+ { name: "x-api-key", type: "apiKey" }
1068
+ ],
992
1069
  url: "/v1/connections/{connectionId}/Check",
993
1070
  ...options
994
1071
  });
995
1072
  var connectionsGetSignInUrl = (options) => (options.client ?? client).post({
996
- security: [{ scheme: "bearer", type: "http" }],
1073
+ security: [
1074
+ { scheme: "bearer", type: "http" },
1075
+ { name: "x-api-key", type: "apiKey" }
1076
+ ],
997
1077
  url: "/v1/connections/GetSignInUrl",
998
1078
  ...options,
999
1079
  headers: {
@@ -1002,22 +1082,34 @@ var connectionsGetSignInUrl = (options) => (options.client ?? client).post({
1002
1082
  }
1003
1083
  });
1004
1084
  var connectionsGetAccessToken = (options) => (options.client ?? client).get({
1005
- security: [{ scheme: "bearer", type: "http" }],
1085
+ security: [
1086
+ { scheme: "bearer", type: "http" },
1087
+ { name: "x-api-key", type: "apiKey" }
1088
+ ],
1006
1089
  url: "/v1/connections/AccessToken/{state}",
1007
1090
  ...options
1008
1091
  });
1009
1092
  var toolsListTools = (options) => (options?.client ?? client).get({
1010
- security: [{ scheme: "bearer", type: "http" }],
1093
+ security: [
1094
+ { scheme: "bearer", type: "http" },
1095
+ { name: "x-api-key", type: "apiKey" }
1096
+ ],
1011
1097
  url: "/v1/tools",
1012
1098
  ...options
1013
1099
  });
1014
1100
  var toolsGetTool = (options) => (options.client ?? client).get({
1015
- security: [{ scheme: "bearer", type: "http" }],
1101
+ security: [
1102
+ { scheme: "bearer", type: "http" },
1103
+ { name: "x-api-key", type: "apiKey" }
1104
+ ],
1016
1105
  url: "/v1/tools/{toolSlug}",
1017
1106
  ...options
1018
1107
  });
1019
1108
  var toolsExecuteTool = (options) => (options.client ?? client).post({
1020
- security: [{ scheme: "bearer", type: "http" }],
1109
+ security: [
1110
+ { scheme: "bearer", type: "http" },
1111
+ { name: "x-api-key", type: "apiKey" }
1112
+ ],
1021
1113
  url: "/v1/tools/{toolSlug}/execute",
1022
1114
  ...options,
1023
1115
  headers: {
@@ -1026,12 +1118,18 @@ var toolsExecuteTool = (options) => (options.client ?? client).post({
1026
1118
  }
1027
1119
  });
1028
1120
  var toolsetsListToolsets = (options) => (options?.client ?? client).get({
1029
- security: [{ scheme: "bearer", type: "http" }],
1121
+ security: [
1122
+ { scheme: "bearer", type: "http" },
1123
+ { name: "x-api-key", type: "apiKey" }
1124
+ ],
1030
1125
  url: "/v1/toolsets",
1031
1126
  ...options
1032
1127
  });
1033
1128
  var toolsetsCreateToolset = (options) => (options.client ?? client).post({
1034
- security: [{ scheme: "bearer", type: "http" }],
1129
+ security: [
1130
+ { scheme: "bearer", type: "http" },
1131
+ { name: "x-api-key", type: "apiKey" }
1132
+ ],
1035
1133
  url: "/v1/toolsets",
1036
1134
  ...options,
1037
1135
  headers: {
@@ -1040,17 +1138,26 @@ var toolsetsCreateToolset = (options) => (options.client ?? client).post({
1040
1138
  }
1041
1139
  });
1042
1140
  var toolsetsDeleteToolset = (options) => (options.client ?? client).delete({
1043
- security: [{ scheme: "bearer", type: "http" }],
1141
+ security: [
1142
+ { scheme: "bearer", type: "http" },
1143
+ { name: "x-api-key", type: "apiKey" }
1144
+ ],
1044
1145
  url: "/v1/toolsets/{toolsetId}",
1045
1146
  ...options
1046
1147
  });
1047
1148
  var toolsetsGetToolset = (options) => (options.client ?? client).get({
1048
- security: [{ scheme: "bearer", type: "http" }],
1149
+ security: [
1150
+ { scheme: "bearer", type: "http" },
1151
+ { name: "x-api-key", type: "apiKey" }
1152
+ ],
1049
1153
  url: "/v1/toolsets/{toolsetId}",
1050
1154
  ...options
1051
1155
  });
1052
1156
  var toolsetsUpdateToolset = (options) => (options.client ?? client).patch({
1053
- security: [{ scheme: "bearer", type: "http" }],
1157
+ security: [
1158
+ { scheme: "bearer", type: "http" },
1159
+ { name: "x-api-key", type: "apiKey" }
1160
+ ],
1054
1161
  url: "/v1/toolsets/{toolsetId}",
1055
1162
  ...options,
1056
1163
  headers: {
@@ -1069,6 +1176,6 @@ function createEnginiClient(options) {
1069
1176
  );
1070
1177
  }
1071
1178
 
1072
- export { applicationsGetApplication, applicationsListApplications, connectionsCheckConnection, connectionsClearDefaultConnection, connectionsCreateConnection, connectionsDeleteConnection, connectionsGetAccessToken, connectionsGetConnection, connectionsGetConnectionObjects, connectionsGetConnections, connectionsGetDefaultConnections, connectionsGetRefreshStatus, connectionsGetSignInUrl, connectionsRefreshObjects, connectionsReplaceConnection, connectionsSelectObjects, connectionsSetDefaultConnection, connectionsUpdateConnection, createEnginiClient, solutionsArchiveSolution, solutionsBuildManifest, solutionsCreateSolution, solutionsGetInstallationDetail, solutionsGetInstallationResources, solutionsGetInstallations, solutionsGetPublishedSolutions, solutionsGetSolutionBySlug, solutionsInstallSolution, solutionsPublishSolution, solutionsUninstallSolution, solutionsUpdateInstallation, solutionsUpdateSolution, toolsExecuteTool, toolsGetTool, toolsListTools, toolsetsCreateToolset, toolsetsDeleteToolset, toolsetsGetToolset, toolsetsListToolsets, toolsetsUpdateToolset };
1179
+ export { applicationsGetApplication, applicationsListApplications, authWhoAmI, connectionsCheckConnection, connectionsClearDefaultConnection, connectionsCreateConnection, connectionsDeleteConnection, connectionsGetAccessToken, connectionsGetConnection, connectionsGetConnectionObjects, connectionsGetConnections, connectionsGetDefaultConnections, connectionsGetRefreshStatus, connectionsGetSignInUrl, connectionsRefreshObjects, connectionsReplaceConnection, connectionsSelectObjects, connectionsSetDefaultConnection, connectionsUpdateConnection, createEnginiClient, solutionsArchiveSolution, solutionsBuildManifest, solutionsCreateSolution, solutionsGetInstallationDetail, solutionsGetInstallationResources, solutionsGetInstallations, solutionsGetPublishedSolutions, solutionsGetSolutionBySlug, solutionsInstallSolution, solutionsPublishSolution, solutionsUninstallSolution, solutionsUpdateInstallation, solutionsUpdateSolution, toolsExecuteTool, toolsGetTool, toolsListTools, toolsetsCreateToolset, toolsetsDeleteToolset, toolsetsGetToolset, toolsetsListToolsets, toolsetsUpdateToolset };
1073
1180
  //# sourceMappingURL=index.js.map
1074
1181
  //# sourceMappingURL=index.js.map