@zuplo/cli 7.12.0 → 7.12.1

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.
Files changed (33) hide show
  1. package/node_modules/@zuplo/core/customer.cli.minified.js +267 -267
  2. package/node_modules/@zuplo/core/index.minified.js +257 -257
  3. package/node_modules/@zuplo/core/package.json +1 -1
  4. package/node_modules/@zuplo/graphql/package.json +1 -1
  5. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  6. package/node_modules/@zuplo/otel/package.json +1 -1
  7. package/node_modules/@zuplo/runtime/out/esm/chunk-3UPXKWR6.js +105 -0
  8. package/node_modules/@zuplo/runtime/out/esm/{chunk-PBNEQYSN.js.map → chunk-3UPXKWR6.js.map} +1 -1
  9. package/node_modules/@zuplo/runtime/out/esm/chunk-GQMNFQTN.js +26 -0
  10. package/node_modules/@zuplo/runtime/out/esm/chunk-GQMNFQTN.js.map +1 -0
  11. package/node_modules/@zuplo/runtime/out/esm/chunk-UKQQD2JN.js +26 -0
  12. package/node_modules/@zuplo/runtime/out/esm/chunk-UKQQD2JN.js.map +1 -0
  13. package/node_modules/@zuplo/runtime/out/esm/{chunk-NENTIKLL.js → chunk-VCUUI2I7.js} +102 -102
  14. package/node_modules/@zuplo/runtime/out/esm/chunk-VCUUI2I7.js.map +1 -0
  15. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  16. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  17. package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
  18. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  19. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  20. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  21. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
  22. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js.map +1 -1
  23. package/node_modules/@zuplo/runtime/out/types/index.d.ts +84 -6
  24. package/node_modules/@zuplo/runtime/package.json +1 -1
  25. package/package.json +11 -11
  26. package/node_modules/@zuplo/runtime/out/esm/chunk-I3JHF2K2.js +0 -26
  27. package/node_modules/@zuplo/runtime/out/esm/chunk-I3JHF2K2.js.map +0 -1
  28. package/node_modules/@zuplo/runtime/out/esm/chunk-NENTIKLL.js.map +0 -1
  29. package/node_modules/@zuplo/runtime/out/esm/chunk-PBNEQYSN.js +0 -94
  30. package/node_modules/@zuplo/runtime/out/esm/chunk-VDIBVMTB.js +0 -37
  31. package/node_modules/@zuplo/runtime/out/esm/chunk-VDIBVMTB.js.map +0 -1
  32. /package/node_modules/@zuplo/runtime/out/esm/{chunk-VDIBVMTB.js.LEGAL.txt → chunk-3UPXKWR6.js.LEGAL.txt} +0 -0
  33. /package/node_modules/@zuplo/runtime/out/esm/{chunk-NENTIKLL.js.LEGAL.txt → chunk-VCUUI2I7.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-NENTIKLL.js";import"../chunk-I3JHF2K2.js";import{a as d}from"../chunk-QGAJTUPE.js";import"../chunk-A3QGJZO7.js";import"../chunk-PBNEQYSN.js";import{aa as i}from"../chunk-VDIBVMTB.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};
