@engini/sdk 0.23.0 → 0.24.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.d.ts +1 -1
- package/dist/resources/connections.d.ts +2 -1
- package/dist/types.d.ts +19 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { Toolset } from "./toolset.js";
|
|
|
13
13
|
export type { ConnectionBinding, ToolsetExecuteOptions } from "./toolset.js";
|
|
14
14
|
export { File } from "./files.js";
|
|
15
15
|
export type { FileWire } from "./files.js";
|
|
16
|
-
export type { ToolSchema, Filter, Sort, ToolExecuteResult, Application, ApplicationDetail, Connection, ConnectionDetail, ConnectionObject, WhoAmI, } from "./types.js";
|
|
16
|
+
export type { ToolSchema, Filter, Sort, ToolExecuteResult, Application, ApplicationDetail, Connection, ConnectionDetail, ConnectionObject, WhoAmI, AccessTokenResponse, } from "./types.js";
|
|
17
17
|
export type { ToolsetConnectionDto, ToolsetConnectionRequest, ToolsetDto } from "@engini/client";
|
|
18
18
|
export type { OpaAgentListItem, OpaAgentDetail, OpaAgentSettings, OpaAgentTokenResponse, OpaAgentCreateResponse, OpaReleaseManifest, CreateOpaAgentRequest, UpdateOpaAgentRequest, } from "@engini/client";
|
|
19
19
|
export type { TriggerTypeDto, TriggerTypeDetailDto, TriggerParametersDto, TriggerInstanceView, TriggerInstanceStatus, TriggerKind, TriggerStatusReason, TriggerScheduleDto, TriggerScheduleFrequency, TriggerTimeFrameDto, TriggerEventView, TriggerEventDetailView, TriggerEventDeliveryStateDto, TriggerDeliveryAttemptView, TriggerDestinationView, TriggerDestinationCreated, TriggerDestinationStatusDto, CreateTriggerRequest, PatchTriggerRequest, CreateTriggerDestinationRequest, PatchTriggerDestinationRequest, PutDefaultDestinationRequest, } from "@engini/client";
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* `waitForRefresh` poll helper) that backs the interactive `engini connect` CLI.
|
|
5
5
|
* See `docs/superpowers/specs/2026-06-18-cli-connect-flow-design.md`.
|
|
6
6
|
*/
|
|
7
|
-
import { type ConnectionObject, type ConnectionReplaceResult, type ConnectionPublicDetail, type ConnectionPublicListItem, type DefaultConnectionDto, type
|
|
7
|
+
import { type ConnectionObject, type ConnectionReplaceResult, type ConnectionPublicDetail, type ConnectionPublicListItem, type DefaultConnectionDto, type RefreshStatusResponse, type SignInUrlResponse } from "@engini/client";
|
|
8
8
|
import { type Transport } from "../http.js";
|
|
9
|
+
import type { AccessTokenResponse } from "../types.js";
|
|
9
10
|
/**
|
|
10
11
|
* Whether a refresh status is terminal (finished, error, or otherwise not running).
|
|
11
12
|
* Unknown descriptions count as terminal — erring that way avoids hanging on a
|
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Canonical, provider-agnostic tool schema and execution result types.
|
|
3
3
|
* Bound to the autogen `@engini/client` models — the SDK's public surface.
|
|
4
4
|
*/
|
|
5
|
-
import type { ToolDetailDto, ActivityCondition, ActivitySort, ApplicationDto, ApplicationDetailDto, ConnectionPublicListItem, ConnectionPublicDetail, ConnectionObject as ConnectionObjectModel, WhoAmIResponse } from "@engini/client";
|
|
5
|
+
import type { ToolDetailDto, ActivityCondition, ActivitySort, ApplicationDto, ApplicationDetailDto, ConnectionPublicListItem, ConnectionPublicDetail, ConnectionObject as ConnectionObjectModel, WhoAmIResponse, AccessTokenResponse as ClientAccessTokenResponse } from "@engini/client";
|
|
6
6
|
/** Canonical tool schema (== client `ToolDetailDto`; carries `inputSchema` + `supports*`). */
|
|
7
7
|
export type ToolSchema = ToolDetailDto;
|
|
8
8
|
/** A connector application summary (== client `ApplicationDto`). */
|
|
@@ -17,6 +17,24 @@ export type ConnectionDetail = ConnectionPublicDetail;
|
|
|
17
17
|
export type ConnectionObject = ConnectionObjectModel;
|
|
18
18
|
/** Authenticated caller identity (== client `WhoAmIResponse`). */
|
|
19
19
|
export type WhoAmI = WhoAmIResponse;
|
|
20
|
+
/**
|
|
21
|
+
* Access-token poll response, incl. `fieldOptions` — legal values for a declared
|
|
22
|
+
* connection field discovered from the signed-in org on the terminal poll of the
|
|
23
|
+
* OAuth sign-in (WorkflowApi #1401), shaped `{ [fieldName]: { [valueToSave]: labelToShow } }`.
|
|
24
|
+
* e.g. Salesforce's `ApiVersionUrl` -> `{ "/services/data/v60.0": "60.0" }` — the KEY is
|
|
25
|
+
* the value a `create`/`update` must send, the VALUE is only a display label; getting
|
|
26
|
+
* that backwards saves exactly the broken connection this feature exists to prevent.
|
|
27
|
+
*
|
|
28
|
+
* `@engini/client`'s generated `AccessTokenResponse` now declares `fieldOptions` itself
|
|
29
|
+
* (required, non-null — the C# DTO is `= new()`), so this is a straight re-export, not
|
|
30
|
+
* a local intersection. That non-nullability is deliberate, not an oversight: the merged
|
|
31
|
+
* server (`ConnectionsController.cs`, terminal poll) maps a failed/empty lookup to `{}`
|
|
32
|
+
* explicitly, so **absent is the only signal of an older server** (one that predates
|
|
33
|
+
* WorkflowApi #1401); `{}` means the lookup ran and found no options, same as "the field
|
|
34
|
+
* genuinely has none". A failed lookup is indistinguishable from "no options" once it's
|
|
35
|
+
* on the wire (logged server-side, not surfaced here) - same as it is from absent.
|
|
36
|
+
*/
|
|
37
|
+
export type AccessTokenResponse = ClientAccessTokenResponse;
|
|
20
38
|
/** Execute-time filter condition (gated by `supportsFilters`). */
|
|
21
39
|
export type Filter = ActivityCondition;
|
|
22
40
|
/** Execute-time sort directive (gated by `supportsSort`). */
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@engini/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Engini SDK — agent-first ergonomic layer over the Engini Public API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"test": "vitest run"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@engini/client": "0.
|
|
30
|
+
"@engini/client": "0.11.0",
|
|
31
31
|
"undici": "^6.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|