@verifiquemos/sdk 0.1.10 → 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 +52 -1
- package/dist/index.d.mts +54 -2
- package/dist/index.d.ts +54 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,54 @@
|
|
|
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
|
+
|
|
32
|
+
## [0.1.11] - 2026-06-01
|
|
33
|
+
|
|
34
|
+
Tooling-only release — no functional changes to the public SDK
|
|
35
|
+
surface or the generated types.
|
|
36
|
+
|
|
37
|
+
### Internal
|
|
38
|
+
|
|
39
|
+
- Added `.markdownlint-cli2.jsonc` so monorepo-wide markdown lint runs
|
|
40
|
+
skip `node_modules/` and `dist/` when executed from this
|
|
41
|
+
subproject. A comment notes that `.markdownlintignore` is not
|
|
42
|
+
honored by `markdownlint-cli2` v0.21 (verified empirically).
|
|
43
|
+
- Markdown formatting cleanup in `CHANGELOG.md` from
|
|
44
|
+
`markdownlint-cli2 --fix` (MD022 / MD031 / MD032). No content
|
|
45
|
+
changes.
|
|
46
|
+
|
|
5
47
|
## [0.1.10] - 2026-06-01
|
|
6
48
|
|
|
7
49
|
Generated-types release — no functional changes.
|
|
8
50
|
|
|
9
51
|
### Internal
|
|
52
|
+
|
|
10
53
|
- `src/generated.ts` regenerated from `verifiquemos-api/openapi.json`
|
|
11
54
|
(api 0.35.8, up from 0.35.2). Net +432/-70 lines. The substantive
|
|
12
55
|
surface is the dashboard split: two new export endpoints
|
|
@@ -29,6 +72,7 @@ Generated-types release — no functional changes.
|
|
|
29
72
|
Graphify hygiene — no functional changes.
|
|
30
73
|
|
|
31
74
|
### Internal
|
|
75
|
+
|
|
32
76
|
- `.gitignore` excludes `graphify-out/`. The authoritative knowledge
|
|
33
77
|
graph lives at the monorepo root (`verifiquemos/graphify-out/`);
|
|
34
78
|
this defensive entry covers the case where someone runs
|
|
@@ -39,6 +83,7 @@ Graphify hygiene — no functional changes.
|
|
|
39
83
|
Generated-types release — no functional changes.
|
|
40
84
|
|
|
41
85
|
### Internal
|
|
86
|
+
|
|
42
87
|
- `src/generated.ts` regenerated from `verifiquemos-api/openapi.json`
|
|
43
88
|
(api 0.35.2). Cumulative refresh after ~13 api releases — the
|
|
44
89
|
previous regen was against api 0.22.4 — net +684/-21 lines. New
|
|
@@ -64,6 +109,7 @@ Generated-types release — no functional changes.
|
|
|
64
109
|
Generated-types release — no functional changes.
|
|
65
110
|
|
|
66
111
|
### Internal
|
|
112
|
+
|
|
67
113
|
- `src/generated.ts` regenerated from `verifiquemos-api/openapi.json`
|
|
68
114
|
(api 0.22.4). The api cycle 0.22.0 → 0.22.4 made no endpoint
|
|
69
115
|
signature or response-shape changes; the +1031/-1031 diff is fully
|
|
@@ -76,19 +122,22 @@ Generated-types release — no functional changes.
|
|
|
76
122
|
Documentation release — no functional changes.
|
|
77
123
|
|
|
78
124
|
### Internal
|
|
125
|
+
|
|
79
126
|
- README adds a Requirements section (Node >=20, npm >=10) and documents
|
|
80
127
|
the publish gate explicitly — push a `v*` tag, the Azure pipeline runs
|
|
81
128
|
`npm publish --access public` after `prepublishOnly` (typecheck + test
|
|
82
|
-
|
|
129
|
+
- build). CI invariants unchanged.
|
|
83
130
|
|
|
84
131
|
## [0.1.5] - 2026-05-25
|
|
85
132
|
|
|
86
133
|
Documentation and tooling release — no functional changes.
|
|
87
134
|
|
|
88
135
|
### Fixed
|
|
136
|
+
|
|
89
137
|
- README: corrected the `validations.create` example to match the API — `cui` is extracted from the DPI via OCR (not a parameter), `dpiFile` replaces `dpiFront`/`dpiBack`, and `paisOrigenFondos` takes an ISO-3 code (`GTM`).
|
|
90
138
|
|
|
91
139
|
### Internal
|
|
140
|
+
|
|
92
141
|
- Added ESLint 10 (flat config) wired into the scripts, `prepublishOnly` and CI; the generated client is ignored.
|
|
93
142
|
- Added a CLAUDE.md agent guide and an `.env.example` for the examples.
|
|
94
143
|
|
|
@@ -101,9 +150,11 @@ Maintenance release — version aligned with the Python SDK (no functional chang
|
|
|
101
150
|
First published release.
|
|
102
151
|
|
|
103
152
|
### Fixed
|
|
153
|
+
|
|
104
154
|
- Corrected the default API domain from `verifiquemos.gt` to `verifiquemos.com` (default `baseUrl`, README, support email and homepage).
|
|
105
155
|
|
|
106
156
|
### Changed
|
|
157
|
+
|
|
107
158
|
- Removed the private repository URL from public package metadata.
|
|
108
159
|
|
|
109
160
|
## [0.1.1] - 2026-05-25
|
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: {
|