@zuplo/cli 6.73.23 → 6.73.25

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 (49) hide show
  1. package/node_modules/@posthog/core/dist/surveys/activation.d.ts +8 -0
  2. package/node_modules/@posthog/core/dist/surveys/activation.d.ts.map +1 -1
  3. package/node_modules/@posthog/core/dist/surveys/activation.js +7 -1
  4. package/node_modules/@posthog/core/dist/surveys/activation.mjs +4 -1
  5. package/node_modules/@posthog/core/dist/surveys/index.d.ts +1 -1
  6. package/node_modules/@posthog/core/dist/surveys/index.d.ts.map +1 -1
  7. package/node_modules/@posthog/core/dist/surveys/index.js +3 -0
  8. package/node_modules/@posthog/core/dist/surveys/index.mjs +2 -2
  9. package/node_modules/@posthog/core/package.json +1 -1
  10. package/node_modules/@posthog/core/src/surveys/activation.ts +12 -0
  11. package/node_modules/@posthog/core/src/surveys/index.ts +1 -1
  12. package/node_modules/@zuplo/core/customer.cli.minified.js +205 -205
  13. package/node_modules/@zuplo/core/index.minified.js +210 -210
  14. package/node_modules/@zuplo/core/package.json +1 -1
  15. package/node_modules/@zuplo/graphql/package.json +1 -1
  16. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  17. package/node_modules/@zuplo/otel/package.json +1 -1
  18. package/node_modules/@zuplo/runtime/out/esm/chunk-A3425Z75.js +26 -0
  19. package/node_modules/@zuplo/runtime/out/esm/chunk-A3425Z75.js.map +1 -0
  20. package/node_modules/@zuplo/runtime/out/esm/{chunk-FPZAMUNA.js → chunk-PEUB7LX7.js} +2 -2
  21. package/node_modules/@zuplo/runtime/out/esm/chunk-PEUB7LX7.js.map +1 -0
  22. package/node_modules/@zuplo/runtime/out/esm/chunk-RB2LCXBX.js +26 -0
  23. package/node_modules/@zuplo/runtime/out/esm/chunk-RB2LCXBX.js.map +1 -0
  24. package/node_modules/@zuplo/runtime/out/esm/{chunk-SNZSLL63.js → chunk-SL6SOWIV.js} +2 -2
  25. package/node_modules/@zuplo/runtime/out/esm/chunk-TRBIM47E.js +26 -0
  26. package/node_modules/@zuplo/runtime/out/esm/chunk-TRBIM47E.js.map +1 -0
  27. package/node_modules/@zuplo/runtime/out/esm/{chunk-QWO5UTVQ.js → chunk-V4X24KCQ.js} +4 -4
  28. package/node_modules/@zuplo/runtime/out/esm/chunk-V4X24KCQ.js.map +1 -0
  29. package/node_modules/@zuplo/runtime/out/esm/{chunk-R7PMDIH4.js → chunk-WK5G5RKI.js} +108 -108
  30. package/node_modules/@zuplo/runtime/out/esm/chunk-WK5G5RKI.js.map +1 -0
  31. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  32. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  33. package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
  34. package/node_modules/@zuplo/runtime/out/esm/mcp/messages/index.js +1 -1
  35. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  36. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  37. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
  38. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js.map +1 -1
  39. package/node_modules/@zuplo/runtime/out/types/index.d.ts +28 -21
  40. package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +787 -0
  41. package/node_modules/@zuplo/runtime/package.json +2 -2
  42. package/package.json +6 -6
  43. package/node_modules/@zuplo/runtime/out/esm/chunk-FPZAMUNA.js.map +0 -1
  44. package/node_modules/@zuplo/runtime/out/esm/chunk-QWO5UTVQ.js.map +0 -1
  45. package/node_modules/@zuplo/runtime/out/esm/chunk-R7PMDIH4.js.map +0 -1
  46. package/node_modules/@zuplo/runtime/out/esm/chunk-US6ITPGV.js +0 -26
  47. package/node_modules/@zuplo/runtime/out/esm/chunk-US6ITPGV.js.map +0 -1
  48. /package/node_modules/@zuplo/runtime/out/esm/{chunk-SNZSLL63.js.map → chunk-SL6SOWIV.js.map} +0 -0
  49. /package/node_modules/@zuplo/runtime/out/esm/{chunk-R7PMDIH4.js.LEGAL.txt → chunk-WK5G5RKI.js.LEGAL.txt} +0 -0
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{i as a,j as l,k as c,l as o,o as p,p as y,q as m}from"../../chunk-QWO5UTVQ.js";import"../../chunk-VCMIY3WJ.js";import{a as i}from"../../chunk-2WLR6ZDZ.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{h as a,i as l,j as c,k as o,n as p,o as y,p as m}from"../../chunk-V4X24KCQ.js";import"../../chunk-TRBIM47E.js";import"../../chunk-VCMIY3WJ.js";import{a as i}from"../../chunk-2WLR6ZDZ.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":";;;;;;;;;;;;;;;;;;;;;;;;kMAiDA,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"]}
@@ -146,10 +146,16 @@ export declare interface AIGatewayAuthInboundPolicyOptions {
146
146
  * Authenticates requests to an AI Gateway v2 endpoint with application API
147
147
  * keys.
148
148
  *
149
- * Place this policy first in the inbound chain so the policies that follow can
150
- * use the authenticated app's configuration. Use `authHeader` and `authScheme`
151
- * when clients send their app key somewhere other than the default
152
- * `Authorization: Bearer` header.
149
+ * Place this policy first in the inbound chain. The policies that follow can
150
+ * read the authenticated application from `request.user` (`sub` is the
151
+ * application name, `data` its metadata), and the application's AI Gateway
152
+ * configuration takes effect for the request. Use `authHeader` and
153
+ * `authScheme` when clients send their app key somewhere other than the
154
+ * default `Authorization: Bearer` header.
155
+ *
156
+ * When the matched route captures an `app_id` path parameter (platform catch-all
157
+ * `/:app_id/v1/(.*)`), this policy also requires
158
+ * `configuration.id === request.params.app_id` and returns 403 on mismatch.
153
159
  *
154
160
  * @title AI Gateway Authentication (v2)
155
161
  * @product ai-gateway
@@ -161,7 +167,7 @@ export declare interface AIGatewayAuthInboundPolicyOptions {
161
167
  * @param context - The ZuploContext
162
168
  * @param unparsedOptions - The policy configuration options
163
169
  * @param policyName - The name of the policy instance
164
- * @returns The authenticated request with user info, or a 401 response if unauthorized
170
+ * @returns The authenticated request with user info, or a 401/403 response if unauthorized
165
171
  *
166
172
  * @example
167
173
  * ```json
@@ -240,7 +246,8 @@ export declare type AIGatewayCapability =
240
246
  | "audio_transcriptions";
241
247
 
242
248
  /**
243
- * Runs the inbound policy chain selected for an authenticated AI Gateway app.
249
+ * Runs the inbound policy chain from the app configuration provided by
250
+ * `ai-gateway-auth-v2-inbound`.
244
251
  *
245
252
  * Use this policy after AI Gateway Authentication (v2) when apps need
246
253
  * different combinations or ordering of AI Gateway policies. Applications
@@ -271,7 +278,7 @@ export declare class AIGatewayConfigurationExecutorV2InboundPolicy extends Inbou
271
278
  }
272
279
 
273
280
  /**
274
- * The application policy chain is supplied through the authenticated request configuration.
281
+ * This policy has no options. Each application's policy chain comes from its AI Gateway configuration.
275
282
  * @public
276
283
  */
277
284
  export declare interface AIGatewayConfigurationExecutorV2InboundPolicyOptions {}
@@ -386,6 +393,9 @@ export declare function aiGatewayHandlerV2(
386
393
  * This policy is meant to be used as singleton.
387
394
  * You should only have one for your entire Gateway.
388
395
  *
396
+ * The AI Gateway authentication policy provides the application's
397
+ * configuration and must run earlier on the route.
398
+ *
389
399
  * Metering runs at most once per request: when the policy appears more than
390
400
  * once in the effective chain (for example repeated
391
401
  * `configuration.inboundPolicyChain` entries, or a static route entry plus a
@@ -775,11 +785,9 @@ export declare interface AIGatewaySemanticCacheOutboundPolicyOptions {}
775
785
  * matching the firewall's single-policy shape (no separate outbound policy).
776
786
  *
777
787
  * Caching parameters (semanticTolerance, expirationSecondsTtl, namespace) come
778
- * from the policy options the policy reads nothing from
779
- * `request.user.configuration` to decide whether to cache, and presence in the
780
- * route's chain is what enables it. An authenticated AI Gateway configuration
781
- * id always provides the cache namespace so application-supplied options cannot
782
- * cross tenant partitions.
788
+ * from the policy options, and presence in the route's chain is what enables
789
+ * it. An id from the authenticated app configuration always provides the cache
790
+ * namespace so application-supplied options cannot cross tenant partitions.
783
791
  *
784
792
  * Cache outcomes are reported on the response via the RFC 9211 `Cache-Status`
785
793
  * header under the cache name `zp-aigw-sem-cache` (hit:
@@ -1002,9 +1010,8 @@ export declare interface AkamaiAIFirewallPolicyOptions {
1002
1010
  *
1003
1011
  * Detects and blocks malicious AI inputs and outputs via Akamai's AI Firewall
1004
1012
  * service. Settings come from the policy options (configurationId, api-key,
1005
- * applicationId, streamingAccumulation) the policy reads nothing from
1006
- * `request.user.configuration`, and presence in the route's `inbound[]` chain is
1007
- * what enables it.
1013
+ * applicationId, streamingAccumulation), and presence in the route's
1014
+ * `inbound[]` chain is what enables it.
1008
1015
  *
1009
1016
  * Options are validated at request time and invalid options fail closed with a
1010
1017
  * ConfigurationError: detect-call failures deliberately fail open for
@@ -2866,7 +2873,7 @@ declare interface BuildRouteConfiguration {
2866
2873
  }
2867
2874
 
2868
2875
  /**
2869
- * Partitions the cache when no authenticated AI Gateway configuration id is available. Authenticated AI Gateway applications always use their configuration id so cache entries remain isolated per tenant.
2876
+ * Partitions the cache when the authenticated application has no configuration id. Applications with a configuration id always use it, so cache entries stay isolated per application.
2870
2877
  * @public
2871
2878
  */
2872
2879
  declare type CacheNamespace = string;
@@ -3365,8 +3372,8 @@ export declare interface CometOpikTracingPolicyOptions {
3365
3372
  * Traces both streaming and non-streaming AI Gateway responses to Comet Opik,
3366
3373
  * creating traces when requests start and spans when responses complete.
3367
3374
  * Credentials (apiKey, projectName, workspace, baseUrl) come from the policy
3368
- * options the policy reads nothing from `request.user.configuration` to decide
3369
- * whether to run, and presence in the route's chain is what enables it.
3375
+ * options. The authenticated app configuration is used only to label the
3376
+ * model; presence in the route's chain is what enables the policy.
3370
3377
  *
3371
3378
  * For streaming responses, it clones the response stream and processes it in
3372
3379
  * the background using `waitUntil`, allowing the original stream to pass through
@@ -4777,9 +4784,9 @@ export declare interface GalileoTracingPolicyOptions {
4777
4784
  * Traces both streaming and non-streaming AI Gateway responses to Galileo's LLM
4778
4785
  * observability platform, creating complete traces with workflow and LLM spans
4779
4786
  * when responses complete. Credentials (apiKey, projectId, logStreamId, baseUrl)
4780
- * come from the policy options the policy reads nothing from
4781
- * `request.user.configuration` to decide whether to run, and presence in the
4782
- * route's chain is what enables it.
4787
+ * come from the policy options. The authenticated app configuration is used
4788
+ * only to label the model; presence in the route's chain is what enables the
4789
+ * policy.
4783
4790
  *
4784
4791
  * For streaming responses, it clones the response stream and processes it in
4785
4792
  * the background using `waitUntil`, allowing the original stream to pass through