n8n-nodes-base 2.23.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credentials/LinearOAuth2Api.credentials.js +1 -1
- package/dist/credentials/LinearOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.js +33 -2
- package/dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftOutlookOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/MicrosoftOutlookOAuth2Api.credentials.js +33 -3
- package/dist/credentials/MicrosoftOutlookOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js +34 -1
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/common/aws/utils.d.ts +6 -0
- package/dist/credentials/common/aws/utils.d.ts.map +1 -1
- package/dist/credentials/common/aws/utils.js +14 -0
- package/dist/credentials/common/aws/utils.js.map +1 -1
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/crypto/v1.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/crypto/v1.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/crypto/v2.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/crypto/v2.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailSend/v2.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailSend/v2.ts +4 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailSend/v21.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailSend/v21.ts +4 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v2.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v2.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v21.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v21.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v22.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v22.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v23.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v23.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v24.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v24.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v25.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v25.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v26.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v26.ts +249 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/nodes/Aws/DynamoDB/GenericFunctions.d.ts +1 -2
- package/dist/nodes/Aws/DynamoDB/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Aws/DynamoDB/GenericFunctions.js +0 -14
- package/dist/nodes/Aws/DynamoDB/GenericFunctions.js.map +1 -1
- package/dist/nodes/Aws/DynamoDB/utils.d.ts +1 -2
- package/dist/nodes/Aws/DynamoDB/utils.d.ts.map +1 -1
- package/dist/nodes/Aws/DynamoDB/utils.js +0 -14
- package/dist/nodes/Aws/DynamoDB/utils.js.map +1 -1
- package/dist/nodes/Aws/Textract/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Aws/Textract/GenericFunctions.js +2 -0
- package/dist/nodes/Aws/Textract/GenericFunctions.js.map +1 -1
- package/dist/nodes/Aws/Transcribe/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Aws/Transcribe/GenericFunctions.js +2 -0
- package/dist/nodes/Aws/Transcribe/GenericFunctions.js.map +1 -1
- package/dist/nodes/Bubble/Bubble.node.js +2 -2
- package/dist/nodes/Bubble/Bubble.node.js.map +1 -1
- package/dist/nodes/Compression/Compression.node.d.ts.map +1 -1
- package/dist/nodes/Compression/Compression.node.js +9 -6
- package/dist/nodes/Compression/Compression.node.js.map +1 -1
- package/dist/nodes/Compression/decompress/BoundedGunzip.d.ts +6 -0
- package/dist/nodes/Compression/decompress/BoundedGunzip.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/BoundedGunzip.js +83 -0
- package/dist/nodes/Compression/decompress/BoundedGunzip.js.map +1 -0
- package/dist/nodes/Compression/decompress/BoundedUnzip.d.ts +6 -0
- package/dist/nodes/Compression/decompress/BoundedUnzip.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/BoundedUnzip.js +118 -0
- package/dist/nodes/Compression/decompress/BoundedUnzip.js.map +1 -0
- package/dist/nodes/Compression/decompress/DecompressedSizeExceededError.d.ts +5 -0
- package/dist/nodes/Compression/decompress/DecompressedSizeExceededError.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/DecompressedSizeExceededError.js +12 -0
- package/dist/nodes/Compression/decompress/DecompressedSizeExceededError.js.map +1 -0
- package/dist/nodes/Compression/decompress/FeedInChunks.d.ts +7 -0
- package/dist/nodes/Compression/decompress/FeedInChunks.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/FeedInChunks.js +18 -0
- package/dist/nodes/Compression/decompress/FeedInChunks.js.map +1 -0
- package/dist/nodes/Compression/decompress/GunzipOutputAccumulator.d.ts +16 -0
- package/dist/nodes/Compression/decompress/GunzipOutputAccumulator.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/GunzipOutputAccumulator.js +34 -0
- package/dist/nodes/Compression/decompress/GunzipOutputAccumulator.js.map +1 -0
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.d.ts +19 -0
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.js +60 -0
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.js.map +1 -0
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.d.ts +20 -0
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.js +63 -0
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.js.map +1 -0
- package/dist/nodes/Crypto/v1/CryptoV1.node.d.ts.map +1 -1
- package/dist/nodes/Crypto/v1/CryptoV1.node.js +8 -0
- package/dist/nodes/Crypto/v1/CryptoV1.node.js.map +1 -1
- package/dist/nodes/Crypto/v2/CryptoV2.node.d.ts.map +1 -1
- package/dist/nodes/Crypto/v2/CryptoV2.node.js +8 -0
- package/dist/nodes/Crypto/v2/CryptoV2.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/utils.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v2/utils.js +13 -10
- package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
- package/dist/nodes/EmailSend/v2/send.operation.d.ts.map +1 -1
- package/dist/nodes/EmailSend/v2/send.operation.js +30 -11
- package/dist/nodes/EmailSend/v2/send.operation.js.map +1 -1
- package/dist/nodes/EmailSend/v2/utils.d.ts +1 -0
- package/dist/nodes/EmailSend/v2/utils.d.ts.map +1 -1
- package/dist/nodes/EmailSend/v2/utils.js.map +1 -1
- package/dist/nodes/Facebook/FacebookTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Facebook/FacebookTrigger.node.js +5 -11
- package/dist/nodes/Facebook/FacebookTrigger.node.js.map +1 -1
- package/dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js +1 -1
- package/dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js.map +1 -1
- package/dist/nodes/Filter/V2/FilterV2.node.d.ts.map +1 -1
- package/dist/nodes/Filter/V2/FilterV2.node.js +1 -1
- package/dist/nodes/Filter/V2/FilterV2.node.js.map +1 -1
- package/dist/nodes/Form/Form.node.d.ts.map +1 -1
- package/dist/nodes/Form/Form.node.js +15 -3
- package/dist/nodes/Form/Form.node.js.map +1 -1
- package/dist/nodes/Form/FormTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Form/FormTrigger.node.js +2 -1
- package/dist/nodes/Form/FormTrigger.node.js.map +1 -1
- package/dist/nodes/Form/utils/formCompletionUtils.d.ts +2 -2
- package/dist/nodes/Form/utils/formCompletionUtils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/formCompletionUtils.js +8 -1
- package/dist/nodes/Form/utils/formCompletionUtils.js.map +1 -1
- package/dist/nodes/Form/utils/formNodeUtils.d.ts +2 -2
- package/dist/nodes/Form/utils/formNodeUtils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/formNodeUtils.js +7 -1
- package/dist/nodes/Form/utils/formNodeUtils.js.map +1 -1
- package/dist/nodes/Form/utils/utils.d.ts +31 -2
- package/dist/nodes/Form/utils/utils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/utils.js +196 -16
- package/dist/nodes/Form/utils/utils.js.map +1 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts.map +1 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.js +41 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
- package/dist/nodes/HighLevel/v1/description/ContactDescription.d.ts.map +1 -1
- package/dist/nodes/HighLevel/v1/description/ContactDescription.js +13 -1
- package/dist/nodes/HighLevel/v1/description/ContactDescription.js.map +1 -1
- package/dist/nodes/If/V2/IfV2.node.d.ts.map +1 -1
- package/dist/nodes/If/V2/IfV2.node.js +1 -1
- package/dist/nodes/If/V2/IfV2.node.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.js +5 -5
- package/dist/nodes/Microsoft/Sql/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +4 -4
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +1 -1
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -1
- package/dist/nodes/MongoDb/GenericFunctions.d.ts +2 -1
- package/dist/nodes/MongoDb/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/MongoDb/GenericFunctions.js +26 -2
- package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -1
- package/dist/nodes/MongoDb/MongoDb.node.d.ts.map +1 -1
- package/dist/nodes/MongoDb/MongoDb.node.js +40 -59
- package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/create.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/create.operation.js +6 -0
- package/dist/nodes/Pipedrive/v2/actions/activity/create.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/getAll.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/getAll.operation.js +3 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/getAll.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/update.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/update.operation.js +6 -0
- package/dist/nodes/Pipedrive/v2/actions/activity/update.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/create.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/create.operation.js +6 -0
- package/dist/nodes/Pipedrive/v2/actions/deal/create.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/getAll.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/getAll.operation.js +3 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/getAll.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/update.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/update.operation.js +6 -0
- package/dist/nodes/Pipedrive/v2/actions/deal/update.operation.js.map +1 -1
- package/dist/nodes/Postgres/v1/genericFunctions.js +2 -2
- package/dist/nodes/Postgres/v1/genericFunctions.js.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts +1 -0
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/utils.js +136 -10
- package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Salesforce/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Salesforce/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Salesforce/GenericFunctions.js +4 -2
- package/dist/nodes/Salesforce/GenericFunctions.js.map +1 -1
- package/dist/nodes/Salesforce/SalesforceTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Salesforce/SalesforceTrigger.node.js +1 -1
- package/dist/nodes/Salesforce/SalesforceTrigger.node.js.map +1 -1
- package/dist/nodes/Stripe/StripeTriggerHelpers.d.ts.map +1 -1
- package/dist/nodes/Stripe/StripeTriggerHelpers.js +55 -47
- package/dist/nodes/Stripe/StripeTriggerHelpers.js.map +1 -1
- package/dist/nodes/Switch/V3/SwitchV3.node.js +1 -1
- package/dist/nodes/Switch/V3/SwitchV3.node.js.map +1 -1
- package/dist/nodes/Webhook/utils.d.ts.map +1 -1
- package/dist/nodes/WhatsApp/WhatsAppTrigger.node.js +1 -1
- package/dist/nodes/WhatsApp/WhatsAppTrigger.node.js.map +1 -1
- package/dist/nodes/Zulip/GenericFunctions.d.ts +1 -0
- package/dist/nodes/Zulip/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Zulip/GenericFunctions.js +22 -0
- package/dist/nodes/Zulip/GenericFunctions.js.map +1 -1
- package/dist/nodes/Zulip/Zulip.node.js +1 -1
- package/dist/nodes/Zulip/Zulip.node.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/credentials.json +4 -4
- package/dist/types/nodes.json +8 -8
- package/package.json +14 -13
|
@@ -56,7 +56,7 @@ class LinearOAuth2Api {
|
|
|
56
56
|
displayName: 'Scope',
|
|
57
57
|
name: 'scope',
|
|
58
58
|
type: 'hidden',
|
|
59
|
-
default: '={{$self["includeAdminScope"] ? "
|
|
59
|
+
default: '={{"read write issues:create comments:create" + ($self["includeAdminScope"] ? " admin" : "") + ($self["actor"] === "app" ? " app:mentionable" : "")}}',
|
|
60
60
|
required: true,
|
|
61
61
|
},
|
|
62
62
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinearOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/LinearOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAC3B,IAAI,GAAG,iBAAiB,CAAC;IAEzB,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;IAExB,WAAW,GAAG,mBAAmB,CAAC;IAElC,gBAAgB,GAAG,QAAQ,CAAC;IAE5B,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,mBAAmB;SAC5B;QACD;YACC,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,oCAAoC;YAC7C,QAAQ,EAAE,IAAI;SACd;QACD;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,oCAAoC;YAC7C,QAAQ,EAAE,IAAI;SACd;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,kEAAkE;iBAC/E;gBACD;oBACC,IAAI,EAAE,aAAa;oBACnB,KAAK,EAAE,KAAK;oBACZ,WAAW,EAAE,0CAA0C;iBACvD;aACD;YACD,OAAO,EAAE,MAAM;SACf;QACD;YACC,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,qDAAqD;SAClE;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EACN,
|
|
1
|
+
{"version":3,"file":"LinearOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/LinearOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAC3B,IAAI,GAAG,iBAAiB,CAAC;IAEzB,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;IAExB,WAAW,GAAG,mBAAmB,CAAC;IAElC,gBAAgB,GAAG,QAAQ,CAAC;IAE5B,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,mBAAmB;SAC5B;QACD;YACC,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,oCAAoC;YAC7C,QAAQ,EAAE,IAAI;SACd;QACD;YACC,WAAW,EAAE,kBA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icrosoftOneDriveOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MicrosoftOneDriveOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MicrosoftOneDriveOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKrE,qBAAa,0BAA2B,YAAW,eAAe;IACjE,IAAI,SAAgC;IAEpC,OAAO,WAA0B;IAEjC,WAAW,SAAgC;IAE3C,gBAAgB,SAAe;IAE/B,UAAU,EAAE,eAAe,EAAE,CAuC3B;CACF"}
|
|
@@ -1,18 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MicrosoftOneDriveOAuth2Api = void 0;
|
|
4
|
+
//https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
|
|
5
|
+
const defaultScopes = ['openid', 'offline_access', 'Files.ReadWrite.All'];
|
|
4
6
|
class MicrosoftOneDriveOAuth2Api {
|
|
5
7
|
name = 'microsoftOneDriveOAuth2Api';
|
|
6
8
|
extends = ['microsoftOAuth2Api'];
|
|
7
9
|
displayName = 'Microsoft Drive OAuth2 API';
|
|
8
10
|
documentationUrl = 'microsoft';
|
|
9
11
|
properties = [
|
|
10
|
-
|
|
12
|
+
{
|
|
13
|
+
displayName: 'Custom Scopes',
|
|
14
|
+
name: 'customScopes',
|
|
15
|
+
type: 'boolean',
|
|
16
|
+
default: false,
|
|
17
|
+
description: 'Define custom scopes',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'The default scopes needed for the node to work are already set, If you change these the node may not function correctly.',
|
|
21
|
+
name: 'customScopesNotice',
|
|
22
|
+
type: 'notice',
|
|
23
|
+
default: '',
|
|
24
|
+
displayOptions: {
|
|
25
|
+
show: {
|
|
26
|
+
customScopes: [true],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Enabled Scopes',
|
|
32
|
+
name: 'enabledScopes',
|
|
33
|
+
type: 'string',
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: {
|
|
36
|
+
customScopes: [true],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
default: defaultScopes.join(' '),
|
|
40
|
+
description: 'Scopes that should be enabled',
|
|
41
|
+
},
|
|
11
42
|
{
|
|
12
43
|
displayName: 'Scope',
|
|
13
44
|
name: 'scope',
|
|
14
45
|
type: 'hidden',
|
|
15
|
-
default: '
|
|
46
|
+
default: '={{$self["customScopes"] ? $self["enabledScopes"] : "' + defaultScopes.join(' ') + '"}}',
|
|
16
47
|
},
|
|
17
48
|
];
|
|
18
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrosoftOneDriveOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/MicrosoftOneDriveOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,0BAA0B;IACtC,IAAI,GAAG,4BAA4B,CAAC;IAEpC,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAEjC,WAAW,GAAG,4BAA4B,CAAC;IAE3C,gBAAgB,GAAG,WAAW,CAAC;IAE/B,UAAU,GAAsB;QAC/B,
|
|
1
|
+
{"version":3,"file":"MicrosoftOneDriveOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/MicrosoftOneDriveOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,4FAA4F;AAC5F,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,gBAAgB,EAAE,qBAAqB,CAAC,CAAC;AAE1E,MAAa,0BAA0B;IACtC,IAAI,GAAG,4BAA4B,CAAC;IAEpC,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAEjC,WAAW,GAAG,4BAA4B,CAAC;IAE3C,gBAAgB,GAAG,WAAW,CAAC;IAE/B,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,sBAAsB;SACnC;QACD;YACC,WAAW,EACV,0HAA0H;YAC3H,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,YAAY,EAAE,CAAC,IAAI,CAAC;iBACpB;aACD;SACD;QACD;YACC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,YAAY,EAAE,CAAC,IAAI,CAAC;iBACpB;aACD;YACD,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC;YAChC,WAAW,EAAE,+BAA+B;SAC5C;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EACN,uDAAuD,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK;SAC1F;KACD,CAAC;CACF;AAjDD,gEAiDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrosoftOutlookOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MicrosoftOutlookOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MicrosoftOutlookOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MicrosoftOutlookOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAkBrE,qBAAa,yBAA0B,YAAW,eAAe;IAChE,IAAI,SAA+B;IAEnC,OAAO,WAA0B;IAEjC,WAAW,SAAkC;IAE7C,gBAAgB,SAAe;IAE/B,UAAU,EAAE,eAAe,EAAE,CAyD3B;CACF"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MicrosoftOutlookOAuth2Api = void 0;
|
|
4
|
-
|
|
4
|
+
//https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
|
|
5
|
+
const defaultScopes = [
|
|
5
6
|
'openid',
|
|
6
7
|
'offline_access',
|
|
7
8
|
'Contacts.Read',
|
|
@@ -21,12 +22,41 @@ class MicrosoftOutlookOAuth2Api {
|
|
|
21
22
|
displayName = 'Microsoft Outlook OAuth2 API';
|
|
22
23
|
documentationUrl = 'microsoft';
|
|
23
24
|
properties = [
|
|
24
|
-
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Custom Scopes',
|
|
27
|
+
name: 'customScopes',
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
default: false,
|
|
30
|
+
description: 'Define custom scopes',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'The default scopes needed for the node to work are already set. If you change these the node may not function correctly.',
|
|
34
|
+
name: 'customScopesNotice',
|
|
35
|
+
type: 'notice',
|
|
36
|
+
default: '',
|
|
37
|
+
displayOptions: {
|
|
38
|
+
show: {
|
|
39
|
+
customScopes: [true],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Enabled Scopes',
|
|
45
|
+
name: 'enabledScopes',
|
|
46
|
+
type: 'string',
|
|
47
|
+
displayOptions: {
|
|
48
|
+
show: {
|
|
49
|
+
customScopes: [true],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
default: defaultScopes.join(' '),
|
|
53
|
+
description: 'Scopes that should be enabled',
|
|
54
|
+
},
|
|
25
55
|
{
|
|
26
56
|
displayName: 'Scope',
|
|
27
57
|
name: 'scope',
|
|
28
58
|
type: 'hidden',
|
|
29
|
-
default:
|
|
59
|
+
default: '={{$self["customScopes"] ? $self["enabledScopes"] : "' + defaultScopes.join(' ') + '"}}',
|
|
30
60
|
},
|
|
31
61
|
{
|
|
32
62
|
displayName: 'Use Shared Mailbox',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrosoftOutlookOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/MicrosoftOutlookOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"MicrosoftOutlookOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/MicrosoftOutlookOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,4FAA4F;AAC5F,MAAM,aAAa,GAAG;IACrB,QAAQ;IACR,gBAAgB;IAChB,eAAe;IACf,oBAAoB;IACpB,gBAAgB;IAChB,uBAAuB;IACvB,qBAAqB;IACrB,gBAAgB;IAChB,uBAAuB;IACvB,WAAW;IACX,kBAAkB;IAClB,sBAAsB;CACtB,CAAC;AAEF,MAAa,yBAAyB;IACrC,IAAI,GAAG,2BAA2B,CAAC;IAEnC,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAEjC,WAAW,GAAG,8BAA8B,CAAC;IAE7C,gBAAgB,GAAG,WAAW,CAAC;IAE/B,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,sBAAsB;SACnC;QACD;YACC,WAAW,EACV,0HAA0H;YAC3H,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,YAAY,EAAE,CAAC,IAAI,CAAC;iBACpB;aACD;SACD;QACD;YACC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,YAAY,EAAE,CAAC,IAAI,CAAC;iBACpB;aACD;YACD,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC;YAChC,WAAW,EAAE,+BAA+B;SAC5C;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EACN,uDAAuD,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK;SAC1F;QACD;YACC,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACd;QACD;YACC,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,SAAS,EAAE,CAAC,IAAI,CAAC;iBACjB;aACD;SACD;KACD,CAAC;CACF;AAnED,8DAmEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrosoftSharePointOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MicrosoftSharePointOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MicrosoftSharePointOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MicrosoftSharePointOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI3E,qBAAa,4BAA6B,YAAW,eAAe;IACnE,IAAI,SAAkC;IAEtC,OAAO,WAA0B;IAEjC,IAAI,EAAE,IAAI,CAGR;IAEF,WAAW,SAAqC;IAEhD,gBAAgB,SAAe;IAE/B,eAAe;;;;MAIb;IAEF,UAAU,EAAE,eAAe,EAAE,CAuD3B;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MicrosoftSharePointOAuth2Api = void 0;
|
|
4
|
+
const defaultScopes = ['openid', 'offline_access', 'https://{subdomain}.sharepoint.com/.default'];
|
|
4
5
|
class MicrosoftSharePointOAuth2Api {
|
|
5
6
|
name = 'microsoftSharePointOAuth2Api';
|
|
6
7
|
extends = ['microsoftOAuth2Api'];
|
|
@@ -16,11 +17,43 @@ class MicrosoftSharePointOAuth2Api {
|
|
|
16
17
|
apiBaseUrlPlaceholder: 'https://{subdomain}.sharepoint.com/_api/v2.0/',
|
|
17
18
|
};
|
|
18
19
|
properties = [
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Custom Scopes',
|
|
22
|
+
name: 'customScopes',
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
default: false,
|
|
25
|
+
description: 'Define custom scopes',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
displayName: 'The default scopes needed for the node to work are already set, If you change these the node may not function correctly. Use the <code>{subdomain}</code> placeholder to reference the Subdomain value below.',
|
|
29
|
+
name: 'customScopesNotice',
|
|
30
|
+
type: 'notice',
|
|
31
|
+
default: '',
|
|
32
|
+
displayOptions: {
|
|
33
|
+
show: {
|
|
34
|
+
customScopes: [true],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Enabled Scopes',
|
|
40
|
+
name: 'enabledScopes',
|
|
41
|
+
type: 'string',
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: {
|
|
44
|
+
customScopes: [true],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
default: defaultScopes.join(' '),
|
|
48
|
+
description: 'Scopes that should be enabled. Use <code>{subdomain}</code> as a placeholder that will be replaced with the Subdomain value.',
|
|
49
|
+
},
|
|
19
50
|
{
|
|
20
51
|
displayName: 'Scope',
|
|
21
52
|
name: 'scope',
|
|
22
53
|
type: 'hidden',
|
|
23
|
-
default: '=
|
|
54
|
+
default: '={{($self["customScopes"] ? $self["enabledScopes"] : "' +
|
|
55
|
+
defaultScopes.join(' ') +
|
|
56
|
+
'").replace(/\\{subdomain\\}/g, $self["subdomain"])}}',
|
|
24
57
|
},
|
|
25
58
|
{
|
|
26
59
|
displayName: 'Subdomain',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrosoftSharePointOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/MicrosoftSharePointOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,4BAA4B;IACxC,IAAI,GAAG,8BAA8B,CAAC;IAEtC,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAEjC,IAAI,GAAS;QACZ,KAAK,EAAE,oCAAoC;QAC3C,IAAI,EAAE,oCAAoC;KAC1C,CAAC;IAEF,WAAW,GAAG,iCAAiC,CAAC;IAEhD,gBAAgB,GAAG,WAAW,CAAC;IAE/B,eAAe,GAAG;QACjB,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,6EAA6E;QACtF,qBAAqB,EAAE,+CAA+C;KACtE,CAAC;IAEF,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,
|
|
1
|
+
{"version":3,"file":"MicrosoftSharePointOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/MicrosoftSharePointOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAM,a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AE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,uIAAuI;SAC7I;QACD;YACC,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,6BAA6B;SACtC;KACD,CAAC;CACF;AA5ED,oEA4EC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { type IHttpRequestMethods, type ICredentialTestRequest, type IHttpRequestOptions } from 'n8n-workflow';
|
|
2
2
|
import type { Request } from 'aws4';
|
|
3
3
|
import { type AwsCredentialsTypeBase, type AWSRegion, type AwsAssumeRoleCredentialsType, type AwsSecurityHeaders } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Ensures the region value belongs to the supported AWS regions list before it
|
|
6
|
+
* is interpolated into request URLs or signing options. Anything outside the
|
|
7
|
+
* known set is rejected with a controlled error.
|
|
8
|
+
*/
|
|
9
|
+
export declare function assertSupportedAwsRegion(region: unknown): asserts region is AWSRegion;
|
|
4
10
|
/**
|
|
5
11
|
* Gets the AWS domain for a specific region.
|
|
6
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../credentials/common/aws/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,mBAAmB,EAGxB,KAAK,sBAAsB,EAE3B,KAAK,mBAAmB,EAExB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAEN,KAAK,sBAAsB,EAE3B,KAAK,SAAS,EACd,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../credentials/common/aws/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,mBAAmB,EAGxB,KAAK,sBAAsB,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EACnC,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,mBAAmB,uBAiB5B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.awsCredentialsTest = void 0;
|
|
4
|
+
exports.assertSupportedAwsRegion = assertSupportedAwsRegion;
|
|
4
5
|
exports.getAwsDomain = getAwsDomain;
|
|
5
6
|
exports.parseAwsUrl = parseAwsUrl;
|
|
6
7
|
exports.awsGetSignInOptionsAndUpdateRequest = awsGetSignInOptionsAndUpdateRequest;
|
|
@@ -25,6 +26,17 @@ function shouldStringifyBody(value, headers) {
|
|
|
25
26
|
}
|
|
26
27
|
return false;
|
|
27
28
|
}
|
|
29
|
+
const SUPPORTED_AWS_REGIONS = new Set(types_1.regions.map((r) => r.name));
|
|
30
|
+
/**
|
|
31
|
+
* Ensures the region value belongs to the supported AWS regions list before it
|
|
32
|
+
* is interpolated into request URLs or signing options. Anything outside the
|
|
33
|
+
* known set is rejected with a controlled error.
|
|
34
|
+
*/
|
|
35
|
+
function assertSupportedAwsRegion(region) {
|
|
36
|
+
if (typeof region !== 'string' || !SUPPORTED_AWS_REGIONS.has(region)) {
|
|
37
|
+
throw new n8n_workflow_1.ApplicationError('Unsupported AWS region');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
28
40
|
/**
|
|
29
41
|
* Gets the AWS domain for a specific region.
|
|
30
42
|
*
|
|
@@ -83,6 +95,7 @@ exports.awsCredentialsTest = {
|
|
|
83
95
|
* @returns Object containing signing options and the constructed endpoint URL
|
|
84
96
|
*/
|
|
85
97
|
function awsGetSignInOptionsAndUpdateRequest(requestOptions, credentials, path, method, service, region) {
|
|
98
|
+
assertSupportedAwsRegion(region);
|
|
86
99
|
let body = requestOptions.body;
|
|
87
100
|
let endpoint;
|
|
88
101
|
let query = requestOptions.qs?.query;
|
|
@@ -214,6 +227,7 @@ function awsGetSignInOptionsAndUpdateRequest(requestOptions, credentials, path,
|
|
|
214
227
|
* @see {@link https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html STS AssumeRole API}
|
|
215
228
|
*/
|
|
216
229
|
async function assumeRole(credentials, region) {
|
|
230
|
+
assertSupportedAwsRegion(region);
|
|
217
231
|
let stsCallCredentials;
|
|
218
232
|
const useSystemCredentialsForRole = credentials.useSystemCredentialsForRole ?? false;
|
|
219
233
|
if (useSystemCredentialsForRole) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../credentials/common/aws/utils.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../credentials/common/aws/utils.ts"],"names":[],"mappings":";;;AAiDA,4DAIC;AAQD,oCAEC;AAWD,kCAKC;AAoCD,kFAwHC;AAeD,gCAkIC;AAED,kCAsBC;AApZD,+CASsB;AACtB,mCAAqC;AAErC,mCAOiB;AACjB,+BAA4B;AAE5B,yEAAkE;AAElE;;;GAGG;AACH,SAAS,mBAAmB,CAAI,KAAQ,EAAE,OAAoB;IAC7D,IACC,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAC1B,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAC1B,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EACtB,CAAC;QACF,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,qBAAqB,GAAwB,IAAI,GAAG,CAAC,eAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAEvF;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,MAAe;IACvD,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,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C;YACb,CAAC;iBAAM,CAAC;gBACP,OAAO,CAAC,IAAI,CAAC,CAAC;YACf,CAAC;QACF,CAAC,CACD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAI,YAAY,CAAC,kBAAkC;QACxE,EAAE,gBAA+B,CAAC;IACnC,IAAI,CAAC,gBAAgB,EAAE,WAAW,EAAE,CAAC;QACpC,MAAM,IAAI,+BAAgB,CAAC,sCAAsC,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,WAA0B,CAAC;IAEvE,MAAM,eAAe,GAAG;QACvB,WAAW,EAAE,kBAAkB,CAAC,WAAqB;QACrD,eAAe,EAAE,kBAAkB,CAAC,eAAyB;QAC7D,YAAY,EAAE,kBAAkB,CAAC,YAAsB;KACvD,CAAC;IAEF,OAAO,eAAe,CAAC;AACxB,CAAC;AAED,SAAgB,WAAW,CAC1B,cAAmC,EACnC,QAAiB,EACjB,eAAmC,EACnC,GAAW,EACX,MAA4B;IAE5B,IAAI,CAAC;QACJ,IAAA,WAAI,EAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACjC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC;IACD,MAAM,OAAO,GAAwB;QACpC,GAAG,cAAc;QACjB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,MAAM;QACN,GAAG;QACH,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,EAAE,EAAE,SAAS,EAAE,yCAAyC;KACxD,CAAC;IAEF,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c4e92941d971ad749f0beead14a3777cf45d1283c927bfecd392f943958a91f6
|
|
@@ -17,7 +17,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
17
17
|
action: z.union([z.literal('generate'), z.literal('hash'), z.literal('hmac'), z.literal('sign'), expressionSchema]).optional(),
|
|
18
18
|
binaryData: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"action":["hash","hmac"]}}, defaults: {"action":"hash"} }),
|
|
19
19
|
binaryPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"action":["hash","hmac"],"binaryData":[true]}}, defaults: {"action":"hash","binaryData":false} }),
|
|
20
|
-
type: resolveSchema({ parameters, schema: z.union([z.literal('MD5'), z.literal('SHA256'), z.literal('SHA3-256'), z.literal('SHA3-384'), z.literal('SHA3-512'), z.literal('SHA384'), z.literal('SHA512'), expressionSchema]), required: false, displayOptions: {"show":{"action":["hash","hmac"]}}, defaults: {"action":"hash"} }),
|
|
20
|
+
type: resolveSchema({ parameters, schema: z.union([z.literal('MD5'), z.literal('SHA1'), z.literal('SHA256'), z.literal('SHA3-256'), z.literal('SHA3-384'), z.literal('SHA3-512'), z.literal('SHA384'), z.literal('SHA512'), expressionSchema]), required: false, displayOptions: {"show":{"action":["hash","hmac"]}}, defaults: {"action":"hash"} }),
|
|
21
21
|
value: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"action":["hash","hmac","sign"],"binaryData":[false]}}, defaults: {"action":"hash","binaryData":false} }),
|
|
22
22
|
dataPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"action":["hash","hmac","sign","generate"]}}, defaults: {"action":"hash"} }),
|
|
23
23
|
encoding: resolveSchema({ parameters, schema: z.union([z.literal('base64'), z.literal('hex'), expressionSchema]), required: false, displayOptions: {"show":{"action":["hash","hmac","sign"]}}, defaults: {"action":"hash"} }),
|
|
@@ -23,7 +23,7 @@ export interface CryptoV1Params {
|
|
|
23
23
|
* @displayOptions.show { action: ["hash"] }
|
|
24
24
|
* @default MD5
|
|
25
25
|
*/
|
|
26
|
-
type?: 'MD5' | 'SHA256' | 'SHA3-256' | 'SHA3-384' | 'SHA3-512' | 'SHA384' | 'SHA512' | Expression<string>;
|
|
26
|
+
type?: 'MD5' | 'SHA1' | 'SHA256' | 'SHA3-256' | 'SHA3-384' | 'SHA3-512' | 'SHA384' | 'SHA512' | Expression<string>;
|
|
27
27
|
/**
|
|
28
28
|
* The value that should be hashed
|
|
29
29
|
* @displayOptions.show { action: ["hash"], binaryData: [false] }
|
|
@@ -17,7 +17,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
17
17
|
action: z.union([z.literal('decrypt'), z.literal('encrypt'), z.literal('generate'), z.literal('hash'), z.literal('hmac'), z.literal('sign'), expressionSchema]).optional(),
|
|
18
18
|
binaryData: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"action":["hash","hmac"]}}, defaults: {"action":"hash"} }),
|
|
19
19
|
binaryPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"action":["hash","hmac"],"binaryData":[true]}}, defaults: {"action":"hash","binaryData":false} }),
|
|
20
|
-
type: resolveSchema({ parameters, schema: z.union([z.literal('MD5'), z.literal('SHA256'), z.literal('SHA3-256'), z.literal('SHA3-384'), z.literal('SHA3-512'), z.literal('SHA384'), z.literal('SHA512'), expressionSchema]), required: false, displayOptions: {"show":{"action":["hash","hmac"]}}, defaults: {"action":"hash"} }),
|
|
20
|
+
type: resolveSchema({ parameters, schema: z.union([z.literal('MD5'), z.literal('SHA1'), z.literal('SHA256'), z.literal('SHA3-256'), z.literal('SHA3-384'), z.literal('SHA3-512'), z.literal('SHA384'), z.literal('SHA512'), expressionSchema]), required: false, displayOptions: {"show":{"action":["hash","hmac"]}}, defaults: {"action":"hash"} }),
|
|
21
21
|
value: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"action":["hash","hmac","sign","encrypt","decrypt"],"binaryData":[false]}}, defaults: {"action":"hash","binaryData":false} }),
|
|
22
22
|
dataPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"action":["hash","hmac","sign","generate","encrypt","decrypt"]}}, defaults: {"action":"hash"} }),
|
|
23
23
|
encoding: resolveSchema({ parameters, schema: z.union([z.literal('base64'), z.literal('hex'), expressionSchema]), required: false, displayOptions: {"show":{"action":["hash","hmac","sign"]}}, defaults: {"action":"hash"} }),
|
|
@@ -23,7 +23,7 @@ export interface CryptoV2Params {
|
|
|
23
23
|
* @displayOptions.show { action: ["hash"] }
|
|
24
24
|
* @default SHA256
|
|
25
25
|
*/
|
|
26
|
-
type?: 'MD5' | 'SHA256' | 'SHA3-256' | 'SHA3-384' | 'SHA3-512' | 'SHA384' | 'SHA512' | Expression<string>;
|
|
26
|
+
type?: 'MD5' | 'SHA1' | 'SHA256' | 'SHA3-256' | 'SHA3-384' | 'SHA3-512' | 'SHA384' | 'SHA512' | Expression<string>;
|
|
27
27
|
/**
|
|
28
28
|
* The value that should be hashed
|
|
29
29
|
* @displayOptions.show { action: ["hash"], binaryData: [false] }
|
|
@@ -22,7 +22,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
22
22
|
emailFormat: resolveSchema({ parameters, schema: z.union([z.literal('text'), z.literal('html'), z.literal('both'), expressionSchema]), required: false, displayOptions: {"show":{"resource":["email"],"operation":["send"]}}, defaults: {"resource":"email","operation":"send"} }),
|
|
23
23
|
text: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"emailFormat":["text","both"],"resource":["email"],"operation":["send"]}}, defaults: {"emailFormat":"text","resource":"email","operation":"send"} }),
|
|
24
24
|
html: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"emailFormat":["html","both"],"resource":["email"],"operation":["send"]}}, defaults: {"emailFormat":"text","resource":"email","operation":"send"} }),
|
|
25
|
-
options: resolveSchema({ parameters, schema: z.object({ appendAttribution: booleanOrExpression.optional(), attachments: stringOrExpression.optional(), ccEmail: stringOrExpression.optional(), bccEmail: stringOrExpression.optional(), allowUnauthorizedCerts: booleanOrExpression.optional(), replyTo: stringOrExpression.optional(), limitWaitTime: z.object({ values: z.object({ limitType: z.union([z.literal('afterTimeInterval'), z.literal('atSpecifiedTime'), expressionSchema]).optional(), resumeAmount: numberOrExpression.optional(), resumeUnit: z.union([z.literal('minutes'), z.literal('hours'), z.literal('days'), expressionSchema]).optional(), maxDateAndTime: stringOrExpression.optional() }).optional() }).optional(), messageButtonLabel: stringOrExpression.optional(), responseFormTitle: stringOrExpression.optional(), responseFormDescription: stringOrExpression.optional(), responseFormButtonLabel: stringOrExpression.optional(), responseFormCustomCss: stringOrExpression.optional() }), required: false, displayOptions: {"show":{"resource":["email"],"operation":["send","sendAndWait"],"responseType":["approval","freeText","customForm"]}}, defaults: {"resource":"email","operation":"send","responseType":"approval"} }),
|
|
25
|
+
options: resolveSchema({ parameters, schema: z.object({ appendAttribution: booleanOrExpression.optional(), attachments: stringOrExpression.optional(), fileAttachments: stringOrExpression.optional(), ccEmail: stringOrExpression.optional(), bccEmail: stringOrExpression.optional(), allowUnauthorizedCerts: booleanOrExpression.optional(), replyTo: stringOrExpression.optional(), limitWaitTime: z.object({ values: z.object({ limitType: z.union([z.literal('afterTimeInterval'), z.literal('atSpecifiedTime'), expressionSchema]).optional(), resumeAmount: numberOrExpression.optional(), resumeUnit: z.union([z.literal('minutes'), z.literal('hours'), z.literal('days'), expressionSchema]).optional(), maxDateAndTime: stringOrExpression.optional() }).optional() }).optional(), messageButtonLabel: stringOrExpression.optional(), responseFormTitle: stringOrExpression.optional(), responseFormDescription: stringOrExpression.optional(), responseFormButtonLabel: stringOrExpression.optional(), responseFormCustomCss: stringOrExpression.optional() }), required: false, displayOptions: {"show":{"resource":["email"],"operation":["send","sendAndWait"],"responseType":["approval","freeText","customForm"]}}, defaults: {"resource":"email","operation":"send","responseType":"approval"} }),
|
|
26
26
|
message: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"resource":["email"],"operation":["sendAndWait"]}}, defaults: {"resource":"email","operation":"send"} }),
|
|
27
27
|
responseType: resolveSchema({ parameters, schema: z.union([z.literal('approval'), z.literal('freeText'), z.literal('customForm'), expressionSchema]), required: false, displayOptions: {"show":{"resource":["email"],"operation":["sendAndWait"]}}, defaults: {"resource":"email","operation":"send"} }),
|
|
28
28
|
defineForm: resolveSchema({ parameters, schema: z.union([z.literal('fields'), z.literal('json')]), required: false, displayOptions: {"show":{"responseType":["customForm"],"resource":["email"],"operation":["sendAndWait"]}}, defaults: {"responseType":"approval","resource":"email","operation":"send"} }),
|
|
@@ -53,9 +53,12 @@ export interface EmailSendV2Params {
|
|
|
53
53
|
* @default true
|
|
54
54
|
*/
|
|
55
55
|
appendAttribution?: boolean | Expression<boolean>;
|
|
56
|
-
/**
|
|
56
|
+
/** Binary properties to embed in the email body. Multiple ones can be comma-separated. Reference them in HTML via <code>cid:propertyName</code>, e.g. <img src="cid:image_1">. Use 'Attachments (File)' for regular file attachments.
|
|
57
57
|
*/
|
|
58
58
|
attachments?: string | Expression<string>;
|
|
59
|
+
/** Binary properties to attach to the email as regular files. Multiple ones can be comma-separated. They appear in the recipient's attachments list and are not embedded in the body.
|
|
60
|
+
*/
|
|
61
|
+
fileAttachments?: string | Expression<string>;
|
|
59
62
|
/** Email address of CC recipient
|
|
60
63
|
*/
|
|
61
64
|
ccEmail?: string | Expression<string>;
|
|
@@ -22,7 +22,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
22
22
|
emailFormat: resolveSchema({ parameters, schema: z.union([z.literal('text'), z.literal('html'), z.literal('both'), expressionSchema]), required: false, displayOptions: {"show":{"resource":["email"],"operation":["send"]}}, defaults: {"resource":"email","operation":"send"} }),
|
|
23
23
|
text: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"emailFormat":["text","both"],"resource":["email"],"operation":["send"]}}, defaults: {"emailFormat":"html","resource":"email","operation":"send"} }),
|
|
24
24
|
html: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"emailFormat":["html","both"],"resource":["email"],"operation":["send"]}}, defaults: {"emailFormat":"html","resource":"email","operation":"send"} }),
|
|
25
|
-
options: resolveSchema({ parameters, schema: z.object({ appendAttribution: booleanOrExpression.optional(), attachments: stringOrExpression.optional(), ccEmail: stringOrExpression.optional(), bccEmail: stringOrExpression.optional(), allowUnauthorizedCerts: booleanOrExpression.optional(), replyTo: stringOrExpression.optional(), limitWaitTime: z.object({ values: z.object({ limitType: z.union([z.literal('afterTimeInterval'), z.literal('atSpecifiedTime'), expressionSchema]).optional(), resumeAmount: numberOrExpression.optional(), resumeUnit: z.union([z.literal('minutes'), z.literal('hours'), z.literal('days'), expressionSchema]).optional(), maxDateAndTime: stringOrExpression.optional() }).optional() }).optional(), messageButtonLabel: stringOrExpression.optional(), responseFormTitle: stringOrExpression.optional(), responseFormDescription: stringOrExpression.optional(), responseFormButtonLabel: stringOrExpression.optional(), responseFormCustomCss: stringOrExpression.optional() }), required: false, displayOptions: {"show":{"resource":["email"],"operation":["send","sendAndWait"],"responseType":["approval","freeText","customForm"]}}, defaults: {"resource":"email","operation":"send","responseType":"approval"} }),
|
|
25
|
+
options: resolveSchema({ parameters, schema: z.object({ appendAttribution: booleanOrExpression.optional(), attachments: stringOrExpression.optional(), fileAttachments: stringOrExpression.optional(), ccEmail: stringOrExpression.optional(), bccEmail: stringOrExpression.optional(), allowUnauthorizedCerts: booleanOrExpression.optional(), replyTo: stringOrExpression.optional(), limitWaitTime: z.object({ values: z.object({ limitType: z.union([z.literal('afterTimeInterval'), z.literal('atSpecifiedTime'), expressionSchema]).optional(), resumeAmount: numberOrExpression.optional(), resumeUnit: z.union([z.literal('minutes'), z.literal('hours'), z.literal('days'), expressionSchema]).optional(), maxDateAndTime: stringOrExpression.optional() }).optional() }).optional(), messageButtonLabel: stringOrExpression.optional(), responseFormTitle: stringOrExpression.optional(), responseFormDescription: stringOrExpression.optional(), responseFormButtonLabel: stringOrExpression.optional(), responseFormCustomCss: stringOrExpression.optional() }), required: false, displayOptions: {"show":{"resource":["email"],"operation":["send","sendAndWait"],"responseType":["approval","freeText","customForm"]}}, defaults: {"resource":"email","operation":"send","responseType":"approval"} }),
|
|
26
26
|
message: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"resource":["email"],"operation":["sendAndWait"]}}, defaults: {"resource":"email","operation":"send"} }),
|
|
27
27
|
responseType: resolveSchema({ parameters, schema: z.union([z.literal('approval'), z.literal('freeText'), z.literal('customForm'), expressionSchema]), required: false, displayOptions: {"show":{"resource":["email"],"operation":["sendAndWait"]}}, defaults: {"resource":"email","operation":"send"} }),
|
|
28
28
|
defineForm: resolveSchema({ parameters, schema: z.union([z.literal('fields'), z.literal('json')]), required: false, displayOptions: {"show":{"responseType":["customForm"],"resource":["email"],"operation":["sendAndWait"]}}, defaults: {"responseType":"approval","resource":"email","operation":"send"} }),
|
|
@@ -53,9 +53,12 @@ export interface EmailSendV21Params {
|
|
|
53
53
|
* @default true
|
|
54
54
|
*/
|
|
55
55
|
appendAttribution?: boolean | Expression<boolean>;
|
|
56
|
-
/**
|
|
56
|
+
/** Binary properties to embed in the email body. Multiple ones can be comma-separated. Reference them in HTML via <code>cid:propertyName</code>, e.g. <img src="cid:image_1">. Use 'Attachments (File)' for regular file attachments.
|
|
57
57
|
*/
|
|
58
58
|
attachments?: string | Expression<string>;
|
|
59
|
+
/** Binary properties to attach to the email as regular files. Multiple ones can be comma-separated. They appear in the recipient's attachments list and are not embedded in the body.
|
|
60
|
+
*/
|
|
61
|
+
fileAttachments?: string | Expression<string>;
|
|
59
62
|
/** Email address of CC recipient
|
|
60
63
|
*/
|
|
61
64
|
ccEmail?: string | Expression<string>;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Re-exports all version-specific types and provides combined union type.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import type { FormTriggerV26Node } from './v26';
|
|
7
8
|
import type { FormTriggerV25Node } from './v25';
|
|
8
9
|
import type { FormTriggerV24Node } from './v24';
|
|
9
10
|
import type { FormTriggerV23Node } from './v23';
|
|
@@ -12,6 +13,7 @@ import type { FormTriggerV21Node } from './v21';
|
|
|
12
13
|
import type { FormTriggerV2Node } from './v2';
|
|
13
14
|
import type { FormTriggerV1Node } from './v1';
|
|
14
15
|
|
|
16
|
+
export * from './v26';
|
|
15
17
|
export * from './v25';
|
|
16
18
|
export * from './v24';
|
|
17
19
|
export * from './v23';
|
|
@@ -21,4 +23,4 @@ export * from './v2';
|
|
|
21
23
|
export * from './v1';
|
|
22
24
|
|
|
23
25
|
// Combined union type for all versions
|
|
24
|
-
export type FormTriggerNode = FormTriggerV25Node | FormTriggerV24Node | FormTriggerV23Node | FormTriggerV22Node | FormTriggerV21Node | FormTriggerV2Node | FormTriggerV1Node;
|
|
26
|
+
export type FormTriggerNode = FormTriggerV26Node | FormTriggerV25Node | FormTriggerV24Node | FormTriggerV23Node | FormTriggerV22Node | FormTriggerV21Node | FormTriggerV2Node | FormTriggerV1Node;
|
|
@@ -20,7 +20,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
20
20
|
formDescription: stringOrExpression.optional(),
|
|
21
21
|
formFields: z.object({ values: z.array(z.object({ fieldName: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), fieldType: z.union([z.literal('checkbox'), z.literal('html'), z.literal('date'), z.literal('dropdown'), z.literal('email'), z.literal('file'), z.literal('hiddenField'), z.literal('number'), z.literal('password'), z.literal('radio'), z.literal('text'), z.literal('textarea'), expressionSchema]).optional(), elementName: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), placeholder: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), fieldValue: stringOrExpression.optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), multiselect: booleanOrExpression.optional(), limitSelection: z.union([z.literal('exact'), z.literal('range'), z.literal('unlimited'), expressionSchema]).optional(), numberOfSelections: numberOrExpression.optional(), minSelections: numberOrExpression.optional(), maxSelections: numberOrExpression.optional(), html: z.string().optional(), multipleFiles: booleanOrExpression.optional(), acceptFileTypes: stringOrExpression.optional(), requiredField: booleanOrExpression.optional() })).optional() }).optional(),
|
|
22
22
|
responseMode: z.union([z.literal('onReceived'), z.literal('lastNode'), z.literal('responseNode'), expressionSchema]).optional(),
|
|
23
|
-
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
23
|
+
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), includeUserInOutput: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
// Return combined config schema
|
|
@@ -216,6 +216,11 @@ export interface FormTriggerV2Params {
|
|
|
216
216
|
* @default false
|
|
217
217
|
*/
|
|
218
218
|
ignoreBots?: boolean | Expression<boolean>;
|
|
219
|
+
/** Whether to include the logged-in user's ID, email and name in the trigger output
|
|
220
|
+
* @displayOptions.show { /authentication: ["n8nUserAuth"] }
|
|
221
|
+
* @default true
|
|
222
|
+
*/
|
|
223
|
+
includeUserInOutput?: boolean | Expression<boolean>;
|
|
219
224
|
/** Whether to use the workflow timezone in 'submittedAt' field or UTC
|
|
220
225
|
* @default false
|
|
221
226
|
*/
|
|
@@ -20,7 +20,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
20
20
|
formDescription: stringOrExpression.optional(),
|
|
21
21
|
formFields: z.object({ values: z.array(z.object({ fieldName: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), fieldType: z.union([z.literal('checkbox'), z.literal('html'), z.literal('date'), z.literal('dropdown'), z.literal('email'), z.literal('file'), z.literal('hiddenField'), z.literal('number'), z.literal('password'), z.literal('radio'), z.literal('text'), z.literal('textarea'), expressionSchema]).optional(), elementName: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), placeholder: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), fieldValue: stringOrExpression.optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), multiselect: booleanOrExpression.optional(), limitSelection: z.union([z.literal('exact'), z.literal('range'), z.literal('unlimited'), expressionSchema]).optional(), numberOfSelections: numberOrExpression.optional(), minSelections: numberOrExpression.optional(), maxSelections: numberOrExpression.optional(), html: z.string().optional(), multipleFiles: booleanOrExpression.optional(), acceptFileTypes: stringOrExpression.optional(), requiredField: booleanOrExpression.optional() })).optional() }).optional(),
|
|
22
22
|
responseMode: z.union([z.literal('onReceived'), z.literal('lastNode'), z.literal('responseNode'), expressionSchema]).optional(),
|
|
23
|
-
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
23
|
+
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), includeUserInOutput: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
// Return combined config schema
|
|
@@ -216,6 +216,11 @@ export interface FormTriggerV21Params {
|
|
|
216
216
|
* @default false
|
|
217
217
|
*/
|
|
218
218
|
ignoreBots?: boolean | Expression<boolean>;
|
|
219
|
+
/** Whether to include the logged-in user's ID, email and name in the trigger output
|
|
220
|
+
* @displayOptions.show { /authentication: ["n8nUserAuth"] }
|
|
221
|
+
* @default true
|
|
222
|
+
*/
|
|
223
|
+
includeUserInOutput?: boolean | Expression<boolean>;
|
|
219
224
|
/** Whether to use the workflow timezone in 'submittedAt' field or UTC
|
|
220
225
|
* @default false
|
|
221
226
|
*/
|
|
@@ -19,7 +19,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
19
19
|
formDescription: stringOrExpression.optional(),
|
|
20
20
|
formFields: z.object({ values: z.array(z.object({ fieldName: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), fieldType: z.union([z.literal('checkbox'), z.literal('html'), z.literal('date'), z.literal('dropdown'), z.literal('email'), z.literal('file'), z.literal('hiddenField'), z.literal('number'), z.literal('password'), z.literal('radio'), z.literal('text'), z.literal('textarea'), expressionSchema]).optional(), elementName: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), placeholder: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), fieldValue: stringOrExpression.optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), multiselect: booleanOrExpression.optional(), limitSelection: z.union([z.literal('exact'), z.literal('range'), z.literal('unlimited'), expressionSchema]).optional(), numberOfSelections: numberOrExpression.optional(), minSelections: numberOrExpression.optional(), maxSelections: numberOrExpression.optional(), html: z.string().optional(), multipleFiles: booleanOrExpression.optional(), acceptFileTypes: stringOrExpression.optional(), requiredField: booleanOrExpression.optional() })).optional() }).optional(),
|
|
21
21
|
responseMode: z.union([z.literal('onReceived'), z.literal('lastNode'), expressionSchema]).optional(),
|
|
22
|
-
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
22
|
+
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), includeUserInOutput: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Return combined config schema
|
|
@@ -212,6 +212,11 @@ export interface FormTriggerV22Params {
|
|
|
212
212
|
* @default false
|
|
213
213
|
*/
|
|
214
214
|
ignoreBots?: boolean | Expression<boolean>;
|
|
215
|
+
/** Whether to include the logged-in user's ID, email and name in the trigger output
|
|
216
|
+
* @displayOptions.show { /authentication: ["n8nUserAuth"] }
|
|
217
|
+
* @default true
|
|
218
|
+
*/
|
|
219
|
+
includeUserInOutput?: boolean | Expression<boolean>;
|
|
215
220
|
/** Whether to use the workflow timezone in 'submittedAt' field or UTC
|
|
216
221
|
* @default false
|
|
217
222
|
*/
|
|
@@ -19,7 +19,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
19
19
|
formDescription: stringOrExpression.optional(),
|
|
20
20
|
formFields: z.object({ values: z.array(z.object({ fieldName: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), fieldType: z.union([z.literal('checkbox'), z.literal('html'), z.literal('date'), z.literal('dropdown'), z.literal('email'), z.literal('file'), z.literal('hiddenField'), z.literal('number'), z.literal('password'), z.literal('radio'), z.literal('text'), z.literal('textarea'), expressionSchema]).optional(), elementName: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), placeholder: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), fieldValue: stringOrExpression.optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), multiselect: booleanOrExpression.optional(), limitSelection: z.union([z.literal('exact'), z.literal('range'), z.literal('unlimited'), expressionSchema]).optional(), numberOfSelections: numberOrExpression.optional(), minSelections: numberOrExpression.optional(), maxSelections: numberOrExpression.optional(), html: z.string().optional(), multipleFiles: booleanOrExpression.optional(), acceptFileTypes: stringOrExpression.optional(), requiredField: booleanOrExpression.optional() })).optional() }).optional(),
|
|
21
21
|
responseMode: z.union([z.literal('onReceived'), z.literal('lastNode'), expressionSchema]).optional(),
|
|
22
|
-
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
22
|
+
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), includeUserInOutput: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Return combined config schema
|
|
@@ -212,6 +212,11 @@ export interface FormTriggerV23Params {
|
|
|
212
212
|
* @default false
|
|
213
213
|
*/
|
|
214
214
|
ignoreBots?: boolean | Expression<boolean>;
|
|
215
|
+
/** Whether to include the logged-in user's ID, email and name in the trigger output
|
|
216
|
+
* @displayOptions.show { /authentication: ["n8nUserAuth"] }
|
|
217
|
+
* @default true
|
|
218
|
+
*/
|
|
219
|
+
includeUserInOutput?: boolean | Expression<boolean>;
|
|
215
220
|
/** Whether to use the workflow timezone in 'submittedAt' field or UTC
|
|
216
221
|
* @default false
|
|
217
222
|
*/
|