@activepieces/piece-aiprise 0.0.1

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 (61) hide show
  1. package/package.json +17 -0
  2. package/src/index.d.ts +3 -0
  3. package/src/index.d.ts.map +1 -0
  4. package/src/index.js +64 -0
  5. package/src/index.js.map +1 -0
  6. package/src/lib/actions/create-business-profile.d.ts +19 -0
  7. package/src/lib/actions/create-business-profile.d.ts.map +1 -0
  8. package/src/lib/actions/create-business-profile.js +166 -0
  9. package/src/lib/actions/create-business-profile.js.map +1 -0
  10. package/src/lib/actions/create-user-profile.d.ts +20 -0
  11. package/src/lib/actions/create-user-profile.d.ts.map +1 -0
  12. package/src/lib/actions/create-user-profile.js +141 -0
  13. package/src/lib/actions/create-user-profile.js.map +1 -0
  14. package/src/lib/actions/get-additional-user-info.d.ts +4 -0
  15. package/src/lib/actions/get-additional-user-info.d.ts.map +1 -0
  16. package/src/lib/actions/get-additional-user-info.js +32 -0
  17. package/src/lib/actions/get-additional-user-info.js.map +1 -0
  18. package/src/lib/actions/get-business-documents.d.ts +4 -0
  19. package/src/lib/actions/get-business-documents.d.ts.map +1 -0
  20. package/src/lib/actions/get-business-documents.js +32 -0
  21. package/src/lib/actions/get-business-documents.js.map +1 -0
  22. package/src/lib/actions/get-business-input-data.d.ts +4 -0
  23. package/src/lib/actions/get-business-input-data.d.ts.map +1 -0
  24. package/src/lib/actions/get-business-input-data.js +33 -0
  25. package/src/lib/actions/get-business-input-data.js.map +1 -0
  26. package/src/lib/actions/get-business-result.d.ts +4 -0
  27. package/src/lib/actions/get-business-result.d.ts.map +1 -0
  28. package/src/lib/actions/get-business-result.js +33 -0
  29. package/src/lib/actions/get-business-result.js.map +1 -0
  30. package/src/lib/actions/get-user-input-data.d.ts +4 -0
  31. package/src/lib/actions/get-user-input-data.d.ts.map +1 -0
  32. package/src/lib/actions/get-user-input-data.js +33 -0
  33. package/src/lib/actions/get-user-input-data.js.map +1 -0
  34. package/src/lib/actions/get-verification-result.d.ts +4 -0
  35. package/src/lib/actions/get-verification-result.d.ts.map +1 -0
  36. package/src/lib/actions/get-verification-result.js +33 -0
  37. package/src/lib/actions/get-verification-result.js.map +1 -0
  38. package/src/lib/actions/get-verification-url.d.ts +5 -0
  39. package/src/lib/actions/get-verification-url.d.ts.map +1 -0
  40. package/src/lib/actions/get-verification-url.js +42 -0
  41. package/src/lib/actions/get-verification-url.js.map +1 -0
  42. package/src/lib/actions/run-business-verification.d.ts +5 -0
  43. package/src/lib/actions/run-business-verification.d.ts.map +1 -0
  44. package/src/lib/actions/run-business-verification.js +39 -0
  45. package/src/lib/actions/run-business-verification.js.map +1 -0
  46. package/src/lib/actions/run-document-check.d.ts +9 -0
  47. package/src/lib/actions/run-document-check.d.ts.map +1 -0
  48. package/src/lib/actions/run-document-check.js +69 -0
  49. package/src/lib/actions/run-document-check.js.map +1 -0
  50. package/src/lib/actions/run-user-verification-profile.d.ts +5 -0
  51. package/src/lib/actions/run-user-verification-profile.d.ts.map +1 -0
  52. package/src/lib/actions/run-user-verification-profile.js +39 -0
  53. package/src/lib/actions/run-user-verification-profile.js.map +1 -0
  54. package/src/lib/actions/update-verification-result.d.ts +5 -0
  55. package/src/lib/actions/update-verification-result.d.ts.map +1 -0
  56. package/src/lib/actions/update-verification-result.js +47 -0
  57. package/src/lib/actions/update-verification-result.js.map +1 -0
  58. package/src/lib/common/index.d.ts +13 -0
  59. package/src/lib/common/index.d.ts.map +1 -0
  60. package/src/lib/common/index.js +25 -0
  61. package/src/lib/common/index.js.map +1 -0
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@activepieces/piece-aiprise",
3
+ "version": "0.0.1",
4
+ "type": "commonjs",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "dependencies": {
8
+ "@activepieces/pieces-common": "0.12.3",
9
+ "@activepieces/pieces-framework": "0.27.2",
10
+ "@activepieces/shared": "0.65.0",
11
+ "tslib": "2.3.0"
12
+ },
13
+ "scripts": {
14
+ "build": "tsc -p tsconfig.lib.json && cp package.json dist/",
15
+ "lint": "eslint 'src/**/*.ts'"
16
+ }
17
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export declare const aipriseAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
2
+ export declare const aiprise: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,WAAW,mEAQtB,CAAC;AAEH,eAAO,MAAM,OAAO,mHAgClB,CAAC"}
package/src/index.js ADDED
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aiprise = exports.aipriseAuth = 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 shared_1 = require("@activepieces/shared");
8
+ const run_user_verification_profile_1 = require("./lib/actions/run-user-verification-profile");
9
+ const get_verification_url_1 = require("./lib/actions/get-verification-url");
10
+ const get_verification_result_1 = require("./lib/actions/get-verification-result");
11
+ const get_user_input_data_1 = require("./lib/actions/get-user-input-data");
12
+ const update_verification_result_1 = require("./lib/actions/update-verification-result");
13
+ const run_business_verification_1 = require("./lib/actions/run-business-verification");
14
+ const get_business_result_1 = require("./lib/actions/get-business-result");
15
+ const get_business_input_data_1 = require("./lib/actions/get-business-input-data");
16
+ const run_document_check_1 = require("./lib/actions/run-document-check");
17
+ const create_business_profile_1 = require("./lib/actions/create-business-profile");
18
+ const create_user_profile_1 = require("./lib/actions/create-user-profile");
19
+ const get_additional_user_info_1 = require("./lib/actions/get-additional-user-info");
20
+ const get_business_documents_1 = require("./lib/actions/get-business-documents");
21
+ exports.aipriseAuth = pieces_framework_1.PieceAuth.SecretText({
22
+ displayName: 'API Key',
23
+ description: `To get your AiPrise API key:
24
+ 1. Log in to your [AiPrise dashboard](https://app.aiprise.com)
25
+ 2. Go to **Settings > API Keys**
26
+ 3. Copy your API key and paste it here
27
+ `,
28
+ required: true,
29
+ });
30
+ exports.aiprise = (0, pieces_framework_1.createPiece)({
31
+ displayName: 'AiPrise',
32
+ description: 'KYC, KYB, and fraud prevention platform — verify user identities, onboard businesses, run AML/sanctions checks, and detect fraud signals.',
33
+ minimumSupportedRelease: '0.36.1',
34
+ logoUrl: 'https://cdn.activepieces.com/pieces/aiprise.png',
35
+ categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
36
+ auth: exports.aipriseAuth,
37
+ authors: ['sanket-a11y'],
38
+ actions: [
39
+ run_user_verification_profile_1.runUserVerificationProfileAction,
40
+ get_verification_url_1.getVerificationUrlAction,
41
+ get_verification_result_1.getVerificationResultAction,
42
+ get_user_input_data_1.getUserInputDataAction,
43
+ update_verification_result_1.updateVerificationResultAction,
44
+ run_business_verification_1.runBusinessVerificationAction,
45
+ get_business_result_1.getBusinessResultAction,
46
+ get_business_input_data_1.getBusinessInputDataAction,
47
+ run_document_check_1.runDocumentCheckAction,
48
+ create_business_profile_1.createBusinessProfileAction,
49
+ create_user_profile_1.createUserProfileAction,
50
+ get_additional_user_info_1.getAdditionalUserInfoAction,
51
+ get_business_documents_1.getBusinessDocumentsAction,
52
+ (0, pieces_common_1.createCustomApiCallAction)({
53
+ baseUrl: () => 'https://api.aiprise.com/api/v1',
54
+ auth: exports.aipriseAuth,
55
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
56
+ return ({
57
+ 'X-API-KEY': auth.secret_text,
58
+ });
59
+ }),
60
+ }),
61
+ ],
62
+ triggers: [],
63
+ });
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAwE;AACxE,iDAAqD;AAErD,+FAA+F;AAC/F,6EAA8E;AAC9E,mFAAoF;AACpF,2EAA2E;AAC3E,yFAA0F;AAC1F,uFAAwF;AACxF,2EAA4E;AAC5E,mFAAmF;AACnF,yEAA0E;AAC1E,mFAAoF;AACpF,2EAA4E;AAC5E,qFAAqF;AACrF,iFAAkF;AAErE,QAAA,WAAW,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC9C,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE;;;;CAId;IACC,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,OAAO,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,SAAS;IACtB,WAAW,EACT,2IAA2I;IAC7I,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,iDAAiD;IAC1D,UAAU,EAAE,CAAC,sBAAa,CAAC,qBAAqB,CAAC;IACjD,IAAI,EAAE,mBAAW;IACjB,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,OAAO,EAAE;QACP,gEAAgC;QAChC,+CAAwB;QACxB,qDAA2B;QAC3B,4CAAsB;QACtB,2DAA8B;QAC9B,yDAA6B;QAC7B,6CAAuB;QACvB,oDAA0B;QAC1B,2CAAsB;QACtB,qDAA2B;QAC3B,6CAAuB;QACvB,sDAA2B;QAC3B,mDAA0B;QAC1B,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,gCAAgC;YAC/C,IAAI,EAAE,mBAAW;YACjB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,WAAW,EAAE,IAAI,CAAC,WAAW;iBAC9B,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const createBusinessProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ alternate_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
+ tax_identification_number: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
+ website: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ formation_date: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ country_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ state_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
+ business_entity_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
+ addresses: import("@activepieces/pieces-framework").ArrayProperty<false>;
11
+ phone_numbers: import("@activepieces/pieces-framework").ArrayProperty<false>;
12
+ email_addresses: import("@activepieces/pieces-framework").ArrayProperty<false>;
13
+ additional_information: import("@activepieces/pieces-framework").ArrayProperty<false>;
14
+ client_reference_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
15
+ callback_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
16
+ events_callback_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
17
+ tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
18
+ }>;
19
+ //# sourceMappingURL=create-business-profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-business-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-business-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;EAiKtC,CAAC"}
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createBusinessProfileAction = 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 __1 = require("../../");
9
+ exports.createBusinessProfileAction = (0, pieces_framework_1.createAction)({
10
+ auth: __1.aipriseAuth,
11
+ name: 'create_business_profile',
12
+ displayName: 'Create Business Profile',
13
+ description: 'Creates a new business profile in AiPrise. The returned profile can then be used to run document checks or other business verifications.',
14
+ props: {
15
+ name: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Business Name',
17
+ description: 'The business name. The legal name is preferred.',
18
+ required: true,
19
+ }),
20
+ alternate_name: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Alternate Name (DBA)',
22
+ description: 'An alternate "doing business as" name, if any.',
23
+ required: false,
24
+ }),
25
+ tax_identification_number: pieces_framework_1.Property.ShortText({
26
+ displayName: 'Tax Identification Number',
27
+ description: 'The tax ID for this business (e.g. EIN in the US).',
28
+ required: false,
29
+ }),
30
+ website: pieces_framework_1.Property.ShortText({
31
+ displayName: 'Website',
32
+ description: 'The business website URL.',
33
+ required: false,
34
+ }),
35
+ formation_date: pieces_framework_1.Property.ShortText({
36
+ displayName: 'Formation Date',
37
+ description: 'The date the business was formed, in YYYY-MM-DD format.',
38
+ required: false,
39
+ }),
40
+ country_code: pieces_framework_1.Property.ShortText({
41
+ displayName: 'Country Code',
42
+ description: 'The 2-letter ISO country code where the business is registered (e.g. US, GB).',
43
+ required: false,
44
+ }),
45
+ state_code: pieces_framework_1.Property.ShortText({
46
+ displayName: 'State Code',
47
+ description: 'The state or province code where the business is registered (e.g. CA, NY).',
48
+ required: false,
49
+ }),
50
+ business_entity_id: pieces_framework_1.Property.ShortText({
51
+ displayName: 'Business Entity ID',
52
+ description: 'A government-issued entity identifier for this business.',
53
+ required: false,
54
+ }),
55
+ addresses: pieces_framework_1.Property.Array({
56
+ displayName: 'Addresses',
57
+ description: 'A JSON array of address objects associated with the business.',
58
+ required: false,
59
+ properties: {
60
+ address_street_1: pieces_framework_1.Property.ShortText({
61
+ displayName: 'Street Address 1',
62
+ required: false,
63
+ }),
64
+ address_street_2: pieces_framework_1.Property.ShortText({
65
+ displayName: 'Street Address 2',
66
+ required: false,
67
+ }),
68
+ address_city: pieces_framework_1.Property.ShortText({
69
+ displayName: 'City',
70
+ required: false,
71
+ }),
72
+ address_state: pieces_framework_1.Property.ShortText({
73
+ displayName: 'State/Province',
74
+ required: false,
75
+ }),
76
+ address_zip_code: pieces_framework_1.Property.ShortText({
77
+ displayName: 'ZIP/Postal Code',
78
+ required: false,
79
+ }),
80
+ address_country: pieces_framework_1.Property.ShortText({
81
+ displayName: 'Country Code',
82
+ description: '2-letter ISO country code (e.g. US, GB).',
83
+ required: false,
84
+ }),
85
+ },
86
+ }),
87
+ phone_numbers: pieces_framework_1.Property.Array({
88
+ displayName: 'Phone Numbers',
89
+ description: 'One or more phone numbers associated with the business.',
90
+ required: false,
91
+ }),
92
+ email_addresses: pieces_framework_1.Property.Array({
93
+ displayName: 'Email Addresses',
94
+ description: 'One or more email addresses associated with the business.',
95
+ required: false,
96
+ }),
97
+ additional_information: pieces_framework_1.Property.Array({
98
+ displayName: 'Additional Information',
99
+ description: 'A JSON array of supporting documents or extra data for this business.',
100
+ required: false,
101
+ }),
102
+ client_reference_id: pieces_framework_1.Property.ShortText({
103
+ displayName: 'Client Reference ID',
104
+ description: 'Your own internal identifier for this business.',
105
+ required: false,
106
+ }),
107
+ callback_url: pieces_framework_1.Property.ShortText({
108
+ displayName: 'Callback URL',
109
+ description: 'A webhook URL that AiPrise will call with verification results.',
110
+ required: false,
111
+ }),
112
+ events_callback_url: pieces_framework_1.Property.ShortText({
113
+ displayName: 'Events Callback URL',
114
+ description: 'A webhook URL that AiPrise will call with event notifications.',
115
+ required: false,
116
+ }),
117
+ tags: pieces_framework_1.Property.Array({
118
+ displayName: 'Tags',
119
+ description: 'Tag names used to categorize this business profile.',
120
+ required: false,
121
+ }),
122
+ },
123
+ run(context) {
124
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
125
+ const { name, alternate_name, tax_identification_number, website, formation_date, country_code, state_code, business_entity_id, addresses, phone_numbers, email_addresses, additional_information, client_reference_id, callback_url, events_callback_url, tags, } = context.propsValue;
126
+ const body = { name };
127
+ if (alternate_name)
128
+ body['alternate_name'] = alternate_name;
129
+ if (tax_identification_number)
130
+ body['tax_identification_number'] = tax_identification_number;
131
+ if (website)
132
+ body['website'] = website;
133
+ if (formation_date)
134
+ body['formation_date'] = formation_date;
135
+ if (country_code)
136
+ body['country_code'] = country_code;
137
+ if (state_code)
138
+ body['state_code'] = state_code;
139
+ if (business_entity_id)
140
+ body['business_entity_id'] = business_entity_id;
141
+ if (addresses && addresses.length > 0)
142
+ body['addresses'] = addresses;
143
+ if (phone_numbers && phone_numbers.length > 0)
144
+ body['phone_numbers'] = phone_numbers;
145
+ if (email_addresses && email_addresses.length > 0)
146
+ body['email_addresses'] = email_addresses;
147
+ if (additional_information)
148
+ body['additional_information'] = additional_information;
149
+ if (client_reference_id)
150
+ body['client_reference_id'] = client_reference_id;
151
+ if (callback_url)
152
+ body['callback_url'] = callback_url;
153
+ if (events_callback_url)
154
+ body['events_callback_url'] = events_callback_url;
155
+ if (tags && tags.length > 0)
156
+ body['tags'] = tags;
157
+ return common_1.aiprise.makeRequest({
158
+ apiKey: context.auth.secret_text,
159
+ method: pieces_common_1.HttpMethod.POST,
160
+ path: '/verify/create_business_profile',
161
+ body,
162
+ });
163
+ });
164
+ },
165
+ });
166
+ //# sourceMappingURL=create-business-profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-business-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-business-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,8BAAqC;AAExB,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EACT,0IAA0I;IAC5I,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,IAAI;S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a,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC;gBAAE,IAAI,CAAC,eAAe,CAAC,GAAG,aAAa,CAAC;YACrF,IAAI,eAAe,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC;gBAAE,IAAI,CAAC,iBAAiB,CAAC,GAAG,eAAe,CAAC;YAC7F,IAAI,sBAAsB;gBAAE,IAAI,CAAC,wBAAwB,CAAC,GAAG,sBAAsB,CAAC;YACpF,IAAI,mBAAmB;gBAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;YAC3E,IAAI,YAAY;gBAAE,IAAI,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC;YACtD,IAAI,mBAAmB;gBAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;YAC3E,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAEjD,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,iCAAiC;gBACvC,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ export declare const createUserProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ first_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
+ middle_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
+ last_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
+ second_last_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ full_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ date_of_birth: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ email_address: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
+ phone_number: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
+ address_street_1: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
+ address_street_2: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
+ address_city: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
+ address_state: import("@activepieces/pieces-framework").ShortTextProperty<false>;
14
+ address_zip_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
15
+ address_country: import("@activepieces/pieces-framework").ShortTextProperty<false>;
16
+ client_reference_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
17
+ events_callback_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
18
+ tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
19
+ }>;
20
+ //# sourceMappingURL=create-user-profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-user-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAyIlC,CAAC"}
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createUserProfileAction = 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 __1 = require("../../");
9
+ exports.createUserProfileAction = (0, pieces_framework_1.createAction)({
10
+ auth: __1.aipriseAuth,
11
+ name: 'create_user_profile',
12
+ displayName: 'Create User Profile',
13
+ description: 'Creates a new user profile in AiPrise. The returned profile can then be used for repeated verifications or ongoing monitoring for the same person.',
14
+ props: {
15
+ first_name: pieces_framework_1.Property.ShortText({
16
+ displayName: 'First Name',
17
+ required: false,
18
+ }),
19
+ middle_name: pieces_framework_1.Property.ShortText({
20
+ displayName: 'Middle Name',
21
+ required: false,
22
+ }),
23
+ last_name: pieces_framework_1.Property.ShortText({
24
+ displayName: 'Last Name',
25
+ required: false,
26
+ }),
27
+ second_last_name: pieces_framework_1.Property.ShortText({
28
+ displayName: 'Second Last Name',
29
+ description: "User's second surname, where applicable (e.g. in some Latin American naming conventions).",
30
+ required: false,
31
+ }),
32
+ full_name: pieces_framework_1.Property.ShortText({
33
+ displayName: 'Full Name',
34
+ description: 'The complete name. Use this if you do not have the name split into parts.',
35
+ required: false,
36
+ }),
37
+ date_of_birth: pieces_framework_1.Property.ShortText({
38
+ displayName: 'Date of Birth',
39
+ description: "User's date of birth in YYYY-MM-DD format.",
40
+ required: false,
41
+ }),
42
+ email_address: pieces_framework_1.Property.ShortText({
43
+ displayName: 'Email Address',
44
+ required: false,
45
+ }),
46
+ phone_number: pieces_framework_1.Property.ShortText({
47
+ displayName: 'Phone Number',
48
+ required: false,
49
+ }),
50
+ address_street_1: pieces_framework_1.Property.ShortText({
51
+ displayName: 'Street Address 1',
52
+ required: false,
53
+ }),
54
+ address_street_2: pieces_framework_1.Property.ShortText({
55
+ displayName: 'Street Address 2',
56
+ required: false,
57
+ }),
58
+ address_city: pieces_framework_1.Property.ShortText({
59
+ displayName: 'City',
60
+ required: false,
61
+ }),
62
+ address_state: pieces_framework_1.Property.ShortText({
63
+ displayName: 'State/Province',
64
+ required: false,
65
+ }),
66
+ address_zip_code: pieces_framework_1.Property.ShortText({
67
+ displayName: 'ZIP/Postal Code',
68
+ required: false,
69
+ }),
70
+ address_country: pieces_framework_1.Property.ShortText({
71
+ displayName: 'Country Code',
72
+ description: '2-letter ISO country code (e.g. US, GB).',
73
+ required: false,
74
+ }),
75
+ client_reference_id: pieces_framework_1.Property.ShortText({
76
+ displayName: 'Client Reference ID',
77
+ description: 'Your own internal identifier for this user.',
78
+ required: false,
79
+ }),
80
+ events_callback_url: pieces_framework_1.Property.ShortText({
81
+ displayName: 'Events Callback URL',
82
+ description: 'A webhook URL that AiPrise will call with event notifications for this profile. Paste the webhook URL from the **Verification Event Received** trigger here.',
83
+ required: false,
84
+ }),
85
+ tags: pieces_framework_1.Property.Array({
86
+ displayName: 'Tags',
87
+ description: 'Tag names used to categorize this user profile. Tags are created if they do not already exist.',
88
+ required: false,
89
+ }),
90
+ },
91
+ run(context) {
92
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
93
+ const { first_name, middle_name, last_name, second_last_name, full_name, date_of_birth, email_address, phone_number, address_street_1, address_street_2, address_city, address_state, address_zip_code, address_country, client_reference_id, events_callback_url, tags, } = context.propsValue;
94
+ const body = {};
95
+ if (first_name)
96
+ body['first_name'] = first_name;
97
+ if (middle_name)
98
+ body['middle_name'] = middle_name;
99
+ if (last_name)
100
+ body['last_name'] = last_name;
101
+ if (second_last_name)
102
+ body['second_last_name'] = second_last_name;
103
+ if (full_name)
104
+ body['full_name'] = full_name;
105
+ if (date_of_birth)
106
+ body['date_of_birth'] = date_of_birth;
107
+ if (email_address)
108
+ body['email_address'] = email_address;
109
+ if (phone_number)
110
+ body['phone_number'] = phone_number;
111
+ const address = {};
112
+ if (address_street_1)
113
+ address['address_street_1'] = address_street_1;
114
+ if (address_street_2)
115
+ address['address_street_2'] = address_street_2;
116
+ if (address_city)
117
+ address['address_city'] = address_city;
118
+ if (address_state)
119
+ address['address_state'] = address_state;
120
+ if (address_zip_code)
121
+ address['address_zip_code'] = address_zip_code;
122
+ if (address_country)
123
+ address['address_country'] = address_country;
124
+ if (Object.keys(address).length > 0)
125
+ body['address'] = address;
126
+ if (client_reference_id)
127
+ body['client_reference_id'] = client_reference_id;
128
+ if (events_callback_url)
129
+ body['events_callback_url'] = events_callback_url;
130
+ if (tags && tags.length > 0)
131
+ body['tags'] = tags;
132
+ return common_1.aiprise.makeRequest({
133
+ apiKey: context.auth.secret_text,
134
+ method: pieces_common_1.HttpMethod.POST,
135
+ path: '/verify/create_user_profile',
136
+ body,
137
+ });
138
+ });
139
+ },
140
+ });
141
+ //# sourceMappingURL=create-user-profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-profile.js","sourceRoot":"","sources":["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,CAAC;gBAAE,IAAI,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC;YAE/D,IAAI,mBAAmB;gBAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;YAC3E,IAAI,mBAAmB;gBAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;YAC3E,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAEjD,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,6BAA6B;gBACnC,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const getAdditionalUserInfoAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ }>;
4
+ //# sourceMappingURL=get-additional-user-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-additional-user-info.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-additional-user-info.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;EAsBtC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAdditionalUserInfoAction = 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 __1 = require("../../");
9
+ exports.getAdditionalUserInfoAction = (0, pieces_framework_1.createAction)({
10
+ auth: __1.aipriseAuth,
11
+ name: 'get_additional_user_info',
12
+ displayName: "Get Person's Additional Info",
13
+ description: "Fetches supplementary information collected from the person during a verification — anything beyond the primary identity fields, such as follow-up answers, extra documents, or custom form data.",
14
+ props: {
15
+ session_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Session ID',
17
+ description: 'The ID of the verification to look up. You can get this from the output of the **Start Identity Verification** action',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { session_id } = context.propsValue;
24
+ return common_1.aiprise.makeRequest({
25
+ apiKey: context.auth.secret_text,
26
+ method: pieces_common_1.HttpMethod.GET,
27
+ path: `/verify/get_additional_user_info_from_request/${session_id}`,
28
+ });
29
+ });
30
+ },
31
+ });
32
+ //# sourceMappingURL=get-additional-user-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-additional-user-info.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-additional-user-info.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,8BAAqC;AAExB,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EACT,mMAAmM;IACrM,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,uHAAuH;YACzH,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1C,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,iDAAiD,UAAU,EAAE;aACpE,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const getBusinessDocumentsAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ }>;
4
+ //# sourceMappingURL=get-business-documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-business-documents.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-documents.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B;;EAsBrC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBusinessDocumentsAction = 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 __1 = require("../../");
9
+ exports.getBusinessDocumentsAction = (0, pieces_framework_1.createAction)({
10
+ auth: __1.aipriseAuth,
11
+ name: 'get_business_documents',
12
+ displayName: 'Get Business Documents',
13
+ description: 'Lists all documents attached to a business profile — including file UUIDs, names, S3 URLs, timestamps, document sources, and associated verification sessions.',
14
+ props: {
15
+ business_profile_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Business Profile ID',
17
+ description: 'The ID of the business profile whose documents you want to list. You can get this from the output of the **Create Business Profile** action.',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { business_profile_id } = context.propsValue;
24
+ return common_1.aiprise.makeRequest({
25
+ apiKey: context.auth.secret_text,
26
+ method: pieces_common_1.HttpMethod.GET,
27
+ path: `/verify/get_business_documents/${business_profile_id}`,
28
+ });
29
+ });
30
+ },
31
+ });
32
+ //# sourceMappingURL=get-business-documents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-business-documents.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-documents.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,8BAAqC;AAExB,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EACT,gKAAgK;IAClK,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,8IAA8I;YAChJ,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACnD,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,kCAAkC,mBAAmB,EAAE;aAC9D,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const getBusinessInputDataAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ }>;
4
+ //# sourceMappingURL=get-business-input-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-business-input-data.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-input-data.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B;;EAuBrC,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBusinessInputDataAction = 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 __1 = require("../../");
9
+ exports.getBusinessInputDataAction = (0, pieces_framework_1.createAction)({
10
+ auth: __1.aipriseAuth,
11
+ name: 'get_business_input_data',
12
+ displayName: "Get Business's Submitted Verification Data",
13
+ description: 'Returns the company information provided during a business verification — such as company name, registration number, directors, and ownership details.',
14
+ props: {
15
+ session_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Session ID',
17
+ description: 'The ID of the business verification to retrieve data from. 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.',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { session_id } = context.propsValue;
24
+ const result = yield common_1.aiprise.makeRequest({
25
+ apiKey: context.auth.secret_text,
26
+ method: pieces_common_1.HttpMethod.GET,
27
+ path: `/verify/get_business_data_from_request/${session_id}`,
28
+ });
29
+ return result;
30
+ });
31
+ },
32
+ });
33
+ //# sourceMappingURL=get-business-input-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-business-input-data.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-input-data.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,8BAAqC;AAExB,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,4CAA4C;IACzD,WAAW,EACT,wJAAwJ;IAC1J,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,kNAAkN;YACpN,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,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,0CAA0C,UAAU,EAAE;aAC7D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const getBusinessResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ }>;
4
+ //# sourceMappingURL=get-business-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-business-result.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-result.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;EAuBlC,CAAC"}
@@ -0,0 +1,33 @@
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 __1 = require("../../");
9
+ exports.getBusinessResultAction = (0, pieces_framework_1.createAction)({
10
+ 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
+ props: {
15
+ session_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Session ID',
17
+ 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.',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { session_id } = context.propsValue;
24
+ const result = yield common_1.aiprise.makeRequest({
25
+ apiKey: context.auth.secret_text,
26
+ method: pieces_common_1.HttpMethod.GET,
27
+ path: `/verify/get_business_verification_result/${session_id}`,
28
+ });
29
+ return result;
30
+ });
31
+ },
32
+ });
33
+ //# sourceMappingURL=get-business-result.js.map
@@ -0,0 +1 @@
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,8BAAqC;AAExB,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,kCAAkC;IAC/C,WAAW,EACT,8HAA8H;IAChI,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,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,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"}
@@ -0,0 +1,4 @@
1
+ export declare const getUserInputDataAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ }>;
4
+ //# sourceMappingURL=get-user-input-data.d.ts.map
@@ -0,0 +1 @@
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;;EAuBjC,CAAC"}
@@ -0,0 +1,33 @@
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 __1 = require("../../");
9
+ exports.getUserInputDataAction = (0, pieces_framework_1.createAction)({
10
+ 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
+ props: {
15
+ session_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Session ID',
17
+ 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.',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { session_id } = context.propsValue;
24
+ const result = yield common_1.aiprise.makeRequest({
25
+ apiKey: context.auth.secret_text,
26
+ method: pieces_common_1.HttpMethod.GET,
27
+ path: `/verify/get_user_input_data_from_request/${session_id}`,
28
+ });
29
+ return result;
30
+ });
31
+ },
32
+ });
33
+ //# sourceMappingURL=get-user-input-data.js.map
@@ -0,0 +1 @@
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,8BAAqC;AAExB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,2CAA2C;IACxD,WAAW,EACT,yJAAyJ;IAC3J,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,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,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"}
@@ -0,0 +1,4 @@
1
+ export declare const getVerificationResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ }>;
4
+ //# sourceMappingURL=get-verification-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-verification-result.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-result.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;EAuBtC,CAAC"}
@@ -0,0 +1,33 @@
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 __1 = require("../../");
9
+ exports.getVerificationResultAction = (0, pieces_framework_1.createAction)({
10
+ 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
+ props: {
15
+ session_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Session ID',
17
+ 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.',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { session_id } = context.propsValue;
24
+ const result = yield common_1.aiprise.makeRequest({
25
+ apiKey: context.auth.secret_text,
26
+ method: pieces_common_1.HttpMethod.GET,
27
+ path: `/verify/get_user_verification_result/${session_id}`,
28
+ });
29
+ return result;
30
+ });
31
+ },
32
+ });
33
+ //# sourceMappingURL=get-verification-result.js.map
@@ -0,0 +1 @@
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,8BAAqC;AAExB,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,kCAAkC;IAC/C,WAAW,EACT,gIAAgI;IAClI,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,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,wCAAwC,UAAU,EAAE;aAC3D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const getVerificationUrlAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ redirect_uri: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>;
5
+ //# sourceMappingURL=get-verification-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-verification-url.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-url.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;EAiCnC,CAAC"}
@@ -0,0 +1,42 @@
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 __1 = require("../../");
9
+ exports.getVerificationUrlAction = (0, pieces_framework_1.createAction)({
10
+ 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
+ props: {
15
+ template_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Template',
17
+ 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.',
18
+ required: true,
19
+ }),
20
+ redirect_uri: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Redirect URL',
22
+ 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).',
23
+ required: true,
24
+ }),
25
+ },
26
+ run(context) {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const { template_id, redirect_uri } = context.propsValue;
29
+ const result = yield common_1.aiprise.makeRequest({
30
+ apiKey: context.auth.secret_text,
31
+ method: pieces_common_1.HttpMethod.POST,
32
+ path: '/verify/get_user_verification_url',
33
+ body: {
34
+ template_id,
35
+ redirect_uri,
36
+ },
37
+ });
38
+ return result;
39
+ });
40
+ },
41
+ });
42
+ //# sourceMappingURL=get-verification-url.js.map
@@ -0,0 +1 @@
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,8BAAqC;AAExB,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EACT,4JAA4J;IAC9J,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,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,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"}
@@ -0,0 +1,5 @@
1
+ export declare const runBusinessVerificationAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>;
5
+ //# sourceMappingURL=run-business-verification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-business-verification.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-business-verification.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B;;;EA6BxC,CAAC"}
@@ -0,0 +1,39 @@
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 __1 = require("../../");
9
+ exports.runBusinessVerificationAction = (0, pieces_framework_1.createAction)({
10
+ 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
+ props: {
15
+ template_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Template',
17
+ 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.',
18
+ required: true,
19
+ }),
20
+ business_profile_id: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Business Profile ID',
22
+ 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.',
23
+ required: true,
24
+ }),
25
+ },
26
+ run(context) {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const { template_id, business_profile_id } = context.propsValue;
29
+ const result = yield common_1.aiprise.makeRequest({
30
+ apiKey: context.auth.secret_text,
31
+ method: pieces_common_1.HttpMethod.POST,
32
+ path: '/verify/run_verification_for_business_profile_id',
33
+ body: { template_id, business_profile_id },
34
+ });
35
+ return result;
36
+ });
37
+ },
38
+ });
39
+ //# sourceMappingURL=run-business-verification.js.map
@@ -0,0 +1 @@
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,8BAAqC;AAExB,QAAA,6BAA6B,GAAG,IAAA,+BAAY,EAAC;IACxD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EACT,4MAA4M;IAC9M,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,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,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"}
@@ -0,0 +1,9 @@
1
+ export declare const runDocumentCheckAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ file_uuid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
+ document_input_title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ client_reference_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ client_reference_data: import("@activepieces/pieces-framework").JsonProperty<false>;
8
+ }>;
9
+ //# sourceMappingURL=run-document-check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-document-check.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-document-check.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;EAsEjC,CAAC"}
@@ -0,0 +1,69 @@
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 __1 = require("../../");
9
+ exports.runDocumentCheckAction = (0, pieces_framework_1.createAction)({
10
+ 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
+ props: {
15
+ business_profile_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Business Profile ID',
17
+ 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**.',
18
+ required: true,
19
+ }),
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
+ file_uuid: pieces_framework_1.Property.ShortText({
26
+ displayName: 'File UUID',
27
+ description: 'The UUID of the document file that was previously uploaded to AiPrise.',
28
+ required: true,
29
+ }),
30
+ document_input_title: pieces_framework_1.Property.ShortText({
31
+ displayName: 'Document Input Title',
32
+ 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.',
33
+ required: false,
34
+ }),
35
+ client_reference_id: pieces_framework_1.Property.ShortText({
36
+ displayName: 'Client Reference ID',
37
+ description: 'Your own identifier to associate with this request — for example an order number or internal case ID.',
38
+ required: false,
39
+ }),
40
+ client_reference_data: pieces_framework_1.Property.Json({
41
+ displayName: 'Client Reference Data',
42
+ description: 'Any additional JSON data you want to store alongside this request.',
43
+ required: false,
44
+ }),
45
+ },
46
+ run(context) {
47
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
48
+ const { business_profile_id, template_id, file_uuid, document_input_title, client_reference_id, client_reference_data, } = context.propsValue;
49
+ const body = {
50
+ business_profile_id,
51
+ template_id,
52
+ file_uuid,
53
+ };
54
+ if (document_input_title)
55
+ body['document_input_title'] = document_input_title;
56
+ if (client_reference_id)
57
+ body['client_reference_id'] = client_reference_id;
58
+ if (client_reference_data)
59
+ body['client_reference_data'] = client_reference_data;
60
+ return common_1.aiprise.makeRequest({
61
+ apiKey: context.auth.secret_text,
62
+ method: pieces_common_1.HttpMethod.POST,
63
+ path: '/verify/run_check_on_business_document',
64
+ body,
65
+ });
66
+ });
67
+ },
68
+ });
69
+ //# sourceMappingURL=run-document-check.js.map
@@ -0,0 +1 @@
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,8BAAqC;AAExB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EACT,8KAA8K;IAChL,KAAK,EAAE;QACL,mBAAmB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C,GAAG,qBAAqB,CAAC;YAEjF,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,wCAAwC;gBAC9C,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const runUserVerificationProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ user_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>;
5
+ //# sourceMappingURL=run-user-verification-profile.d.ts.map
@@ -0,0 +1 @@
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;;;EAqC3C,CAAC"}
@@ -0,0 +1,39 @@
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 __1 = require("../..");
9
+ exports.runUserVerificationProfileAction = (0, pieces_framework_1.createAction)({
10
+ 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
+ props: {
15
+ template_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Template',
17
+ 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.',
18
+ required: true,
19
+ }),
20
+ user_profile_id: pieces_framework_1.Property.ShortText({
21
+ displayName: 'User Profile ID',
22
+ 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.',
23
+ required: true,
24
+ }),
25
+ },
26
+ run(context) {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const { template_id, user_profile_id, } = context.propsValue;
29
+ const body = { template_id, user_profile_id };
30
+ return common_1.aiprise.makeRequest({
31
+ apiKey: context.auth.secret_text,
32
+ method: pieces_common_1.HttpMethod.POST,
33
+ path: '/verify/run_verification_for_user_profile_id',
34
+ body,
35
+ });
36
+ });
37
+ },
38
+ });
39
+ //# sourceMappingURL=run-user-verification-profile.js.map
@@ -0,0 +1 @@
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,6BAAoC;AAEvB,QAAA,gCAAgC,GAAG,IAAA,+BAAY,EAAC;IAC3D,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,yCAAyC;IACtD,WAAW,EACT,sJAAsJ;IACxJ,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,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,8CAA8C;gBACpD,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const updateVerificationResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ verification_session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ result: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
+ }>;
5
+ //# sourceMappingURL=update-verification-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-verification-result.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-verification-result.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,8BAA8B;;;EAsCzC,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateVerificationResultAction = 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 __1 = require("../../");
9
+ exports.updateVerificationResultAction = (0, pieces_framework_1.createAction)({
10
+ auth: __1.aipriseAuth,
11
+ name: 'update_verification_result',
12
+ displayName: 'Override Identity Verification Decision',
13
+ description: 'Manually changes the outcome of an identity check — useful when a human reviewer needs to approve or decline a case that AiPrise flagged for manual review.',
14
+ props: {
15
+ verification_session_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Verification Session ID',
17
+ description: 'The ID of the verification whose decision you want to change. 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.',
18
+ required: true,
19
+ }),
20
+ result: pieces_framework_1.Property.StaticDropdown({
21
+ displayName: 'New Decision',
22
+ description: 'The outcome you want to set. Choose **Approved** to pass the person, **Declined** to reject them, or **Pending** to put the case back into manual review.',
23
+ required: true,
24
+ options: {
25
+ options: [
26
+ { label: 'Approved — pass the person', value: 'APPROVED' },
27
+ { label: 'Declined — reject the person', value: 'DECLINED' },
28
+ { label: 'Review — put in manual review', value: 'REVIEW' },
29
+ { label: 'Deactivated — deactivate the profile', value: 'DEACTIVATED' },
30
+ ],
31
+ },
32
+ }),
33
+ },
34
+ run(context) {
35
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
36
+ const { verification_session_id, result } = context.propsValue;
37
+ const response = yield common_1.aiprise.makeRequest({
38
+ apiKey: context.auth.secret_text,
39
+ method: pieces_common_1.HttpMethod.POST,
40
+ path: '/verify/update_user_verification_result',
41
+ body: { verification_session_id, result },
42
+ });
43
+ return response;
44
+ });
45
+ },
46
+ });
47
+ //# sourceMappingURL=update-verification-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-verification-result.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-verification-result.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,8BAAqC;AAExB,QAAA,8BAA8B,GAAG,IAAA,+BAAY,EAAC;IACzD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,yCAAyC;IACtD,WAAW,EACT,6JAA6J;IAC/J,KAAK,EAAE;QACL,uBAAuB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1C,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,qNAAqN;YACvN,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC9B,WAAW,EAAE,cAAc;YAC3B,WAAW,EACT,2JAA2J;YAC7J,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,UAAU,EAAE;oBAC1D,EAAE,KAAK,EAAE,8BAA8B,EAAE,KAAK,EAAE,UAAU,EAAE;oBAC5D,EAAE,KAAK,EAAE,+BAA+B,EAAE,KAAK,EAAE,QAAQ,EAAE;oBAC3D,EAAC,KAAK,EAAE,sCAAsC,EAAE,KAAK,EAAE,aAAa,EAAE;iBACvE;aACF;SACF,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,uBAAuB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC/D,MAAM,QAAQ,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAClE,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAChC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,yCAAyC;gBAC/C,IAAI,EAAE,EAAE,uBAAuB,EAAE,MAAM,EAAE;aAC1C,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { HttpMethod } from '@activepieces/pieces-common';
2
+ declare function makeRequest<T>({ apiKey, method, path, body, }: {
3
+ apiKey: string;
4
+ method: HttpMethod;
5
+ path: string;
6
+ body?: Record<string, unknown>;
7
+ }): Promise<T>;
8
+ export declare const aiprise: {
9
+ BASE_URL: string;
10
+ makeRequest: typeof makeRequest;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAIrE,iBAAe,WAAW,CAAC,CAAC,EAAE,EAC5B,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,GACL,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,GAAG,OAAO,CAAC,CAAC,CAAC,CAWb;AAED,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aiprise = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_common_1 = require("@activepieces/pieces-common");
6
+ const BASE_URL = 'https://api.aiprise.com/api/v1';
7
+ function makeRequest(_a) {
8
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ apiKey, method, path, body, }) {
9
+ const response = yield pieces_common_1.httpClient.sendRequest({
10
+ method,
11
+ url: `${BASE_URL}${path}`,
12
+ headers: {
13
+ 'X-API-KEY': apiKey,
14
+ 'Content-Type': 'application/json',
15
+ },
16
+ body,
17
+ });
18
+ return response.body;
19
+ });
20
+ }
21
+ exports.aiprise = {
22
+ BASE_URL,
23
+ makeRequest,
24
+ };
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAqE;AAErE,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AAElD,SAAe,WAAW;iEAAI,EAC5B,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,GAML;QACC,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAI;YAC/C,MAAM;YACN,GAAG,EAAE,GAAG,QAAQ,GAAG,IAAI,EAAE;YACzB,OAAO,EAAE;gBACP,WAAW,EAAE,MAAM;gBACnB,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI;SACL,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CAAA;AAEY,QAAA,OAAO,GAAG;IACrB,QAAQ;IACR,WAAW;CACZ,CAAC"}