@zuplo/cli 7.7.3 → 7.7.5
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/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 +24 -4
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/dist/segment.d.ts +21 -0
- package/node_modules/@posthog/types/dist/segment.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/index.ts +9 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +25 -5
- package/node_modules/@posthog/types/src/segment.ts +25 -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-4VEYTMJC.js +410 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-4VEYTMJC.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-FG5UOOBE.js +26 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-2DGFONEJ.js.map → chunk-FG5UOOBE.js.map} +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-WSCWEMBW.js → chunk-WTU7BX36.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-WSCWEMBW.js.map → chunk-WTU7BX36.js.map} +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-Z352SHBA.js → chunk-XC7IKEBU.js} +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-XC7IKEBU.js.map +1 -0
- 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-gateway/index.js +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 +9 -3
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +11 -11
- package/node_modules/@zuplo/runtime/out/esm/chunk-2DGFONEJ.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/chunk-BXPXENPX.js +0 -410
- package/node_modules/@zuplo/runtime/out/esm/chunk-BXPXENPX.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-Z352SHBA.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-BXPXENPX.js.LEGAL.txt → chunk-4VEYTMJC.js.LEGAL.txt} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-Z352SHBA.js.LEGAL.txt → chunk-XC7IKEBU.js.LEGAL.txt} +0 -0
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{E as p,J as c,M as u}from"../chunk-
|
|
25
|
+
import{E as p,J as c,M as u}from"../chunk-4VEYTMJC.js";import"../chunk-FG5UOOBE.js";import{a as d}from"../chunk-QGAJTUPE.js";import"../chunk-A3QGJZO7.js";import"../chunk-WTU7BX36.js";import{$ as i}from"../chunk-XC7IKEBU.js";import{a as o}from"../chunk-TYV53J3B.js";function w(l={request:new Request("https://api.example.com")}){let e=[];function t(s){e.push(Promise.resolve(s))}return o(t,"waitUntil"),{context:new a({event:{waitUntil:t},route:l.route,originalRequest:l.request}),invokeResponse:o(async()=>{await Promise.all(e)},"invokeResponse")}}o(w,"createMockContext");var g={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:o(()=>({}),"raw")},a=class extends EventTarget{static{o(this,"MockZuploContext")}#e;#t;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;analyticsContext;constructor({event:e,route:t=g,parentContext:n,originalRequest:r}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:i.console.info,log:i.console.log,debug:i.console.debug,warn:i.console.warn,error:i.console.error,setLogProperties:o(()=>{},"setLogProperties")},this.custom={},this.route=t,this.incomingRequestProperties={ip:"203.0.113.7",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=n,this.#e=e,this.#t=r,this.analyticsContext=new c(this.requestId)}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,t){throw new Error("Not implemented")}invokeOutboundPolicy(e,t,n){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")}addPreRequestHandler(e,t){let n;try{n=u.getContextExtensions(this)}catch{n=u.initialize(this,new d(this.#t??new Request("https://api.example.com")))}n.preRequestPhase??="active",p(this,n,e,t)}get preRequestHandlers(){let e;try{e=u.getContextExtensions(this)}catch{return[]}return(e.preRequestState?.entries??[]).map(t=>({policyName:t.policyName,name:t.name}))}addEventListener(e,t,n){let r=o(s=>{try{typeof t=="function"?t(s):t.handleEvent(s)}catch(m){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),m}},"wrapped");super.addEventListener(e,r,n)}};export{a as MockZuploContext,w 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-WTU7BX36.js";import"../../chunk-XC7IKEBU.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
|
|
@@ -149,7 +149,9 @@ export declare interface AIGatewayAuthInboundPolicyOptions {
|
|
|
149
149
|
* (`sub` is the application name, `data` its metadata), and the application's
|
|
150
150
|
* AI Gateway configuration takes effect for the request. Use `authHeader` and
|
|
151
151
|
* `authScheme` when clients send their app key somewhere other than the
|
|
152
|
-
* default `Authorization: Bearer` header.
|
|
152
|
+
* default `Authorization: Bearer` header. Enable `credentialPassthrough` with
|
|
153
|
+
* a separate gateway key header to forward the caller's Authorization to the
|
|
154
|
+
* primary provider. Fallbacks use their own configured credentials.
|
|
153
155
|
*
|
|
154
156
|
* When the matched route captures an `app_id` path parameter (platform catch-all
|
|
155
157
|
* `/:app_id/(.*)`), this policy also requires
|
|
@@ -215,13 +217,17 @@ export declare interface AIGatewayAuthV2InboundPolicyOptions {
|
|
|
215
217
|
*/
|
|
216
218
|
cacheTtlSeconds?: number;
|
|
217
219
|
/**
|
|
218
|
-
* The
|
|
220
|
+
* The header containing the Zuplo gateway key. When credentialPassthrough is true, configure a header other than Authorization, such as zp-gateway-api-key.
|
|
219
221
|
*/
|
|
220
222
|
authHeader?: string;
|
|
221
223
|
/**
|
|
222
|
-
* The scheme used on the header.
|
|
224
|
+
* The scheme used on the configured gateway key header. Set to an empty string for a bare key.
|
|
223
225
|
*/
|
|
224
226
|
authScheme?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Forward the caller's complete Authorization header to the primary provider instead of its configured credential. Requires a separate authHeader for the Zuplo key. Primary retries reuse the caller credential; error and quota fallbacks use configured credentials. Semantic caching is bypassed.
|
|
229
|
+
*/
|
|
230
|
+
credentialPassthrough?: boolean;
|
|
225
231
|
}
|
|
226
232
|
|
|
227
233
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "7.7.
|
|
3
|
+
"version": "7.7.5",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@opentelemetry/api": "1.9.0",
|
|
29
29
|
"@opentelemetry/api-logs": "0.220.0",
|
|
30
30
|
"@swc/core": "1.10.18",
|
|
31
|
-
"@zuplo/core": "7.7.
|
|
31
|
+
"@zuplo/core": "7.7.5",
|
|
32
32
|
"@zuplo/editor": "1.0.33162667821",
|
|
33
|
-
"@zuplo/openapi-tools": "7.7.
|
|
34
|
-
"@zuplo/runtime": "7.7.
|
|
33
|
+
"@zuplo/openapi-tools": "7.7.5",
|
|
34
|
+
"@zuplo/runtime": "7.7.5",
|
|
35
35
|
"chalk": "5.4.1",
|
|
36
36
|
"chokidar": "3.5.3",
|
|
37
37
|
"cookie": "1.0.2",
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"workerd": "1.20241230.0",
|
|
63
63
|
"yargs": "17.7.2",
|
|
64
64
|
"zod": "4.4.3",
|
|
65
|
-
"@zuplo/graphql": "7.7.
|
|
66
|
-
"@zuplo/otel": "7.7.
|
|
65
|
+
"@zuplo/graphql": "7.7.5",
|
|
66
|
+
"@zuplo/otel": "7.7.5"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@zuplo/lint-darwin-arm64": "7.7.
|
|
70
|
-
"@zuplo/lint-darwin-x64": "7.7.
|
|
71
|
-
"@zuplo/lint-linux-x64": "7.7.
|
|
72
|
-
"@zuplo/lint-linux-arm64": "7.7.
|
|
73
|
-
"@zuplo/lint-win32-x64": "7.7.
|
|
69
|
+
"@zuplo/lint-darwin-arm64": "7.7.5",
|
|
70
|
+
"@zuplo/lint-darwin-x64": "7.7.5",
|
|
71
|
+
"@zuplo/lint-linux-x64": "7.7.5",
|
|
72
|
+
"@zuplo/lint-linux-arm64": "7.7.5",
|
|
73
|
+
"@zuplo/lint-win32-x64": "7.7.5"
|
|
74
74
|
},
|
|
75
75
|
"bundleDependencies": [
|
|
76
76
|
"@inquirer/prompts",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Zuplo, Inc. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* This software and associated documentation files (the "Software") is intended to be used
|
|
6
|
-
* only by Zuplo customers solely to develop and test applications that will be deployed
|
|
7
|
-
* to Zuplo hosted services. You and others in your organization may use these files on your
|
|
8
|
-
* Development Devices solely for the above stated purpose.
|
|
9
|
-
*
|
|
10
|
-
* Outside of uses stated above, no license is granted for any other purpose including
|
|
11
|
-
* without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
12
|
-
* sublicense, host, and/or sell copies of the Software.
|
|
13
|
-
*
|
|
14
|
-
* The software may include third party components with separate legal notices or governed by
|
|
15
|
-
* other agreements, as described in licenses either embedded in or accompanying the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
18
|
-
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
19
|
-
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
20
|
-
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
21
|
-
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
-
* DEALINGS IN THE SOFTWARE.
|
|
23
|
-
*--------------------------------------------------------------------------------------------*/
|
|
24
|
-
|
|
25
|
-
import{a as u}from"./chunk-A3QGJZO7.js";import{$ as s,Z as o}from"./chunk-Z352SHBA.js";import{a as r}from"./chunk-TYV53J3B.js";var c=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function L(t){return t.startsWith("__ZUPLO")||t.startsWith("ZUPLO_")?!c.includes(t)&&!t.startsWith("ZUPLO_PUBLIC_"):t.startsWith("ZUDOKU_")?!t.startsWith("ZUDOKU_PUBLIC_"):!1}r(L,"isRestrictedEnvVariableName");function p(t){return!!t.startsWith("ZUPLO_")}r(p,"isZuploReadableEnvVariableName");var f=new Proxy({},{get(t,e){let n=String(e);switch(n){case"ZUPLO_ENVIRONMENT_TYPE":return o.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return o.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return o.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return o.instance.accountName;case"ZUPLO_PROJECT_NAME":return o.instance.projectName;case"ZUPLO_BUILD_ID":return o.instance.build.BUILD_ID;case"ZUPLO_COMPATIBILITY_DATE":return o.instance.build.COMPATIBILITY_DATE}if(!(L(n)&&!p(n)))return o.instance.runtime[n]}});var a;function C(t){a=t}r(C,"setGlobalZuploEventContext");function Z(){if(a===void 0)throw new Error("global ZuploEventContext has not been defined - invalid runtime state");return a}r(Z,"getGlobalZuploEventContext");var _=new s(Symbol("ai-gateway-app-configuration")),l={set(t,e){let n=e!==null&&typeof e=="object"&&!Object.isFrozen(e)?u(e):e;_.set(t,{configuration:n})},has(t){return _.get(t)!==void 0},get(t){return _.get(t)?.configuration},getId(t){let e=l.get(t);if(e===null||typeof e!="object")return;let n=Reflect.get(e,"id");return typeof n=="string"&&n!==""?n:void 0}};function I(t,e,n){return`_${i(`${t}_${e}_${n}`)}`}r(I,"getRawOperationDataIdentifierName");function m(t,e,n,g){return`_${i(t.toLowerCase())}_${e.toLowerCase()}_${n.toLowerCase()}_${g.toLowerCase()}`}r(m,"getIdForParameterSchema");function N(t,e,n){return`_${i(t.toLowerCase())}_${e.toLowerCase()}_rb_${i(n.toLowerCase())}`}r(N,"getIdForRequestBodySchema");function T(t,e){return`_${i(t)}_${i(e)}`}r(T,"getIdForRefSchema");function i(t){let e=t.replace(/\[/g,"_LBRACKET_").replace(/\]/g,"_RBRACKET_").replace(/\{/g,"_LCURLY_").replace(/\}/g,"_RCURLY_").replace(/\//g,"_SLASH_").replace(/-/g,"_DASH_").replace(/\./g,"_DOT_").replace(/\+/g,"_PLUS_").replace(/:/g,"_COLON_").replace(/@/g,"_AT_").replace(/\$/g,"_DOLLAR_").replace(/[^a-zA-Z0-9_]/g,"_");return/^[a-zA-Z_]/.test(e)||(e=`_${e}`),e}r(i,"sanitizedIdentifierName");export{L as a,p as b,f as c,C as d,Z as e,l as f,I as g,m as h,N as i,T as j,i as k};
|
|
26
|
-
//# sourceMappingURL=chunk-2DGFONEJ.js.map
|