@stackone/connect-sdk 1.18.0 → 1.19.0
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/dist/index.es.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/connectors/schemas.d.ts +8 -8
- package/package.json +1 -1
package/dist/index.es.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{StepFunctionsFactory as t,StepFunctionName as e,AUTHENTICATION_SCHEMA as o}from"@stackone/core";import{safeEvaluate as n}from"@stackone/expressions";import{notMissing as
|
|
1
|
+
import{StepFunctionsFactory as t,StepFunctionName as e,AUTHENTICATION_SCHEMA as o}from"@stackone/core";import{safeEvaluate as n,safeEvaluateRecord as r}from"@stackone/expressions";import{isObject as i,notMissing as s,isString as a,isMissing as c}from"@stackone/utils";import{HttpClientManager as p}from"@stackone/transport";import{match as u}from"path-to-regexp";import{parse as l}from"yaml";import{z as d}from"zod";const y=async({block:o,stepFunctionName:n,params:r,buildStepFunction:i=t.build})=>{const s=i({functionName:n}).fn,a=await s({block:o,params:r}),c=n===e.MAP_FIELDS?{[e.MAP_FIELDS.toString()]:{output:{data:a.block.result},errors:a.errors,successful:a.successful}}:{};return{...a.block,steps:{...a?.block?.steps??{},...c}}},m=async({block:e,buildStepFunction:o=t.build})=>{const r=e.operation?.steps||[];let i={...e};const s=Object.keys(r);let a=!1;for(const t of s){const e=r[t],s=e.stepFunction,c=o({functionName:s.functionName,version:s.version,validateSchemas:!0}).fn;if(e.condition&&!n(e.condition,i)){i=b({block:i,stepId:t,successful:!0,skipped:!0,message:"Step skipped due to condition not met."});continue}if(a){i=b({block:i,stepId:t,successful:!1,skipped:!0,message:"Step skipped due to previous error."});continue}const p=await c({block:i,params:s.params});if(!1===p.successful){i=b({block:i,stepId:t,successful:!1,functionOutput:p});(e.ignoreError??!1)||(a=!0)}else i=b({block:p.block,stepId:t,functionOutput:p})}const c=e.operation?.result?g(e.operation.result,i):void 0;return{...i,outputs:c}},g=(t,e)=>i(t)?r(t,e):n(t,e),b=({block:t,stepId:e,successful:o,functionOutput:n,skipped:r,message:i})=>({...t,steps:{...t.steps,[e]:{successful:o??n?.successful??!1,errors:n?.errors,output:n?.output,skipped:r,message:i}}}),h=async({inputs:t,context:e,operation:o,credentials:n,logger:r,getHttpClient:i=async()=>p.getInstance()})=>({inputs:t,fieldConfigs:[],context:e,operation:o,credentials:n,httpClient:await i(),logger:r}),_=({category:t,connectorKey:e,connectorVersion:o,authConfigKey:n,environment:r="production",operation:i,accountSecureId:s,projectSecureId:a})=>({projectSecureId:a,accountSecureId:s,connectorKey:e,connectorVersion:o,category:t,service:"",resource:"",schema:i?.schema?.key,operationType:i?.operationType??"unknown",authenticationType:n,environment:r}),f=(t,e,o)=>{const n=o.toUpperCase();if(!t.operations)return;const r=Object.keys(t.operations),i=v(e,n,r);return i?{operation:t.operations?.[i.path],params:i.params}:void 0},k=t=>{const e=t.startsWith("/")?t.slice(1):t;return e.endsWith("/")?e.slice(0,-1):e},v=(t,e,o)=>{const n=k(t);for(const t of o)if(t.startsWith(e)){const o=t.replace(`${e} `,"").trim(),r=u(k(o))(k(n));if(!1!==r)return{path:t,params:r.params}}},I=d.object({key:d.string(),label:d.string(),type:d.string(),required:d.boolean().optional(),secret:d.boolean().optional(),placeholder:d.string().optional(),description:d.string().optional(),tooltip:d.string().optional()}),E=d.object({operationId:d.string(),categories:d.string().array(),operationType:d.string(),schema:d.string().optional(),entrypointUrl:d.string().optional(),entrypointHttpMethod:d.string().optional(),description:d.string(),inputs:d.object({name:d.string(),type:d.string(),required:d.boolean(),description:d.string(),in:d.string()}).array().optional(),fieldConfigs:d.object({targetFieldKey:d.string(),expression:d.string(),type:d.enum(["string","number","boolean","datetime_string","enum"]),isUnified:d.boolean(),enumMapper:d.object({matcher:d.enum(["country_alpha2code_by_alpha2code","country_alpha3code_by_alpha3code","country_code_by_country_code","country_name_by_country_name","country_name_by_alpha3code","country_name_by_alpha2code","country_name_by_country_code","country_alpha3code_by_alpha2code","country_alpha3code_by_country_name","country_alpha3code_by_country_code","country_alpha2code_by_alpha3code","country_alpha2code_by_country_name","country_alpha2code_by_country_code","country_code_by_alpha2code","country_code_by_alpha3code","country_code_by_country_name","country_subdivisions_by_alpha2code","country_subdivision_code_by_subdivision_name","country_alpha2code_by_citizenship","country_subdivision_name_by_subdivision_code"]).or(d.object({matchExpression:d.string(),value:d.string()}).array())}).optional()}).array().optional(),steps:d.object({stepId:d.string(),description:d.string(),stepFunction:d.object({functionName:d.string(),version:d.string().optional(),parameters:d.record(d.string(),d.unknown())}),condition:d.string().optional(),ignoreError:d.boolean().optional()}).array(),result:d.string().or(d.record(d.string(),d.unknown())).optional()}),S=d.object({StackOne:d.string(),info:d.object({title:d.string(),version:d.string(),key:d.string(),description:d.string().optional()}),baseUrl:d.string(),authentication:d.record(d.string(),d.object({type:d.string(),label:d.string(),authorization:o,environments:d.object({key:d.string(),name:d.string()}).array(),support:d.object({link:d.string(),description:d.string().optional()}),configFields:I.array().optional(),setupFields:I.array().optional(),testOperationsIds:d.string().array().optional()})).array().optional(),operations:E.array().optional()});function j(t){try{const e=l(t),o=S.parse(e),n={title:o.info.title,version:o.info.version,key:o.info.key,description:o.info.description},r=w(o),i={baseUrl:o.baseUrl,authentication:F(r)},a=T(o,i);return n.operations=a,n.authentication=r,s(a)&&(n.categories=O(Object.values(a))),n}catch(t){throw new Error(`Error parsing YAML file: ${t.message}`)}}const F=t=>{const e={};for(const[o,n]of Object.entries(t))if(n&&"object"==typeof n){const{setupFields:t,configFields:r,support:i,testOperationsIds:s,...a}=n;e[o]=F(a)}else e[o]=n;return e},O=t=>{const e=t.reduce(((t,e)=>{for(const o of e.categories)t.add(o);return t}),new Set);return Array.from(e)},w=t=>{const e={};for(const o of t.authentication??[]){const[t]=Object.keys(o),n=o[t].environments.reduce(((e,n)=>{const{key:r,name:i}=n,{environments:s,...a}=o[t];return e[r]={...a,envKey:r,envName:i},e}),{});e[t]=n}return e},T=(t,e)=>{const o=t.operations?.reduce(((t,o)=>{const n=(t=>t.entrypointUrl&&t.entrypointHttpMethod?`${t.entrypointHttpMethod.toUpperCase()} ${t.entrypointUrl}`:void 0)(o),r=(t=>"list"===t.operationType?`GET /${t.schema}`:`GET /${t.schema}/:id`)(o),i=(t=>"list"===t.operationType?`/${t.schema}`:`/${t.schema}/:id`)(o);return t[n??r]={id:o.operationId,categories:o.categories,description:o.description,operationType:o.operationType,entrypointUrl:o.entrypointUrl??i,entrypointHttpMethod:o.entrypointHttpMethod??"get",inputs:o.inputs,steps:o.steps.reduce(((t,n)=>(t[n.stepId]={id:n.stepId,description:n.description,condition:n.condition,ignoreError:n.ignoreError,stepFunction:{functionName:n.stepFunction.functionName,version:n.stepFunction.version,params:{..."request"===n.stepFunction.functionName?e:{},..."map_fields"===n.stepFunction.functionName||"typecast"===n.stepFunction.functionName?{fields:o.fieldConfigs}:{},...n.stepFunction.parameters}}},t)),{}),result:o.result},t}),{});return o},N=(t,e)=>{if(!t.inputs)return{};const o=x(t.inputs).parse(e);return{...o.headers??{},...o.query??{},...o.path??{},...o.body??{}}},C=t=>{const e={};return t.forEach((t=>{let o;switch(t.type.toLowerCase()){case"string":o=d.string();break;case"number":o=d.number();break;case"boolean":o=d.boolean();break;default:o=d.any()}e[t.name]=t.required?o:o.optional()})),d.object(e)},x=t=>{const e=t.filter((t=>"path"===t.in)),o=t.filter((t=>"query"===t.in)),n=t.filter((t=>"body"===t.in)),r=t.filter((t=>"headers"===t.in));return d.object({path:C(e).optional(),query:C(o).optional(),body:C(n).optional(),headers:C(r).optional()})};class R extends Error{constructor(t,e,o){super(o),this.name="ConnectSDKError",this.errorType=t,this.context=e,Error.captureStackTrace&&Error.captureStackTrace(this,R)}toString(){return`${this.name} [${this.errorType}]: ${this.message}`}}class U extends R{constructor(t,e){super("CONNECTOR_PARSE_ERROR",t,e),this.name="ConnectorParseError"}}class M extends R{constructor(t,e){super("MISSING_OPERATION_ERROR",t,e),this.name="MissingOperationError"}}class $ extends R{constructor(t,e){super("INVALID_OPERATION_INPUTS_ERROR",t,e),this.name="InvalidOperationInputsError"}}const K=async({account:t,connector:e,category:o,path:n,method:r="get",queryParams:i,body:s,headers:p,logger:u,parseConnector:l=j,getOperationFromUrlFn:d=f,parseOperationInputsFn:y=N,createBlockContextFn:g=_,createBlockFn:b=h,runStepOperationFn:k=m})=>{const v=t.authConfigKey,I=t.environment??"production",E=t.secureId,S=t.projectSecureId,F=t.credentials,O=g({category:o,connectorKey:t.providerKey,connectorVersion:t.providerVersion,authConfigKey:v,environment:I,accountSecureId:E,projectSecureId:S});let w;try{w=a(e)?l(e):e}catch{throw new U(O,"Error while parsing connector")}const T=d(w,n,r);if(c(T))throw new M(O,"No matching operation found");let C;O.operationType=T.operation.operationType,O.schema=T.operation.schema?.key;try{C=y(T.operation,{query:i,body:s,headers:p,path:T.params})}catch{throw new $(O,"Error while parsing operation inputs")}const x=await b({inputs:C,context:O,operation:T.operation,credentials:F,logger:u});return await k({block:x})};export{R as ConnectSDKError,h as createBlock,y as executeStepFunction,f as getOperationFromUrl,N as parseOperationInputs,j as parseYamlConnector,K as runConnectorOperation,m as runStepOperation};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@stackone/core"),t=require("@stackone/expressions"),o=require("@stackone/utils"),n=require("@stackone/transport"),r=require("path-to-regexp"),i=require("yaml"),s=require("zod");const a=async({block:o,buildStepFunction:n=e.StepFunctionsFactory.build})=>{const r=o.operation?.steps||[];let i={...o};const s=Object.keys(r);let a=!1;for(const e of s){const o=r[e],s=o.stepFunction,
|
|
1
|
+
"use strict";var e=require("@stackone/core"),t=require("@stackone/expressions"),o=require("@stackone/utils"),n=require("@stackone/transport"),r=require("path-to-regexp"),i=require("yaml"),s=require("zod");const a=async({block:o,buildStepFunction:n=e.StepFunctionsFactory.build})=>{const r=o.operation?.steps||[];let i={...o};const s=Object.keys(r);let a=!1;for(const e of s){const o=r[e],s=o.stepFunction,c=n({functionName:s.functionName,version:s.version,validateSchemas:!0}).fn;if(o.condition&&!t.safeEvaluate(o.condition,i)){i=p({block:i,stepId:e,successful:!0,skipped:!0,message:"Step skipped due to condition not met."});continue}if(a){i=p({block:i,stepId:e,successful:!1,skipped:!0,message:"Step skipped due to previous error."});continue}const u=await c({block:i,params:s.params});if(!1===u.successful){i=p({block:i,stepId:e,successful:!1,functionOutput:u});(o.ignoreError??!1)||(a=!0)}else i=p({block:u.block,stepId:e,functionOutput:u})}const u=o.operation?.result?c(o.operation.result,i):void 0;return{...i,outputs:u}},c=(e,n)=>o.isObject(e)?t.safeEvaluateRecord(e,n):t.safeEvaluate(e,n),p=({block:e,stepId:t,successful:o,functionOutput:n,skipped:r,message:i})=>({...e,steps:{...e.steps,[t]:{successful:o??n?.successful??!1,errors:n?.errors,output:n?.output,skipped:r,message:i}}}),u=async({inputs:e,context:t,operation:o,credentials:r,logger:i,getHttpClient:s=async()=>n.HttpClientManager.getInstance()})=>({inputs:e,fieldConfigs:[],context:t,operation:o,credentials:r,httpClient:await s(),logger:i}),l=({category:e,connectorKey:t,connectorVersion:o,authConfigKey:n,environment:r="production",operation:i,accountSecureId:s,projectSecureId:a})=>({projectSecureId:a,accountSecureId:s,connectorKey:t,connectorVersion:o,category:e,service:"",resource:"",schema:i?.schema?.key,operationType:i?.operationType??"unknown",authenticationType:n,environment:r}),d=(e,t,o)=>{const n=o.toUpperCase();if(!e.operations)return;const r=Object.keys(e.operations),i=g(t,n,r);return i?{operation:e.operations?.[i.path],params:i.params}:void 0},y=e=>{const t=e.startsWith("/")?e.slice(1):e;return t.endsWith("/")?t.slice(0,-1):t},g=(e,t,o)=>{const n=y(e);for(const e of o)if(e.startsWith(t)){const o=e.replace(`${t} `,"").trim(),i=r.match(y(o))(y(n));if(!1!==i)return{path:e,params:i.params}}},b=s.z.object({key:s.z.string(),label:s.z.string(),type:s.z.string(),required:s.z.boolean().optional(),secret:s.z.boolean().optional(),placeholder:s.z.string().optional(),description:s.z.string().optional(),tooltip:s.z.string().optional()}),m=s.z.object({operationId:s.z.string(),categories:s.z.string().array(),operationType:s.z.string(),schema:s.z.string().optional(),entrypointUrl:s.z.string().optional(),entrypointHttpMethod:s.z.string().optional(),description:s.z.string(),inputs:s.z.object({name:s.z.string(),type:s.z.string(),required:s.z.boolean(),description:s.z.string(),in:s.z.string()}).array().optional(),fieldConfigs:s.z.object({targetFieldKey:s.z.string(),expression:s.z.string(),type:s.z.enum(["string","number","boolean","datetime_string","enum"]),isUnified:s.z.boolean(),enumMapper:s.z.object({matcher:s.z.enum(["country_alpha2code_by_alpha2code","country_alpha3code_by_alpha3code","country_code_by_country_code","country_name_by_country_name","country_name_by_alpha3code","country_name_by_alpha2code","country_name_by_country_code","country_alpha3code_by_alpha2code","country_alpha3code_by_country_name","country_alpha3code_by_country_code","country_alpha2code_by_alpha3code","country_alpha2code_by_country_name","country_alpha2code_by_country_code","country_code_by_alpha2code","country_code_by_alpha3code","country_code_by_country_name","country_subdivisions_by_alpha2code","country_subdivision_code_by_subdivision_name","country_alpha2code_by_citizenship","country_subdivision_name_by_subdivision_code"]).or(s.z.object({matchExpression:s.z.string(),value:s.z.string()}).array())}).optional()}).array().optional(),steps:s.z.object({stepId:s.z.string(),description:s.z.string(),stepFunction:s.z.object({functionName:s.z.string(),version:s.z.string().optional(),parameters:s.z.record(s.z.string(),s.z.unknown())}),condition:s.z.string().optional(),ignoreError:s.z.boolean().optional()}).array(),result:s.z.string().or(s.z.record(s.z.string(),s.z.unknown())).optional()}),h=s.z.object({StackOne:s.z.string(),info:s.z.object({title:s.z.string(),version:s.z.string(),key:s.z.string(),description:s.z.string().optional()}),baseUrl:s.z.string(),authentication:s.z.record(s.z.string(),s.z.object({type:s.z.string(),label:s.z.string(),authorization:e.AUTHENTICATION_SCHEMA,environments:s.z.object({key:s.z.string(),name:s.z.string()}).array(),support:s.z.object({link:s.z.string(),description:s.z.string().optional()}),configFields:b.array().optional(),setupFields:b.array().optional(),testOperationsIds:s.z.string().array().optional()})).array().optional(),operations:m.array().optional()});function _(e){try{const t=i.parse(e),n=h.parse(t),r={title:n.info.title,version:n.info.version,key:n.info.key,description:n.info.description},s=k(n),a={baseUrl:n.baseUrl,authentication:z(s)},c=v(n,a);return r.operations=c,r.authentication=s,o.notMissing(c)&&(r.categories=f(Object.values(c))),r}catch(e){throw new Error(`Error parsing YAML file: ${e.message}`)}}const z=e=>{const t={};for(const[o,n]of Object.entries(e))if(n&&"object"==typeof n){const{setupFields:e,configFields:r,support:i,testOperationsIds:s,...a}=n;t[o]=z(a)}else t[o]=n;return t},f=e=>{const t=e.reduce(((e,t)=>{for(const o of t.categories)e.add(o);return e}),new Set);return Array.from(t)},k=e=>{const t={};for(const o of e.authentication??[]){const[e]=Object.keys(o),n=o[e].environments.reduce(((t,n)=>{const{key:r,name:i}=n,{environments:s,...a}=o[e];return t[r]={...a,envKey:r,envName:i},t}),{});t[e]=n}return t},v=(e,t)=>{const o=e.operations?.reduce(((e,o)=>{const n=(e=>e.entrypointUrl&&e.entrypointHttpMethod?`${e.entrypointHttpMethod.toUpperCase()} ${e.entrypointUrl}`:void 0)(o),r=(e=>"list"===e.operationType?`GET /${e.schema}`:`GET /${e.schema}/:id`)(o),i=(e=>"list"===e.operationType?`/${e.schema}`:`/${e.schema}/:id`)(o);return e[n??r]={id:o.operationId,categories:o.categories,description:o.description,operationType:o.operationType,entrypointUrl:o.entrypointUrl??i,entrypointHttpMethod:o.entrypointHttpMethod??"get",inputs:o.inputs,steps:o.steps.reduce(((e,n)=>(e[n.stepId]={id:n.stepId,description:n.description,condition:n.condition,ignoreError:n.ignoreError,stepFunction:{functionName:n.stepFunction.functionName,version:n.stepFunction.version,params:{..."request"===n.stepFunction.functionName?t:{},..."map_fields"===n.stepFunction.functionName||"typecast"===n.stepFunction.functionName?{fields:o.fieldConfigs}:{},...n.stepFunction.parameters}}},e)),{}),result:o.result},e}),{});return o},I=(e,t)=>{if(!e.inputs)return{};const o=E(e.inputs).parse(t);return{...o.headers??{},...o.query??{},...o.path??{},...o.body??{}}},S=e=>{const t={};return e.forEach((e=>{let o;switch(e.type.toLowerCase()){case"string":o=s.z.string();break;case"number":o=s.z.number();break;case"boolean":o=s.z.boolean();break;default:o=s.z.any()}t[e.name]=e.required?o:o.optional()})),s.z.object(t)},E=e=>{const t=e.filter((e=>"path"===e.in)),o=e.filter((e=>"query"===e.in)),n=e.filter((e=>"body"===e.in)),r=e.filter((e=>"headers"===e.in));return s.z.object({path:S(t).optional(),query:S(o).optional(),body:S(n).optional(),headers:S(r).optional()})};class F extends Error{constructor(e,t,o){super(o),this.name="ConnectSDKError",this.errorType=e,this.context=t,Error.captureStackTrace&&Error.captureStackTrace(this,F)}toString(){return`${this.name} [${this.errorType}]: ${this.message}`}}class O extends F{constructor(e,t){super("CONNECTOR_PARSE_ERROR",e,t),this.name="ConnectorParseError"}}class j extends F{constructor(e,t){super("MISSING_OPERATION_ERROR",e,t),this.name="MissingOperationError"}}class C extends F{constructor(e,t){super("INVALID_OPERATION_INPUTS_ERROR",e,t),this.name="InvalidOperationInputsError"}}exports.ConnectSDKError=F,exports.createBlock=u,exports.executeStepFunction=async({block:t,stepFunctionName:o,params:n,buildStepFunction:r=e.StepFunctionsFactory.build})=>{const i=r({functionName:o}).fn,s=await i({block:t,params:n}),a=o===e.StepFunctionName.MAP_FIELDS?{[e.StepFunctionName.MAP_FIELDS.toString()]:{output:{data:s.block.result},errors:s.errors,successful:s.successful}}:{};return{...s.block,steps:{...s?.block?.steps??{},...a}}},exports.getOperationFromUrl=d,exports.parseOperationInputs=I,exports.parseYamlConnector=_,exports.runConnectorOperation=async({account:e,connector:t,category:n,path:r,method:i="get",queryParams:s,body:c,headers:p,logger:y,parseConnector:g=_,getOperationFromUrlFn:b=d,parseOperationInputsFn:m=I,createBlockContextFn:h=l,createBlockFn:z=u,runStepOperationFn:f=a})=>{const k=e.authConfigKey,v=e.environment??"production",S=e.secureId,E=e.projectSecureId,F=e.credentials,N=h({category:n,connectorKey:e.providerKey,connectorVersion:e.providerVersion,authConfigKey:k,environment:v,accountSecureId:S,projectSecureId:E});let T;try{T=o.isString(t)?g(t):t}catch{throw new O(N,"Error while parsing connector")}const x=b(T,r,i);if(o.isMissing(x))throw new j(N,"No matching operation found");let w;N.operationType=x.operation.operationType,N.schema=x.operation.schema?.key;try{w=m(x.operation,{query:s,body:c,headers:p,path:x.params})}catch{throw new C(N,"Error while parsing operation inputs")}const q=await z({inputs:w,context:N,operation:x.operation,credentials:F,logger:y});return await f({block:q})},exports.runStepOperation=a;
|
|
@@ -115,7 +115,7 @@ export declare const OPERATION_SCHEMA: z.ZodObject<{
|
|
|
115
115
|
condition?: string | undefined;
|
|
116
116
|
ignoreError?: boolean | undefined;
|
|
117
117
|
}>, "many">;
|
|
118
|
-
result: z.ZodString
|
|
118
|
+
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
120
|
description: string;
|
|
121
121
|
operationId: string;
|
|
@@ -132,7 +132,6 @@ export declare const OPERATION_SCHEMA: z.ZodObject<{
|
|
|
132
132
|
condition?: string | undefined;
|
|
133
133
|
ignoreError?: boolean | undefined;
|
|
134
134
|
}[];
|
|
135
|
-
result: string;
|
|
136
135
|
schema?: string | undefined;
|
|
137
136
|
entrypointUrl?: string | undefined;
|
|
138
137
|
entrypointHttpMethod?: string | undefined;
|
|
@@ -155,6 +154,7 @@ export declare const OPERATION_SCHEMA: z.ZodObject<{
|
|
|
155
154
|
}[];
|
|
156
155
|
} | undefined;
|
|
157
156
|
}[] | undefined;
|
|
157
|
+
result?: string | Record<string, unknown> | undefined;
|
|
158
158
|
}, {
|
|
159
159
|
description: string;
|
|
160
160
|
operationId: string;
|
|
@@ -171,7 +171,6 @@ export declare const OPERATION_SCHEMA: z.ZodObject<{
|
|
|
171
171
|
condition?: string | undefined;
|
|
172
172
|
ignoreError?: boolean | undefined;
|
|
173
173
|
}[];
|
|
174
|
-
result: string;
|
|
175
174
|
schema?: string | undefined;
|
|
176
175
|
entrypointUrl?: string | undefined;
|
|
177
176
|
entrypointHttpMethod?: string | undefined;
|
|
@@ -194,6 +193,7 @@ export declare const OPERATION_SCHEMA: z.ZodObject<{
|
|
|
194
193
|
}[];
|
|
195
194
|
} | undefined;
|
|
196
195
|
}[] | undefined;
|
|
196
|
+
result?: string | Record<string, unknown> | undefined;
|
|
197
197
|
}>;
|
|
198
198
|
export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
199
199
|
StackOne: z.ZodString;
|
|
@@ -518,7 +518,7 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
518
518
|
condition?: string | undefined;
|
|
519
519
|
ignoreError?: boolean | undefined;
|
|
520
520
|
}>, "many">;
|
|
521
|
-
result: z.ZodString
|
|
521
|
+
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
522
522
|
}, "strip", z.ZodTypeAny, {
|
|
523
523
|
description: string;
|
|
524
524
|
operationId: string;
|
|
@@ -535,7 +535,6 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
535
535
|
condition?: string | undefined;
|
|
536
536
|
ignoreError?: boolean | undefined;
|
|
537
537
|
}[];
|
|
538
|
-
result: string;
|
|
539
538
|
schema?: string | undefined;
|
|
540
539
|
entrypointUrl?: string | undefined;
|
|
541
540
|
entrypointHttpMethod?: string | undefined;
|
|
@@ -558,6 +557,7 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
558
557
|
}[];
|
|
559
558
|
} | undefined;
|
|
560
559
|
}[] | undefined;
|
|
560
|
+
result?: string | Record<string, unknown> | undefined;
|
|
561
561
|
}, {
|
|
562
562
|
description: string;
|
|
563
563
|
operationId: string;
|
|
@@ -574,7 +574,6 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
574
574
|
condition?: string | undefined;
|
|
575
575
|
ignoreError?: boolean | undefined;
|
|
576
576
|
}[];
|
|
577
|
-
result: string;
|
|
578
577
|
schema?: string | undefined;
|
|
579
578
|
entrypointUrl?: string | undefined;
|
|
580
579
|
entrypointHttpMethod?: string | undefined;
|
|
@@ -597,6 +596,7 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
597
596
|
}[];
|
|
598
597
|
} | undefined;
|
|
599
598
|
}[] | undefined;
|
|
599
|
+
result?: string | Record<string, unknown> | undefined;
|
|
600
600
|
}>, "many">>;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
602
|
StackOne: string;
|
|
@@ -665,7 +665,6 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
665
665
|
condition?: string | undefined;
|
|
666
666
|
ignoreError?: boolean | undefined;
|
|
667
667
|
}[];
|
|
668
|
-
result: string;
|
|
669
668
|
schema?: string | undefined;
|
|
670
669
|
entrypointUrl?: string | undefined;
|
|
671
670
|
entrypointHttpMethod?: string | undefined;
|
|
@@ -688,6 +687,7 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
688
687
|
}[];
|
|
689
688
|
} | undefined;
|
|
690
689
|
}[] | undefined;
|
|
690
|
+
result?: string | Record<string, unknown> | undefined;
|
|
691
691
|
}[] | undefined;
|
|
692
692
|
}, {
|
|
693
693
|
StackOne: string;
|
|
@@ -756,7 +756,6 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
756
756
|
condition?: string | undefined;
|
|
757
757
|
ignoreError?: boolean | undefined;
|
|
758
758
|
}[];
|
|
759
|
-
result: string;
|
|
760
759
|
schema?: string | undefined;
|
|
761
760
|
entrypointUrl?: string | undefined;
|
|
762
761
|
entrypointHttpMethod?: string | undefined;
|
|
@@ -779,5 +778,6 @@ export declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
|
|
|
779
778
|
}[];
|
|
780
779
|
} | undefined;
|
|
781
780
|
}[] | undefined;
|
|
781
|
+
result?: string | Record<string, unknown> | undefined;
|
|
782
782
|
}[] | undefined;
|
|
783
783
|
}>;
|