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