increase 0.578.0 → 0.580.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.
- package/CHANGELOG.md +14 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +1 -8
- package/client.js.map +1 -1
- package/client.mjs +1 -8
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beneficial-owners.d.mts +9 -10
- package/resources/beneficial-owners.d.mts.map +1 -1
- package/resources/beneficial-owners.d.ts +9 -10
- package/resources/beneficial-owners.d.ts.map +1 -1
- package/resources/beneficial-owners.js +1 -0
- package/resources/beneficial-owners.js.map +1 -1
- package/resources/beneficial-owners.mjs +1 -0
- package/resources/beneficial-owners.mjs.map +1 -1
- package/resources/entities.d.mts +32 -40
- package/resources/entities.d.mts.map +1 -1
- package/resources/entities.d.ts +32 -40
- package/resources/entities.d.ts.map +1 -1
- package/resources/event-subscriptions.d.mts +10 -2
- package/resources/event-subscriptions.d.mts.map +1 -1
- package/resources/event-subscriptions.d.ts +10 -2
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/events.d.mts +11 -3
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +11 -3
- package/resources/events.d.ts.map +1 -1
- package/resources/files.d.mts +24 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +24 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +28 -0
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +28 -0
- package/resources/files.mjs.map +1 -1
- package/src/client.ts +1 -8
- package/src/resources/beneficial-owners.ts +9 -10
- package/src/resources/entities.ts +32 -40
- package/src/resources/event-subscriptions.ts +12 -0
- package/src/resources/events.ts +14 -0
- package/src/resources/files.ts +32 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/src/internal/detect-platform.ts +0 -196
package/resources/events.d.ts
CHANGED
|
@@ -193,6 +193,10 @@ export interface Event {
|
|
|
193
193
|
* updated.
|
|
194
194
|
* - `physical_check.created` - Occurs whenever a Physical Check is created.
|
|
195
195
|
* - `physical_check.updated` - Occurs whenever a Physical Check is updated.
|
|
196
|
+
* - `physical_check_book.created` - Occurs whenever a Physical Check Book is
|
|
197
|
+
* created.
|
|
198
|
+
* - `physical_check_book.updated` - Occurs whenever a Physical Check Book is
|
|
199
|
+
* updated.
|
|
196
200
|
* - `program.created` - Occurs whenever a Program is created.
|
|
197
201
|
* - `program.updated` - Occurs whenever a Program is updated.
|
|
198
202
|
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
@@ -231,7 +235,7 @@ export interface Event {
|
|
|
231
235
|
* - `wire_transfer.created` - Occurs whenever a Wire Transfer is created.
|
|
232
236
|
* - `wire_transfer.updated` - Occurs whenever a Wire Transfer is updated.
|
|
233
237
|
*/
|
|
234
|
-
category: 'account.created' | 'account.updated' | 'account_number.created' | 'account_number.updated' | 'account_statement.created' | 'account_transfer.created' | 'account_transfer.updated' | 'ach_prenotification.created' | 'ach_prenotification.updated' | 'ach_transfer.created' | 'ach_transfer.updated' | 'blockchain_address.created' | 'blockchain_address.updated' | 'blockchain_offramp_transfer.created' | 'blockchain_offramp_transfer.updated' | 'blockchain_onramp_transfer.created' | 'blockchain_onramp_transfer.updated' | 'bookkeeping_account.created' | 'bookkeeping_account.updated' | 'bookkeeping_entry_set.updated' | 'card.created' | 'card.updated' | 'card_payment.created' | 'card_payment.updated' | 'card_purchase_supplement.created' | 'card_profile.created' | 'card_profile.updated' | 'card_dispute.created' | 'card_dispute.updated' | 'check_deposit.created' | 'check_deposit.updated' | 'check_transfer.created' | 'check_transfer.updated' | 'declined_transaction.created' | 'digital_card_profile.created' | 'digital_card_profile.updated' | 'digital_wallet_token.created' | 'digital_wallet_token.updated' | 'entity.created' | 'entity.updated' | 'event_subscription.created' | 'event_subscription.updated' | 'export.created' | 'export.updated' | 'external_account.created' | 'external_account.updated' | 'fednow_transfer.created' | 'fednow_transfer.updated' | 'file.created' | 'group.updated' | 'group.heartbeat' | 'inbound_ach_transfer.created' | 'inbound_ach_transfer.updated' | 'inbound_ach_transfer_return.created' | 'inbound_ach_transfer_return.updated' | 'inbound_check_deposit.created' | 'inbound_check_deposit.updated' | 'inbound_fednow_transfer.created' | 'inbound_fednow_transfer.updated' | 'inbound_mail_item.created' | 'inbound_mail_item.updated' | 'inbound_real_time_payments_request_for_payment.created' | 'inbound_real_time_payments_request_for_payment.updated' | 'inbound_real_time_payments_transfer.created' | 'inbound_real_time_payments_transfer.updated' | 'inbound_wire_drawdown_request.created' | 'inbound_wire_transfer.created' | 'inbound_wire_transfer.updated' | 'intrafi_account_enrollment.created' | 'intrafi_account_enrollment.updated' | 'intrafi_exclusion.created' | 'intrafi_exclusion.updated' | 'loan_application.created' | 'loan_application.updated' | 'loan_distribution.created' | 'loan_offer.created' | 'loan_offer.updated' | 'loan_purchase.created' | 'lockbox.created' | 'lockbox.updated' | 'oauth_connection.created' | 'oauth_connection.deactivated' | 'card_push_transfer.created' | 'card_push_transfer.updated' | 'card_validation.created' | 'card_validation.updated' | 'pending_transaction.created' | 'pending_transaction.updated' | 'physical_card.created' | 'physical_card.updated' | 'physical_card_profile.created' | 'physical_card_profile.updated' | 'physical_check.created' | 'physical_check.updated' | 'program.created' | 'program.updated' | 'proof_of_authorization_request.created' | 'proof_of_authorization_request.updated' | 'real_time_decision.card_authorization_requested' | 'real_time_decision.card_balance_inquiry_requested' | 'real_time_decision.digital_wallet_token_requested' | 'real_time_decision.digital_wallet_authentication_requested' | 'real_time_decision.card_authentication_requested' | 'real_time_decision.card_authentication_challenge_requested' | 'real_time_payments_transfer.created' | 'real_time_payments_transfer.updated' | 'real_time_payments_request_for_payment.created' | 'real_time_payments_request_for_payment.updated' | 'swift_transfer.created' | 'swift_transfer.updated' | 'transaction.created' | 'wire_drawdown_request.created' | 'wire_drawdown_request.updated' | 'wire_transfer.created' | 'wire_transfer.updated';
|
|
238
|
+
category: 'account.created' | 'account.updated' | 'account_number.created' | 'account_number.updated' | 'account_statement.created' | 'account_transfer.created' | 'account_transfer.updated' | 'ach_prenotification.created' | 'ach_prenotification.updated' | 'ach_transfer.created' | 'ach_transfer.updated' | 'blockchain_address.created' | 'blockchain_address.updated' | 'blockchain_offramp_transfer.created' | 'blockchain_offramp_transfer.updated' | 'blockchain_onramp_transfer.created' | 'blockchain_onramp_transfer.updated' | 'bookkeeping_account.created' | 'bookkeeping_account.updated' | 'bookkeeping_entry_set.updated' | 'card.created' | 'card.updated' | 'card_payment.created' | 'card_payment.updated' | 'card_purchase_supplement.created' | 'card_profile.created' | 'card_profile.updated' | 'card_dispute.created' | 'card_dispute.updated' | 'check_deposit.created' | 'check_deposit.updated' | 'check_transfer.created' | 'check_transfer.updated' | 'declined_transaction.created' | 'digital_card_profile.created' | 'digital_card_profile.updated' | 'digital_wallet_token.created' | 'digital_wallet_token.updated' | 'entity.created' | 'entity.updated' | 'event_subscription.created' | 'event_subscription.updated' | 'export.created' | 'export.updated' | 'external_account.created' | 'external_account.updated' | 'fednow_transfer.created' | 'fednow_transfer.updated' | 'file.created' | 'group.updated' | 'group.heartbeat' | 'inbound_ach_transfer.created' | 'inbound_ach_transfer.updated' | 'inbound_ach_transfer_return.created' | 'inbound_ach_transfer_return.updated' | 'inbound_check_deposit.created' | 'inbound_check_deposit.updated' | 'inbound_fednow_transfer.created' | 'inbound_fednow_transfer.updated' | 'inbound_mail_item.created' | 'inbound_mail_item.updated' | 'inbound_real_time_payments_request_for_payment.created' | 'inbound_real_time_payments_request_for_payment.updated' | 'inbound_real_time_payments_transfer.created' | 'inbound_real_time_payments_transfer.updated' | 'inbound_wire_drawdown_request.created' | 'inbound_wire_transfer.created' | 'inbound_wire_transfer.updated' | 'intrafi_account_enrollment.created' | 'intrafi_account_enrollment.updated' | 'intrafi_exclusion.created' | 'intrafi_exclusion.updated' | 'loan_application.created' | 'loan_application.updated' | 'loan_distribution.created' | 'loan_offer.created' | 'loan_offer.updated' | 'loan_purchase.created' | 'lockbox.created' | 'lockbox.updated' | 'oauth_connection.created' | 'oauth_connection.deactivated' | 'card_push_transfer.created' | 'card_push_transfer.updated' | 'card_validation.created' | 'card_validation.updated' | 'pending_transaction.created' | 'pending_transaction.updated' | 'physical_card.created' | 'physical_card.updated' | 'physical_card_profile.created' | 'physical_card_profile.updated' | 'physical_check.created' | 'physical_check.updated' | 'physical_check_book.created' | 'physical_check_book.updated' | 'program.created' | 'program.updated' | 'proof_of_authorization_request.created' | 'proof_of_authorization_request.updated' | 'real_time_decision.card_authorization_requested' | 'real_time_decision.card_balance_inquiry_requested' | 'real_time_decision.digital_wallet_token_requested' | 'real_time_decision.digital_wallet_authentication_requested' | 'real_time_decision.card_authentication_requested' | 'real_time_decision.card_authentication_challenge_requested' | 'real_time_payments_transfer.created' | 'real_time_payments_transfer.updated' | 'real_time_payments_request_for_payment.created' | 'real_time_payments_request_for_payment.updated' | 'swift_transfer.created' | 'swift_transfer.updated' | 'transaction.created' | 'wire_drawdown_request.created' | 'wire_drawdown_request.updated' | 'wire_transfer.created' | 'wire_transfer.updated';
|
|
235
239
|
/**
|
|
236
240
|
* The time the Event was created.
|
|
237
241
|
*/
|
|
@@ -403,6 +407,10 @@ export interface UnwrapWebhookEvent {
|
|
|
403
407
|
* updated.
|
|
404
408
|
* - `physical_check.created` - Occurs whenever a Physical Check is created.
|
|
405
409
|
* - `physical_check.updated` - Occurs whenever a Physical Check is updated.
|
|
410
|
+
* - `physical_check_book.created` - Occurs whenever a Physical Check Book is
|
|
411
|
+
* created.
|
|
412
|
+
* - `physical_check_book.updated` - Occurs whenever a Physical Check Book is
|
|
413
|
+
* updated.
|
|
406
414
|
* - `program.created` - Occurs whenever a Program is created.
|
|
407
415
|
* - `program.updated` - Occurs whenever a Program is updated.
|
|
408
416
|
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
@@ -441,7 +449,7 @@ export interface UnwrapWebhookEvent {
|
|
|
441
449
|
* - `wire_transfer.created` - Occurs whenever a Wire Transfer is created.
|
|
442
450
|
* - `wire_transfer.updated` - Occurs whenever a Wire Transfer is updated.
|
|
443
451
|
*/
|
|
444
|
-
category: 'account.created' | 'account.updated' | 'account_number.created' | 'account_number.updated' | 'account_statement.created' | 'account_transfer.created' | 'account_transfer.updated' | 'ach_prenotification.created' | 'ach_prenotification.updated' | 'ach_transfer.created' | 'ach_transfer.updated' | 'blockchain_address.created' | 'blockchain_address.updated' | 'blockchain_offramp_transfer.created' | 'blockchain_offramp_transfer.updated' | 'blockchain_onramp_transfer.created' | 'blockchain_onramp_transfer.updated' | 'bookkeeping_account.created' | 'bookkeeping_account.updated' | 'bookkeeping_entry_set.updated' | 'card.created' | 'card.updated' | 'card_payment.created' | 'card_payment.updated' | 'card_purchase_supplement.created' | 'card_profile.created' | 'card_profile.updated' | 'card_dispute.created' | 'card_dispute.updated' | 'check_deposit.created' | 'check_deposit.updated' | 'check_transfer.created' | 'check_transfer.updated' | 'declined_transaction.created' | 'digital_card_profile.created' | 'digital_card_profile.updated' | 'digital_wallet_token.created' | 'digital_wallet_token.updated' | 'entity.created' | 'entity.updated' | 'event_subscription.created' | 'event_subscription.updated' | 'export.created' | 'export.updated' | 'external_account.created' | 'external_account.updated' | 'fednow_transfer.created' | 'fednow_transfer.updated' | 'file.created' | 'group.updated' | 'group.heartbeat' | 'inbound_ach_transfer.created' | 'inbound_ach_transfer.updated' | 'inbound_ach_transfer_return.created' | 'inbound_ach_transfer_return.updated' | 'inbound_check_deposit.created' | 'inbound_check_deposit.updated' | 'inbound_fednow_transfer.created' | 'inbound_fednow_transfer.updated' | 'inbound_mail_item.created' | 'inbound_mail_item.updated' | 'inbound_real_time_payments_request_for_payment.created' | 'inbound_real_time_payments_request_for_payment.updated' | 'inbound_real_time_payments_transfer.created' | 'inbound_real_time_payments_transfer.updated' | 'inbound_wire_drawdown_request.created' | 'inbound_wire_transfer.created' | 'inbound_wire_transfer.updated' | 'intrafi_account_enrollment.created' | 'intrafi_account_enrollment.updated' | 'intrafi_exclusion.created' | 'intrafi_exclusion.updated' | 'loan_application.created' | 'loan_application.updated' | 'loan_distribution.created' | 'loan_offer.created' | 'loan_offer.updated' | 'loan_purchase.created' | 'lockbox.created' | 'lockbox.updated' | 'oauth_connection.created' | 'oauth_connection.deactivated' | 'card_push_transfer.created' | 'card_push_transfer.updated' | 'card_validation.created' | 'card_validation.updated' | 'pending_transaction.created' | 'pending_transaction.updated' | 'physical_card.created' | 'physical_card.updated' | 'physical_card_profile.created' | 'physical_card_profile.updated' | 'physical_check.created' | 'physical_check.updated' | 'program.created' | 'program.updated' | 'proof_of_authorization_request.created' | 'proof_of_authorization_request.updated' | 'real_time_decision.card_authorization_requested' | 'real_time_decision.card_balance_inquiry_requested' | 'real_time_decision.digital_wallet_token_requested' | 'real_time_decision.digital_wallet_authentication_requested' | 'real_time_decision.card_authentication_requested' | 'real_time_decision.card_authentication_challenge_requested' | 'real_time_payments_transfer.created' | 'real_time_payments_transfer.updated' | 'real_time_payments_request_for_payment.created' | 'real_time_payments_request_for_payment.updated' | 'swift_transfer.created' | 'swift_transfer.updated' | 'transaction.created' | 'wire_drawdown_request.created' | 'wire_drawdown_request.updated' | 'wire_transfer.created' | 'wire_transfer.updated';
|
|
452
|
+
category: 'account.created' | 'account.updated' | 'account_number.created' | 'account_number.updated' | 'account_statement.created' | 'account_transfer.created' | 'account_transfer.updated' | 'ach_prenotification.created' | 'ach_prenotification.updated' | 'ach_transfer.created' | 'ach_transfer.updated' | 'blockchain_address.created' | 'blockchain_address.updated' | 'blockchain_offramp_transfer.created' | 'blockchain_offramp_transfer.updated' | 'blockchain_onramp_transfer.created' | 'blockchain_onramp_transfer.updated' | 'bookkeeping_account.created' | 'bookkeeping_account.updated' | 'bookkeeping_entry_set.updated' | 'card.created' | 'card.updated' | 'card_payment.created' | 'card_payment.updated' | 'card_purchase_supplement.created' | 'card_profile.created' | 'card_profile.updated' | 'card_dispute.created' | 'card_dispute.updated' | 'check_deposit.created' | 'check_deposit.updated' | 'check_transfer.created' | 'check_transfer.updated' | 'declined_transaction.created' | 'digital_card_profile.created' | 'digital_card_profile.updated' | 'digital_wallet_token.created' | 'digital_wallet_token.updated' | 'entity.created' | 'entity.updated' | 'event_subscription.created' | 'event_subscription.updated' | 'export.created' | 'export.updated' | 'external_account.created' | 'external_account.updated' | 'fednow_transfer.created' | 'fednow_transfer.updated' | 'file.created' | 'group.updated' | 'group.heartbeat' | 'inbound_ach_transfer.created' | 'inbound_ach_transfer.updated' | 'inbound_ach_transfer_return.created' | 'inbound_ach_transfer_return.updated' | 'inbound_check_deposit.created' | 'inbound_check_deposit.updated' | 'inbound_fednow_transfer.created' | 'inbound_fednow_transfer.updated' | 'inbound_mail_item.created' | 'inbound_mail_item.updated' | 'inbound_real_time_payments_request_for_payment.created' | 'inbound_real_time_payments_request_for_payment.updated' | 'inbound_real_time_payments_transfer.created' | 'inbound_real_time_payments_transfer.updated' | 'inbound_wire_drawdown_request.created' | 'inbound_wire_transfer.created' | 'inbound_wire_transfer.updated' | 'intrafi_account_enrollment.created' | 'intrafi_account_enrollment.updated' | 'intrafi_exclusion.created' | 'intrafi_exclusion.updated' | 'loan_application.created' | 'loan_application.updated' | 'loan_distribution.created' | 'loan_offer.created' | 'loan_offer.updated' | 'loan_purchase.created' | 'lockbox.created' | 'lockbox.updated' | 'oauth_connection.created' | 'oauth_connection.deactivated' | 'card_push_transfer.created' | 'card_push_transfer.updated' | 'card_validation.created' | 'card_validation.updated' | 'pending_transaction.created' | 'pending_transaction.updated' | 'physical_card.created' | 'physical_card.updated' | 'physical_card_profile.created' | 'physical_card_profile.updated' | 'physical_check.created' | 'physical_check.updated' | 'physical_check_book.created' | 'physical_check_book.updated' | 'program.created' | 'program.updated' | 'proof_of_authorization_request.created' | 'proof_of_authorization_request.updated' | 'real_time_decision.card_authorization_requested' | 'real_time_decision.card_balance_inquiry_requested' | 'real_time_decision.digital_wallet_token_requested' | 'real_time_decision.digital_wallet_authentication_requested' | 'real_time_decision.card_authentication_requested' | 'real_time_decision.card_authentication_challenge_requested' | 'real_time_payments_transfer.created' | 'real_time_payments_transfer.updated' | 'real_time_payments_request_for_payment.created' | 'real_time_payments_request_for_payment.updated' | 'swift_transfer.created' | 'swift_transfer.updated' | 'transaction.created' | 'wire_drawdown_request.created' | 'wire_drawdown_request.updated' | 'wire_transfer.created' | 'wire_transfer.updated';
|
|
445
453
|
/**
|
|
446
454
|
* The time the Event was created.
|
|
447
455
|
*/
|
|
@@ -468,7 +476,7 @@ export declare namespace EventListParams {
|
|
|
468
476
|
* requests, this should be encoded as a comma-delimited string, such as
|
|
469
477
|
* `?in=one,two,three`.
|
|
470
478
|
*/
|
|
471
|
-
in?: Array<'account.created' | 'account.updated' | 'account_number.created' | 'account_number.updated' | 'account_statement.created' | 'account_transfer.created' | 'account_transfer.updated' | 'ach_prenotification.created' | 'ach_prenotification.updated' | 'ach_transfer.created' | 'ach_transfer.updated' | 'blockchain_address.created' | 'blockchain_address.updated' | 'blockchain_offramp_transfer.created' | 'blockchain_offramp_transfer.updated' | 'blockchain_onramp_transfer.created' | 'blockchain_onramp_transfer.updated' | 'bookkeeping_account.created' | 'bookkeeping_account.updated' | 'bookkeeping_entry_set.updated' | 'card.created' | 'card.updated' | 'card_payment.created' | 'card_payment.updated' | 'card_purchase_supplement.created' | 'card_profile.created' | 'card_profile.updated' | 'card_dispute.created' | 'card_dispute.updated' | 'check_deposit.created' | 'check_deposit.updated' | 'check_transfer.created' | 'check_transfer.updated' | 'declined_transaction.created' | 'digital_card_profile.created' | 'digital_card_profile.updated' | 'digital_wallet_token.created' | 'digital_wallet_token.updated' | 'entity.created' | 'entity.updated' | 'event_subscription.created' | 'event_subscription.updated' | 'export.created' | 'export.updated' | 'external_account.created' | 'external_account.updated' | 'fednow_transfer.created' | 'fednow_transfer.updated' | 'file.created' | 'group.updated' | 'group.heartbeat' | 'inbound_ach_transfer.created' | 'inbound_ach_transfer.updated' | 'inbound_ach_transfer_return.created' | 'inbound_ach_transfer_return.updated' | 'inbound_check_deposit.created' | 'inbound_check_deposit.updated' | 'inbound_fednow_transfer.created' | 'inbound_fednow_transfer.updated' | 'inbound_mail_item.created' | 'inbound_mail_item.updated' | 'inbound_real_time_payments_request_for_payment.created' | 'inbound_real_time_payments_request_for_payment.updated' | 'inbound_real_time_payments_transfer.created' | 'inbound_real_time_payments_transfer.updated' | 'inbound_wire_drawdown_request.created' | 'inbound_wire_transfer.created' | 'inbound_wire_transfer.updated' | 'intrafi_account_enrollment.created' | 'intrafi_account_enrollment.updated' | 'intrafi_exclusion.created' | 'intrafi_exclusion.updated' | 'loan_application.created' | 'loan_application.updated' | 'loan_distribution.created' | 'loan_offer.created' | 'loan_offer.updated' | 'loan_purchase.created' | 'lockbox.created' | 'lockbox.updated' | 'oauth_connection.created' | 'oauth_connection.deactivated' | 'card_push_transfer.created' | 'card_push_transfer.updated' | 'card_validation.created' | 'card_validation.updated' | 'pending_transaction.created' | 'pending_transaction.updated' | 'physical_card.created' | 'physical_card.updated' | 'physical_card_profile.created' | 'physical_card_profile.updated' | 'physical_check.created' | 'physical_check.updated' | 'program.created' | 'program.updated' | 'proof_of_authorization_request.created' | 'proof_of_authorization_request.updated' | 'real_time_decision.card_authorization_requested' | 'real_time_decision.card_balance_inquiry_requested' | 'real_time_decision.digital_wallet_token_requested' | 'real_time_decision.digital_wallet_authentication_requested' | 'real_time_decision.card_authentication_requested' | 'real_time_decision.card_authentication_challenge_requested' | 'real_time_payments_transfer.created' | 'real_time_payments_transfer.updated' | 'real_time_payments_request_for_payment.created' | 'real_time_payments_request_for_payment.updated' | 'swift_transfer.created' | 'swift_transfer.updated' | 'transaction.created' | 'wire_drawdown_request.created' | 'wire_drawdown_request.updated' | 'wire_transfer.created' | 'wire_transfer.updated'>;
|
|
479
|
+
in?: Array<'account.created' | 'account.updated' | 'account_number.created' | 'account_number.updated' | 'account_statement.created' | 'account_transfer.created' | 'account_transfer.updated' | 'ach_prenotification.created' | 'ach_prenotification.updated' | 'ach_transfer.created' | 'ach_transfer.updated' | 'blockchain_address.created' | 'blockchain_address.updated' | 'blockchain_offramp_transfer.created' | 'blockchain_offramp_transfer.updated' | 'blockchain_onramp_transfer.created' | 'blockchain_onramp_transfer.updated' | 'bookkeeping_account.created' | 'bookkeeping_account.updated' | 'bookkeeping_entry_set.updated' | 'card.created' | 'card.updated' | 'card_payment.created' | 'card_payment.updated' | 'card_purchase_supplement.created' | 'card_profile.created' | 'card_profile.updated' | 'card_dispute.created' | 'card_dispute.updated' | 'check_deposit.created' | 'check_deposit.updated' | 'check_transfer.created' | 'check_transfer.updated' | 'declined_transaction.created' | 'digital_card_profile.created' | 'digital_card_profile.updated' | 'digital_wallet_token.created' | 'digital_wallet_token.updated' | 'entity.created' | 'entity.updated' | 'event_subscription.created' | 'event_subscription.updated' | 'export.created' | 'export.updated' | 'external_account.created' | 'external_account.updated' | 'fednow_transfer.created' | 'fednow_transfer.updated' | 'file.created' | 'group.updated' | 'group.heartbeat' | 'inbound_ach_transfer.created' | 'inbound_ach_transfer.updated' | 'inbound_ach_transfer_return.created' | 'inbound_ach_transfer_return.updated' | 'inbound_check_deposit.created' | 'inbound_check_deposit.updated' | 'inbound_fednow_transfer.created' | 'inbound_fednow_transfer.updated' | 'inbound_mail_item.created' | 'inbound_mail_item.updated' | 'inbound_real_time_payments_request_for_payment.created' | 'inbound_real_time_payments_request_for_payment.updated' | 'inbound_real_time_payments_transfer.created' | 'inbound_real_time_payments_transfer.updated' | 'inbound_wire_drawdown_request.created' | 'inbound_wire_transfer.created' | 'inbound_wire_transfer.updated' | 'intrafi_account_enrollment.created' | 'intrafi_account_enrollment.updated' | 'intrafi_exclusion.created' | 'intrafi_exclusion.updated' | 'loan_application.created' | 'loan_application.updated' | 'loan_distribution.created' | 'loan_offer.created' | 'loan_offer.updated' | 'loan_purchase.created' | 'lockbox.created' | 'lockbox.updated' | 'oauth_connection.created' | 'oauth_connection.deactivated' | 'card_push_transfer.created' | 'card_push_transfer.updated' | 'card_validation.created' | 'card_validation.updated' | 'pending_transaction.created' | 'pending_transaction.updated' | 'physical_card.created' | 'physical_card.updated' | 'physical_card_profile.created' | 'physical_card_profile.updated' | 'physical_check.created' | 'physical_check.updated' | 'physical_check_book.created' | 'physical_check_book.updated' | 'program.created' | 'program.updated' | 'proof_of_authorization_request.created' | 'proof_of_authorization_request.updated' | 'real_time_decision.card_authorization_requested' | 'real_time_decision.card_balance_inquiry_requested' | 'real_time_decision.digital_wallet_token_requested' | 'real_time_decision.digital_wallet_authentication_requested' | 'real_time_decision.card_authentication_requested' | 'real_time_decision.card_authentication_challenge_requested' | 'real_time_payments_transfer.created' | 'real_time_payments_transfer.updated' | 'real_time_payments_request_for_payment.created' | 'real_time_payments_request_for_payment.updated' | 'swift_transfer.created' | 'swift_transfer.updated' | 'transaction.created' | 'wire_drawdown_request.created' | 'wire_drawdown_request.updated' | 'wire_transfer.created' | 'wire_transfer.updated'>;
|
|
472
480
|
}
|
|
473
481
|
interface CreatedAt {
|
|
474
482
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/resources/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAE/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE,8BAA2B;AACxE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAI7D,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OA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|
package/resources/files.d.mts
CHANGED
|
@@ -41,13 +41,36 @@ export declare class Files extends APIResource {
|
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
43
|
list(query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<FilesPage, File>;
|
|
44
|
+
/**
|
|
45
|
+
* Download the contents of a File. Responds with a 307 redirect whose `Location`
|
|
46
|
+
* header points at a short-lived, pre-signed URL. Our
|
|
47
|
+
* [SDKs](/documentation/software-development-kits) follow the redirect and return
|
|
48
|
+
* the File's contents; if you call the API directly, follow the redirect to
|
|
49
|
+
* download it. The pre-signed URL serves the File with a `Content-Type` matching
|
|
50
|
+
* its `mime` and a `Content-Disposition` header set to its `filename`. It expires
|
|
51
|
+
* in 10 minutes. To share a File with someone who doesn't have access to your API
|
|
52
|
+
* key, create a File Link.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.files.contents(
|
|
57
|
+
* 'file_makxrc67oh9l6sg7w9yc',
|
|
58
|
+
* );
|
|
59
|
+
*
|
|
60
|
+
* const content = await response.blob();
|
|
61
|
+
* console.log(content);
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
contents(fileID: string, options?: RequestOptions): APIPromise<Response>;
|
|
44
65
|
}
|
|
45
66
|
export type FilesPage = Page<File>;
|
|
46
67
|
/**
|
|
47
68
|
* Files are objects that represent a file hosted on Increase's servers. The file
|
|
48
69
|
* may have been uploaded by you (for example, when uploading a check image) or it
|
|
49
70
|
* may have been created by Increase (for example, an autogenerated statement PDF).
|
|
50
|
-
* If you need to download a File,
|
|
71
|
+
* If you need to download a File, use the `/files/{file_id}/contents` endpoint. If
|
|
72
|
+
* you need to share a File with someone who doesn't have access to your API key,
|
|
73
|
+
* create a File Link.
|
|
51
74
|
*/
|
|
52
75
|
export interface File {
|
|
53
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/res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,GACtB,sBAAsB,CACzB,CAAC;KACH;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/files.d.ts
CHANGED
|
@@ -41,13 +41,36 @@ export declare class Files extends APIResource {
|
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
43
|
list(query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<FilesPage, File>;
|
|
44
|
+
/**
|
|
45
|
+
* Download the contents of a File. Responds with a 307 redirect whose `Location`
|
|
46
|
+
* header points at a short-lived, pre-signed URL. Our
|
|
47
|
+
* [SDKs](/documentation/software-development-kits) follow the redirect and return
|
|
48
|
+
* the File's contents; if you call the API directly, follow the redirect to
|
|
49
|
+
* download it. The pre-signed URL serves the File with a `Content-Type` matching
|
|
50
|
+
* its `mime` and a `Content-Disposition` header set to its `filename`. It expires
|
|
51
|
+
* in 10 minutes. To share a File with someone who doesn't have access to your API
|
|
52
|
+
* key, create a File Link.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.files.contents(
|
|
57
|
+
* 'file_makxrc67oh9l6sg7w9yc',
|
|
58
|
+
* );
|
|
59
|
+
*
|
|
60
|
+
* const content = await response.blob();
|
|
61
|
+
* console.log(content);
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
contents(fileID: string, options?: RequestOptions): APIPromise<Response>;
|
|
44
65
|
}
|
|
45
66
|
export type FilesPage = Page<File>;
|
|
46
67
|
/**
|
|
47
68
|
* Files are objects that represent a file hosted on Increase's servers. The file
|
|
48
69
|
* may have been uploaded by you (for example, when uploading a check image) or it
|
|
49
70
|
* may have been created by Increase (for example, an autogenerated statement PDF).
|
|
50
|
-
* If you need to download a File,
|
|
71
|
+
* If you need to download a File, use the `/files/{file_id}/contents` endpoint. If
|
|
72
|
+
* you need to share a File with someone who doesn't have access to your API key,
|
|
73
|
+
* create a File Link.
|
|
51
74
|
*/
|
|
52
75
|
export interface File {
|
|
53
76
|
/**
|
package/resources/files.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE,8BAA2B;AACxE,OAAO,EAAE,KAAK,UAAU,EAAE,2BAAwB;
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE,8BAA2B;AACxE,OAAO,EAAE,KAAK,UAAU,EAAE,2BAAwB;AAElD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAI7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAI1E;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIpE;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,SAAS,EAAE,IAAI,CAAC;IAI/B;;;;;;;;;;;;;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AAmB,GACnB,oBAAoB,GACpB,wCAAwC,GACxC,OAAO,GACP,0BAA0B,GAC1B,wBAAwB,GACxB,yBAAyB,GACzB,qBAAqB,GACrB,oBAAoB,GACpB,uBAAuB,GACvB,kBAAkB,GAClB,8BAA8B,GAC9B,QAAQ,GACR,eAAe,GACf,oCAAoC,GACpC,mCAAmC,GACnC,2CAA2C,GAC3C,6BAA6B,GAC7B,sBAAsB,GACtB,sBAAsB,CACzB,CAAC;KACH;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/files.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Files = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
8
|
const uploads_1 = require("../internal/uploads.js");
|
|
8
9
|
const path_1 = require("../internal/utils/path.js");
|
|
9
10
|
class Files extends resource_1.APIResource {
|
|
@@ -50,6 +51,33 @@ class Files extends resource_1.APIResource {
|
|
|
50
51
|
list(query = {}, options) {
|
|
51
52
|
return this._client.getAPIList('/files', (pagination_1.Page), { query, ...options });
|
|
52
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Download the contents of a File. Responds with a 307 redirect whose `Location`
|
|
56
|
+
* header points at a short-lived, pre-signed URL. Our
|
|
57
|
+
* [SDKs](/documentation/software-development-kits) follow the redirect and return
|
|
58
|
+
* the File's contents; if you call the API directly, follow the redirect to
|
|
59
|
+
* download it. The pre-signed URL serves the File with a `Content-Type` matching
|
|
60
|
+
* its `mime` and a `Content-Disposition` header set to its `filename`. It expires
|
|
61
|
+
* in 10 minutes. To share a File with someone who doesn't have access to your API
|
|
62
|
+
* key, create a File Link.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const response = await client.files.contents(
|
|
67
|
+
* 'file_makxrc67oh9l6sg7w9yc',
|
|
68
|
+
* );
|
|
69
|
+
*
|
|
70
|
+
* const content = await response.blob();
|
|
71
|
+
* console.log(content);
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
contents(fileID, options) {
|
|
75
|
+
return this._client.get((0, path_1.path) `/files/${fileID}/contents`, {
|
|
76
|
+
...options,
|
|
77
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
78
|
+
__binaryResponse: true,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
53
81
|
}
|
|
54
82
|
exports.Files = Files;
|
|
55
83
|
//# sourceMappingURL=files.js.map
|
package/resources/files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAwE;
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAwE;AAExE,oDAAmD;AAEnD,oDAAkE;AAClE,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAA,iBAAU,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,WAAW,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AA7ED,sBA6EC"}
|
package/resources/files.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { Page } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
5
|
import { multipartFormRequestOptions } from "../internal/uploads.mjs";
|
|
5
6
|
import { path } from "../internal/utils/path.mjs";
|
|
6
7
|
export class Files extends APIResource {
|
|
@@ -47,5 +48,32 @@ export class Files extends APIResource {
|
|
|
47
48
|
list(query = {}, options) {
|
|
48
49
|
return this._client.getAPIList('/files', (Page), { query, ...options });
|
|
49
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Download the contents of a File. Responds with a 307 redirect whose `Location`
|
|
53
|
+
* header points at a short-lived, pre-signed URL. Our
|
|
54
|
+
* [SDKs](/documentation/software-development-kits) follow the redirect and return
|
|
55
|
+
* the File's contents; if you call the API directly, follow the redirect to
|
|
56
|
+
* download it. The pre-signed URL serves the File with a `Content-Type` matching
|
|
57
|
+
* its `mime` and a `Content-Disposition` header set to its `filename`. It expires
|
|
58
|
+
* in 10 minutes. To share a File with someone who doesn't have access to your API
|
|
59
|
+
* key, create a File Link.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const response = await client.files.contents(
|
|
64
|
+
* 'file_makxrc67oh9l6sg7w9yc',
|
|
65
|
+
* );
|
|
66
|
+
*
|
|
67
|
+
* const content = await response.blob();
|
|
68
|
+
* console.log(content);
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
contents(fileID, options) {
|
|
72
|
+
return this._client.get(path `/files/${fileID}/contents`, {
|
|
73
|
+
...options,
|
|
74
|
+
headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
75
|
+
__binaryResponse: true,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
50
78
|
}
|
|
51
79
|
//# sourceMappingURL=files.mjs.map
|
package/resources/files.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,IAAI,EAAgC,+BAA2B;
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,IAAI,EAAgC,+BAA2B;AAExE,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,2BAA2B,EAAE,gCAA4B;AAClE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAA,IAAU,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,WAAW,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { sleep } from './internal/utils/sleep';
|
|
|
8
8
|
export type { Logger, LogLevel } from './internal/utils/log';
|
|
9
9
|
import { castToError, isAbortError } from './internal/errors';
|
|
10
10
|
import type { APIResponseProps } from './internal/parse';
|
|
11
|
-
import { getPlatformHeaders } from './internal/detect-platform';
|
|
12
11
|
import * as Shims from './internal/shims';
|
|
13
12
|
import * as Opts from './internal/request-options';
|
|
14
13
|
import { stringifyQuery } from './internal/utils/query';
|
|
@@ -1050,13 +1049,7 @@ export class Increase {
|
|
|
1050
1049
|
|
|
1051
1050
|
const headers = buildHeaders([
|
|
1052
1051
|
idempotencyHeaders,
|
|
1053
|
-
{
|
|
1054
|
-
Accept: 'application/json',
|
|
1055
|
-
'User-Agent': this.getUserAgent(),
|
|
1056
|
-
'X-Stainless-Retry-Count': String(retryCount),
|
|
1057
|
-
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
1058
|
-
...getPlatformHeaders(),
|
|
1059
|
-
},
|
|
1052
|
+
{ Accept: 'application/json', 'User-Agent': this.getUserAgent() },
|
|
1060
1053
|
await this.authHeaders(options),
|
|
1061
1054
|
this._options.defaultHeaders,
|
|
1062
1055
|
bodyHeaders,
|
|
@@ -18,6 +18,7 @@ export class BeneficialOwners extends APIResource {
|
|
|
18
18
|
* individual: {
|
|
19
19
|
* address: {
|
|
20
20
|
* city: 'New York',
|
|
21
|
+
* country: 'US',
|
|
21
22
|
* line1: '33 Liberty Street',
|
|
22
23
|
* },
|
|
23
24
|
* date_of_birth: '1970-01-31',
|
|
@@ -335,15 +336,14 @@ export namespace BeneficialOwnerCreateParams {
|
|
|
335
336
|
city: string;
|
|
336
337
|
|
|
337
338
|
/**
|
|
338
|
-
* The
|
|
339
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
339
340
|
*/
|
|
340
|
-
|
|
341
|
+
country: string;
|
|
341
342
|
|
|
342
343
|
/**
|
|
343
|
-
* The
|
|
344
|
-
* to `US`.
|
|
344
|
+
* The first line of the address. This is usually the street number and street.
|
|
345
345
|
*/
|
|
346
|
-
|
|
346
|
+
line1: string;
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -544,15 +544,14 @@ export namespace BeneficialOwnerUpdateParams {
|
|
|
544
544
|
city: string;
|
|
545
545
|
|
|
546
546
|
/**
|
|
547
|
-
* The
|
|
547
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
548
548
|
*/
|
|
549
|
-
|
|
549
|
+
country: string;
|
|
550
550
|
|
|
551
551
|
/**
|
|
552
|
-
* The
|
|
553
|
-
* to `US`.
|
|
552
|
+
* The first line of the address. This is usually the street number and street.
|
|
554
553
|
*/
|
|
555
|
-
|
|
554
|
+
line1: string;
|
|
556
555
|
|
|
557
556
|
/**
|
|
558
557
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -1397,15 +1397,14 @@ export namespace EntityCreateParams {
|
|
|
1397
1397
|
city: string;
|
|
1398
1398
|
|
|
1399
1399
|
/**
|
|
1400
|
-
* The
|
|
1400
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
1401
1401
|
*/
|
|
1402
|
-
|
|
1402
|
+
country: string;
|
|
1403
1403
|
|
|
1404
1404
|
/**
|
|
1405
|
-
* The
|
|
1406
|
-
* to `US`.
|
|
1405
|
+
* The first line of the address. This is usually the street number and street.
|
|
1407
1406
|
*/
|
|
1408
|
-
|
|
1407
|
+
line1: string;
|
|
1409
1408
|
|
|
1410
1409
|
/**
|
|
1411
1410
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -1492,15 +1491,14 @@ export namespace EntityCreateParams {
|
|
|
1492
1491
|
city: string;
|
|
1493
1492
|
|
|
1494
1493
|
/**
|
|
1495
|
-
* The
|
|
1494
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
1496
1495
|
*/
|
|
1497
|
-
|
|
1496
|
+
country: string;
|
|
1498
1497
|
|
|
1499
1498
|
/**
|
|
1500
|
-
* The
|
|
1501
|
-
* to `US`.
|
|
1499
|
+
* The first line of the address. This is usually the street number and street.
|
|
1502
1500
|
*/
|
|
1503
|
-
|
|
1501
|
+
line1: string;
|
|
1504
1502
|
|
|
1505
1503
|
/**
|
|
1506
1504
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -1823,15 +1821,14 @@ export namespace EntityCreateParams {
|
|
|
1823
1821
|
city: string;
|
|
1824
1822
|
|
|
1825
1823
|
/**
|
|
1826
|
-
* The
|
|
1824
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
1827
1825
|
*/
|
|
1828
|
-
|
|
1826
|
+
country: string;
|
|
1829
1827
|
|
|
1830
1828
|
/**
|
|
1831
|
-
* The
|
|
1832
|
-
* to `US`.
|
|
1829
|
+
* The first line of the address. This is usually the street number and street.
|
|
1833
1830
|
*/
|
|
1834
|
-
|
|
1831
|
+
line1: string;
|
|
1835
1832
|
|
|
1836
1833
|
/**
|
|
1837
1834
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -2035,15 +2032,14 @@ export namespace EntityCreateParams {
|
|
|
2035
2032
|
city: string;
|
|
2036
2033
|
|
|
2037
2034
|
/**
|
|
2038
|
-
* The
|
|
2035
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
2039
2036
|
*/
|
|
2040
|
-
|
|
2037
|
+
country: string;
|
|
2041
2038
|
|
|
2042
2039
|
/**
|
|
2043
|
-
* The
|
|
2044
|
-
* to `US`.
|
|
2040
|
+
* The first line of the address. This is usually the street number and street.
|
|
2045
2041
|
*/
|
|
2046
|
-
|
|
2042
|
+
line1: string;
|
|
2047
2043
|
|
|
2048
2044
|
/**
|
|
2049
2045
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -2415,15 +2411,14 @@ export namespace EntityCreateParams {
|
|
|
2415
2411
|
city: string;
|
|
2416
2412
|
|
|
2417
2413
|
/**
|
|
2418
|
-
* The
|
|
2414
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
2419
2415
|
*/
|
|
2420
|
-
|
|
2416
|
+
country: string;
|
|
2421
2417
|
|
|
2422
2418
|
/**
|
|
2423
|
-
* The
|
|
2424
|
-
* to `US`.
|
|
2419
|
+
* The first line of the address. This is usually the street number and street.
|
|
2425
2420
|
*/
|
|
2426
|
-
|
|
2421
|
+
line1: string;
|
|
2427
2422
|
|
|
2428
2423
|
/**
|
|
2429
2424
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -2624,15 +2619,14 @@ export namespace EntityCreateParams {
|
|
|
2624
2619
|
city: string;
|
|
2625
2620
|
|
|
2626
2621
|
/**
|
|
2627
|
-
* The
|
|
2622
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
2628
2623
|
*/
|
|
2629
|
-
|
|
2624
|
+
country: string;
|
|
2630
2625
|
|
|
2631
2626
|
/**
|
|
2632
|
-
* The
|
|
2633
|
-
* to `US`.
|
|
2627
|
+
* The first line of the address. This is usually the street number and street.
|
|
2634
2628
|
*/
|
|
2635
|
-
|
|
2629
|
+
line1: string;
|
|
2636
2630
|
|
|
2637
2631
|
/**
|
|
2638
2632
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -2904,15 +2898,14 @@ export namespace EntityUpdateParams {
|
|
|
2904
2898
|
city: string;
|
|
2905
2899
|
|
|
2906
2900
|
/**
|
|
2907
|
-
* The
|
|
2901
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
2908
2902
|
*/
|
|
2909
|
-
|
|
2903
|
+
country: string;
|
|
2910
2904
|
|
|
2911
2905
|
/**
|
|
2912
|
-
* The
|
|
2913
|
-
* to `US`.
|
|
2906
|
+
* The first line of the address. This is usually the street number and street.
|
|
2914
2907
|
*/
|
|
2915
|
-
|
|
2908
|
+
line1: string;
|
|
2916
2909
|
|
|
2917
2910
|
/**
|
|
2918
2911
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -3048,15 +3041,14 @@ export namespace EntityUpdateParams {
|
|
|
3048
3041
|
city: string;
|
|
3049
3042
|
|
|
3050
3043
|
/**
|
|
3051
|
-
* The
|
|
3044
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
3052
3045
|
*/
|
|
3053
|
-
|
|
3046
|
+
country: string;
|
|
3054
3047
|
|
|
3055
3048
|
/**
|
|
3056
|
-
* The
|
|
3057
|
-
* to `US`.
|
|
3049
|
+
* The first line of the address. This is usually the street number and street.
|
|
3058
3050
|
*/
|
|
3059
|
-
|
|
3051
|
+
line1: string;
|
|
3060
3052
|
|
|
3061
3053
|
/**
|
|
3062
3054
|
* The second line of the address. This might be the floor or room number.
|
|
@@ -283,6 +283,10 @@ export namespace EventSubscription {
|
|
|
283
283
|
* updated.
|
|
284
284
|
* - `physical_check.created` - Occurs whenever a Physical Check is created.
|
|
285
285
|
* - `physical_check.updated` - Occurs whenever a Physical Check is updated.
|
|
286
|
+
* - `physical_check_book.created` - Occurs whenever a Physical Check Book is
|
|
287
|
+
* created.
|
|
288
|
+
* - `physical_check_book.updated` - Occurs whenever a Physical Check Book is
|
|
289
|
+
* updated.
|
|
286
290
|
* - `program.created` - Occurs whenever a Program is created.
|
|
287
291
|
* - `program.updated` - Occurs whenever a Program is updated.
|
|
288
292
|
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
@@ -416,6 +420,8 @@ export namespace EventSubscription {
|
|
|
416
420
|
| 'physical_card_profile.updated'
|
|
417
421
|
| 'physical_check.created'
|
|
418
422
|
| 'physical_check.updated'
|
|
423
|
+
| 'physical_check_book.created'
|
|
424
|
+
| 'physical_check_book.updated'
|
|
419
425
|
| 'program.created'
|
|
420
426
|
| 'program.updated'
|
|
421
427
|
| 'proof_of_authorization_request.created'
|
|
@@ -621,6 +627,10 @@ export namespace EventSubscriptionCreateParams {
|
|
|
621
627
|
* updated.
|
|
622
628
|
* - `physical_check.created` - Occurs whenever a Physical Check is created.
|
|
623
629
|
* - `physical_check.updated` - Occurs whenever a Physical Check is updated.
|
|
630
|
+
* - `physical_check_book.created` - Occurs whenever a Physical Check Book is
|
|
631
|
+
* created.
|
|
632
|
+
* - `physical_check_book.updated` - Occurs whenever a Physical Check Book is
|
|
633
|
+
* updated.
|
|
624
634
|
* - `program.created` - Occurs whenever a Program is created.
|
|
625
635
|
* - `program.updated` - Occurs whenever a Program is updated.
|
|
626
636
|
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
@@ -754,6 +764,8 @@ export namespace EventSubscriptionCreateParams {
|
|
|
754
764
|
| 'physical_card_profile.updated'
|
|
755
765
|
| 'physical_check.created'
|
|
756
766
|
| 'physical_check.updated'
|
|
767
|
+
| 'physical_check_book.created'
|
|
768
|
+
| 'physical_check_book.updated'
|
|
757
769
|
| 'program.created'
|
|
758
770
|
| 'program.updated'
|
|
759
771
|
| 'proof_of_authorization_request.created'
|