@keystrokehq/postgrid_verify 0.1.5 → 0.1.6
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/autocomplete-address.cjs +1 -0
- package/dist/actions/autocomplete-address.cjs.map +1 -1
- package/dist/actions/autocomplete-address.d.cts +3 -20
- package/dist/actions/autocomplete-address.d.cts.map +1 -1
- package/dist/actions/autocomplete-address.d.mts +3 -20
- package/dist/actions/autocomplete-address.d.mts.map +1 -1
- package/dist/actions/autocomplete-address.mjs +1 -0
- package/dist/actions/autocomplete-address.mjs.map +1 -1
- package/dist/actions/autocomplete-intl-address.cjs +1 -0
- package/dist/actions/autocomplete-intl-address.cjs.map +1 -1
- package/dist/actions/autocomplete-intl-address.d.cts +3 -15
- package/dist/actions/autocomplete-intl-address.d.cts.map +1 -1
- package/dist/actions/autocomplete-intl-address.d.mts +3 -15
- package/dist/actions/autocomplete-intl-address.d.mts.map +1 -1
- package/dist/actions/autocomplete-intl-address.mjs +1 -0
- package/dist/actions/autocomplete-intl-address.mjs.map +1 -1
- package/dist/actions/get-autocomplete-previews.cjs +1 -0
- package/dist/actions/get-autocomplete-previews.cjs.map +1 -1
- package/dist/actions/get-autocomplete-previews.d.cts +3 -17
- package/dist/actions/get-autocomplete-previews.d.cts.map +1 -1
- package/dist/actions/get-autocomplete-previews.d.mts +3 -17
- package/dist/actions/get-autocomplete-previews.d.mts.map +1 -1
- package/dist/actions/get-autocomplete-previews.mjs +1 -0
- package/dist/actions/get-autocomplete-previews.mjs.map +1 -1
- package/dist/actions/get-intl-autocomplete-previews.cjs +1 -0
- package/dist/actions/get-intl-autocomplete-previews.cjs.map +1 -1
- package/dist/actions/get-intl-autocomplete-previews.d.cts +3 -22
- package/dist/actions/get-intl-autocomplete-previews.d.cts.map +1 -1
- package/dist/actions/get-intl-autocomplete-previews.d.mts +3 -22
- package/dist/actions/get-intl-autocomplete-previews.d.mts.map +1 -1
- package/dist/actions/get-intl-autocomplete-previews.mjs +1 -0
- package/dist/actions/get-intl-autocomplete-previews.mjs.map +1 -1
- package/dist/actions/get-lookup-info.cjs +1 -0
- package/dist/actions/get-lookup-info.cjs.map +1 -1
- package/dist/actions/get-lookup-info.d.cts +3 -13
- package/dist/actions/get-lookup-info.d.cts.map +1 -1
- package/dist/actions/get-lookup-info.d.mts +3 -13
- package/dist/actions/get-lookup-info.d.mts.map +1 -1
- package/dist/actions/get-lookup-info.mjs +1 -0
- package/dist/actions/get-lookup-info.mjs.map +1 -1
- package/dist/actions/lookup-city-state-from-postal.cjs +1 -0
- package/dist/actions/lookup-city-state-from-postal.cjs.map +1 -1
- package/dist/actions/lookup-city-state-from-postal.d.cts +3 -15
- package/dist/actions/lookup-city-state-from-postal.d.cts.map +1 -1
- package/dist/actions/lookup-city-state-from-postal.d.mts +3 -15
- package/dist/actions/lookup-city-state-from-postal.d.mts.map +1 -1
- package/dist/actions/lookup-city-state-from-postal.mjs +1 -0
- package/dist/actions/lookup-city-state-from-postal.mjs.map +1 -1
- package/dist/actions/parse-address.cjs +1 -0
- package/dist/actions/parse-address.cjs.map +1 -1
- package/dist/actions/parse-address.d.cts +3 -15
- package/dist/actions/parse-address.d.cts.map +1 -1
- package/dist/actions/parse-address.d.mts +3 -15
- package/dist/actions/parse-address.d.mts.map +1 -1
- package/dist/actions/parse-address.mjs +1 -0
- package/dist/actions/parse-address.mjs.map +1 -1
- package/dist/actions/suggest-addresses.cjs +1 -0
- package/dist/actions/suggest-addresses.cjs.map +1 -1
- package/dist/actions/suggest-addresses.d.cts +3 -23
- package/dist/actions/suggest-addresses.d.cts.map +1 -1
- package/dist/actions/suggest-addresses.d.mts +3 -23
- package/dist/actions/suggest-addresses.d.mts.map +1 -1
- package/dist/actions/suggest-addresses.mjs +1 -0
- package/dist/actions/suggest-addresses.mjs.map +1 -1
- package/dist/actions/verify-address.cjs +1 -0
- package/dist/actions/verify-address.cjs.map +1 -1
- package/dist/actions/verify-address.d.cts +3 -23
- package/dist/actions/verify-address.d.cts.map +1 -1
- package/dist/actions/verify-address.d.mts +3 -23
- package/dist/actions/verify-address.d.mts.map +1 -1
- package/dist/actions/verify-address.mjs +1 -0
- package/dist/actions/verify-address.mjs.map +1 -1
- package/dist/actions/verify-batch-addresses.cjs +1 -0
- package/dist/actions/verify-batch-addresses.cjs.map +1 -1
- package/dist/actions/verify-batch-addresses.d.cts +3 -26
- package/dist/actions/verify-batch-addresses.d.cts.map +1 -1
- package/dist/actions/verify-batch-addresses.d.mts +3 -26
- package/dist/actions/verify-batch-addresses.d.mts.map +1 -1
- package/dist/actions/verify-batch-addresses.mjs +1 -0
- package/dist/actions/verify-batch-addresses.mjs.map +1 -1
- package/dist/actions/verify-international-address.cjs +1 -0
- package/dist/actions/verify-international-address.cjs.map +1 -1
- package/dist/actions/verify-international-address.d.cts +3 -17
- package/dist/actions/verify-international-address.d.cts.map +1 -1
- package/dist/actions/verify-international-address.d.mts +3 -17
- package/dist/actions/verify-international-address.d.mts.map +1 -1
- package/dist/actions/verify-international-address.mjs +1 -0
- package/dist/actions/verify-international-address.mjs.map +1 -1
- package/dist/actions/verify-intl-addresses-batch.cjs +1 -0
- package/dist/actions/verify-intl-addresses-batch.cjs.map +1 -1
- package/dist/actions/verify-intl-addresses-batch.d.cts +3 -27
- package/dist/actions/verify-intl-addresses-batch.d.cts.map +1 -1
- package/dist/actions/verify-intl-addresses-batch.d.mts +3 -27
- package/dist/actions/verify-intl-addresses-batch.d.mts.map +1 -1
- package/dist/actions/verify-intl-addresses-batch.mjs +1 -0
- package/dist/actions/verify-intl-addresses-batch.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { postgridVerify } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/verify-address.d.ts
|
|
@@ -26,29 +28,7 @@ declare const PostgridVerifyVerifyAddressOutput: z.ZodObject<{
|
|
|
26
28
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const postgridVerifyVerifyAddress:
|
|
30
|
-
city?: string | undefined;
|
|
31
|
-
line1?: string | undefined;
|
|
32
|
-
line2?: string | undefined;
|
|
33
|
-
address?: string | undefined;
|
|
34
|
-
country?: string | undefined;
|
|
35
|
-
geocode?: boolean | undefined;
|
|
36
|
-
postalOrZip?: string | undefined;
|
|
37
|
-
includeDetails?: boolean | undefined;
|
|
38
|
-
provinceOrState?: string | undefined;
|
|
39
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
generic_api_key: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
46
|
-
connectionId: z.ZodString;
|
|
47
|
-
entityId: z.ZodString;
|
|
48
|
-
instanceId: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>;
|
|
31
|
+
declare const postgridVerifyVerifyAddress: AppAction<typeof PostgridVerifyVerifyAddressInput, typeof PostgridVerifyVerifyAddressOutput, typeof postgridVerify.credential>;
|
|
52
32
|
//#endregion
|
|
53
33
|
export { postgridVerifyVerifyAddress };
|
|
54
34
|
//# sourceMappingURL=verify-address.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-address.d.mts","names":[],"sources":["../../src/actions/verify-address.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-address.d.mts","names":[],"sources":["../../src/actions/verify-address.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;cAqBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-address.mjs","names":[],"sources":["../../src/actions/verify-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostgridVerifyVerifyAddressInput = z.object({\n city: z.string().describe(\"City name. Used with structured addresses.\").optional(),\n line1: z.string().describe(\"First line of the address. Use for structured addresses. Either 'address' or 'line1' must be provided.\").optional(),\n line2: z.string().describe(\"Second line of the address (optional). Only used with structured addresses.\").optional(),\n address: z.string().describe(\"Freeform address written on a single line (e.g., '22-20 bay st, floor 11, toronto, on'). Use this for unstructured addresses. Either 'address' or 'line1' must be provided.\").optional(),\n country: z.string().describe(\"ISO 2-letter country code (US or CA). Used with structured addresses.\").optional(),\n geocode: z.boolean().describe(\"If true, include geocoding data (latitude/longitude) in the response. Uses an additional lookup credit.\").optional(),\n postalOrZip: z.string().describe(\"ZIP or postal code. Used with structured addresses.\").optional(),\n includeDetails: z.boolean().describe(\"If true, include additional address details in the response. Default is false.\").optional(),\n provinceOrState: z.string().describe(\"State or province code (e.g., 'CA', 'ON'). Used with structured addresses.\").optional(),\n});\nconst PostgridVerifyVerifyAddress_VerifyAddressResponseDataSchema = z.object({\n city: z.string().describe(\"City of the verified address.\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address.\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address.\").nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Errors per field if any validation issues occurred.\").nullable().optional(),\n status: z.string().describe(\"Verification status (e.g., 'verified', 'corrected', 'unverified').\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address.\").nullable().optional(),\n postalOrZip: z.string().describe(\"ZIP or postal code of the verified address.\").nullable().optional(),\n provinceOrState: z.string().describe(\"State or province of the verified address.\").nullable().optional(),\n}).passthrough();\nexport const PostgridVerifyVerifyAddressOutput = z.object({\n data: PostgridVerifyVerifyAddress_VerifyAddressResponseDataSchema.nullable().optional(),\n status: z.string().describe(\"Overall request status (e.g., 'success').\").nullable().optional(),\n message: z.string().describe(\"Message providing details about the verification result.\").nullable().optional(),\n}).passthrough();\n\nexport const postgridVerifyVerifyAddress = action(\"POSTGRID_VERIFY_VERIFY_ADDRESS\", {\n slug: \"postgrid_verify-verify-address\",\n name: \"Verify Address\",\n description: \"Tool to verify and standardize a US or Canadian address. Supports both freeform addresses (single-line) and structured addresses (with separate line1, city, etc.). Use includeDetails=true for additional metadata or geocode=true for latitude/longitude.\",\n input: PostgridVerifyVerifyAddressInput,\n output: PostgridVerifyVerifyAddressOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-address.mjs","names":[],"sources":["../../src/actions/verify-address.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { postgridVerify } from \"../app\";\n\nexport const PostgridVerifyVerifyAddressInput = z.object({\n city: z.string().describe(\"City name. Used with structured addresses.\").optional(),\n line1: z.string().describe(\"First line of the address. Use for structured addresses. Either 'address' or 'line1' must be provided.\").optional(),\n line2: z.string().describe(\"Second line of the address (optional). Only used with structured addresses.\").optional(),\n address: z.string().describe(\"Freeform address written on a single line (e.g., '22-20 bay st, floor 11, toronto, on'). Use this for unstructured addresses. Either 'address' or 'line1' must be provided.\").optional(),\n country: z.string().describe(\"ISO 2-letter country code (US or CA). Used with structured addresses.\").optional(),\n geocode: z.boolean().describe(\"If true, include geocoding data (latitude/longitude) in the response. Uses an additional lookup credit.\").optional(),\n postalOrZip: z.string().describe(\"ZIP or postal code. Used with structured addresses.\").optional(),\n includeDetails: z.boolean().describe(\"If true, include additional address details in the response. Default is false.\").optional(),\n provinceOrState: z.string().describe(\"State or province code (e.g., 'CA', 'ON'). Used with structured addresses.\").optional(),\n});\nconst PostgridVerifyVerifyAddress_VerifyAddressResponseDataSchema = z.object({\n city: z.string().describe(\"City of the verified address.\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address.\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address.\").nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Errors per field if any validation issues occurred.\").nullable().optional(),\n status: z.string().describe(\"Verification status (e.g., 'verified', 'corrected', 'unverified').\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address.\").nullable().optional(),\n postalOrZip: z.string().describe(\"ZIP or postal code of the verified address.\").nullable().optional(),\n provinceOrState: z.string().describe(\"State or province of the verified address.\").nullable().optional(),\n}).passthrough();\nexport const PostgridVerifyVerifyAddressOutput = z.object({\n data: PostgridVerifyVerifyAddress_VerifyAddressResponseDataSchema.nullable().optional(),\n status: z.string().describe(\"Overall request status (e.g., 'success').\").nullable().optional(),\n message: z.string().describe(\"Message providing details about the verification result.\").nullable().optional(),\n}).passthrough();\n\nexport const postgridVerifyVerifyAddress: AppAction<\n typeof PostgridVerifyVerifyAddressInput,\n typeof PostgridVerifyVerifyAddressOutput,\n typeof postgridVerify.credential\n> = action(\"POSTGRID_VERIFY_VERIFY_ADDRESS\", {\n slug: \"postgrid_verify-verify-address\",\n name: \"Verify Address\",\n description: \"Tool to verify and standardize a US or Canadian address. Supports both freeform addresses (single-line) and structured addresses (with separate line1, city, etc.). Use includeDetails=true for additional metadata or geocode=true for latitude/longitude.\",\n input: PostgridVerifyVerifyAddressInput,\n output: PostgridVerifyVerifyAddressOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC9I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CACrN,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAClJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAChI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AAC9H,CAAC;AACD,MAAM,8DAA8D,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf+C,EAAE,OAAO;EACxD,MAAM,4DAA4D,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-batch-addresses.cjs","names":["z","action"],"sources":["../../src/actions/verify-batch-addresses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostgridVerifyVerifyBatchAddressesInput = z.object({\n geocode: z.boolean().default(false).describe(\"If true and your account has geocoding enabled, provides geolocation info (latitude/longitude).\").optional(),\n addresses: z.array(z.union([z.string(), z.object({\n city: z.string().nullable().optional(),\n line1: z.string().describe(\"First line of the address (street number and name).\"),\n line2: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n postalOrZip: z.string().nullable().optional(),\n provinceOrState: z.string().nullable().optional(),\n}).passthrough().describe(\"Structured address object with individual fields.\")])).describe(\"List of addresses to verify. Each address can be either a freeform string or a structured object with fields (line1, city, etc). Maximum 2000 addresses per batch.\"),\n properCase: z.boolean().default(false).describe(\"If true, returns the address in proper mixed case instead of uppercase.\").optional(),\n includeDetails: z.boolean().default(true).describe(\"If true, provides additional details about the address (street name, type, county, etc).\").optional(),\n});\nconst PostgridVerifyVerifyBatchAddresses_AddressDetailsSchema = z.object({\n rdi: z.string().describe(\"Residential delivery indicator\").nullable().optional(),\n county: z.string().describe(\"County name\").nullable().optional(),\n suiteID: z.string().describe(\"Suite or unit number\").nullable().optional(),\n latitude: z.number().describe(\"Latitude coordinate (if geocoding enabled)\").nullable().optional(),\n suiteKey: z.string().describe(\"Suite key or type\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate (if geocoding enabled)\").nullable().optional(),\n streetName: z.string().describe(\"Street name\").nullable().optional(),\n streetType: z.string().describe(\"Street type (e.g., St, Ave, Blvd)\").nullable().optional(),\n carrierRoute: z.string().describe(\"USPS carrier route\").nullable().optional(),\n streetNumber: z.string().describe(\"Street number\").nullable().optional(),\n congressionalDistrict: z.string().describe(\"Congressional district\").nullable().optional(),\n}).passthrough().describe(\"Additional details about the verified address.\");\nconst PostgridVerifyVerifyBatchAddresses_VerifiedAddressSchema = z.object({\n city: z.string().describe(\"City of the verified address\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address\").nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Field-specific validation errors if status is 'failed'\").nullable().optional(),\n status: z.string().describe(\"Verification status: 'success' (exact match), 'corrected' (modified), or 'failed' (invalid)\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address\").nullable().optional(),\n details: PostgridVerifyVerifyBatchAddresses_AddressDetailsSchema.nullable().optional(),\n zipPlus4: z.string().describe(\"ZIP+4 code (US only)\").nullable().optional(),\n countryName: z.string().describe(\"Full country name\").nullable().optional(),\n postalOrZip: z.string().describe(\"ZIP or postal code of the verified address\").nullable().optional(),\n provinceOrState: z.string().describe(\"State or province of the verified address\").nullable().optional(),\n}).passthrough().describe(\"Verified address result with standardized fields.\");\nconst PostgridVerifyVerifyBatchAddresses_VerificationResultSchema = z.object({\n verifiedAddress: PostgridVerifyVerifyBatchAddresses_VerifiedAddressSchema.nullable().optional(),\n}).passthrough().describe(\"Individual verification result wrapper.\");\nconst PostgridVerifyVerifyBatchAddresses_BatchVerifyAddressesResponseDataSchema = z.object({\n results: z.array(PostgridVerifyVerifyBatchAddresses_VerificationResultSchema).describe(\"List of verification results, one per input address in the same order\"),\n}).passthrough().describe(\"Data container for batch verification results.\");\nexport const PostgridVerifyVerifyBatchAddressesOutput = z.object({\n data: PostgridVerifyVerifyBatchAddresses_BatchVerifyAddressesResponseDataSchema.nullable(),\n status: z.string().describe(\"Overall status of the batch operation (e.g., 'success')\").nullable(),\n message: z.string().describe(\"Message describing the operation result\").nullable(),\n}).passthrough().describe(\"Response from batch address verification.\");\n\nexport const postgridVerifyVerifyBatchAddresses = action(\"POSTGRID_VERIFY_VERIFY_BATCH_ADDRESSES\", {\n slug: \"postgrid_verify-verify-batch-addresses\",\n name: \"Batch Verify Addresses with Mixed Format\",\n description: \"Tool to verify up to 2000 US and Canada addresses in a single API call. Accepts both freeform address strings and structured address objects. Each address uses 1 lookup credit.\",\n input: PostgridVerifyVerifyBatchAddressesInput,\n output: PostgridVerifyVerifyBatchAddressesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-batch-addresses.cjs","names":["z","action"],"sources":["../../src/actions/verify-batch-addresses.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { postgridVerify } from \"../app\";\n\nexport const PostgridVerifyVerifyBatchAddressesInput = z.object({\n geocode: z.boolean().default(false).describe(\"If true and your account has geocoding enabled, provides geolocation info (latitude/longitude).\").optional(),\n addresses: z.array(z.union([z.string(), z.object({\n city: z.string().nullable().optional(),\n line1: z.string().describe(\"First line of the address (street number and name).\"),\n line2: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n postalOrZip: z.string().nullable().optional(),\n provinceOrState: z.string().nullable().optional(),\n}).passthrough().describe(\"Structured address object with individual fields.\")])).describe(\"List of addresses to verify. Each address can be either a freeform string or a structured object with fields (line1, city, etc). Maximum 2000 addresses per batch.\"),\n properCase: z.boolean().default(false).describe(\"If true, returns the address in proper mixed case instead of uppercase.\").optional(),\n includeDetails: z.boolean().default(true).describe(\"If true, provides additional details about the address (street name, type, county, etc).\").optional(),\n});\nconst PostgridVerifyVerifyBatchAddresses_AddressDetailsSchema = z.object({\n rdi: z.string().describe(\"Residential delivery indicator\").nullable().optional(),\n county: z.string().describe(\"County name\").nullable().optional(),\n suiteID: z.string().describe(\"Suite or unit number\").nullable().optional(),\n latitude: z.number().describe(\"Latitude coordinate (if geocoding enabled)\").nullable().optional(),\n suiteKey: z.string().describe(\"Suite key or type\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate (if geocoding enabled)\").nullable().optional(),\n streetName: z.string().describe(\"Street name\").nullable().optional(),\n streetType: z.string().describe(\"Street type (e.g., St, Ave, Blvd)\").nullable().optional(),\n carrierRoute: z.string().describe(\"USPS carrier route\").nullable().optional(),\n streetNumber: z.string().describe(\"Street number\").nullable().optional(),\n congressionalDistrict: z.string().describe(\"Congressional district\").nullable().optional(),\n}).passthrough().describe(\"Additional details about the verified address.\");\nconst PostgridVerifyVerifyBatchAddresses_VerifiedAddressSchema = z.object({\n city: z.string().describe(\"City of the verified address\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address\").nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Field-specific validation errors if status is 'failed'\").nullable().optional(),\n status: z.string().describe(\"Verification status: 'success' (exact match), 'corrected' (modified), or 'failed' (invalid)\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address\").nullable().optional(),\n details: PostgridVerifyVerifyBatchAddresses_AddressDetailsSchema.nullable().optional(),\n zipPlus4: z.string().describe(\"ZIP+4 code (US only)\").nullable().optional(),\n countryName: z.string().describe(\"Full country name\").nullable().optional(),\n postalOrZip: z.string().describe(\"ZIP or postal code of the verified address\").nullable().optional(),\n provinceOrState: z.string().describe(\"State or province of the verified address\").nullable().optional(),\n}).passthrough().describe(\"Verified address result with standardized fields.\");\nconst PostgridVerifyVerifyBatchAddresses_VerificationResultSchema = z.object({\n verifiedAddress: PostgridVerifyVerifyBatchAddresses_VerifiedAddressSchema.nullable().optional(),\n}).passthrough().describe(\"Individual verification result wrapper.\");\nconst PostgridVerifyVerifyBatchAddresses_BatchVerifyAddressesResponseDataSchema = z.object({\n results: z.array(PostgridVerifyVerifyBatchAddresses_VerificationResultSchema).describe(\"List of verification results, one per input address in the same order\"),\n}).passthrough().describe(\"Data container for batch verification results.\");\nexport const PostgridVerifyVerifyBatchAddressesOutput = z.object({\n data: PostgridVerifyVerifyBatchAddresses_BatchVerifyAddressesResponseDataSchema.nullable(),\n status: z.string().describe(\"Overall status of the batch operation (e.g., 'success')\").nullable(),\n message: z.string().describe(\"Message describing the operation result\").nullable(),\n}).passthrough().describe(\"Response from batch address verification.\");\n\nexport const postgridVerifyVerifyBatchAddresses: AppAction<\n typeof PostgridVerifyVerifyBatchAddressesInput,\n typeof PostgridVerifyVerifyBatchAddressesOutput,\n typeof postgridVerify.credential\n> = action(\"POSTGRID_VERIFY_VERIFY_BATCH_ADDRESSES\", {\n slug: \"postgrid_verify-verify-batch-addresses\",\n name: \"Batch Verify Addresses with Mixed Format\",\n description: \"Tool to verify up to 2000 US and Canada addresses in a single API call. Accepts both freeform address strings and structured address objects. Each address uses 1 lookup credit.\",\n input: PostgridVerifyVerifyBatchAddressesInput,\n output: PostgridVerifyVerifyBatchAddressesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAA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C,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,qCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { postgridVerify } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/verify-batch-addresses.d.ts
|
|
@@ -47,32 +49,7 @@ declare const PostgridVerifyVerifyBatchAddressesOutput: z.ZodObject<{
|
|
|
47
49
|
status: z.ZodNullable<z.ZodString>;
|
|
48
50
|
message: z.ZodNullable<z.ZodString>;
|
|
49
51
|
}, z.core.$loose>;
|
|
50
|
-
declare const postgridVerifyVerifyBatchAddresses:
|
|
51
|
-
addresses: (string | {
|
|
52
|
-
[x: string]: unknown;
|
|
53
|
-
line1: string;
|
|
54
|
-
city?: string | null | undefined;
|
|
55
|
-
line2?: string | null | undefined;
|
|
56
|
-
country?: string | null | undefined;
|
|
57
|
-
postalOrZip?: string | null | undefined;
|
|
58
|
-
provinceOrState?: string | null | undefined;
|
|
59
|
-
})[];
|
|
60
|
-
geocode?: boolean | undefined;
|
|
61
|
-
properCase?: boolean | undefined;
|
|
62
|
-
includeDetails?: boolean | undefined;
|
|
63
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
64
|
-
connectionId: z.ZodString;
|
|
65
|
-
entityId: z.ZodString;
|
|
66
|
-
instanceId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
generic_api_key: z.ZodString;
|
|
69
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
70
|
-
connectionId: z.ZodString;
|
|
71
|
-
entityId: z.ZodString;
|
|
72
|
-
instanceId: z.ZodString;
|
|
73
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
-
generic_api_key: z.ZodString;
|
|
75
|
-
}, z.core.$strip>>]>;
|
|
52
|
+
declare const postgridVerifyVerifyBatchAddresses: AppAction<typeof PostgridVerifyVerifyBatchAddressesInput, typeof PostgridVerifyVerifyBatchAddressesOutput, typeof postgridVerify.credential>;
|
|
76
53
|
//#endregion
|
|
77
54
|
export { postgridVerifyVerifyBatchAddresses };
|
|
78
55
|
//# sourceMappingURL=verify-batch-addresses.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-batch-addresses.d.cts","names":[],"sources":["../../src/actions/verify-batch-addresses.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-batch-addresses.d.cts","names":[],"sources":["../../src/actions/verify-batch-addresses.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA6CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { postgridVerify } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/verify-batch-addresses.d.ts
|
|
@@ -47,32 +49,7 @@ declare const PostgridVerifyVerifyBatchAddressesOutput: z.ZodObject<{
|
|
|
47
49
|
status: z.ZodNullable<z.ZodString>;
|
|
48
50
|
message: z.ZodNullable<z.ZodString>;
|
|
49
51
|
}, z.core.$loose>;
|
|
50
|
-
declare const postgridVerifyVerifyBatchAddresses:
|
|
51
|
-
addresses: (string | {
|
|
52
|
-
[x: string]: unknown;
|
|
53
|
-
line1: string;
|
|
54
|
-
city?: string | null | undefined;
|
|
55
|
-
line2?: string | null | undefined;
|
|
56
|
-
country?: string | null | undefined;
|
|
57
|
-
postalOrZip?: string | null | undefined;
|
|
58
|
-
provinceOrState?: string | null | undefined;
|
|
59
|
-
})[];
|
|
60
|
-
geocode?: boolean | undefined;
|
|
61
|
-
properCase?: boolean | undefined;
|
|
62
|
-
includeDetails?: boolean | undefined;
|
|
63
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
64
|
-
connectionId: z.ZodString;
|
|
65
|
-
entityId: z.ZodString;
|
|
66
|
-
instanceId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
generic_api_key: z.ZodString;
|
|
69
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
70
|
-
connectionId: z.ZodString;
|
|
71
|
-
entityId: z.ZodString;
|
|
72
|
-
instanceId: z.ZodString;
|
|
73
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
-
generic_api_key: z.ZodString;
|
|
75
|
-
}, z.core.$strip>>]>;
|
|
52
|
+
declare const postgridVerifyVerifyBatchAddresses: AppAction<typeof PostgridVerifyVerifyBatchAddressesInput, typeof PostgridVerifyVerifyBatchAddressesOutput, typeof postgridVerify.credential>;
|
|
76
53
|
//#endregion
|
|
77
54
|
export { postgridVerifyVerifyBatchAddresses };
|
|
78
55
|
//# sourceMappingURL=verify-batch-addresses.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-batch-addresses.d.mts","names":[],"sources":["../../src/actions/verify-batch-addresses.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-batch-addresses.d.mts","names":[],"sources":["../../src/actions/verify-batch-addresses.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA6CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-batch-addresses.mjs","names":[],"sources":["../../src/actions/verify-batch-addresses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostgridVerifyVerifyBatchAddressesInput = z.object({\n geocode: z.boolean().default(false).describe(\"If true and your account has geocoding enabled, provides geolocation info (latitude/longitude).\").optional(),\n addresses: z.array(z.union([z.string(), z.object({\n city: z.string().nullable().optional(),\n line1: z.string().describe(\"First line of the address (street number and name).\"),\n line2: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n postalOrZip: z.string().nullable().optional(),\n provinceOrState: z.string().nullable().optional(),\n}).passthrough().describe(\"Structured address object with individual fields.\")])).describe(\"List of addresses to verify. Each address can be either a freeform string or a structured object with fields (line1, city, etc). Maximum 2000 addresses per batch.\"),\n properCase: z.boolean().default(false).describe(\"If true, returns the address in proper mixed case instead of uppercase.\").optional(),\n includeDetails: z.boolean().default(true).describe(\"If true, provides additional details about the address (street name, type, county, etc).\").optional(),\n});\nconst PostgridVerifyVerifyBatchAddresses_AddressDetailsSchema = z.object({\n rdi: z.string().describe(\"Residential delivery indicator\").nullable().optional(),\n county: z.string().describe(\"County name\").nullable().optional(),\n suiteID: z.string().describe(\"Suite or unit number\").nullable().optional(),\n latitude: z.number().describe(\"Latitude coordinate (if geocoding enabled)\").nullable().optional(),\n suiteKey: z.string().describe(\"Suite key or type\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate (if geocoding enabled)\").nullable().optional(),\n streetName: z.string().describe(\"Street name\").nullable().optional(),\n streetType: z.string().describe(\"Street type (e.g., St, Ave, Blvd)\").nullable().optional(),\n carrierRoute: z.string().describe(\"USPS carrier route\").nullable().optional(),\n streetNumber: z.string().describe(\"Street number\").nullable().optional(),\n congressionalDistrict: z.string().describe(\"Congressional district\").nullable().optional(),\n}).passthrough().describe(\"Additional details about the verified address.\");\nconst PostgridVerifyVerifyBatchAddresses_VerifiedAddressSchema = z.object({\n city: z.string().describe(\"City of the verified address\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address\").nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Field-specific validation errors if status is 'failed'\").nullable().optional(),\n status: z.string().describe(\"Verification status: 'success' (exact match), 'corrected' (modified), or 'failed' (invalid)\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address\").nullable().optional(),\n details: PostgridVerifyVerifyBatchAddresses_AddressDetailsSchema.nullable().optional(),\n zipPlus4: z.string().describe(\"ZIP+4 code (US only)\").nullable().optional(),\n countryName: z.string().describe(\"Full country name\").nullable().optional(),\n postalOrZip: z.string().describe(\"ZIP or postal code of the verified address\").nullable().optional(),\n provinceOrState: z.string().describe(\"State or province of the verified address\").nullable().optional(),\n}).passthrough().describe(\"Verified address result with standardized fields.\");\nconst PostgridVerifyVerifyBatchAddresses_VerificationResultSchema = z.object({\n verifiedAddress: PostgridVerifyVerifyBatchAddresses_VerifiedAddressSchema.nullable().optional(),\n}).passthrough().describe(\"Individual verification result wrapper.\");\nconst PostgridVerifyVerifyBatchAddresses_BatchVerifyAddressesResponseDataSchema = z.object({\n results: z.array(PostgridVerifyVerifyBatchAddresses_VerificationResultSchema).describe(\"List of verification results, one per input address in the same order\"),\n}).passthrough().describe(\"Data container for batch verification results.\");\nexport const PostgridVerifyVerifyBatchAddressesOutput = z.object({\n data: PostgridVerifyVerifyBatchAddresses_BatchVerifyAddressesResponseDataSchema.nullable(),\n status: z.string().describe(\"Overall status of the batch operation (e.g., 'success')\").nullable(),\n message: z.string().describe(\"Message describing the operation result\").nullable(),\n}).passthrough().describe(\"Response from batch address verification.\");\n\nexport const postgridVerifyVerifyBatchAddresses = action(\"POSTGRID_VERIFY_VERIFY_BATCH_ADDRESSES\", {\n slug: \"postgrid_verify-verify-batch-addresses\",\n name: \"Batch Verify Addresses with Mixed Format\",\n description: \"Tool to verify up to 2000 US and Canada addresses in a single API call. Accepts both freeform address strings and structured address objects. Each address uses 1 lookup credit.\",\n input: PostgridVerifyVerifyBatchAddressesInput,\n output: PostgridVerifyVerifyBatchAddressesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-batch-addresses.mjs","names":[],"sources":["../../src/actions/verify-batch-addresses.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { postgridVerify } from \"../app\";\n\nexport const PostgridVerifyVerifyBatchAddressesInput = z.object({\n geocode: z.boolean().default(false).describe(\"If true and your account has geocoding enabled, provides geolocation info (latitude/longitude).\").optional(),\n addresses: z.array(z.union([z.string(), z.object({\n city: z.string().nullable().optional(),\n line1: z.string().describe(\"First line of the address (street number and name).\"),\n line2: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n postalOrZip: z.string().nullable().optional(),\n provinceOrState: z.string().nullable().optional(),\n}).passthrough().describe(\"Structured address object with individual fields.\")])).describe(\"List of addresses to verify. Each address can be either a freeform string or a structured object with fields (line1, city, etc). Maximum 2000 addresses per batch.\"),\n properCase: z.boolean().default(false).describe(\"If true, returns the address in proper mixed case instead of uppercase.\").optional(),\n includeDetails: z.boolean().default(true).describe(\"If true, provides additional details about the address (street name, type, county, etc).\").optional(),\n});\nconst PostgridVerifyVerifyBatchAddresses_AddressDetailsSchema = z.object({\n rdi: z.string().describe(\"Residential delivery indicator\").nullable().optional(),\n county: z.string().describe(\"County name\").nullable().optional(),\n suiteID: z.string().describe(\"Suite or unit number\").nullable().optional(),\n latitude: z.number().describe(\"Latitude coordinate (if geocoding enabled)\").nullable().optional(),\n suiteKey: z.string().describe(\"Suite key or type\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate (if geocoding enabled)\").nullable().optional(),\n streetName: z.string().describe(\"Street name\").nullable().optional(),\n streetType: z.string().describe(\"Street type (e.g., St, Ave, Blvd)\").nullable().optional(),\n carrierRoute: z.string().describe(\"USPS carrier route\").nullable().optional(),\n streetNumber: z.string().describe(\"Street number\").nullable().optional(),\n congressionalDistrict: z.string().describe(\"Congressional district\").nullable().optional(),\n}).passthrough().describe(\"Additional details about the verified address.\");\nconst PostgridVerifyVerifyBatchAddresses_VerifiedAddressSchema = z.object({\n city: z.string().describe(\"City of the verified address\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address\").nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Field-specific validation errors if status is 'failed'\").nullable().optional(),\n status: z.string().describe(\"Verification status: 'success' (exact match), 'corrected' (modified), or 'failed' (invalid)\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address\").nullable().optional(),\n details: PostgridVerifyVerifyBatchAddresses_AddressDetailsSchema.nullable().optional(),\n zipPlus4: z.string().describe(\"ZIP+4 code (US only)\").nullable().optional(),\n countryName: z.string().describe(\"Full country name\").nullable().optional(),\n postalOrZip: z.string().describe(\"ZIP or postal code of the verified address\").nullable().optional(),\n provinceOrState: z.string().describe(\"State or province of the verified address\").nullable().optional(),\n}).passthrough().describe(\"Verified address result with standardized fields.\");\nconst PostgridVerifyVerifyBatchAddresses_VerificationResultSchema = z.object({\n verifiedAddress: PostgridVerifyVerifyBatchAddresses_VerifiedAddressSchema.nullable().optional(),\n}).passthrough().describe(\"Individual verification result wrapper.\");\nconst PostgridVerifyVerifyBatchAddresses_BatchVerifyAddressesResponseDataSchema = z.object({\n results: z.array(PostgridVerifyVerifyBatchAddresses_VerificationResultSchema).describe(\"List of verification results, one per input address in the same order\"),\n}).passthrough().describe(\"Data container for batch verification results.\");\nexport const PostgridVerifyVerifyBatchAddressesOutput = z.object({\n data: PostgridVerifyVerifyBatchAddresses_BatchVerifyAddressesResponseDataSchema.nullable(),\n status: z.string().describe(\"Overall status of the batch operation (e.g., 'success')\").nullable(),\n message: z.string().describe(\"Message describing the operation result\").nullable(),\n}).passthrough().describe(\"Response from batch address verification.\");\n\nexport const postgridVerifyVerifyBatchAddresses: AppAction<\n typeof PostgridVerifyVerifyBatchAddressesInput,\n typeof PostgridVerifyVerifyBatchAddressesOutput,\n typeof postgridVerify.credential\n> = action(\"POSTGRID_VERIFY_VERIFY_BATCH_ADDRESSES\", {\n slug: \"postgrid_verify-verify-batch-addresses\",\n name: \"Batch Verify Addresses with Mixed Format\",\n description: \"Tool to verify up to 2000 US and Canada addresses in a single API call. Accepts both freeform address strings and structured address objects. Each address uses 1 lookup credit.\",\n input: PostgridVerifyVerifyBatchAddressesInput,\n output: PostgridVerifyVerifyBatchAddressesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACzJ,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxC,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5C,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oKAAoK;CAC7P,YAAY,E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,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,uEAAuE,EAChK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAO1E,MAAa,qCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsD,EAAE,OAAO;EAC/D,MAAM,0EAA0E,SAAS;EACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-international-address.cjs","names":["z","action"],"sources":["../../src/actions/verify-international-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostgridVerifyVerifyInternationalAddressInput = z.object({\n address: z.string().describe(\"The freeform international address to verify, written on a single line. Can include country, city, street, and postal code.\"),\n geoData: z.boolean().default(false).describe(\"If true, includes geolocation information (latitude, longitude) and accuracy data for the verified address.\").optional(),\n includeDetails: z.boolean().default(true).describe(\"If true, provides additional details about the verified address including parsing and verification match levels.\").optional(),\n});\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDetailsSchema = z.object({\n premise: z.string().describe(\"Premise or building information\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseGeoDataSchema = z.object({\n latitude: z.string().describe(\"Latitude coordinate of the address\").nullable().optional(),\n longitude: z.string().describe(\"Longitude coordinate of the address\").nullable().optional(),\n geoAccuracy: z.string().describe(\"Accuracy level of the geolocation data\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseSummarySchema = z.object({\n matchScore: z.number().int().describe(\"Match score indicating confidence in verification\").nullable().optional(),\n parsingStatus: z.string().describe(\"Status of address parsing\").nullable().optional(),\n postCodeStatus: z.string().describe(\"Status of postal code verification\").nullable().optional(),\n verificationStatus: z.string().describe(\"Overall verification status of the address\").nullable().optional(),\n contextIdentificationMatchLevel: z.string().describe(\"Match level for context identification\").nullable().optional(),\n lexiconIdentificationMatchLevel: z.string().describe(\"Match level for lexicon identification\").nullable().optional(),\n preProcessedVerificationMatchLevel: z.string().describe(\"Match level before processing\").nullable().optional(),\n postProcessedVerificationMatchLevel: z.string().describe(\"Match level after processing\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDataSchema = z.object({\n city: z.string().describe(\"City of the verified address\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address\").nullable().optional(),\n details: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDetailsSchema.nullable().optional(),\n geoData: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseGeoDataSchema.nullable().optional(),\n summary: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseSummarySchema.nullable().optional(),\n provinceOrState: z.string().describe(\"Province or state of the verified address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Complete formatted address string\").nullable().optional(),\n}).passthrough();\nexport const PostgridVerifyVerifyInternationalAddressOutput = z.object({\n data: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDataSchema.nullable().optional(),\n status: z.string().describe(\"Status of the verification request (e.g., 'success')\").nullable().optional(),\n message: z.string().describe(\"Message describing the result of the verification\").nullable().optional(),\n}).passthrough();\n\nexport const postgridVerifyVerifyInternationalAddress = action(\"POSTGRID_VERIFY_VERIFY_INTERNATIONAL_ADDRESS\", {\n slug: \"postgrid_verify-verify-international-address\",\n name: \"Verify International Address\",\n description: \"Tool to verify and standardize international addresses from 245+ countries. Supports both structured and freeform address inputs. Use includeDetails=true for match levels and geoData=true for coordinates.\",\n input: PostgridVerifyVerifyInternationalAddressInput,\n output: PostgridVerifyVerifyInternationalAddressOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-international-address.cjs","names":["z","action"],"sources":["../../src/actions/verify-international-address.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { postgridVerify } from \"../app\";\n\nexport const PostgridVerifyVerifyInternationalAddressInput = z.object({\n address: z.string().describe(\"The freeform international address to verify, written on a single line. Can include country, city, street, and postal code.\"),\n geoData: z.boolean().default(false).describe(\"If true, includes geolocation information (latitude, longitude) and accuracy data for the verified address.\").optional(),\n includeDetails: z.boolean().default(true).describe(\"If true, provides additional details about the verified address including parsing and verification match levels.\").optional(),\n});\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDetailsSchema = z.object({\n premise: z.string().describe(\"Premise or building information\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseGeoDataSchema = z.object({\n latitude: z.string().describe(\"Latitude coordinate of the address\").nullable().optional(),\n longitude: z.string().describe(\"Longitude coordinate of the address\").nullable().optional(),\n geoAccuracy: z.string().describe(\"Accuracy level of the geolocation data\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseSummarySchema = z.object({\n matchScore: z.number().int().describe(\"Match score indicating confidence in verification\").nullable().optional(),\n parsingStatus: z.string().describe(\"Status of address parsing\").nullable().optional(),\n postCodeStatus: z.string().describe(\"Status of postal code verification\").nullable().optional(),\n verificationStatus: z.string().describe(\"Overall verification status of the address\").nullable().optional(),\n contextIdentificationMatchLevel: z.string().describe(\"Match level for context identification\").nullable().optional(),\n lexiconIdentificationMatchLevel: z.string().describe(\"Match level for lexicon identification\").nullable().optional(),\n preProcessedVerificationMatchLevel: z.string().describe(\"Match level before processing\").nullable().optional(),\n postProcessedVerificationMatchLevel: z.string().describe(\"Match level after processing\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDataSchema = z.object({\n city: z.string().describe(\"City of the verified address\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address\").nullable().optional(),\n details: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDetailsSchema.nullable().optional(),\n geoData: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseGeoDataSchema.nullable().optional(),\n summary: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseSummarySchema.nullable().optional(),\n provinceOrState: z.string().describe(\"Province or state of the verified address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Complete formatted address string\").nullable().optional(),\n}).passthrough();\nexport const PostgridVerifyVerifyInternationalAddressOutput = z.object({\n data: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDataSchema.nullable().optional(),\n status: z.string().describe(\"Status of the verification request (e.g., 'success')\").nullable().optional(),\n message: z.string().describe(\"Message describing the result of the verification\").nullable().optional(),\n}).passthrough();\n\nexport const postgridVerifyVerifyInternationalAddress: AppAction<\n typeof PostgridVerifyVerifyInternationalAddressInput,\n typeof PostgridVerifyVerifyInternationalAddressOutput,\n typeof postgridVerify.credential\n> = action(\"POSTGRID_VERIFY_VERIFY_INTERNATIONAL_ADDRESS\", {\n slug: \"postgrid_verify-verify-international-address\",\n name: \"Verify International Address\",\n description: \"Tool to verify and standardize international addresses from 245+ countries. Supports both structured and freeform address inputs. Use includeDetails=true for match levels and geoData=true for coordinates.\",\n input: PostgridVerifyVerifyInternationalAddressInput,\n output: PostgridVerifyVerifyInternationalAddressOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,SAASA,IAAAA,EAAE,OAA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AAM,sFAAsF,SAAS,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2CAITC,eAAAA,OAAO,gDAAgD;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { postgridVerify } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/verify-international-address.d.ts
|
|
@@ -36,23 +38,7 @@ declare const PostgridVerifyVerifyInternationalAddressOutput: z.ZodObject<{
|
|
|
36
38
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
39
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const postgridVerifyVerifyInternationalAddress:
|
|
40
|
-
address: string;
|
|
41
|
-
geoData?: boolean | undefined;
|
|
42
|
-
includeDetails?: boolean | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
41
|
+
declare const postgridVerifyVerifyInternationalAddress: AppAction<typeof PostgridVerifyVerifyInternationalAddressInput, typeof PostgridVerifyVerifyInternationalAddressOutput, typeof postgridVerify.credential>;
|
|
56
42
|
//#endregion
|
|
57
43
|
export { postgridVerifyVerifyInternationalAddress };
|
|
58
44
|
//# sourceMappingURL=verify-international-address.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-international-address.d.cts","names":[],"sources":["../../src/actions/verify-international-address.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-international-address.d.cts","names":[],"sources":["../../src/actions/verify-international-address.ts"],"mappings":";;;;;cAMa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;cAkC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9C,wCAAA,EAA0C,SAAA,QAC9C,6CAAA,SACA,8CAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { postgridVerify } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/verify-international-address.d.ts
|
|
@@ -36,23 +38,7 @@ declare const PostgridVerifyVerifyInternationalAddressOutput: z.ZodObject<{
|
|
|
36
38
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
39
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const postgridVerifyVerifyInternationalAddress:
|
|
40
|
-
address: string;
|
|
41
|
-
geoData?: boolean | undefined;
|
|
42
|
-
includeDetails?: boolean | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
41
|
+
declare const postgridVerifyVerifyInternationalAddress: AppAction<typeof PostgridVerifyVerifyInternationalAddressInput, typeof PostgridVerifyVerifyInternationalAddressOutput, typeof postgridVerify.credential>;
|
|
56
42
|
//#endregion
|
|
57
43
|
export { postgridVerifyVerifyInternationalAddress };
|
|
58
44
|
//# sourceMappingURL=verify-international-address.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-international-address.d.mts","names":[],"sources":["../../src/actions/verify-international-address.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-international-address.d.mts","names":[],"sources":["../../src/actions/verify-international-address.ts"],"mappings":";;;;;cAMa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;cAkC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9C,wCAAA,EAA0C,SAAA,QAC9C,6CAAA,SACA,8CAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-international-address.mjs","names":[],"sources":["../../src/actions/verify-international-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostgridVerifyVerifyInternationalAddressInput = z.object({\n address: z.string().describe(\"The freeform international address to verify, written on a single line. Can include country, city, street, and postal code.\"),\n geoData: z.boolean().default(false).describe(\"If true, includes geolocation information (latitude, longitude) and accuracy data for the verified address.\").optional(),\n includeDetails: z.boolean().default(true).describe(\"If true, provides additional details about the verified address including parsing and verification match levels.\").optional(),\n});\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDetailsSchema = z.object({\n premise: z.string().describe(\"Premise or building information\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseGeoDataSchema = z.object({\n latitude: z.string().describe(\"Latitude coordinate of the address\").nullable().optional(),\n longitude: z.string().describe(\"Longitude coordinate of the address\").nullable().optional(),\n geoAccuracy: z.string().describe(\"Accuracy level of the geolocation data\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseSummarySchema = z.object({\n matchScore: z.number().int().describe(\"Match score indicating confidence in verification\").nullable().optional(),\n parsingStatus: z.string().describe(\"Status of address parsing\").nullable().optional(),\n postCodeStatus: z.string().describe(\"Status of postal code verification\").nullable().optional(),\n verificationStatus: z.string().describe(\"Overall verification status of the address\").nullable().optional(),\n contextIdentificationMatchLevel: z.string().describe(\"Match level for context identification\").nullable().optional(),\n lexiconIdentificationMatchLevel: z.string().describe(\"Match level for lexicon identification\").nullable().optional(),\n preProcessedVerificationMatchLevel: z.string().describe(\"Match level before processing\").nullable().optional(),\n postProcessedVerificationMatchLevel: z.string().describe(\"Match level after processing\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDataSchema = z.object({\n city: z.string().describe(\"City of the verified address\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address\").nullable().optional(),\n details: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDetailsSchema.nullable().optional(),\n geoData: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseGeoDataSchema.nullable().optional(),\n summary: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseSummarySchema.nullable().optional(),\n provinceOrState: z.string().describe(\"Province or state of the verified address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Complete formatted address string\").nullable().optional(),\n}).passthrough();\nexport const PostgridVerifyVerifyInternationalAddressOutput = z.object({\n data: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDataSchema.nullable().optional(),\n status: z.string().describe(\"Status of the verification request (e.g., 'success')\").nullable().optional(),\n message: z.string().describe(\"Message describing the result of the verification\").nullable().optional(),\n}).passthrough();\n\nexport const postgridVerifyVerifyInternationalAddress = action(\"POSTGRID_VERIFY_VERIFY_INTERNATIONAL_ADDRESS\", {\n slug: \"postgrid_verify-verify-international-address\",\n name: \"Verify International Address\",\n description: \"Tool to verify and standardize international addresses from 245+ countries. Supports both structured and freeform address inputs. Use includeDetails=true for match levels and geoData=true for coordinates.\",\n input: PostgridVerifyVerifyInternationalAddressInput,\n output: PostgridVerifyVerifyInternationalAddressOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-international-address.mjs","names":[],"sources":["../../src/actions/verify-international-address.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { postgridVerify } from \"../app\";\n\nexport const PostgridVerifyVerifyInternationalAddressInput = z.object({\n address: z.string().describe(\"The freeform international address to verify, written on a single line. Can include country, city, street, and postal code.\"),\n geoData: z.boolean().default(false).describe(\"If true, includes geolocation information (latitude, longitude) and accuracy data for the verified address.\").optional(),\n includeDetails: z.boolean().default(true).describe(\"If true, provides additional details about the verified address including parsing and verification match levels.\").optional(),\n});\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDetailsSchema = z.object({\n premise: z.string().describe(\"Premise or building information\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseGeoDataSchema = z.object({\n latitude: z.string().describe(\"Latitude coordinate of the address\").nullable().optional(),\n longitude: z.string().describe(\"Longitude coordinate of the address\").nullable().optional(),\n geoAccuracy: z.string().describe(\"Accuracy level of the geolocation data\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseSummarySchema = z.object({\n matchScore: z.number().int().describe(\"Match score indicating confidence in verification\").nullable().optional(),\n parsingStatus: z.string().describe(\"Status of address parsing\").nullable().optional(),\n postCodeStatus: z.string().describe(\"Status of postal code verification\").nullable().optional(),\n verificationStatus: z.string().describe(\"Overall verification status of the address\").nullable().optional(),\n contextIdentificationMatchLevel: z.string().describe(\"Match level for context identification\").nullable().optional(),\n lexiconIdentificationMatchLevel: z.string().describe(\"Match level for lexicon identification\").nullable().optional(),\n preProcessedVerificationMatchLevel: z.string().describe(\"Match level before processing\").nullable().optional(),\n postProcessedVerificationMatchLevel: z.string().describe(\"Match level after processing\").nullable().optional(),\n}).passthrough();\nconst PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDataSchema = z.object({\n city: z.string().describe(\"City of the verified address\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address\").nullable().optional(),\n details: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDetailsSchema.nullable().optional(),\n geoData: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseGeoDataSchema.nullable().optional(),\n summary: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseSummarySchema.nullable().optional(),\n provinceOrState: z.string().describe(\"Province or state of the verified address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Complete formatted address string\").nullable().optional(),\n}).passthrough();\nexport const PostgridVerifyVerifyInternationalAddressOutput = z.object({\n data: PostgridVerifyVerifyInternationalAddress_VerifyInternationalAddressResponseDataSchema.nullable().optional(),\n status: z.string().describe(\"Status of the verification request (e.g., 'success')\").nullable().optional(),\n message: z.string().describe(\"Message describing the result of the verification\").nullable().optional(),\n}).passthrough();\n\nexport const postgridVerifyVerifyInternationalAddress: AppAction<\n typeof PostgridVerifyVerifyInternationalAddressInput,\n typeof PostgridVerifyVerifyInternationalAddressOutput,\n typeof postgridVerify.credential\n> = action(\"POSTGRID_VERIFY_VERIFY_INTERNATIONAL_ADDRESS\", {\n slug: \"postgrid_verify-verify-international-address\",\n name: \"Verify International Address\",\n description: \"Tool to verify and standardize international addresses from 245+ countries. Supports both structured and freeform address inputs. Use includeDetails=true for match levels and geoData=true for coordinates.\",\n input: PostgridVerifyVerifyInternationalAddressInput,\n output: PostgridVerifyVerifyInternationalAddressOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gDAAgD,EAAE,OAAO;CACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;CAC1J,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACrK,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AAClL,CAAC;AACD,MAAM,2FAA2F,EAAE,OAAO,EACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2FAA2F,EAAE,OAAO;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,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C,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,yFAAyF,SAAS,CAAC,CAAC,SAAS;CACtH,SAAS,yFAAyF,SAAS,CAAC,CAAC,SAAS;CACtH,SAAS,yFAAyF,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,2CAIT,OAAO,gDAAgD;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4D,EAAE,OAAO;EACrE,MAAM,sFAAsF,SAAS,CAAC,CAAC,SAAS;EAChH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-intl-addresses-batch.cjs","names":["z","action"],"sources":["../../src/actions/verify-intl-addresses-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostgridVerifyVerifyIntlAddressesBatchInput = z.object({\n geoData: z.boolean().default(false).describe(\"If true, include geolocation information (latitude, longitude, accuracy) in the response.\").optional(),\n addresses: z.array(z.union([z.string(), z.object({\n city: z.string().nullable().optional(),\n line1: z.string().describe(\"First line of the address (e.g., street number and name).\"),\n line2: z.string().nullable().optional(),\n line3: z.string().nullable().optional(),\n line4: z.string().nullable().optional(),\n country: z.string().describe(\"ISO 2 or 3-letter country code.\"),\n postalOrZip: z.string().describe(\"Postal or ZIP code.\"),\n provinceOrState: z.string().nullable().optional(),\n}).passthrough().describe(\"Structured international address with individual components.\")])).describe(\"List of up to 2000 addresses to verify. Each address can be either a freeform string or a structured address object with individual components.\"),\n includeDetails: z.boolean().default(true).describe(\"If true, provide additional details about each verified address.\").optional(),\n});\nconst PostgridVerifyVerifyIntlAddressesBatch_GeoDataSchema = z.object({\n accuracy: z.string().describe(\"Accuracy of the geolocation data.\").nullable().optional(),\n latitude: z.number().describe(\"Latitude coordinate of the address.\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate of the address.\").nullable().optional(),\n}).passthrough().describe(\"Geolocation data for the verified address.\");\nconst PostgridVerifyVerifyIntlAddressesBatch_VerifiedAddressDataSchema = z.object({\n city: z.string().describe(\"City of the verified address.\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address.\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address.\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address.\").nullable().optional(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details about the verified address if requested.\").nullable().optional(),\n geoData: PostgridVerifyVerifyIntlAddressesBatch_GeoDataSchema.nullable().optional(),\n summary: z.record(z.string(), z.unknown()).describe(\"Summary information about the verification result.\").nullable().optional(),\n postalOrZip: z.string().describe(\"Postal or ZIP code of the verified address.\").nullable().optional(),\n provinceOrState: z.string().describe(\"Province or state of the verified address.\").nullable().optional(),\n formattedAddress: z.string().describe(\"The complete formatted address string.\").nullable().optional(),\n}).passthrough().describe(\"Individual verified address result.\");\nexport const PostgridVerifyVerifyIntlAddressesBatchOutput = z.object({\n data: z.array(PostgridVerifyVerifyIntlAddressesBatch_VerifiedAddressDataSchema).describe(\"List of verified address results, one for each input address.\"),\n status: z.string().describe(\"Status of the batch operation (e.g., 'success').\").nullable(),\n message: z.string().describe(\"Message providing details about the operation.\").nullable(),\n}).passthrough();\n\nexport const postgridVerifyVerifyIntlAddressesBatch = action(\"POSTGRID_VERIFY_VERIFY_INTL_ADDRESSES_BATCH\", {\n slug: \"postgrid_verify-verify-intl-addresses-batch\",\n name: \"Batch Verify International Addresses\",\n description: \"Tool to verify up to 2000 international addresses in a single API call. Accepts both freeform address strings and structured address objects. Uses 1 lookup per address.\",\n input: PostgridVerifyVerifyIntlAddressesBatchInput,\n output: PostgridVerifyVerifyIntlAddressesBatchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-intl-addresses-batch.cjs","names":["z","action"],"sources":["../../src/actions/verify-intl-addresses-batch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { postgridVerify } from \"../app\";\n\nexport const PostgridVerifyVerifyIntlAddressesBatchInput = z.object({\n geoData: z.boolean().default(false).describe(\"If true, include geolocation information (latitude, longitude, accuracy) in the response.\").optional(),\n addresses: z.array(z.union([z.string(), z.object({\n city: z.string().nullable().optional(),\n line1: z.string().describe(\"First line of the address (e.g., street number and name).\"),\n line2: z.string().nullable().optional(),\n line3: z.string().nullable().optional(),\n line4: z.string().nullable().optional(),\n country: z.string().describe(\"ISO 2 or 3-letter country code.\"),\n postalOrZip: z.string().describe(\"Postal or ZIP code.\"),\n provinceOrState: z.string().nullable().optional(),\n}).passthrough().describe(\"Structured international address with individual components.\")])).describe(\"List of up to 2000 addresses to verify. Each address can be either a freeform string or a structured address object with individual components.\"),\n includeDetails: z.boolean().default(true).describe(\"If true, provide additional details about each verified address.\").optional(),\n});\nconst PostgridVerifyVerifyIntlAddressesBatch_GeoDataSchema = z.object({\n accuracy: z.string().describe(\"Accuracy of the geolocation data.\").nullable().optional(),\n latitude: z.number().describe(\"Latitude coordinate of the address.\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate of the address.\").nullable().optional(),\n}).passthrough().describe(\"Geolocation data for the verified address.\");\nconst PostgridVerifyVerifyIntlAddressesBatch_VerifiedAddressDataSchema = z.object({\n city: z.string().describe(\"City of the verified address.\").nullable().optional(),\n line1: z.string().describe(\"First line of the verified address.\").nullable().optional(),\n line2: z.string().describe(\"Second line of the verified address.\").nullable().optional(),\n country: z.string().describe(\"Country code of the verified address.\").nullable().optional(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details about the verified address if requested.\").nullable().optional(),\n geoData: PostgridVerifyVerifyIntlAddressesBatch_GeoDataSchema.nullable().optional(),\n summary: z.record(z.string(), z.unknown()).describe(\"Summary information about the verification result.\").nullable().optional(),\n postalOrZip: z.string().describe(\"Postal or ZIP code of the verified address.\").nullable().optional(),\n provinceOrState: z.string().describe(\"Province or state of the verified address.\").nullable().optional(),\n formattedAddress: z.string().describe(\"The complete formatted address string.\").nullable().optional(),\n}).passthrough().describe(\"Individual verified address result.\");\nexport const PostgridVerifyVerifyIntlAddressesBatchOutput = z.object({\n data: z.array(PostgridVerifyVerifyIntlAddressesBatch_VerifiedAddressDataSchema).describe(\"List of verified address results, one for each input address.\"),\n status: z.string().describe(\"Status of the batch operation (e.g., 'success').\").nullable(),\n message: z.string().describe(\"Message providing details about the operation.\").nullable(),\n}).passthrough();\n\nexport const postgridVerifyVerifyIntlAddressesBatch: AppAction<\n typeof PostgridVerifyVerifyIntlAddressesBatchInput,\n typeof PostgridVerifyVerifyIntlAddressesBatchOutput,\n typeof postgridVerify.credential\n> = action(\"POSTGRID_VERIFY_VERIFY_INTL_ADDRESSES_BATCH\", {\n slug: \"postgrid_verify-verify-intl-addresses-batch\",\n name: \"Batch Verify International Addresses\",\n description: \"Tool to verify up to 2000 international addresses in a single API call. Accepts both freeform address strings and structured address objects. Uses 1 lookup per address.\",\n input: PostgridVerifyVerifyIntlAddressesBatchInput,\n output: PostgridVerifyVerifyIntlAddressesBatchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,MAAMA,IAAAA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AAkD,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yCAITC,eAAAA,OAAO,+CAA+C;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { postgridVerify } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/verify-intl-addresses-batch.d.ts
|
|
@@ -35,33 +37,7 @@ declare const PostgridVerifyVerifyIntlAddressesBatchOutput: z.ZodObject<{
|
|
|
35
37
|
status: z.ZodNullable<z.ZodString>;
|
|
36
38
|
message: z.ZodNullable<z.ZodString>;
|
|
37
39
|
}, z.core.$loose>;
|
|
38
|
-
declare const postgridVerifyVerifyIntlAddressesBatch:
|
|
39
|
-
addresses: (string | {
|
|
40
|
-
[x: string]: unknown;
|
|
41
|
-
line1: string;
|
|
42
|
-
country: string;
|
|
43
|
-
postalOrZip: string;
|
|
44
|
-
city?: string | null | undefined;
|
|
45
|
-
line2?: string | null | undefined;
|
|
46
|
-
line3?: string | null | undefined;
|
|
47
|
-
line4?: string | null | undefined;
|
|
48
|
-
provinceOrState?: string | null | undefined;
|
|
49
|
-
})[];
|
|
50
|
-
geoData?: boolean | undefined;
|
|
51
|
-
includeDetails?: boolean | undefined;
|
|
52
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
53
|
-
connectionId: z.ZodString;
|
|
54
|
-
entityId: z.ZodString;
|
|
55
|
-
instanceId: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
generic_api_key: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
59
|
-
connectionId: z.ZodString;
|
|
60
|
-
entityId: z.ZodString;
|
|
61
|
-
instanceId: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
generic_api_key: z.ZodString;
|
|
64
|
-
}, z.core.$strip>>]>;
|
|
40
|
+
declare const postgridVerifyVerifyIntlAddressesBatch: AppAction<typeof PostgridVerifyVerifyIntlAddressesBatchInput, typeof PostgridVerifyVerifyIntlAddressesBatchOutput, typeof postgridVerify.credential>;
|
|
65
41
|
//#endregion
|
|
66
42
|
export { postgridVerifyVerifyIntlAddressesBatch };
|
|
67
43
|
//# sourceMappingURL=verify-intl-addresses-batch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-intl-addresses-batch.d.cts","names":[],"sources":["../../src/actions/verify-intl-addresses-batch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-intl-addresses-batch.d.cts","names":[],"sources":["../../src/actions/verify-intl-addresses-batch.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+B3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAM5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { postgridVerify } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/verify-intl-addresses-batch.d.ts
|
|
@@ -35,33 +37,7 @@ declare const PostgridVerifyVerifyIntlAddressesBatchOutput: z.ZodObject<{
|
|
|
35
37
|
status: z.ZodNullable<z.ZodString>;
|
|
36
38
|
message: z.ZodNullable<z.ZodString>;
|
|
37
39
|
}, z.core.$loose>;
|
|
38
|
-
declare const postgridVerifyVerifyIntlAddressesBatch:
|
|
39
|
-
addresses: (string | {
|
|
40
|
-
[x: string]: unknown;
|
|
41
|
-
line1: string;
|
|
42
|
-
country: string;
|
|
43
|
-
postalOrZip: string;
|
|
44
|
-
city?: string | null | undefined;
|
|
45
|
-
line2?: string | null | undefined;
|
|
46
|
-
line3?: string | null | undefined;
|
|
47
|
-
line4?: string | null | undefined;
|
|
48
|
-
provinceOrState?: string | null | undefined;
|
|
49
|
-
})[];
|
|
50
|
-
geoData?: boolean | undefined;
|
|
51
|
-
includeDetails?: boolean | undefined;
|
|
52
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
53
|
-
connectionId: z.ZodString;
|
|
54
|
-
entityId: z.ZodString;
|
|
55
|
-
instanceId: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
generic_api_key: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"postgrid_verify", z.ZodObject<{
|
|
59
|
-
connectionId: z.ZodString;
|
|
60
|
-
entityId: z.ZodString;
|
|
61
|
-
instanceId: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
generic_api_key: z.ZodString;
|
|
64
|
-
}, z.core.$strip>>]>;
|
|
40
|
+
declare const postgridVerifyVerifyIntlAddressesBatch: AppAction<typeof PostgridVerifyVerifyIntlAddressesBatchInput, typeof PostgridVerifyVerifyIntlAddressesBatchOutput, typeof postgridVerify.credential>;
|
|
65
41
|
//#endregion
|
|
66
42
|
export { postgridVerifyVerifyIntlAddressesBatch };
|
|
67
43
|
//# sourceMappingURL=verify-intl-addresses-batch.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-intl-addresses-batch.d.mts","names":[],"sources":["../../src/actions/verify-intl-addresses-batch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-intl-addresses-batch.d.mts","names":[],"sources":["../../src/actions/verify-intl-addresses-batch.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA+B3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAM5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,cAAA,CAAe,UAAA"}
|