@typeship-ax/mcp 0.21.0 → 0.23.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/AGENTS.md +15 -11
- package/README.md +22 -53
- package/api.json +9998 -10118
- package/api.md +8983 -9120
- package/dist/arguments.d.ts +54 -0
- package/dist/arguments.d.ts.map +1 -0
- package/dist/arguments.js +265 -0
- package/dist/core/http.d.ts +162 -19
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +381 -48
- package/dist/core/pagination.d.ts +42 -6
- package/dist/core/pagination.d.ts.map +1 -1
- package/dist/core/pagination.js +111 -17
- package/dist/credential-storage.d.ts +10 -3
- package/dist/credential-storage.d.ts.map +1 -1
- package/dist/credential-storage.js +15 -6
- package/dist/dates.d.ts +1 -1
- package/dist/dates.js +1 -1
- package/dist/errors.d.ts +20 -84
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +20 -108
- package/dist/fields.d.ts +36 -0
- package/dist/fields.d.ts.map +1 -0
- package/dist/fields.js +187 -0
- package/dist/index.d.ts +28 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -25
- package/dist/mcp-authorization.d.ts.map +1 -1
- package/dist/mcp-authorization.js +34 -10
- package/dist/mcp-protocol.d.ts +108 -44
- package/dist/mcp-protocol.d.ts.map +1 -1
- package/dist/mcp-protocol.js +780 -484
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +129 -29
- package/dist/named-credentials.d.ts +19 -0
- package/dist/named-credentials.d.ts.map +1 -1
- package/dist/named-credentials.js +81 -1
- package/dist/oauth-request.d.ts +7 -1
- package/dist/oauth-request.d.ts.map +1 -1
- package/dist/oauth-request.js +26 -4
- package/dist/oauth-session.d.ts +13 -1
- package/dist/oauth-session.d.ts.map +1 -1
- package/dist/oauth-session.js +34 -18
- package/dist/ops.d.ts +58 -5
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js +110 -41
- package/dist/resources/api-keys.d.ts +10 -7
- package/dist/resources/api-keys.d.ts.map +1 -1
- package/dist/resources/api-keys.js +10 -31
- package/dist/resources/deliveries.d.ts +89 -5
- package/dist/resources/deliveries.d.ts.map +1 -1
- package/dist/resources/deliveries.js +96 -19
- package/dist/resources/drafts.d.ts +16 -16
- package/dist/resources/drafts.d.ts.map +1 -1
- package/dist/resources/drafts.js +12 -65
- package/dist/resources/files.d.ts +4 -4
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +3 -12
- package/dist/resources/generations.d.ts +16 -16
- package/dist/resources/generations.d.ts.map +1 -1
- package/dist/resources/generations.js +23 -47
- package/dist/resources/organization.d.ts +4 -4
- package/dist/resources/organization.d.ts.map +1 -1
- package/dist/resources/organization.js +3 -10
- package/dist/resources/{generate.d.ts → packages.d.ts} +16 -16
- package/dist/resources/packages.d.ts.map +1 -0
- package/dist/resources/{generate.js → packages.js} +13 -29
- package/dist/resources/projects.d.ts +50 -50
- package/dist/resources/projects.d.ts.map +1 -1
- package/dist/resources/projects.js +60 -116
- package/dist/resources/releases.d.ts +22 -17
- package/dist/resources/releases.d.ts.map +1 -1
- package/dist/resources/releases.js +19 -40
- package/dist/resources/spec-revisions.d.ts +16 -7
- package/dist/resources/spec-revisions.d.ts.map +1 -1
- package/dist/resources/spec-revisions.js +7 -29
- package/dist/resources/specs.d.ts +7 -7
- package/dist/resources/specs.d.ts.map +1 -1
- package/dist/resources/specs.js +6 -34
- package/dist/resources/targets.d.ts +49 -49
- package/dist/resources/targets.d.ts.map +1 -1
- package/dist/resources/targets.js +59 -115
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +78 -76
- package/dist/search.d.ts +54 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +421 -0
- package/dist/type-docs.d.ts +61 -0
- package/dist/type-docs.d.ts.map +1 -0
- package/dist/type-docs.js +174 -0
- package/dist/types.d.ts +499 -339
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +18 -18
- package/dist/worker.js +2 -2
- package/package.json +5 -2
- package/server.json +5 -5
- package/src/arguments.ts +254 -0
- package/src/core/http.ts +457 -58
- package/src/core/pagination.ts +129 -18
- package/src/credential-storage.ts +16 -6
- package/src/dates.ts +1 -1
- package/src/errors.ts +46 -115
- package/src/fields.ts +167 -0
- package/src/index.ts +45 -28
- package/src/mcp-authorization.ts +29 -9
- package/src/mcp-protocol.ts +808 -435
- package/src/mcp.ts +115 -27
- package/src/named-credentials.ts +66 -1
- package/src/oauth-request.ts +32 -6
- package/src/oauth-session.ts +37 -19
- package/src/ops.ts +146 -45
- package/src/resources/api-keys.ts +34 -48
- package/src/resources/deliveries.ts +213 -32
- package/src/resources/drafts.ts +62 -109
- package/src/resources/files.ts +19 -20
- package/src/resources/generations.ts +61 -79
- package/src/resources/organization.ts +11 -16
- package/src/resources/{generate.ts → packages.ts} +43 -51
- package/src/resources/projects.ts +145 -200
- package/src/resources/releases.ts +50 -67
- package/src/resources/spec-revisions.ts +40 -49
- package/src/resources/specs.ts +39 -59
- package/src/resources/targets.ts +144 -194
- package/src/schemas.ts +78 -76
- package/src/search.ts +434 -0
- package/src/type-docs.ts +205 -0
- package/src/types.ts +538 -357
- package/src/worker.ts +2 -2
- package/dist/resources/generate.d.ts.map +0 -1
- package/dist/resources/publications.d.ts +0 -47
- package/dist/resources/publications.d.ts.map +0 -1
- package/dist/resources/publications.js +0 -70
- package/src/resources/publications.ts +0 -140
package/dist/oauth-session.js
CHANGED
|
@@ -6,11 +6,11 @@ import { oauthJsonRequest } from "./oauth-request.js";
|
|
|
6
6
|
export function assertCredentialDestination(credentials, destination) {
|
|
7
7
|
const saved = credentials.destination;
|
|
8
8
|
if (!saved)
|
|
9
|
-
throw new
|
|
9
|
+
throw new OAuthSessionError("Saved credentials have no API and profile binding. Log in again before using them.");
|
|
10
10
|
if (new URL(saved.apiBaseUrl).href !== new URL(destination.apiBaseUrl).href)
|
|
11
|
-
throw new
|
|
11
|
+
throw new OAuthSessionError("The API destination changed. Log in again before using saved credentials.");
|
|
12
12
|
if ((saved.environment ?? null) !== (destination.environment ?? null) || (saved.profile ?? null) !== (destination.profile ?? null))
|
|
13
|
-
throw new
|
|
13
|
+
throw new OAuthSessionError("The credential environment or profile changed. Log in again before using saved credentials.");
|
|
14
14
|
}
|
|
15
15
|
/** Bind minimal identity evidence to this credential set and its configured read. */
|
|
16
16
|
export function credentialIdentityBinding(credentials, identity) {
|
|
@@ -24,7 +24,7 @@ export function assertStoredIdentity(credentials, identity) {
|
|
|
24
24
|
if (!identity)
|
|
25
25
|
return;
|
|
26
26
|
if (!credentials.identity?.values || credentials.identity.binding !== credentialIdentityBinding(credentials, identity) || Object.keys(identity.fields).some((kind) => !Object.hasOwn(credentials.identity.values, kind))) {
|
|
27
|
-
throw new
|
|
27
|
+
throw new OAuthSessionError("The saved login has no matching API identity verification. Sign in again to verify the current account and organization.");
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
/** Bind the login to effective nonsecret settings. Scope ordering is irrelevant. */
|
|
@@ -49,7 +49,13 @@ function alive(pid) {
|
|
|
49
49
|
return code(error) !== "ESRCH";
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
/** The OS credential store or the saved credential file cannot be used. */
|
|
52
53
|
export class CredentialStorageError extends Error {
|
|
54
|
+
constructor(message) { super(message); this.name = "CredentialStorageError"; }
|
|
55
|
+
}
|
|
56
|
+
/** A saved login cannot be used as is; the remedy is to sign in again. */
|
|
57
|
+
export class OAuthSessionError extends Error {
|
|
58
|
+
constructor(message) { super(message); this.name = "OAuthSessionError"; }
|
|
53
59
|
}
|
|
54
60
|
/** Private file adapter. All writers (login, refresh and logout) use the same
|
|
55
61
|
* cross-process lock. Credential storage can be replaced independently of OAuth. */
|
|
@@ -78,7 +84,7 @@ export class FileCredentialStore {
|
|
|
78
84
|
return null;
|
|
79
85
|
if (error instanceof CredentialStorageError)
|
|
80
86
|
throw error;
|
|
81
|
-
throw new
|
|
87
|
+
throw new CredentialStorageError("Cannot read saved credentials. Check the credential store before logging in again.");
|
|
82
88
|
}
|
|
83
89
|
}
|
|
84
90
|
write(credentials) {
|
|
@@ -113,10 +119,10 @@ export class FileCredentialStore {
|
|
|
113
119
|
}
|
|
114
120
|
catch (error) {
|
|
115
121
|
if (code(error) !== "EEXIST")
|
|
116
|
-
throw new
|
|
122
|
+
throw new CredentialStorageError("Cannot lock the credential store.");
|
|
117
123
|
this.recoverDeadOwner(lock);
|
|
118
124
|
if (Date.now() >= deadline)
|
|
119
|
-
throw new
|
|
125
|
+
throw new CredentialStorageError("The credential store is busy. Wait for the other login or refresh to finish and retry. If its process stopped, inspect " + lock + ".");
|
|
120
126
|
await new Promise((resolve) => setTimeout(resolve, 25));
|
|
121
127
|
}
|
|
122
128
|
}
|
|
@@ -170,27 +176,29 @@ export class FileCredentialStore {
|
|
|
170
176
|
function validSession(credentials, config, sessionId, allowPending = false) {
|
|
171
177
|
const session = credentials?.oauth;
|
|
172
178
|
if (!session || !session.sessionId || session.sessionId !== sessionId)
|
|
173
|
-
throw new
|
|
179
|
+
throw new OAuthSessionError("The saved OAuth session changed or was logged out. Run login again and retry the request.");
|
|
174
180
|
if (session.apiBaseUrl && new URL(session.apiBaseUrl).href !== new URL(config.apiBaseUrl).href)
|
|
175
|
-
throw new
|
|
181
|
+
throw new OAuthSessionError("The API destination changed. Log in again.");
|
|
176
182
|
if (session.issuer && config.issuer && session.issuer !== config.issuer)
|
|
177
|
-
throw new
|
|
183
|
+
throw new OAuthSessionError("The configured issuer changed. Log in again.");
|
|
178
184
|
if (session.configuredClientId !== (config.clientId ?? null))
|
|
179
|
-
throw new
|
|
185
|
+
throw new OAuthSessionError("The OAuth client changed. Log in again.");
|
|
180
186
|
if (!session.binding || session.binding !== sessionBinding(config))
|
|
181
|
-
throw new
|
|
187
|
+
throw new OAuthSessionError("The API or OAuth configuration changed. Log in again before using saved credentials.");
|
|
182
188
|
if (session.refreshPending && !allowPending)
|
|
183
|
-
throw new
|
|
189
|
+
throw new OAuthSessionError("The previous OAuth refresh did not finish safely. Log in again; its refresh token will not be reused.");
|
|
184
190
|
if (typeof session.accessToken !== "string" || !session.accessToken)
|
|
185
|
-
throw new
|
|
191
|
+
throw new OAuthSessionError("The saved OAuth session is invalid. Log in again.");
|
|
186
192
|
assertStoredIdentity(credentials, config.identity);
|
|
187
193
|
return session;
|
|
188
194
|
}
|
|
189
195
|
/** Re-read on every request attempt; only one process may rotate the token.
|
|
190
196
|
* A failed or interrupted exchange requires login, since the server may have
|
|
191
197
|
* consumed its refresh token even when no response reached this process. */
|
|
192
|
-
export async function oauthSessionToken(store, config, sessionId, tokenParams = {}) {
|
|
193
|
-
|
|
198
|
+
export async function oauthSessionToken(store, config, sessionId, tokenParams = {}, rejected) {
|
|
199
|
+
// A token the API just rejected (401) is refreshed once even if unexpired;
|
|
200
|
+
// another process may already have replaced it, which is fine.
|
|
201
|
+
const fresh = (session) => session.accessToken !== rejected && (session.expiresAt === undefined || (Number.isFinite(session.expiresAt) && session.expiresAt > Date.now() + 60_000));
|
|
194
202
|
const first = validSession(store.read(), config, sessionId, true);
|
|
195
203
|
if (!first.refreshPending && fresh(first))
|
|
196
204
|
return first.accessToken;
|
|
@@ -200,7 +208,7 @@ export async function oauthSessionToken(store, config, sessionId, tokenParams =
|
|
|
200
208
|
if (fresh(session))
|
|
201
209
|
return session.accessToken;
|
|
202
210
|
if (!session.refreshToken || !session.tokenUrl || !session.clientId)
|
|
203
|
-
throw new
|
|
211
|
+
throw new OAuthSessionError(session.accessToken === rejected ? "The API rejected the saved OAuth session and it has no refresh token. Log in again." : "The OAuth session expired and cannot be refreshed. Log in again.");
|
|
204
212
|
const endpoint = new URL(session.tokenUrl);
|
|
205
213
|
if ((endpoint.protocol !== "https:" && !(endpoint.protocol === "http:" && ["localhost", "127.0.0.1", "[::1]"].includes(endpoint.hostname))) || endpoint.username || endpoint.password || endpoint.hash)
|
|
206
214
|
throw new Error("The OAuth token endpoint requires HTTPS; loopback HTTP is allowed for development.");
|
|
@@ -238,7 +246,15 @@ export async function oauthSessionToken(store, config, sessionId, tokenParams =
|
|
|
238
246
|
}
|
|
239
247
|
catch {
|
|
240
248
|
// Never expose an error body, a refresh token, or fetch's nested cause.
|
|
241
|
-
throw new
|
|
249
|
+
throw new OAuthSessionError("The OAuth session could not be refreshed safely. Log in again.");
|
|
242
250
|
}
|
|
243
251
|
});
|
|
244
252
|
}
|
|
253
|
+
/** A saved-session token for the request runtime: resolved before every
|
|
254
|
+
* attempt, and after a 401 (invalidate) the next resolve forces one refresh
|
|
255
|
+
* of the token the API rejected. */
|
|
256
|
+
export function sessionCredential(resolve) {
|
|
257
|
+
let last, rejected;
|
|
258
|
+
const token = async () => { const previous = rejected; rejected = undefined; last = await resolve(previous); return last; };
|
|
259
|
+
return Object.assign(token, { invalidate() { rejected = last; } });
|
|
260
|
+
}
|
package/dist/ops.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { InputTypes } from "./type-docs.js";
|
|
1
2
|
export interface ParamSpec {
|
|
2
3
|
/** wire name (JSON key, query name, or path placeholder) */
|
|
3
4
|
name: string;
|
|
@@ -6,11 +7,16 @@ export interface ParamSpec {
|
|
|
6
7
|
/** property name the SDK params object uses */
|
|
7
8
|
ts: string;
|
|
8
9
|
kind: "path" | "query" | "header" | "body";
|
|
10
|
+
/** The next-page URL argument of a Link or next-URL list: it is passed to
|
|
11
|
+
* the SDK as RequestOptions.pageUrl, never sent as a query parameter. */
|
|
12
|
+
continuation?: true;
|
|
9
13
|
/** "file": a binary multipart field; the CLI takes a path and uploads it.
|
|
10
14
|
* "array"/"object": the schema says so (a lone scalar flag value becomes a
|
|
11
15
|
* one-item array; an object must be JSON). "json": a union or untyped
|
|
12
16
|
* value — JSON if it parses, else the raw text. */
|
|
13
17
|
type: "string" | "number" | "boolean" | "array" | "object" | "json" | "file";
|
|
18
|
+
/** A "file" field that takes several files: one part per path. */
|
|
19
|
+
multiple?: boolean;
|
|
14
20
|
required: boolean;
|
|
15
21
|
/** A JSON body flag accepts the literal null as JSON null. */
|
|
16
22
|
nullable?: boolean;
|
|
@@ -35,6 +41,15 @@ export interface ParamSpec {
|
|
|
35
41
|
filterParam?: string;
|
|
36
42
|
inferred?: boolean;
|
|
37
43
|
};
|
|
44
|
+
/** An `explode: false` query array is joined into one value with this. */
|
|
45
|
+
delimiter?: "," | " " | "|";
|
|
46
|
+
/** A path parameter that is the Basic-auth username: optional, and
|
|
47
|
+
* defaulted from the configured credential (named scheme, or env). */
|
|
48
|
+
credential?: {
|
|
49
|
+
from: "username";
|
|
50
|
+
scheme: string;
|
|
51
|
+
env: string;
|
|
52
|
+
};
|
|
38
53
|
}
|
|
39
54
|
export interface OpSpec {
|
|
40
55
|
resource: string;
|
|
@@ -59,9 +74,20 @@ export interface OpSpec {
|
|
|
59
74
|
/** Success body is a text/event-stream: the CLI streams events as NDJSON;
|
|
60
75
|
* not an MCP tool. */
|
|
61
76
|
sse: boolean;
|
|
77
|
+
/** The streaming twin of this JSON operation: the SDK method the CLI
|
|
78
|
+
* calls for --stream true, and the argument name MCP refuses as true. */
|
|
79
|
+
streamMethod?: {
|
|
80
|
+
method: string;
|
|
81
|
+
flag: string;
|
|
82
|
+
value: boolean | string;
|
|
83
|
+
};
|
|
84
|
+
/** The success body is not JSON: "binary" (a file, audio) or "text". The
|
|
85
|
+
* CLI writes it raw to stdout or to --output instead of printing JSON. */
|
|
86
|
+
rawResponse?: "binary" | "text";
|
|
62
87
|
hasParams: boolean;
|
|
63
88
|
/** GraphQL ops whose field returns an object accept a selection-set
|
|
64
|
-
* override (a leaf-returning field has nothing to select).
|
|
89
|
+
* override (a leaf-returning field has nothing to select). On a
|
|
90
|
+
* connection the selection is per item. */
|
|
65
91
|
select: boolean;
|
|
66
92
|
/** present for GraphQL ops: enough to build the request document */
|
|
67
93
|
graphql?: {
|
|
@@ -74,7 +100,7 @@ export interface OpSpec {
|
|
|
74
100
|
idempotent: boolean;
|
|
75
101
|
/** Header the SDK fills with one UUID per call (Idempotency-Key). */
|
|
76
102
|
idempotencyHeader?: string;
|
|
77
|
-
/** Operation-level retry policy
|
|
103
|
+
/** Operation-level retry policy from the API definition. */
|
|
78
104
|
retry?: {
|
|
79
105
|
maxRetries?: number;
|
|
80
106
|
statuses?: number[];
|
|
@@ -84,7 +110,7 @@ export interface OpSpec {
|
|
|
84
110
|
};
|
|
85
111
|
/** Page-walking config for generic executors, same shape as the SDK's PageConfig. */
|
|
86
112
|
pagination?: {
|
|
87
|
-
style: "cursor" | "cursorFromLastId" | "page" | "offset";
|
|
113
|
+
style: "cursor" | "cursorFromLastId" | "page" | "offset" | "nextUrl" | "link";
|
|
88
114
|
itemsField: string;
|
|
89
115
|
cursorParam?: string;
|
|
90
116
|
nextCursorField?: string;
|
|
@@ -93,10 +119,24 @@ export interface OpSpec {
|
|
|
93
119
|
pageParam?: string;
|
|
94
120
|
offsetParam?: string;
|
|
95
121
|
limitParam?: string;
|
|
122
|
+
nextUrlField?: string;
|
|
123
|
+
firstPage?: number;
|
|
124
|
+
totalField?: string;
|
|
125
|
+
totalPagesField?: string;
|
|
126
|
+
/** GraphQL edges: each item is this field of an edge. */
|
|
127
|
+
itemPath?: string;
|
|
128
|
+
backward?: {
|
|
129
|
+
limitParam: string;
|
|
130
|
+
cursorParam: string;
|
|
131
|
+
cursorField: string;
|
|
132
|
+
hasMoreField: string;
|
|
133
|
+
};
|
|
96
134
|
};
|
|
97
135
|
/** The spec's security requirement: "required" fails fast without a
|
|
98
136
|
* credential; "none" works anonymously; "optional" is either. */
|
|
99
137
|
auth: "required" | "optional" | "none";
|
|
138
|
+
/** The API Spec declares no security; the generic token is optional. */
|
|
139
|
+
authNotDeclared?: boolean;
|
|
100
140
|
security?: Record<string, string[]>[];
|
|
101
141
|
/** Complete credential-option combinations for this operation. */
|
|
102
142
|
credentialOptions?: string[][];
|
|
@@ -106,18 +146,31 @@ export interface OpSpec {
|
|
|
106
146
|
inputSchema: Record<string, unknown>;
|
|
107
147
|
/** Deterministic arguments derived from inputSchema for runnable examples. */
|
|
108
148
|
exampleArguments: Record<string, unknown>;
|
|
149
|
+
/** The operation the package's examples lead with. */
|
|
150
|
+
showcase?: true;
|
|
109
151
|
/** What the tool returns (JSON Schema 2020-12), when the spec documents
|
|
110
152
|
* a success body; paginated tools describe { items, hasMore, nextPage }. */
|
|
111
153
|
outputSchema?: Record<string, unknown>;
|
|
112
154
|
/** File array used by CLI --out, independent of the agent schema budget. */
|
|
113
155
|
fileBundleProperty?: string;
|
|
156
|
+
/** The spec marks the operation deprecated: docs search ranks it last. */
|
|
157
|
+
deprecated?: boolean;
|
|
114
158
|
}
|
|
115
159
|
export declare const OPS: OpSpec[];
|
|
116
160
|
/** Operations present in the API Spec but omitted by this
|
|
117
161
|
* generation's operation cap. Kept deliberately small: enough for honest
|
|
118
162
|
* discovery and PLAN_LIMIT errors, never enough to call an absent method. */
|
|
119
|
-
export type OmittedOpSpec = Pick<OpSpec, "resource" | "method" | "command" | "commandAlias" | "tool" | "httpMethod" | "path" | "summary" | "description" | "toolDescription" | "paginated" | "select" | "safety" | "auth" | "security" | "params" | "inputSchema"
|
|
163
|
+
export type OmittedOpSpec = Pick<OpSpec, "resource" | "method" | "command" | "commandAlias" | "tool" | "httpMethod" | "path" | "summary" | "description" | "toolDescription" | "paginated" | "select" | "safety" | "auth" | "security" | "params" | "inputSchema" | "deprecated"> & {
|
|
164
|
+
graphql?: {
|
|
165
|
+
kind: "query" | "mutation";
|
|
166
|
+
field: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
120
169
|
export declare const OMITTED_OPS: OmittedOpSpec[];
|
|
170
|
+
/** Named input types the operations' arguments reach, each described once
|
|
171
|
+
* with its fields typed by name: what docs lookups by type or argument
|
|
172
|
+
* path read. */
|
|
173
|
+
export declare const INPUT_TYPES: InputTypes;
|
|
121
174
|
/** Parameters settable once on the client (globals option): CLI/MCP fill
|
|
122
175
|
* them from flags or environment; the SDK falls back per request. */
|
|
123
176
|
export declare const GLOBALS: {
|
|
@@ -133,5 +186,5 @@ export declare function missingRequired(op: OpSpec, values: Record<string, unkno
|
|
|
133
186
|
* keyed by wire name (plus an optional raw body for bodyStyle "data" or a
|
|
134
187
|
* --data base object).
|
|
135
188
|
*/
|
|
136
|
-
export declare function buildArgs(op: OpSpec, values: Record<string, unknown>, dataBody?: unknown, select?: string): unknown[];
|
|
189
|
+
export declare function buildArgs(op: OpSpec, values: Record<string, unknown>, dataBody?: unknown, select?: string, options?: Record<string, unknown>): unknown[];
|
|
137
190
|
//# sourceMappingURL=ops.d.ts.map
|
package/dist/ops.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../src/ops.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C;;;uDAGmD;IACnD,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC7E,QAAQ,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,mFAAmF;IACnF,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACvF,yFAAyF;IACzF,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,MAAM,C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