@keystrokehq/fraudlabs_pro 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-account.cjs +13 -13
  4. package/dist/actions/create-account.cjs.map +1 -1
  5. package/dist/actions/create-account.d.cts +14 -30
  6. package/dist/actions/create-account.d.mts +14 -30
  7. package/dist/actions/create-account.mjs +13 -13
  8. package/dist/actions/create-account.mjs.map +1 -1
  9. package/dist/actions/flp-feedback-order.d.cts +1 -3
  10. package/dist/actions/flp-feedback-order.d.mts +1 -3
  11. package/dist/actions/flp-screen-order.cjs +48 -48
  12. package/dist/actions/flp-screen-order.cjs.map +1 -1
  13. package/dist/actions/flp-screen-order.d.cts +49 -122
  14. package/dist/actions/flp-screen-order.d.mts +49 -122
  15. package/dist/actions/flp-screen-order.mjs +48 -48
  16. package/dist/actions/flp-screen-order.mjs.map +1 -1
  17. package/dist/actions/get-order-result2.cjs +62 -62
  18. package/dist/actions/get-order-result2.cjs.map +1 -1
  19. package/dist/actions/get-order-result2.d.cts +63 -134
  20. package/dist/actions/get-order-result2.d.mts +63 -134
  21. package/dist/actions/get-order-result2.mjs +62 -62
  22. package/dist/actions/get-order-result2.mjs.map +1 -1
  23. package/dist/actions/get-sms-verification-result.d.cts +1 -3
  24. package/dist/actions/get-sms-verification-result.d.mts +1 -3
  25. package/dist/actions/send-sms-verification.d.cts +1 -4
  26. package/dist/actions/send-sms-verification.d.mts +1 -4
  27. package/dist/actions/subscribe-plan.cjs +4 -4
  28. package/dist/actions/subscribe-plan.cjs.map +1 -1
  29. package/dist/actions/subscribe-plan.d.cts +5 -12
  30. package/dist/actions/subscribe-plan.d.mts +5 -12
  31. package/dist/actions/subscribe-plan.mjs +4 -4
  32. package/dist/actions/subscribe-plan.mjs.map +1 -1
  33. package/dist/actions/webhook-order-status-changed.cjs +1 -1
  34. package/dist/actions/webhook-order-status-changed.cjs.map +1 -1
  35. package/dist/actions/webhook-order-status-changed.d.cts +2 -6
  36. package/dist/actions/webhook-order-status-changed.d.cts.map +1 -1
  37. package/dist/actions/webhook-order-status-changed.d.mts +2 -6
  38. package/dist/actions/webhook-order-status-changed.d.mts.map +1 -1
  39. package/dist/actions/webhook-order-status-changed.mjs +1 -1
  40. package/dist/actions/webhook-order-status-changed.mjs.map +1 -1
  41. package/package.json +1 -1
@@ -17,10 +17,10 @@ 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.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
- plan_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
- rule_limit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
23
- query_limit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
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
26
  }, z.core.$strip>;
@@ -29,14 +29,7 @@ declare const fraudlabsProSubscribePlan: import("@keystrokehq/action").WorkflowA
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,10 +17,10 @@ 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.preprocess((value) => value === null ? void 0 : value, z.string().describe("API key issued for the subscribed plan.").optional()),
21
- plan_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the subscribed plan.").optional()),
22
- rule_limit: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Maximum number of rules allowed for the plan.").optional()),
23
- query_limit: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Total queries available for the subscribed plan.").optional()),
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
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.")
@@ -1 +1 @@
1
- {"version":3,"file":"subscribe-plan.mjs","names":[],"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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"API key issued for the subscribed plan.\").optional()),\n plan_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the subscribed plan.\").optional()),\n rule_limit: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Maximum number of rules allowed for the plan.\").optional()),\n query_limit: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total queries available for the subscribed plan.\").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}).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":";;AAmBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACjD,MAAM,EAAE,KAAK;GAAC;GAAS;GAAS;GAAU;GAAS;EAAY,CAAC,CAAC,CAAC,SAAS,mDAAmD;EAC9H,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAChI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACvE,CAAC,CAAC,CAAC,SAAS,kEAcH;CACP,QAd6C,EAAE,OAAO;EACtD,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;EAChJ,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC;EACvI,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC;EAC/J,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;EACnK,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,0RAOF;AACV,CAAC"}
1
+ {"version":3,"file":"subscribe-plan.mjs","names":[],"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}).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":";;AAmBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACjD,MAAM,EAAE,KAAK;GAAC;GAAS;GAAS;GAAU;GAAS;EAAY,CAAC,CAAC,CAAC,SAAS,mDAAmD;EAC9H,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAChI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACvE,CAAC,CAAC,CAAC,SAAS,kEAcH;CACP,QAd6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,0RAOF;AACV,CAAC"}
@@ -9,7 +9,7 @@ const FraudlabsProWebhookOrderStatusChangedInput = zod.z.object({
9
9
  payload_format: zod.z.enum(["form", "json"]).default("form").describe("Payload encoding format for the test webhook POST").optional()
10
10
  }).describe("Request parameters for testing an order status change webhook delivery.\nNote: FraudLabs Pro does not provide an API to register webhooks; this action\nsends a test POST to your callback URL to help you validate your endpoint.");
