@activepieces/piece-aiprise 0.0.4 → 0.1.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.
- package/package.json +4 -4
- package/src/i18n/de.json +155 -0
- package/src/i18n/es.json +155 -0
- package/src/i18n/fr.json +155 -0
- package/src/i18n/ja.json +155 -0
- package/src/i18n/nl.json +155 -0
- package/src/i18n/pt.json +155 -0
- package/src/i18n/translation.json +18 -0
- package/src/i18n/zh.json +155 -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/src/i18n/zh.json
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"KYC, KYB, and fraud prevention platform — verify user identities, onboard businesses, run AML/sanctions checks, and detect fraud signals.": "KYC, KYB, and fraud prevention platform — verify user identities, onboard businesses, run AML/sanctions checks, and detect fraud signals.",
|
|
3
|
+
"API Key": "API 密钥",
|
|
4
|
+
"Environment": "Environment",
|
|
5
|
+
"Your AiPrise API key": "Your AiPrise API key",
|
|
6
|
+
"Select the AiPrise environment to use": "Select the AiPrise environment to use",
|
|
7
|
+
"Production": "Production",
|
|
8
|
+
"Sandbox": "Sandbox",
|
|
9
|
+
"To get your AiPrise API key:\n1. Log in to your [AiPrise dashboard](https://app.aiprise.com)\n2. Go to **Settings > API Keys**\n3. Copy your API key and paste it here\n": "To get your AiPrise API key:\n1. Log in to your [AiPrise dashboard](https://app.aiprise.com)\n2. Go to **Settings > API Keys**\n3. Copy your API key and paste it here\n",
|
|
10
|
+
"Start Identity Verification for profile": "Start Identity Verification for profile",
|
|
11
|
+
"Get Identity Verification Link": "Get Identity Verification Link",
|
|
12
|
+
"Get Identity Verification Result": "Get Identity Verification Result",
|
|
13
|
+
"Get Person's Submitted Verification Data": "Get Person's Submitted Verification Data",
|
|
14
|
+
"Override Identity Verification Decision": "Override Identity Verification Decision",
|
|
15
|
+
"Start Business Verification": "Start Business Verification",
|
|
16
|
+
"Get Business Verification Result": "Get Business Verification Result",
|
|
17
|
+
"Get Business's Submitted Verification Data": "Get Business's Submitted Verification Data",
|
|
18
|
+
"Run Business Document Check": "Run Business Document Check",
|
|
19
|
+
"Create Business Profile": "Create Business Profile",
|
|
20
|
+
"Create User Profile": "Create User Profile",
|
|
21
|
+
"Get User Profile": "Get User Profile",
|
|
22
|
+
"Get Business Profile": "Get Business Profile",
|
|
23
|
+
"Search Businesses": "Search Businesses",
|
|
24
|
+
"Get Person's Additional Info": "Get Person's Additional Info",
|
|
25
|
+
"Get Business Documents": "Get Business Documents",
|
|
26
|
+
"Custom API Call": "自定义 API 呼叫",
|
|
27
|
+
"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).": "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
|
+
"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.": "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.",
|
|
29
|
+
"Fetches the current status and outcome of a person's identity check — whether it is still in progress, approved, or declined.": "Fetches the current status and outcome of a person's identity check — whether it is still in progress, approved, or declined.",
|
|
30
|
+
"Returns the information the person entered and the documents they uploaded during their identity check (e.g. name, date of birth, ID document details).": "Returns the information the person entered and the documents they uploaded during their identity check (e.g. name, date of birth, ID document details).",
|
|
31
|
+
"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.": "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.",
|
|
32
|
+
"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.": "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.",
|
|
33
|
+
"Fetches the current status and outcome of a company's background check — whether it is still running, approved, or declined.": "Fetches the current status and outcome of a company's background check — whether it is still running, approved, or declined.",
|
|
34
|
+
"Returns the company information provided during a business verification — such as company name, registration number, directors, and ownership details.": "Returns the company information provided during a business verification — such as company name, registration number, directors, and ownership details.",
|
|
35
|
+
"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.",
|
|
36
|
+
"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.",
|
|
37
|
+
"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.",
|
|
38
|
+
"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.",
|
|
39
|
+
"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.",
|
|
40
|
+
"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.",
|
|
41
|
+
"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.",
|
|
42
|
+
"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.",
|
|
43
|
+
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
|
44
|
+
"Verification Template": "Verification Template",
|
|
45
|
+
"User Profile ID": "User Profile ID",
|
|
46
|
+
"Redirect URL": "重定向网址",
|
|
47
|
+
"Verification Session ID": "Verification Session ID",
|
|
48
|
+
"New Decision": "New Decision",
|
|
49
|
+
"Business Profile ID": "Business Profile ID",
|
|
50
|
+
"File UUID": "File UUID",
|
|
51
|
+
"Document Input Title": "Document Input Title",
|
|
52
|
+
"Client Reference ID": "Client Reference ID",
|
|
53
|
+
"Client Reference Data": "Client Reference Data",
|
|
54
|
+
"Business Name": "Business Name",
|
|
55
|
+
"Alternate Name (DBA)": "Alternate Name (DBA)",
|
|
56
|
+
"Tax Identification Number": "Tax Identification Number",
|
|
57
|
+
"Website": "Website",
|
|
58
|
+
"Formation Date": "Formation Date",
|
|
59
|
+
"Country Code": "Country Code",
|
|
60
|
+
"State Code": "State Code",
|
|
61
|
+
"Business Entity ID": "Business Entity ID",
|
|
62
|
+
"Addresses": "Addresses",
|
|
63
|
+
"Phone Numbers": "Phone Numbers",
|
|
64
|
+
"Email Addresses": "Email Addresses",
|
|
65
|
+
"Additional Information": "Additional Information",
|
|
66
|
+
"Callback URL": "Callback URL",
|
|
67
|
+
"Events Callback URL": "Events Callback URL",
|
|
68
|
+
"Tags": "标签",
|
|
69
|
+
"First Name": "First Name",
|
|
70
|
+
"Middle Name": "Middle Name",
|
|
71
|
+
"Last Name": "名字",
|
|
72
|
+
"Second Last Name": "Second Last Name",
|
|
73
|
+
"Full Name": "Full Name",
|
|
74
|
+
"Date of Birth": "Date of Birth",
|
|
75
|
+
"Email Address": "Email Address",
|
|
76
|
+
"Phone Number": "Phone Number",
|
|
77
|
+
"Street Address 1": "Street Address 1",
|
|
78
|
+
"Street Address 2": "Street Address 2",
|
|
79
|
+
"City": "City",
|
|
80
|
+
"State/Province": "State/Province",
|
|
81
|
+
"ZIP/Postal Code": "ZIP/Postal Code",
|
|
82
|
+
"State/Province Code": "State/Province Code",
|
|
83
|
+
"Method": "方法",
|
|
84
|
+
"Headers": "信头",
|
|
85
|
+
"Query Parameters": "查询参数",
|
|
86
|
+
"Body Type": "Body Type",
|
|
87
|
+
"Body": "正文内容",
|
|
88
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
89
|
+
"No Error on Failure": "失败时没有错误",
|
|
90
|
+
"Timeout (in seconds)": "超时(秒)",
|
|
91
|
+
"Follow redirects": "Follow redirects",
|
|
92
|
+
"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.": "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.",
|
|
93
|
+
"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.": "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.",
|
|
94
|
+
"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.": "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.",
|
|
95
|
+
"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).": "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).",
|
|
96
|
+
"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.": "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.",
|
|
97
|
+
"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.": "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.",
|
|
98
|
+
"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.": "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.",
|
|
99
|
+
"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.": "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.",
|
|
100
|
+
"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.": "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.",
|
|
101
|
+
" 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.": " 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.",
|
|
102
|
+
"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.": "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.",
|
|
103
|
+
"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.": "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.",
|
|
104
|
+
"The ID of the business profile the document belongs to. You can find this in AiPrise → **Businesses** → open the business → copy the **Profile ID**.": "The ID of the business profile the document belongs to. You can find this in AiPrise → **Businesses** → open the business → copy the **Profile ID**.",
|
|
105
|
+
"The UUID of the document file that was previously uploaded to AiPrise.": "The UUID of the document file that was previously uploaded to AiPrise.",
|
|
106
|
+
"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.": "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.",
|
|
107
|
+
"Your own identifier to associate with this request — for example an order number or internal case ID.": "Your own identifier to associate with this request — for example an order number or internal case ID.",
|
|
108
|
+
"Any additional JSON data you want to store alongside this request.": "Any additional JSON data you want to store alongside this request.",
|
|
109
|
+
"The business name. The legal name is preferred.": "The business name. The legal name is preferred.",
|
|
110
|
+
"An alternate \"doing business as\" name, if any.": "An alternate \"doing business as\" name, if any.",
|
|
111
|
+
"The tax ID for this business (e.g. EIN in the US).": "The tax ID for this business (e.g. EIN in the US).",
|
|
112
|
+
"The business website URL.": "The business website URL.",
|
|
113
|
+
"The date the business was formed, in YYYY-MM-DD format.": "The date the business was formed, in YYYY-MM-DD format.",
|
|
114
|
+
"The 2-letter ISO country code where the business is registered (e.g. US, GB).": "The 2-letter ISO country code where the business is registered (e.g. US, GB).",
|
|
115
|
+
"The state or province code where the business is registered (e.g. CA, NY).": "The state or province code where the business is registered (e.g. CA, NY).",
|
|
116
|
+
"A government-issued entity identifier for this business.": "A government-issued entity identifier for this business.",
|
|
117
|
+
"A JSON array of address objects associated with the business.": "A JSON array of address objects associated with the business.",
|
|
118
|
+
"One or more phone numbers associated with the business.": "One or more phone numbers associated with the business.",
|
|
119
|
+
"One or more email addresses associated with the business.": "One or more email addresses associated with the business.",
|
|
120
|
+
"A JSON array of supporting documents or extra data for this business.": "A JSON array of supporting documents or extra data for this business.",
|
|
121
|
+
"Your own internal identifier for this business.": "Your own internal identifier for this business.",
|
|
122
|
+
"A webhook URL that AiPrise will call with verification results.": "A webhook URL that AiPrise will call with verification results.",
|
|
123
|
+
"A webhook URL that AiPrise will call with event notifications.": "A webhook URL that AiPrise will call with event notifications.",
|
|
124
|
+
"Tag names used to categorize this business profile.": "Tag names used to categorize this business profile.",
|
|
125
|
+
"User's second surname, where applicable (e.g. in some Latin American naming conventions).": "User's second surname, where applicable (e.g. in some Latin American naming conventions).",
|
|
126
|
+
"The complete name. Use this if you do not have the name split into parts.": "The complete name. Use this if you do not have the name split into parts.",
|
|
127
|
+
"User's date of birth in YYYY-MM-DD format.": "User's date of birth in YYYY-MM-DD format.",
|
|
128
|
+
"2-letter ISO country code (e.g. US, GB).": "2-letter ISO country code (e.g. US, GB).",
|
|
129
|
+
"Your own internal identifier for this user.": "Your own internal identifier for this user.",
|
|
130
|
+
"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.",
|
|
131
|
+
"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.",
|
|
132
|
+
"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.",
|
|
133
|
+
"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.",
|
|
134
|
+
"The business name to search for. Partial matches are supported by AiPrise.": "The business name to search for. Partial matches are supported by AiPrise.",
|
|
135
|
+
"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).",
|
|
136
|
+
"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.",
|
|
137
|
+
"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",
|
|
138
|
+
"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.",
|
|
139
|
+
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
|
140
|
+
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
141
|
+
"Approved — pass the person": "Approved — pass the person",
|
|
142
|
+
"Declined — reject the person": "Declined — reject the person",
|
|
143
|
+
"Review — put in manual review": "Review — put in manual review",
|
|
144
|
+
"Deactivated — deactivate the profile": "Deactivated — deactivate the profile",
|
|
145
|
+
"GET": "获取",
|
|
146
|
+
"POST": "帖子",
|
|
147
|
+
"PATCH": "PATCH",
|
|
148
|
+
"PUT": "弹出",
|
|
149
|
+
"DELETE": "删除",
|
|
150
|
+
"HEAD": "黑色",
|
|
151
|
+
"None": "无",
|
|
152
|
+
"JSON": "JSON",
|
|
153
|
+
"Form Data": "表单数据",
|
|
154
|
+
"Raw": "原始文件"
|
|
155
|
+
}
|
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":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,yBAA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AAC;YAChD,IAAI,kBAAkB;gBAAE,IAAI,CAAC,oBAAoB,CAAC,GAAG,kBAAkB,CAAC;YACxE,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC;gBAAE,IAAI,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;YACrE,IAAI,aAAa,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,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,iCAAiC;gBACvC,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -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":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EACT,oJAAoJ;IACtJ,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACnC,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,2FAA2F;YACxG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,2EAA2E;YACxF,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,aAAa,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAChC,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,aAAa,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GAAG,aAAa,CAAC;YAC5D,IAAI,gBAAgB;gBAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAC;YACrE,IAAI,eAAe;gBAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,eAAe,CAAC;YAClE,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,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,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,6BAA6B;gBACnC,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -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
|
});
|