@amos.com/node 0.1.64 → 0.1.65

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/openapi/schema.ts CHANGED
@@ -144,10 +144,16 @@ export interface paths {
144
144
  path?: never;
145
145
  cookie?: never;
146
146
  };
147
- /** List all external accounts */
147
+ /**
148
+ * List all external accounts
149
+ * @description Lists organization-scoped external accounts. X-Account-Id is ignored if sent.
150
+ */
148
151
  get: operations["ListExternalAccounts"];
149
152
  put?: never;
150
- /** Create an external account */
153
+ /**
154
+ * Create an external account
155
+ * @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
156
+ */
151
157
  post: operations["CreateExternalAccount"];
152
158
  delete?: never;
153
159
  options?: never;
@@ -162,7 +168,10 @@ export interface paths {
162
168
  path?: never;
163
169
  cookie?: never;
164
170
  };
165
- /** Retrieve an external account by ID */
171
+ /**
172
+ * Retrieve an external account by ID
173
+ * @description Retrieves an organization-scoped external account. X-Account-Id is ignored if sent.
174
+ */
166
175
  get: operations["GetExternalAccount"];
167
176
  put?: never;
168
177
  post?: never;
@@ -1312,15 +1321,19 @@ export interface components {
1312
1321
  ttl?: number;
1313
1322
  };
1314
1323
  BankAccountProfileInput: {
1324
+ /** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
1315
1325
  account_holder_name?: string;
1316
1326
  account_holder_type?: string;
1317
1327
  account_type?: string;
1318
1328
  bank_name?: string;
1319
1329
  currency?: string;
1330
+ /** @description Plaintext bank account number. Stored encrypted at rest. Not returned in API responses. */
1331
+ account_number?: string;
1320
1332
  encrypted_account_number?: string;
1321
1333
  routing_number?: string;
1322
1334
  };
1323
1335
  BankAccountProfile: {
1336
+ /** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
1324
1337
  account_holder_name?: string;
1325
1338
  account_holder_type?: string;
1326
1339
  account_type?: string;
@@ -1388,6 +1401,7 @@ export interface components {
1388
1401
  updated_at?: string;
1389
1402
  };
1390
1403
  CardProfileInput: {
1404
+ /** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
1391
1405
  card_holder_name?: string;
1392
1406
  cvc?: string;
1393
1407
  encrypted_card_number?: string;
@@ -1409,6 +1423,7 @@ export interface components {
1409
1423
  avs_check?: string;
1410
1424
  avs_check_message?: string | null;
1411
1425
  brand?: string;
1426
+ /** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
1412
1427
  card_holder_name?: string;
1413
1428
  cvc_check?: string;
1414
1429
  cvc_check_message?: string | null;
@@ -1562,7 +1577,7 @@ export interface components {
1562
1577
  /** Format: uuid */
1563
1578
  id?: string;
1564
1579
  /** Format: uuid */
1565
- account_id?: string;
1580
+ organization_id?: string;
1566
1581
  metadata?: components["schemas"]["Metadata"];
1567
1582
  /** @enum {string} */
1568
1583
  type?: "external_card" | "external_bank_account";
@@ -2308,6 +2323,7 @@ export interface components {
2308
2323
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
2309
2324
  card_profile_attributes?: {
2310
2325
  brand?: string;
2326
+ /** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
2311
2327
  card_holder_name?: string;
2312
2328
  cvc?: string;
2313
2329
  encrypted_card_number?: string;
@@ -2322,11 +2338,13 @@ export interface components {
2322
2338
  };
2323
2339
  bank_account_profile_attributes?: {
2324
2340
  last4?: string;
2341
+ /** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
2325
2342
  account_holder_name?: string;
2326
2343
  account_holder_type?: string;
2327
2344
  account_type?: string;
2328
2345
  bank_name?: string;
2329
2346
  currency?: string;
2347
+ account_number?: string;
2330
2348
  encrypted_account_number?: string;
2331
2349
  token?: string;
2332
2350
  routing_number?: string;
@@ -2901,6 +2919,8 @@ export interface components {
2901
2919
  XIdempotencyHeader: string;
2902
2920
  /** @description Render template JWT required to create a payment or setup intent. */
2903
2921
  XRenderTokenHeader: string;
2922
+ /** @description The ID of the account to filter by */
2923
+ AccountIdQuery: string;
2904
2924
  /** @description The ID of the customer to filter by */
2905
2925
  CustomerIdQuery: string;
2906
2926
  /** @description Exact email match (case-insensitive). For substring search, use `q`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,10 +21,10 @@
21
21
  "biome": "biome check --write",
22
22
  "lint": "biome check",
23
23
  "ci": "npm run typecheck && npm run lint && npm run build",
24
- "build": "tsup",
25
- "watch": "tsup --watch",
26
- "typecheck": "tsc --noEmit",
27
- "generate": "git -C ../openapi pull && rm -rf openapi/schema.ts && openapi-typescript ../openapi/amos/openapi.public.yaml --output openapi/schema.ts --enum-values",
24
+ "build": "NODE_OPTIONS=\"--require ./scripts/typescript6-api.cjs\" tsup",
25
+ "watch": "NODE_OPTIONS=\"--require ./scripts/typescript6-api.cjs\" tsup --watch",
26
+ "typecheck": "node ./node_modules/typescript/bin/tsc --noEmit",
27
+ "generate": "git -C ../openapi pull && rm -rf openapi/schema.ts && NODE_OPTIONS=\"--require ./scripts/typescript6-api.cjs\" openapi-typescript ../openapi/amos/openapi.public.yaml --output openapi/schema.ts --enum-values",
28
28
  "prepack": "npm run build",
29
29
  "changeset": "changeset",
30
30
  "version": "changeset version",
@@ -50,12 +50,18 @@
50
50
  "openapi-fetch": "0.17.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@biomejs/biome": "2.5.11",
54
- "@changesets/cli": "2.31.1",
55
- "@types/node": "26.4.0",
53
+ "@biomejs/biome": "2.5.14",
54
+ "@changesets/cli": "3.0.3",
55
+ "@types/node": "26.6.2",
56
+ "@typescript/typescript6": "6.0.2",
56
57
  "openapi-typescript": "7.13.0",
57
58
  "tsup": "8.5.1",
58
- "typescript": "5.9.3"
59
+ "typescript": "7.0.2"
60
+ },
61
+ "overrides": {
62
+ "openapi-typescript": {
63
+ "typescript": "$typescript"
64
+ }
59
65
  },
60
66
  "engines": {
61
67
  "node": ">=22.0.0"