@powerhousedao/pieces-framework 6.2.3-dev.80 → 6.2.3-dev.81
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/README.md +34 -10
- package/UPSTREAM.md +5 -5
- package/dist/{action-DlYHJrZw.d.ts → action-CmHctrqT.d.ts} +2 -2
- package/dist/{action-DlYHJrZw.d.ts.map → action-CmHctrqT.d.ts.map} +1 -1
- package/dist/authentication-o-4CdAPR.js.map +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js.map +1 -1
- package/dist/host.d.ts +1 -1
- package/dist/host.js.map +1 -1
- package/dist/{index-C1fMWjxn.d.ts → index-DABWPk4W.d.ts} +11 -2
- package/dist/{index-C1fMWjxn.d.ts.map → index-DABWPk4W.d.ts.map} +1 -1
- package/dist/index.d.ts +58 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +106 -13
- package/dist/index.js.map +1 -1
- package/dist/input-BHkj_oP5.js.map +1 -1
- package/dist/markdown-property-DMfHjEiL.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -185,9 +185,12 @@ export const archiveInvoice = createAction({
|
|
|
185
185
|
async run(ctx) {
|
|
186
186
|
const doc = await ctx.reactor.get(ctx.propsValue.invoiceId);
|
|
187
187
|
const invoice = await ctx.reactor.getDocumentModelModuleForDocument(doc);
|
|
188
|
-
const
|
|
188
|
+
const handle = await ctx.reactor.write.execute(doc.header.id, "main", [
|
|
189
189
|
invoice.actions.setStatus({ status: "ARCHIVED" }),
|
|
190
190
|
]);
|
|
191
|
+
const { job } = await handle.readable;
|
|
192
|
+
if (job.result?.allApplied === false) throw new Error("Not archived");
|
|
193
|
+
const updated = await handle.document();
|
|
191
194
|
return { header: updated.header, state: updated.state };
|
|
192
195
|
},
|
|
193
196
|
});
|
|
@@ -197,14 +200,27 @@ export const archiveInvoice = createAction({
|
|
|
197
200
|
`ReactorClient`. Both are `Pick`s of `IReactorClient`, with the client's own
|
|
198
201
|
signatures; `ReadMethods`, `WriteMethods` and `RefusedMethods` name the
|
|
199
202
|
methods. `false`, like no declaration, gives no `ctx.reactor`.
|
|
200
|
-
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
+
- `ReactorClient.write` is `ReactorWriteClient`, a `Pick` of the reactor's
|
|
204
|
+
`IReactorWriteClient`: `create`, `createEmpty`, `execute`, `deleteDocument`
|
|
205
|
+
(no cascade), and `drives.addFile` and `drives.addFolder`
|
|
206
|
+
(`WriteHalfMethods`, `DriveWriteHalfMethods`). Each answers once its job is
|
|
207
|
+
accepted with a handle: `written`, `readable` (a receipt whose
|
|
208
|
+
`job.result.actions` holds each action's outcome) and `document(view?)`. A
|
|
209
|
+
reducer error is on the receipt, not thrown.
|
|
210
|
+
- The facade's writes (`create`, `createEmpty`, `execute`, `executeAsync`,
|
|
211
|
+
`deleteDocument`, `drives.addFile`, `drives.addFolder`) are deprecated and
|
|
212
|
+
still served, so published pieces keep working. They return once applied and
|
|
213
|
+
throw `ReactorActionsFailedError` on a reducer error.
|
|
214
|
+
- Build actions with the model's action creators, such as `setName` from
|
|
215
|
+
`@powerhousedao/shared/document-model`, `addFile` from
|
|
203
216
|
`@powerhousedao/shared/document-drive`, or `module.actions.*` from
|
|
204
|
-
`getDocumentModelModuleForDocument`, and pass them to `execute`.
|
|
217
|
+
`getDocumentModelModuleForDocument`, and pass them to `write.execute`. It
|
|
205
218
|
refuses document lifecycle actions, and the client's convenience writes
|
|
206
|
-
(`rename`, relationships, upgrades, batches,
|
|
207
|
-
drive's nodes
|
|
219
|
+
(`rename`, relationships, upgrades, batches, other drive writes) are refused,
|
|
220
|
+
on the facade and on `write`. Read a drive's nodes with `drives.listNodes`.
|
|
221
|
+
- A write the run user may not make throws `ReactorAccessDeniedError` before
|
|
222
|
+
anything is submitted. Its message ends with
|
|
223
|
+
`denied action indexes: [0,2]`; `deniedActionIndexes(error)` reads them.
|
|
208
224
|
- `query({ subgraph, query, variables })` (`IndexQueryMethods`, on both
|
|
209
225
|
types) reads a read-model index the host serves as a GraphQL subgraph, by
|
|
210
226
|
the name the host registers it under, with the host's own permission rules
|
|
@@ -217,9 +233,17 @@ export const archiveInvoice = createAction({
|
|
|
217
233
|
- `ph build` copies the declaration into `descriptor.json`.
|
|
218
234
|
`ph generate piece-action` and `ph generate piece-trigger` write
|
|
219
235
|
`requireReactor: false`, or the value of `--require-reactor read|write`.
|
|
236
|
+
- `createAction` also takes `defaultTimeoutSeconds` (positive) and
|
|
237
|
+
`defaultRetry` (`maxAttempts`, plus optional `backoff`,
|
|
238
|
+
`initialDelaySeconds`, `maxDelaySeconds` and `retryOn`), used for a step
|
|
239
|
+
that sets no timeout or retry of its own. The workflow's own default retry
|
|
240
|
+
wins over the action's. A `defaultRetry` without delays
|
|
241
|
+
backs off exponentially from 5s, capped at 300s. `ph generate piece-action`
|
|
242
|
+
writes them commented out, or set from `--default-timeout-seconds` and
|
|
243
|
+
`--default-max-attempts`.
|
|
220
244
|
- The host serves `ctx.reactor`. Each call acts as the workflow's run user,
|
|
221
|
-
within the step's reactor connection and deadline.
|
|
222
|
-
|
|
245
|
+
within the step's reactor connection and deadline. A handle waits only for
|
|
246
|
+
its own step's jobs; a failed job rejects its stages with `JobFailedError`.
|
|
223
247
|
- Errors cross the worker boundary by `name` and `message`, so compare
|
|
224
248
|
`error.name` against the exported constants: `ReactorAccessDeniedError`,
|
|
225
249
|
`ReactorJobFailedError`, `ReactorActionsFailedError`,
|
|
@@ -328,7 +352,7 @@ specifiers (`@powerhousedao/pieces-framework` to
|
|
|
328
352
|
## Syncing upstream
|
|
329
353
|
|
|
330
354
|
```sh
|
|
331
|
-
pnpm --filter @powerhousedao/pieces-framework sync-upstream -- --tag 0.
|
|
355
|
+
pnpm --filter @powerhousedao/pieces-framework sync-upstream -- --tag 0.92.3
|
|
332
356
|
```
|
|
333
357
|
|
|
334
358
|
`scripts/sync-upstream.mts` is the only thing that writes `upstream/` and
|
package/UPSTREAM.md
CHANGED
|
@@ -6,9 +6,9 @@ Never edit them by hand; re-run the sync instead.
|
|
|
6
6
|
|
|
7
7
|
| | |
|
|
8
8
|
| --------- | ------------------------------------------ |
|
|
9
|
-
| Tag | `0.
|
|
10
|
-
| Commit | `
|
|
11
|
-
| Committed | 2026-
|
|
9
|
+
| Tag | `0.92.3` |
|
|
10
|
+
| Commit | `2fc7f8dcaa84400f9db53fb0de7fc4340d055c62` |
|
|
11
|
+
| Committed | 2026-10-12 |
|
|
12
12
|
|
|
13
13
|
The same facts, plus the per-file upstream path and the SHA-256 of every
|
|
14
14
|
original file, live in `upstream/MANIFEST.json`; the package versions are in
|
|
@@ -18,10 +18,10 @@ original file, live in `upstream/MANIFEST.json`; the package versions are in
|
|
|
18
18
|
|
|
19
19
|
| Upstream package | Upstream path | Here |
|
|
20
20
|
| --------------------------------------- | ------------------------------- | ---------------------------- |
|
|
21
|
-
| `@activepieces/pieces-framework` 0.
|
|
21
|
+
| `@activepieces/pieces-framework` 0.40.0 | `packages/pieces/framework/src` | `upstream/framework/` |
|
|
22
22
|
| `@activepieces/pieces-common` 0.14.0 | `packages/pieces/common/src` | `upstream/common/` |
|
|
23
23
|
| `@activepieces/core-piece-types` 0.11.1 | `packages/core/piece-types/src` | `upstream/core-piece-types/` |
|
|
24
|
-
| `@activepieces/core-utils` 0.
|
|
24
|
+
| `@activepieces/core-utils` 0.8.1 | `packages/core/utils/src` | `upstream/core-utils/` |
|
|
25
25
|
| `@activepieces/engine` 0.7.0 | `packages/server/engine/src` | `upstream/engine/` |
|
|
26
26
|
|
|
27
27
|
The first four are vendored whole. The engine is not: `PACKAGES` gives it an
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as TriggerHookContext,
|
|
1
|
+
import { A as TriggerHookContext, F as InputPropertyMap, Gt as MarkdownVariant, Jt as TriggerTestStrategy, Lt as PropertyType, R as PiecePropertyMap, Xt as WebhookHandshakeStrategy, Yt as WebhookHandshakeConfiguration, f as OnStartContext, k as TestOrRunHookContext, lt as PieceAuthProperty, qt as TriggerStrategy, rn as OAuth2GrantType, st as ExtractPieceAuthPropertyTypeForMethods, t as ActionContext, xt as OAuth2AuthorizationMethod } from "./index-DABWPk4W.js";
|
|
2
2
|
import * as z from "zod/mini";
|
|
3
3
|
//#region upstream/core-piece-types/lib/piece.d.ts
|
|
4
4
|
declare enum PackageType {
|
|
@@ -12760,4 +12760,4 @@ declare const createAction: <PieceAuth extends PieceAuthProperty | PieceAuthProp
|
|
|
12760
12760
|
//#endregion
|
|
12761
12761
|
export { WebhookRenewStrategy as A, LATEST_CONTEXT_VERSION as C, ITrigger as D, DEDUPE_KEY_PROPERTY as E, OutputSchemaField as F, LocalesEnum as I, PieceCategory as L, createTrigger as M, FieldFormat as N, Trigger as O, OutputSchema as P, ContextVersion as S, backwardCompatabilityContextUtils as T, PropertyGroup as _, createAction as a, TriggerBase as b, AiMetadata as c, PieceBase as d, PieceMetadata as f, PiecePackageInformation as g, PieceMetadataSummary as h, IAction as i, WebhookResponse as j, WebhookRenewConfiguration as k, Audience as l, PieceMetadataModelSummary as m, ActionRunner as n, ActionBase as o, PieceMetadataModel as p, ErrorHandlingOptionsParam as r, ActionClassification as s, Action as t, I18nForPiece as u, PropertyGroupDisplay as v, MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION as w, isReadOnlyClassification as x, READ_ONLY_CLASSIFICATIONS as y };
|
|
12762
12762
|
export {};
|
|
12763
|
-
//# sourceMappingURL=action-
|
|
12763
|
+
//# sourceMappingURL=action-CmHctrqT.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-DlYHJrZw.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,SAC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AW,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
|
+
{"version":3,"file":"action-CmHctrqT.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,uC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F;EACA,uBAAuB;EACvB,eAAe;EACf,WAAW;EACX,aAAa;EACb,iBAAiB;;cAIN,QACX,kBAAkB,oBAAoB,uCACtC,oBAAoB,mBAAmB,6BAC5B;WAEO;WACA;WACA;WACA,OAAO;WACP,gBAAgB;WAChB,KAAK,aACnB,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 +1 @@
|
|
|
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;;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,kCAAkC;AAC/C,MAAa,YAAY;CACvB,WACE,SACuE;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"}
|
|
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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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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;CACA;CACA;AACF,CAAC;AAmBD,MAAa,kCAAkC;AAC/C,MAAa,YAAY;CACvB,WACE,SACuE;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,5 +1,5 @@
|
|
|
1
|
-
import { i as IAction, s as ActionClassification } from "./action-
|
|
2
|
-
import {
|
|
1
|
+
import { i as IAction, s as ActionClassification } from "./action-CmHctrqT.js";
|
|
2
|
+
import { Ct as OAuth2PropertyValue, E as Store, Et as StaticDropdownProperty, F as InputPropertyMap, Ft as ApStreamingFile, G as ObjectProperty, Pt as ApFile, V as Property, _t as CheckboxProperty, it as DropdownProperty, l as FilesService, lt as PieceAuthProperty, n as AppConnectionValueForAuthProperty, q as DynamicProperties, st as ExtractPieceAuthPropertyTypeForMethods, vt as NumberProperty, x as ServerContext, z as StaticPropsValue } from "./index-DABWPk4W.js";
|
|
3
3
|
import * as z from "zod/mini";
|
|
4
4
|
import { Readable } from "node:stream";
|
|
5
5
|
//#region upstream/common/lib/authentication/index.d.ts
|