11
11
  const FraudlabsProWebhookOrderStatusChangedOutput = zod.z.object({
12
- echoed: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Echoed response content from the callback, if JSON").optional()),
12
+ echoed: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Echoed response content from the callback, if JSON").nullable().optional(),
13
13
  message: zod.z.string().describe("Information about webhook test delivery status").nullable(),
14
14
  status_code: zod.z.number().int().describe("HTTP status code returned by callback").nullable()
15
15
  }).describe("Response model for webhook test delivery.");
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-order-status-changed.cjs","names":["z","action"],"sources":["../../src/actions/webhook-order-status-changed.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProWebhookOrderStatusChangedInput = z.object({\n test_id: z.string().describe(\"Test transaction id to include in the webhook payload\").optional(),\n test_action: z.enum([\"APPROVE\", \"REJECT\"]).describe(\"FraudLabs Pro status to include in the webhook payload\").optional(),\n callback_url: z.string().describe(\"URL to receive FraudLabs Pro order status change notifications\"),\n extra_fields: z.object({}).describe(\"Additional key/value pairs to include in the payload\").optional(),\n payload_format: z.enum([\"form\", \"json\"]).default(\"form\").describe(\"Payload encoding format for the test webhook POST\").optional(),\n}).describe(\"Request parameters for testing an order status change webhook delivery.\\nNote: FraudLabs Pro does not provide an API to register webhooks; this action\\nsends a test POST to your callback URL to help you validate your endpoint.\");\nexport const FraudlabsProWebhookOrderStatusChangedOutput = z.object({\n echoed: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Echoed response content from the callback, if JSON\").optional()),\n message: z.string().describe(\"Information about webhook test delivery status\").nullable(),\n status_code: z.number().int().describe(\"HTTP status code returned by callback\").nullable(),\n}).describe(\"Response model for webhook test delivery.\");\n\nexport const fraudlabsProWebhookOrderStatusChanged = action(\"FRAUDLABS_PRO_WEBHOOK_ORDER_STATUS_CHANGED\", {\n slug: \"fraudlabs_pro-webhook-order-status-changed\",\n name: \"Test Order Status Changed Webhook Delivery\",\n description: \"Tool to send a test webhook payload to the provided callback URL for FraudLabs Pro order status change notifications. This helps validate your endpoint behavior. Important: FraudLabs Pro webhook registration must be configured manually via dashboard.\",\n input: FraudlabsProWebhookOrderStatusChangedInput,\n output: FraudlabsProWebhookOrderStatusChangedOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,oOAAoO;AAChP,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;CACjL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-order-status-changed.cjs","names":["z","action"],"sources":["../../src/actions/webhook-order-status-changed.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProWebhookOrderStatusChangedInput = z.object({\n test_id: z.string().describe(\"Test transaction id to include in the webhook payload\").optional(),\n test_action: z.enum([\"APPROVE\", \"REJECT\"]).describe(\"FraudLabs Pro status to include in the webhook payload\").optional(),\n callback_url: z.string().describe(\"URL to receive FraudLabs Pro order status change notifications\"),\n extra_fields: z.object({}).describe(\"Additional key/value pairs to include in the payload\").optional(),\n payload_format: z.enum([\"form\", \"json\"]).default(\"form\").describe(\"Payload encoding format for the test webhook POST\").optional(),\n}).describe(\"Request parameters for testing an order status change webhook delivery.\\nNote: FraudLabs Pro does not provide an API to register webhooks; this action\\nsends a test POST to your callback URL to help you validate your endpoint.\");\nexport const FraudlabsProWebhookOrderStatusChangedOutput = z.object({\n echoed: z.record(z.string(), z.unknown()).describe(\"Echoed response content from the callback, if JSON\").nullable().optional(),\n message: z.string().describe(\"Information about webhook test delivery status\").nullable(),\n status_code: z.number().int().describe(\"HTTP status code returned by callback\").nullable(),\n}).describe(\"Response model for webhook test delivery.\");\n\nexport const fraudlabsProWebhookOrderStatusChanged = action(\"FRAUDLABS_PRO_WEBHOOK_ORDER_STATUS_CHANGED\", {\n slug: \"fraudlabs_pro-webhook-order-status-changed\",\n name: \"Test Order Status Changed Webhook Delivery\",\n description: \"Tool to send a test webhook payload to the provided callback URL for FraudLabs Pro order status change notifications. This helps validate your endpoint behavior. Important: FraudLabs Pro webhook registration must be configured manually via dashboard.\",\n input: FraudlabsProWebhookOrderStatusChangedInput,\n output: FraudlabsProWebhookOrderStatusChangedOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,oOAAoO;AAChP,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -15,7 +15,7 @@ declare const FraudlabsProWebhookOrderStatusChangedInput: z.ZodObject<{
15
15
  }>>>;
16
16
  }, z.core.$strip>;
17
17
  declare const FraudlabsProWebhookOrderStatusChangedOutput: z.ZodObject<{
18
- echoed: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ echoed: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
19
  message: z.ZodNullable<z.ZodString>;
20
20
  status_code: z.ZodNullable<z.ZodNumber>;
21
21
  }, z.core.$strip>;
@@ -25,11 +25,7 @@ declare const fraudlabsProWebhookOrderStatusChanged: import("@keystrokehq/action
25
25
  test_action?: "APPROVE" | "REJECT" | undefined;
26
26
  extra_fields?: Record<string, never> | undefined;
27
27
  payload_format?: "json" | "form" | undefined;
28
- }, {
29
- message: string | null;
30
- status_code: number | null;
31
- echoed?: Record<string, unknown> | undefined;
32
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
29
  //#endregion
34
30
  export { fraudlabsProWebhookOrderStatusChanged };
35
31
  //# sourceMappingURL=webhook-order-status-changed.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-order-status-changed.d.cts","names":[],"sources":["../../src/actions/webhook-order-status-changed.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;cAM3C,qCAAA,gCAAqC,wBAAA;;;;iBAMhD,MAAA;;;;;WAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"webhook-order-status-changed.d.cts","names":[],"sources":["../../src/actions/webhook-order-status-changed.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;cAM3C,qCAAA,gCAAqC,wBAAA;;;;iBAMhD,MAAA"}
@@ -15,7 +15,7 @@ declare const FraudlabsProWebhookOrderStatusChangedInput: z.ZodObject<{
15
15
  }>>>;
16
16
  }, z.core.$strip>;
17
17
  declare const FraudlabsProWebhookOrderStatusChangedOutput: z.ZodObject<{
18
- echoed: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ echoed: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
19
  message: z.ZodNullable<z.ZodString>;
20
20
  status_code: z.ZodNullable<z.ZodNumber>;
21
21
  }, z.core.$strip>;
@@ -25,11 +25,7 @@ declare const fraudlabsProWebhookOrderStatusChanged: import("@keystrokehq/action
25
25
  test_action?: "APPROVE" | "REJECT" | undefined;
26
26
  extra_fields?: Record<string, never> | undefined;
27
27
  payload_format?: "json" | "form" | undefined;
28
- }, {
29
- message: string | null;
30
- status_code: number | null;
31
- echoed?: Record<string, unknown> | undefined;
32
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
29
  //#endregion
34
30
  export { fraudlabsProWebhookOrderStatusChanged };
35
31
  //# sourceMappingURL=webhook-order-status-changed.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-order-status-changed.d.mts","names":[],"sources":["../../src/actions/webhook-order-status-changed.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;cAM3C,qCAAA,gCAAqC,wBAAA;;;;iBAMhD,MAAA;;;;;WAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"webhook-order-status-changed.d.mts","names":[],"sources":["../../src/actions/webhook-order-status-changed.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;cAM3C,qCAAA,gCAAqC,wBAAA;;;;iBAMhD,MAAA"}
@@ -12,7 +12,7 @@ const fraudlabsProWebhookOrderStatusChanged = action("FRAUDLABS_PRO_WEBHOOK_ORDE
12
12
  payload_format: z.enum(["form", "json"]).default("form").describe("Payload encoding format for the test webhook POST").optional()
13
13
  }).describe("Request parameters for testing an order status change webhook delivery.\nNote: FraudLabs Pro does not provide an API to register webhooks; this action\nsends a test POST to your callback URL to help you validate your endpoint."),
14
14
  output: z.object({
15
- echoed: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Echoed response content from the callback, if JSON").optional()),
15
+ echoed: z.record(z.string(), z.unknown()).describe("Echoed response content from the callback, if JSON").nullable().optional(),
16
16
  message: z.string().describe("Information about webhook test delivery status").nullable(),
17
17
  status_code: z.number().int().describe("HTTP status code returned by callback").nullable()
18
18
  }).describe("Response model for webhook test delivery.")
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-order-status-changed.mjs","names":[],"sources":["../../src/actions/webhook-order-status-changed.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProWebhookOrderStatusChangedInput = z.object({\n test_id: z.string().describe(\"Test transaction id to include in the webhook payload\").optional(),\n test_action: z.enum([\"APPROVE\", \"REJECT\"]).describe(\"FraudLabs Pro status to include in the webhook payload\").optional(),\n callback_url: z.string().describe(\"URL to receive FraudLabs Pro order status change notifications\"),\n extra_fields: z.object({}).describe(\"Additional key/value pairs to include in the payload\").optional(),\n payload_format: z.enum([\"form\", \"json\"]).default(\"form\").describe(\"Payload encoding format for the test webhook POST\").optional(),\n}).describe(\"Request parameters for testing an order status change webhook delivery.\\nNote: FraudLabs Pro does not provide an API to register webhooks; this action\\nsends a test POST to your callback URL to help you validate your endpoint.\");\nexport const FraudlabsProWebhookOrderStatusChangedOutput = z.object({\n echoed: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Echoed response content from the callback, if JSON\").optional()),\n message: z.string().describe(\"Information about webhook test delivery status\").nullable(),\n status_code: z.number().int().describe(\"HTTP status code returned by callback\").nullable(),\n}).describe(\"Response model for webhook test delivery.\");\n\nexport const fraudlabsProWebhookOrderStatusChanged = action(\"FRAUDLABS_PRO_WEBHOOK_ORDER_STATUS_CHANGED\", {\n slug: \"fraudlabs_pro-webhook-order-status-changed\",\n name: \"Test Order Status Changed Webhook Delivery\",\n description: \"Tool to send a test webhook payload to the provided callback URL for FraudLabs Pro order status change notifications. This helps validate your endpoint behavior. Important: FraudLabs Pro webhook registration must be configured manually via dashboard.\",\n input: FraudlabsProWebhookOrderStatusChangedInput,\n output: FraudlabsProWebhookOrderStatusChangedOutput,\n});\n"],"mappings":";;AAiBA,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBwD,EAAE,OAAO;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,aAAa,EAAE,KAAK,CAAC,WAAW,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACrG,gBAAgB,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,oOAWH;CACP,QAXyD,EAAE,OAAO;EAClE,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;EACjL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-order-status-changed.mjs","names":[],"sources":["../../src/actions/webhook-order-status-changed.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FraudlabsProWebhookOrderStatusChangedInput = z.object({\n test_id: z.string().describe(\"Test transaction id to include in the webhook payload\").optional(),\n test_action: z.enum([\"APPROVE\", \"REJECT\"]).describe(\"FraudLabs Pro status to include in the webhook payload\").optional(),\n callback_url: z.string().describe(\"URL to receive FraudLabs Pro order status change notifications\"),\n extra_fields: z.object({}).describe(\"Additional key/value pairs to include in the payload\").optional(),\n payload_format: z.enum([\"form\", \"json\"]).default(\"form\").describe(\"Payload encoding format for the test webhook POST\").optional(),\n}).describe(\"Request parameters for testing an order status change webhook delivery.\\nNote: FraudLabs Pro does not provide an API to register webhooks; this action\\nsends a test POST to your callback URL to help you validate your endpoint.\");\nexport const FraudlabsProWebhookOrderStatusChangedOutput = z.object({\n echoed: z.record(z.string(), z.unknown()).describe(\"Echoed response content from the callback, if JSON\").nullable().optional(),\n message: z.string().describe(\"Information about webhook test delivery status\").nullable(),\n status_code: z.number().int().describe(\"HTTP status code returned by callback\").nullable(),\n}).describe(\"Response model for webhook test delivery.\");\n\nexport const fraudlabsProWebhookOrderStatusChanged = action(\"FRAUDLABS_PRO_WEBHOOK_ORDER_STATUS_CHANGED\", {\n slug: \"fraudlabs_pro-webhook-order-status-changed\",\n name: \"Test Order Status Changed Webhook Delivery\",\n description: \"Tool to send a test webhook payload to the provided callback URL for FraudLabs Pro order status change notifications. This helps validate your endpoint behavior. Important: FraudLabs Pro webhook registration must be configured manually via dashboard.\",\n input: FraudlabsProWebhookOrderStatusChangedInput,\n output: FraudlabsProWebhookOrderStatusChangedOutput,\n});\n"],"mappings":";;AAiBA,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBwD,EAAE,OAAO;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,aAAa,EAAE,KAAK,CAAC,WAAW,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACrG,gBAAgB,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,oOAWH;CACP,QAXyD,EAAE,OAAO;EAClE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/fraudlabs_pro",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"