@verifiquemos/sdk 0.1.11 → 0.1.12

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/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  All notable changes to `@verifiquemos/sdk` will be documented here.
4
4
 
5
+ ## [0.1.12] - 2026-06-01
6
+
7
+ Generated-types release — no functional changes.
8
+
9
+ ### Internal
10
+
11
+ - `src/generated.ts` regenerated from `verifiquemos-api/openapi.json`
12
+ (api 0.36.0, up from 0.35.8). Net +54/-2 lines on top of an
13
+ intermediate refresh from 0.35.10. The substantive surface is the
14
+ M28 credit-purchase contract:
15
+ - New `CardInput` interface (`name_on_card`, `card_number`,
16
+ `card_expiration` as ISO date, `card_cvs`) with the Luhn-validated
17
+ shape that the M28 backend enforces server-side.
18
+ - New `BillingInput` interface (`firstname`, `lastname`, `address1`,
19
+ `locality`, optional `administrative_area` / `postal_code` /
20
+ `phone_number`, `country` defaulting to `"GT"`, `email`). Used by
21
+ Cybersource for AVS verification.
22
+ - `PurchaseRequest` drops the legacy `payment_token` field and
23
+ gains optional `card` + `billing`. Both required server-side when
24
+ `CYBERSOURCE_ENABLED=true`; ignored on the dev-bypass path.
25
+ - `PurchaseResponse` gains optional `idempotent_replay` so clients
26
+ can suppress duplicate success toasts on M14 idempotency replays.
27
+ Convenience aliases in `src/types.ts` unchanged — the public surface
28
+ is unchanged; new types are reachable via
29
+ `components["schemas"]["CardInput" | "BillingInput"]` and the
30
+ refreshed `paths["/api/v1/credits/purchase"]`.
31
+
5
32
  ## [0.1.11] - 2026-06-01
6
33
 
7
34
  Tooling-only release — no functional changes to the public SDK
package/dist/index.d.mts CHANGED
@@ -222,6 +222,36 @@ interface components {
222
222
  /** Total Rows */
223
223
  total_rows: number;
224
224
  };
225
+ /**
226
+ * BillingInput
227
+ * @description Billing address — required by Cybersource for AVS verification.
228
+ *
229
+ * Defaults to country=GT since that is the verifiquemos primary market.
230
+ * The frontend pre-populates these from the user's tenant profile.
231
+ */
232
+ BillingInput: {
233
+ /** Address1 */
234
+ address1: string;
235
+ /** Administrative Area */
236
+ administrative_area?: string | null;
237
+ /**
238
+ * Country
239
+ * @default GT
240
+ */
241
+ country: string;
242
+ /** Email */
243
+ email: string;
244
+ /** Firstname */
245
+ firstname: string;
246
+ /** Lastname */
247
+ lastname: string;
248
+ /** Locality */
249
+ locality: string;
250
+ /** Phone Number */
251
+ phone_number?: string | null;
252
+ /** Postal Code */
253
+ postal_code?: string | null;
254
+ };
225
255
  /** Body_create_validation_api_v1_validations_post */
