@activepieces/piece-aiprise 0.1.2 → 0.1.3

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.
Files changed (77) hide show
  1. package/package.json +7 -12
  2. package/src/index.js +17 -64
  3. package/src/index.d.ts +0 -5
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/create-business-profile.d.ts +0 -22
  7. package/src/lib/actions/create-business-profile.d.ts.map +0 -1
  8. package/src/lib/actions/create-business-profile.js +0 -171
  9. package/src/lib/actions/create-business-profile.js.map +0 -1
  10. package/src/lib/actions/create-user-profile.d.ts +0 -23
  11. package/src/lib/actions/create-user-profile.d.ts.map +0 -1
  12. package/src/lib/actions/create-user-profile.js +0 -146
  13. package/src/lib/actions/create-user-profile.js.map +0 -1
  14. package/src/lib/actions/get-additional-user-info.d.ts +0 -7
  15. package/src/lib/actions/get-additional-user-info.d.ts.map +0 -1
  16. package/src/lib/actions/get-additional-user-info.js +0 -37
  17. package/src/lib/actions/get-additional-user-info.js.map +0 -1
  18. package/src/lib/actions/get-business-documents.d.ts +0 -7
  19. package/src/lib/actions/get-business-documents.d.ts.map +0 -1
  20. package/src/lib/actions/get-business-documents.js +0 -37
  21. package/src/lib/actions/get-business-documents.js.map +0 -1
  22. package/src/lib/actions/get-business-input-data.d.ts +0 -7
  23. package/src/lib/actions/get-business-input-data.d.ts.map +0 -1
  24. package/src/lib/actions/get-business-input-data.js +0 -38
  25. package/src/lib/actions/get-business-input-data.js.map +0 -1
  26. package/src/lib/actions/get-business-profile.d.ts +0 -7
  27. package/src/lib/actions/get-business-profile.d.ts.map +0 -1
  28. package/src/lib/actions/get-business-profile.js +0 -37
  29. package/src/lib/actions/get-business-profile.js.map +0 -1
  30. package/src/lib/actions/get-business-result.d.ts +0 -7
  31. package/src/lib/actions/get-business-result.d.ts.map +0 -1
  32. package/src/lib/actions/get-business-result.js +0 -38
  33. package/src/lib/actions/get-business-result.js.map +0 -1
  34. package/src/lib/actions/get-user-input-data.d.ts +0 -7
  35. package/src/lib/actions/get-user-input-data.d.ts.map +0 -1
  36. package/src/lib/actions/get-user-input-data.js +0 -38
  37. package/src/lib/actions/get-user-input-data.js.map +0 -1
  38. package/src/lib/actions/get-user-profile.d.ts +0 -7
  39. package/src/lib/actions/get-user-profile.d.ts.map +0 -1
  40. package/src/lib/actions/get-user-profile.js +0 -37
  41. package/src/lib/actions/get-user-profile.js.map +0 -1
  42. package/src/lib/actions/get-verification-result.d.ts +0 -7
  43. package/src/lib/actions/get-verification-result.d.ts.map +0 -1
  44. package/src/lib/actions/get-verification-result.js +0 -38
  45. package/src/lib/actions/get-verification-result.js.map +0 -1
  46. package/src/lib/actions/get-verification-url.d.ts +0 -8
  47. package/src/lib/actions/get-verification-url.d.ts.map +0 -1
  48. package/src/lib/actions/get-verification-url.js +0 -47
  49. package/src/lib/actions/get-verification-url.js.map +0 -1
  50. package/src/lib/actions/run-business-verification.d.ts +0 -8
  51. package/src/lib/actions/run-business-verification.d.ts.map +0 -1
  52. package/src/lib/actions/run-business-verification.js +0 -44
  53. package/src/lib/actions/run-business-verification.js.map +0 -1
  54. package/src/lib/actions/run-document-check.d.ts +0 -12
  55. package/src/lib/actions/run-document-check.d.ts.map +0 -1
  56. package/src/lib/actions/run-document-check.js +0 -74
  57. package/src/lib/actions/run-document-check.js.map +0 -1
  58. package/src/lib/actions/run-user-verification-profile.d.ts +0 -8
  59. package/src/lib/actions/run-user-verification-profile.d.ts.map +0 -1
  60. package/src/lib/actions/run-user-verification-profile.js +0 -44
  61. package/src/lib/actions/run-user-verification-profile.js.map +0 -1
  62. package/src/lib/actions/search-businesses.d.ts +0 -9
  63. package/src/lib/actions/search-businesses.d.ts.map +0 -1
  64. package/src/lib/actions/search-businesses.js +0 -54
  65. package/src/lib/actions/search-businesses.js.map +0 -1
  66. package/src/lib/actions/update-verification-result.d.ts +0 -8
  67. package/src/lib/actions/update-verification-result.d.ts.map +0 -1
  68. package/src/lib/actions/update-verification-result.js +0 -52
  69. package/src/lib/actions/update-verification-result.js.map +0 -1
  70. package/src/lib/common/auth.d.ts +0 -5
  71. package/src/lib/common/auth.d.ts.map +0 -1
  72. package/src/lib/common/auth.js +0 -32
  73. package/src/lib/common/auth.js.map +0 -1
  74. package/src/lib/common/index.d.ts +0 -20
  75. package/src/lib/common/index.d.ts.map +0 -1
  76. package/src/lib/common/index.js +0 -31
  77. package/src/lib/common/index.js.map +0 -1
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBusinessResultAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.getBusinessResultAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'get_business_verification_result',
12
- displayName: 'Get Business Verification Result',
13
- description: "Fetches the current status and outcome of a company's background check — whether it is still running, approved, or declined.",
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Looks up the current status and decision (running, approved, or declined) of a single business (KYB) verification by its session ID. Use this to poll or read the outcome of a previously started business verification. Requires the verification session ID. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- props: {
20
- session_id: pieces_framework_1.Property.ShortText({
21
- displayName: 'Verification Session ID',
22
- description: 'The ID of the business verification to look up. You can get this from the output of the **Start Business Verification** action, or from the **session_id** field in any webhook payload from AiPrise.',
23
- required: true,
24
- }),
25
- },
26
- run(context) {
27
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
- const { session_id } = context.propsValue;
29
- const result = yield common_1.aiprise.makeRequest({
30
- auth: context.auth.props,
31
- method: pieces_common_1.HttpMethod.GET,
32
- path: `/verify/get_business_verification_result/${session_id}`,
33
- });
34
- return result;
35
- });
36
- },
37
- });
38
- //# sourceMappingURL=get-business-result.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-business-result.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-result.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,kCAAkC;IAC/C,WAAW,EACT,8HAA8H;IAChI,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,0RAA0R;QAC5R,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,uMAAuM;YACzM,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,4CAA4C,UAAU,EAAE;aAC/D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const getUserInputDataAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- }>;
7
- //# sourceMappingURL=get-user-input-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-user-input-data.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-input-data.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;EA6BjC,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUserInputDataAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.getUserInputDataAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'get_user_input_data',
12
- displayName: 'Get Person\'s Submitted Verification Data',
13
- description: 'Returns the information the person entered and the documents they uploaded during their identity check (e.g. name, date of birth, ID document details).',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Retrieves the raw data a person submitted during an identity verification — the details they typed and the documents they uploaded — for a single verification session. Use this when you need the person\'s submitted input itself rather than the pass/fail decision (see Get Identity Verification Result for the outcome). Requires the verification session ID. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- props: {
20
- session_id: pieces_framework_1.Property.ShortText({
21
- displayName: 'Verification Session ID',
22
- description: 'The ID of the verification to retrieve data from. You can get this from the output of the **Start Identity Verification** action, or from the **session_id** field in any webhook payload from AiPrise.',
23
- required: true,
24
- }),
25
- },
26
- run(context) {
27
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
- const { session_id } = context.propsValue;
29
- const result = yield common_1.aiprise.makeRequest({
30
- auth: context.auth.props,
31
- method: pieces_common_1.HttpMethod.GET,
32
- path: `/verify/get_user_input_data_from_request/${session_id}`,
33
- });
34
- return result;
35
- });
36
- },
37
- });
38
- //# sourceMappingURL=get-user-input-data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-user-input-data.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-input-data.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,2CAA2C;IACxD,WAAW,EACT,yJAAyJ;IAC3J,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,gYAAgY;QAClY,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,yMAAyM;YAC3M,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,4CAA4C,UAAU,EAAE;aAC/D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const getUserProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- user_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- }>;
7
- //# sourceMappingURL=get-user-profile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-user-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;;EA4B/B,CAAC"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUserProfileAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.getUserProfileAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'get_user_profile',
12
- displayName: 'Get User Profile',
13
- description: "Fetches a user profile from AiPrise by its ID — including the person's stored details, tags, linked verification sessions, and metadata.",
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Fetches a single user (person) profile by its ID, returning the stored identity details, tags, linked verification sessions, and metadata. Use this to read back a profile you created or referenced. Requires the user_profile_id. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- props: {
20
- user_profile_id: pieces_framework_1.Property.ShortText({
21
- displayName: 'User Profile ID',
22
- description: 'The ID of the user profile to retrieve. You can get this from the output of the **Create User Profile** action, or from the `user_profile_id` field in any webhook payload from AiPrise.',
23
- required: true,
24
- }),
25
- },
26
- run(context) {
27
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
- const { user_profile_id } = context.propsValue;
29
- return common_1.aiprise.makeRequest({
30
- auth: context.auth.props,
31
- method: pieces_common_1.HttpMethod.GET,
32
- path: `/verify/get_user_profile/${encodeURIComponent(user_profile_id)}`,
33
- });
34
- });
35
- },
36
- });
37
- //# sourceMappingURL=get-user-profile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-user-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EACT,0IAA0I;IAC5I,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,+PAA+P;QACjQ,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,eAAe,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EACT,0LAA0L;YAC5L,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC/C,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,4BAA4B,kBAAkB,CAAC,eAAe,CAAC,EAAE;aACxE,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const getVerificationResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- }>;
7
- //# sourceMappingURL=get-verification-result.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-verification-result.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-result.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;;;;EA6BtC,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVerificationResultAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.getVerificationResultAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'get_verification_result',
12
- displayName: 'Get Identity Verification Result',
13
- description: 'Fetches the current status and outcome of a person\'s identity check — whether it is still in progress, approved, or declined.',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Looks up the current status and decision (in progress, approved, or declined) of a single identity (KYC) verification by its session ID. Use this to poll or read the outcome of a previously started user verification. Requires the verification session ID. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- props: {
20
- session_id: pieces_framework_1.Property.ShortText({
21
- displayName: 'Verification Session ID',
22
- description: 'The ID of the specific verification to look up. You can get this from the output of the **Start Identity Verification** action, or from the **session_id** field in any webhook payload from AiPrise.',
23
- required: true,
24
- }),
25
- },
26
- run(context) {
27
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
- const { session_id } = context.propsValue;
29
- const result = yield common_1.aiprise.makeRequest({
30
- auth: context.auth.props,
31
- method: pieces_common_1.HttpMethod.GET,
32
- path: `/verify/get_user_verification_result/${session_id}`,
33
- });
34
- return result;
35
- });
36
- },
37
- });
38
- //# sourceMappingURL=get-verification-result.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-verification-result.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-result.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,kCAAkC;IAC/C,WAAW,EACT,gIAAgI;IAClI,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,0RAA0R;QAC5R,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,uMAAuM;YACzM,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,wCAAwC,UAAU,EAAE;aAC3D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const getVerificationUrlAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- redirect_uri: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- }>;
8
- //# sourceMappingURL=get-verification-url.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-verification-url.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-url.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;EAuCnC,CAAC"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVerificationUrlAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.getVerificationUrlAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'get_verification_url',
12
- displayName: 'Get Identity Verification Link',
13
- description: 'Generates a secure link you can send to a person so they can complete their identity verification on an AiPrise-hosted page — no extra development needed.',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Creates a unique hosted-verification URL for a given template that you can send to a person so they complete their identity (KYC) check on an AiPrise-hosted page. Use this for the no-code/self-service flow instead of collecting data yourself. Requires a template ID and a redirect URL the person returns to afterward. Not idempotent — each call mints a new verification link/session.',
17
- idempotent: false,
18
- },
19
- props: {
20
- template_id: pieces_framework_1.Property.ShortText({
21
- displayName: 'Verification Template',
22
- description: 'Which set of checks the person will go through. To find this: log in to AiPrise → go to **Templates** → open the template you want → copy the **Template ID** shown at the top of the page.',
23
- required: true,
24
- }),
25
- redirect_uri: pieces_framework_1.Property.ShortText({
26
- displayName: 'Redirect URL',
27
- description: 'The page the person will be sent to after they finish the verification on the AiPrise-hosted form (e.g. a "Thank you" or confirmation page on your website).',
28
- required: true,
29
- }),
30
- },
31
- run(context) {
32
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
33
- const { template_id, redirect_uri } = context.propsValue;
34
- const result = yield common_1.aiprise.makeRequest({
35
- auth: context.auth.props,
36
- method: pieces_common_1.HttpMethod.POST,
37
- path: '/verify/get_user_verification_url',
38
- body: {
39
- template_id,
40
- redirect_uri,
41
- },
42
- });
43
- return result;
44
- });
45
- },
46
- });
47
- //# sourceMappingURL=get-verification-url.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-verification-url.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-url.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EACT,4JAA4J;IAC9J,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,iYAAiY;QACnY,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,6LAA6L;YAC/L,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,cAAc;YAC3B,WAAW,EACT,8JAA8J;YAChK,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACzD,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,mCAAmC;gBACzC,IAAI,EAAE;oBACJ,WAAW;oBACX,YAAY;iBACb;aACF,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const runBusinessVerificationAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- }>;
8
- //# sourceMappingURL=run-business-verification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-business-verification.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-business-verification.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B;;;;;;EAmCxC,CAAC"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runBusinessVerificationAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.runBusinessVerificationAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'run_business_verification',
12
- displayName: 'Start Business Verification',
13
- description: 'Kicks off a company background check. AiPrise will run the checks defined in your template — which can include company registry lookup, ownership structure (UBO), sanctions screening, and adverse media.',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Starts a business (KYB) verification on an existing business profile by running the checks bundled in a given template (registry lookup, UBO/ownership, sanctions screening, adverse media). Use when you want to begin verifying a company you have already created or looked up a profile for. Requires a template ID and the business_profile_id. Not idempotent — each call launches a new verification session.',
17
- idempotent: false,
18
- },
19
- props: {
20
- template_id: pieces_framework_1.Property.ShortText({
21
- displayName: 'Verification Template',
22
- description: 'Which set of checks to run on the business. To find this: log in to AiPrise → go to **Templates** → open the template you want → copy the **Template ID** shown at the top of the page.',
23
- required: true,
24
- }),
25
- business_profile_id: pieces_framework_1.Property.ShortText({
26
- displayName: 'Business Profile ID',
27
- description: ' The ID of the business profile you want to verify. This is returned when you create a business profile, or you can look it up using the List Business Profiles action.',
28
- required: true,
29
- }),
30
- },
31
- run(context) {
32
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
33
- const { template_id, business_profile_id } = context.propsValue;
34
- const result = yield common_1.aiprise.makeRequest({
35
- auth: context.auth.props,
36
- method: pieces_common_1.HttpMethod.POST,
37
- path: '/verify/run_verification_for_business_profile_id',
38
- body: { template_id, business_profile_id },
39
- });
40
- return result;
41
- });
42
- },
43
- });
44
- //# sourceMappingURL=run-business-verification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-business-verification.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-business-verification.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,6BAA6B,GAAG,IAAA,+BAAY,EAAC;IACxD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EACT,4MAA4M;IAC9M,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,sZAAsZ;QACxZ,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,yLAAyL;YAC3L,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,yKAAyK;YACtL,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAChE,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,kDAAkD;gBACxD,IAAI,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;aAC3C,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- export declare const runDocumentCheckAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- file_uuid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- document_input_title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- client_reference_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
- client_reference_data: import("@activepieces/pieces-framework").JsonProperty<false>;
11
- }>;
12
- //# sourceMappingURL=run-document-check.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-document-check.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-document-check.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;;;;EA4EjC,CAAC"}
@@ -1,74 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runDocumentCheckAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.runDocumentCheckAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'run_document_check',
12
- displayName: 'Run Business Document Check',
13
- description: 'Runs a verification check on a document belonging to an existing business profile. AiPrise will process the uploaded file against the checks defined in the chosen template.',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Runs a verification check on a single previously-uploaded document attached to a business profile, processing the file against a chosen template. Use when you need to validate a specific business document (rather than running a full business verification). Requires the business_profile_id, a template ID, and the file UUID of the already-uploaded document. Not idempotent — each call launches a new document check.',
17
- idempotent: false,
18
- },
19
- props: {
20
- business_profile_id: pieces_framework_1.Property.ShortText({
21
- displayName: 'Business Profile ID',
22
- description: 'The ID of the business profile the document belongs to. You can find this in AiPrise → **Businesses** → open the business → copy the **Profile ID**.',
23
- required: true,
24
- }),
25
- template_id: pieces_framework_1.Property.ShortText({
26
- displayName: 'Verification Template',
27
- description: 'Which set of checks to run. To find this: log in to AiPrise → go to **Templates** → open the template you want → copy the **Template ID** shown at the top of the page.',
28
- required: true,
29
- }),
30
- file_uuid: pieces_framework_1.Property.ShortText({
31
- displayName: 'File UUID',
32
- description: 'The UUID of the document file that was previously uploaded to AiPrise.',
33
- required: true,
34
- }),
35
- document_input_title: pieces_framework_1.Property.ShortText({
36
- displayName: 'Document Input Title',
37
- description: 'An optional unique identifier for this document input. This value is included in webhook payloads and API responses so you can distinguish between multiple documents.',
38
- required: false,
39
- }),
40
- client_reference_id: pieces_framework_1.Property.ShortText({
41
- displayName: 'Client Reference ID',
42
- description: 'Your own identifier to associate with this request — for example an order number or internal case ID.',
43
- required: false,
44
- }),
45
- client_reference_data: pieces_framework_1.Property.Json({
46
- displayName: 'Client Reference Data',
47
- description: 'Any additional JSON data you want to store alongside this request.',
48
- required: false,
49
- }),
50
- },
51
- run(context) {
52
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
53
- const { business_profile_id, template_id, file_uuid, document_input_title, client_reference_id, client_reference_data, } = context.propsValue;
54
- const body = {
55
- business_profile_id,
56
- template_id,
57
- file_uuid,
58
- };
59
- if (document_input_title)
60
- body['document_input_title'] = document_input_title;
61
- if (client_reference_id)
62
- body['client_reference_id'] = client_reference_id;
63
- if (client_reference_data)
64
- body['client_reference_data'] = client_reference_data;
65
- return common_1.aiprise.makeRequest({
66
- auth: context.auth.props,
67
- method: pieces_common_1.HttpMethod.POST,
68
- path: '/verify/run_check_on_business_document',
69
- body,
70
- });
71
- });
72
- },
73
- });
74
- //# sourceMappingURL=run-document-check.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-document-check.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-document-check.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EACT,8KAA8K;IAChL,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,iaAAia;QACna,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,sJAAsJ;YACxJ,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,yKAAyK;YAC3K,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EACT,wEAAwE;YAC1E,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,oBAAoB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvC,WAAW,EAAE,sBAAsB;YACnC,WAAW,EACT,wKAAwK;YAC1K,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,uGAAuG;YACzG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,qBAAqB,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE,oEAAoE;YACjF,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EACJ,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,GACtB,GAAG,OAAO,CAAC,UAAU,CAAC;YAEvB,MAAM,IAAI,GAA4B;gBACpC,mBAAmB;gBACnB,WAAW;gBACX,SAAS;aACV,CAAC;YAEF,IAAI,oBAAoB;gBAAE,IAAI,CAAC,sBAAsB,CAAC,GAAG,oBAAoB,CAAC;YAC9E,IAAI,mBAAmB;gBAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;YAC3E,IAAI,qBAAqB;gBAAE,IAAI,CAAC,uBAAuB,CAAC,GAAG,qBAAqB,CAAC;YAEjF,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,wCAAwC;gBAC9C,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const runUserVerificationProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- user_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- }>;
8
- //# sourceMappingURL=run-user-verification-profile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-user-verification-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-user-verification-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gCAAgC;;;;;;EA2C3C,CAAC"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runUserVerificationProfileAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.runUserVerificationProfileAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'run_user_verification_profile',
12
- displayName: 'Start Identity Verification for profile',
13
- description: 'Kicks off a new identity check for a person. AiPrise will run the checks defined in your chosen template (e.g. ID document scan, liveness, address).',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Starts a server-side identity (KYC) verification for an existing user profile by running the checks bundled in a given AiPrise template (ID scan, liveness, address, etc.). Use when you want to programmatically begin verifying a person you have already created a profile for, rather than sending them a hosted link. Requires a template ID and your user_profile_id. Not idempotent — each call launches a new verification session.',
17
- idempotent: false,
18
- },
19
- props: {
20
- template_id: pieces_framework_1.Property.ShortText({
21
- displayName: 'Verification Template',
22
- description: 'Which set of checks to run. To find this: log in to AiPrise → go to **Templates** → open the template you want → copy the **Template ID** shown at the top of the page.',
23
- required: true,
24
- }),
25
- user_profile_id: pieces_framework_1.Property.ShortText({
26
- displayName: 'User Profile ID',
27
- description: 'Your own identifier for this person — for example their user ID, email address, or order number. AiPrise stores this alongside the verification so you can match results back to your records.',
28
- required: true,
29
- }),
30
- },
31
- run(context) {
32
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
33
- const { template_id, user_profile_id, } = context.propsValue;
34
- const body = { template_id, user_profile_id };
35
- return common_1.aiprise.makeRequest({
36
- auth: context.auth.props,
37
- method: pieces_common_1.HttpMethod.POST,
38
- path: '/verify/run_verification_for_user_profile_id',
39
- body,
40
- });
41
- });
42
- },
43
- });
44
- //# sourceMappingURL=run-user-verification-profile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-user-verification-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-user-verification-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,gCAAgC,GAAG,IAAA,+BAAY,EAAC;IAC3D,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,yCAAyC;IACtD,WAAW,EACT,sJAAsJ;IACxJ,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,6aAA6a;QAC/a,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,yKAAyK;YAC3K,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,eAAe,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EACT,gMAAgM;YAClM,QAAQ,EAAE,IAAI;SACf,CAAC;KAEH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EACJ,WAAW,EACX,eAAe,GAEhB,GAAG,OAAO,CAAC,UAAU,CAAC;YAEvB,MAAM,IAAI,GAA4B,EAAE,WAAW,EAAC,eAAe,EAAE,CAAC;YAEtE,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,8CAA8C;gBACpD,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const searchBusinessesAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- country_code: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- state_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
- }>;
9
- //# sourceMappingURL=search-businesses.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-businesses.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-businesses.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;EA8CjC,CAAC"}
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchBusinessesAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../common/auth");
9
- exports.searchBusinessesAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.aipriseAuth,
11
- name: 'search_businesses',
12
- displayName: 'Search Businesses',
13
- description: 'Searches public business registries by name and country, returning a list of matching companies with their entity IDs, types, and addresses. Useful for looking up a business before creating a profile or running a verification.',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Searches public business registries by company name and country (optionally narrowed by state/province), returning matching companies with their registry entity IDs, types, and addresses. Use this to look up and identify a real-world business before creating a profile or running a verification. Requires a business name and a 2-letter country code; partial name matches are supported. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- props: {
20
- name: pieces_framework_1.Property.ShortText({
21
- displayName: 'Business Name',
22
- description: 'The business name to search for. Partial matches are supported by AiPrise.',
23
- required: true,
24
- }),
25
- country_code: pieces_framework_1.Property.ShortText({
26
- displayName: 'Country Code',
27
- description: '2-letter ISO country code where the business is registered (e.g. US, GB).',
28
- required: true,
29
- }),
30
- state_code: pieces_framework_1.Property.ShortText({
31
- displayName: 'State/Province Code',
32
- description: 'Optional state or province code to narrow the search (e.g. CA, NY for the US). Leave empty to search the whole country.',
33
- required: false,
34
- }),
35
- },
36
- run(context) {
37
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
38
- const { name, country_code, state_code } = context.propsValue;
39
- const body = {
40
- name,
41
- country_code,
42
- };
43
- if (state_code)
44
- body['state_code'] = state_code;
45
- return common_1.aiprise.makeRequest({
46
- auth: context.auth.props,
47
- method: pieces_common_1.HttpMethod.POST,
48
- path: '/data/business/search',
49
- body,
50
- });
51
- });
52
- },
53
- });
54
- //# sourceMappingURL=search-businesses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-businesses.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-businesses.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EACT,oOAAoO;IACtO,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,6ZAA6Z;QAC/Z,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,4EAA4E;YACzF,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,2EAA2E;YACxF,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,yHAAyH;YAC3H,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE9D,MAAM,IAAI,GAA4B;gBACpC,IAAI;gBACJ,YAAY;aACb,CAAC;YACF,IAAI,UAAU;gBAAE,IAAI,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;YAEhD,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,uBAAuB;gBAC7B,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const updateVerificationResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- }>, {
5
- verification_session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- result: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
7
- }>;
8
- //# sourceMappingURL=update-verification-result.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-verification-result.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-verification-result.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,8BAA8B;;;;;;EA4CzC,CAAC"}