25
+ import{F as p,K as c,N as u}from"../chunk-VCUUI2I7.js";import"../chunk-GQMNFQTN.js";import{a as d}from"../chunk-QGAJTUPE.js";import"../chunk-A3QGJZO7.js";import{aa as i}from"../chunk-3UPXKWR6.js";import"../chunk-UKQQD2JN.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-PBNEQYSN.js";import"../../chunk-VDIBVMTB.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};
25
+ import{Ia as a,Ja as l,Ka as c,La as o,Oa as p,Pa as y,Qa as m}from"../../chunk-3UPXKWR6.js";import"../../chunk-UKQQD2JN.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 +1 @@
1
- {"version":3,"sources":["@zuplo/runtime/sdks/aws/sign.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;kKAiDA,eAAsBA,EACpBC,EACAC,EACkB,CAClB,IAAMC,EACJ,OAAOD,EAAQ,aAAgB,WAC3B,MAAMA,EAAQ,YAAY,EAC1BA,EAAQ,YAERE,EAASH,EAAQ,OAEjBI,EADUD,IAAW,OAASA,IAAW,QAAUH,EAAQ,MAAQ,KAClD,MAAMA,EAAQ,YAAY,EAAI,KAe/CK,EAAS,MAbA,IAAIC,EAAY,CAC7B,OAAAH,EACA,IAAKH,EAAQ,IACb,QAASA,EAAQ,QACjB,KAAAI,EACA,YAAaF,EAAY,YACzB,gBAAiBA,EAAY,gBAC7B,aAAcA,EAAY,aAC1B,QAASD,EAAQ,QACjB,OAAQA,EAAQ,OAChB,UAAWA,EAAQ,SACrB,CAAC,EAE2B,KAAK,EAEjC,OAAO,IAAI,QAAQI,EAAO,IAAI,SAAS,EAAG,CACxC,OAAQA,EAAO,OACf,QAASA,EAAO,QAChB,KAAMA,EAAO,IACf,CAAC,CACH,CAjCsBE,EAAAR,EAAA","names":["signRequest","request","options","credentials","method","body","signed","AwsV4Signer","__name"]}
1
+ {"version":3,"sources":["@zuplo/runtime/sdks/aws/sign.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;yKAiDA,eAAsBA,EACpBC,EACAC,EACkB,CAClB,IAAMC,EACJ,OAAOD,EAAQ,aAAgB,WAC3B,MAAMA,EAAQ,YAAY,EAC1BA,EAAQ,YAERE,EAASH,EAAQ,OAEjBI,EADUD,IAAW,OAASA,IAAW,QAAUH,EAAQ,MAAQ,KAClD,MAAMA,EAAQ,YAAY,EAAI,KAe/CK,EAAS,MAbA,IAAIC,EAAY,CAC7B,OAAAH,EACA,IAAKH,EAAQ,IACb,QAASA,EAAQ,QACjB,KAAAI,EACA,YAAaF,EAAY,YACzB,gBAAiBA,EAAY,gBAC7B,aAAcA,EAAY,aAC1B,QAASD,EAAQ,QACjB,OAAQA,EAAQ,OAChB,UAAWA,EAAQ,SACrB,CAAC,EAE2B,KAAK,EAEjC,OAAO,IAAI,QAAQI,EAAO,IAAI,SAAS,EAAG,CACxC,OAAQA,EAAO,OACf,QAASA,EAAO,QAChB,KAAMA,EAAO,IACf,CAAC,CACH,CAjCsBE,EAAAR,EAAA","names":["signRequest","request","options","credentials","method","body","signed","AwsV4Signer","__name"]}
@@ -790,8 +790,15 @@ export { AIGatewayModelFilteringInboundPolicyOptions as AIGatewayModelFilteringV
790
790
  * model: "gpt-5",
791
791
  * capability: "completions",
792
792
  * status: "active",
793
- * inputCostPerToken: 0.00000125,
794
- * outputCostPerToken: 0.00001,
793
+ * tokenRateCard: {
794
+ * revision: "aimod_123:2026-10-12T17:42:10.031877Z",
795
+ * currency: "USD",
796
+ * rates: [
797
+ * { category: "input", costPerToken: 0.00000125 },
798
+ * { category: "cache-read-input", costPerToken: 0.000000125 },
799
+ * { category: "output", costPerToken: 0.00001 },
800
+ * ],
801
+ * },
795
802
  * };
796
803
  * ```
797
804
  */
@@ -802,10 +809,11 @@ export declare interface AIGatewayModelInfo {
802
809
  capability: "completions" | "embeddings";
803
810
  /** Whether the model is available for new routing or has been deprecated. */
804
811
  status: "active" | "deprecated";
805
- /** The catalog's normalized price in USD for one input token. */
806
- inputCostPerToken: number;
807
- /** The catalog's normalized price in USD for one output token. */
808
- outputCostPerToken: number;
812
+ /**
813
+ * The prices the AI Gateway charges for this model. Absent when the catalog
814
+ * has no valid prices for it; its requests are then recorded as unpriced.
815
+ */
816
+ tokenRateCard?: AIGatewayTokenRateCard;
809
817
  }
810
818
 
811
819
  /**
@@ -1344,6 +1352,76 @@ export declare interface AIGatewaySmartRouterTokenUsage {
1344
1352
  totalTokens: number;
1345
1353
  }
1346
1354
 
1355
+ /**
1356
+ * One USD-per-token rate in an {@link AIGatewayTokenRateCard}.
1357
+ *
1358
+ * A rate applies to a request whose total input token count is within
1359
+ * `minInputTokens` and `maxInputTokens`, inclusive; an absent bound is open.
1360
+ *
1361
+ * @public
1362
+ * @example
1363
+ * ```typescript
1364
+ * const longContextInput: AIGatewayTokenRate = {
1365
+ * category: "input",
1366
+ * costPerToken: 0.000006,
1367
+ * minInputTokens: 200001,
1368
+ * };
1369
+ * ```
1370
+ */
1371
+ export declare interface AIGatewayTokenRate {
1372
+ /** The token category this rate prices. */
1373
+ category: AIGatewayTokenRateCategory;
1374
+ /** The price in USD for one token. */
1375
+ costPerToken: number;
1376
+ /** The cache lifetime a `cache-write-input` rate applies to. */
1377
+ cacheTtl?: "5m" | "1h";
1378
+ /** The smallest total input token count this rate applies to. */
1379
+ minInputTokens?: number;
1380
+ /** The largest total input token count this rate applies to. */
1381
+ maxInputTokens?: number;
1382
+ }
1383
+
1384
+ /**
1385
+ * The prices the AI Gateway charges for a model: the catalog's list prices
1386
+ * with your project's prices applied.
1387
+ *
1388
+ * @public
1389
+ * @example
1390
+ * ```typescript
1391
+ * const card: AIGatewayTokenRateCard = {
1392
+ * revision: "aimod_123:2026-10-12T17:42:10.031877Z",
1393
+ * currency: "USD",
1394
+ * rates: [
1395
+ * { category: "input", costPerToken: 0.00000125 },
1396
+ * { category: "output", costPerToken: 0.00001 },
1397
+ * ],
1398
+ * };
1399
+ * ```
1400
+ */
1401
+ export declare interface AIGatewayTokenRateCard {
1402
+ /** Identifies the prices this card was built from. */
1403
+ revision: string;
1404
+ /** The currency of every rate. */
1405
+ currency: "USD";
1406
+ /** The rates, one per category, cache lifetime and input-size tier. */
1407
+ rates: AIGatewayTokenRate[];
1408
+ }
1409
+
1410
+ /**
1411
+ * The token category a rate in an {@link AIGatewayTokenRateCard} prices.
1412
+ *
1413
+ * @public
1414
+ * @example
1415
+ * ```typescript
1416
+ * const category: AIGatewayTokenRateCategory = "cache-read-input";
1417
+ * ```
1418
+ */
1419
+ export declare type AIGatewayTokenRateCategory =
1420
+ | "input"
1421
+ | "cache-read-input"
1422
+ | "cache-write-input"
1423
+ | "output";
1424
+
1347
1425
  /**
1348
1426
  * Common options every AI Gateway policy understands for scoping itself across
1349
1427
  * the multi-endpoint surface. A policy reads these from its own `options`.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "7.12.0",
4
+ "version": "7.12.1",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "7.12.0",
3
+ "version": "7.12.1",
4
4
  "repository": "https://github.com/zuplo/zuplo",
5
5
  "author": "Zuplo, Inc.",
6
6
  "type": "module",
@@ -31,10 +31,10 @@
31
31
  "@opentelemetry/api": "1.9.0",
32
32
  "@opentelemetry/api-logs": "0.220.0",
33
33
  "@swc/core": "1.10.18",
34
- "@zuplo/core": "7.12.0",
34
+ "@zuplo/core": "7.12.1",
35
35
  "@zuplo/editor": "1.0.33162667821",
36
- "@zuplo/openapi-tools": "7.12.0",
37
- "@zuplo/runtime": "7.12.0",
36
+ "@zuplo/openapi-tools": "7.12.1",
37
+ "@zuplo/runtime": "7.12.1",
38
38
  "chalk": "5.4.1",
39
39
  "chokidar": "3.5.3",
40
40
  "cookie": "1.0.2",
@@ -65,15 +65,15 @@
65
65
  "workerd": "1.20261002.1",
66
66
  "yargs": "17.7.2",
67
67
  "zod": "4.4.3",
68
- "@zuplo/graphql": "7.12.0",
69
- "@zuplo/otel": "7.12.0"
68
+ "@zuplo/graphql": "7.12.1",
69
+ "@zuplo/otel": "7.12.1"
70
70
  },
71
71
  "optionalDependencies": {
72
- "@zuplo/lint-darwin-arm64": "7.12.0",
73
- "@zuplo/lint-darwin-x64": "7.12.0",
74
- "@zuplo/lint-linux-x64": "7.12.0",
75
- "@zuplo/lint-linux-arm64": "7.12.0",
76
- "@zuplo/lint-win32-x64": "7.12.0"
72
+ "@zuplo/lint-darwin-arm64": "7.12.1",
73
+ "@zuplo/lint-darwin-x64": "7.12.1",
74
+ "@zuplo/lint-linux-x64": "7.12.1",
75
+ "@zuplo/lint-linux-arm64": "7.12.1",
76
+ "@zuplo/lint-win32-x64": "7.12.1"
77
77
  },
78
78
  "bundleDependencies": [
79
79
  "@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 o,ba as s}from"./chunk-VDIBVMTB.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-I3JHF2K2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["@zuplo/runtime/environment.ts","@zuplo/runtime/utils/global-zuplo-event-context.ts","@zuplo/runtime/ai-gateway/app-configuration-context.ts","@zuplo/runtime/utils/open-api-utils.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;gIAEA,IAAMA,EAAmC,CACvC,qCACA,iCACA,kBACA,+BACF,EASO,SAASC,EAA4BC,EAAc,CAExD,OAAIA,EAAK,WAAW,SAAS,GAAKA,EAAK,WAAW,QAAQ,EAItD,CAACF,EAAiC,SAASE,CAAI,GAC/C,CAACA,EAAK,WAAW,eAAe,EAIhCA,EAAK,WAAW,SAAS,EACpB,CAACA,EAAK,WAAW,gBAAgB,EAEnC,EACT,CAfgBC,EAAAF,EAAA,+BAoBT,SAASG,EAA+BF,EAAc,CAC3D,MAAI,EAAAA,EAAK,WAAW,QAAQ,CAI9B,CALgBC,EAAAC,EAAA,kCAWhB,IAAMC,EAAc,IAAI,MACtB,CAAC,EACD,CACE,IAAIC,EAAQC,EAAM,CAChB,IAAMC,EAAU,OAAOD,CAAI,EAG3B,OAAQC,EAAS,CACf,IAAK,yBACH,OAAOC,EAAY,SAAS,uBAC9B,IAAK,0BACH,OAAOA,EAAY,SAAS,wBAC9B,IAAK,yBACH,OAAOA,EAAY,SAAS,QAAQ,wBACtC,IAAK,qBACH,OAAOA,EAAY,SAAS,YAC9B,IAAK,qBACH,OAAOA,EAAY,SAAS,YAC9B,IAAK,iBACH,OAAOA,EAAY,SAAS,MAAM,SACpC,IAAK,2BACH,OAAOA,EAAY,SAAS,MAAM,kBACtC,CAEA,GACE,EAAAR,EAA4BO,CAAO,GACnC,CAACJ,EAA+BI,CAAO,GAKzC,OAAOC,EAAY,SAAS,QAAQD,CAAO,CAC7C,CACF,CACF,ECzEA,IAAIE,EAEG,SAASC,EAA2BC,EAA0B,CACnEF,EAASE,CACX,CAFgBC,EAAAF,EAAA,8BAIT,SAASG,GAAgD,CAC9D,GAAIJ,IAAW,OACb,MAAM,IAAI,MACR,uEACF,EAEF,OAAOA,CACT,CAPgBG,EAAAC,EAAA,8BCDhB,IAAMC,EAAmB,IAAIC,EAC3B,OAAO,8BAA8B,CACvC,EAYaC,EAAyB,CAOpC,IAAIC,EAAuBC,EAA8B,CAMvD,IAAMC,EACJD,IAAkB,MAClB,OAAOA,GAAkB,UACzB,CAAC,OAAO,SAASA,CAAa,EAC1BE,EAAWF,CAAa,EACxBA,EACNJ,EAAiB,IAAIG,EAAS,CAAE,cAAeE,CAAoB,CAAC,CACtE,EAOA,IAAIF,EAAgC,CAClC,OAAOH,EAAiB,IAAIG,CAAO,IAAM,MAC3C,EAOA,IAAIA,EAAgC,CAClC,OAAOH,EAAiB,IAAIG,CAAO,GAAG,aACxC,EAOA,MAAMA,EAA2C,CAC/C,IAAMC,EAAgBF,EAAuB,IAAIC,CAAO,EACxD,GAAIC,IAAkB,MAAQ,OAAOA,GAAkB,SACrD,OAGF,IAAMG,EAAK,QAAQ,IAAIH,EAAe,IAAI,EAC1C,OAAO,OAAOG,GAAO,UAAYA,IAAO,GAAKA,EAAK,MACpD,CACF,ECzEO,SAASC,EACdC,EACAC,EACAC,EACQ,CACR,MAAO,IAAIC,EAAwB,GAAGH,CAAW,IAAIC,CAAI,IAAIC,CAAS,EAAE,CAAC,EAC3E,CANgBE,EAAAL,EAAA,qCAiBT,SAASM,EACdJ,EACAC,EACAI,EACAC,EACQ,CACR,MAAO,IAAIJ,EAAwBF,EAAK,YAAY,CAAC,CAAC,IAAIC,EAAU,YAAY,CAAC,IAAII,EAAK,YAAY,CAAC,IAAIC,EAAK,YAAY,CAAC,EAC/H,CAPgBH,EAAAC,EAAA,2BAiBT,SAASG,EACdP,EACAC,EACAO,EACQ,CACR,MAAO,IAAIN,EAAwBF,EAAK,YAAY,CAAC,CAAC,IAAIC,EAAU,YAAY,CAAC,OAAOC,EAAwBM,EAAY,YAAY,CAAC,CAAC,EAC5I,CANgBL,EAAAI,EAAA,6BAeT,SAASE,EAAkBV,EAAqBW,EAAqB,CAC1E,MAAO,IAAIR,EAAwBH,CAAW,CAAC,IAAIG,EAAwBQ,CAAG,CAAC,EACjF,CAFgBP,EAAAM,EAAA,qBAUT,SAASP,EAAwBI,EAAsB,CAE5D,IAAIK,EAAcL,EAEf,QAAQ,MAAO,YAAY,EAC3B,QAAQ,MAAO,YAAY,EAC3B,QAAQ,MAAO,UAAU,EACzB,QAAQ,MAAO,UAAU,EACzB,QAAQ,MAAO,SAAS,EACxB,QAAQ,KAAM,QAAQ,EAEtB,QAAQ,MAAO,OAAO,EACtB,QAAQ,MAAO,QAAQ,EACvB,QAAQ,KAAM,SAAS,EACvB,QAAQ,KAAM,MAAM,EACpB,QAAQ,MAAO,UAAU,EAEzB,QAAQ,iBAAkB,GAAG,EAGhC,MAAK,aAAa,KAAKK,CAAW,IAChCA,EAAc,IAAIA,CAAW,IAGxBA,CACT,CAzBgBR,EAAAD,EAAA","names":["ALLOWED_WRITABLE_ZUPLO_VARIABLES","isRestrictedEnvVariableName","name","__name","isZuploReadableEnvVariableName","environment","target","prop","envName","Environment","_event","setGlobalZuploEventContext","event","__name","getGlobalZuploEventContext","appConfiguration","ContextData","AIGatewayConfiguration","context","configuration","storedConfiguration","deepFreeze","id","getRawOperationDataIdentifierName","oasFileName","path","operation","sanitizedIdentifierName","__name","getIdForParameterSchema","type","name","getIdForRequestBodySchema","contentType","getIdForRefSchema","ref","encodedName"]}