@engini/client 0.4.0 → 0.5.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Engini AI Ltd.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @engini/client
2
+
3
+ Autogenerated TypeScript REST client for the [Engini](https://engini.io) Public API
4
+ ("DeveloperAPI", `/v1`) — native `fetch`, zero runtime deps, dual ESM + CJS.
5
+
6
+ This is the **base client layer** of Engini's two-package SDK stack. For an ergonomic,
7
+ agent-first interface (typed errors, retry/backoff, auto-pagination, LLM tool wrapping), use
8
+ the higher-level [`@engini/sdk`](https://www.npmjs.com/package/@engini/sdk) that's built on top
9
+ of this.
10
+
11
+ > The code under `src/generated/` is generated from an OpenAPI spec and committed — it is not
12
+ > hand-edited. See the [repository](https://github.com/engini/engini-client) to regenerate.
13
+
14
+ ## Install
15
+
16
+ ```bash
17
+ npm install @engini/client
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```ts
23
+ import { createEnginiClient, connectionsGetConnections } from "@engini/client";
24
+
25
+ const client = createEnginiClient({
26
+ baseUrl: "https://api.engini.io", // requests append /v1/...
27
+ token: "<JWT>", // → Authorization: Bearer <JWT>
28
+ });
29
+ const res = await connectionsGetConnections({ client });
30
+ ```
31
+
32
+ Source & docs: <https://github.com/engini/engini-client>
package/dist/index.cjs CHANGED
@@ -778,7 +778,7 @@ var createClient = (config = {}) => {
778
778
 
779
779
  // src/generated/client.gen.ts
780
780
  var client = createClient(
781
- createConfig({ baseUrl: "https://feat-public-api.staging.engini.io/api" })
781
+ createConfig({ baseUrl: "https://api.staging.engini.io" })
782
782
  );
783
783
 
784
784
  // src/generated/sdk.gen.ts
@@ -996,7 +996,7 @@ var connectionsGetDefaultConnections = (options) => (options?.client ?? client).
996
996
  { scheme: "bearer", type: "http" },
997
997
  { name: "x-api-key", type: "apiKey" }
998
998
  ],
999
- url: "/v1/connections/Defaults",
999
+ url: "/v1/connections/defaults",
1000
1000
  ...options
1001
1001
  });
1002
1002
  var connectionsClearDefaultConnection = (options) => (options.client ?? client).delete({
@@ -1004,7 +1004,7 @@ var connectionsClearDefaultConnection = (options) => (options.client ?? client).
1004
1004
  { scheme: "bearer", type: "http" },
1005
1005
  { name: "x-api-key", type: "apiKey" }
1006
1006
  ],
1007
- url: "/v1/connections/{connectionId}/Default",
1007
+ url: "/v1/connections/{connectionId}/default",
1008
1008
  ...options
1009
1009
  });
1010
1010
  var connectionsSetDefaultConnection = (options) => (options.client ?? client).put({
@@ -1012,7 +1012,7 @@ var connectionsSetDefaultConnection = (options) => (options.client ?? client).pu
1012
1012
  { scheme: "bearer", type: "http" },
1013
1013
  { name: "x-api-key", type: "apiKey" }
1014
1014
  ],
1015
- url: "/v1/connections/{connectionId}/Default",
1015
+ url: "/v1/connections/{connectionId}/default",
1016
1016
  ...options
1017
1017
  });
1018
1018
  var connectionsReplaceConnection = (options) => (options.client ?? client).post({
@@ -1020,7 +1020,7 @@ var connectionsReplaceConnection = (options) => (options.client ?? client).post(
1020
1020
  { scheme: "bearer", type: "http" },
1021
1021
  { name: "x-api-key", type: "apiKey" }
1022
1022
  ],
1023
- url: "/v1/connections/Replace",
1023
+ url: "/v1/connections/replace",
1024
1024
  ...options,
1025
1025
  headers: {
1026
1026
  "Content-Type": "application/json",
@@ -1032,7 +1032,7 @@ var connectionsRefreshObjects = (options) => (options.client ?? client).post({
1032
1032
  { scheme: "bearer", type: "http" },
1033
1033
  { name: "x-api-key", type: "apiKey" }
1034
1034
  ],
1035
- url: "/v1/connections/{connectionId}/RefreshObjects",
1035
+ url: "/v1/connections/{connectionId}/refresh-objects",
1036
1036
  ...options
1037
1037
  });
1038
1038
  var connectionsGetRefreshStatus = (options) => (options.client ?? client).get({
@@ -1040,7 +1040,7 @@ var connectionsGetRefreshStatus = (options) => (options.client ?? client).get({
1040
1040
  { scheme: "bearer", type: "http" },
1041
1041
  { name: "x-api-key", type: "apiKey" }
1042
1042
  ],
1043
- url: "/v1/connections/{connectionId}/RefreshStatus",
1043
+ url: "/v1/connections/{connectionId}/refresh-status",
1044
1044
  ...options
1045
1045
  });
1046
1046
  var connectionsSelectObjects = (options) => (options.client ?? client).post({
@@ -1048,7 +1048,7 @@ var connectionsSelectObjects = (options) => (options.client ?? client).post({
1048
1048
  { scheme: "bearer", type: "http" },
1049
1049
  { name: "x-api-key", type: "apiKey" }
1050
1050
  ],
1051
- url: "/v1/connections/{connectionId}/SelectObjects",
1051
+ url: "/v1/connections/{connectionId}/select-objects",
1052
1052
  ...options,
1053
1053
  headers: {
1054
1054
  "Content-Type": "application/json",
@@ -1060,7 +1060,7 @@ var connectionsGetConnectionObjects = (options) => (options.client ?? client).ge
1060
1060
  { scheme: "bearer", type: "http" },
1061
1061
  { name: "x-api-key", type: "apiKey" }
1062
1062
  ],
1063
- url: "/v1/connections/{connectionId}/Objects",
1063
+ url: "/v1/connections/{connectionId}/objects",
1064
1064
  ...options
1065
1065
  });
1066
1066
  var connectionsCheckConnection = (options) => (options.client ?? client).get({
@@ -1068,7 +1068,7 @@ var connectionsCheckConnection = (options) => (options.client ?? client).get({
1068
1068
  { scheme: "bearer", type: "http" },
1069
1069
  { name: "x-api-key", type: "apiKey" }
1070
1070
  ],
1071
- url: "/v1/connections/{connectionId}/Check",
1071
+ url: "/v1/connections/{connectionId}/check",
1072
1072
  ...options
1073
1073
  });
1074
1074
  var connectionsGetSignInUrl = (options) => (options.client ?? client).post({
@@ -1076,7 +1076,7 @@ var connectionsGetSignInUrl = (options) => (options.client ?? client).post({
1076
1076
  { scheme: "bearer", type: "http" },
1077
1077
  { name: "x-api-key", type: "apiKey" }
1078
1078
  ],
1079
- url: "/v1/connections/GetSignInUrl",
1079
+ url: "/v1/connections/get-sign-in-url",
1080
1080
  ...options,
1081
1081
  headers: {
1082
1082
  "Content-Type": "application/json",
@@ -1088,7 +1088,7 @@ var connectionsGetAccessToken = (options) => (options.client ?? client).get({
1088
1088
  { scheme: "bearer", type: "http" },
1089
1089
  { name: "x-api-key", type: "apiKey" }
1090
1090
  ],
1091
- url: "/v1/connections/AccessToken/{state}",
1091
+ url: "/v1/connections/access-token/{state}",
1092
1092
  ...options
1093
1093
  });
1094
1094
  var toolsListTools = (options) => (options?.client ?? client).get({