increase 0.575.0 → 0.577.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/bin/cli +5 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts.map +1 -1
  5. package/client.js +4 -4
  6. package/client.js.map +1 -1
  7. package/client.mjs +4 -4
  8. package/client.mjs.map +1 -1
  9. package/core/error.js +5 -4
  10. package/core/error.js.map +1 -1
  11. package/core/error.mjs +5 -4
  12. package/core/error.mjs.map +1 -1
  13. package/core/pagination.d.mts.map +1 -1
  14. package/core/pagination.d.ts.map +1 -1
  15. package/internal/detect-platform.js +1 -1
  16. package/internal/detect-platform.js.map +1 -1
  17. package/internal/detect-platform.mjs +1 -1
  18. package/internal/detect-platform.mjs.map +1 -1
  19. package/internal/qs/stringify.d.mts.map +1 -1
  20. package/internal/qs/stringify.d.ts.map +1 -1
  21. package/internal/qs/stringify.js +13 -12
  22. package/internal/qs/stringify.js.map +1 -1
  23. package/internal/qs/stringify.mjs +13 -12
  24. package/internal/qs/stringify.mjs.map +1 -1
  25. package/internal/shim-types.d.mts.map +1 -1
  26. package/internal/shim-types.d.ts.map +1 -1
  27. package/internal/types.d.mts +4 -4
  28. package/internal/types.d.mts.map +1 -1
  29. package/internal/types.d.ts +4 -4
  30. package/internal/types.d.ts.map +1 -1
  31. package/internal/uploads.d.mts.map +1 -1
  32. package/internal/uploads.d.ts.map +1 -1
  33. package/internal/uploads.js +3 -5
  34. package/internal/uploads.js.map +1 -1
  35. package/internal/uploads.mjs +3 -5
  36. package/internal/uploads.mjs.map +1 -1
  37. package/internal/utils/log.d.mts.map +1 -1
  38. package/internal/utils/log.d.ts.map +1 -1
  39. package/internal/utils/log.js +3 -3
  40. package/internal/utils/log.js.map +1 -1
  41. package/internal/utils/log.mjs +3 -3
  42. package/internal/utils/log.mjs.map +1 -1
  43. package/package.json +21 -21
  44. package/resources/accounts.d.mts +1 -0
  45. package/resources/accounts.d.mts.map +1 -1
  46. package/resources/accounts.d.ts +1 -0
  47. package/resources/accounts.d.ts.map +1 -1
  48. package/resources/check-transfers.d.mts +17 -7
  49. package/resources/check-transfers.d.mts.map +1 -1
  50. package/resources/check-transfers.d.ts +17 -7
  51. package/resources/check-transfers.d.ts.map +1 -1
  52. package/resources/entities.d.mts +9 -0
  53. package/resources/entities.d.mts.map +1 -1
  54. package/resources/entities.d.ts +9 -0
  55. package/resources/entities.d.ts.map +1 -1
  56. package/resources/event-subscriptions.d.mts +10 -2
  57. package/resources/event-subscriptions.d.mts.map +1 -1
  58. package/resources/event-subscriptions.d.ts +10 -2
  59. package/resources/event-subscriptions.d.ts.map +1 -1
  60. package/resources/events.d.mts +11 -3
  61. package/resources/events.d.mts.map +1 -1
  62. package/resources/events.d.ts +11 -3
  63. package/resources/events.d.ts.map +1 -1
  64. package/resources/inbound-wire-transfers.d.mts +8 -0
  65. package/resources/inbound-wire-transfers.d.mts.map +1 -1
  66. package/resources/inbound-wire-transfers.d.ts +8 -0
  67. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  68. package/resources/pending-transactions.d.mts +2 -2
  69. package/resources/pending-transactions.d.ts +2 -2
  70. package/resources/simulations/card-settlements.d.mts +7 -8
  71. package/resources/simulations/card-settlements.d.mts.map +1 -1
  72. package/resources/simulations/card-settlements.d.ts +7 -8
  73. package/resources/simulations/card-settlements.d.ts.map +1 -1
  74. package/resources/simulations/card-settlements.js +0 -2
  75. package/resources/simulations/card-settlements.js.map +1 -1
  76. package/resources/simulations/card-settlements.mjs +0 -2
  77. package/resources/simulations/card-settlements.mjs.map +1 -1
  78. package/resources/simulations/programs.d.mts +1 -2
  79. package/resources/simulations/programs.d.mts.map +1 -1
  80. package/resources/simulations/programs.d.ts +1 -2
  81. package/resources/simulations/programs.d.ts.map +1 -1
  82. package/resources/swift-transfers.d.mts +10 -0
  83. package/resources/swift-transfers.d.mts.map +1 -1
  84. package/resources/swift-transfers.d.ts +10 -0
  85. package/resources/swift-transfers.d.ts.map +1 -1
  86. package/src/client.ts +7 -10
  87. package/src/core/error.ts +6 -6
  88. package/src/core/pagination.ts +3 -3
  89. package/src/internal/detect-platform.ts +1 -1
  90. package/src/internal/qs/stringify.ts +14 -15
  91. package/src/internal/shim-types.ts +3 -2
  92. package/src/internal/types.ts +29 -33
  93. package/src/internal/uploads.ts +5 -6
  94. package/src/internal/utils/log.ts +8 -12
  95. package/src/resources/accounts.ts +2 -0
  96. package/src/resources/check-transfers.ts +20 -8
  97. package/src/resources/entities.ts +11 -0
  98. package/src/resources/event-subscriptions.ts +12 -0
  99. package/src/resources/events.ts +14 -0
  100. package/src/resources/inbound-wire-transfers.ts +10 -0
  101. package/src/resources/pending-transactions.ts +2 -2
  102. package/src/resources/simulations/card-settlements.ts +7 -8
  103. package/src/resources/simulations/programs.ts +1 -2
  104. package/src/resources/swift-transfers.ts +12 -0
  105. package/src/version.ts +1 -1
  106. package/version.d.mts +1 -1
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
  109. package/version.mjs +1 -1
