@akai-workflow-builder/cli-sdk 0.2.1 → 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/CHANGELOG.md +20 -0
- package/dist/define-cli.d.ts.map +1 -1
- package/dist/define-cli.js +2 -0
- package/dist/define-connection.d.ts.map +1 -1
- package/dist/define-connection.js +2 -0
- package/dist/runtime/execute-request.d.ts +25 -0
- package/dist/runtime/execute-request.d.ts.map +1 -0
- package/dist/runtime/execute-request.js +36 -0
- package/dist/runtime/executor/classify-error.d.ts +11 -0
- package/dist/runtime/executor/classify-error.d.ts.map +1 -0
- package/dist/runtime/executor/classify-error.js +162 -0
- package/dist/runtime/executor/image-compress.d.ts +26 -0
- package/dist/runtime/executor/image-compress.d.ts.map +1 -0
- package/dist/runtime/executor/image-compress.js +202 -0
- package/dist/runtime/executor/index.d.ts +54 -0
- package/dist/runtime/executor/index.d.ts.map +1 -0
- package/dist/runtime/executor/index.js +418 -0
- package/dist/runtime/executor/redact.d.ts +9 -0
- package/dist/runtime/executor/redact.d.ts.map +1 -0
- package/dist/runtime/executor/redact.js +23 -0
- package/dist/runtime/index.d.ts +15 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +13 -0
- package/dist/runtime/registry/index.d.ts +5 -0
- package/dist/runtime/registry/index.d.ts.map +1 -0
- package/dist/runtime/registry/index.js +1 -0
- package/dist/runtime/registry/loader.d.ts +42 -0
- package/dist/runtime/registry/loader.d.ts.map +1 -0
- package/dist/runtime/registry/loader.js +621 -0
- package/dist/runtime/registry/types.d.ts +252 -0
- package/dist/runtime/registry/types.d.ts.map +1 -0
- package/dist/runtime/registry/types.js +1 -0
- package/dist/runtime/registry/wire.d.ts +152 -0
- package/dist/runtime/registry/wire.d.ts.map +1 -0
- package/dist/runtime/registry/wire.js +299 -0
- package/dist/types.d.ts +20 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +24 -3
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal types mirroring the SDK contract for the bits the registry
|
|
3
|
+
* inspects. Keeping the loader free of an SDK runtime dependency —
|
|
4
|
+
* the brand markers (`__akaiCLI`, `__akaiTool`) are the source of truth at
|
|
5
|
+
* boot, not nominal types.
|
|
6
|
+
*
|
|
7
|
+
* When the SDK lands as a runtime dependency in a later phase (e.g. for
|
|
8
|
+
* Phase 9's `buildCtx`), these shapes will narrow to imports of `CLIDef` /
|
|
9
|
+
* `AnyToolDef` from the SDK; until then we hold the contract here.
|
|
10
|
+
*/
|
|
11
|
+
import type { DynamicEgress } from '../../types.js';
|
|
12
|
+
export interface BrandedSecretDecl {
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly description: string;
|
|
15
|
+
readonly required: boolean;
|
|
16
|
+
readonly key: string;
|
|
17
|
+
readonly adminManaged?: boolean;
|
|
18
|
+
/** Host-supplied per session (e.g. an access token the runtime injects) rather than
|
|
19
|
+
* pasted by the user. Surfaced on the wire so the host doesn't treat it as a
|
|
20
|
+
* user-connectable credential. */
|
|
21
|
+
readonly injected?: boolean;
|
|
22
|
+
/** Server-only credential (e.g. a `jwtRefresh` refresh token) — rotated host-side, never shipped
|
|
23
|
+
* to the worker as a user credential. */
|
|
24
|
+
readonly serverOnly?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** Non-sensitive tenant property (base URL, region, environment) — the value
|
|
27
|
+
* is stored unencrypted by akai-app and resolved into `ctx.properties` at
|
|
28
|
+
* execute time. `options` constrains it to a fixed set (UI renders a select);
|
|
29
|
+
* `adminManaged` surfaces it in the Admin tab only. */
|
|
30
|
+
export interface BrandedPropertyDecl {
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly description: string;
|
|
33
|
+
readonly required: boolean;
|
|
34
|
+
readonly key: string;
|
|
35
|
+
readonly options?: readonly string[];
|
|
36
|
+
readonly adminManaged?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface HttpToolOptions {
|
|
39
|
+
readonly network: {
|
|
40
|
+
readonly egress: readonly string[] | DynamicEgress;
|
|
41
|
+
};
|
|
42
|
+
readonly secretKeys: readonly string[];
|
|
43
|
+
/** Property keys this tool reads at runtime (resolved into `ctx.properties`). Absent on older packages = []. */
|
|
44
|
+
readonly propertyKeys?: readonly string[];
|
|
45
|
+
readonly isReadonly: boolean;
|
|
46
|
+
/** True when the tool emits output files via `ctx.writeFile`. Absent = false. */
|
|
47
|
+
readonly producesFiles?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface NativeToolOptions {
|
|
50
|
+
readonly network?: undefined;
|
|
51
|
+
readonly secretKeys: readonly string[];
|
|
52
|
+
/** Property keys this tool reads at runtime (resolved into `ctx.properties`). Absent on older packages = []. */
|
|
53
|
+
readonly propertyKeys?: readonly string[];
|
|
54
|
+
readonly isReadonly: boolean;
|
|
55
|
+
/** True when the tool emits output files via `ctx.writeFile`. Absent = false. */
|
|
56
|
+
readonly producesFiles?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export type BrandedToolOptions = HttpToolOptions | NativeToolOptions;
|
|
59
|
+
interface BrandedToolBase {
|
|
60
|
+
readonly __akaiTool: true;
|
|
61
|
+
readonly description?: string;
|
|
62
|
+
readonly handler: (args: {
|
|
63
|
+
input: unknown;
|
|
64
|
+
ctx: unknown;
|
|
65
|
+
isJson: boolean;
|
|
66
|
+
}) => Promise<unknown>;
|
|
67
|
+
readonly input: unknown;
|
|
68
|
+
readonly jsonOutput?: unknown;
|
|
69
|
+
}
|
|
70
|
+
export interface HttpBrandedTool extends BrandedToolBase {
|
|
71
|
+
readonly transport?: 'http';
|
|
72
|
+
readonly options: HttpToolOptions;
|
|
73
|
+
}
|
|
74
|
+
export interface NativeBrandedTool extends BrandedToolBase {
|
|
75
|
+
readonly transport: 'native';
|
|
76
|
+
readonly options: NativeToolOptions;
|
|
77
|
+
}
|
|
78
|
+
export type BrandedTool = HttpBrandedTool | NativeBrandedTool;
|
|
79
|
+
export interface BrandedCLI {
|
|
80
|
+
readonly __akaiCLI: true;
|
|
81
|
+
readonly id: string;
|
|
82
|
+
readonly name: string;
|
|
83
|
+
readonly vendor: string;
|
|
84
|
+
readonly summary: string;
|
|
85
|
+
readonly description?: string;
|
|
86
|
+
readonly instructions: readonly string[];
|
|
87
|
+
readonly secrets: readonly BrandedSecretDecl[];
|
|
88
|
+
/** Non-sensitive tenant properties declared at the CLI level. Absent on older packages = []. */
|
|
89
|
+
readonly properties?: readonly BrandedPropertyDecl[];
|
|
90
|
+
/** Connection slug grouping CLIs that share one logical connection (e.g. gmail + gsheet → 'google'). Absent ⇒ the cli's own `id` is the slug. */
|
|
91
|
+
readonly connectionSlug?: string;
|
|
92
|
+
/** OAuth scope URIs the CLI's tools need; the host unions these across the connection group. */
|
|
93
|
+
readonly vendorScopes?: readonly string[];
|
|
94
|
+
/** Opt-in cross-repo override: when a customer package sets this, its CLI id
|
|
95
|
+
* intentionally REPLACES a colliding baseline one instead of being dropped.
|
|
96
|
+
* Absent/false ⇒ the safe default (first definition wins, baseline beats an
|
|
97
|
+
* accidental collision). Authored via `defineCLI({ override: true })`. */
|
|
98
|
+
readonly override?: boolean;
|
|
99
|
+
readonly tools: Readonly<Record<string, BrandedTool>>;
|
|
100
|
+
}
|
|
101
|
+
/** The auth kind a connection declares — WHAT auth, never the glue. */
|
|
102
|
+
export type ConnectionAuthKind = 'apiKey' | 'oauth2' | 'none';
|
|
103
|
+
/** Client-auth method on the OAuth token exchange. */
|
|
104
|
+
export type ConnectionTokenEndpointAuthMethod = 'client_secret_post' | 'client_secret_basic';
|
|
105
|
+
/** How akai-app keeps the access token fresh once the connection is live. The two values the akai-app engine branches on. */
|
|
106
|
+
export type ConnectionRefreshStrategy = 'cron' | 'jit';
|
|
107
|
+
/** One OAuth-app credential an admin enters once per tenant (e.g. the client id/secret). Shape only — the VALUE lives in akai-app. */
|
|
108
|
+
export interface BrandedOAuthAdminField {
|
|
109
|
+
readonly key: string;
|
|
110
|
+
readonly label: string;
|
|
111
|
+
readonly secret?: boolean;
|
|
112
|
+
}
|
|
113
|
+
/** The OAuth SHAPE a connection declares. Secret VALUES never appear here — they stay in akai-app keyed by slug. */
|
|
114
|
+
export interface BrandedConnectionOAuth {
|
|
115
|
+
readonly authorizeUrl: string;
|
|
116
|
+
readonly tokenUrl: string;
|
|
117
|
+
/** OAuth authorize scope set the connection requests; the akai-app engine joins these onto the authorize URL. Optional — the wire serializer defaults a missing list to []. */
|
|
118
|
+
readonly scopes?: readonly string[];
|
|
119
|
+
readonly pkce?: boolean;
|
|
120
|
+
readonly tokenEndpointAuthMethod?: ConnectionTokenEndpointAuthMethod;
|
|
121
|
+
readonly extraAuthorizeParams?: Record<string, string>;
|
|
122
|
+
readonly refreshStrategy?: ConnectionRefreshStrategy;
|
|
123
|
+
readonly adminFields: readonly BrandedOAuthAdminField[];
|
|
124
|
+
readonly hasCustomConnectFlow?: boolean;
|
|
125
|
+
readonly tokenResponsePath?: string;
|
|
126
|
+
/** Client-credentials app-token mint spec; akai-app mints + injects it as ctx.appToken. */
|
|
127
|
+
readonly appToken?: {
|
|
128
|
+
readonly tokenUrl: string;
|
|
129
|
+
readonly requestStyle?: 'oauth2_client_credentials' | 'json';
|
|
130
|
+
readonly credentialParams?: {
|
|
131
|
+
readonly id: string;
|
|
132
|
+
readonly secret: string;
|
|
133
|
+
};
|
|
134
|
+
readonly tokenField?: string;
|
|
135
|
+
readonly expiresField?: string;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* A built connection — the umbrella identity grouping CLIs that share one auth
|
|
140
|
+
* surface (e.g. `google` groups gmail + gsheet). Mirrors the SDK's
|
|
141
|
+
* `ConnectionDef`; held here so the loader stays free of an SDK runtime
|
|
142
|
+
* dependency. The `__akaiConnection` brand is the contract at boot.
|
|
143
|
+
*/
|
|
144
|
+
export interface BrandedConnection {
|
|
145
|
+
readonly __akaiConnection: true;
|
|
146
|
+
readonly slug: string;
|
|
147
|
+
readonly name: string;
|
|
148
|
+
readonly vendor: string;
|
|
149
|
+
readonly blurb: string;
|
|
150
|
+
readonly longDesc: string;
|
|
151
|
+
readonly instructions: readonly string[];
|
|
152
|
+
/** User-facing secret declarations for this connection's credentials. SHAPE
|
|
153
|
+
* only — the VALUEs live in akai-app keyed by slug. Mirrors the SDK
|
|
154
|
+
* `ConnectionDef.secrets`; absent on older (0.1.14-era) connection packages. */
|
|
155
|
+
readonly secrets?: readonly BrandedSecretDecl[];
|
|
156
|
+
/** Header carrying the apiKey credential (e.g. `Authorization` ⇒ `Bearer <token>`,
|
|
157
|
+
* any other header ⇒ raw token). Only meaningful for `authKind` `apiKey`. */
|
|
158
|
+
readonly apiKeyHeader?: string;
|
|
159
|
+
/** Per-environment host map for the connection's API. */
|
|
160
|
+
readonly hosts?: {
|
|
161
|
+
readonly production?: string;
|
|
162
|
+
readonly demo?: string;
|
|
163
|
+
readonly dev?: string;
|
|
164
|
+
};
|
|
165
|
+
readonly authKind: ConnectionAuthKind;
|
|
166
|
+
/** Present iff `authKind` is `oauth2`. SHAPE only — never secret values. */
|
|
167
|
+
readonly oauth?: BrandedConnectionOAuth;
|
|
168
|
+
/** Declarative background JWT-refresh config for a non-OAuth connection. SHAPE only — the HTTP
|
|
169
|
+
* exchange stays host-side, keyed by slug. Mirrors the SDK `ConnectionDef.jwtRefresh`. */
|
|
170
|
+
readonly jwtRefresh?: BrandedJwtRefresh;
|
|
171
|
+
/** Governance: auto-resolves without a user credential (no secrets + native transport) — a FACT
|
|
172
|
+
* about the connection's auth model, not host policy. Deel-internal tenancy and reserved-UI
|
|
173
|
+
* hiding are akai-app concerns and are NOT modeled here (cli-service stays vendor-agnostic). */
|
|
174
|
+
readonly nativeBuiltin?: boolean;
|
|
175
|
+
/** Opt-in cross-repo override: when a customer connection sets this, its slug
|
|
176
|
+
* intentionally REPLACES a colliding baseline one instead of being dropped.
|
|
177
|
+
* Absent/false ⇒ the safe default (first definition wins). Authored via
|
|
178
|
+
* `defineConnection({ override: true })`. */
|
|
179
|
+
readonly override?: boolean;
|
|
180
|
+
}
|
|
181
|
+
/** Declarative JWT-refresh config (mirrors the SDK `JwtRefreshSpec`) — token rows + endpoints +
|
|
182
|
+
* timing the host's generic refresher drives. No secret VALUES; the exchange stays host-side. */
|
|
183
|
+
export interface BrandedJwtRefresh {
|
|
184
|
+
readonly name: string;
|
|
185
|
+
readonly envs: readonly {
|
|
186
|
+
readonly env: string;
|
|
187
|
+
readonly accessKey: string;
|
|
188
|
+
readonly refreshKey: string;
|
|
189
|
+
readonly refreshUrl: string;
|
|
190
|
+
}[];
|
|
191
|
+
readonly defaultAtTtlMs?: number;
|
|
192
|
+
readonly revocationBackoffMs?: number;
|
|
193
|
+
readonly claimTtlSeconds?: number;
|
|
194
|
+
}
|
|
195
|
+
/** Where a CLI's package was loaded from. Both sources are first-class at lookup. */
|
|
196
|
+
export type RegistrySource = 'baseline' | 'customer';
|
|
197
|
+
export interface RegistryEntry {
|
|
198
|
+
readonly cli: BrandedCLI;
|
|
199
|
+
readonly source: RegistrySource;
|
|
200
|
+
/** Absolute path to the package directory the CLI was loaded from. */
|
|
201
|
+
readonly packagePath: string;
|
|
202
|
+
}
|
|
203
|
+
export interface ConnectionEntry {
|
|
204
|
+
readonly connection: BrandedConnection;
|
|
205
|
+
readonly source: RegistrySource;
|
|
206
|
+
/** Absolute path to the package directory the connection was loaded from. */
|
|
207
|
+
readonly packagePath: string;
|
|
208
|
+
}
|
|
209
|
+
export interface ToolLookup {
|
|
210
|
+
readonly cli: BrandedCLI;
|
|
211
|
+
readonly toolKey: string;
|
|
212
|
+
readonly tool: BrandedTool;
|
|
213
|
+
readonly source: RegistrySource;
|
|
214
|
+
}
|
|
215
|
+
/** A package the loader skipped — recorded so the catalog view stays explicit
|
|
216
|
+
* ("these loaded, these are unavailable: <reason>"). Two causes:
|
|
217
|
+
* - `load-error`: the package failed the brand/shape check at import. Only
|
|
218
|
+
* customer packages reach here; a malformed baseline package fails boot.
|
|
219
|
+
* - `duplicate`: the package's CLI id / connection slug collided with an
|
|
220
|
+
* already-loaded one and lost (first-definition-wins). Either source can be
|
|
221
|
+
* the dropped side; in strict mode this throws instead of being recorded. */
|
|
222
|
+
export interface LoadFailure {
|
|
223
|
+
readonly packagePath: string;
|
|
224
|
+
readonly source: RegistrySource;
|
|
225
|
+
readonly error: string;
|
|
226
|
+
/** Why the package was skipped:
|
|
227
|
+
* - `load-error` (or absent, back-compat): failed the brand/shape check.
|
|
228
|
+
* - `duplicate`: lost an accidental id/slug collision (first-wins). In strict
|
|
229
|
+
* mode an accidental duplicate throws instead of being recorded.
|
|
230
|
+
* - `overridden`: the baseline incumbent a customer `override: true` entry
|
|
231
|
+
* intentionally replaced. Recorded (not thrown) even in strict mode. */
|
|
232
|
+
readonly kind?: 'load-error' | 'duplicate' | 'overridden';
|
|
233
|
+
/** Source of the entry that WON the collision (`duplicate` / `overridden` only). */
|
|
234
|
+
readonly keptSource?: RegistrySource;
|
|
235
|
+
}
|
|
236
|
+
export interface RegistryStats {
|
|
237
|
+
readonly cliCount: number;
|
|
238
|
+
readonly toolCount: number;
|
|
239
|
+
readonly connectionCount: number;
|
|
240
|
+
readonly baselineCount: number;
|
|
241
|
+
readonly customerCount: number;
|
|
242
|
+
/** Packages that genuinely failed to load (brand/shape error) or lost an
|
|
243
|
+
* accidental duplicate collision. Excludes intentional overrides — those are
|
|
244
|
+
* counted in `overriddenCount`, not here, so a healthy tenant that uses the
|
|
245
|
+
* override escape hatch never trips a `failedCount > 0` alert. */
|
|
246
|
+
readonly failedCount: number;
|
|
247
|
+
/** Baseline packages a customer `override: true` entry intentionally replaced.
|
|
248
|
+
* Not a failure — surfaced separately for audit/visibility. */
|
|
249
|
+
readonly overriddenCount: number;
|
|
250
|
+
}
|
|
251
|
+
export {};
|
|
252
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/runtime/registry/types.ts"],"names":[],"mappings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 -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { ConnectionEntry, RegistryEntry } from './types.js';
|
|
2
|
+
export interface WireToolEntry {
|
|
3
|
+
/** CLI id this tool belongs to (e.g. `"jira"`). */
|
|
4
|
+
readonly cli: string;
|
|
5
|
+
/** Tool key as registered in `defineCLI({ tools })` (e.g. `"getIssue"`). */
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly description: string | null;
|
|
8
|
+
readonly isReadonly: boolean;
|
|
9
|
+
/** True when the tool emits output files via `ctx.writeFile` — the worker pre-mints a presigned upload URL for these. Mirrors the SDK manifest field. */
|
|
10
|
+
readonly producesFiles: boolean;
|
|
11
|
+
readonly secretKeys: readonly string[];
|
|
12
|
+
/** Property keys this tool reads at runtime (resolved into `ctx.properties`). */
|
|
13
|
+
readonly propertyKeys: readonly string[];
|
|
14
|
+
readonly egress: readonly string[];
|
|
15
|
+
/** JSON-schema'd input shape, or `null` if the tool's `input` isn't a zod schema. */
|
|
16
|
+
readonly inputSchema: unknown | null;
|
|
17
|
+
/** JSON-schema'd structured-output shape when the tool declares `jsonOutput`, else `null`. Lets the worker auto-expose a `--json` flag for json-capable tools. */
|
|
18
|
+
readonly outputSchema: unknown | null;
|
|
19
|
+
readonly source: 'baseline' | 'customer';
|
|
20
|
+
}
|
|
21
|
+
export interface WireCliEntry {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly vendor: string;
|
|
25
|
+
readonly summary: string;
|
|
26
|
+
readonly description: string | null;
|
|
27
|
+
readonly instructions: readonly string[];
|
|
28
|
+
readonly secrets: ReadonlyArray<{
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly description: string;
|
|
31
|
+
readonly required: boolean;
|
|
32
|
+
readonly key: string;
|
|
33
|
+
readonly adminManaged?: boolean;
|
|
34
|
+
/** Host-injected per session, not user-pasted — the host must not treat it as a user credential. */
|
|
35
|
+
readonly injected?: boolean;
|
|
36
|
+
/** Server-only credential (e.g. a jwtRefresh refresh token) — rotated host-side, never a worker credential. */
|
|
37
|
+
readonly serverOnly?: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
/** Non-sensitive tenant properties (base URL, region, environment). `options` ⇒ UI renders a select; `adminManaged` ⇒ Admin-tab-only. */
|
|
40
|
+
readonly properties: ReadonlyArray<{
|
|
41
|
+
readonly name: string;
|
|
42
|
+
readonly description: string;
|
|
43
|
+
readonly required: boolean;
|
|
44
|
+
readonly key: string;
|
|
45
|
+
readonly options?: readonly string[];
|
|
46
|
+
readonly adminManaged?: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
/** Connection slug grouping CLIs that share one logical connection (gmail + gsheet → 'google'). `null` ⇒ the cli's `id` is the slug; consumers resolve `connectionSlug ?? id`. */
|
|
49
|
+
readonly connectionSlug: string | null;
|
|
50
|
+
/** OAuth scope URIs the CLI's tools need; the host unions these across the connection group. */
|
|
51
|
+
readonly vendorScopes: readonly string[];
|
|
52
|
+
readonly source: 'baseline' | 'customer';
|
|
53
|
+
}
|
|
54
|
+
/** OAuth SHAPE for a connection on the wire. Secret VALUES never appear here — akai-app holds them keyed by slug. */
|
|
55
|
+
export interface WireConnectionOAuth {
|
|
56
|
+
readonly authorizeUrl: string;
|
|
57
|
+
readonly tokenUrl: string;
|
|
58
|
+
readonly scopes: readonly string[];
|
|
59
|
+
readonly pkce: boolean;
|
|
60
|
+
readonly tokenEndpointAuthMethod: 'client_secret_post' | 'client_secret_basic';
|
|
61
|
+
readonly extraAuthorizeParams: Record<string, string>;
|
|
62
|
+
readonly refreshStrategy: 'cron' | 'jit';
|
|
63
|
+
readonly adminFields: ReadonlyArray<{
|
|
64
|
+
readonly key: string;
|
|
65
|
+
readonly label: string;
|
|
66
|
+
readonly secret: boolean;
|
|
67
|
+
}>;
|
|
68
|
+
readonly hasCustomConnectFlow?: boolean;
|
|
69
|
+
readonly tokenResponsePath?: string;
|
|
70
|
+
readonly appToken?: {
|
|
71
|
+
readonly tokenUrl: string;
|
|
72
|
+
readonly requestStyle?: 'oauth2_client_credentials' | 'json';
|
|
73
|
+
readonly credentialParams?: {
|
|
74
|
+
readonly id: string;
|
|
75
|
+
readonly secret: string;
|
|
76
|
+
};
|
|
77
|
+
readonly tokenField?: string;
|
|
78
|
+
readonly expiresField?: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export interface WireConnectionEntry {
|
|
82
|
+
readonly slug: string;
|
|
83
|
+
readonly name: string;
|
|
84
|
+
readonly vendor: string;
|
|
85
|
+
readonly blurb: string;
|
|
86
|
+
readonly longDesc: string;
|
|
87
|
+
readonly instructions: readonly string[];
|
|
88
|
+
readonly authKind: 'apiKey' | 'oauth2' | 'none';
|
|
89
|
+
/** User-facing secret DECLARATIONS for this connection's credentials — key
|
|
90
|
+
* declarations only, exactly like `WireCliEntry.secrets`. Secret VALUES never
|
|
91
|
+
* appear here; akai-app holds them keyed by slug. Omitted when the connection
|
|
92
|
+
* declares none. */
|
|
93
|
+
readonly secrets?: ReadonlyArray<{
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly description: string;
|
|
96
|
+
readonly required: boolean;
|
|
97
|
+
readonly key: string;
|
|
98
|
+
readonly adminManaged?: boolean;
|
|
99
|
+
/** Host-injected per session, not user-pasted — the host must not treat it as a user credential. */
|
|
100
|
+
readonly injected?: boolean;
|
|
101
|
+
/** Server-only credential (e.g. a jwtRefresh refresh token) — rotated host-side, never a worker credential. */
|
|
102
|
+
readonly serverOnly?: boolean;
|
|
103
|
+
}>;
|
|
104
|
+
/** Header carrying the apiKey credential (`Authorization` ⇒ `Bearer <token>`, any
|
|
105
|
+
* other header ⇒ raw token). Only meaningful for `authKind` `apiKey`. Omitted when absent. */
|
|
106
|
+
readonly apiKeyHeader?: string;
|
|
107
|
+
/** Per-environment host map for the connection's API. Omitted when absent. */
|
|
108
|
+
readonly hosts?: {
|
|
109
|
+
readonly production?: string;
|
|
110
|
+
readonly demo?: string;
|
|
111
|
+
readonly dev?: string;
|
|
112
|
+
};
|
|
113
|
+
/** Present iff `authKind` is `oauth2`. SHAPE only — no secret values. */
|
|
114
|
+
readonly oauth?: WireConnectionOAuth;
|
|
115
|
+
/** Declarative background JWT-refresh config for a non-OAuth connection. SHAPE only — the HTTP
|
|
116
|
+
* exchange stays host-side (akai-app), keyed by slug. Omitted when absent. */
|
|
117
|
+
readonly jwtRefresh?: {
|
|
118
|
+
readonly name: string;
|
|
119
|
+
readonly envs: ReadonlyArray<{
|
|
120
|
+
readonly env: string;
|
|
121
|
+
readonly accessKey: string;
|
|
122
|
+
readonly refreshKey: string;
|
|
123
|
+
readonly refreshUrl: string;
|
|
124
|
+
}>;
|
|
125
|
+
readonly defaultAtTtlMs?: number;
|
|
126
|
+
readonly revocationBackoffMs?: number;
|
|
127
|
+
readonly claimTtlSeconds?: number;
|
|
128
|
+
};
|
|
129
|
+
/** Governance: the connection auto-resolves without a user credential (no user secrets + native
|
|
130
|
+
* transport) — a FACT about the connection's auth model, not host policy. Omitted when falsy.
|
|
131
|
+
* Host POLICY (Deel-internal tenancy, reserved-UI hiding) is owned by akai-app, not emitted here. */
|
|
132
|
+
readonly nativeBuiltin?: boolean;
|
|
133
|
+
readonly source: 'baseline' | 'customer';
|
|
134
|
+
}
|
|
135
|
+
/** Minimal tenant identity a host attaches to the `/tools/list` payload (e.g.
|
|
136
|
+
* cli-service from its `tenant.json`). Additive — older consumers ignore it. */
|
|
137
|
+
export interface WireTenant {
|
|
138
|
+
readonly id: string;
|
|
139
|
+
readonly version: string;
|
|
140
|
+
}
|
|
141
|
+
export interface WireListPayload {
|
|
142
|
+
/** Flat list of every registered tool. Stable ordering: cli id then tool key. */
|
|
143
|
+
readonly tools: readonly WireToolEntry[];
|
|
144
|
+
/** CLI-level metadata, indexed by id in the same order tools reference them. */
|
|
145
|
+
readonly clis: readonly WireCliEntry[];
|
|
146
|
+
/** Connection-level umbrella identities. Stable ordering: connection slug. Additive — older consumers ignore it. */
|
|
147
|
+
readonly connections: readonly WireConnectionEntry[];
|
|
148
|
+
/** Tenant identity of the loaded customer bundle, or null for a baseline-only build. */
|
|
149
|
+
readonly tenant: WireTenant | null;
|
|
150
|
+
}
|
|
151
|
+
export declare function toWireListPayload(entries: ReadonlyArray<RegistryEntry>, connectionEntries?: ReadonlyArray<ConnectionEntry>, tenant?: WireTenant | null): WireListPayload;
|
|
152
|
+
//# sourceMappingURL=wire.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../../src/runtime/registry/wire.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAKV,eAAe,EACf,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,yJAAyJ;IACzJ,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,iFAAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,qFAAqF;IACrF,QAAQ,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IACrC,kKAAkK;IAClK,QAAQ,CAAC,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CAC1C;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE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