@powerhousedao/pieces-framework 6.2.3-dev.23 → 6.2.3-dev.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.
@@ -1 +1 @@
1
- {"version":3,"file":"action--RmO83_Y.d.ts","names":[],"sources":["../upstream/core-piece-types/lib/piece.ts","../upstream/core-utils/lib/locale.ts","../upstream/framework/lib/output-schema.ts","../upstream/framework/lib/trigger/trigger.ts","../upstream/framework/lib/context/versioning.ts","../upstream/framework/lib/piece-metadata.ts","../upstream/framework/lib/action/action.ts"],"mappings":";;;;aAEY,WAAA;EACV,OAAA;EACA,QAAA;AAAA;AAAA,aAGU,SAAA;EACV,MAAA;EACA,QAAA;AAAA;AAAA,aAGU,aAAA;EACV,uBAAA;EACA,aAAA;EACA,QAAA;EACA,IAAA;EACA,YAAA;EACA,YAAA;EACA,qBAAA;EACA,UAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,gBAAA;EACA,iBAAA;EACA,eAAA;EACA,kBAAA;EACA,SAAA;EACA,aAAA;AAAA;;;aC3BU,WAAA;EACV,KAAA;EACA,OAAA;EACA,MAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,kBAAA;EACA,UAAA;EACA,MAAA;EACA,mBAAA;AAAA;;;KCVU,WAAA;AAAA,KAaA,iBAAA;EACV,GAAA;EACA,KAAA;EACA,KAAA;EACA,MAAA,GAAS,WAAA;EACT,WAAA;EACA,UAAA;EFjBQ;AAGV;;;;;AAKA;EEiBE,QAAA;EACA,QAAA;EACA,QAAA,GAAW,iBAAA;EACX,SAAA,GAAY,iBAAA;AAAA;AAAA,KAGF,YAAA;EACV,MAAA,EAAQ,iBAAA;EFnBR;;;;;;;EE2BA,SAAA;AAAA;;;cCfW,mBAAA;AAAA,aAED,oBAAA;EACV,IAAA;EACA,IAAA;AAAA;AAAA,KAGG,aAAA,mBACe,iBAAA,mCACG,gBAAA,KAClB,GAAA,EAAK,cAAA,CAAe,SA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CAAA,SAAA,EAAA,WAAA"}
1
+ {"version":3,"file":"action-BOq8m66H.d.ts","names":[],"sources":["../upstream/core-piece-types/lib/piece.ts","../upstream/core-utils/lib/locale.ts","../upstream/framework/lib/output-schema.ts","../upstream/framework/lib/trigger/trigger.ts","../upstream/framework/lib/context/versioning.ts","../upstream/framework/lib/piece-metadata.ts","../upstream/framework/lib/action/action.ts"],"mappings":";;;aAEY;EACV;EACA;;aAGU;EACV;EACA;;aAGU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;aC3BU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KCVU;KAaA;EACV;EACA;EACA;EACA,SAAS;EACT;EACA;;;;;;;;EAQA;EACA;EACA,WAAW;EACX,YAAY;;KAGF;EACV,QAAQ;;;;;;;;EAQR;;;;cCfW;aAED;EACV;EACA;;KAGG,cACH,kBAAkB,+BAClB,qBAAqB,qBAClB,KAAK,eAAe,WAAW,kBAAkB;cAEzC,2BAAyB,EAAA,uBAAA,EAAA;;;;;GAQpC,EAAA,KAAA;KACU,4BAA4B,EAAE,aACjC;UAGQ;EACf;EACA;EACA,UAAU;;KAGP,kBACH,kBAAkB,oBAAoB,iCACtC,qBAAqB,kBACrB,WAAW;EAEX;EACA;EACA;EACA;EACA,OAAO;EACP,OAAO;EACP,iBAAiB;EACjB,MAAM;EACN,WACE,SAAS,mBACP,uCAAuC,YACvC,cACA,QAEC;EACL,YACE,SAAS,mBACP,uCAAuC,YACvC,cACA,QAEC;EACL,MACE,SAAS,qBACP,uCAAuC,YACvC,cACA,QAEC;EACL,QACE,SAAS,qBACP,uCAAuC,YACvC,cACA,QAEC;EACL,UAAU,cACR,uCAAuC,YACvC;EAEF;EACA,eAAe;EACf,aAAa;EACb,iBAAiB;;KAGd,qBACH,kBAAkB,oBAAoB,iCACtC,qBAAqB,kBACrB,WAAW,mBACT,kBAAkB,WAAW,cAAc;EAC7C,yBAAyB;EACzB,eACE,SAAS,mBACP,uCAAuC,YACvC,cACA,QAEC,QAAQ;EACb,qBAAqB;EACrB,SACE,SAAS,mBACP,uCAAuC,YACvC,cACA,MAED;;KAGA,oBACH,kBAAkB,oBAAoB,iCACtC,qBAAqB,kBACrB,WAAW,mBACT,WAAW,gBAAgB,UAC3B,qBAAqB,WAAW,cAAc,MAC9C,kBAAkB,WAAW,cAAc;cAElC,SACX,WAAW,iBACX,kBAAkB,oBAAoB,iCACtC,qBAAqB,6BACV;WAEO;WACA;WACA;WACA;WACA,OAAO;WACP,MAAM;WACN,wBAAwB;WACxB,cACd,KAAK,mBACH,uCAAuC,YACvC,cACA,QAEC,QAAQ;WACG,oBAAoB;WACpB,UACd,KAAK,mBACH,uCAAuC,YACvC,cACA,QAEC;WACW,WACd,KAAK,mBACH,uCAAuC,YACvC,cACA,QAEC;WACW,YACd,KAAK,mBACH,uCAAuC,YACvC,cACA,QAEC;WACW,SAAS,cACvB,uCAAuC,YACvC;WAEc,MACd,KAAK,qBACH,uCAAuC,YACvC,cACA,QAEC;WACW,OACd,KAAK,qBACH,uCAAuC,YACvC,cACA,QAEC;WACW;WACA,cAAc;WACd,eAAe;WACf,aAAa;WACb,iBAAiB;WACjB,iBAAiB;EA5DnC,YACkB,cACA,qBACA,qBACA,sBACA,OAAO,cACP,MAAM,IACN,wBAAwB,+BACxB,cACd,KAAK,mBACH,uCAAuC,YACvC,cACA,QAEC,QAAQ,kBACG,oBAAoB,2BACpB,UACd,KAAK,mBACH,uCAAuC,YACvC,cACA,QAEC,eACW,WACd,KAAK,mBACH,uCAAuC,YACvC,cACA,QAEC,eACW,YACd,KAAK,mBACH,uCAAuC,YACvC,cACA,QAEC,eACW,SAAS,cACvB,uCAAuC,YACvC,eAEc,MACd,KAAK,qBACH,uCAAuC,YACvC,cACA,QAEC,oBACW,OACd,KAAK,qBACH,uCAAuC,YACvC,cACA,QAEC,oBACW,qBACA,cAAc,qBACd,eAAe,0BACf,a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nB,uCAAuC,YACvC;WAEc,MAAM,aACpB,uCAAuC,YACvC;WAEc;WACA,sBAAsB;WACtB,eAAe;WACf,WAAW;WACX,aAAa;WACb,iBAAiB;EAnBnC,YACkB,cACA,qBACA,qBACA,OAAO,aACP,gBAAgB,6BAChB,KAAK,aACnB,uCAAuC,YACvC,cAEc,MAAM,aACpB,uCAAuC,YACvC,cAEc,sBACA,sBAAsB,2BACtB,eAAe,0BACf,WAAW,sBACX,aAAa,wBACb,iBAAiB;;KAKzB,OACV,kBAAkB,oBAAoB,uCACtC,oBAAoB,0BAClB,QAAQ,WAAW;cAEV,eACX,kBAAkB,oBAAoB,kCACpC,mBAEF,oBAAoB,wBAAsB,QAElC,mBAAmB,WAAW,iBAAY,QAAA,WAAA"}
@@ -1,4 +1,4 @@
1
- import { A as PropertyType, C as CheckboxProperty, M as TPropertyValue, O as LongTextProperty, S as NumberProperty, T as StaticMultiSelectDropdownProperty, c as isNil, k as ShortTextProperty, t as MarkDownProperty, w as StaticDropdownProperty } from "./markdown-property-Df2l6_y_.js";
1
+ import { A as PropertyType, C as CheckboxProperty, M as TPropertyValue, O as LongTextProperty, S as NumberProperty, T as StaticMultiSelectDropdownProperty, c as isNil, k as ShortTextProperty, t as MarkDownProperty, w as StaticDropdownProperty } from "./markdown-property-DMfHjEiL.js";
2
2
  import * as z from "zod/mini";
3
3
 
4
4
  //#region upstream/core-piece-types/lib/app-connection.ts
@@ -82,14 +82,14 @@ const BasicAuthProperty = z.object({
82
82
  displayName: z.string(),
83
83
  description: z.optional(z.string())
84
84
  }),
85
- ...TPropertyValue(BasicAuthPropertyValue, PropertyType.BASIC_AUTH).shape
85
+ ...TPropertyValue(BasicAuthPropertyValue, "BASIC_AUTH").shape
86
86
  });
87
87
 
88
88
  //#endregion
89
89
  //#region upstream/framework/lib/property/authentication/secret-text-property.ts
90
90
  const SecretTextProperty = z.object({
91
91
  ...BasePieceAuthSchema.shape,
92
- ...TPropertyValue(z.object({ auth: z.string() }), PropertyType.SECRET_TEXT).shape
92
+ ...TPropertyValue(z.object({ auth: z.string() }), "SECRET_TEXT").shape
93
93
  });
94
94
 
95
95
  //#endregion