@@ -147,6 +147,11 @@ export interface SwiftTransfer {
147
147
  * - `USD` - United States Dollar
148
148
  */
149
149
  instructed_currency: 'USD';
150
+ /**
151
+ * The bank identification code (BIC) of the intermediary bank, if the transfer is
152
+ * routed through one.
153
+ */
154
+ intermediary_bank_identification_code: string | null;
150
155
  /**
151
156
  * The ID for the pending transaction representing the transfer.
152
157
  */
@@ -365,6 +370,11 @@ export interface SwiftTransferCreateParams {
365
370
  * Unstructured remittance information to include in the transfer.
366
371
  */
367
372
  unstructured_remittance_information: string;
373
+ /**
374
+ * The bank identification code (BIC) of the intermediary bank, if the transfer
375
+ * should be routed through one.
376
+ */
377
+ intermediary_bank_identification_code?: string;
368
378
  /**
369
379
  * Whether the transfer requires explicit approval via the dashboard or API.
370
380
  */
@@ -1 +1 @@
1
- {"version":3,"file":"swift-transfers.d.ts","sourceRoot":"","sources":["../src/resources/swift-transfers.ts"],"names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AiB,SAAS;QACxB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;IAED,UAAiB,MAAM;QACrB;;;WAGG;QACH,EAAE,CAAC,EAAE,KAAK,CACN,kBAAkB,GAClB,UAAU,GACV,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,WAAW,GACX,UAAU,GACV,UAAU,CACb,CAAC;KACH;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
package/src/client.ts CHANGED
@@ -15,7 +15,7 @@ import { stringifyQuery } from './internal/utils/query';
15
15
  import { VERSION } from './version';
16
16
  import * as Errors from './core/error';
17
17
  import * as Pagination from './core/pagination';
18
- import { AbstractPage, type PageParams, PageResponse } from './core/pagination';
18
+ import { type PageParams, PageResponse } from './core/pagination';
19
19
  import * as Uploads from './core/uploads';
20
20
  import * as API from './resources/index';
21
21
  import { APIPromise } from './core/api-promise';
@@ -636,9 +636,8 @@ export class Increase {
636
636
  defaultBaseURL?: string | undefined,
637
637
  ): string {
638
638
  const baseURL = (!this.#baseURLOverridden() && defaultBaseURL) || this.baseURL;
639
- const url =
640
- isAbsoluteURL(path) ?
641
- new URL(path)
639
+ const url = isAbsoluteURL(path)
640
+ ? new URL(path)
642
641
  : new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
643
642
 
644
643
  const defaultQuery = this.defaultQuery();
@@ -801,9 +800,7 @@ export class Increase {
801
800
  .filter(([name]) => name === 'Idempotent-Replayed')
802
801
  .map(([name, value]) => ', ' + name + ': ' + JSON.stringify(value))
803
802
  .join('');
804
- const responseInfo = `[${requestLogID}${retryLogStr}${specialHeaders}] ${req.method} ${url} ${
805
- response.ok ? 'succeeded' : 'failed'
806
- } with status ${response.status} in ${headersTime - startTime}ms`;
803
+ const responseInfo = `[${requestLogID}${retryLogStr}${specialHeaders}] ${req.method} ${url} ${response.ok ? 'succeeded' : 'failed'} with status ${response.status} in ${headersTime - startTime}ms`;
807
804
 
808
805
  if (!response.ok) {
809
806
  const shouldRetry = await this.shouldRetry(response);
@@ -877,9 +874,9 @@ export class Increase {
877
874
  ): Pagination.PagePromise<PageClass, Item> {
878
875
  return this.requestAPIList(
879
876
  Page,
880
- opts && 'then' in opts ?
881
- opts.then((opts) => ({ method: 'get', path, ...opts }))
882
- : { method: 'get', path, ...opts },
877
+ opts && 'then' in opts
878
+ ? opts.then((opts) => ({ method: 'get', path, ...opts }))
879
+ : { method: 'get', path, ...opts },
883
880
  );
884
881
  }
885
882
 
package/src/core/error.ts CHANGED
@@ -27,13 +27,13 @@ export class APIError<
27
27
  }
28
28
 
29
29
  private static makeMessage(status: number | undefined, error: any, message: string | undefined) {
30
- const msg =
31
- error?.message ?
32
- typeof error.message === 'string' ?
33
- error.message
30
+ const msg = error?.message
31
+ ? typeof error.message === 'string'
32
+ ? error.message
34
33
  : JSON.stringify(error.message)
35
- : error ? JSON.stringify(error)
36
- : message;
34
+ : error
35
+ ? JSON.stringify(error)
36
+ : message;
37
37
 
38
38
  if (status && msg) {
39
39
  return `${status} ${msg}`;
@@ -73,9 +73,9 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
73
73
  * }
74
74
  */
75
75
  export class PagePromise<
76
- PageClass extends AbstractPage<Item>,
77
- Item = ReturnType<PageClass['getPaginatedItems']>[number],
78
- >
76
+ PageClass extends AbstractPage<Item>,
77
+ Item = ReturnType<PageClass['getPaginatedItems']>[number],
78
+ >
79
79
  extends APIPromise<PageClass>
80
80
  implements AsyncIterable<Item>
81
81
  {
@@ -67,7 +67,7 @@ const getPlatformProperties = (): PlatformProperties => {
67
67
  'X-Stainless-Arch': normalizeArch(Deno.build.arch),
68
68
  'X-Stainless-Runtime': 'deno',
69
69
  'X-Stainless-Runtime-Version':
70
- typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
70
+ typeof Deno.version === 'string' ? Deno.version : (Deno.version?.deno ?? 'unknown'),
71
71
  };
72
72
  }
73
73
  if (typeof EdgeRuntime !== 'undefined') {
@@ -113,8 +113,8 @@ function inner_stringify(
113
113
 
114
114
  if (obj === null) {
115
115
  if (strictNullHandling) {
116
- return encoder && !encodeValuesOnly ?
117
- // @ts-expect-error
116
+ return encoder && !encodeValuesOnly
117
+ ? // @ts-expect-error
118
118
  encoder(prefix, defaults.encoder, charset, 'key', format)
119
119
  : prefix;
120
120
  }
@@ -124,10 +124,10 @@ function inner_stringify(
124
124
 
125
125
  if (is_non_nullish_primitive(obj) || is_buffer(obj)) {
126
126
  if (encoder) {
127
- const key_value =
128
- encodeValuesOnly ? prefix
129
- // @ts-expect-error
130
- : encoder(prefix, defaults.encoder, charset, 'key', format);
127
+ const key_value = encodeValuesOnly
128
+ ? prefix
129
+ : // @ts-expect-error
130
+ encoder(prefix, defaults.encoder, charset, 'key', format);
131
131
  return [
132
132
  formatter?.(key_value) +
133
133
  '=' +
@@ -180,10 +180,9 @@ function inner_stringify(
180
180
 
181
181
  // @ts-ignore
182
182
  const encoded_key = allowDots && encodeDotInKeys ? (key as any).replace(/\./g, '%2E') : key;
183
- const key_prefix =
184
- isArray(obj) ?
185
- typeof generateArrayPrefix === 'function' ?
186
- generateArrayPrefix(adjusted_prefix, encoded_key)
183
+ const key_prefix = isArray(obj)
184
+ ? typeof generateArrayPrefix === 'function'
185
+ ? generateArrayPrefix(adjusted_prefix, encoded_key)
187
186
  : adjusted_prefix
188
187
  : adjusted_prefix + (allowDots ? '.' + encoded_key : '[' + encoded_key + ']');
189
188
 
@@ -267,11 +266,11 @@ function normalize_stringify_options(
267
266
  }
268
267
 
269
268
  const allowDots =
270
- typeof opts.allowDots === 'undefined' ?
271
- !!opts.encodeDotInKeys === true ?
272
- true
273
- : defaults.allowDots
274
- : !!opts.allowDots;
269
+ typeof opts.allowDots === 'undefined'
270
+ ? !!opts.encodeDotInKeys === true
271
+ ? true
272
+ : defaults.allowDots
273
+ : !!opts.allowDots;
275
274
 
276
275
  return {
277
276
  addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
@@ -15,8 +15,9 @@ type _DOMReadableStream<R = any> = globalThis.ReadableStream<R>;
15
15
  /** @ts-ignore */
16
16
  type _NodeReadableStream<R = any> = import('stream/web').ReadableStream<R>;
17
17
 
18
- type _ConditionalNodeReadableStream<R = any> =
19
- typeof globalThis extends { ReadableStream: any } ? never : _NodeReadableStream<R>;
18
+ type _ConditionalNodeReadableStream<R = any> = typeof globalThis extends { ReadableStream: any }
19
+ ? never
20
+ : _NodeReadableStream<R>;
20
21
 
21
22
  type _ReadableStream<R = any> = NeverToAny<
22
23
  | ([0] extends [1 & _DOMReadableStream<R>] ? never : _DOMReadableStream<R>)
@@ -12,34 +12,29 @@ type NotAny<T> = [0] extends [1 & T] ? never : T;
12
12
  /**
13
13
  * Some environments overload the global fetch function, and Parameters<T> only gets the last signature.
14
14
  */
15
- type OverloadedParameters<T> =
16
- T extends (
17
- {
18
- (...args: infer A): unknown;
19
- (...args: infer B): unknown;
20
- (...args: infer C): unknown;
21
- (...args: infer D): unknown;
22
- }
23
- ) ?
24
- A | B | C | D
25
- : T extends (
26
- {
27
- (...args: infer A): unknown;
28
- (...args: infer B): unknown;
29
- (...args: infer C): unknown;
30
- }
31
- ) ?
32
- A | B | C
33
- : T extends (
34
- {
35
- (...args: infer A): unknown;
36
- (...args: infer B): unknown;
37
- }
38
- ) ?
39
- A | B
40
- : T extends (...args: infer A) => unknown ? A
41
- : never;
15
+ type OverloadedParameters<T> = T extends {
16
+ (...args: infer A): unknown;
17
+ (...args: infer B): unknown;
18
+ (...args: infer C): unknown;
19
+ (...args: infer D): unknown;
20
+ }
21
+ ? A | B | C | D
22
+ : T extends {
23
+ (...args: infer A): unknown;
24
+ (...args: infer B): unknown;
25
+ (...args: infer C): unknown;
26
+ }
27
+ ? A | B | C
28
+ : T extends {
29
+ (...args: infer A): unknown;
30
+ (...args: infer B): unknown;
31
+ }
32
+ ? A | B
33
+ : T extends (...args: infer A) => unknown
34
+ ? A
35
+ : never;
42
36
 
37
+ /* eslint-disable */
43
38
  /**
44
39
  * These imports attempt to get types from a parent package's dependencies.
45
40
  * Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
@@ -62,18 +57,19 @@ type OverloadedParameters<T> =
62
57
  *
63
58
  * [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
64
59
  */
65
- /** @ts-ignore For users with \@types/node */ /* prettier-ignore */
60
+ /** @ts-ignore For users with \@types/node */ /* oxfmt-ignore */
66
61
  type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
67
- /** @ts-ignore For users with undici */ /* prettier-ignore */
62
+ /** @ts-ignore For users with undici */ /* oxfmt-ignore */
68
63
  type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
69
- /** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
64
+ /** @ts-ignore For users with \@types/bun */ /* oxfmt-ignore */
70
65
  type BunRequestInit = globalThis.FetchRequestInit;
71
- /** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
66
+ /** @ts-ignore For users with node-fetch@2 */ /* oxfmt-ignore */
72
67
  type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
73
- /** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
68
+ /** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* oxfmt-ignore */
74
69
  type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
75
- /** @ts-ignore For users who use Deno */ /* prettier-ignore */
70
+ /** @ts-ignore For users who use Deno */ /* oxfmt-ignore */
76
71
  type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
72
+ /* eslint-enable */
77
73
 
78
74
  type RequestInits =
79
75
  | NotAny<UndiciTypesRequestInit>
@@ -18,9 +18,9 @@ export const checkFileSupport = () => {
18
18
  typeof process?.versions?.node === 'string' && parseInt(process.versions.node.split('.')) < 20;
19
19
  throw new Error(
20
20
  '`File` is not defined as a global, which is required for file uploads.' +
21
- (isOldNode ?
22
- " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`."
23
- : ''),
21
+ (isOldNode
22
+ ? " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`."
23
+ : ''),
24
24
  );
25
25
  }
26
26
  };
@@ -105,9 +105,8 @@ function supportsFormData(fetchObject: Increase | Fetch): Promise<boolean> {
105
105
  const promise = (async () => {
106
106
  try {
107
107
  const FetchResponse = (
108
- 'Response' in fetch ?
109
- fetch.Response
110
- : (await fetch('data:,')).constructor) as typeof Response;
108
+ 'Response' in fetch ? fetch.Response : (await fetch('data:,')).constructor
109
+ ) as typeof Response;
111
110
  const data = new FormData();
112
111
  if (data.toString() === (await new FetchResponse(data).text())) {
113
112
  return false;
@@ -33,9 +33,7 @@ export const parseLogLevel = (
33
33
  return maybeLevel;
34
34
  }
35
35
  loggerFor(client).warn(
36
- `${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(
37
- Object.keys(levelNumbers),
38
- )}`,
36
+ `${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(Object.keys(levelNumbers))}`,
39
37
  );
40
38
  return undefined;
41
39
  };
@@ -105,15 +103,13 @@ export const formatRequestDetails = (details: {
105
103
  (details.headers instanceof Headers ? [...details.headers] : Object.entries(details.headers)).map(
106
104
  ([name, value]) => [
107
105
  name,
108
- (
109
- name.toLowerCase() === 'authorization' ||
110
- name.toLowerCase() === 'api-key' ||
111
- name.toLowerCase() === 'x-api-key' ||
112
- name.toLowerCase() === 'cookie' ||
113
- name.toLowerCase() === 'set-cookie'
114
- ) ?
115
- '***'
116
- : value,
106
+ name.toLowerCase() === 'authorization' ||
107
+ name.toLowerCase() === 'api-key' ||
108
+ name.toLowerCase() === 'x-api-key' ||
109
+ name.toLowerCase() === 'cookie' ||
110
+ name.toLowerCase() === 'set-cookie'
111
+ ? '***'
112
+ : value,
117
113
  ],
118
114
  ),
119
115
  );
@@ -410,6 +410,8 @@ export namespace AccountCreateParams {
410
410
  * The date on which the loan matures.
411
411
  */
412
412
  maturity_date?: string;
413
+
414
+ [k: string]: unknown;
413
415
  }
414
416
  }
415
417
 
@@ -460,6 +460,11 @@ export namespace CheckTransfer {
460
460
  */
461
461
  return_address: PhysicalCheck.ReturnAddress | null;
462
462
 
463
+ /**
464
+ * A custom name printed above the Increase-managed return address.
465
+ */
466
+ return_address_name: string | null;
467
+
463
468
  /**
464
469
  * The shipping method for the check.
465
470
  *
@@ -474,7 +479,8 @@ export namespace CheckTransfer {
474
479
  signature: PhysicalCheck.Signature;
475
480
 
476
481
  /**
477
- * Tracking updates relating to the physical check's delivery.
482
+ * Tracking updates relating to the physical check's delivery. Sorted by
483
+ * `created_at` in ascending order.
478
484
  */
479
485
  tracking_updates: Array<PhysicalCheck.TrackingUpdate>;
480
486
 
@@ -844,6 +850,13 @@ export namespace CheckTransferCreateParams {
844
850
  */
845
851
  memo: string;
846
852
 
853
+ /**
854
+ * The payer of the check. This will be printed on the top-left portion of the
855
+ * check. This should be an array of up to 4 elements, each of which represents a
856
+ * line of the payer.
857
+ */
858
+ payer: Array<PhysicalCheck.Payer>;
859
+
847
860
  /**
848
861
  * The name that will be printed on the check in the 'To:' field.
849
862
  */
@@ -868,13 +881,6 @@ export namespace CheckTransferCreateParams {
868
881
  */
869
882
  note?: string;
870
883
 
871
- /**
872
- * The payer of the check. This will be printed on the top-left portion of the
873
- * check and defaults to the return address if unspecified. This should be an array
874
- * of up to 4 elements, each of which represents a line of the payer.
875
- */
876
- payer?: Array<PhysicalCheck.Payer>;
877
-
878
884
  /**
879
885
  * The return address to be printed on the check. If omitted this will default to
880
886
  * an Increase-owned address that will mark checks as delivery failed and shred
@@ -882,6 +888,12 @@ export namespace CheckTransferCreateParams {
882
888
  */
883
889
  return_address?: PhysicalCheck.ReturnAddress;
884
890
 
891
+ /**
892
+ * A custom name to print above the default return address. Cannot be provided
893
+ * together with `return_address`.
894
+ */
895
+ return_address_name?: string;
896
+
885
897
  /**
886
898
  * How to ship the check. For details on pricing, timing, and restrictions, see
887
899
  * https://increase.com/documentation/originating-checks#printing-checks .
@@ -3327,6 +3327,8 @@ export interface EntityListParams extends PageParams {
3327
3327
  idempotency_key?: string;
3328
3328
 
3329
3329
  status?: EntityListParams.Status;
3330
+
3331
+ validation_status?: EntityListParams.ValidationStatus;
3330
3332
  }
3331
3333
 
3332
3334
  export namespace EntityListParams {
@@ -3364,6 +3366,15 @@ export namespace EntityListParams {
3364
3366
  */
3365
3367
  in?: Array<'active' | 'archived' | 'disabled'>;
3366
3368
  }
3369
+
3370
+ export interface ValidationStatus {
3371
+ /**
3372
+ * Filter Entities for those with the specified validation status. For GET
3373
+ * requests, this should be encoded as a comma-delimited string, such as
3374
+ * `?in=one,two,three`.
3375
+ */
3376
+ in?: Array<'pending' | 'valid' | 'invalid'>;
3377
+ }
3367
3378
  }
3368
3379
 
3369
3380
  export declare namespace Entities {
@@ -234,6 +234,10 @@ export namespace EventSubscription {
234
234
  * is updated.
235
235
  * - `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
236
236
  * - `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
237
+ * - `inbound_real_time_payments_request_for_payment.created` - Occurs whenever an
238
+ * Inbound Real-Time Payments Request for Payment is created.
239
+ * - `inbound_real_time_payments_request_for_payment.updated` - Occurs whenever an
240
+ * Inbound Real-Time Payments Request for Payment is updated.
237
241
  * - `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
238
242
  * Real-Time Payments Transfer is created.
239
243
  * - `inbound_real_time_payments_transfer.updated` - Occurs whenever an Inbound
@@ -379,6 +383,8 @@ export namespace EventSubscription {
379
383
  | 'inbound_fednow_transfer.updated'
380
384
  | 'inbound_mail_item.created'
381
385
  | 'inbound_mail_item.updated'
386
+ | 'inbound_real_time_payments_request_for_payment.created'
387
+ | 'inbound_real_time_payments_request_for_payment.updated'
382
388
  | 'inbound_real_time_payments_transfer.created'
383
389
  | 'inbound_real_time_payments_transfer.updated'
384
390
  | 'inbound_wire_drawdown_request.created'
@@ -566,6 +572,10 @@ export namespace EventSubscriptionCreateParams {
566
572
  * is updated.
567
573
  * - `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
568
574
  * - `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
575
+ * - `inbound_real_time_payments_request_for_payment.created` - Occurs whenever an
576
+ * Inbound Real-Time Payments Request for Payment is created.
577
+ * - `inbound_real_time_payments_request_for_payment.updated` - Occurs whenever an
578
+ * Inbound Real-Time Payments Request for Payment is updated.
569
579
  * - `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
570
580
  * Real-Time Payments Transfer is created.
571
581
  * - `inbound_real_time_payments_transfer.updated` - Occurs whenever an Inbound
@@ -711,6 +721,8 @@ export namespace EventSubscriptionCreateParams {
711
721
  | 'inbound_fednow_transfer.updated'
712
722
  | 'inbound_mail_item.created'
713
723
  | 'inbound_mail_item.updated'
724
+ | 'inbound_real_time_payments_request_for_payment.created'
725
+ | 'inbound_real_time_payments_request_for_payment.updated'
714
726
  | 'inbound_real_time_payments_transfer.created'
715
727
  | 'inbound_real_time_payments_transfer.updated'
716
728
  | 'inbound_wire_drawdown_request.created'
@@ -172,6 +172,10 @@ export interface Event {
172
172
  * is updated.
173
173
  * - `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
174
174
  * - `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
175
+ * - `inbound_real_time_payments_request_for_payment.created` - Occurs whenever an
176
+ * Inbound Real-Time Payments Request for Payment is created.
177
+ * - `inbound_real_time_payments_request_for_payment.updated` - Occurs whenever an
178
+ * Inbound Real-Time Payments Request for Payment is updated.
175
179
  * - `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
176
180
  * Real-Time Payments Transfer is created.
177
181
  * - `inbound_real_time_payments_transfer.updated` - Occurs whenever an Inbound
@@ -317,6 +321,8 @@ export interface Event {
317
321
  | 'inbound_fednow_transfer.updated'
318
322
  | 'inbound_mail_item.created'
319
323
  | 'inbound_mail_item.updated'
324
+ | 'inbound_real_time_payments_request_for_payment.created'
325
+ | 'inbound_real_time_payments_request_for_payment.updated'
320
326
  | 'inbound_real_time_payments_transfer.created'
321
327
  | 'inbound_real_time_payments_transfer.updated'
322
328
  | 'inbound_wire_drawdown_request.created'
@@ -497,6 +503,10 @@ export interface UnwrapWebhookEvent {
497
503
  * is updated.
498
504
  * - `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
499
505
  * - `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
506
+ * - `inbound_real_time_payments_request_for_payment.created` - Occurs whenever an
507
+ * Inbound Real-Time Payments Request for Payment is created.
508
+ * - `inbound_real_time_payments_request_for_payment.updated` - Occurs whenever an
509
+ * Inbound Real-Time Payments Request for Payment is updated.
500
510
  * - `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
501
511
  * Real-Time Payments Transfer is created.
502
512
  * - `inbound_real_time_payments_transfer.updated` - Occurs whenever an Inbound
@@ -642,6 +652,8 @@ export interface UnwrapWebhookEvent {
642
652
  | 'inbound_fednow_transfer.updated'
643
653
  | 'inbound_mail_item.created'
644
654
  | 'inbound_mail_item.updated'
655
+ | 'inbound_real_time_payments_request_for_payment.created'
656
+ | 'inbound_real_time_payments_request_for_payment.updated'
645
657
  | 'inbound_real_time_payments_transfer.created'
646
658
  | 'inbound_real_time_payments_transfer.updated'
647
659
  | 'inbound_wire_drawdown_request.created'
@@ -789,6 +801,8 @@ export namespace EventListParams {
789
801
  | 'inbound_fednow_transfer.updated'
790
802
  | 'inbound_mail_item.created'
791
803
  | 'inbound_mail_item.updated'
804
+ | 'inbound_real_time_payments_request_for_payment.created'
805
+ | 'inbound_real_time_payments_request_for_payment.updated'
792
806
  | 'inbound_real_time_payments_transfer.created'
793
807
  | 'inbound_real_time_payments_transfer.updated'
794
808
  | 'inbound_wire_drawdown_request.created'
@@ -125,6 +125,11 @@ export interface InboundWireTransfer {
125
125
  */
126
126
  creditor_name: string | null;
127
127
 
128
+ /**
129
+ * The account number of the sender.
130
+ */
131
+ debtor_account_number: string | null;
132
+
128
133
  /**
129
134
  * A free-form address field set by the sender.
130
135
  */
@@ -145,6 +150,11 @@ export interface InboundWireTransfer {
145
150
  */
146
151
  debtor_name: string | null;
147
152
 
153
+ /**
154
+ * The American Banking Association (ABA) routing number of the sender.
155
+ */
156
+ debtor_routing_number: string | null;
157
+
148
158
  /**
149
159
  * An Increase-constructed description of the transfer.
150
160
  */
@@ -1705,8 +1705,8 @@ export interface PendingTransactionCreateParams {
1705
1705
 
1706
1706
  /**
1707
1707
  * The amount to hold in the minor unit of the account's currency. For dollars, for
1708
- * example, this is cents. This should be a negative amount - to hold $1.00 from
1709
- * the account, you would pass -100.
1708
+ * example, this is cents. This should be a negative amount: To hold $1.00 from the
1709
+ * account, pass -100 as `amount`.
1710
1710
  */
1711
1711
  amount: number;
1712
1712
 
@@ -18,8 +18,6 @@ export class CardSettlements extends APIResource {
18
18
  * const transaction =
19
19
  * await client.simulations.cardSettlements.create({
20
20
  * card_id: 'card_oubs0hwk5rn6knuecxg2',
21
- * pending_transaction_id:
22
- * 'pending_transaction_k1sfetcau2qbvjbzgju4',
23
21
  * });
24
22
  * ```
25
23
  */
@@ -38,16 +36,17 @@ export interface CardSettlementCreateParams {
38
36
  card_id: string;
39
37
 
40
38
  /**
41
- * The identifier of the Pending Transaction for the Card Authorization you wish to
42
- * settle.
39
+ * The amount to be settled. This defaults to the amount of the Pending Transaction
40
+ * being settled, or a random amount if `pending_transaction_id` is not provided.
43
41
  */
44
- pending_transaction_id: string;
42
+ amount?: number;
45
43
 
46
44
  /**
47
- * The amount to be settled. This defaults to the amount of the Pending Transaction
48
- * being settled.
45
+ * The identifier of the Pending Transaction for the Card Authorization you wish to
46
+ * settle. If not provided, the settlement will be force posted without a Card
47
+ * Authorization.
49
48
  */
50
- amount?: number;
49
+ pending_transaction_id?: string;
51
50
  }
52
51
 
53
52
  export declare namespace CardSettlements {
@@ -36,9 +36,8 @@ export interface ProgramCreateParams {
36
36
  * - `core_bank` - Core Bank
37
37
  * - `first_internet_bank` - First Internet Bank of Indiana
38
38
  * - `grasshopper_bank` - Grasshopper Bank
39
- * - `twin_city_bank` - Twin City Bank
40
39
  */
41
- bank?: 'core_bank' | 'first_internet_bank' | 'grasshopper_bank' | 'twin_city_bank';
40
+ bank?: 'core_bank' | 'first_internet_bank' | 'grasshopper_bank';
42
41
 
43
42
  /**
44
43
  * The maximum extendable credit of the program being added.