@keystrokehq/fraudlabs_pro 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-account.cjs +14 -14
- package/dist/actions/create-account.cjs.map +1 -1
- package/dist/actions/create-account.d.cts +15 -31
- package/dist/actions/create-account.d.mts +15 -31
- package/dist/actions/create-account.mjs +14 -14
- package/dist/actions/create-account.mjs.map +1 -1
- package/dist/actions/flp-feedback-order.cjs +1 -1
- package/dist/actions/flp-feedback-order.cjs.map +1 -1
- package/dist/actions/flp-feedback-order.d.cts +2 -4
- package/dist/actions/flp-feedback-order.d.mts +2 -4
- package/dist/actions/flp-feedback-order.mjs +1 -1
- package/dist/actions/flp-feedback-order.mjs.map +1 -1
- package/dist/actions/flp-screen-order.cjs +57 -57
- package/dist/actions/flp-screen-order.cjs.map +1 -1
- package/dist/actions/flp-screen-order.d.cts +58 -131
- package/dist/actions/flp-screen-order.d.mts +58 -131
- package/dist/actions/flp-screen-order.mjs +57 -57
- package/dist/actions/flp-screen-order.mjs.map +1 -1
- package/dist/actions/get-order-result2.cjs +71 -71
- package/dist/actions/get-order-result2.cjs.map +1 -1
- package/dist/actions/get-order-result2.d.cts +72 -143
- package/dist/actions/get-order-result2.d.mts +72 -143
- package/dist/actions/get-order-result2.mjs +71 -71
- package/dist/actions/get-order-result2.mjs.map +1 -1
- package/dist/actions/get-sms-verification-result.cjs +1 -1
- package/dist/actions/get-sms-verification-result.cjs.map +1 -1
- package/dist/actions/get-sms-verification-result.d.cts +2 -4
- package/dist/actions/get-sms-verification-result.d.mts +2 -4
- package/dist/actions/get-sms-verification-result.mjs +1 -1
- package/dist/actions/get-sms-verification-result.mjs.map +1 -1
- package/dist/actions/send-sms-verification.cjs +1 -1
- package/dist/actions/send-sms-verification.cjs.map +1 -1
- package/dist/actions/send-sms-verification.d.cts +2 -5
- package/dist/actions/send-sms-verification.d.mts +2 -5
- package/dist/actions/send-sms-verification.mjs +1 -1
- package/dist/actions/send-sms-verification.mjs.map +1 -1
- package/dist/actions/subscribe-plan.cjs +5 -5
- package/dist/actions/subscribe-plan.cjs.map +1 -1
- package/dist/actions/subscribe-plan.d.cts +6 -13
- package/dist/actions/subscribe-plan.d.mts +6 -13
- package/dist/actions/subscribe-plan.mjs +5 -5
- package/dist/actions/subscribe-plan.mjs.map +1 -1
- package/dist/actions/webhook-order-status-changed.cjs +3 -3
- package/dist/actions/webhook-order-status-changed.cjs.map +1 -1
- package/dist/actions/webhook-order-status-changed.d.cts +5 -9
- package/dist/actions/webhook-order-status-changed.d.cts.map +1 -1
- package/dist/actions/webhook-order-status-changed.d.mts +5 -9
- package/dist/actions/webhook-order-status-changed.d.mts.map +1 -1
- package/dist/actions/webhook-order-status-changed.mjs +3 -3
- package/dist/actions/webhook-order-status-changed.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,90 +8,90 @@ const FraudlabsProGetOrderResult2Input = z.object({
|
|
|
8
8
|
id_type: z.enum(["FraudLabsPro::ID", "FraudLabsPro::UserOrderID"]).describe("Type of ID provided in the 'id' parameter. Use FraudLabsPro::ID for FraudLabs Pro transaction IDs or FraudLabsPro::UserOrderID for your order IDs.").optional()
|
|
9
9
|
});
|
|
10
10
|
const FraudlabsProGetOrderResult2_DeviceSchema = z.object({
|
|
11
|
-
is_in_blacklist: z.
|
|
12
|
-
is_malware_exploit: z.
|
|
13
|
-
});
|
|
11
|
+
is_in_blacklist: z.boolean().describe("Device is in blacklist").nullable().optional(),
|
|
12
|
+
is_malware_exploit: z.boolean().describe("Device has malware/exploit risk").nullable().optional()
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const FraudlabsProGetOrderResult2_UsernameSchema = z.object({
|
|
15
|
-
is_high_risk: z.
|
|
16
|
-
is_in_blacklist: z.
|
|
17
|
-
});
|
|
15
|
+
is_high_risk: z.boolean().describe("Username is flagged as high risk").nullable().optional(),
|
|
16
|
+
is_in_blacklist: z.boolean().describe("Username is in blacklist").nullable().optional()
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const FraudlabsProGetOrderResult2_CreditCardSchema = z.object({
|
|
19
|
-
card_type: z.
|
|
20
|
-
card_brand: z.
|
|
21
|
-
is_prepaid: z.
|
|
22
|
-
is_bin_exist: z.
|
|
23
|
-
is_in_blacklist: z.
|
|
24
|
-
card_issuing_bank: z.
|
|
25
|
-
card_issuing_country: z.
|
|
26
|
-
is_bin_country_match: z.
|
|
27
|
-
});
|
|
19
|
+
card_type: z.string().describe("Credit card type").nullable().optional(),
|
|
20
|
+
card_brand: z.string().describe("Credit card brand").nullable().optional(),
|
|
21
|
+
is_prepaid: z.boolean().describe("Whether the card is prepaid").nullable().optional(),
|
|
22
|
+
is_bin_exist: z.boolean().describe("Whether the BIN exists").nullable().optional(),
|
|
23
|
+
is_in_blacklist: z.boolean().describe("Credit card is in blacklist").nullable().optional(),
|
|
24
|
+
card_issuing_bank: z.string().describe("Issuing bank of the card").nullable().optional(),
|
|
25
|
+
card_issuing_country: z.string().describe("ISO-3166 alpha-2 code of issuing country").nullable().optional(),
|
|
26
|
+
is_bin_country_match: z.boolean().describe("BIN country matches card country").nullable().optional()
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const FraudlabsProGetOrderResult2_PhoneNumberSchema = z.object({
|
|
29
|
-
is_disposable: z.
|
|
30
|
-
is_in_blacklist: z.
|
|
31
|
-
});
|
|
29
|
+
is_disposable: z.boolean().describe("Disposable phone number").nullable().optional(),
|
|
30
|
+
is_in_blacklist: z.boolean().describe("Phone number is in blacklist").nullable().optional()
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const FraudlabsProGetOrderResult2_EmailAddressSchema = z.object({
|
|
33
|
-
is_free: z.
|
|
34
|
-
is_disposable: z.
|
|
35
|
-
is_in_blacklist: z.
|
|
36
|
-
is_domain_exists: z.
|
|
37
|
-
is_new_domain_name: z.
|
|
38
|
-
});
|
|
33
|
+
is_free: z.boolean().describe("Free email provider").nullable().optional(),
|
|
34
|
+
is_disposable: z.boolean().describe("Disposable email provider").nullable().optional(),
|
|
35
|
+
is_in_blacklist: z.boolean().describe("Email domain is in blacklist").nullable().optional(),
|
|
36
|
+
is_domain_exists: z.boolean().describe("Email domain exists").nullable().optional(),
|
|
37
|
+
is_new_domain_name: z.boolean().describe("Newly registered domain").nullable().optional()
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const FraudlabsProGetOrderResult2_IPGeolocationSchema = z.object({
|
|
40
|
-
ip: z.
|
|
41
|
-
city: z.
|
|
42
|
-
domain: z.
|
|
43
|
-
region: z.
|
|
44
|
-
is_proxy: z.
|
|
45
|
-
isp_name: z.
|
|
46
|
-
latitude: z.
|
|
47
|
-
netspeed: z.
|
|
48
|
-
timezone: z.
|
|
49
|
-
zip_code: z.
|
|
50
|
-
continent: z.
|
|
51
|
-
elevation: z.
|
|
52
|
-
longitude: z.
|
|
53
|
-
mobile_mcc: z.
|
|
54
|
-
mobile_mnc: z.
|
|
55
|
-
usage_type: z.
|
|
56
|
-
country_code: z.
|
|
57
|
-
country_name: z.
|
|
58
|
-
mobile_brand: z.
|
|
59
|
-
is_in_blacklist: z.
|
|
60
|
-
});
|
|
40
|
+
ip: z.string().describe("Transaction IP address").nullable().optional(),
|
|
41
|
+
city: z.string().describe("City").nullable().optional(),
|
|
42
|
+
domain: z.string().describe("Domain").nullable().optional(),
|
|
43
|
+
region: z.string().describe("Region").nullable().optional(),
|
|
44
|
+
is_proxy: z.boolean().describe("Whether the IP is a proxy").nullable().optional(),
|
|
45
|
+
isp_name: z.string().describe("ISP name").nullable().optional(),
|
|
46
|
+
latitude: z.number().describe("Latitude").nullable().optional(),
|
|
47
|
+
netspeed: z.string().describe("Network speed").nullable().optional(),
|
|
48
|
+
timezone: z.string().describe("Timezone").nullable().optional(),
|
|
49
|
+
zip_code: z.string().describe("ZIP/postal code").nullable().optional(),
|
|
50
|
+
continent: z.string().describe("Estimated continent").nullable().optional(),
|
|
51
|
+
elevation: z.number().int().describe("Elevation").nullable().optional(),
|
|
52
|
+
longitude: z.number().describe("Longitude").nullable().optional(),
|
|
53
|
+
mobile_mcc: z.string().describe("Mobile country code").nullable().optional(),
|
|
54
|
+
mobile_mnc: z.string().describe("Mobile network code").nullable().optional(),
|
|
55
|
+
usage_type: z.array(z.string()).describe("Usage type").nullable().optional(),
|
|
56
|
+
country_code: z.string().describe("ISO-3166 alpha-2 country code").nullable().optional(),
|
|
57
|
+
country_name: z.string().describe("Country name").nullable().optional(),
|
|
58
|
+
mobile_brand: z.string().describe("Mobile brand").nullable().optional(),
|
|
59
|
+
is_in_blacklist: z.boolean().describe("Whether the IP is in blacklist").nullable().optional()
|
|
60
|
+
}).passthrough();
|
|
61
61
|
const FraudlabsProGetOrderResult2_BillingAddressSchema = z.object({
|
|
62
|
-
distance_in_km: z.
|
|
63
|
-
distance_in_mile: z.
|
|
64
|
-
is_ip_country_match: z.
|
|
65
|
-
});
|
|
62
|
+
distance_in_km: z.number().int().describe("IP-to-billing distance in kilometers").nullable().optional(),
|
|
63
|
+
distance_in_mile: z.number().int().describe("IP-to-billing distance in miles").nullable().optional(),
|
|
64
|
+
is_ip_country_match: z.boolean().describe("IP country matches billing country").nullable().optional()
|
|
65
|
+
}).passthrough();
|
|
66
66
|
const FraudlabsProGetOrderResult2_ShippingAddressSchema = z.object({
|
|
67
|
-
is_in_blacklist: z.
|
|
68
|
-
is_bill_city_match: z.
|
|
69
|
-
is_bill_state_match: z.
|
|
70
|
-
is_bill_country_match: z.
|
|
71
|
-
is_bill_postcode_match: z.
|
|
72
|
-
is_address_ship_forward: z.
|
|
73
|
-
is_export_controlled_country: z.
|
|
74
|
-
});
|
|
67
|
+
is_in_blacklist: z.boolean().describe("Shipping address is in blacklist").nullable().optional(),
|
|
68
|
+
is_bill_city_match: z.boolean().describe("Billing city matches shipping city").nullable().optional(),
|
|
69
|
+
is_bill_state_match: z.boolean().describe("Billing state matches shipping state").nullable().optional(),
|
|
70
|
+
is_bill_country_match: z.boolean().describe("Billing country matches shipping country").nullable().optional(),
|
|
71
|
+
is_bill_postcode_match: z.boolean().describe("Billing postcode matches shipping postcode").nullable().optional(),
|
|
72
|
+
is_address_ship_forward: z.boolean().describe("Known mail drop/forwarding address").nullable().optional(),
|
|
73
|
+
is_export_controlled_country: z.boolean().describe("Order shipping to embargoed country").nullable().optional()
|
|
74
|
+
}).passthrough();
|
|
75
75
|
const fraudlabsProGetOrderResult2 = action("FRAUDLABS_PRO_GET_ORDER_RESULT2", {
|
|
76
76
|
slug: "fraudlabs_pro-get-order-result2",
|
|
77
77
|
name: "Get FraudLabs Pro Order Result (v2)",
|
|
78
78
|
description: "Tool to retrieve an existing transaction from FraudLabs Pro fraud detection system using the v2 API. This API is only available for paid plans.",
|
|
79
79
|
input: FraudlabsProGetOrderResult2Input,
|
|
80
80
|
output: z.object({
|
|
81
|
-
device:
|
|
82
|
-
username:
|
|
83
|
-
credit_card:
|
|
84
|
-
phone_number:
|
|
85
|
-
email_address:
|
|
86
|
-
user_order_id: z.
|
|
87
|
-
ip_geolocation:
|
|
88
|
-
billing_address:
|
|
89
|
-
fraudlabspro_id: z.
|
|
90
|
-
shipping_address:
|
|
91
|
-
fraudlabspro_rules: z.
|
|
92
|
-
fraudlabspro_score: z.
|
|
93
|
-
fraudlabspro_status: z.
|
|
94
|
-
}).describe("Retrieve the fraud analysis result for a screened order from FraudLabs Pro v2 API.")
|
|
81
|
+
device: FraudlabsProGetOrderResult2_DeviceSchema.nullable().optional(),
|
|
82
|
+
username: FraudlabsProGetOrderResult2_UsernameSchema.nullable().optional(),
|
|
83
|
+
credit_card: FraudlabsProGetOrderResult2_CreditCardSchema.nullable().optional(),
|
|
84
|
+
phone_number: FraudlabsProGetOrderResult2_PhoneNumberSchema.nullable().optional(),
|
|
85
|
+
email_address: FraudlabsProGetOrderResult2_EmailAddressSchema.nullable().optional(),
|
|
86
|
+
user_order_id: z.string().describe("Your order identifier").nullable().optional(),
|
|
87
|
+
ip_geolocation: FraudlabsProGetOrderResult2_IPGeolocationSchema.nullable().optional(),
|
|
88
|
+
billing_address: FraudlabsProGetOrderResult2_BillingAddressSchema.nullable().optional(),
|
|
89
|
+
fraudlabspro_id: z.string().describe("FraudLabs Pro transaction ID").nullable().optional(),
|
|
90
|
+
shipping_address: FraudlabsProGetOrderResult2_ShippingAddressSchema.nullable().optional(),
|
|
91
|
+
fraudlabspro_rules: z.array(z.string()).describe("List of rules triggered in screening").nullable().optional(),
|
|
92
|
+
fraudlabspro_score: z.number().int().describe("Risk score (1-100; higher is riskier)").nullable().optional(),
|
|
93
|
+
fraudlabspro_status: z.string().describe("Final action; APPROVE, REJECT, or REVIEW").nullable().optional()
|
|
94
|
+
}).passthrough().describe("Retrieve the fraud analysis result for a screened order from FraudLabs Pro v2 API.")
|
|
95
95
|
});
|
|
96
96
|
//#endregion
|
|
97
97
|
export { fraudlabsProGetOrderResult2 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-order-result2.mjs","names":[],"sources":["../../src/actions/get-order-result2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProGetOrderResult2Input = z.object({\n id: z.string().describe(\"FraudLabs Pro transaction ID (fraudlabspro_id) or your platform's order ID (user_order_id). Required unless retrieving without specific ID.\").optional(),\n key: z.string().describe(\"FraudLabs Pro API key. If not provided, will use key from authentication metadata.\").optional(),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format; json (default) or xml\").optional(),\n id_type: z.enum([\"FraudLabsPro::ID\", \"FraudLabsPro::UserOrderID\"]).describe(\"Type of ID provided in the 'id' parameter. Use FraudLabsPro::ID for FraudLabs Pro transaction IDs or FraudLabsPro::UserOrderID for your order IDs.\").optional(),\n});\nconst FraudlabsProGetOrderResult2_DeviceSchema = z.object({\n is_in_blacklist: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Device is in blacklist\").optional()),\n is_malware_exploit: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Device has malware/exploit risk\").optional()),\n});\nconst FraudlabsProGetOrderResult2_UsernameSchema = z.object({\n is_high_risk: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Username is flagged as high risk\").optional()),\n is_in_blacklist: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Username is in blacklist\").optional()),\n});\nconst FraudlabsProGetOrderResult2_CreditCardSchema = z.object({\n card_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Credit card type\").optional()),\n card_brand: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Credit card brand\").optional()),\n is_prepaid: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the card is prepaid\").optional()),\n is_bin_exist: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the BIN exists\").optional()),\n is_in_blacklist: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Credit card is in blacklist\").optional()),\n card_issuing_bank: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Issuing bank of the card\").optional()),\n card_issuing_country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO-3166 alpha-2 code of issuing country\").optional()),\n is_bin_country_match: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"BIN country matches card country\").optional()),\n});\nconst FraudlabsProGetOrderResult2_PhoneNumberSchema = z.object({\n is_disposable: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Disposable phone number\").optional()),\n is_in_blacklist: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Phone number is in blacklist\").optional()),\n});\nconst FraudlabsProGetOrderResult2_EmailAddressSchema = z.object({\n is_free: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Free email provider\").optional()),\n is_disposable: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Disposable email provider\").optional()),\n is_in_blacklist: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Email domain is in blacklist\").optional()),\n is_domain_exists: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Email domain exists\").optional()),\n is_new_domain_name: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Newly registered domain\").optional()),\n});\nconst FraudlabsProGetOrderResult2_IPGeolocationSchema = z.object({\n ip: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Transaction IP address\").optional()),\n city: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"City\").optional()),\n domain: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Domain\").optional()),\n region: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Region\").optional()),\n is_proxy: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the IP is a proxy\").optional()),\n isp_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISP name\").optional()),\n latitude: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Latitude\").optional()),\n netspeed: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Network speed\").optional()),\n timezone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timezone\").optional()),\n zip_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ZIP/postal code\").optional()),\n continent: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Estimated continent\").optional()),\n elevation: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Elevation\").optional()),\n longitude: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Longitude\").optional()),\n mobile_mcc: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Mobile country code\").optional()),\n mobile_mnc: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Mobile network code\").optional()),\n usage_type: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Usage type\").optional()),\n country_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO-3166 alpha-2 country code\").optional()),\n country_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country name\").optional()),\n mobile_brand: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Mobile brand\").optional()),\n is_in_blacklist: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the IP is in blacklist\").optional()),\n});\nconst FraudlabsProGetOrderResult2_BillingAddressSchema = z.object({\n distance_in_km: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"IP-to-billing distance in kilometers\").optional()),\n distance_in_mile: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"IP-to-billing distance in miles\").optional()),\n is_ip_country_match: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"IP country matches billing country\").optional()),\n});\nconst FraudlabsProGetOrderResult2_ShippingAddressSchema = z.object({\n is_in_blacklist: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Shipping address is in blacklist\").optional()),\n is_bill_city_match: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Billing city matches shipping city\").optional()),\n is_bill_state_match: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Billing state matches shipping state\").optional()),\n is_bill_country_match: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Billing country matches shipping country\").optional()),\n is_bill_postcode_match: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Billing postcode matches shipping postcode\").optional()),\n is_address_ship_forward: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Known mail drop/forwarding address\").optional()),\n is_export_controlled_country: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Order shipping to embargoed country\").optional()),\n});\nexport const FraudlabsProGetOrderResult2Output = z.object({\n device: z.preprocess((value) => (value === null ? undefined : value), FraudlabsProGetOrderResult2_DeviceSchema.optional()),\n username: z.preprocess((value) => (value === null ? undefined : value), FraudlabsProGetOrderResult2_UsernameSchema.optional()),\n credit_card: z.preprocess((value) => (value === null ? undefined : value), FraudlabsProGetOrderResult2_CreditCardSchema.optional()),\n phone_number: z.preprocess((value) => (value === null ? undefined : value), FraudlabsProGetOrderResult2_PhoneNumberSchema.optional()),\n email_address: z.preprocess((value) => (value === null ? undefined : value), FraudlabsProGetOrderResult2_EmailAddressSchema.optional()),\n user_order_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Your order identifier\").optional()),\n ip_geolocation: z.preprocess((value) => (value === null ? undefined : value), FraudlabsProGetOrderResult2_IPGeolocationSchema.optional()),\n billing_address: z.preprocess((value) => (value === null ? undefined : value), FraudlabsProGetOrderResult2_BillingAddressSchema.optional()),\n fraudlabspro_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"FraudLabs Pro transaction ID\").optional()),\n shipping_address: z.preprocess((value) => (value === null ? undefined : value), FraudlabsProGetOrderResult2_ShippingAddressSchema.optional()),\n fraudlabspro_rules: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"List of rules triggered in screening\").optional()),\n fraudlabspro_score: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Risk score (1-100; higher is riskier)\").optional()),\n fraudlabspro_status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Final action; APPROVE, REJECT, or REVIEW\").optional()),\n}).describe(\"Retrieve the fraud analysis result for a screened order from FraudLabs Pro v2 API.\");\n\nexport const fraudlabsProGetOrderResult2 = action(\"FRAUDLABS_PRO_GET_ORDER_RESULT2\", {\n slug: \"fraudlabs_pro-get-order-result2\",\n name: \"Get FraudLabs Pro Order Result (v2)\",\n description: \"Tool to retrieve an existing transaction from FraudLabs Pro fraud detection system using the v2 API. This API is only available for paid plans.\",\n input: FraudlabsProGetOrderResult2Input,\n output: FraudlabsProGetOrderResult2Output,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CAChL,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,C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S,8BAA8B,CAAC,CAAC,SAAS,CAAC;EAC7I,kBAAkB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,kDAAkD,SAAS,CAAC;EAC5I,oBAAoB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;EACjK,oBAAoB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;EAC/J,qBAAqB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC;CAC/J,CAAC,CAAC,CAAC,SAAS,oFAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-order-result2.mjs","names":[],"sources":["../../src/actions/get-order-result2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProGetOrderResult2Input = z.object({\n id: z.string().describe(\"FraudLabs Pro transaction ID (fraudlabspro_id) or your platform's order ID (user_order_id). Required unless retrieving without specific ID.\").optional(),\n key: z.string().describe(\"FraudLabs Pro API key. If not provided, will use key from authentication metadata.\").optional(),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format; json (default) or xml\").optional(),\n id_type: z.enum([\"FraudLabsPro::ID\", \"FraudLabsPro::UserOrderID\"]).describe(\"Type of ID provided in the 'id' parameter. Use FraudLabsPro::ID for FraudLabs Pro transaction IDs or FraudLabsPro::UserOrderID for your order IDs.\").optional(),\n});\nconst FraudlabsProGetOrderResult2_DeviceSchema = z.object({\n is_in_blacklist: z.boolean().describe(\"Device is in blacklist\").nullable().optional(),\n is_malware_exploit: z.boolean().describe(\"Device has malware/exploit risk\").nullable().optional(),\n}).passthrough();\nconst FraudlabsProGetOrderResult2_UsernameSchema = z.object({\n is_high_risk: z.boolean().describe(\"Username is flagged as high risk\").nullable().optional(),\n is_in_blacklist: z.boolean().describe(\"Username is in blacklist\").nullable().optional(),\n}).passthrough();\nconst FraudlabsProGetOrderResult2_CreditCardSchema = z.object({\n card_type: z.string().describe(\"Credit card type\").nullable().optional(),\n card_brand: z.string().describe(\"Credit card brand\").nullable().optional(),\n is_prepaid: z.boolean().describe(\"Whether the card is prepaid\").nullable().optional(),\n is_bin_exist: z.boolean().describe(\"Whether the BIN exists\").nullable().optional(),\n is_in_blacklist: z.boolean().describe(\"Credit card is in blacklist\").nullable().optional(),\n card_issuing_bank: z.string().describe(\"Issuing bank of the card\").nullable().optional(),\n card_issuing_country: z.string().describe(\"ISO-3166 alpha-2 code of issuing country\").nullable().optional(),\n is_bin_country_match: z.boolean().describe(\"BIN country matches card country\").nullable().optional(),\n}).passthrough();\nconst FraudlabsProGetOrderResult2_PhoneNumberSchema = z.object({\n is_disposable: z.boolean().describe(\"Disposable phone number\").nullable().optional(),\n is_in_blacklist: z.boolean().describe(\"Phone number is in blacklist\").nullable().optional(),\n}).passthrough();\nconst FraudlabsProGetOrderResult2_EmailAddressSchema = z.object({\n is_free: z.boolean().describe(\"Free email provider\").nullable().optional(),\n is_disposable: z.boolean().describe(\"Disposable email provider\").nullable().optional(),\n is_in_blacklist: z.boolean().describe(\"Email domain is in blacklist\").nullable().optional(),\n is_domain_exists: z.boolean().describe(\"Email domain exists\").nullable().optional(),\n is_new_domain_name: z.boolean().describe(\"Newly registered domain\").nullable().optional(),\n}).passthrough();\nconst FraudlabsProGetOrderResult2_IPGeolocationSchema = z.object({\n ip: z.string().describe(\"Transaction IP address\").nullable().optional(),\n city: z.string().describe(\"City\").nullable().optional(),\n domain: z.string().describe(\"Domain\").nullable().optional(),\n region: z.string().describe(\"Region\").nullable().optional(),\n is_proxy: z.boolean().describe(\"Whether the IP is a proxy\").nullable().optional(),\n isp_name: z.string().describe(\"ISP name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude\").nullable().optional(),\n netspeed: z.string().describe(\"Network speed\").nullable().optional(),\n timezone: z.string().describe(\"Timezone\").nullable().optional(),\n zip_code: z.string().describe(\"ZIP/postal code\").nullable().optional(),\n continent: z.string().describe(\"Estimated continent\").nullable().optional(),\n elevation: z.number().int().describe(\"Elevation\").nullable().optional(),\n longitude: z.number().describe(\"Longitude\").nullable().optional(),\n mobile_mcc: z.string().describe(\"Mobile country code\").nullable().optional(),\n mobile_mnc: z.string().describe(\"Mobile network code\").nullable().optional(),\n usage_type: z.array(z.string()).describe(\"Usage type\").nullable().optional(),\n country_code: z.string().describe(\"ISO-3166 alpha-2 country code\").nullable().optional(),\n country_name: z.string().describe(\"Country name\").nullable().optional(),\n mobile_brand: z.string().describe(\"Mobile brand\").nullable().optional(),\n is_in_blacklist: z.boolean().describe(\"Whether the IP is in blacklist\").nullable().optional(),\n}).passthrough();\nconst FraudlabsProGetOrderResult2_BillingAddressSchema = z.object({\n distance_in_km: z.number().int().describe(\"IP-to-billing distance in kilometers\").nullable().optional(),\n distance_in_mile: z.number().int().describe(\"IP-to-billing distance in miles\").nullable().optional(),\n is_ip_country_match: z.boolean().describe(\"IP country matches billing country\").nullable().optional(),\n}).passthrough();\nconst FraudlabsProGetOrderResult2_ShippingAddressSchema = z.object({\n is_in_blacklist: z.boolean().describe(\"Shipping address is in blacklist\").nullable().optional(),\n is_bill_city_match: z.boolean().describe(\"Billing city matches shipping city\").nullable().optional(),\n is_bill_state_match: z.boolean().describe(\"Billing state matches shipping state\").nullable().optional(),\n is_bill_country_match: z.boolean().describe(\"Billing country matches shipping country\").nullable().optional(),\n is_bill_postcode_match: z.boolean().describe(\"Billing postcode matches shipping postcode\").nullable().optional(),\n is_address_ship_forward: z.boolean().describe(\"Known mail drop/forwarding address\").nullable().optional(),\n is_export_controlled_country: z.boolean().describe(\"Order shipping to embargoed country\").nullable().optional(),\n}).passthrough();\nexport const FraudlabsProGetOrderResult2Output = z.object({\n device: FraudlabsProGetOrderResult2_DeviceSchema.nullable().optional(),\n username: FraudlabsProGetOrderResult2_UsernameSchema.nullable().optional(),\n credit_card: FraudlabsProGetOrderResult2_CreditCardSchema.nullable().optional(),\n phone_number: FraudlabsProGetOrderResult2_PhoneNumberSchema.nullable().optional(),\n email_address: FraudlabsProGetOrderResult2_EmailAddressSchema.nullable().optional(),\n user_order_id: z.string().describe(\"Your order identifier\").nullable().optional(),\n ip_geolocation: FraudlabsProGetOrderResult2_IPGeolocationSchema.nullable().optional(),\n billing_address: FraudlabsProGetOrderResult2_BillingAddressSchema.nullable().optional(),\n fraudlabspro_id: z.string().describe(\"FraudLabs Pro transaction ID\").nullable().optional(),\n shipping_address: FraudlabsProGetOrderResult2_ShippingAddressSchema.nullable().optional(),\n fraudlabspro_rules: z.array(z.string()).describe(\"List of rules triggered in screening\").nullable().optional(),\n fraudlabspro_score: z.number().int().describe(\"Risk score (1-100; higher is riskier)\").nullable().optional(),\n fraudlabspro_status: z.string().describe(\"Final action; APPROVE, REJECT, or REVIEW\").nullable().optional(),\n}).passthrough().describe(\"Retrieve the fraud analysis result for a screened order from FraudLabs Pro v2 API.\");\n\nexport const fraudlabsProGetOrderResult2 = action(\"FRAUDLABS_PRO_GET_ORDER_RESULT2\", {\n slug: \"fraudlabs_pro-get-order-result2\",\n name: \"Get FraudLabs Pro Order Result (v2)\",\n description: \"Tool to retrieve an existing transaction from FraudLabs Pro fraud detection system using the v2 API. This API is only available for paid plans.\",\n input: FraudlabsProGetOrderResult2Input,\n output: FraudlabsProGetOrderResult2Output,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CAChL,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACxH,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,M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z.enum(["json", "xml"]).default("json").describe("Response format, 'json' (default) or 'xml'").optional(),
|
|
8
8
|
tran_id: zod.z.string().describe("Unique transaction ID returned by the Send SMS Verification API")
|
|
9
9
|
}).describe("Request model for retrieving SMS verification result.");
|
|
10
|
-
const FraudlabsProGetSmsVerificationResultOutput = zod.z.object({ result: zod.z.enum(["Y", "N"]).describe("Y if the provided OTP is valid; N if invalid or expired.").nullable() }).describe("Response model for SMS verification result.");
|
|
10
|
+
const FraudlabsProGetSmsVerificationResultOutput = zod.z.object({ result: zod.z.enum(["Y", "N"]).describe("Y if the provided OTP is valid; N if invalid or expired.").nullable() }).passthrough().describe("Response model for SMS verification result.");
|
|
11
11
|
const fraudlabsProGetSmsVerificationResult = require_action.action("FRAUDLABS_PRO_GET_SMS_VERIFICATION_RESULT", {
|
|
12
12
|
slug: "fraudlabs_pro-get-sms-verification-result",
|
|
13
13
|
name: "Get SMS Verification Result",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sms-verification-result.cjs","names":["z","action"],"sources":["../../src/actions/get-sms-verification-result.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProGetSmsVerificationResultInput = z.object({\n key: z.string().describe(\"FraudLabs Pro API key\"),\n otp: z.string().describe(\"The one-time password (OTP) code received by the user via SMS that needs to be verified\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format, 'json' (default) or 'xml'\").optional(),\n tran_id: z.string().describe(\"Unique transaction ID returned by the Send SMS Verification API\"),\n}).describe(\"Request model for retrieving SMS verification result.\");\nexport const FraudlabsProGetSmsVerificationResultOutput = z.object({\n result: z.enum([\"Y\", \"N\"]).describe(\"Y if the provided OTP is valid; N if invalid or expired.\").nullable(),\n}).describe(\"Response model for SMS verification result.\");\n\nexport const fraudlabsProGetSmsVerificationResult = action(\"FRAUDLABS_PRO_GET_SMS_VERIFICATION_RESULT\", {\n slug: \"fraudlabs_pro-get-sms-verification-result\",\n name: \"Get SMS Verification Result\",\n description: \"Verify an OTP (one-time password) received via SMS. Returns 'Y' if the OTP is valid, 'N' if invalid or expired. Must be called after using Send SMS Verification to obtain a transaction ID.\",\n input: FraudlabsProGetSmsVerificationResultInput,\n output: FraudlabsProGetSmsVerificationResultOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAClH,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AAChG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,QAAQA,IAAAA,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"get-sms-verification-result.cjs","names":["z","action"],"sources":["../../src/actions/get-sms-verification-result.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProGetSmsVerificationResultInput = z.object({\n key: z.string().describe(\"FraudLabs Pro API key\"),\n otp: z.string().describe(\"The one-time password (OTP) code received by the user via SMS that needs to be verified\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format, 'json' (default) or 'xml'\").optional(),\n tran_id: z.string().describe(\"Unique transaction ID returned by the Send SMS Verification API\"),\n}).describe(\"Request model for retrieving SMS verification result.\");\nexport const FraudlabsProGetSmsVerificationResultOutput = z.object({\n result: z.enum([\"Y\", \"N\"]).describe(\"Y if the provided OTP is valid; N if invalid or expired.\").nullable(),\n}).passthrough().describe(\"Response model for SMS verification result.\");\n\nexport const fraudlabsProGetSmsVerificationResult = action(\"FRAUDLABS_PRO_GET_SMS_VERIFICATION_RESULT\", {\n slug: \"fraudlabs_pro-get-sms-verification-result\",\n name: \"Get SMS Verification Result\",\n description: \"Verify an OTP (one-time password) received via SMS. Returns 'Y' if the OTP is valid, 'N' if invalid or expired. Must be called after using Send SMS Verification to obtain a transaction ID.\",\n input: FraudlabsProGetSmsVerificationResultInput,\n output: FraudlabsProGetSmsVerificationResultOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAClH,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AAChG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,QAAQA,IAAAA,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,uCAAuCC,eAAAA,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,15 +15,13 @@ declare const FraudlabsProGetSmsVerificationResultOutput: z.ZodObject<{
|
|
|
15
15
|
Y: "Y";
|
|
16
16
|
N: "N";
|
|
17
17
|
}>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const fraudlabsProGetSmsVerificationResult: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
key: string;
|
|
21
21
|
otp: string;
|
|
22
22
|
tran_id: string;
|
|
23
23
|
format?: "json" | "xml" | undefined;
|
|
24
|
-
},
|
|
25
|
-
result: "Y" | "N" | null;
|
|
26
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
25
|
//#endregion
|
|
28
26
|
export { fraudlabsProGetSmsVerificationResult };
|
|
29
27
|
//# sourceMappingURL=get-sms-verification-result.d.cts.map
|
|
@@ -15,15 +15,13 @@ declare const FraudlabsProGetSmsVerificationResultOutput: z.ZodObject<{
|
|
|
15
15
|
Y: "Y";
|
|
16
16
|
N: "N";
|
|
17
17
|
}>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const fraudlabsProGetSmsVerificationResult: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
key: string;
|
|
21
21
|
otp: string;
|
|
22
22
|
tran_id: string;
|
|
23
23
|
format?: "json" | "xml" | undefined;
|
|
24
|
-
},
|
|
25
|
-
result: "Y" | "N" | null;
|
|
26
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
25
|
//#endregion
|
|
28
26
|
export { fraudlabsProGetSmsVerificationResult };
|
|
29
27
|
//# sourceMappingURL=get-sms-verification-result.d.mts.map
|
|
@@ -10,7 +10,7 @@ const fraudlabsProGetSmsVerificationResult = action("FRAUDLABS_PRO_GET_SMS_VERIF
|
|
|
10
10
|
format: z.enum(["json", "xml"]).default("json").describe("Response format, 'json' (default) or 'xml'").optional(),
|
|
11
11
|
tran_id: z.string().describe("Unique transaction ID returned by the Send SMS Verification API")
|
|
12
12
|
}).describe("Request model for retrieving SMS verification result."),
|
|
13
|
-
output: z.object({ result: z.enum(["Y", "N"]).describe("Y if the provided OTP is valid; N if invalid or expired.").nullable() }).describe("Response model for SMS verification result.")
|
|
13
|
+
output: z.object({ result: z.enum(["Y", "N"]).describe("Y if the provided OTP is valid; N if invalid or expired.").nullable() }).passthrough().describe("Response model for SMS verification result.")
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { fraudlabsProGetSmsVerificationResult };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sms-verification-result.mjs","names":[],"sources":["../../src/actions/get-sms-verification-result.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProGetSmsVerificationResultInput = z.object({\n key: z.string().describe(\"FraudLabs Pro API key\"),\n otp: z.string().describe(\"The one-time password (OTP) code received by the user via SMS that needs to be verified\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format, 'json' (default) or 'xml'\").optional(),\n tran_id: z.string().describe(\"Unique transaction ID returned by the Send SMS Verification API\"),\n}).describe(\"Request model for retrieving SMS verification result.\");\nexport const FraudlabsProGetSmsVerificationResultOutput = z.object({\n result: z.enum([\"Y\", \"N\"]).describe(\"Y if the provided OTP is valid; N if invalid or expired.\").nullable(),\n}).describe(\"Response model for SMS verification result.\");\n\nexport const fraudlabsProGetSmsVerificationResult = action(\"FRAUDLABS_PRO_GET_SMS_VERIFICATION_RESULT\", {\n slug: \"fraudlabs_pro-get-sms-verification-result\",\n name: \"Get SMS Verification Result\",\n description: \"Verify an OTP (one-time password) received via SMS. Returns 'Y' if the OTP is valid, 'N' if invalid or expired. Must be called after using Send SMS Verification to obtain a transaction ID.\",\n input: FraudlabsProGetSmsVerificationResultInput,\n output: FraudlabsProGetSmsVerificationResultOutput,\n});\n"],"mappings":";;AAcA,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduD,EAAE,OAAO;EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EAClH,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAChG,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QATwD,EAAE,OAAO,EACjE,QAAQ,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-sms-verification-result.mjs","names":[],"sources":["../../src/actions/get-sms-verification-result.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProGetSmsVerificationResultInput = z.object({\n key: z.string().describe(\"FraudLabs Pro API key\"),\n otp: z.string().describe(\"The one-time password (OTP) code received by the user via SMS that needs to be verified\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format, 'json' (default) or 'xml'\").optional(),\n tran_id: z.string().describe(\"Unique transaction ID returned by the Send SMS Verification API\"),\n}).describe(\"Request model for retrieving SMS verification result.\");\nexport const FraudlabsProGetSmsVerificationResultOutput = z.object({\n result: z.enum([\"Y\", \"N\"]).describe(\"Y if the provided OTP is valid; N if invalid or expired.\").nullable(),\n}).passthrough().describe(\"Response model for SMS verification result.\");\n\nexport const fraudlabsProGetSmsVerificationResult = action(\"FRAUDLABS_PRO_GET_SMS_VERIFICATION_RESULT\", {\n slug: \"fraudlabs_pro-get-sms-verification-result\",\n name: \"Get SMS Verification Result\",\n description: \"Verify an OTP (one-time password) received via SMS. Returns 'Y' if the OTP is valid, 'N' if invalid or expired. Must be called after using Send SMS Verification to obtain a transaction ID.\",\n input: FraudlabsProGetSmsVerificationResultInput,\n output: FraudlabsProGetSmsVerificationResultOutput,\n});\n"],"mappings":";;AAcA,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduD,EAAE,OAAO;EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EAClH,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAChG,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QATwD,EAAE,OAAO,EACjE,QAAQ,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const FraudlabsProSendSmsVerificationInput = zod.z.object({
|
|
|
12
12
|
const FraudlabsProSendSmsVerificationOutput = zod.z.object({
|
|
13
13
|
tran_id: zod.z.string().describe("Unique 20-character transaction ID for this SMS verification request; use this ID with Get SMS Verification Result action to verify the OTP entered by the user").nullable(),
|
|
14
14
|
credits_remaining: zod.z.number().int().describe("Number of SMS credits remaining in your account after this request was processed").nullable()
|
|
15
|
-
}).describe("Response model for sending SMS OTP verification.");
|
|
15
|
+
}).passthrough().describe("Response model for sending SMS OTP verification.");
|
|
16
16
|
const fraudlabsProSendSmsVerification = require_action.action("FRAUDLABS_PRO_SEND_SMS_VERIFICATION", {
|
|
17
17
|
slug: "fraudlabs_pro-send-sms-verification",
|
|
18
18
|
name: "Send SMS OTP Verification",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-sms-verification.cjs","names":["z","action"],"sources":["../../src/actions/send-sms-verification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProSendSmsVerificationInput = z.object({\n key: z.string().describe(\"FraudLabs Pro API key\"),\n tel: z.string().describe(\"Recipient mobile number in E.164 format, e.g., +12015550123\"),\n mesg: z.string().describe(\"SMS message template; must include <otp> placeholder; max 140 characters\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: json (default) or xml\").optional(),\n otp_timeout: z.number().int().describe(\"OTP timeout in seconds; default 3600; min 15; max 86400\").optional(),\n country_code: z.string().describe(\"ISO 3166 country code for the phone, e.g., US\").optional(),\n}).describe(\"Request model for sending SMS OTP verification.\");\nexport const FraudlabsProSendSmsVerificationOutput = z.object({\n tran_id: z.string().describe(\"Unique 20-character transaction ID for this SMS verification request; use this ID with Get SMS Verification Result action to verify the OTP entered by the user\").nullable(),\n credits_remaining: z.number().int().describe(\"Number of SMS credits remaining in your account after this request was processed\").nullable(),\n}).describe(\"Response model for sending SMS OTP verification.\");\n\nexport const fraudlabsProSendSmsVerification = action(\"FRAUDLABS_PRO_SEND_SMS_VERIFICATION\", {\n slug: \"fraudlabs_pro-send-sms-verification\",\n name: \"Send SMS OTP Verification\",\n description: \"Sends an SMS message containing a one-time password (OTP) to verify a user's phone number. The API generates a random 6-digit OTP, replaces the <otp> placeholder in your message template, and sends the SMS to the recipient. Returns a transaction ID that you must use with the Get SMS Verification Result action to verify the OTP the user enters. Testing: Use phone number '+11' for sandbox testing (no credits deducted). For verification testing with sandbox number, use OTP '123456'.\",\n input: FraudlabsProSendSmsVerificationInput,\n output: FraudlabsProSendSmsVerificationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACpG,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC3G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACzM,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,kDAAkD;
|
|
1
|
+
{"version":3,"file":"send-sms-verification.cjs","names":["z","action"],"sources":["../../src/actions/send-sms-verification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProSendSmsVerificationInput = z.object({\n key: z.string().describe(\"FraudLabs Pro API key\"),\n tel: z.string().describe(\"Recipient mobile number in E.164 format, e.g., +12015550123\"),\n mesg: z.string().describe(\"SMS message template; must include <otp> placeholder; max 140 characters\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: json (default) or xml\").optional(),\n otp_timeout: z.number().int().describe(\"OTP timeout in seconds; default 3600; min 15; max 86400\").optional(),\n country_code: z.string().describe(\"ISO 3166 country code for the phone, e.g., US\").optional(),\n}).describe(\"Request model for sending SMS OTP verification.\");\nexport const FraudlabsProSendSmsVerificationOutput = z.object({\n tran_id: z.string().describe(\"Unique 20-character transaction ID for this SMS verification request; use this ID with Get SMS Verification Result action to verify the OTP entered by the user\").nullable(),\n credits_remaining: z.number().int().describe(\"Number of SMS credits remaining in your account after this request was processed\").nullable(),\n}).passthrough().describe(\"Response model for sending SMS OTP verification.\");\n\nexport const fraudlabsProSendSmsVerification = action(\"FRAUDLABS_PRO_SEND_SMS_VERIFICATION\", {\n slug: \"fraudlabs_pro-send-sms-verification\",\n name: \"Send SMS OTP Verification\",\n description: \"Sends an SMS message containing a one-time password (OTP) to verify a user's phone number. The API generates a random 6-digit OTP, replaces the <otp> placeholder in your message template, and sends the SMS to the recipient. Returns a transaction ID that you must use with the Get SMS Verification Result action to verify the OTP the user enters. Testing: Use phone number '+11' for sandbox testing (no credits deducted). For verification testing with sandbox number, use OTP '123456'.\",\n input: FraudlabsProSendSmsVerificationInput,\n output: FraudlabsProSendSmsVerificationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACpG,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC3G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACzM,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const FraudlabsProSendSmsVerificationInput: z.ZodObject<{
|
|
|
15
15
|
declare const FraudlabsProSendSmsVerificationOutput: z.ZodObject<{
|
|
16
16
|
tran_id: z.ZodNullable<z.ZodString>;
|
|
17
17
|
credits_remaining: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const fraudlabsProSendSmsVerification: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
key: string;
|
|
21
21
|
tel: string;
|
|
@@ -23,10 +23,7 @@ declare const fraudlabsProSendSmsVerification: import("@keystrokehq/action").Wor
|
|
|
23
23
|
format?: "json" | "xml" | undefined;
|
|
24
24
|
otp_timeout?: number | undefined;
|
|
25
25
|
country_code?: string | undefined;
|
|
26
|
-
},
|
|
27
|
-
tran_id: string | null;
|
|
28
|
-
credits_remaining: number | null;
|
|
29
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
27
|
//#endregion
|
|
31
28
|
export { fraudlabsProSendSmsVerification };
|
|
32
29
|
//# sourceMappingURL=send-sms-verification.d.cts.map
|
|
@@ -15,7 +15,7 @@ declare const FraudlabsProSendSmsVerificationInput: z.ZodObject<{
|
|
|
15
15
|
declare const FraudlabsProSendSmsVerificationOutput: z.ZodObject<{
|
|
16
16
|
tran_id: z.ZodNullable<z.ZodString>;
|
|
17
17
|
credits_remaining: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const fraudlabsProSendSmsVerification: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
key: string;
|
|
21
21
|
tel: string;
|
|
@@ -23,10 +23,7 @@ declare const fraudlabsProSendSmsVerification: import("@keystrokehq/action").Wor
|
|
|
23
23
|
format?: "json" | "xml" | undefined;
|
|
24
24
|
otp_timeout?: number | undefined;
|
|
25
25
|
country_code?: string | undefined;
|
|
26
|
-
},
|
|
27
|
-
tran_id: string | null;
|
|
28
|
-
credits_remaining: number | null;
|
|
29
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
27
|
//#endregion
|
|
31
28
|
export { fraudlabsProSendSmsVerification };
|
|
32
29
|
//# sourceMappingURL=send-sms-verification.d.mts.map
|
|
@@ -15,7 +15,7 @@ const fraudlabsProSendSmsVerification = action("FRAUDLABS_PRO_SEND_SMS_VERIFICAT
|
|
|
15
15
|
output: z.object({
|
|
16
16
|
tran_id: z.string().describe("Unique 20-character transaction ID for this SMS verification request; use this ID with Get SMS Verification Result action to verify the OTP entered by the user").nullable(),
|
|
17
17
|
credits_remaining: z.number().int().describe("Number of SMS credits remaining in your account after this request was processed").nullable()
|
|
18
|
-
}).describe("Response model for sending SMS OTP verification.")
|
|
18
|
+
}).passthrough().describe("Response model for sending SMS OTP verification.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { fraudlabsProSendSmsVerification };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-sms-verification.mjs","names":[],"sources":["../../src/actions/send-sms-verification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProSendSmsVerificationInput = z.object({\n key: z.string().describe(\"FraudLabs Pro API key\"),\n tel: z.string().describe(\"Recipient mobile number in E.164 format, e.g., +12015550123\"),\n mesg: z.string().describe(\"SMS message template; must include <otp> placeholder; max 140 characters\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: json (default) or xml\").optional(),\n otp_timeout: z.number().int().describe(\"OTP timeout in seconds; default 3600; min 15; max 86400\").optional(),\n country_code: z.string().describe(\"ISO 3166 country code for the phone, e.g., US\").optional(),\n}).describe(\"Request model for sending SMS OTP verification.\");\nexport const FraudlabsProSendSmsVerificationOutput = z.object({\n tran_id: z.string().describe(\"Unique 20-character transaction ID for this SMS verification request; use this ID with Get SMS Verification Result action to verify the OTP entered by the user\").nullable(),\n credits_remaining: z.number().int().describe(\"Number of SMS credits remaining in your account after this request was processed\").nullable(),\n}).describe(\"Response model for sending SMS OTP verification.\");\n\nexport const fraudlabsProSendSmsVerification = action(\"FRAUDLABS_PRO_SEND_SMS_VERIFICATION\", {\n slug: \"fraudlabs_pro-send-sms-verification\",\n name: \"Send SMS OTP Verification\",\n description: \"Sends an SMS message containing a one-time password (OTP) to verify a user's phone number. The API generates a random 6-digit OTP, replaces the <otp> placeholder in your message template, and sends the SMS to the recipient. Returns a transaction ID that you must use with the Get SMS Verification Result action to verify the OTP the user enters. Testing: Use phone number '+11' for sandbox testing (no credits deducted). For verification testing with sandbox number, use OTP '123456'.\",\n input: FraudlabsProSendSmsVerificationInput,\n output: FraudlabsProSendSmsVerificationOutput,\n});\n"],"mappings":";;AAiBA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBkD,EAAE,OAAO;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACpG,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;EACzM,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"send-sms-verification.mjs","names":[],"sources":["../../src/actions/send-sms-verification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProSendSmsVerificationInput = z.object({\n key: z.string().describe(\"FraudLabs Pro API key\"),\n tel: z.string().describe(\"Recipient mobile number in E.164 format, e.g., +12015550123\"),\n mesg: z.string().describe(\"SMS message template; must include <otp> placeholder; max 140 characters\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: json (default) or xml\").optional(),\n otp_timeout: z.number().int().describe(\"OTP timeout in seconds; default 3600; min 15; max 86400\").optional(),\n country_code: z.string().describe(\"ISO 3166 country code for the phone, e.g., US\").optional(),\n}).describe(\"Request model for sending SMS OTP verification.\");\nexport const FraudlabsProSendSmsVerificationOutput = z.object({\n tran_id: z.string().describe(\"Unique 20-character transaction ID for this SMS verification request; use this ID with Get SMS Verification Result action to verify the OTP entered by the user\").nullable(),\n credits_remaining: z.number().int().describe(\"Number of SMS credits remaining in your account after this request was processed\").nullable(),\n}).passthrough().describe(\"Response model for sending SMS OTP verification.\");\n\nexport const fraudlabsProSendSmsVerification = action(\"FRAUDLABS_PRO_SEND_SMS_VERIFICATION\", {\n slug: \"fraudlabs_pro-send-sms-verification\",\n name: \"Send SMS OTP Verification\",\n description: \"Sends an SMS message containing a one-time password (OTP) to verify a user's phone number. The API generates a random 6-digit OTP, replaces the <otp> placeholder in your message template, and sends the SMS to the recipient. Returns a transaction ID that you must use with the Get SMS Verification Result action to verify the OTP the user enters. Testing: Use phone number '+11' for sandbox testing (no credits deducted). For verification testing with sandbox number, use OTP '123456'.\",\n input: FraudlabsProSendSmsVerificationInput,\n output: FraudlabsProSendSmsVerificationOutput,\n});\n"],"mappings":";;AAiBA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBkD,EAAE,OAAO;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACpG,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;EACzM,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
|
|
@@ -14,13 +14,13 @@ const FraudlabsProSubscribePlanInput = zod.z.object({
|
|
|
14
14
|
username: zod.z.string().describe("Username of the account to subscribe.")
|
|
15
15
|
}).describe("Request parameters for subscribing a reseller account to a plan.");
|
|
16
16
|
const FraudlabsProSubscribePlanOutput = zod.z.object({
|
|
17
|
-
api_key: zod.z.
|
|
18
|
-
plan_name: zod.z.
|
|
19
|
-
rule_limit: zod.z.
|
|
20
|
-
query_limit: zod.z.
|
|
17
|
+
api_key: zod.z.string().describe("API key issued for the subscribed plan.").nullable().optional(),
|
|
18
|
+
plan_name: zod.z.string().describe("Name of the subscribed plan.").nullable().optional(),
|
|
19
|
+
rule_limit: zod.z.number().int().describe("Maximum number of rules allowed for the plan.").nullable().optional(),
|
|
20
|
+
query_limit: zod.z.number().int().describe("Total queries available for the subscribed plan.").nullable().optional(),
|
|
21
21
|
fraudlabspro_error: zod.z.number().int().describe("Error code for this transaction.").nullable(),
|
|
22
22
|
fraudlabspro_message: zod.z.string().describe("More information about the status of this transaction.").nullable()
|
|
23
|
-
}).describe("Response schema for subscribing a reseller account to a plan.\n\nNote: On API error responses, only fraudlabspro_error and fraudlabspro_message\nmay be present. Therefore, other fields are optional to allow clients to\ninspect error payloads without the action failing validation.");
|
|
23
|
+
}).passthrough().describe("Response schema for subscribing a reseller account to a plan.\n\nNote: On API error responses, only fraudlabspro_error and fraudlabspro_message\nmay be present. Therefore, other fields are optional to allow clients to\ninspect error payloads without the action failing validation.");
|
|
24
24
|
const fraudlabsProSubscribePlan = require_action.action("FRAUDLABS_PRO_SUBSCRIBE_PLAN", {
|
|
25
25
|
slug: "fraudlabs_pro-subscribe-plan",
|
|
26
26
|
name: "Subscribe Reseller Plan",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-plan.cjs","names":["z","action"],"sources":["../../src/actions/subscribe-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProSubscribePlanInput = z.object({\n key: z.string().describe(\"Your Reseller API key.\"),\n plan: z.enum([\"MICRO\", \"SMALL\", \"MEDIUM\", \"LARGE\", \"ENTERPRISE\"]).describe(\"Plan code. Only MICRO plan is currently accepted.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Valid values: json, xml. Default is json.\").optional(),\n username: z.string().describe(\"Username of the account to subscribe.\"),\n}).describe(\"Request parameters for subscribing a reseller account to a plan.\");\nexport const FraudlabsProSubscribePlanOutput = z.object({\n api_key: z.
|
|
1
|
+
{"version":3,"file":"subscribe-plan.cjs","names":["z","action"],"sources":["../../src/actions/subscribe-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProSubscribePlanInput = z.object({\n key: z.string().describe(\"Your Reseller API key.\"),\n plan: z.enum([\"MICRO\", \"SMALL\", \"MEDIUM\", \"LARGE\", \"ENTERPRISE\"]).describe(\"Plan code. Only MICRO plan is currently accepted.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Valid values: json, xml. Default is json.\").optional(),\n username: z.string().describe(\"Username of the account to subscribe.\"),\n}).describe(\"Request parameters for subscribing a reseller account to a plan.\");\nexport const FraudlabsProSubscribePlanOutput = z.object({\n api_key: z.string().describe(\"API key issued for the subscribed plan.\").nullable().optional(),\n plan_name: z.string().describe(\"Name of the subscribed plan.\").nullable().optional(),\n rule_limit: z.number().int().describe(\"Maximum number of rules allowed for the plan.\").nullable().optional(),\n query_limit: z.number().int().describe(\"Total queries available for the subscribed plan.\").nullable().optional(),\n fraudlabspro_error: z.number().int().describe(\"Error code for this transaction.\").nullable(),\n fraudlabspro_message: z.string().describe(\"More information about the status of this transaction.\").nullable(),\n}).passthrough().describe(\"Response schema for subscribing a reseller account to a plan.\\n\\nNote: On API error responses, only fraudlabspro_error and fraudlabspro_message\\nmay be present. Therefore, other fields are optional to allow clients to\\ninspect error payloads without the action failing validation.\");\n\nexport const fraudlabsProSubscribePlan = action(\"FRAUDLABS_PRO_SUBSCRIBE_PLAN\", {\n slug: \"fraudlabs_pro-subscribe-plan\",\n name: \"Subscribe Reseller Plan\",\n description: \"Tool to subscribe a reseller account to a specific plan. Use after obtaining a reseller API key and selecting a plan. Example: Subscribe user \\\"john_doe\\\" to the MICRO plan.\",\n input: FraudlabsProSubscribePlanInput,\n output: FraudlabsProSubscribePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACjD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAS;EAAU;EAAS;CAAY,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC9H,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAChI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AACvE,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0RAA0R;AAEpT,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,26 +17,19 @@ declare const FraudlabsProSubscribePlanInput: z.ZodObject<{
|
|
|
17
17
|
username: z.ZodString;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const FraudlabsProSubscribePlanOutput: z.ZodObject<{
|
|
20
|
-
api_key: z.
|
|
21
|
-
plan_name: z.
|
|
22
|
-
rule_limit: z.
|
|
23
|
-
query_limit: z.
|
|
20
|
+
api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
plan_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
rule_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
query_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
fraudlabspro_error: z.ZodNullable<z.ZodNumber>;
|
|
25
25
|
fraudlabspro_message: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const fraudlabsProSubscribePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
key: string;
|
|
29
29
|
plan: "MICRO" | "SMALL" | "MEDIUM" | "LARGE" | "ENTERPRISE";
|
|
30
30
|
username: string;
|
|
31
31
|
format?: "json" | "xml" | undefined;
|
|
32
|
-
},
|
|
33
|
-
fraudlabspro_error: number | null;
|
|
34
|
-
fraudlabspro_message: string | null;
|
|
35
|
-
api_key?: string | undefined;
|
|
36
|
-
plan_name?: string | undefined;
|
|
37
|
-
rule_limit?: number | undefined;
|
|
38
|
-
query_limit?: number | undefined;
|
|
39
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
40
33
|
//#endregion
|
|
41
34
|
export { fraudlabsProSubscribePlan };
|
|
42
35
|
//# sourceMappingURL=subscribe-plan.d.cts.map
|
|
@@ -17,26 +17,19 @@ declare const FraudlabsProSubscribePlanInput: z.ZodObject<{
|
|
|
17
17
|
username: z.ZodString;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const FraudlabsProSubscribePlanOutput: z.ZodObject<{
|
|
20
|
-
api_key: z.
|
|
21
|
-
plan_name: z.
|
|
22
|
-
rule_limit: z.
|
|
23
|
-
query_limit: z.
|
|
20
|
+
api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
plan_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
rule_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
query_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
fraudlabspro_error: z.ZodNullable<z.ZodNumber>;
|
|
25
25
|
fraudlabspro_message: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const fraudlabsProSubscribePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
key: string;
|
|
29
29
|
plan: "MICRO" | "SMALL" | "MEDIUM" | "LARGE" | "ENTERPRISE";
|
|
30
30
|
username: string;
|
|
31
31
|
format?: "json" | "xml" | undefined;
|
|
32
|
-
},
|
|
33
|
-
fraudlabspro_error: number | null;
|
|
34
|
-
fraudlabspro_message: string | null;
|
|
35
|
-
api_key?: string | undefined;
|
|
36
|
-
plan_name?: string | undefined;
|
|
37
|
-
rule_limit?: number | undefined;
|
|
38
|
-
query_limit?: number | undefined;
|
|
39
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
40
33
|
//#endregion
|
|
41
34
|
export { fraudlabsProSubscribePlan };
|
|
42
35
|
//# sourceMappingURL=subscribe-plan.d.mts.map
|
|
@@ -17,13 +17,13 @@ const fraudlabsProSubscribePlan = action("FRAUDLABS_PRO_SUBSCRIBE_PLAN", {
|
|
|
17
17
|
username: z.string().describe("Username of the account to subscribe.")
|
|
18
18
|
}).describe("Request parameters for subscribing a reseller account to a plan."),
|
|
19
19
|
output: z.object({
|
|
20
|
-
api_key: z.
|
|
21
|
-
plan_name: z.
|
|
22
|
-
rule_limit: z.
|
|
23
|
-
query_limit: z.
|
|
20
|
+
api_key: z.string().describe("API key issued for the subscribed plan.").nullable().optional(),
|
|
21
|
+
plan_name: z.string().describe("Name of the subscribed plan.").nullable().optional(),
|
|
22
|
+
rule_limit: z.number().int().describe("Maximum number of rules allowed for the plan.").nullable().optional(),
|
|
23
|
+
query_limit: z.number().int().describe("Total queries available for the subscribed plan.").nullable().optional(),
|
|
24
24
|
fraudlabspro_error: z.number().int().describe("Error code for this transaction.").nullable(),
|
|
25
25
|
fraudlabspro_message: z.string().describe("More information about the status of this transaction.").nullable()
|
|
26
|
-
}).describe("Response schema for subscribing a reseller account to a plan.\n\nNote: On API error responses, only fraudlabspro_error and fraudlabspro_message\nmay be present. Therefore, other fields are optional to allow clients to\ninspect error payloads without the action failing validation.")
|
|
26
|
+
}).passthrough().describe("Response schema for subscribing a reseller account to a plan.\n\nNote: On API error responses, only fraudlabspro_error and fraudlabspro_message\nmay be present. Therefore, other fields are optional to allow clients to\ninspect error payloads without the action failing validation.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { fraudlabsProSubscribePlan };
|