@@ -107,7 +107,7 @@ const CustomAuthProps = z.record(z.string(), z.union([
107
107
  const CustomAuthProperty = z.object({
108
108
  ...BasePieceAuthSchema.shape,
109
109
  props: CustomAuthProps,
110
- ...TPropertyValue(z.unknown(), PropertyType.CUSTOM_AUTH).shape
110
+ ...TPropertyValue(z.unknown(), "CUSTOM_AUTH").shape
111
111
  });
112
112
 
113
113
  //#endregion
@@ -125,7 +125,7 @@ const OIDCAuthProps = z.record(z.string(), z.union([
125
125
  const OIDCProperty = z.object({
126
126
  ...BasePieceAuthSchema.shape,
127
127
  props: OIDCAuthProps,
128
- ...TPropertyValue(z.unknown(), PropertyType.OIDC).shape
128
+ ...TPropertyValue(z.unknown(), "OIDC").shape
129
129
  });
130
130
 
131
131
  //#endregion
@@ -166,7 +166,7 @@ const OAuth2PropertyValue = z.object({
166
166
  const OAuth2Property = z.object({
167
167
  ...BasePieceAuthSchema.shape,
168
168
  ...OAuth2ExtraProps.shape,
169
- ...TPropertyValue(OAuth2PropertyValue, PropertyType.OAUTH2).shape
169
+ ...TPropertyValue(OAuth2PropertyValue, "OAUTH2").shape
170
170
  });
171
171
 
172
172
  //#endregion
@@ -184,14 +184,14 @@ const PieceAuth = {
184
184
  return {
185
185
  ...request,
186
186
  valueSchema: void 0,
187
- type: PropertyType.SECRET_TEXT
187
+ type: "SECRET_TEXT"
188
188
  };
189
189
  },
190
190
  OAuth2(request) {
191
191
  return {
192
192
  ...request,
193
193
  valueSchema: void 0,
194
- type: PropertyType.OAUTH2,
194
+ type: "OAUTH2",
195
195
  displayName: request.displayName || "Connection"
196
196
  };
197
197
  },
@@ -199,7 +199,7 @@ const PieceAuth = {
199
199
  return {
200
200
  ...request,
201
201
  valueSchema: void 0,
202
- type: PropertyType.BASIC_AUTH,
202
+ type: "BASIC_AUTH",
203
203
  displayName: request.displayName || "Connection",
204
204
  required: true
205
205
  };
@@ -208,7 +208,7 @@ const PieceAuth = {
208
208
  return {
209
209
  ...request,
210
210
  valueSchema: void 0,
211
- type: PropertyType.CUSTOM_AUTH,
211
+ type: "CUSTOM_AUTH",
212
212
  displayName: request.displayName || "Connection"
213
213
  };
214
214
  },
@@ -216,7 +216,7 @@ const PieceAuth = {
216
216
  return {
217
217
  ...request,
218
218
  valueSchema: void 0,
219
- type: PropertyType.OIDC,
219
+ type: "OIDC",
220
220
  displayName: request.displayName || "Connection"
221
221
  };
222
222
  },
@@ -227,16 +227,16 @@ function getAuthPropertyForValue({ authValueType, pieceAuth }) {
227
227
  return pieceAuth.find((auth) => authConnectionTypeToPropertyType[authValueType] === auth.type) ?? pieceAuth.at(0);
228
228
  }
229
229
  const authConnectionTypeToPropertyType = {
230
- [AppConnectionType.OAUTH2]: PropertyType.OAUTH2,
231
- [AppConnectionType.CLOUD_OAUTH2]: PropertyType.OAUTH2,
232
- [AppConnectionType.PLATFORM_OAUTH2]: PropertyType.OAUTH2,
233
- [AppConnectionType.BASIC_AUTH]: PropertyType.BASIC_AUTH,
234
- [AppConnectionType.CUSTOM_AUTH]: PropertyType.CUSTOM_AUTH,
235
- [AppConnectionType.OIDC]: PropertyType.OIDC,
236
- [AppConnectionType.SECRET_TEXT]: PropertyType.SECRET_TEXT,
237
- [AppConnectionType.NO_AUTH]: void 0
230
+ ["OAUTH2"]: "OAUTH2",
231
+ ["CLOUD_OAUTH2"]: "OAUTH2",
232
+ ["PLATFORM_OAUTH2"]: "OAUTH2",
233
+ ["BASIC_AUTH"]: "BASIC_AUTH",
234
+ ["CUSTOM_AUTH"]: "CUSTOM_AUTH",
235
+ ["OIDC"]: "OIDC",
236
+ ["SECRET_TEXT"]: "SECRET_TEXT",
237
+ ["NO_AUTH"]: void 0
238
238
  };
239
239
 
240
240
  //#endregion
241
241
  export { TriggerStrategy as _, OAuth2AuthorizationMethod as a, AppConnectionType as b, OAuth2Props as c, SecretTextProperty as d, BasicAuthProperty as f, AUTHENTICATION_PROPERTY_NAME as g, spreadIfDefined as h, getAuthPropertyForValue as i, OIDCProperty as l, isObject as m, PieceAuth as n, OAuth2Property as o, BasicAuthPropertyValue as p, PieceAuthProperty as r, OAuth2PropertyValue as s, DEFAULT_CONNECTION_DISPLAY_NAME as t, CustomAuthProperty as u, TriggerTestStrategy as v, OAuth2GrantType as x, WebhookHandshakeStrategy as y };
242
- //# sourceMappingURL=authentication-B7brX_It.js.map
242
+ //# sourceMappingURL=authentication-o-4CdAPR.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authentication-B7brX_It.js","names":[],"sources":["../upstream/core-piece-types/lib/app-connection.ts","../upstream/core-piece-types/lib/trigger.ts","../upstream/core-utils/lib/object-utils.ts","../upstream/framework/lib/property/authentication/common.ts","../upstream/framework/lib/property/authentication/basic-auth-prop.ts","../upstream/framework/lib/property/authentication/secret-text-property.ts","../upstream/framework/lib/property/authentication/custom-auth-prop.ts","../upstream/framework/lib/property/authentication/oidc-prop.ts","../upstream/framework/lib/property/authentication/oauth2-prop.ts","../upstream/framework/lib/property/authentication/index.ts"],"sourcesContent":["// Vendored from activepieces/activepieces@0.91.0 packages/core/piece-types/src/lib/app-connection.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nexport enum AppConnectionType {\n OAUTH2 = \"OAUTH2\",\n PLATFORM_OAUTH2 = \"PLATFORM_OAUTH2\",\n CLOUD_OAUTH2 = \"CLOUD_OAUTH2\",\n SECRET_TEXT = \"SECRET_TEXT\",\n BASIC_AUTH = \"BASIC_AUTH\",\n CUSTOM_AUTH = \"CUSTOM_AUTH\",\n OIDC = \"OIDC\",\n NO_AUTH = \"NO_AUTH\",\n}\n\nexport enum OAuth2GrantType {\n AUTHORIZATION_CODE = \"authorization_code\",\n CLIENT_CREDENTIALS = \"client_credentials\",\n}\n\nexport const BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE =\n \"both_client_credentials_and_authorization_code\";\n\nexport type SecretTextConnectionValue = {\n type: AppConnectionType.SECRET_TEXT;\n secret_text: string;\n};\n\nexport type BasicAuthConnectionValue = {\n username: string;\n password: string;\n type: AppConnectionType.BASIC_AUTH;\n};\n\nexport type BaseOAuth2ConnectionValue = {\n expires_in?: number;\n client_id: string;\n token_type: string;\n access_token: string;\n claimed_at: number;\n refresh_token: string;\n scope: string;\n token_url: string;\n grant_type?: OAuth2GrantType;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: Record<string, any>;\n props?: Record<string, unknown>;\n};\n\nexport type CustomAuthConnectionValue<\n T extends Record<string, unknown> = Record<string, unknown>,\n> = {\n type: AppConnectionType.CUSTOM_AUTH;\n props: T;\n access_token?: string;\n token_refresh_at?: number;\n};\n\nexport type OIDCConnectionValue<\n T extends Record<string, unknown> = Record<string, unknown>,\n> = {\n type: AppConnectionType.OIDC;\n props: T;\n};\n\nexport type CloudOAuth2ConnectionValue = {\n type: AppConnectionType.CLOUD_OAUTH2;\n} & BaseOAuth2ConnectionValue;\n\nexport type PlatformOAuth2ConnectionValue = {\n type: AppConnectionType.PLATFORM_OAUTH2;\n redirect_url: string;\n} & BaseOAuth2ConnectionValue;\n\nexport type OAuth2ConnectionValueWithApp = {\n type: AppConnectionType.OAUTH2;\n client_secret: string;\n redirect_url: string;\n} & BaseOAuth2ConnectionValue;\n\nexport type NoAuthConnectionValue = {\n type: AppConnectionType.NO_AUTH;\n};\n\nexport type AppConnectionValue<\n T extends AppConnectionType = AppConnectionType,\n PropsType extends Record<string, unknown> = Record<string, unknown>,\n> = T extends AppConnectionType.SECRET_TEXT\n ? SecretTextConnectionValue\n : T extends AppConnectionType.BASIC_AUTH\n ? BasicAuthConnectionValue\n : T extends AppConnectionType.CLOUD_OAUTH2\n ? CloudOAuth2ConnectionValue\n : T extends AppConnectionType.PLATFORM_OAUTH2\n ? PlatformOAuth2ConnectionValue\n : T extends AppConnectionType.OAUTH2\n ? OAuth2ConnectionValueWithApp\n : T extends AppConnectionType.CUSTOM_AUTH\n ? CustomAuthConnectionValue<PropsType>\n : T extends AppConnectionType.OIDC\n ? OIDCConnectionValue<PropsType>\n : T extends AppConnectionType.NO_AUTH\n ? NoAuthConnectionValue\n : never;\n","// Vendored from activepieces/activepieces@0.91.0 packages/core/piece-types/src/lib/trigger.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\n\nexport enum TriggerStrategy {\n POLLING = \"POLLING\",\n WEBHOOK = \"WEBHOOK\",\n APP_WEBHOOK = \"APP_WEBHOOK\",\n MANUAL = \"MANUAL\",\n}\n\nexport enum WebhookHandshakeStrategy {\n NONE = \"NONE\",\n HEADER_PRESENT = \"HEADER_PRESENT\",\n QUERY_PRESENT = \"QUERY_PRESENT\",\n BODY_PARAM_PRESENT = \"BODY_PARAM_PRESENT\",\n HEAD_REQUEST = \"HEAD_REQUEST\",\n}\n\nexport const WebhookHandshakeConfiguration = z.object({\n strategy: z.enum(WebhookHandshakeStrategy),\n paramName: z.optional(z.string()),\n});\nexport type WebhookHandshakeConfiguration = z.infer<\n typeof WebhookHandshakeConfiguration\n>;\n\nexport enum TriggerTestStrategy {\n SIMULATION = \"SIMULATION\",\n TEST_FUNCTION = \"TEST_FUNCTION\",\n}\n\nexport const AUTHENTICATION_PROPERTY_NAME = \"auth\";\n","// Vendored from activepieces/activepieces@0.91.0 packages/core/utils/src/lib/object-utils.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport { isNil, isString } from \"./utils.js\";\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function deleteProperties(\n obj: Record<string, unknown>,\n props: string[],\n) {\n const copy = { ...obj };\n for (const prop of props) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete copy[prop];\n }\n return copy;\n}\n\nexport function omit<T extends object, K extends keyof T>(\n obj: T,\n keysToOmit: K[],\n): Omit<T, K> {\n return Object.fromEntries(\n Object.entries(obj).filter(([key]) => !keysToOmit.includes(key as K)),\n ) as Omit<T, K>;\n}\n\nexport const spreadIfNotUndefined = <T>(\n key: string,\n value: T | undefined,\n): Record<string, T> => {\n if (value === undefined) {\n return {};\n }\n return {\n [key]: value,\n };\n};\n\nexport const spreadIfDefined = <T>(\n key: string,\n value: T | undefined | null,\n): Record<string, T> => {\n if (isNil(value)) {\n return {};\n }\n return {\n [key]: value,\n };\n};\n\nexport function deleteProps<\n T extends Record<string, unknown>,\n K extends keyof T,\n>(obj: T, prop: K[]): Omit<T, K> {\n const newObj = { ...obj };\n for (const p of prop) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete newObj[p];\n }\n return newObj;\n}\n\nexport function cloneResolvedValue(value: unknown): unknown {\n switch (typeof value) {\n case \"string\":\n case \"number\":\n case \"boolean\":\n return value;\n case \"object\": {\n if (value === null) {\n return null;\n }\n const serialized = JSON.stringify(value);\n return isNil(serialized) ? undefined : JSON.parse(serialized);\n }\n default:\n return undefined;\n }\n}\n\nexport function sanitizeObjectForPostgresql<T>(input: T): T {\n return applyFunctionToValuesSync<T>(input, (str) => {\n if (isString(str)) {\n // Postgres text/jsonb cannot store NUL bytes or unpaired UTF-16 surrogates (e.g. a half-emoji\n // left behind by code-unit truncation) — both raise \"invalid input syntax for type json\".\n // eslint-disable-next-line no-control-regex\n const nullByteRegex = /\\u0000/g;\n const loneSurrogateRegex =\n /[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?<![\\uD800-\\uDBFF])[\\uDC00-\\uDFFF]/g;\n return str.replace(nullByteRegex, \"\").replace(loneSurrogateRegex, \"\");\n }\n return str;\n });\n}\nexport function applyFunctionToValuesSync<T>(\n obj: unknown,\n apply: (str: string) => unknown,\n): T {\n if (isNil(obj)) {\n return obj as T;\n } else if (isString(obj)) {\n return apply(obj) as T;\n } else if (Array.isArray(obj)) {\n return obj.map((item) =>\n applyFunctionToValuesSync(item, apply),\n ) as unknown as T;\n } else if (isObject(obj)) {\n return Object.fromEntries(\n Object.entries(obj).map(([key, value]) => [\n key,\n applyFunctionToValuesSync(value, apply),\n ]),\n ) as T;\n }\n return obj as T;\n}\n\nexport async function applyFunctionToValues<T>(\n obj: unknown,\n apply: (str: string) => Promise<unknown>,\n): Promise<T> {\n if (isNil(obj)) {\n return obj as T;\n } else if (isString(obj)) {\n return (await apply(obj)) as T;\n } else if (Array.isArray(obj)) {\n // Create a new array and map over it with Promise.all\n const newArray = await Promise.all(\n obj.map((item) => applyFunctionToValues(item, apply)),\n );\n return newArray as unknown as T;\n } else if (isObject(obj)) {\n // Use Object.fromEntries and map entries asynchronously\n const newEntries = await Promise.all(\n Object.entries(obj).map(async ([key, value]) => [\n key,\n await applyFunctionToValues(value, apply),\n ]),\n );\n return Object.fromEntries(newEntries) as T;\n }\n return obj as T;\n}\n\nexport const isObject = (obj: unknown): obj is Record<string, unknown> => {\n return typeof obj === \"object\" && obj !== null && !Array.isArray(obj);\n};\n\nexport function groupBy<T, K extends string | number | symbol>(\n items: T[],\n keySelector: (item: T) => K,\n): Record<K, T[]> {\n const result = {} as Record<K, T[]>;\n\n for (const item of items) {\n const key = keySelector(item);\n\n if (!result[key]) {\n result[key] = [];\n }\n\n result[key].push(item);\n }\n\n return result;\n}\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/common.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport type {\n AuthValidationServerContext,\n ServerContext,\n} from \"../../context/index.js\";\n\nexport const BasePieceAuthSchema = z.object({\n displayName: z.string(),\n description: z.optional(z.string()),\n hasConnectionIdentifier: z.optional(z.boolean()),\n});\n\nexport type BasePieceAuthSchema<AuthValueSchema> = {\n displayName: string;\n description?: string;\n validate?: (params: {\n auth: AuthValueSchema;\n server: AuthValidationServerContext;\n }) => Promise<\n | { valid: true }\n | {\n valid: false;\n error: string;\n }\n >;\n // Resolves a human-readable label for a connection made with this auth\n // (e.g. the account email, or Slack's \"display-name (workspace)\"), shown in\n // the UI so users can tell which account a connection belongs to. Best-effort.\n getConnectionIdentifier?: (params: {\n auth: AuthValueSchema;\n server: Omit<ServerContext, \"token\">;\n }) => Promise<string | undefined>;\n // Derived by Piece.metadata(), not authored: functions cannot survive metadata\n // serialization, so the server has no other way to tell whether the hook above\n // exists before paying for an engine round-trip.\n hasConnectionIdentifier?: boolean;\n};\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/basic-auth-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport { BasePieceAuthSchema } from \"./common.js\";\n\nexport const BasicAuthPropertyValue = z.object({\n username: z.string(),\n password: z.string(),\n});\n\nexport type BasicAuthPropertyValue = z.infer<typeof BasicAuthPropertyValue>;\n\nexport const BasicAuthProperty = z.object({\n ...BasePieceAuthSchema.shape,\n username: z.object({\n displayName: z.string(),\n description: z.optional(z.string()),\n }),\n password: z.object({\n displayName: z.string(),\n description: z.optional(z.string()),\n }),\n ...TPropertyValue(BasicAuthPropertyValue, PropertyType.BASIC_AUTH).shape,\n});\n\nexport type BasicAuthProperty = BasePieceAuthSchema<BasicAuthPropertyValue> & {\n username: {\n displayName: string;\n description?: string;\n };\n password: {\n displayName: string;\n description?: string;\n };\n} & TPropertyValue<BasicAuthPropertyValue, PropertyType.BASIC_AUTH, true>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/secret-text-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePieceAuthSchema } from \"./common.js\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\n\nexport const SecretTextProperty = z.object({\n ...BasePieceAuthSchema.shape,\n ...TPropertyValue(\n z.object({\n auth: z.string(),\n }),\n PropertyType.SECRET_TEXT,\n ).shape,\n});\n\nexport type SecretTextProperty<R extends boolean> =\n BasePieceAuthSchema<string> &\n TPropertyValue<string, PropertyType.SECRET_TEXT, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/custom-auth-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport { LongTextProperty, ShortTextProperty } from \"../input/text-property.js\";\nimport { NumberProperty } from \"../input/number-property.js\";\nimport { CheckboxProperty } from \"../input/checkbox-property.js\";\nimport { StaticMultiSelectDropdownProperty } from \"../input/dropdown/static-dropdown.js\";\nimport { StaticDropdownProperty } from \"../input/dropdown/static-dropdown.js\";\nimport type { StaticPropsValue } from \"../index.js\";\nimport { SecretTextProperty } from \"./secret-text-property.js\";\nimport { BasePieceAuthSchema } from \"./common.js\";\nimport { MarkDownProperty } from \"../input/markdown-property.js\";\nimport type { ServerContext } from \"../../context/index.js\";\n\nconst CustomAuthProps = z.record(\n z.string(),\n z.union([\n ShortTextProperty,\n LongTextProperty,\n SecretTextProperty,\n NumberProperty,\n StaticDropdownProperty,\n CheckboxProperty,\n MarkDownProperty,\n StaticMultiSelectDropdownProperty,\n ]),\n);\n\nexport type CustomAuthProps = Record<\n string,\n | ShortTextProperty<boolean>\n | LongTextProperty<boolean>\n | SecretTextProperty<boolean>\n | NumberProperty<boolean>\n | StaticDropdownProperty<unknown, boolean>\n | CheckboxProperty<boolean>\n | MarkDownProperty\n | StaticMultiSelectDropdownProperty<unknown, boolean>\n>;\n\nexport const CustomAuthProperty = z.object({\n ...BasePieceAuthSchema.shape,\n props: CustomAuthProps,\n ...TPropertyValue(z.unknown(), PropertyType.CUSTOM_AUTH).shape,\n});\n\nexport type CustomAuthRefresh<T extends CustomAuthProps> = {\n generate: (params: {\n auth: StaticPropsValue<T>;\n server: Omit<ServerContext, \"token\">;\n }) => Promise<{\n access_token: string;\n /**\n * Token lifetime in seconds. When omitted, `defaultExpiresIn` (or the framework\n * default) is used. Use `0` to mark the token as non-expiring — it is then cached\n * indefinitely and never refreshed. The server refreshes 15 minutes before expiry,\n * clamped to half the lifetime so short-lived tokens are not refreshed on every call.\n */\n expires_in?: number;\n }>;\n /** Fallback token lifetime in seconds when `generate` omits `expires_in`. `0` means non-expiring. */\n defaultExpiresIn?: number;\n};\n\nexport type CustomAuthProperty<T extends CustomAuthProps> = BasePieceAuthSchema<\n StaticPropsValue<T>\n> & {\n props: T;\n refresh?: CustomAuthRefresh<T>;\n} & TPropertyValue<StaticPropsValue<T>, PropertyType.CUSTOM_AUTH, true>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/oidc-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport { LongTextProperty, ShortTextProperty } from \"../input/text-property.js\";\nimport { NumberProperty } from \"../input/number-property.js\";\nimport { CheckboxProperty } from \"../input/checkbox-property.js\";\nimport {\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n} from \"../input/dropdown/static-dropdown.js\";\nimport type { StaticPropsValue } from \"../index.js\";\nimport { SecretTextProperty } from \"./secret-text-property.js\";\nimport { BasePieceAuthSchema } from \"./common.js\";\nimport { MarkDownProperty } from \"../input/markdown-property.js\";\n\nconst OIDCAuthProps = z.record(\n z.string(),\n z.union([\n ShortTextProperty,\n LongTextProperty,\n SecretTextProperty,\n NumberProperty,\n CheckboxProperty,\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n MarkDownProperty,\n ]),\n);\n\nexport type OIDCAuthProps = Record<\n string,\n | ShortTextProperty<boolean>\n | LongTextProperty<boolean>\n | SecretTextProperty<boolean>\n | NumberProperty<boolean>\n | StaticDropdownProperty<unknown, boolean>\n | CheckboxProperty<boolean>\n | MarkDownProperty\n | StaticMultiSelectDropdownProperty<unknown, boolean>\n>;\n\nexport const OIDCProperty = z.object({\n ...BasePieceAuthSchema.shape,\n props: OIDCAuthProps,\n ...TPropertyValue(z.unknown(), PropertyType.OIDC).shape,\n});\n\nexport type OIDCProperty<T extends OIDCAuthProps> = BasePieceAuthSchema<\n StaticPropsValue<T>\n> & {\n props: T;\n} & TPropertyValue<StaticPropsValue<T>, PropertyType.OIDC, true>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/oauth2-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport {\n BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE,\n OAuth2GrantType,\n} from \"../../../../core-piece-types/index.js\";\nimport * as z from \"zod/mini\";\nimport { ShortTextProperty } from \"../input/text-property.js\";\nimport { SecretTextProperty } from \"./secret-text-property.js\";\nimport { BasePieceAuthSchema } from \"./common.js\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport { StaticDropdownProperty } from \"../input/dropdown/static-dropdown.js\";\nimport type { StaticPropsValue } from \"../index.js\";\n\nexport enum OAuth2AuthorizationMethod {\n HEADER = \"HEADER\",\n BODY = \"BODY\",\n}\n\nconst OAuthProp = z.union([\n ShortTextProperty,\n SecretTextProperty,\n StaticDropdownProperty,\n]);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype OAuthProp =\n | ShortTextProperty<boolean>\n | SecretTextProperty<boolean>\n | StaticDropdownProperty<any, boolean>;\n\nexport const OAuth2Props = z.record(z.string(), OAuthProp);\n\nexport type OAuth2Props = {\n [key: string]: OAuthProp;\n};\n\ntype OAuthPropsValue<T extends OAuth2Props> = StaticPropsValue<T>;\n\nconst OAuth2ExtraProps = z.object({\n props: z.optional(z.record(z.string(), OAuthProp)),\n authUrl: z.string(),\n tokenUrl: z.string(),\n scope: z.array(z.string()),\n prompt: z.optional(\n z.union([\n z.literal(\"none\"),\n z.literal(\"consent\"),\n z.literal(\"login\"),\n z.literal(\"omit\"),\n ]),\n ),\n pkce: z.optional(z.boolean()),\n pkceMethod: z.optional(z.union([z.literal(\"plain\"), z.literal(\"S256\")])),\n authorizationMethod: z.optional(z.enum(OAuth2AuthorizationMethod)),\n grantType: z.optional(\n z.union([\n z.enum(OAuth2GrantType),\n z.literal(BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE),\n ]),\n ),\n extra: z.optional(z.record(z.string(), z.string())),\n});\n\ntype OAuth2ExtraProps = {\n props?: OAuth2Props;\n authUrl: string;\n tokenUrl: string;\n scope: string[];\n prompt?: \"none\" | \"consent\" | \"login\" | \"omit\";\n pkce?: boolean;\n pkceMethod?: \"plain\" | \"S256\";\n authorizationMethod?: OAuth2AuthorizationMethod;\n grantType?:\n | OAuth2GrantType\n | typeof BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE;\n extra?: Record<string, string>;\n};\n\nexport const OAuth2PropertyValue = z.object({\n access_token: z.string(),\n props: z.optional(OAuth2Props),\n data: z.record(z.string(), z.any()),\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type OAuth2PropertyValue<T extends OAuth2Props = any> = {\n access_token: string;\n props?: OAuthPropsValue<T>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: Record<string, any>;\n};\n\nexport const OAuth2Property = z.object({\n ...BasePieceAuthSchema.shape,\n ...OAuth2ExtraProps.shape,\n ...TPropertyValue(OAuth2PropertyValue, PropertyType.OAUTH2).shape,\n});\n\nexport type OAuth2Property<T extends OAuth2Props> = BasePieceAuthSchema<\n OAuth2PropertyValue<T>\n> &\n OAuth2ExtraProps &\n TPropertyValue<OAuth2PropertyValue<T>, PropertyType.OAUTH2, true>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/index.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\n\nimport * as z from \"zod/mini\";\nimport { BasicAuthProperty } from \"./basic-auth-prop.js\";\nimport type { CustomAuthProps } from \"./custom-auth-prop.js\";\nimport { CustomAuthProperty } from \"./custom-auth-prop.js\";\nimport type { OIDCAuthProps } from \"./oidc-prop.js\";\nimport { OIDCProperty } from \"./oidc-prop.js\";\nimport { SecretTextProperty } from \"./secret-text-property.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport type { OAuth2Props } from \"./oauth2-prop.js\";\nimport { OAuth2Property } from \"./oauth2-prop.js\";\nimport { isNil } from \"../../../../core-utils/index.js\";\nimport { AppConnectionType } from \"../../../../core-piece-types/index.js\";\n\nexport const PieceAuthProperty = z.union([\n BasicAuthProperty,\n CustomAuthProperty,\n OIDCProperty,\n OAuth2Property,\n SecretTextProperty,\n]);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type PieceAuthProperty =\n | BasicAuthProperty\n | CustomAuthProperty<any>\n | OIDCProperty<any>\n | OAuth2Property<any>\n | SecretTextProperty<boolean>;\n\ntype AuthProperties<T> = Omit<Properties<T>, \"displayName\"> & {\n displayName?: string;\n};\n\ntype Properties<T> = Omit<\n T,\n \"valueSchema\" | \"type\" | \"defaultValidators\" | \"defaultProcessors\"\n>;\n\nexport const DEFAULT_CONNECTION_DISPLAY_NAME = \"Connection\";\nexport const PieceAuth = {\n SecretText<R extends boolean>(\n request: Properties<SecretTextProperty<R>>,\n ): R extends true ? SecretTextProperty<true> : SecretTextProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.SECRET_TEXT,\n } as unknown as R extends true\n ? SecretTextProperty<true>\n : SecretTextProperty<false>;\n },\n OAuth2<T extends OAuth2Props>(\n request: AuthProperties<OAuth2Property<T>>,\n ): OAuth2Property<T> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.OAUTH2,\n displayName: request.displayName || DEFAULT_CONNECTION_DISPLAY_NAME,\n } as unknown as OAuth2Property<T>;\n },\n BasicAuth(request: AuthProperties<BasicAuthProperty>): BasicAuthProperty {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.BASIC_AUTH,\n displayName: request.displayName || DEFAULT_CONNECTION_DISPLAY_NAME,\n required: true,\n } as unknown as BasicAuthProperty;\n },\n CustomAuth<T extends CustomAuthProps>(\n request: AuthProperties<CustomAuthProperty<T>>,\n ): CustomAuthProperty<T> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.CUSTOM_AUTH,\n displayName: request.displayName || DEFAULT_CONNECTION_DISPLAY_NAME,\n } as unknown as CustomAuthProperty<T>;\n },\n OIDC<T extends OIDCAuthProps>(\n request: AuthProperties<OIDCProperty<T>>,\n ): OIDCProperty<T> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.OIDC,\n displayName: request.displayName || DEFAULT_CONNECTION_DISPLAY_NAME,\n } as unknown as OIDCProperty<T>;\n },\n None() {\n return undefined;\n },\n};\n\nexport type ExtractPieceAuthPropertyTypeForMethods<\n T extends PieceAuthProperty | PieceAuthProperty[] | undefined,\n> = T extends PieceAuthProperty[]\n ? T[number]\n : T extends undefined\n ? undefined\n : T;\n\nexport function getAuthPropertyForValue({\n authValueType,\n pieceAuth,\n}: GetAuthPropertyForValue) {\n if (!Array.isArray(pieceAuth) || isNil(pieceAuth)) {\n return pieceAuth;\n }\n\n return (\n pieceAuth.find(\n (auth) => authConnectionTypeToPropertyType[authValueType] === auth.type,\n ) ?? pieceAuth.at(0)\n );\n}\n\ntype GetAuthPropertyForValue = {\n authValueType: AppConnectionType;\n pieceAuth: PieceAuthProperty | PieceAuthProperty[] | undefined;\n};\n\nconst authConnectionTypeToPropertyType: Record<\n AppConnectionType,\n PropertyType | undefined\n> = {\n [AppConnectionType.OAUTH2]: PropertyType.OAUTH2,\n [AppConnectionType.CLOUD_OAUTH2]: PropertyType.OAUTH2,\n [AppConnectionType.PLATFORM_OAUTH2]: PropertyType.OAUTH2,\n [AppConnectionType.BASIC_AUTH]: PropertyType.BASIC_AUTH,\n [AppConnectionType.CUSTOM_AUTH]: PropertyType.CUSTOM_AUTH,\n [AppConnectionType.OIDC]: PropertyType.OIDC,\n [AppConnectionType.SECRET_TEXT]: PropertyType.SECRET_TEXT,\n [AppConnectionType.NO_AUTH]: undefined,\n};\n"],"mappings":";;;;AAEA,IAAY,oBAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;KACD;AAED,IAAY,kBAAL;AACL;AACA;;KACD;AAED,MAAa,iDACX;;;;ACfF,IAAY,kBAAL;AACL;AACA;AACA;AACA;;KACD;AAED,IAAY,2BAAL;AACL;AACA;AACA;AACA;AACA;;KACD;AAED,MAAa,gCAAgC,EAAE,OAAO;CACpD,UAAU,EAAE,KAAK,yBAAyB;CAC1C,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC;CAClC,CAAC;AAKF,IAAY,sBAAL;AACL;AACA;;KACD;AAED,MAAa,+BAA+B;;;;ACM5C,MAAa,mBACX,KACA,UACsB;AACtB,KAAI,MAAM,MAAM,CACd,QAAO,EAAE;AAEX,QAAO,GACJ,MAAM,OACR;;AAiGH,MAAa,YAAY,QAAiD;AACxE,QAAO,OAAO,QAAQ,YAAY,QAAQ,QAAQ,CAAC,MAAM,QAAQ,IAAI;;;;;ACzIvE,MAAa,sBAAsB,EAAE,OAAO;CAC1C,aAAa,EAAE,QAAQ;CACvB,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnC,yBAAyB,EAAE,SAAS,EAAE,SAAS,CAAC;CACjD,CAAC;;;;ACLF,MAAa,yBAAyB,EAAE,OAAO;CAC7C,UAAU,EAAE,QAAQ;CACpB,UAAU,EAAE,QAAQ;CACrB,CAAC;AAIF,MAAa,oBAAoB,EAAE,OAAO;CACxC,GAAG,oBAAoB;CACvB,UAAU,EAAE,OAAO;EACjB,aAAa,E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CAEH,WACE,SACuB;AACvB,SAAO;GACL,GAAG;GACH,aAAa;GACb,MAAM,aAAa;GACnB,aAAa,QAAQ;GACtB;;CAEH,KACE,SACiB;AACjB,SAAO;GACL,GAAG;GACH,aAAa;GACb,MAAM,aAAa;GACnB,aAAa,QAAQ;GACtB;;CAEH,OAAO;CAGR;AAUD,SAAgB,wBAAwB,EACtC,eACA,aAC0B;AAC1B,KAAI,CAAC,MAAM,QAAQ,UAAU,IAAI,MAAM,UAAU,CAC/C,QAAO;AAGT,QACE,UAAU,MACP,SAAS,iCAAiC,mBAAmB,KAAK,KACpE,IAAI,UAAU,GAAG,EAAE;;AASxB,MAAM,mCAGF;EACD,kBAAkB,SAAS,aAAa;EACxC,kBAAkB,eAAe,aAAa;EAC9C,kBAAkB,kBAAkB,aAAa;EACjD,kBAAkB,aAAa,aAAa;EAC5C,kBAAkB,cAAc,aAAa;EAC7C,kBAAkB,OAAO,aAAa;EACtC,kBAAkB,cAAc,aAAa;EAC7C,kBAAkB,UAAU;CAC9B"}
1
+ {"version":3,"file":"authentication-o-4CdAPR.js","names":[],"sources":["../upstream/core-piece-types/lib/app-connection.ts","../upstream/core-piece-types/lib/trigger.ts","../upstream/core-utils/lib/object-utils.ts","../upstream/framework/lib/property/authentication/common.ts","../upstream/framework/lib/property/authentication/basic-auth-prop.ts","../upstream/framework/lib/property/authentication/secret-text-property.ts","../upstream/framework/lib/property/authentication/custom-auth-prop.ts","../upstream/framework/lib/property/authentication/oidc-prop.ts","../upstream/framework/lib/property/authentication/oauth2-prop.ts","../upstream/framework/lib/property/authentication/index.ts"],"sourcesContent":["// Vendored from activepieces/activepieces@0.91.0 packages/core/piece-types/src/lib/app-connection.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nexport enum AppConnectionType {\n OAUTH2 = \"OAUTH2\",\n PLATFORM_OAUTH2 = \"PLATFORM_OAUTH2\",\n CLOUD_OAUTH2 = \"CLOUD_OAUTH2\",\n SECRET_TEXT = \"SECRET_TEXT\",\n BASIC_AUTH = \"BASIC_AUTH\",\n CUSTOM_AUTH = \"CUSTOM_AUTH\",\n OIDC = \"OIDC\",\n NO_AUTH = \"NO_AUTH\",\n}\n\nexport enum OAuth2GrantType {\n AUTHORIZATION_CODE = \"authorization_code\",\n CLIENT_CREDENTIALS = \"client_credentials\",\n}\n\nexport const BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE =\n \"both_client_credentials_and_authorization_code\";\n\nexport type SecretTextConnectionValue = {\n type: AppConnectionType.SECRET_TEXT;\n secret_text: string;\n};\n\nexport type BasicAuthConnectionValue = {\n username: string;\n password: string;\n type: AppConnectionType.BASIC_AUTH;\n};\n\nexport type BaseOAuth2ConnectionValue = {\n expires_in?: number;\n client_id: string;\n token_type: string;\n access_token: string;\n claimed_at: number;\n refresh_token: string;\n scope: string;\n token_url: string;\n grant_type?: OAuth2GrantType;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: Record<string, any>;\n props?: Record<string, unknown>;\n};\n\nexport type CustomAuthConnectionValue<\n T extends Record<string, unknown> = Record<string, unknown>,\n> = {\n type: AppConnectionType.CUSTOM_AUTH;\n props: T;\n access_token?: string;\n token_refresh_at?: number;\n};\n\nexport type OIDCConnectionValue<\n T extends Record<string, unknown> = Record<string, unknown>,\n> = {\n type: AppConnectionType.OIDC;\n props: T;\n};\n\nexport type CloudOAuth2ConnectionValue = {\n type: AppConnectionType.CLOUD_OAUTH2;\n} & BaseOAuth2ConnectionValue;\n\nexport type PlatformOAuth2ConnectionValue = {\n type: AppConnectionType.PLATFORM_OAUTH2;\n redirect_url: string;\n} & BaseOAuth2ConnectionValue;\n\nexport type OAuth2ConnectionValueWithApp = {\n type: AppConnectionType.OAUTH2;\n client_secret: string;\n redirect_url: string;\n} & BaseOAuth2ConnectionValue;\n\nexport type NoAuthConnectionValue = {\n type: AppConnectionType.NO_AUTH;\n};\n\nexport type AppConnectionValue<\n T extends AppConnectionType = AppConnectionType,\n PropsType extends Record<string, unknown> = Record<string, unknown>,\n> = T extends AppConnectionType.SECRET_TEXT\n ? SecretTextConnectionValue\n : T extends AppConnectionType.BASIC_AUTH\n ? BasicAuthConnectionValue\n : T extends AppConnectionType.CLOUD_OAUTH2\n ? CloudOAuth2ConnectionValue\n : T extends AppConnectionType.PLATFORM_OAUTH2\n ? PlatformOAuth2ConnectionValue\n : T extends AppConnectionType.OAUTH2\n ? OAuth2ConnectionValueWithApp\n : T extends AppConnectionType.CUSTOM_AUTH\n ? CustomAuthConnectionValue<PropsType>\n : T extends AppConnectionType.OIDC\n ? OIDCConnectionValue<PropsType>\n : T extends AppConnectionType.NO_AUTH\n ? NoAuthConnectionValue\n : never;\n","// Vendored from activepieces/activepieces@0.91.0 packages/core/piece-types/src/lib/trigger.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\n\nexport enum TriggerStrategy {\n POLLING = \"POLLING\",\n WEBHOOK = \"WEBHOOK\",\n APP_WEBHOOK = \"APP_WEBHOOK\",\n MANUAL = \"MANUAL\",\n}\n\nexport enum WebhookHandshakeStrategy {\n NONE = \"NONE\",\n HEADER_PRESENT = \"HEADER_PRESENT\",\n QUERY_PRESENT = \"QUERY_PRESENT\",\n BODY_PARAM_PRESENT = \"BODY_PARAM_PRESENT\",\n HEAD_REQUEST = \"HEAD_REQUEST\",\n}\n\nexport const WebhookHandshakeConfiguration = z.object({\n strategy: z.enum(WebhookHandshakeStrategy),\n paramName: z.optional(z.string()),\n});\nexport type WebhookHandshakeConfiguration = z.infer<\n typeof WebhookHandshakeConfiguration\n>;\n\nexport enum TriggerTestStrategy {\n SIMULATION = \"SIMULATION\",\n TEST_FUNCTION = \"TEST_FUNCTION\",\n}\n\nexport const AUTHENTICATION_PROPERTY_NAME = \"auth\";\n","// Vendored from activepieces/activepieces@0.91.0 packages/core/utils/src/lib/object-utils.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport { isNil, isString } from \"./utils.js\";\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function deleteProperties(\n obj: Record<string, unknown>,\n props: string[],\n) {\n const copy = { ...obj };\n for (const prop of props) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete copy[prop];\n }\n return copy;\n}\n\nexport function omit<T extends object, K extends keyof T>(\n obj: T,\n keysToOmit: K[],\n): Omit<T, K> {\n return Object.fromEntries(\n Object.entries(obj).filter(([key]) => !keysToOmit.includes(key as K)),\n ) as Omit<T, K>;\n}\n\nexport const spreadIfNotUndefined = <T>(\n key: string,\n value: T | undefined,\n): Record<string, T> => {\n if (value === undefined) {\n return {};\n }\n return {\n [key]: value,\n };\n};\n\nexport const spreadIfDefined = <T>(\n key: string,\n value: T | undefined | null,\n): Record<string, T> => {\n if (isNil(value)) {\n return {};\n }\n return {\n [key]: value,\n };\n};\n\nexport function deleteProps<\n T extends Record<string, unknown>,\n K extends keyof T,\n>(obj: T, prop: K[]): Omit<T, K> {\n const newObj = { ...obj };\n for (const p of prop) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete newObj[p];\n }\n return newObj;\n}\n\nexport function cloneResolvedValue(value: unknown): unknown {\n switch (typeof value) {\n case \"string\":\n case \"number\":\n case \"boolean\":\n return value;\n case \"object\": {\n if (value === null) {\n return null;\n }\n const serialized = JSON.stringify(value);\n return isNil(serialized) ? undefined : JSON.parse(serialized);\n }\n default:\n return undefined;\n }\n}\n\nexport function sanitizeObjectForPostgresql<T>(input: T): T {\n return applyFunctionToValuesSync<T>(input, (str) => {\n if (isString(str)) {\n // Postgres text/jsonb cannot store NUL bytes or unpaired UTF-16 surrogates (e.g. a half-emoji\n // left behind by code-unit truncation) — both raise \"invalid input syntax for type json\".\n // eslint-disable-next-line no-control-regex\n const nullByteRegex = /\\u0000/g;\n const loneSurrogateRegex =\n /[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?<![\\uD800-\\uDBFF])[\\uDC00-\\uDFFF]/g;\n return str.replace(nullByteRegex, \"\").replace(loneSurrogateRegex, \"\");\n }\n return str;\n });\n}\nexport function applyFunctionToValuesSync<T>(\n obj: unknown,\n apply: (str: string) => unknown,\n): T {\n if (isNil(obj)) {\n return obj as T;\n } else if (isString(obj)) {\n return apply(obj) as T;\n } else if (Array.isArray(obj)) {\n return obj.map((item) =>\n applyFunctionToValuesSync(item, apply),\n ) as unknown as T;\n } else if (isObject(obj)) {\n return Object.fromEntries(\n Object.entries(obj).map(([key, value]) => [\n key,\n applyFunctionToValuesSync(value, apply),\n ]),\n ) as T;\n }\n return obj as T;\n}\n\nexport async function applyFunctionToValues<T>(\n obj: unknown,\n apply: (str: string) => Promise<unknown>,\n): Promise<T> {\n if (isNil(obj)) {\n return obj as T;\n } else if (isString(obj)) {\n return (await apply(obj)) as T;\n } else if (Array.isArray(obj)) {\n // Create a new array and map over it with Promise.all\n const newArray = await Promise.all(\n obj.map((item) => applyFunctionToValues(item, apply)),\n );\n return newArray as unknown as T;\n } else if (isObject(obj)) {\n // Use Object.fromEntries and map entries asynchronously\n const newEntries = await Promise.all(\n Object.entries(obj).map(async ([key, value]) => [\n key,\n await applyFunctionToValues(value, apply),\n ]),\n );\n return Object.fromEntries(newEntries) as T;\n }\n return obj as T;\n}\n\nexport const isObject = (obj: unknown): obj is Record<string, unknown> => {\n return typeof obj === \"object\" && obj !== null && !Array.isArray(obj);\n};\n\nexport function groupBy<T, K extends string | number | symbol>(\n items: T[],\n keySelector: (item: T) => K,\n): Record<K, T[]> {\n const result = {} as Record<K, T[]>;\n\n for (const item of items) {\n const key = keySelector(item);\n\n if (!result[key]) {\n result[key] = [];\n }\n\n result[key].push(item);\n }\n\n return result;\n}\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/common.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport type {\n AuthValidationServerContext,\n ServerContext,\n} from \"../../context/index.js\";\n\nexport const BasePieceAuthSchema = z.object({\n displayName: z.string(),\n description: z.optional(z.string()),\n hasConnectionIdentifier: z.optional(z.boolean()),\n});\n\nexport type BasePieceAuthSchema<AuthValueSchema> = {\n displayName: string;\n description?: string;\n validate?: (params: {\n auth: AuthValueSchema;\n server: AuthValidationServerContext;\n }) => Promise<\n | { valid: true }\n | {\n valid: false;\n error: string;\n }\n >;\n // Resolves a human-readable label for a connection made with this auth\n // (e.g. the account email, or Slack's \"display-name (workspace)\"), shown in\n // the UI so users can tell which account a connection belongs to. Best-effort.\n getConnectionIdentifier?: (params: {\n auth: AuthValueSchema;\n server: Omit<ServerContext, \"token\">;\n }) => Promise<string | undefined>;\n // Derived by Piece.metadata(), not authored: functions cannot survive metadata\n // serialization, so the server has no other way to tell whether the hook above\n // exists before paying for an engine round-trip.\n hasConnectionIdentifier?: boolean;\n};\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/basic-auth-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport { BasePieceAuthSchema } from \"./common.js\";\n\nexport const BasicAuthPropertyValue = z.object({\n username: z.string(),\n password: z.string(),\n});\n\nexport type BasicAuthPropertyValue = z.infer<typeof BasicAuthPropertyValue>;\n\nexport const BasicAuthProperty = z.object({\n ...BasePieceAuthSchema.shape,\n username: z.object({\n displayName: z.string(),\n description: z.optional(z.string()),\n }),\n password: z.object({\n displayName: z.string(),\n description: z.optional(z.string()),\n }),\n ...TPropertyValue(BasicAuthPropertyValue, PropertyType.BASIC_AUTH).shape,\n});\n\nexport type BasicAuthProperty = BasePieceAuthSchema<BasicAuthPropertyValue> & {\n username: {\n displayName: string;\n description?: string;\n };\n password: {\n displayName: string;\n description?: string;\n };\n} & TPropertyValue<BasicAuthPropertyValue, PropertyType.BASIC_AUTH, true>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/secret-text-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePieceAuthSchema } from \"./common.js\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\n\nexport const SecretTextProperty = z.object({\n ...BasePieceAuthSchema.shape,\n ...TPropertyValue(\n z.object({\n auth: z.string(),\n }),\n PropertyType.SECRET_TEXT,\n ).shape,\n});\n\nexport type SecretTextProperty<R extends boolean> =\n BasePieceAuthSchema<string> &\n TPropertyValue<string, PropertyType.SECRET_TEXT, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/custom-auth-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport { LongTextProperty, ShortTextProperty } from \"../input/text-property.js\";\nimport { NumberProperty } from \"../input/number-property.js\";\nimport { CheckboxProperty } from \"../input/checkbox-property.js\";\nimport { StaticMultiSelectDropdownProperty } from \"../input/dropdown/static-dropdown.js\";\nimport { StaticDropdownProperty } from \"../input/dropdown/static-dropdown.js\";\nimport type { StaticPropsValue } from \"../index.js\";\nimport { SecretTextProperty } from \"./secret-text-property.js\";\nimport { BasePieceAuthSchema } from \"./common.js\";\nimport { MarkDownProperty } from \"../input/markdown-property.js\";\nimport type { ServerContext } from \"../../context/index.js\";\n\nconst CustomAuthProps = z.record(\n z.string(),\n z.union([\n ShortTextProperty,\n LongTextProperty,\n SecretTextProperty,\n NumberProperty,\n StaticDropdownProperty,\n CheckboxProperty,\n MarkDownProperty,\n StaticMultiSelectDropdownProperty,\n ]),\n);\n\nexport type CustomAuthProps = Record<\n string,\n | ShortTextProperty<boolean>\n | LongTextProperty<boolean>\n | SecretTextProperty<boolean>\n | NumberProperty<boolean>\n | StaticDropdownProperty<unknown, boolean>\n | CheckboxProperty<boolean>\n | MarkDownProperty\n | StaticMultiSelectDropdownProperty<unknown, boolean>\n>;\n\nexport const CustomAuthProperty = z.object({\n ...BasePieceAuthSchema.shape,\n props: CustomAuthProps,\n ...TPropertyValue(z.unknown(), PropertyType.CUSTOM_AUTH).shape,\n});\n\nexport type CustomAuthRefresh<T extends CustomAuthProps> = {\n generate: (params: {\n auth: StaticPropsValue<T>;\n server: Omit<ServerContext, \"token\">;\n }) => Promise<{\n access_token: string;\n /**\n * Token lifetime in seconds. When omitted, `defaultExpiresIn` (or the framework\n * default) is used. Use `0` to mark the token as non-expiring — it is then cached\n * indefinitely and never refreshed. The server refreshes 15 minutes before expiry,\n * clamped to half the lifetime so short-lived tokens are not refreshed on every call.\n */\n expires_in?: number;\n }>;\n /** Fallback token lifetime in seconds when `generate` omits `expires_in`. `0` means non-expiring. */\n defaultExpiresIn?: number;\n};\n\nexport type CustomAuthProperty<T extends CustomAuthProps> = BasePieceAuthSchema<\n StaticPropsValue<T>\n> & {\n props: T;\n refresh?: CustomAuthRefresh<T>;\n} & TPropertyValue<StaticPropsValue<T>, PropertyType.CUSTOM_AUTH, true>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/oidc-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport { LongTextProperty, ShortTextProperty } from \"../input/text-property.js\";\nimport { NumberProperty } from \"../input/number-property.js\";\nimport { CheckboxProperty } from \"../input/checkbox-property.js\";\nimport {\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n} from \"../input/dropdown/static-dropdown.js\";\nimport type { StaticPropsValue } from \"../index.js\";\nimport { SecretTextProperty } from \"./secret-text-property.js\";\nimport { BasePieceAuthSchema } from \"./common.js\";\nimport { MarkDownProperty } from \"../input/markdown-property.js\";\n\nconst OIDCAuthProps = z.record(\n z.string(),\n z.union([\n ShortTextProperty,\n LongTextProperty,\n SecretTextProperty,\n NumberProperty,\n CheckboxProperty,\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n MarkDownProperty,\n ]),\n);\n\nexport type OIDCAuthProps = Record<\n string,\n | ShortTextProperty<boolean>\n | LongTextProperty<boolean>\n | SecretTextProperty<boolean>\n | NumberProperty<boolean>\n | StaticDropdownProperty<unknown, boolean>\n | CheckboxProperty<boolean>\n | MarkDownProperty\n | StaticMultiSelectDropdownProperty<unknown, boolean>\n>;\n\nexport const OIDCProperty = z.object({\n ...BasePieceAuthSchema.shape,\n props: OIDCAuthProps,\n ...TPropertyValue(z.unknown(), PropertyType.OIDC).shape,\n});\n\nexport type OIDCProperty<T extends OIDCAuthProps> = BasePieceAuthSchema<\n StaticPropsValue<T>\n> & {\n props: T;\n} & TPropertyValue<StaticPropsValue<T>, PropertyType.OIDC, true>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/oauth2-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport {\n BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE,\n OAuth2GrantType,\n} from \"../../../../core-piece-types/index.js\";\nimport * as z from \"zod/mini\";\nimport { ShortTextProperty } from \"../input/text-property.js\";\nimport { SecretTextProperty } from \"./secret-text-property.js\";\nimport { BasePieceAuthSchema } from \"./common.js\";\nimport { TPropertyValue } from \"../input/common.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport { StaticDropdownProperty } from \"../input/dropdown/static-dropdown.js\";\nimport type { StaticPropsValue } from \"../index.js\";\n\nexport enum OAuth2AuthorizationMethod {\n HEADER = \"HEADER\",\n BODY = \"BODY\",\n}\n\nconst OAuthProp = z.union([\n ShortTextProperty,\n SecretTextProperty,\n StaticDropdownProperty,\n]);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype OAuthProp =\n | ShortTextProperty<boolean>\n | SecretTextProperty<boolean>\n | StaticDropdownProperty<any, boolean>;\n\nexport const OAuth2Props = z.record(z.string(), OAuthProp);\n\nexport type OAuth2Props = {\n [key: string]: OAuthProp;\n};\n\ntype OAuthPropsValue<T extends OAuth2Props> = StaticPropsValue<T>;\n\nconst OAuth2ExtraProps = z.object({\n props: z.optional(z.record(z.string(), OAuthProp)),\n authUrl: z.string(),\n tokenUrl: z.string(),\n scope: z.array(z.string()),\n prompt: z.optional(\n z.union([\n z.literal(\"none\"),\n z.literal(\"consent\"),\n z.literal(\"login\"),\n z.literal(\"omit\"),\n ]),\n ),\n pkce: z.optional(z.boolean()),\n pkceMethod: z.optional(z.union([z.literal(\"plain\"), z.literal(\"S256\")])),\n authorizationMethod: z.optional(z.enum(OAuth2AuthorizationMethod)),\n grantType: z.optional(\n z.union([\n z.enum(OAuth2GrantType),\n z.literal(BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE),\n ]),\n ),\n extra: z.optional(z.record(z.string(), z.string())),\n});\n\ntype OAuth2ExtraProps = {\n props?: OAuth2Props;\n authUrl: string;\n tokenUrl: string;\n scope: string[];\n prompt?: \"none\" | \"consent\" | \"login\" | \"omit\";\n pkce?: boolean;\n pkceMethod?: \"plain\" | \"S256\";\n authorizationMethod?: OAuth2AuthorizationMethod;\n grantType?:\n | OAuth2GrantType\n | typeof BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE;\n extra?: Record<string, string>;\n};\n\nexport const OAuth2PropertyValue = z.object({\n access_token: z.string(),\n props: z.optional(OAuth2Props),\n data: z.record(z.string(), z.any()),\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type OAuth2PropertyValue<T extends OAuth2Props = any> = {\n access_token: string;\n props?: OAuthPropsValue<T>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: Record<string, any>;\n};\n\nexport const OAuth2Property = z.object({\n ...BasePieceAuthSchema.shape,\n ...OAuth2ExtraProps.shape,\n ...TPropertyValue(OAuth2PropertyValue, PropertyType.OAUTH2).shape,\n});\n\nexport type OAuth2Property<T extends OAuth2Props> = BasePieceAuthSchema<\n OAuth2PropertyValue<T>\n> &\n OAuth2ExtraProps &\n TPropertyValue<OAuth2PropertyValue<T>, PropertyType.OAUTH2, true>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/authentication/index.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\n\nimport * as z from \"zod/mini\";\nimport { BasicAuthProperty } from \"./basic-auth-prop.js\";\nimport type { CustomAuthProps } from \"./custom-auth-prop.js\";\nimport { CustomAuthProperty } from \"./custom-auth-prop.js\";\nimport type { OIDCAuthProps } from \"./oidc-prop.js\";\nimport { OIDCProperty } from \"./oidc-prop.js\";\nimport { SecretTextProperty } from \"./secret-text-property.js\";\nimport { PropertyType } from \"../input/property-type.js\";\nimport type { OAuth2Props } from \"./oauth2-prop.js\";\nimport { OAuth2Property } from \"./oauth2-prop.js\";\nimport { isNil } from \"../../../../core-utils/index.js\";\nimport { AppConnectionType } from \"../../../../core-piece-types/index.js\";\n\nexport const PieceAuthProperty = z.union([\n BasicAuthProperty,\n CustomAuthProperty,\n OIDCProperty,\n OAuth2Property,\n SecretTextProperty,\n]);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type PieceAuthProperty =\n | BasicAuthProperty\n | CustomAuthProperty<any>\n | OIDCProperty<any>\n | OAuth2Property<any>\n | SecretTextProperty<boolean>;\n\ntype AuthProperties<T> = Omit<Properties<T>, \"displayName\"> & {\n displayName?: string;\n};\n\ntype Properties<T> = Omit<\n T,\n \"valueSchema\" | \"type\" | \"defaultValidators\" | \"defaultProcessors\"\n>;\n\nexport const DEFAULT_CONNECTION_DISPLAY_NAME = \"Connection\";\nexport const PieceAuth = {\n SecretText<R extends boolean>(\n request: Properties<SecretTextProperty<R>>,\n ): R extends true ? SecretTextProperty<true> : SecretTextProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.SECRET_TEXT,\n } as unknown as R extends true\n ? SecretTextProperty<true>\n : SecretTextProperty<false>;\n },\n OAuth2<T extends OAuth2Props>(\n request: AuthProperties<OAuth2Property<T>>,\n ): OAuth2Property<T> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.OAUTH2,\n displayName: request.displayName || DEFAULT_CONNECTION_DISPLAY_NAME,\n } as unknown as OAuth2Property<T>;\n },\n BasicAuth(request: AuthProperties<BasicAuthProperty>): BasicAuthProperty {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.BASIC_AUTH,\n displayName: request.displayName || DEFAULT_CONNECTION_DISPLAY_NAME,\n required: true,\n } as unknown as BasicAuthProperty;\n },\n CustomAuth<T extends CustomAuthProps>(\n request: AuthProperties<CustomAuthProperty<T>>,\n ): CustomAuthProperty<T> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.CUSTOM_AUTH,\n displayName: request.displayName || DEFAULT_CONNECTION_DISPLAY_NAME,\n } as unknown as CustomAuthProperty<T>;\n },\n OIDC<T extends OIDCAuthProps>(\n request: AuthProperties<OIDCProperty<T>>,\n ): OIDCProperty<T> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.OIDC,\n displayName: request.displayName || DEFAULT_CONNECTION_DISPLAY_NAME,\n } as unknown as OIDCProperty<T>;\n },\n None() {\n return undefined;\n },\n};\n\nexport type ExtractPieceAuthPropertyTypeForMethods<\n T extends PieceAuthProperty | PieceAuthProperty[] | undefined,\n> = T extends PieceAuthProperty[]\n ? T[number]\n : T extends undefined\n ? undefined\n : T;\n\nexport function getAuthPropertyForValue({\n authValueType,\n pieceAuth,\n}: GetAuthPropertyForValue) {\n if (!Array.isArray(pieceAuth) || isNil(pieceAuth)) {\n return pieceAuth;\n }\n\n return (\n pieceAuth.find(\n (auth) => authConnectionTypeToPropertyType[authValueType] === auth.type,\n ) ?? pieceAuth.at(0)\n );\n}\n\ntype GetAuthPropertyForValue = {\n authValueType: AppConnectionType;\n pieceAuth: PieceAuthProperty | PieceAuthProperty[] | undefined;\n};\n\nconst authConnectionTypeToPropertyType: Record<\n AppConnectionType,\n PropertyType | undefined\n> = {\n [AppConnectionType.OAUTH2]: PropertyType.OAUTH2,\n [AppConnectionType.CLOUD_OAUTH2]: PropertyType.OAUTH2,\n [AppConnectionType.PLATFORM_OAUTH2]: PropertyType.OAUTH2,\n [AppConnectionType.BASIC_AUTH]: PropertyType.BASIC_AUTH,\n [AppConnectionType.CUSTOM_AUTH]: PropertyType.CUSTOM_AUTH,\n [AppConnectionType.OIDC]: PropertyType.OIDC,\n [AppConnectionType.SECRET_TEXT]: PropertyType.SECRET_TEXT,\n [AppConnectionType.NO_AUTH]: undefined,\n};\n"],"mappings":";;;;AAEA,IAAY,oBAAL;CACL;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;AACF;AAEA,IAAY,kBAAL;CACL;CACA;;AACF;AAEA,MAAa,iDACX;;;;ACfF,IAAY,kBAAL;CACL;CACA;CACA;CACA;;AACF;AAEA,IAAY,2BAAL;CACL;CACA;CACA;CACA;CACA;;AACF;AAEA,MAAa,gCAAgC,EAAE,OAAO;CACpD,UAAU,EAAE,KAAK,wBAAwB;CACzC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC;AAClC,CAAC;AAKD,IAAY,sBAAL;CACL;CACA;;AACF;AAEA,MAAa,+BAA+B;;;;ACM5C,MAAa,mBACX,KACA,UACsB;CACtB,IAAI,MAAM,KAAK,GACb,OAAO,CAAC;CAEV,OAAO,GACJ,MAAM,MACT;AACF;AAgGA,MAAa,YAAY,QAAiD;CACxE,OAAO,OAAO,QAAQ,YAAY,QAAQ,QAAQ,CAAC,MAAM,QAAQ,GAAG;AACtE;;;;AC1IA,MAAa,sBAAsB,EAAE,OAAO;CAC1C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uE;EACvE,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,OACE,SACmB;EACnB,OAAO;GACL,GAAG;GACH,aAAa;GACb;GACA,aAAa,QAAQ;EACvB;CACF;CACA,UAAU,SAA+D;EACvE,OAAO;GACL,GAAG;GACH,aAAa;GACb;GACA,aAAa,QAAQ;GACrB,UAAU;EACZ;CACF;CACA,WACE,SACuB;EACvB,OAAO;GACL,GAAG;GACH,aAAa;GACb;GACA,aAAa,QAAQ;EACvB;CACF;CACA,KACE,SACiB;EACjB,OAAO;GACL,GAAG;GACH,aAAa;GACb;GACA,aAAa,QAAQ;EACvB;CACF;CACA,OAAO,CAEP;AACF;AAUA,SAAgB,wBAAwB,EACtC,eACA,aAC0B;CAC1B,IAAI,CAAC,MAAM,QAAQ,SAAS,KAAK,MAAM,SAAS,GAC9C,OAAO;CAGT,OACE,UAAU,MACP,SAAS,iCAAiC,mBAAmB,KAAK,IACrE,KAAK,UAAU,GAAG,CAAC;AAEvB;AAOA,MAAM,mCAGF;;;;;;;;cAQ2B;AAC/B"}
package/dist/common.d.ts CHANGED
@@ -1,21 +1,20 @@
1
- import { i as IAction, s as ActionClassification } from "./action--RmO83_Y.js";
2
- import { Ct as StaticDropdownProperty, E as Store, G as ObjectProperty, Mt as ApStreamingFile, P as InputPropertyMap, R as StaticPropsValue, V as Property, ct as PieceAuthProperty, gt as NumberProperty, ht as CheckboxProperty, jt as ApFile, l as FilesService, n as AppConnectionValueForAuthProperty, ot as ExtractPieceAuthPropertyTypeForMethods, q as DynamicProperties, rt as DropdownProperty, x as ServerContext, xt as OAuth2PropertyValue } from "./index-BW6GxXEN.js";
1
+ import { i as IAction, s as ActionClassification } from "./action-BOq8m66H.js";
2
+ import { At as ApFile, B as Property, E as Store, K as DynamicProperties, P as InputPropertyMap, R as StaticPropsValue, St as StaticDropdownProperty, W as ObjectProperty, at as ExtractPieceAuthPropertyTypeForMethods, bt as OAuth2PropertyValue, ht as NumberProperty, jt as ApStreamingFile, l as FilesService, mt as CheckboxProperty, n as AppConnectionValueForAuthProperty, nt as DropdownProperty, st as PieceAuthProperty, x as ServerContext } from "./index-Ceki0QqC.js";
3
3
  import * as z from "zod/mini";
4
4
  import { Readable } from "node:stream";
5
-
6
5
  //#region upstream/common/lib/authentication/index.d.ts
7
- type Authentication = BearerTokenAuthentication | BasicAuthentication;
8
- declare enum AuthenticationType {
6
+ export type Authentication = BearerTokenAuthentication | BasicAuthentication;
7
+ export declare enum AuthenticationType {
9
8
  BEARER_TOKEN = "BEARER_TOKEN",
10
9
  BASIC = "BASIC"
11
10
  }
12
- type BaseAuthentication<T extends AuthenticationType> = {
11
+ export type BaseAuthentication<T extends AuthenticationType> = {
13
12
  type: T;
14
13
  };
15
- type BearerTokenAuthentication = BaseAuthentication<AuthenticationType.BEARER_TOKEN> & {
14
+ export type BearerTokenAuthentication = BaseAuthentication<AuthenticationType.BEARER_TOKEN> & {
16
15
  token: string;
17
16
  };
18
- type BasicAuthentication = BaseAuthentication<AuthenticationType.BASIC> & {
17
+ export type BasicAuthentication = BaseAuthentication<AuthenticationType.BASIC> & {
19
18
  username: string;
20
19
  password: string;
21
20
  };
@@ -24,7 +23,7 @@ type BasicAuthentication = BaseAuthentication<AuthenticationType.BASIC> & {
24
23
  type HttpHeaders = Record<string, string | string[] | undefined>;
25
24
  //#endregion
26
25
  //#region upstream/common/lib/http/core/delegating-authentication-converter.d.ts
27
- declare class DelegatingAuthenticationConverter implements AuthenticationConverter<Authentication> {
26
+ export declare class DelegatingAuthenticationConverter implements AuthenticationConverter<Authentication> {
28
27
  private readonly converters;
29
28
  constructor(bearerTokenConverter?: BearerTokenAuthenticationConverter, basicTokenConverter?: BasicTokenAuthenticationConverter);
30
29
  convert(authentication: Authentication, headers: HttpHeaders): HttpHeaders;
@@ -43,7 +42,7 @@ type AuthenticationConverter<T extends Authentication> = {
43
42
  type HttpMessageBody = any;
44
43
  //#endregion
45
44
  //#region upstream/common/lib/http/core/http-method.d.ts
46
- declare enum HttpMethod {
45
+ export declare enum HttpMethod {
47
46
  GET = "GET",
48
47
  POST = "POST",
49
48
  PATCH = "PATCH",
@@ -80,13 +79,13 @@ type HttpResponse<RequestBody extends HttpMessageBody = any> = {
80
79
  };
81
80
  //#endregion
82
81
  //#region upstream/common/lib/http/core/http-client.d.ts
83
- type HttpClient = {
82
+ export type HttpClient = {
84
83
  sendRequest<RequestBody extends HttpRequestBody, ResponseBody extends HttpMessageBody>(request: HttpRequest<RequestBody>, options?: SendRequestOptions): Promise<HttpResponse<ResponseBody>>;
85
84
  };
86
- declare const httpClient: FetchHttpClient;
85
+ export declare const httpClient: FetchHttpClient;
87
86
  //#endregion
88
87
  //#region upstream/common/lib/http/core/base-http-client.d.ts
89
- declare abstract class BaseHttpClient implements HttpClient {
88
+ export declare abstract class BaseHttpClient implements HttpClient {
90
89
  private readonly baseUrl;
91
90
  private readonly authenticationConverter;
92
91
  constructor(baseUrl: string, authenticationConverter: DelegatingAuthenticationConverter);
@@ -100,17 +99,17 @@ declare abstract class BaseHttpClient implements HttpClient {
100
99
  }
101
100
  //#endregion
102
101
  //#region upstream/common/lib/http/core/fetch-http-client.d.ts
103
- declare class FetchHttpClient extends BaseHttpClient {
102
+ export declare class FetchHttpClient extends BaseHttpClient {
104
103
  constructor(baseUrl?: string, authenticationConverter?: DelegatingAuthenticationConverter);
105
104
  sendRequest<ResponseBody extends HttpMessageBody = any>(request: HttpRequest<HttpRequestBody>, options?: SendRequestOptions): Promise<HttpResponse<ResponseBody>>;
106
105
  }
107
- declare function acceptsRequestBody(method: HttpMethod): boolean;
108
- type SendRequestOptions = {
106
+ export declare function acceptsRequestBody(method: HttpMethod): boolean;
107
+ export type SendRequestOptions = {
109
108
  dispatcher?: unknown;
110
109
  };
111
110
  //#endregion
112
111
  //#region upstream/common/lib/http/core/http-error.d.ts
113
- declare class HttpError extends Error {
112
+ export declare class HttpError extends Error {
114
113
  private readonly requestBody;
115
114
  private readonly status;
116
115
  private readonly responseBody;
@@ -132,10 +131,7 @@ declare class HttpError extends Error {
132
131
  body: unknown;
133
132
  };
134
133
  }
135
- declare function toFailsafeOutput({
136
- error,
137
- requestBody
138
- }: FailsafeOutputParams): {
134
+ export declare function toFailsafeOutput({ error, requestBody }: FailsafeOutputParams): {
139
135
  response: {
140
136
  status: number;
141
137
  body: unknown;
@@ -144,17 +140,17 @@ declare function toFailsafeOutput({
144
140
  body: unknown;
145
141
  };
146
142
  };
147
- type HttpErrorParams = {
143
+ export type HttpErrorParams = {
148
144
  status: number;
149
145
  responseBody: unknown;
150
146
  };
151
- type FailsafeOutputParams = {
147
+ export type FailsafeOutputParams = {
152
148
  error: unknown;
153
149
  requestBody: unknown;
154
150
  };
155
151
  //#endregion
156
152
  //#region upstream/common/lib/http/core/http-header.d.ts
157
- declare enum HttpHeader {
153
+ export declare enum HttpHeader {
158
154
  AUTHORIZATION = "Authorization",
159
155
  ACCEPT = "Accept",
160
156
  API_KEY = "x-api-key",
@@ -162,26 +158,15 @@ declare enum HttpHeader {
162
158
  }
163
159
  //#endregion
164
160
  //#region upstream/common/lib/http/core/media-type.d.ts
165
- declare enum MediaType {
161
+ export declare enum MediaType {
166
162
  APPLICATION_JSON = "application/json",
167
163
  TEXT_CSV = "text/csv"
168
164
  }
169
165
  //#endregion
170
166
  //#region upstream/common/lib/helpers/index.d.ts
171
- declare const getAccessTokenOrThrow: (auth: OAuth2PropertyValue | undefined) => string;
167
+ export declare const getAccessTokenOrThrow: (auth: OAuth2PropertyValue | undefined) => string;
172
168
  type BaseUrlGetter<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined> = (auth?: AppConnectionValueForAuthProperty<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>>) => string;
173
- declare function createCustomApiCallAction<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined>({
174
- auth,
175
- baseUrl,
176
- authMapping,
177
- description,
178
- displayName,
179
- name,
180
- props,
181
- extraProps,
182
- authLocation,
183
- classification
184
- }: {
169
+ export declare function createCustomApiCallAction<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined>({ auth, baseUrl, authMapping, description, displayName, name, props, extraProps, authLocation, classification }: {
185
170
  auth?: PieceAuth;
186
171
  baseUrl: BaseUrlGetter<PieceAuth>;
187
172
  authMapping?: (auth: AppConnectionValueForAuthProperty<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>>, propsValue: StaticPropsValue<any>) => Promise<HttpHeaders | QueryParams>;
@@ -205,16 +190,16 @@ declare function createCustomApiCallAction<PieceAuth extends PieceAuthProperty |
205
190
  }): IAction<PieceAuth, {
206
191
  url: DynamicProperties<true, PieceAuth | undefined>;
207
192
  method: StaticDropdownProperty<HttpMethod, false> | StaticDropdownProperty<HttpMethod, true>;
208
- headers: ObjectProperty<true> | ObjectProperty<false>;
209
- queryParams: ObjectProperty<true> | ObjectProperty<false>;
193
+ headers: ObjectProperty<false> | ObjectProperty<true>;
194
+ queryParams: ObjectProperty<false> | ObjectProperty<true>;
210
195
  body_type: DropdownProperty<string, false, PieceAuth | undefined>;
211
196
  body: DynamicProperties<false, PieceAuth | undefined>;
212
- response_is_binary: CheckboxProperty<true> | CheckboxProperty<false>;
213
- failsafe: CheckboxProperty<true> | CheckboxProperty<false>;
214
- timeout: NumberProperty<true> | NumberProperty<false>;
215
- followRedirects: CheckboxProperty<true> | CheckboxProperty<false>;
197
+ response_is_binary: CheckboxProperty<false> | CheckboxProperty<true>;
198
+ failsafe: CheckboxProperty<false> | CheckboxProperty<true>;
199
+ timeout: NumberProperty<false> | NumberProperty<true>;
200
+ followRedirects: CheckboxProperty<false> | CheckboxProperty<true>;
216
201
  }>;
217
- declare function is_chromium_installed(): boolean;
202
+ export declare function is_chromium_installed(): boolean;
218
203
  //#endregion
219
204
  //#region upstream/common/lib/polling/index.d.ts
220
205
  interface TimebasedPolling<AuthValue, PropsValue> {
@@ -244,20 +229,13 @@ interface LastItemPolling<AuthValue extends AppConnectionValueForAuthProperty<an
244
229
  data: unknown;
245
230
  }[]>;
246
231
  }
247
- declare enum DedupeStrategy {
232
+ export declare enum DedupeStrategy {
248
233
  TIMEBASED = 0,
249
234
  LAST_ITEM = 1
250
235
  }
251
- type Polling<AuthValue extends AppConnectionValueForAuthProperty<any>, PropsValue> = TimebasedPolling<AuthValue, PropsValue> | LastItemPolling<AuthValue, PropsValue>;
252
- declare const pollingHelper: {
253
- poll<AuthValue extends AppConnectionValueForAuthProperty<any>, PropsValue>(polling: Polling<AuthValue, PropsValue>, {
254
- store,
255
- auth,
256
- propsValue,
257
- maxItemsToPoll,
258
- files,
259
- server
260
- }: {
236
+ export type Polling<AuthValue extends AppConnectionValueForAuthProperty<any>, PropsValue> = TimebasedPolling<AuthValue, PropsValue> | LastItemPolling<AuthValue, PropsValue>;
237
+ export declare const pollingHelper: {
238
+ poll<AuthValue extends AppConnectionValueForAuthProperty<any>, PropsValue>(polling: Polling<AuthValue, PropsValue>, { store, auth, propsValue, maxItemsToPoll, files, server }: {
261
239
  store: Store;
262
240
  auth: AuthValue;
263
241
  propsValue: PropsValue;
@@ -265,13 +243,7 @@ declare const pollingHelper: {
265
243
  maxItemsToPoll?: number;
266
244
  server?: ServerContext;
267
245
  }): Promise<unknown[]>;
268
- onEnable<AuthValue extends AppConnectionValueForAuthProperty<any>, PropsValue>(polling: Polling<AuthValue, PropsValue>, {
269
- store,
270
- auth,
271
- propsValue,
272
- server,
273
- isRepublish
274
- }: {
246
+ onEnable<AuthValue extends AppConnectionValueForAuthProperty<any>, PropsValue>(polling: Polling<AuthValue, PropsValue>, { store, auth, propsValue, server, isRepublish }: {
275
247
  store: Store;
276
248
  auth: AuthValue;
277
249
  propsValue: PropsValue;
@@ -283,13 +255,7 @@ declare const pollingHelper: {
283
255
  auth: AuthValue;
284
256
  propsValue: PropsValue;
285
257
  }): Promise<void>;
286
- test<AuthValue extends AppConnectionValueForAuthProperty<any>, PropsValue>(polling: Polling<AuthValue, PropsValue>, {
287
- auth,
288
- propsValue,
289
- store,
290
- files,
291
- server
292
- }: {
258
+ test<AuthValue extends AppConnectionValueForAuthProperty<any>, PropsValue>(polling: Polling<AuthValue, PropsValue>, { auth, propsValue, store, files, server }: {
293
259
  store: Store;
294
260
  auth: AuthValue;
295
261
  propsValue: PropsValue;
@@ -303,22 +269,20 @@ declare function toStreamingBody(file: ApStreamingFile | ApFile): {
303
269
  body: Readable;
304
270
  size: number | undefined;
305
271
  };
306
- declare function readChunks({
307
- readable,
308
- chunkSize
309
- }: {
272
+ declare function readChunks({ readable, chunkSize }: {
310
273
  readable: Readable;
311
274
  chunkSize: number;
312
275
  }): AsyncGenerator<Buffer>;
313
- declare const streamUtils: {
276
+ export declare const streamUtils: {
314
277
  readChunks: typeof readChunks;
315
278
  toStreamingBody: typeof toStreamingBody;
316
279
  };
317
280
  //#endregion
318
281
  //#region upstream/common/lib/validation/index.d.ts
319
- declare const propsValidation: {
282
+ export declare const propsValidation: {
320
283
  validateZod<T extends Record<string, unknown>>(props: T, schema: Partial<Record<keyof T, z.core.$ZodType>>): Promise<void>;
321
284
  };
322
285
  //#endregion
323
- export { Authentication, AuthenticationType, FetchHttpClient as AxiosHttpClient, FetchHttpClient, BaseAuthentication, BaseHttpClient, BasicAuthentication, BearerTokenAuthentication, DedupeStrategy, DelegatingAuthenticationConverter, FailsafeOutputParams, HttpClient, HttpError, HttpErrorParams, HttpHeader, HttpHeaders, HttpMessageBody, HttpMethod, HttpRequest, HttpResponse, MediaType, Polling, QueryParams, SendRequestOptions, acceptsRequestBody, createCustomApiCallAction, getAccessTokenOrThrow, httpClient, is_chromium_installed, pollingHelper, propsValidation, streamUtils, toFailsafeOutput };
286
+ export { FetchHttpClient as AxiosHttpClient, type HttpHeaders, type HttpMessageBody, type HttpRequest, type HttpResponse, type QueryParams };
287
+ export {};
324
288
  //# sourceMappingURL=common.d.ts.map