@activepieces/piece-aiprise 0.0.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/i18n/translation.json +12 -0
- package/src/index.d.ts +4 -2
- package/src/index.d.ts.map +1 -1
- package/src/index.js +8 -14
- package/src/index.js.map +1 -1
- package/src/lib/actions/create-business-profile.d.ts +4 -1
- package/src/lib/actions/create-business-profile.d.ts.map +1 -1
- package/src/lib/actions/create-business-profile.js +3 -3
- package/src/lib/actions/create-business-profile.js.map +1 -1
- package/src/lib/actions/create-user-profile.d.ts +4 -1
- package/src/lib/actions/create-user-profile.d.ts.map +1 -1
- package/src/lib/actions/create-user-profile.js +3 -3
- package/src/lib/actions/create-user-profile.js.map +1 -1
- package/src/lib/actions/get-additional-user-info.d.ts +4 -1
- package/src/lib/actions/get-additional-user-info.d.ts.map +1 -1
- package/src/lib/actions/get-additional-user-info.js +3 -3
- package/src/lib/actions/get-additional-user-info.js.map +1 -1
- package/src/lib/actions/get-business-documents.d.ts +4 -1
- package/src/lib/actions/get-business-documents.d.ts.map +1 -1
- package/src/lib/actions/get-business-documents.js +3 -3
- package/src/lib/actions/get-business-documents.js.map +1 -1
- package/src/lib/actions/get-business-input-data.d.ts +4 -1
- package/src/lib/actions/get-business-input-data.d.ts.map +1 -1
- package/src/lib/actions/get-business-input-data.js +3 -3
- package/src/lib/actions/get-business-input-data.js.map +1 -1
- package/src/lib/actions/get-business-profile.d.ts +4 -1
- package/src/lib/actions/get-business-profile.d.ts.map +1 -1
- package/src/lib/actions/get-business-profile.js +3 -3
- package/src/lib/actions/get-business-profile.js.map +1 -1
- package/src/lib/actions/get-business-result.d.ts +4 -1
- package/src/lib/actions/get-business-result.d.ts.map +1 -1
- package/src/lib/actions/get-business-result.js +3 -3
- package/src/lib/actions/get-business-result.js.map +1 -1
- package/src/lib/actions/get-user-input-data.d.ts +4 -1
- package/src/lib/actions/get-user-input-data.d.ts.map +1 -1
- package/src/lib/actions/get-user-input-data.js +3 -3
- package/src/lib/actions/get-user-input-data.js.map +1 -1
- package/src/lib/actions/get-user-profile.d.ts +4 -1
- package/src/lib/actions/get-user-profile.d.ts.map +1 -1
- package/src/lib/actions/get-user-profile.js +3 -3
- package/src/lib/actions/get-user-profile.js.map +1 -1
- package/src/lib/actions/get-verification-result.d.ts +4 -1
- package/src/lib/actions/get-verification-result.d.ts.map +1 -1
- package/src/lib/actions/get-verification-result.js +3 -3
- package/src/lib/actions/get-verification-result.js.map +1 -1
- package/src/lib/actions/get-verification-url.d.ts +4 -1
- package/src/lib/actions/get-verification-url.d.ts.map +1 -1
- package/src/lib/actions/get-verification-url.js +3 -3
- package/src/lib/actions/get-verification-url.js.map +1 -1
- package/src/lib/actions/run-business-verification.d.ts +4 -1
- package/src/lib/actions/run-business-verification.d.ts.map +1 -1
- package/src/lib/actions/run-business-verification.js +3 -3
- package/src/lib/actions/run-business-verification.js.map +1 -1
- package/src/lib/actions/run-document-check.d.ts +4 -1
- package/src/lib/actions/run-document-check.d.ts.map +1 -1
- package/src/lib/actions/run-document-check.js +3 -3
- package/src/lib/actions/run-document-check.js.map +1 -1
- package/src/lib/actions/run-user-verification-profile.d.ts +4 -1
- package/src/lib/actions/run-user-verification-profile.d.ts.map +1 -1
- package/src/lib/actions/run-user-verification-profile.js +3 -3
- package/src/lib/actions/run-user-verification-profile.js.map +1 -1
- package/src/lib/actions/search-businesses.d.ts +4 -1
- package/src/lib/actions/search-businesses.d.ts.map +1 -1
- package/src/lib/actions/search-businesses.js +3 -3
- package/src/lib/actions/search-businesses.js.map +1 -1
- package/src/lib/actions/update-verification-result.d.ts +4 -1
- package/src/lib/actions/update-verification-result.d.ts.map +1 -1
- package/src/lib/actions/update-verification-result.js +3 -3
- package/src/lib/actions/update-verification-result.js.map +1 -1
- package/src/lib/common/auth.d.ts +5 -0
- package/src/lib/common/auth.d.ts.map +1 -0
- package/src/lib/common/auth.js +32 -0
- package/src/lib/common/auth.js.map +1 -0
- package/src/lib/common/index.d.ts +10 -3
- package/src/lib/common/index.d.ts.map +1 -1
- package/src/lib/common/index.js +11 -5
- package/src/lib/common/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
"Run Business Document Check": "Run Business Document Check",
|
|
13
13
|
"Create Business Profile": "Create Business Profile",
|
|
14
14
|
"Create User Profile": "Create User Profile",
|
|
15
|
+
"Get User Profile": "Get User Profile",
|
|
16
|
+
"Get Business Profile": "Get Business Profile",
|
|
17
|
+
"Search Businesses": "Search Businesses",
|
|
15
18
|
"Get Person's Additional Info": "Get Person's Additional Info",
|
|
16
19
|
"Get Business Documents": "Get Business Documents",
|
|
17
20
|
"Custom API Call": "Custom API Call",
|
|
@@ -26,6 +29,9 @@
|
|
|
26
29
|
"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.": "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.",
|
|
27
30
|
"Creates a new business profile in AiPrise. The returned profile can then be used to run document checks or other business verifications.": "Creates a new business profile in AiPrise. The returned profile can then be used to run document checks or other business verifications.",
|
|
28
31
|
"Creates a new user profile in AiPrise. The returned profile can then be used for repeated verifications or ongoing monitoring for the same person.": "Creates a new user profile in AiPrise. The returned profile can then be used for repeated verifications or ongoing monitoring for the same person.",
|
|
32
|
+
"Fetches a user profile from AiPrise by its ID — including the person's stored details, tags, linked verification sessions, and metadata.": "Fetches a user profile from AiPrise by its ID — including the person's stored details, tags, linked verification sessions, and metadata.",
|
|
33
|
+
"Fetches a business profile from AiPrise by its ID — including the stored company details, addresses, tags, linked verification sessions, and metadata.": "Fetches a business profile from AiPrise by its ID — including the stored company details, addresses, tags, linked verification sessions, and metadata.",
|
|
34
|
+
"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.": "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.",
|
|
29
35
|
"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.": "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.",
|
|
30
36
|
"Lists all documents attached to a business profile — including file UUIDs, names, S3 URLs, timestamps, document sources, and associated verification sessions.": "Lists all documents attached to a business profile — including file UUIDs, names, S3 URLs, timestamps, document sources, and associated verification sessions.",
|
|
31
37
|
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
@@ -67,6 +73,7 @@
|
|
|
67
73
|
"City": "City",
|
|
68
74
|
"State/Province": "State/Province",
|
|
69
75
|
"ZIP/Postal Code": "ZIP/Postal Code",
|
|
76
|
+
"State/Province Code": "State/Province Code",
|
|
70
77
|
"Method": "Method",
|
|
71
78
|
"Headers": "Headers",
|
|
72
79
|
"Query Parameters": "Query Parameters",
|
|
@@ -116,6 +123,11 @@
|
|
|
116
123
|
"Your own internal identifier for this user.": "Your own internal identifier for this user.",
|
|
117
124
|
"A webhook URL that AiPrise will call with event notifications for this profile. Paste the webhook URL from the **Verification Event Received** trigger here.": "A webhook URL that AiPrise will call with event notifications for this profile. Paste the webhook URL from the **Verification Event Received** trigger here.",
|
|
118
125
|
"Tag names used to categorize this user profile. Tags are created if they do not already exist.": "Tag names used to categorize this user profile. Tags are created if they do not already exist.",
|
|
126
|
+
"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.": "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.",
|
|
127
|
+
"The ID of the business profile to retrieve. You can get this from the output of the **Create Business Profile** action, or from the `business_profile_id` field in any webhook payload from AiPrise.": "The ID of the business profile to retrieve. You can get this from the output of the **Create Business Profile** action, or from the `business_profile_id` field in any webhook payload from AiPrise.",
|
|
128
|
+
"The business name to search for. Partial matches are supported by AiPrise.": "The business name to search for. Partial matches are supported by AiPrise.",
|
|
129
|
+
"2-letter ISO country code where the business is registered (e.g. US, GB).": "2-letter ISO country code where the business is registered (e.g. US, GB).",
|
|
130
|
+
"Optional state or province code to narrow the search (e.g. CA, NY for the US). Leave empty to search the whole country.": "Optional state or province code to narrow the search (e.g. CA, NY for the US). Leave empty to search the whole country.",
|
|
119
131
|
"The ID of the verification to look up. You can get this from the output of the **Start Identity Verification** action": "The ID of the verification to look up. You can get this from the output of the **Start Identity Verification** action",
|
|
120
132
|
"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.": "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.",
|
|
121
133
|
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
1
|
+
export declare const aiprise: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
+
}>>;
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,OAAO;;;GAsClB,CAAC"}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.aiprise =
|
|
3
|
+
exports.aiprise = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
@@ -21,22 +21,14 @@ const get_business_documents_1 = require("./lib/actions/get-business-documents")
|
|
|
21
21
|
const get_user_profile_1 = require("./lib/actions/get-user-profile");
|
|
22
22
|
const get_business_profile_1 = require("./lib/actions/get-business-profile");
|
|
23
23
|
const search_businesses_1 = require("./lib/actions/search-businesses");
|
|
24
|
-
|
|
25
|
-
displayName: 'API Key',
|
|
26
|
-
description: `To get your AiPrise API key:
|
|
27
|
-
1. Log in to your [AiPrise dashboard](https://app.aiprise.com)
|
|
28
|
-
2. Go to **Settings > API Keys**
|
|
29
|
-
3. Copy your API key and paste it here
|
|
30
|
-
`,
|
|
31
|
-
required: true,
|
|
32
|
-
});
|
|
24
|
+
const auth_1 = require("./lib/common/auth");
|
|
33
25
|
exports.aiprise = (0, pieces_framework_1.createPiece)({
|
|
34
26
|
displayName: 'AiPrise',
|
|
35
27
|
description: 'KYC, KYB, and fraud prevention platform — verify user identities, onboard businesses, run AML/sanctions checks, and detect fraud signals.',
|
|
36
28
|
minimumSupportedRelease: '0.36.1',
|
|
37
29
|
logoUrl: 'https://cdn.activepieces.com/pieces/aiprise.png',
|
|
38
30
|
categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
|
|
39
|
-
auth:
|
|
31
|
+
auth: auth_1.aipriseAuth,
|
|
40
32
|
authors: ['sanket-a11y'],
|
|
41
33
|
actions: [
|
|
42
34
|
run_user_verification_profile_1.runUserVerificationProfileAction,
|
|
@@ -56,11 +48,13 @@ exports.aiprise = (0, pieces_framework_1.createPiece)({
|
|
|
56
48
|
get_additional_user_info_1.getAdditionalUserInfoAction,
|
|
57
49
|
get_business_documents_1.getBusinessDocumentsAction,
|
|
58
50
|
(0, pieces_common_1.createCustomApiCallAction)({
|
|
59
|
-
baseUrl: () =>
|
|
60
|
-
|
|
51
|
+
baseUrl: (auth) => (auth === null || auth === void 0 ? void 0 : auth.props.environment) === 'sandbox'
|
|
52
|
+
? 'https://api-sandbox.aiprise.com/api/v1'
|
|
53
|
+
: 'https://api.aiprise.com/api/v1',
|
|
54
|
+
auth: auth_1.aipriseAuth,
|
|
61
55
|
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
62
56
|
return ({
|
|
63
|
-
'X-API-KEY': auth.secret_text,
|
|
57
|
+
'X-API-KEY': auth.props.secret_text,
|
|
64
58
|
});
|
|
65
59
|
}),
|
|
66
60
|
}),
|
package/src/index.js.map
CHANGED
|
@@ -1 +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;AAClF,qEAAsE;AACtE,6EAA8E;AAC9E,uEAAyE;
|
|
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;AAClF,qEAAsE;AACtE,6EAA8E;AAC9E,uEAAyE;AACzE,4CAAgD;AAEnC,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,kBAAW;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,uCAAoB;QACpB,+CAAwB;QACxB,0CAAsB;QACtB,sDAA2B;QAC3B,mDAA0B;QAC1B,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,WAAW,MAAK,SAAS;gBACnC,CAAC,CAAC,wCAAwC;gBAC1C,CAAC,CAAC,gCAAgC;YACtC,IAAI,EAAE,kBAAW;YACjB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW;iBACpC,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const createBusinessProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
1
|
+
export declare const createBusinessProfileAction: 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
|
+
}>, {
|
|
2
5
|
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
alternate_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
7
|
tax_identification_number: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.createBusinessProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'create_business_profile',
|
|
12
12
|
displayName: 'Create Business Profile',
|
|
13
13
|
description: 'Creates a new business profile in AiPrise. The returned profile can then be used to run document checks or other business verifications.',
|
|
@@ -155,7 +155,7 @@ exports.createBusinessProfileAction = (0, pieces_framework_1.createAction)({
|
|
|
155
155
|
if (tags && tags.length > 0)
|
|
156
156
|
body['tags'] = tags;
|
|
157
157
|
return common_1.aiprise.makeRequest({
|
|
158
|
-
|
|
158
|
+
auth: context.auth.props,
|
|
159
159
|
method: pieces_common_1.HttpMethod.POST,
|
|
160
160
|
path: '/verify/create_business_profile',
|
|
161
161
|
body,
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"create-business-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-business-profile.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const createUserProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
1
|
+
export declare const createUserProfileAction: 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
|
+
}>, {
|
|
2
5
|
first_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
3
6
|
middle_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
7
|
last_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.createUserProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'create_user_profile',
|
|
12
12
|
displayName: 'Create User Profile',
|
|
13
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.',
|
|
@@ -130,7 +130,7 @@ exports.createUserProfileAction = (0, pieces_framework_1.createAction)({
|
|
|
130
130
|
if (tags && tags.length > 0)
|
|
131
131
|
body['tags'] = tags;
|
|
132
132
|
return common_1.aiprise.makeRequest({
|
|
133
|
-
|
|
133
|
+
auth: context.auth.props,
|
|
134
134
|
method: pieces_common_1.HttpMethod.POST,
|
|
135
135
|
path: '/verify/create_user_profile',
|
|
136
136
|
body,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-user-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"create-user-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-user-profile.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const getAdditionalUserInfoAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
1
|
+
export declare const getAdditionalUserInfoAction: 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
|
+
}>, {
|
|
2
5
|
session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
}>;
|
|
4
7
|
//# sourceMappingURL=get-additional-user-info.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getAdditionalUserInfoAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_additional_user_info',
|
|
12
12
|
displayName: "Get Person's Additional Info",
|
|
13
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.",
|
|
@@ -22,7 +22,7 @@ exports.getAdditionalUserInfoAction = (0, pieces_framework_1.createAction)({
|
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { session_id } = context.propsValue;
|
|
24
24
|
return common_1.aiprise.makeRequest({
|
|
25
|
-
|
|
25
|
+
auth: context.auth.props,
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
27
|
path: `/verify/get_additional_user_info_from_request/${session_id}`,
|
|
28
28
|
});
|
|
@@ -1 +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,
|
|
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,yCAA6C;AAEhC,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,kBAAW;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,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,iDAAiD,UAAU,EAAE;aACpE,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const getBusinessDocumentsAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
1
|
+
export declare const getBusinessDocumentsAction: 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
|
+
}>, {
|
|
2
5
|
business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
}>;
|
|
4
7
|
//# sourceMappingURL=get-business-documents.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getBusinessDocumentsAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_business_documents',
|
|
12
12
|
displayName: 'Get Business Documents',
|
|
13
13
|
description: 'Lists all documents attached to a business profile — including file UUIDs, names, S3 URLs, timestamps, document sources, and associated verification sessions.',
|
|
@@ -22,7 +22,7 @@ exports.getBusinessDocumentsAction = (0, pieces_framework_1.createAction)({
|
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { business_profile_id } = context.propsValue;
|
|
24
24
|
return common_1.aiprise.makeRequest({
|
|
25
|
-
|
|
25
|
+
auth: context.auth.props,
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
27
|
path: `/verify/get_business_documents/${business_profile_id}`,
|
|
28
28
|
});
|
|
@@ -1 +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,
|
|
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,yCAA6C;AAEhC,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,kBAAW;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,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,kCAAkC,mBAAmB,EAAE;aAC9D,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const getBusinessInputDataAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
1
|
+
export declare const getBusinessInputDataAction: 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
|
+
}>, {
|
|
2
5
|
session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
}>;
|
|
4
7
|
//# sourceMappingURL=get-business-input-data.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getBusinessInputDataAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_business_input_data',
|
|
12
12
|
displayName: "Get Business's Submitted Verification Data",
|
|
13
13
|
description: 'Returns the company information provided during a business verification — such as company name, registration number, directors, and ownership details.',
|
|
@@ -22,7 +22,7 @@ exports.getBusinessInputDataAction = (0, pieces_framework_1.createAction)({
|
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { session_id } = context.propsValue;
|
|
24
24
|
const result = yield common_1.aiprise.makeRequest({
|
|
25
|
-
|
|
25
|
+
auth: context.auth.props,
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
27
|
path: `/verify/get_business_data_from_request/${session_id}`,
|
|
28
28
|
});
|
|
@@ -1 +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,
|
|
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,yCAA6C;AAEhC,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,kBAAW;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,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,0CAA0C,UAAU,EAAE;aAC7D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const getBusinessProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
1
|
+
export declare const getBusinessProfileAction: 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
|
+
}>, {
|
|
2
5
|
business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
}>;
|
|
4
7
|
//# sourceMappingURL=get-business-profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"get-business-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;EAsBnC,CAAC"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getBusinessProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_business_profile',
|
|
12
12
|
displayName: 'Get Business Profile',
|
|
13
13
|
description: 'Fetches a business profile from AiPrise by its ID — including the stored company details, addresses, tags, linked verification sessions, and metadata.',
|
|
@@ -22,7 +22,7 @@ exports.getBusinessProfileAction = (0, pieces_framework_1.createAction)({
|
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { business_profile_id } = context.propsValue;
|
|
24
24
|
return common_1.aiprise.makeRequest({
|
|
25
|
-
|
|
25
|
+
auth: context.auth.props,
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
27
|
path: `/verify/get_business_profile/${encodeURIComponent(business_profile_id)}`,
|
|
28
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"get-business-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-profile.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,sBAAsB;IACnC,WAAW,EACT,wJAAwJ;IAC1J,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,sMAAsM;YACxM,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,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,gCAAgC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE;aAChF,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const getBusinessResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
1
|
+
export declare const getBusinessResultAction: 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
|
+
}>, {
|
|
2
5
|
session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
}>;
|
|
4
7
|
//# sourceMappingURL=get-business-result.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getBusinessResultAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_business_verification_result',
|
|
12
12
|
displayName: 'Get Business Verification Result',
|
|
13
13
|
description: "Fetches the current status and outcome of a company's background check — whether it is still running, approved, or declined.",
|
|
@@ -22,7 +22,7 @@ exports.getBusinessResultAction = (0, pieces_framework_1.createAction)({
|
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { session_id } = context.propsValue;
|
|
24
24
|
const result = yield common_1.aiprise.makeRequest({
|
|
25
|
-
|
|
25
|
+
auth: context.auth.props,
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
27
|
path: `/verify/get_business_verification_result/${session_id}`,
|
|
28
28
|
});
|
|
@@ -1 +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,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const getUserInputDataAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
}>;
|
|
4
7
|
//# sourceMappingURL=get-user-input-data.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getUserInputDataAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_user_input_data',
|
|
12
12
|
displayName: 'Get Person\'s Submitted Verification Data',
|
|
13
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).',
|
|
@@ -22,7 +22,7 @@ exports.getUserInputDataAction = (0, pieces_framework_1.createAction)({
|
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { session_id } = context.propsValue;
|
|
24
24
|
const result = yield common_1.aiprise.makeRequest({
|
|
25
|
-
|
|
25
|
+
auth: context.auth.props,
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
27
|
path: `/verify/get_user_input_data_from_request/${session_id}`,
|
|
28
28
|
});
|
|
@@ -1 +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,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const getUserProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
user_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
}>;
|
|
4
7
|
//# sourceMappingURL=get-user-profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"get-user-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;;EAsB/B,CAAC"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getUserProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_user_profile',
|
|
12
12
|
displayName: 'Get User Profile',
|
|
13
13
|
description: "Fetches a user profile from AiPrise by its ID — including the person's stored details, tags, linked verification sessions, and metadata.",
|
|
@@ -22,7 +22,7 @@ exports.getUserProfileAction = (0, pieces_framework_1.createAction)({
|
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { user_profile_id } = context.propsValue;
|
|
24
24
|
return common_1.aiprise.makeRequest({
|
|
25
|
-
|
|
25
|
+
auth: context.auth.props,
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
27
|
path: `/verify/get_user_profile/${encodeURIComponent(user_profile_id)}`,
|
|
28
28
|
});
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const getVerificationResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
}>;
|
|
4
7
|
//# sourceMappingURL=get-verification-result.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getVerificationResultAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_verification_result',
|
|
12
12
|
displayName: 'Get Identity Verification Result',
|
|
13
13
|
description: 'Fetches the current status and outcome of a person\'s identity check — whether it is still in progress, approved, or declined.',
|
|
@@ -22,7 +22,7 @@ exports.getVerificationResultAction = (0, pieces_framework_1.createAction)({
|
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { session_id } = context.propsValue;
|
|
24
24
|
const result = yield common_1.aiprise.makeRequest({
|
|
25
|
-
|
|
25
|
+
auth: context.auth.props,
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
27
|
path: `/verify/get_user_verification_result/${session_id}`,
|
|
28
28
|
});
|
|
@@ -1 +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,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const getVerificationUrlAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
redirect_uri: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
7
|
}>;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.getVerificationUrlAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'get_verification_url',
|
|
12
12
|
displayName: 'Get Identity Verification Link',
|
|
13
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.',
|
|
@@ -27,7 +27,7 @@ exports.getVerificationUrlAction = (0, pieces_framework_1.createAction)({
|
|
|
27
27
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const { template_id, redirect_uri } = context.propsValue;
|
|
29
29
|
const result = yield common_1.aiprise.makeRequest({
|
|
30
|
-
|
|
30
|
+
auth: context.auth.props,
|
|
31
31
|
method: pieces_common_1.HttpMethod.POST,
|
|
32
32
|
path: '/verify/get_user_verification_url',
|
|
33
33
|
body: {
|
|
@@ -1 +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,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const runBusinessVerificationAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
7
|
}>;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.runBusinessVerificationAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'run_business_verification',
|
|
12
12
|
displayName: 'Start Business Verification',
|
|
13
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.',
|
|
@@ -27,7 +27,7 @@ exports.runBusinessVerificationAction = (0, pieces_framework_1.createAction)({
|
|
|
27
27
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const { template_id, business_profile_id } = context.propsValue;
|
|
29
29
|
const result = yield common_1.aiprise.makeRequest({
|
|
30
|
-
|
|
30
|
+
auth: context.auth.props,
|
|
31
31
|
method: pieces_common_1.HttpMethod.POST,
|
|
32
32
|
path: '/verify/run_verification_for_business_profile_id',
|
|
33
33
|
body: { template_id, business_profile_id },
|
|
@@ -1 +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,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const runDocumentCheckAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
7
|
file_uuid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.runDocumentCheckAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'run_document_check',
|
|
12
12
|
displayName: 'Run Business Document Check',
|
|
13
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.',
|
|
@@ -58,7 +58,7 @@ exports.runDocumentCheckAction = (0, pieces_framework_1.createAction)({
|
|
|
58
58
|
if (client_reference_data)
|
|
59
59
|
body['client_reference_data'] = client_reference_data;
|
|
60
60
|
return common_1.aiprise.makeRequest({
|
|
61
|
-
|
|
61
|
+
auth: context.auth.props,
|
|
62
62
|
method: pieces_common_1.HttpMethod.POST,
|
|
63
63
|
path: '/verify/run_check_on_business_document',
|
|
64
64
|
body,
|
|
@@ -1 +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,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const runUserVerificationProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
user_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
7
|
}>;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.runUserVerificationProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'run_user_verification_profile',
|
|
12
12
|
displayName: 'Start Identity Verification for profile',
|
|
13
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).',
|
|
@@ -28,7 +28,7 @@ exports.runUserVerificationProfileAction = (0, pieces_framework_1.createAction)(
|
|
|
28
28
|
const { template_id, user_profile_id, } = context.propsValue;
|
|
29
29
|
const body = { template_id, user_profile_id };
|
|
30
30
|
return common_1.aiprise.makeRequest({
|
|
31
|
-
|
|
31
|
+
auth: context.auth.props,
|
|
32
32
|
method: pieces_common_1.HttpMethod.POST,
|
|
33
33
|
path: '/verify/run_verification_for_user_profile_id',
|
|
34
34
|
body,
|
|
@@ -1 +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,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const searchBusinessesAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
country_code: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
7
|
state_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-businesses.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-businesses.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"search-businesses.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-businesses.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;EAwCjC,CAAC"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.searchBusinessesAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'search_businesses',
|
|
12
12
|
displayName: 'Search Businesses',
|
|
13
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.',
|
|
@@ -38,7 +38,7 @@ exports.searchBusinessesAction = (0, pieces_framework_1.createAction)({
|
|
|
38
38
|
if (state_code)
|
|
39
39
|
body['state_code'] = state_code;
|
|
40
40
|
return common_1.aiprise.makeRequest({
|
|
41
|
-
|
|
41
|
+
auth: context.auth.props,
|
|
42
42
|
method: pieces_common_1.HttpMethod.POST,
|
|
43
43
|
path: '/data/business/search',
|
|
44
44
|
body,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-businesses.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-businesses.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,
|
|
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,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,4 +1,7 @@
|
|
|
1
|
-
export declare const updateVerificationResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").
|
|
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
|
+
}>, {
|
|
2
5
|
verification_session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
6
|
result: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
7
|
}>;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
9
|
exports.updateVerificationResultAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth:
|
|
10
|
+
auth: auth_1.aipriseAuth,
|
|
11
11
|
name: 'update_verification_result',
|
|
12
12
|
displayName: 'Override Identity Verification Decision',
|
|
13
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.',
|
|
@@ -35,7 +35,7 @@ exports.updateVerificationResultAction = (0, pieces_framework_1.createAction)({
|
|
|
35
35
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
const { verification_session_id, result } = context.propsValue;
|
|
37
37
|
const response = yield common_1.aiprise.makeRequest({
|
|
38
|
-
|
|
38
|
+
auth: context.auth.props,
|
|
39
39
|
method: pieces_common_1.HttpMethod.POST,
|
|
40
40
|
path: '/verify/update_user_verification_result',
|
|
41
41
|
body: { verification_session_id, result },
|
|
@@ -1 +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,
|
|
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,yCAA6C;AAEhC,QAAA,8BAA8B,GAAG,IAAA,+BAAY,EAAC;IACzD,IAAI,EAAE,kBAAW;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,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,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,5 @@
|
|
|
1
|
+
export declare const aipriseAuth: 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
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;EA0BtB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.aipriseAuth = void 0;
|
|
4
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
+
exports.aipriseAuth = pieces_framework_1.PieceAuth.CustomAuth({
|
|
6
|
+
displayName: 'API Key',
|
|
7
|
+
description: `To get your AiPrise API key:
|
|
8
|
+
1. Log in to your [AiPrise dashboard](https://app.aiprise.com)
|
|
9
|
+
2. Go to **Settings > API Keys**
|
|
10
|
+
3. Copy your API key and paste it here
|
|
11
|
+
`,
|
|
12
|
+
required: true,
|
|
13
|
+
props: {
|
|
14
|
+
secret_text: pieces_framework_1.PieceAuth.SecretText({
|
|
15
|
+
displayName: 'API Key',
|
|
16
|
+
description: 'Your AiPrise API key',
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
environment: pieces_framework_1.Property.StaticDropdown({
|
|
20
|
+
displayName: 'Environment',
|
|
21
|
+
description: 'Select the AiPrise environment to use',
|
|
22
|
+
required: true,
|
|
23
|
+
options: {
|
|
24
|
+
options: [
|
|
25
|
+
{ label: 'Production', value: 'production' },
|
|
26
|
+
{ label: 'Sandbox', value: 'sandbox' },
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
}),
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AAExD,QAAA,WAAW,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC9C,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE;;;;CAId;IACC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,WAAW,EAAE,4BAAS,CAAC,UAAU,CAAC;YAChC,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACnC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC5C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACvC;aACF;SACF,CAAC;KACH;CACF,CAAC,CAAC"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { HttpMethod } from '@activepieces/pieces-common';
|
|
2
|
-
declare function
|
|
3
|
-
|
|
2
|
+
declare function getBaseUrl(environment: string): string;
|
|
3
|
+
declare function makeRequest<T>({ auth, method, path, body, }: {
|
|
4
|
+
auth: AipriseAuthValue;
|
|
4
5
|
method: HttpMethod;
|
|
5
6
|
path: string;
|
|
6
7
|
body?: Record<string, unknown>;
|
|
7
8
|
}): Promise<T>;
|
|
8
9
|
export declare const aiprise: {
|
|
9
|
-
|
|
10
|
+
PRODUCTION_BASE_URL: string;
|
|
11
|
+
SANDBOX_BASE_URL: string;
|
|
12
|
+
getBaseUrl: typeof getBaseUrl;
|
|
10
13
|
makeRequest: typeof makeRequest;
|
|
11
14
|
};
|
|
15
|
+
export type AipriseAuthValue = {
|
|
16
|
+
secret_text: string;
|
|
17
|
+
environment: string;
|
|
18
|
+
};
|
|
12
19
|
export {};
|
|
13
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAKrE,iBAAS,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,iBAAe,WAAW,CAAC,CAAC,EAAE,EAC5B,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,IAAI,GACL,EAAE;IACD,IAAI,EAAE,gBAAgB,CAAC;IACvB,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;;;;;CAKnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
package/src/lib/common/index.js
CHANGED
|
@@ -3,14 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.aiprise = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
-
const
|
|
6
|
+
const PRODUCTION_BASE_URL = 'https://api.aiprise.com/api/v1';
|
|
7
|
+
const SANDBOX_BASE_URL = 'https://api-sandbox.aiprise.com/api/v1';
|
|
8
|
+
function getBaseUrl(environment) {
|
|
9
|
+
return environment === 'sandbox' ? SANDBOX_BASE_URL : PRODUCTION_BASE_URL;
|
|
10
|
+
}
|
|
7
11
|
function makeRequest(_a) {
|
|
8
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({
|
|
12
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, method, path, body, }) {
|
|
9
13
|
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
10
14
|
method,
|
|
11
|
-
url: `${
|
|
15
|
+
url: `${getBaseUrl(auth.environment)}${path}`,
|
|
12
16
|
headers: {
|
|
13
|
-
'X-API-KEY':
|
|
17
|
+
'X-API-KEY': auth.secret_text,
|
|
14
18
|
'Content-Type': 'application/json',
|
|
15
19
|
},
|
|
16
20
|
body,
|
|
@@ -19,7 +23,9 @@ function makeRequest(_a) {
|
|
|
19
23
|
});
|
|
20
24
|
}
|
|
21
25
|
exports.aiprise = {
|
|
22
|
-
|
|
26
|
+
PRODUCTION_BASE_URL,
|
|
27
|
+
SANDBOX_BASE_URL,
|
|
28
|
+
getBaseUrl,
|
|
23
29
|
makeRequest,
|
|
24
30
|
};
|
|
25
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAqE;AAErE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAqE;AAErE,MAAM,mBAAmB,GAAG,gCAAgC,CAAC;AAC7D,MAAM,gBAAgB,GAAG,wCAAwC,CAAC;AAElE,SAAS,UAAU,CAAC,WAAmB;IACrC,OAAO,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,mBAAmB,CAAC;AAC5E,CAAC;AAED,SAAe,WAAW;iEAAI,EAC5B,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,IAAI,GAML;QACC,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAI;YAC/C,MAAM;YACN,GAAG,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;YAC7C,OAAO,EAAE;gBACP,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI;SACL,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CAAA;AAEY,QAAA,OAAO,GAAG;IACrB,mBAAmB;IACnB,gBAAgB;IAChB,UAAU;IACV,WAAW;CACZ,CAAC"}
|