@zuplo/runtime 7.15.30 → 7.15.33

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.
@@ -9,5 +9,5 @@
9
9
  * See https://zuplo.com/legal/eula for more information.
10
10
  */
11
11
 
12
- import{P as p,V as c,Z as u}from"../chunk-C4ZTXG6P.js";import"../chunk-KZBZ5KM5.js";import{a as d}from"../chunk-JAY7SQGG.js";import"../chunk-R6UNMRUU.js";import"../chunk-A7HRIAHJ.js";import"../chunk-5JGLAPFA.js";import{Y as i}from"../chunk-3ITT2MYM.js";import{a as o}from"../chunk-VXPFMOL5.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};
12
+ import{P as p,V as c,Z as u}from"../chunk-552QIZSP.js";import"../chunk-KZBZ5KM5.js";import{a as d}from"../chunk-JAY7SQGG.js";import"../chunk-R6UNMRUU.js";import"../chunk-A7HRIAHJ.js";import"../chunk-5JGLAPFA.js";import{Y as i}from"../chunk-3ITT2MYM.js";import{a as o}from"../chunk-VXPFMOL5.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};
13
13
  //# sourceMappingURL=index.js.map
@@ -1971,8 +1971,8 @@ export declare class ApiKeyConsumerClient {
1971
1971
  export declare interface ApiKeyConsumerClientOptions {
1972
1972
  /**
1973
1973
  * The bucket ID for the API key service. Must start with `bckt_`
1974
- * (e.g. `bckt_2HaK3odRyJle6NJSu8mzNKBC30BYxllxL`) — a bucket name is not
1975
- * accepted. Defaults to the bucket configured for the current environment.
1974
+ * (e.g. `bckt_...`) — a bucket name is not accepted. Defaults to the
1975
+ * bucket configured for the current environment.
1976
1976
  */
1977
1977
  bucketId?: string;
1978
1978
  /**
@@ -9839,6 +9839,14 @@ export declare interface McpEntraOAuthInboundPolicyOptions {
9839
9839
  * The Microsoft Entra tenant UUID. Multi-tenant aliases like common and organizations are not supported by this policy yet.
9840
9840
  */
9841
9841
  tenantId: string;
9842
+ /**
9843
+ * The Microsoft Entra cloud or tenant type. Use us-government for Microsoft Entra ID for US Government (login.microsoftonline.us), china for Microsoft Entra ID operated by 21Vianet (login.chinacloudapi.cn), and external-id for a Microsoft Entra External ID tenant ({tenantId}.ciamlogin.com).
9844
+ */
9845
+ cloud?: "global" | "us-government" | "china" | "external-id";
9846
+ /**
9847
+ * The External ID custom URL domain users sign in on. Only valid with cloud set to external-id. Moves the browser login endpoints to this host; the token issuer stays on {tenantId}.ciamlogin.com.
9848
+ */
9849
+ customDomain?: string;
9842
9850
  /**
9843
9851
  * The Microsoft Entra application (client) ID UUID registered for the gateway's browser login flow.
9844
9852
  */
@@ -10596,7 +10604,7 @@ export declare class McpOktaOAuthInboundPolicy extends InboundPolicy<McpOktaOAut
10596
10604
  */
10597
10605
  export declare interface McpOktaOAuthInboundPolicyOptions {
10598
10606
  /**
10599
- * The Okta org domain, without https://, a trailing slash, or a path.
10607
+ * The Okta org domain or Okta custom domain, without https://, a port, a trailing slash, or a path.
10600
10608
  */
10601
10609
  oktaDomain: string;
10602
10610
  /**
@@ -11063,6 +11071,10 @@ export declare interface McpWorkosOAuthInboundPolicyOptions {
11063
11071
  * The WorkOS client_id registered for the gateway's browser login flow. The OIDC issuer and JWKS URL are derived from this client ID.
11064
11072
  */
11065
11073
  clientId: string;
11074
+ /**
11075
+ * The WorkOS API hostname. Set this to your WorkOS custom authentication API domain when you use one; the OIDC issuer, JWKS URL, and browser login endpoints are derived from it. Omit it to use api.workos.com.
11076
+ */
11077
+ apiHostname?: string;
11066
11078
  /**
11067
11079
  * The WorkOS client_secret. Use $env(...) to source from a secret environment variable.
11068
11080
  */
@@ -1664,6 +1664,14 @@ export declare interface McpEntraOAuthInboundPolicyOptions {
1664
1664
  * The Microsoft Entra tenant UUID. Multi-tenant aliases like common and organizations are not supported by this policy yet.
1665
1665
  */
1666
1666
  tenantId: string;
1667
+ /**
1668
+ * The Microsoft Entra cloud or tenant type. Use us-government for Microsoft Entra ID for US Government (login.microsoftonline.us), china for Microsoft Entra ID operated by 21Vianet (login.chinacloudapi.cn), and external-id for a Microsoft Entra External ID tenant ({tenantId}.ciamlogin.com).
1669
+ */
1670
+ cloud?: "global" | "us-government" | "china" | "external-id";
1671
+ /**
1672
+ * The External ID custom URL domain users sign in on. Only valid with cloud set to external-id. Moves the browser login endpoints to this host; the token issuer stays on {tenantId}.ciamlogin.com.
1673
+ */
1674
+ customDomain?: string;
1667
1675
  /**
1668
1676
  * The Microsoft Entra application (client) ID UUID registered for the gateway's browser login flow.
1669
1677
  */
@@ -2513,7 +2521,7 @@ export declare class McpOktaOAuthInboundPolicy extends InboundPolicy<McpOktaOAut
2513
2521
  */
2514
2522
  export declare interface McpOktaOAuthInboundPolicyOptions {
2515
2523
  /**
2516
- * The Okta org domain, without https://, a trailing slash, or a path.
2524
+ * The Okta org domain or Okta custom domain, without https://, a port, a trailing slash, or a path.
2517
2525
  */
2518
2526
  oktaDomain: string;
2519
2527
  /**
@@ -3134,6 +3142,10 @@ export declare interface McpWorkosOAuthInboundPolicyOptions {
3134
3142
  * The WorkOS client_id registered for the gateway's browser login flow. The OIDC issuer and JWKS URL are derived from this client ID.
3135
3143
  */
3136
3144
  clientId: string;
3145
+ /**
3146
+ * The WorkOS API hostname. Set this to your WorkOS custom authentication API domain when you use one; the OIDC issuer, JWKS URL, and browser login endpoints are derived from it. Omit it to use api.workos.com.
3147
+ */
3148
+ apiHostname?: string;
3137
3149
  /**
3138
3150
  * The WorkOS client_secret. Use $env(...) to source from a secret environment variable.
3139
3151
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "7.15.30",
4
+ "version": "7.15.33",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {