@keystrokehq/fraudlabs_pro 0.1.0 → 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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-account.cjs +15 -15
- package/dist/actions/create-account.cjs.map +1 -1
- package/dist/actions/create-account.d.cts +70 -3
- package/dist/actions/create-account.d.cts.map +1 -1
- package/dist/actions/create-account.d.mts +70 -3
- package/dist/actions/create-account.d.mts.map +1 -1
- package/dist/actions/create-account.mjs +15 -15
- 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 +26 -3
- package/dist/actions/flp-feedback-order.d.cts.map +1 -1
- package/dist/actions/flp-feedback-order.d.mts +26 -3
- package/dist/actions/flp-feedback-order.d.mts.map +1 -1
- 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 +56 -56
- package/dist/actions/flp-screen-order.cjs.map +1 -1
- package/dist/actions/flp-screen-order.d.cts +233 -3
- package/dist/actions/flp-screen-order.d.cts.map +1 -1
- package/dist/actions/flp-screen-order.d.mts +233 -3
- package/dist/actions/flp-screen-order.d.mts.map +1 -1
- package/dist/actions/flp-screen-order.mjs +56 -56
- package/dist/actions/flp-screen-order.mjs.map +1 -1
- package/dist/actions/get-order-result2.cjs +62 -62
- package/dist/actions/get-order-result2.cjs.map +1 -1
- package/dist/actions/get-order-result2.d.cts +161 -3
- package/dist/actions/get-order-result2.d.cts.map +1 -1
- package/dist/actions/get-order-result2.d.mts +161 -3
- package/dist/actions/get-order-result2.d.mts.map +1 -1
- package/dist/actions/get-order-result2.mjs +62 -62
- 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 +23 -3
- package/dist/actions/get-sms-verification-result.d.cts.map +1 -1
- package/dist/actions/get-sms-verification-result.d.mts +23 -3
- package/dist/actions/get-sms-verification-result.d.mts.map +1 -1
- 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 +2 -2
- package/dist/actions/send-sms-verification.cjs.map +1 -1
- package/dist/actions/send-sms-verification.d.cts +26 -3
- package/dist/actions/send-sms-verification.d.cts.map +1 -1
- package/dist/actions/send-sms-verification.d.mts +26 -3
- package/dist/actions/send-sms-verification.d.mts.map +1 -1
- package/dist/actions/send-sms-verification.mjs +2 -2
- package/dist/actions/send-sms-verification.mjs.map +1 -1
- package/dist/actions/subscribe-plan.cjs +6 -6
- package/dist/actions/subscribe-plan.cjs.map +1 -1
- package/dist/actions/subscribe-plan.d.cts +36 -3
- package/dist/actions/subscribe-plan.d.cts.map +1 -1
- package/dist/actions/subscribe-plan.d.mts +36 -3
- package/dist/actions/subscribe-plan.d.mts.map +1 -1
- package/dist/actions/subscribe-plan.mjs +6 -6
- 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 +29 -3
- package/dist/actions/webhook-order-status-changed.d.cts.map +1 -1
- package/dist/actions/webhook-order-status-changed.d.mts +29 -3
- 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/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["fraudlabsPro","executeFraudlabsProTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { fraudlabsPro } from \"./app\";\nimport { executeFraudlabsProTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["fraudlabsPro","executeFraudlabsProTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { fraudlabsPro } from \"./app\";\nimport { executeFraudlabsProTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return fraudlabsPro.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeFraudlabsProTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { fraudlabsPro } from \"./app\";\nimport { executeFraudlabsProTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { fraudlabsPro } from \"./app\";\nimport { executeFraudlabsProTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return fraudlabsPro.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeFraudlabsProTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
|
|
@@ -19,21 +19,21 @@ const FraudlabsProCreateAccountInput = zod.z.object({
|
|
|
19
19
|
zip_code: zod.z.string().describe("Postal code or ZIP code for the billing address")
|
|
20
20
|
});
|
|
21
21
|
const FraudlabsProCreateAccountOutput = zod.z.object({
|
|
22
|
-
fax: zod.z.string().describe("Fax number if provided. Present only on successful account creation.").
|
|
23
|
-
city: zod.z.string().describe("City name. Present only on successful account creation.").
|
|
24
|
-
name: zod.z.string().describe("Full name of the account holder. Present only on successful account creation.").
|
|
25
|
-
email: zod.z.string().describe("Email address associated with the new account. Present only on successful account creation.").
|
|
26
|
-
phone: zod.z.string().describe("Contact phone number. Present only on successful account creation.").
|
|
27
|
-
state: zod.z.string().describe("State or province. Present only on successful account creation.").
|
|
28
|
-
company: zod.z.string().describe("Company name. Present only on successful account creation.").
|
|
29
|
-
country: zod.z.string().describe("ISO 3166-1 alpha-2 country code. Present only on successful account creation.").
|
|
30
|
-
address1: zod.z.string().describe("Primary street address. Present only on successful account creation.").
|
|
31
|
-
address2: zod.z.string().describe("Secondary address line (suite, apt, etc.). Present only on successful account creation if provided.").
|
|
32
|
-
password: zod.z.string().describe("Auto-generated password for the newly created account. Store securely and provide to the user. Present only on successful account creation.").
|
|
33
|
-
username: zod.z.string().describe("Username for the newly created account. Present only on successful account creation.").
|
|
34
|
-
zip_code: zod.z.string().describe("Postal/ZIP code. Present only on successful account creation.").
|
|
35
|
-
fraudlabspro_message: zod.z.string().describe("Human-readable status message describing the result or error from the API"),
|
|
36
|
-
fraudlabspro_error_code: zod.z.string().describe("API error code: '0' indicates success, other codes indicate errors (e.g., '101' for invalid API key, '410' for invalid phone number). See https://www.fraudlabspro.com/developer/reference/error-codes")
|
|
22
|
+
fax: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Fax number if provided. Present only on successful account creation.").optional()),
|
|
23
|
+
city: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("City name. Present only on successful account creation.").optional()),
|
|
24
|
+
name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the account holder. Present only on successful account creation.").optional()),
|
|
25
|
+
email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email address associated with the new account. Present only on successful account creation.").optional()),
|
|
26
|
+
phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact phone number. Present only on successful account creation.").optional()),
|
|
27
|
+
state: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("State or province. Present only on successful account creation.").optional()),
|
|
28
|
+
company: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name. Present only on successful account creation.").optional()),
|
|
29
|
+
country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 3166-1 alpha-2 country code. Present only on successful account creation.").optional()),
|
|
30
|
+
address1: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Primary street address. Present only on successful account creation.").optional()),
|
|
31
|
+
address2: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Secondary address line (suite, apt, etc.). Present only on successful account creation if provided.").optional()),
|
|
32
|
+
password: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Auto-generated password for the newly created account. Store securely and provide to the user. Present only on successful account creation.").optional()),
|
|
33
|
+
username: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Username for the newly created account. Present only on successful account creation.").optional()),
|
|
34
|
+
zip_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Postal/ZIP code. Present only on successful account creation.").optional()),
|
|
35
|
+
fraudlabspro_message: zod.z.string().describe("Human-readable status message describing the result or error from the API").nullable(),
|
|
36
|
+
fraudlabspro_error_code: zod.z.string().describe("API error code: '0' indicates success, other codes indicate errors (e.g., '101' for invalid API key, '410' for invalid phone number). See https://www.fraudlabspro.com/developer/reference/error-codes").nullable()
|
|
37
37
|
});
|
|
38
38
|
const fraudlabsProCreateAccount = require_action.action("FRAUDLABS_PRO_CREATE_ACCOUNT", {
|
|
39
39
|
slug: "fraudlabs_pro-create-account",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-account.cjs","names":["z","action"],"sources":["../../src/actions/create-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProCreateAccountInput
|
|
1
|
+
{"version":3,"file":"create-account.cjs","names":["z","action"],"sources":["../../src/actions/create-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProCreateAccountInput = z.object({\n fax: z.string().describe(\"Fax number (digits only, no special characters). Optional.\").optional(),\n key: z.string().describe(\"FraudLabs Pro Reseller API key (different from regular API key). Required for account creation. Apply at https://www.fraudlabspro.com/reseller/program\"),\n city: z.string().describe(\"City name for the billing address\"),\n name: z.string().describe(\"Full name of the account holder (first and last name)\"),\n email: z.string().describe(\"Email address for the new account. Used for login and communications.\"),\n phone: z.string().describe(\"Contact phone number (digits only, no special characters or spaces)\"),\n state: z.string().describe(\"State or province name/code for the billing address\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format (json or xml). Defaults to json for structured data.\").optional(),\n company: z.string().describe(\"Company or organization name for the account\"),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code (2-letter code). See https://www.fraudlabspro.com/developer/reference/country-codes\"),\n address1: z.string().describe(\"Primary street address (building number and street name)\"),\n address2: z.string().describe(\"Secondary address line (apartment, suite, unit, floor, etc.). Optional.\").optional(),\n industry: z.string().describe(\"Industry classification ID (1-14). Options: 1=Retail(e-Commerce), 2=Retail(Brick&Mortar), 3=Hospitality, 4=Ticketing, 5=Clubs, 6=Memberships, 7=Digital Content, 8=Online Games, 9=Software, 10=Telecom, 11=Travel, 12=Non-Profit, 13=Services, 14=High Risk\"),\n username: z.string().describe(\"Desired username for the new FraudLabs Pro account. Must be unique across all accounts.\"),\n zip_code: z.string().describe(\"Postal code or ZIP code for the billing address\"),\n});\nexport const FraudlabsProCreateAccountOutput = z.object({\n fax: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Fax number if provided. Present only on successful account creation.\").optional()),\n city: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"City name. Present only on successful account creation.\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the account holder. Present only on successful account creation.\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address associated with the new account. Present only on successful account creation.\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact phone number. Present only on successful account creation.\").optional()),\n state: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"State or province. Present only on successful account creation.\").optional()),\n company: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name. Present only on successful account creation.\").optional()),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 3166-1 alpha-2 country code. Present only on successful account creation.\").optional()),\n address1: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Primary street address. Present only on successful account creation.\").optional()),\n address2: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Secondary address line (suite, apt, etc.). Present only on successful account creation if provided.\").optional()),\n password: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Auto-generated password for the newly created account. Store securely and provide to the user. Present only on successful account creation.\").optional()),\n username: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Username for the newly created account. Present only on successful account creation.\").optional()),\n zip_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Postal/ZIP code. Present only on successful account creation.\").optional()),\n fraudlabspro_message: z.string().describe(\"Human-readable status message describing the result or error from the API\").nullable(),\n fraudlabspro_error_code: z.string().describe(\"API error code: '0' indicates success, other codes indicate errors (e.g., '101' for invalid API key, '410' for invalid phone number). See https://www.fraudlabspro.com/developer/reference/error-codes\").nullable(),\n});\n\nexport const fraudlabsProCreateAccount = action(\"FRAUDLABS_PRO_CREATE_ACCOUNT\", {\n slug: \"fraudlabs_pro-create-account\",\n name: \"Create FraudLabs Pro Reseller Sub-Account\",\n description: \"Creates a new FraudLabs Pro user account under a reseller account. Requires a Reseller API key (not a regular API key). Use this action to provision new sub-accounts for customers when operating as a FraudLabs Pro reseller. Returns account credentials (username and password) upon successful creation. Prerequisites: - Must have a FraudLabs Pro Reseller account (apply at https://www.fraudlabspro.com/reseller/program) - Requires valid Reseller API key (different from standard FraudLabs Pro API key) - All required fields must contain valid data matching FraudLabs Pro validation rules Important: - Phone numbers should contain only digits (no +, -, spaces, or parentheses) - Country must be valid ISO 3166-1 alpha-2 code (e.g., US, GB, CA) - Industry must be a valid ID from 1-14\",\n input: FraudlabsProCreateAccountInput,\n output: FraudlabsProCreateAccountOut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EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS,CAAC;CACrP,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC;CAC9L,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC;CACvK,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChI,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;AAClQ,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,76 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-account.d.ts
|
|
4
|
-
declare const FraudlabsProCreateAccountInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FraudlabsProCreateAccountInput: z.ZodObject<{
|
|
5
|
+
fax: z.ZodOptional<z.ZodString>;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
city: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
email: z.ZodString;
|
|
10
|
+
phone: z.ZodString;
|
|
11
|
+
state: z.ZodString;
|
|
12
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
json: "json";
|
|
14
|
+
xml: "xml";
|
|
15
|
+
}>>>;
|
|
16
|
+
company: z.ZodString;
|
|
17
|
+
country: z.ZodString;
|
|
18
|
+
address1: z.ZodString;
|
|
19
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
20
|
+
industry: z.ZodString;
|
|
21
|
+
username: z.ZodString;
|
|
22
|
+
zip_code: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const FraudlabsProCreateAccountOutput: z.ZodObject<{
|
|
25
|
+
fax: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
company: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
address1: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
address2: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
password: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
username: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
zip_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
fraudlabspro_message: z.ZodNullable<z.ZodString>;
|
|
39
|
+
fraudlabspro_error_code: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const fraudlabsProCreateAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
|
+
key: string;
|
|
43
|
+
city: string;
|
|
44
|
+
name: string;
|
|
45
|
+
email: string;
|
|
46
|
+
phone: string;
|
|
47
|
+
state: string;
|
|
48
|
+
company: string;
|
|
49
|
+
country: string;
|
|
50
|
+
address1: string;
|
|
51
|
+
industry: string;
|
|
52
|
+
username: string;
|
|
53
|
+
zip_code: string;
|
|
54
|
+
fax?: string | undefined;
|
|
55
|
+
format?: "json" | "xml" | undefined;
|
|
56
|
+
address2?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
fraudlabspro_message: string | null;
|
|
59
|
+
fraudlabspro_error_code: string | null;
|
|
60
|
+
fax?: string | undefined;
|
|
61
|
+
city?: string | undefined;
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
email?: string | undefined;
|
|
64
|
+
phone?: string | undefined;
|
|
65
|
+
state?: string | undefined;
|
|
66
|
+
company?: string | undefined;
|
|
67
|
+
country?: string | undefined;
|
|
68
|
+
address1?: string | undefined;
|
|
69
|
+
address2?: string | undefined;
|
|
70
|
+
password?: string | undefined;
|
|
71
|
+
username?: string | undefined;
|
|
72
|
+
zip_code?: string | undefined;
|
|
73
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
74
|
//#endregion
|
|
8
75
|
export { fraudlabsProCreateAccount };
|
|
9
76
|
//# sourceMappingURL=create-account.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-account.d.cts","names":[],"sources":["../../src/actions/create-account.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"create-account.d.cts","names":[],"sources":["../../src/actions/create-account.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,76 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-account.d.ts
|
|
4
|
-
declare const FraudlabsProCreateAccountInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FraudlabsProCreateAccountInput: z.ZodObject<{
|
|
5
|
+
fax: z.ZodOptional<z.ZodString>;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
city: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
email: z.ZodString;
|
|
10
|
+
phone: z.ZodString;
|
|
11
|
+
state: z.ZodString;
|
|
12
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
json: "json";
|
|
14
|
+
xml: "xml";
|
|
15
|
+
}>>>;
|
|
16
|
+
company: z.ZodString;
|
|
17
|
+
country: z.ZodString;
|
|
18
|
+
address1: z.ZodString;
|
|
19
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
20
|
+
industry: z.ZodString;
|
|
21
|
+
username: z.ZodString;
|
|
22
|
+
zip_code: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const FraudlabsProCreateAccountOutput: z.ZodObject<{
|
|
25
|
+
fax: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
company: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
address1: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
address2: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
password: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
username: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
zip_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
fraudlabspro_message: z.ZodNullable<z.ZodString>;
|
|
39
|
+
fraudlabspro_error_code: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const fraudlabsProCreateAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
|
+
key: string;
|
|
43
|
+
city: string;
|
|
44
|
+
name: string;
|
|
45
|
+
email: string;
|
|
46
|
+
phone: string;
|
|
47
|
+
state: string;
|
|
48
|
+
company: string;
|
|
49
|
+
country: string;
|
|
50
|
+
address1: string;
|
|
51
|
+
industry: string;
|
|
52
|
+
username: string;
|
|
53
|
+
zip_code: string;
|
|
54
|
+
fax?: string | undefined;
|
|
55
|
+
format?: "json" | "xml" | undefined;
|
|
56
|
+
address2?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
fraudlabspro_message: string | null;
|
|
59
|
+
fraudlabspro_error_code: string | null;
|
|
60
|
+
fax?: string | undefined;
|
|
61
|
+
city?: string | undefined;
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
email?: string | undefined;
|
|
64
|
+
phone?: string | undefined;
|
|
65
|
+
state?: string | undefined;
|
|
66
|
+
company?: string | undefined;
|
|
67
|
+
country?: string | undefined;
|
|
68
|
+
address1?: string | undefined;
|
|
69
|
+
address2?: string | undefined;
|
|
70
|
+
password?: string | undefined;
|
|
71
|
+
username?: string | undefined;
|
|
72
|
+
zip_code?: string | undefined;
|
|
73
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
74
|
//#endregion
|
|
8
75
|
export { fraudlabsProCreateAccount };
|
|
9
76
|
//# sourceMappingURL=create-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-account.d.mts","names":[],"sources":["../../src/actions/create-account.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"create-account.d.mts","names":[],"sources":["../../src/actions/create-account.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -22,21 +22,21 @@ const fraudlabsProCreateAccount = action("FRAUDLABS_PRO_CREATE_ACCOUNT", {
|
|
|
22
22
|
zip_code: z.string().describe("Postal code or ZIP code for the billing address")
|
|
23
23
|
}),
|
|
24
24
|
output: z.object({
|
|
25
|
-
fax: z.string().describe("Fax number if provided. Present only on successful account creation.").
|
|
26
|
-
city: z.string().describe("City name. Present only on successful account creation.").
|
|
27
|
-
name: z.string().describe("Full name of the account holder. Present only on successful account creation.").
|
|
28
|
-
email: z.string().describe("Email address associated with the new account. Present only on successful account creation.").
|
|
29
|
-
phone: z.string().describe("Contact phone number. Present only on successful account creation.").
|
|
30
|
-
state: z.string().describe("State or province. Present only on successful account creation.").
|
|
31
|
-
company: z.string().describe("Company name. Present only on successful account creation.").
|
|
32
|
-
country: z.string().describe("ISO 3166-1 alpha-2 country code. Present only on successful account creation.").
|
|
33
|
-
address1: z.string().describe("Primary street address. Present only on successful account creation.").
|
|
34
|
-
address2: z.string().describe("Secondary address line (suite, apt, etc.). Present only on successful account creation if provided.").
|
|
35
|
-
password: z.string().describe("Auto-generated password for the newly created account. Store securely and provide to the user. Present only on successful account creation.").
|
|
36
|
-
username: z.string().describe("Username for the newly created account. Present only on successful account creation.").
|
|
37
|
-
zip_code: z.string().describe("Postal/ZIP code. Present only on successful account creation.").
|
|
38
|
-
fraudlabspro_message: z.string().describe("Human-readable status message describing the result or error from the API"),
|
|
39
|
-
fraudlabspro_error_code: z.string().describe("API error code: '0' indicates success, other codes indicate errors (e.g., '101' for invalid API key, '410' for invalid phone number). See https://www.fraudlabspro.com/developer/reference/error-codes")
|
|
25
|
+
fax: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Fax number if provided. Present only on successful account creation.").optional()),
|
|
26
|
+
city: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("City name. Present only on successful account creation.").optional()),
|
|
27
|
+
name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the account holder. Present only on successful account creation.").optional()),
|
|
28
|
+
email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email address associated with the new account. Present only on successful account creation.").optional()),
|
|
29
|
+
phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact phone number. Present only on successful account creation.").optional()),
|
|
30
|
+
state: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("State or province. Present only on successful account creation.").optional()),
|
|
31
|
+
company: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company name. Present only on successful account creation.").optional()),
|
|
32
|
+
country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 3166-1 alpha-2 country code. Present only on successful account creation.").optional()),
|
|
33
|
+
address1: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Primary street address. Present only on successful account creation.").optional()),
|
|
34
|
+
address2: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Secondary address line (suite, apt, etc.). Present only on successful account creation if provided.").optional()),
|
|
35
|
+
password: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Auto-generated password for the newly created account. Store securely and provide to the user. Present only on successful account creation.").optional()),
|
|
36
|
+
username: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Username for the newly created account. Present only on successful account creation.").optional()),
|
|
37
|
+
zip_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Postal/ZIP code. Present only on successful account creation.").optional()),
|
|
38
|
+
fraudlabspro_message: z.string().describe("Human-readable status message describing the result or error from the API").nullable(),
|
|
39
|
+
fraudlabspro_error_code: z.string().describe("API error code: '0' indicates success, other codes indicate errors (e.g., '101' for invalid API key, '410' for invalid phone number). See https://www.fraudlabspro.com/developer/reference/error-codes").nullable()
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-account.mjs","names":[],"sources":["../../src/actions/create-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProCreateAccountInput
|
|
1
|
+
{"version":3,"file":"create-account.mjs","names":[],"sources":["../../src/actions/create-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProCreateAccountInput = z.object({\n fax: z.string().describe(\"Fax number (digits only, no special characters). Optional.\").optional(),\n key: z.string().describe(\"FraudLabs Pro Reseller API key (different from regular API key). Required for account creation. Apply at https://www.fraudlabspro.com/reseller/program\"),\n city: z.string().describe(\"City name for the billing address\"),\n name: z.string().describe(\"Full name of the account holder (first and last name)\"),\n email: z.string().describe(\"Email address for the new account. Used for login and communications.\"),\n phone: z.string().describe(\"Contact phone number (digits only, no special characters or spaces)\"),\n state: z.string().describe(\"State or province name/code for the billing address\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format (json or xml). Defaults to json for structured data.\").optional(),\n company: z.string().describe(\"Company or organization name for the account\"),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code (2-letter code). See https://www.fraudlabspro.com/developer/reference/country-codes\"),\n address1: z.string().describe(\"Primary street address (building number and street name)\"),\n address2: z.string().describe(\"Secondary address line (apartment, suite, unit, floor, etc.). Optional.\").optional(),\n industry: z.string().describe(\"Industry classification ID (1-14). Options: 1=Retail(e-Commerce), 2=Retail(Brick&Mortar), 3=Hospitality, 4=Ticketing, 5=Clubs, 6=Memberships, 7=Digital Content, 8=Online Games, 9=Software, 10=Telecom, 11=Travel, 12=Non-Profit, 13=Services, 14=High Risk\"),\n username: z.string().describe(\"Desired username for the new FraudLabs Pro account. Must be unique across all accounts.\"),\n zip_code: z.string().describe(\"Postal code or ZIP code for the billing address\"),\n});\nexport const FraudlabsProCreateAccountOutput = z.object({\n fax: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Fax number if provided. Present only on successful account creation.\").optional()),\n city: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"City name. Present only on successful account creation.\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the account holder. Present only on successful account creation.\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address associated with the new account. Present only on successful account creation.\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact phone number. Present only on successful account creation.\").optional()),\n state: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"State or province. Present only on successful account creation.\").optional()),\n company: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name. Present only on successful account creation.\").optional()),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 3166-1 alpha-2 country code. Present only on successful account creation.\").optional()),\n address1: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Primary street address. Present only on successful account creation.\").optional()),\n address2: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Secondary address line (suite, apt, etc.). Present only on successful account creation if provided.\").optional()),\n password: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Auto-generated password for the newly created account. Store securely and provide to the user. Present only on successful account creation.\").optional()),\n username: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Username for the newly created account. Present only on successful account creation.\").optional()),\n zip_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Postal/ZIP code. Present only on successful account creation.\").optional()),\n fraudlabspro_message: z.string().describe(\"Human-readable status message describing the result or error from the API\").nullable(),\n fraudlabspro_error_code: z.string().describe(\"API error code: '0' indicates success, other codes indicate errors (e.g., '101' for invalid API key, '410' for invalid phone number). See https://www.fraudlabspro.com/developer/reference/error-codes\").nullable(),\n});\n\nexport const fraudlabsProCreateAccount = action(\"FRAUDLABS_PRO_CREATE_ACCOUNT\", {\n slug: \"fraudlabs_pro-create-account\",\n name: \"Create FraudLabs Pro Reseller Sub-Account\",\n description: \"Creates a new FraudLabs Pro user account under a reseller account. Requires a Reseller API key (not a regular API key). Use this action to provision new sub-accounts for customers when operating as a FraudLabs Pro reseller. Returns account credentials (username and password) upon successful creation. Prerequisites: - Must have a FraudLabs Pro Reseller account (apply at https://www.fraudlabspro.com/reseller/program) - Requires valid Reseller API key (different from standard FraudLabs Pro API key) - All required fields must contain valid data matching FraudLabs Pro validation rules Important: - Phone numbers should contain only digits (no +, -, spaces, or parentheses) - Country must be valid ISO 3166-1 alpha-2 code (e.g., US, GB, CA) - Industry must be a valid ID from 1-14\",\n input: FraudlabsProCreateAccountInput,\n output: FraudlabsProCreateAccountOutput,\n});\n"],"mappings":";;AAuCA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvC4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAChG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;EACjL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAChF,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;EAClJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,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,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC;EAC9K,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC;EAC7M,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS,CAAC;EACrP,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC;EAC9L,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC;EACvK,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAChI,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAClQ,CAOU;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const FraudlabsProFlpFeedbackOrderInput = zod.z.object({
|
|
|
12
12
|
]).describe("Feedback action: APPROVE (legitimate transaction), REJECT (fraudulent), or REJECT_BLACKLIST (fraudulent and add to permanent blacklist for enhanced future detection)."),
|
|
13
13
|
format: zod.z.enum(["json", "xml"]).default("json").describe("Response format. Defaults to 'json'.").optional()
|
|
14
14
|
}).describe("Request parameters for sending feedback on a screened order in FraudLabs Pro.");
|
|
15
|
-
const FraudlabsProFlpFeedbackOrderOutput = zod.z.object({ fraudlabspro_id: zod.z.string().describe("The FraudLabs Pro transaction ID that was updated.") }).describe("Response model returned after submitting order feedback.");
|
|
15
|
+
const FraudlabsProFlpFeedbackOrderOutput = zod.z.object({ fraudlabspro_id: zod.z.string().describe("The FraudLabs Pro transaction ID that was updated.").nullable() }).describe("Response model returned after submitting order feedback.");
|
|
16
16
|
const fraudlabsProFlpFeedbackOrder = require_action.action("FRAUDLABS_PRO_FLP_FEEDBACK_ORDER", {
|
|
17
17
|
slug: "fraudlabs_pro-flp-feedback-order",
|
|
18
18
|
name: "FLP Feedback Order",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flp-feedback-order.cjs","names":["z","action"],"sources":["../../src/actions/flp-feedback-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProFlpFeedbackOrderInput
|
|
1
|
+
{"version":3,"file":"flp-feedback-order.cjs","names":["z","action"],"sources":["../../src/actions/flp-feedback-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProFlpFeedbackOrderInput = z.object({\n id: z.string().describe(\"The fraudlabspro_id returned from a Screen Order API call. This identifies which transaction to provide feedback for.\"),\n key: z.string().describe(\"Your FraudLabs Pro API license key.\"),\n note: z.string().describe(\"Optional internal note explaining the reason for this feedback decision (e.g., 'Customer verified by phone', 'Known fraudster pattern').\").optional(),\n action: z.enum([\"APPROVE\", \"REJECT\", \"REJECT_BLACKLIST\"]).describe(\"Feedback action: APPROVE (legitimate transaction), REJECT (fraudulent), or REJECT_BLACKLIST (fraudulent and add to permanent blacklist for enhanced future detection).\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Defaults to 'json'.\").optional(),\n}).describe(\"Request parameters for sending feedback on a screened order in FraudLabs Pro.\");\nexport const FraudlabsProFlpFeedbackOrderOutput = z.object({\n fraudlabspro_id: z.string().describe(\"The FraudLabs Pro transaction ID that was updated.\").nullable(),\n}).describe(\"Response model returned after submitting order feedback.\");\n\nexport const fraudlabsProFlpFeedbackOrder = action(\"FRAUDLABS_PRO_FLP_FEEDBACK_ORDER\", {\n slug: \"fraudlabs_pro-flp-feedback-order\",\n name: \"FLP Feedback Order\",\n description: \"Submit fraud screening feedback to improve FraudLabs Pro's machine learning model. Use this after reviewing a screened order to mark it as approved, rejected, or blacklisted. This feedback trains the algorithm to better detect fraud patterns in future transactions.\",\n input: FraudlabsProFlpFeedbackOrderInput,\n output: FraudlabsProFlpFeedbackOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CAC/I,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CAC/K,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAkB,CAAC,CAAC,CAAC,SAAS,wKAAwK;CAC3O,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,EACtG,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/flp-feedback-order.d.ts
|
|
4
|
-
declare const FraudlabsProFlpFeedbackOrderInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FraudlabsProFlpFeedbackOrderInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
note: z.ZodOptional<z.ZodString>;
|
|
8
|
+
action: z.ZodEnum<{
|
|
9
|
+
APPROVE: "APPROVE";
|
|
10
|
+
REJECT: "REJECT";
|
|
11
|
+
REJECT_BLACKLIST: "REJECT_BLACKLIST";
|
|
12
|
+
}>;
|
|
13
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
|
+
json: "json";
|
|
15
|
+
xml: "xml";
|
|
16
|
+
}>>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const FraudlabsProFlpFeedbackOrderOutput: z.ZodObject<{
|
|
19
|
+
fraudlabspro_id: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const fraudlabsProFlpFeedbackOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
id: string;
|
|
23
|
+
key: string;
|
|
24
|
+
action: "APPROVE" | "REJECT" | "REJECT_BLACKLIST";
|
|
25
|
+
note?: string | undefined;
|
|
26
|
+
format?: "json" | "xml" | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
fraudlabspro_id: string | null;
|
|
29
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { fraudlabsProFlpFeedbackOrder };
|
|
9
32
|
//# sourceMappingURL=flp-feedback-order.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flp-feedback-order.d.cts","names":[],"sources":["../../src/actions/flp-feedback-order.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"flp-feedback-order.d.cts","names":[],"sources":["../../src/actions/flp-feedback-order.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAOjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/flp-feedback-order.d.ts
|
|
4
|
-
declare const FraudlabsProFlpFeedbackOrderInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FraudlabsProFlpFeedbackOrderInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
note: z.ZodOptional<z.ZodString>;
|
|
8
|
+
action: z.ZodEnum<{
|
|
9
|
+
APPROVE: "APPROVE";
|
|
10
|
+
REJECT: "REJECT";
|
|
11
|
+
REJECT_BLACKLIST: "REJECT_BLACKLIST";
|
|
12
|
+
}>;
|
|
13
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
|
+
json: "json";
|
|
15
|
+
xml: "xml";
|
|
16
|
+
}>>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const FraudlabsProFlpFeedbackOrderOutput: z.ZodObject<{
|
|
19
|
+
fraudlabspro_id: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const fraudlabsProFlpFeedbackOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
id: string;
|
|
23
|
+
key: string;
|
|
24
|
+
action: "APPROVE" | "REJECT" | "REJECT_BLACKLIST";
|
|
25
|
+
note?: string | undefined;
|
|
26
|
+
format?: "json" | "xml" | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
fraudlabspro_id: string | null;
|
|
29
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { fraudlabsProFlpFeedbackOrder };
|
|
9
32
|
//# sourceMappingURL=flp-feedback-order.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flp-feedback-order.d.mts","names":[],"sources":["../../src/actions/flp-feedback-order.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"flp-feedback-order.d.mts","names":[],"sources":["../../src/actions/flp-feedback-order.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAOjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -15,7 +15,7 @@ const fraudlabsProFlpFeedbackOrder = action("FRAUDLABS_PRO_FLP_FEEDBACK_ORDER",
|
|
|
15
15
|
]).describe("Feedback action: APPROVE (legitimate transaction), REJECT (fraudulent), or REJECT_BLACKLIST (fraudulent and add to permanent blacklist for enhanced future detection)."),
|
|
16
16
|
format: z.enum(["json", "xml"]).default("json").describe("Response format. Defaults to 'json'.").optional()
|
|
17
17
|
}).describe("Request parameters for sending feedback on a screened order in FraudLabs Pro."),
|
|
18
|
-
output: z.object({ fraudlabspro_id: z.string().describe("The FraudLabs Pro transaction ID that was updated.") }).describe("Response model returned after submitting order feedback.")
|
|
18
|
+
output: z.object({ fraudlabspro_id: z.string().describe("The FraudLabs Pro transaction ID that was updated.").nullable() }).describe("Response model returned after submitting order feedback.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { fraudlabsProFlpFeedbackOrder };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flp-feedback-order.mjs","names":[],"sources":["../../src/actions/flp-feedback-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProFlpFeedbackOrderInput
|
|
1
|
+
{"version":3,"file":"flp-feedback-order.mjs","names":[],"sources":["../../src/actions/flp-feedback-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProFlpFeedbackOrderInput = z.object({\n id: z.string().describe(\"The fraudlabspro_id returned from a Screen Order API call. This identifies which transaction to provide feedback for.\"),\n key: z.string().describe(\"Your FraudLabs Pro API license key.\"),\n note: z.string().describe(\"Optional internal note explaining the reason for this feedback decision (e.g., 'Customer verified by phone', 'Known fraudster pattern').\").optional(),\n action: z.enum([\"APPROVE\", \"REJECT\", \"REJECT_BLACKLIST\"]).describe(\"Feedback action: APPROVE (legitimate transaction), REJECT (fraudulent), or REJECT_BLACKLIST (fraudulent and add to permanent blacklist for enhanced future detection).\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Defaults to 'json'.\").optional(),\n}).describe(\"Request parameters for sending feedback on a screened order in FraudLabs Pro.\");\nexport const FraudlabsProFlpFeedbackOrderOutput = z.object({\n fraudlabspro_id: z.string().describe(\"The FraudLabs Pro transaction ID that was updated.\").nullable(),\n}).describe(\"Response model returned after submitting order feedback.\");\n\nexport const fraudlabsProFlpFeedbackOrder = action(\"FRAUDLABS_PRO_FLP_FEEDBACK_ORDER\", {\n slug: \"fraudlabs_pro-flp-feedback-order\",\n name: \"FLP Feedback Order\",\n description: \"Submit fraud screening feedback to improve FraudLabs Pro's machine learning model. Use this after reviewing a screened order to mark it as approved, rejected, or blacklisted. This feedback trains the algorithm to better detect fraud patterns in future transactions.\",\n input: FraudlabsProFlpFeedbackOrderInput,\n output: FraudlabsProFlpFeedbackOrderOutput,\n});\n"],"mappings":";;AAeA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;EAC/I,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;EAC/K,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAU;EAAkB,CAAC,CAAC,CAAC,SAAS,wKAAwK;EAC3O,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,+EASH;CACP,QATgD,EAAE,OAAO,EACzD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,EACtG,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
|