226
256
  Body_create_validation_api_v1_validations_post: {
227
257
  /** Dpi File */
@@ -261,6 +291,28 @@ interface components {
261
291
  /** List Type */
262
292
  list_type: string;
263
293
  };
294
+ /**
295
+ * CardInput
296
+ * @description Credit card data submitted from the purchase form.
297
+ *
298
+ * Card data never persists — it travels from this schema directly into
299
+ * the Cybersource API payload. The ExternalPaymentLog deliberately does
300
+ * NOT capture card_number or card_cvs (see app/api/credits.py purchase
301
+ * flow, Task 7).
302
+ */
303
+ CardInput: {
304
+ /** Card Cvs */
305
+ card_cvs: string;
306
+ /**
307
+ * Card Expiration
308
+ * Format: date
309
+ */
310
+ card_expiration: string;
311
+ /** Card Number */
312
+ card_number: string;
313
+ /** Name On Card */
314
+ name_on_card: string;
315
+ };
264
316
  /** ChangePasswordRequest */
265
317
  ChangePasswordRequest: {
266
318
  /** Current Password */
@@ -636,6 +688,8 @@ interface components {
636
688
  };
637
689
  /** PurchaseRequest */
638
690
  PurchaseRequest: {
691
+ billing?: components["schemas"]["BillingInput"] | null;
692
+ card?: components["schemas"]["CardInput"] | null;
639
693
  /** Idempotency Key */
640
694
  idempotency_key: string;
641
695
  /**
@@ -643,8 +697,6 @@ interface components {
643
697
  * @enum {string}
644
698
  */
645
699
  package: "10" | "50" | "100";
646
- /** Payment Token */
647
- payment_token: string;
648
700
  };
649
701
  /** PurchaseResponse */
650
702
  PurchaseResponse: {
package/dist/index.d.ts CHANGED
@@ -222,6 +222,36 @@ interface components {
222
222
  /** Total Rows */
223
223
  total_rows: number;
224
224
  };
225
+ /**
226
+ * BillingInput
227
+ * @description Billing address — required by Cybersource for AVS verification.
228
+ *
229
+ * Defaults to country=GT since that is the verifiquemos primary market.
230
+ * The frontend pre-populates these from the user's tenant profile.
231
+ */
232
+ BillingInput: {
233
+ /** Address1 */
234
+ address1: string;
235
+ /** Administrative Area */
236
+ administrative_area?: string | null;
237
+ /**
238
+ * Country
239
+ * @default GT
240
+ */
241
+ country: string;
242
+ /** Email */
243
+ email: string;
244
+ /** Firstname */
245
+ firstname: string;
246
+ /** Lastname */
247
+ lastname: string;
248
+ /** Locality */
249
+ locality: string;
250
+ /** Phone Number */
251
+ phone_number?: string | null;
252
+ /** Postal Code */
253
+ postal_code?: string | null;
254
+ };
225
255
  /** Body_create_validation_api_v1_validations_post */
226
256
  Body_create_validation_api_v1_validations_post: {
227
257
  /** Dpi File */
@@ -261,6 +291,28 @@ interface components {
261
291
  /** List Type */
262
292
  list_type: string;
263
293
  };
294
+ /**
295
+ * CardInput
296
+ * @description Credit card data submitted from the purchase form.
297
+ *
298
+ * Card data never persists — it travels from this schema directly into
299
+ * the Cybersource API payload. The ExternalPaymentLog deliberately does
300
+ * NOT capture card_number or card_cvs (see app/api/credits.py purchase
301
+ * flow, Task 7).
302
+ */
303
+ CardInput: {
304
+ /** Card Cvs */
305
+ card_cvs: string;
306
+ /**
307
+ * Card Expiration
308
+ * Format: date
309
+ */
310
+ card_expiration: string;
311
+ /** Card Number */
312
+ card_number: string;
313
+ /** Name On Card */
314
+ name_on_card: string;
315
+ };
264
316
  /** ChangePasswordRequest */
265
317
  ChangePasswordRequest: {
266
318
  /** Current Password */
@@ -636,6 +688,8 @@ interface components {
636
688
  };
637
689
  /** PurchaseRequest */
638
690
  PurchaseRequest: {
691
+ billing?: components["schemas"]["BillingInput"] | null;
692
+ card?: components["schemas"]["CardInput"] | null;
639
693
  /** Idempotency Key */
640
694
  idempotency_key: string;
641
695
  /**
@@ -643,8 +697,6 @@ interface components {
643
697
  * @enum {string}
644
698
  */
645
699
  package: "10" | "50" | "100";
646
- /** Payment Token */
647
- payment_token: string;
648
700
  };
649
701
  /** PurchaseResponse */
650
702
  PurchaseResponse: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiquemos/sdk",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Official TypeScript SDK for the Verifiquemos compliance API",
5
5
  "license": "MIT",
6
6
  "author": "Verifiquemos",