@zuplo/cli 6.73.26 → 6.73.27
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/node_modules/@posthog/types/dist/capture.d.ts +4 -0
- package/node_modules/@posthog/types/dist/capture.d.ts.map +1 -1
- package/node_modules/@posthog/types/dist/index.d.ts +1 -1
- package/node_modules/@posthog/types/dist/index.d.ts.map +1 -1
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +50 -2
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/dist/session-recording.d.ts +10 -0
- package/node_modules/@posthog/types/dist/session-recording.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/capture.ts +4 -0
- package/node_modules/@posthog/types/src/index.ts +1 -0
- package/node_modules/@posthog/types/src/posthog-config.ts +56 -2
- package/node_modules/@posthog/types/src/session-recording.ts +11 -0
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-SL6SOWIV.js → chunk-6SNZ4DOC.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-PEUB7LX7.js → chunk-A3QGJZO7.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/chunk-GWEFPK3R.js +405 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-GWEFPK3R.js.LEGAL.txt +16 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-GWEFPK3R.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-RB2LCXBX.js → chunk-QGAJTUPE.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-V4X24KCQ.js → chunk-QVZD2XRK.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-7WS4HIGR.js → chunk-SH74D236.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-2WLR6ZDZ.js → chunk-TYV53J3B.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-TRBIM47E.js → chunk-UKQQD2JN.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-A3425Z75.js → chunk-VHRZC4UF.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-VCMIY3WJ.js → chunk-YIT72S45.js} +3 -3
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp/messages/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +13 -13
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +86 -3
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-WK5G5RKI.js +0 -385
- package/node_modules/@zuplo/runtime/out/esm/chunk-WK5G5RKI.js.LEGAL.txt +0 -7
- package/node_modules/@zuplo/runtime/out/esm/chunk-WK5G5RKI.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-SL6SOWIV.js.map → chunk-6SNZ4DOC.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-PEUB7LX7.js.map → chunk-A3QGJZO7.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-RB2LCXBX.js.map → chunk-QGAJTUPE.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-V4X24KCQ.js.map → chunk-QVZD2XRK.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-7WS4HIGR.js.map → chunk-SH74D236.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-2WLR6ZDZ.js.map → chunk-TYV53J3B.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-TRBIM47E.js.map → chunk-UKQQD2JN.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-A3425Z75.js.map → chunk-VHRZC4UF.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-VCMIY3WJ.js.LEGAL.txt → chunk-YIT72S45.js.LEGAL.txt} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-VCMIY3WJ.js.map → chunk-YIT72S45.js.map} +0 -0
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{b as l}from"../chunk-
|
|
25
|
+
import{b as l}from"../chunk-SH74D236.js";import{Z as n}from"../chunk-YIT72S45.js";import{a as o}from"../chunk-TYV53J3B.js";function g(u={request:new Request("https://api.example.com")}){let e=[];function t(i){e.push(Promise.resolve(i))}return o(t,"waitUntil"),{context:new s({event:{waitUntil:t},route:u.route}),invokeResponse:o(async()=>{await Promise.all(e)},"invokeResponse")}}o(g,"createMockContext");var p={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:o(()=>({}),"raw")},s=class extends EventTarget{static{o(this,"MockZuploContext")}#e;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;analyticsContext;constructor({event:e,route:t=p,parentContext:r}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:n.console.info,log:n.console.log,debug:n.console.debug,warn:n.console.warn,error:n.console.error,setLogProperties:o(()=>{},"setLogProperties")},this.custom={},this.route=t,this.incomingRequestProperties={asn:1234,asOrganization:"ORGANIZATION",city:"Seattle",region:"Washington",regionCode:"WA",colo:"SEA",continent:"NA",country:"US",postalCode:"98004",metroCode:"SEA",latitude:void 0,longitude:void 0,timezone:void 0,httpProtocol:void 0,clientCert:void 0,clientMtlsVerificationStatus:void 0,clientMtlsVerificationReason:void 0,clientCertFingerprintSha256:void 0,clientCertNotBefore:void 0,clientCertNotAfter:void 0,clientCertIssuerDn:void 0,clientCertSubjectDn:void 0},this.parentContext=r,this.#e=e,this.analyticsContext=new l(this.requestId)}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,t){throw new Error("Not implemented")}invokeOutboundPolicy(e,t,r){throw new Error("Not implemented")}invokeRoute(e,t){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,t,r){let d=o(i=>{try{typeof t=="function"?t(i):t.handleEvent(i)}catch(a){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),a}},"wrapped");super.addEventListener(e,d,r)}};export{s as MockZuploContext,g as createMockContext};
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{h as a,i as l,j as c,k as o,n as p,o as y,p as m}from"../../chunk-
|
|
25
|
+
import{h as a,i as l,j as c,k as o,n as p,o as y,p as m}from"../../chunk-QVZD2XRK.js";import"../../chunk-UKQQD2JN.js";import"../../chunk-YIT72S45.js";import{a as i}from"../../chunk-TYV53J3B.js";async function g(r,e){let t=typeof e.credentials=="function"?await e.credentials():e.credentials,n=r.method,d=n!=="GET"&&n!=="HEAD"&&r.body!=null?await r.arrayBuffer():null,s=await new o({method:n,url:r.url,headers:r.headers,body:d,accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken,service:e.service,region:e.region,signQuery:e.signQuery}).sign();return new Request(s.url.toString(),{method:s.method,headers:s.headers,body:s.body})}i(g,"signRequest");export{c as AwsClient,o as AwsV4Signer,p as fromTemporaryCredentials,y as fromWebToken,m as fromZuploIdentity,l as getAwsCredentialProvider,a as setAwsCredentialProvider,g as signRequest};
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Attributes } from "@opentelemetry/api";
|
|
2
|
-
import { CallToolRequest } from "@
|
|
3
|
-
import { CallToolResult } from "@
|
|
2
|
+
import type { CallToolRequest } from "@modelcontextprotocol/sdk/types.js";
|
|
3
|
+
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
4
4
|
import { InboundPolicyHandler as InboundPolicyHandler_2 } from "../../policies.js";
|
|
5
5
|
import { KeyLike } from "jose";
|
|
6
6
|
import { RequestGeneric as RequestGeneric_2 } from "../../request.js";
|
|
@@ -10543,6 +10543,12 @@ declare interface NotFoundOptions {
|
|
|
10543
10543
|
routesMatchedByPathOnly: RouteConfiguration[];
|
|
10544
10544
|
}
|
|
10545
10545
|
|
|
10546
|
+
/**
|
|
10547
|
+
* Where the client credentials are sent on the token request. `body` sends `client_id` and `client_secret` as form parameters. `header` sends them with HTTP Basic authentication as described in RFC 6749 section 2.3.1.
|
|
10548
|
+
* @public
|
|
10549
|
+
*/
|
|
10550
|
+
declare type OAuthClientCredentialsLocation = "body" | "header";
|
|
10551
|
+
|
|
10546
10552
|
/* Excluded from this release type: OAuthProtectedResourceBasePlugin */
|
|
10547
10553
|
|
|
10548
10554
|
/* Excluded from this release type: OAuthProtectedResourceMetadataOptions */
|
|
@@ -15210,6 +15216,83 @@ export declare interface UpstreamGcpServiceAuthInboundPolicyOptions {
|
|
|
15210
15216
|
enableSuspiciousHeaderWarning?: boolean;
|
|
15211
15217
|
}
|
|
15212
15218
|
|
|
15219
|
+
/**
|
|
15220
|
+
* Fetches an access token from any OAuth 2.0 token endpoint using the client
|
|
15221
|
+
* credentials grant and adds it to a header (`Authorization` by default) on
|
|
15222
|
+
* the upstream request. Tokens are cached until shortly before they expire.
|
|
15223
|
+
*
|
|
15224
|
+
* @title Upstream OAuth 2.0 Client Credentials Auth
|
|
15225
|
+
* @product api-gateway
|
|
15226
|
+
* @public
|
|
15227
|
+
* @param request - The ZuploRequest
|
|
15228
|
+
* @param context - The ZuploContext
|
|
15229
|
+
* @param options - The policy options set in policies.json
|
|
15230
|
+
* @param policyName - The name of the policy as set in policies.json
|
|
15231
|
+
* @returns A Request or a Response
|
|
15232
|
+
*/
|
|
15233
|
+
export declare class UpstreamOAuthClientCredentialsInboundPolicy extends InboundPolicy<UpstreamOAuthClientCredentialsInboundPolicyOptions> {
|
|
15234
|
+
#private;
|
|
15235
|
+
static readonly policyType = "upstream-oauth-client-credentials";
|
|
15236
|
+
constructor(
|
|
15237
|
+
options: UpstreamOAuthClientCredentialsInboundPolicyOptions,
|
|
15238
|
+
policyName: string
|
|
15239
|
+
);
|
|
15240
|
+
handler(
|
|
15241
|
+
request: ZuploRequest,
|
|
15242
|
+
context: ZuploContext
|
|
15243
|
+
): Promise<ZuploRequest | Response>;
|
|
15244
|
+
}
|
|
15245
|
+
|
|
15246
|
+
/**
|
|
15247
|
+
* The options for this policy.
|
|
15248
|
+
* @public
|
|
15249
|
+
*/
|
|
15250
|
+
export declare interface UpstreamOAuthClientCredentialsInboundPolicyOptions {
|
|
15251
|
+
/**
|
|
15252
|
+
* The URL of the OAuth 2.0 token endpoint that issues the access token.
|
|
15253
|
+
*/
|
|
15254
|
+
tokenUrl: string;
|
|
15255
|
+
/**
|
|
15256
|
+
* The client ID used to authenticate with the token endpoint.
|
|
15257
|
+
*/
|
|
15258
|
+
clientId: string;
|
|
15259
|
+
/**
|
|
15260
|
+
* The client secret used to authenticate with the token endpoint.
|
|
15261
|
+
*/
|
|
15262
|
+
clientSecret: string;
|
|
15263
|
+
/**
|
|
15264
|
+
* Space-delimited list of scopes to request. When not set, the `scope` parameter is omitted from the token request.
|
|
15265
|
+
*/
|
|
15266
|
+
scope?: string;
|
|
15267
|
+
/**
|
|
15268
|
+
* The value of the `audience` form parameter sent to the token endpoint. Required by some identity providers such as Auth0. When not set, the parameter is omitted from the token request.
|
|
15269
|
+
*/
|
|
15270
|
+
audience?: string;
|
|
15271
|
+
credentialsIn?: OAuthClientCredentialsLocation;
|
|
15272
|
+
/**
|
|
15273
|
+
* Additional form parameters to include in the token request, for example `resource` for identity providers that require it.
|
|
15274
|
+
*/
|
|
15275
|
+
additionalParameters?: {
|
|
15276
|
+
[k: string]: string;
|
|
15277
|
+
};
|
|
15278
|
+
/**
|
|
15279
|
+
* The name of the header on the upstream request that the access token is set on.
|
|
15280
|
+
*/
|
|
15281
|
+
headerName?: string;
|
|
15282
|
+
/**
|
|
15283
|
+
* The scheme that prefixes the access token in the header. When the token response includes a `token_type`, that value is used instead.
|
|
15284
|
+
*/
|
|
15285
|
+
headerScheme?: string;
|
|
15286
|
+
/**
|
|
15287
|
+
* The number of times to retry fetching the token in the event of a failure.
|
|
15288
|
+
*/
|
|
15289
|
+
tokenRetries?: number;
|
|
15290
|
+
/**
|
|
15291
|
+
* The number of seconds less than the token expiration to cache the token.
|
|
15292
|
+
*/
|
|
15293
|
+
expirationOffsetSeconds?: number;
|
|
15294
|
+
}
|
|
15295
|
+
|
|
15213
15296
|
/**
|
|
15214
15297
|
* Generates a Zuplo JWT token and attaches it to the outgoing request. This
|
|
15215
15298
|
* policy creates a self-signed JWT using the Zuplo JWT plugin and adds it
|
|
@@ -16084,7 +16167,7 @@ export declare class ZuploMcpSdk {
|
|
|
16084
16167
|
* Retrieves the MCP request object from the context.
|
|
16085
16168
|
* Use this to access metadata like `_meta` from the incoming tool call.
|
|
16086
16169
|
*
|
|
16087
|
-
* @returns The
|
|
16170
|
+
* @returns The MCP call tool request object or null if not found
|
|
16088
16171
|
*/
|
|
16089
16172
|
getRawCallToolRequest(): CallToolRequest | null;
|
|
16090
16173
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "6.73.
|
|
3
|
+
"version": "6.73.27",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@opentelemetry/api": "1.9.0",
|
|
28
28
|
"@opentelemetry/api-logs": "0.220.0",
|
|
29
29
|
"@swc/core": "1.10.18",
|
|
30
|
-
"@zuplo/core": "6.73.
|
|
30
|
+
"@zuplo/core": "6.73.27",
|
|
31
31
|
"@zuplo/editor": "1.0.29844086763",
|
|
32
|
-
"@zuplo/openapi-tools": "6.73.
|
|
33
|
-
"@zuplo/runtime": "6.73.
|
|
32
|
+
"@zuplo/openapi-tools": "6.73.27",
|
|
33
|
+
"@zuplo/runtime": "6.73.27",
|
|
34
34
|
"chalk": "5.4.1",
|
|
35
35
|
"chokidar": "3.5.3",
|
|
36
36
|
"cookie": "1.0.2",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"workerd": "1.20241230.0",
|
|
62
62
|
"yargs": "17.7.2",
|
|
63
63
|
"zod": "3.25.76",
|
|
64
|
-
"@zuplo/graphql": "6.73.
|
|
65
|
-
"@zuplo/otel": "6.73.
|
|
64
|
+
"@zuplo/graphql": "6.73.27",
|
|
65
|
+
"@zuplo/otel": "6.73.27"
|
|
66
66
|
},
|
|
67
67
|
"bundleDependencies": [
|
|
68
68
|
"@inquirer/prompts",
|