didit-sdk 2.32.0 → 2.33.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/didit/resources/bank.rb +19 -8
- data/lib/didit/types/bank.rb +5 -3
- data/lib/didit/types/components.rb +10 -6
- data/lib/didit/version.rb +1 -1
- data/sig/didit/types/components.rbs +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: feebf4d057ad1b0edf9833789a19105ca8004ee9887c5b41a64d4aa94651a9a2
|
|
4
|
+
data.tar.gz: fa469796c25acda59792b999868c24f53ef2281b9dd53cc3cfba8311d51de18d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d1b3d351c186a5e0a46bec11f8bf9f01f0d04a9e87958b5650322c96974d8ca2d155bd2a8b959342830666a17adfa125c8f62554e711dd1c914493432a827d9
|
|
7
|
+
data.tar.gz: 4973e8c66b43ecc89147a1a112abcdd2cfa43ca948a58ac5246836dbb99bf7ca6beb0a9ed4a89d41eecf186c4ad009623ded4fa1867dedcabb9040ccc5a6f10a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.33.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.32.0...v2.33.0) (2026-11-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **spec:** sync API spec 2026-11-23 ([c6974d8](https://github.com/didit-protocol/sdk-ruby/commit/c6974d882e15c5cd686497386a543fdff3269a48))
|
|
9
|
+
* **spec:** sync API spec 2026-11-23 ([2f3aada](https://github.com/didit-protocol/sdk-ruby/commit/2f3aada196817eeb6bff71fdfba6a93e9c256cf1))
|
|
10
|
+
|
|
3
11
|
## [2.32.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.31.0...v2.32.0) (2026-11-23)
|
|
4
12
|
|
|
5
13
|
|
data/lib/didit/resources/bank.rb
CHANGED
|
@@ -131,11 +131,13 @@ module Didit
|
|
|
131
131
|
# @param mode [String] `connect` (default) creates a new connection. `renew` needs `connection_id` and reuses
|
|
132
132
|
# that connection's settings.
|
|
133
133
|
# @param connection_id [String] The connection to renew. Only with `mode: renew`.
|
|
134
|
-
# @param access [String] `one_time` (default) reads the data once
|
|
135
|
-
#
|
|
136
|
-
#
|
|
134
|
+
# @param access [String] `one_time` (default) reads the data once: when the read completes the connection ends
|
|
135
|
+
# itself and reads `status: revoked` with `status_reason: collection_complete`, and its data stays readable
|
|
136
|
+
# until `consent.retain_until`. `ongoing` keeps access open until the consent ends or someone stops it. With
|
|
137
|
+
# `institution_id` set, a bank that cannot keep access open answers `400 ongoing_access_not_available`...
|
|
137
138
|
# @param country [String] Optional. Without it the person picks among the countries your application enabled. It
|
|
138
|
-
# has to be a country Bank Link serves;
|
|
139
|
+
# has to be a country Bank Link serves; a malformed value answers `400 invalid_request`, and a country the
|
|
140
|
+
# product does not serve, or where no bank is offered, answers `400 country_not_available`, both with `field:
|
|
139
141
|
# country`. An empty request body stays valid.
|
|
140
142
|
# @param institution_id [String] Optional bank to preselect, from `list_institutions`. Skips the picker.
|
|
141
143
|
# @param segment [String] Filters the picker and tells the bank which login to open where the bank separates
|
|
@@ -704,7 +706,9 @@ module Didit
|
|
|
704
706
|
# something. A key with full access does not include it: grant it explicitly when you create the key, or the
|
|
705
707
|
# call answers `403 bank_data_access_denied`.
|
|
706
708
|
#
|
|
707
|
-
# Refreshing a deleted connection answers `409 connection_not_active`.
|
|
709
|
+
# Refreshing a deleted connection answers `409 connection_not_active`. A one-time connection is read once and
|
|
710
|
+
# its access then ends, so refreshing it answers `409 one_time_connection`: create a new link to read the bank
|
|
711
|
+
# again.
|
|
708
712
|
#
|
|
709
713
|
# +POST /v3/bank/connections/{id}/refresh/+
|
|
710
714
|
#
|
|
@@ -735,8 +739,13 @@ module Didit
|
|
|
735
739
|
# Creates a renew link for this connection, a shortcut for `create_link` with `mode: renew`. The connection id
|
|
736
740
|
# and every account id stay the same.
|
|
737
741
|
#
|
|
738
|
-
#
|
|
739
|
-
#
|
|
742
|
+
# Send the returned `url` to the person: the hosted page shows what continues to be shared and until when, the
|
|
743
|
+
# person signs in at their bank once and returns to your `redirect_url`, and `bank.connection.renewed` confirms
|
|
744
|
+
# it. Afterwards the connection's `consent` shows a new `version`, `renewed_count`, `expires_at` and `renew_by`,
|
|
745
|
+
# with `renewal_action` `bank_auth`.
|
|
746
|
+
#
|
|
747
|
+
# A one-time connection has no consent to renew: it answers `409 one_time_connection`, and a new link reads the
|
|
748
|
+
# bank again.
|
|
740
749
|
#
|
|
741
750
|
# Until the consent has 30 days left or fewer it answers `409 renewal_not_needed`; after
|
|
742
751
|
# `consent.renewable_until` it answers `409 renewal_window_expired` and the person connects again.
|
|
@@ -787,7 +796,9 @@ module Didit
|
|
|
787
796
|
#
|
|
788
797
|
# Stops access to the bank. Bank fetches stop the moment you ask, even while the bank's confirmation is pending:
|
|
789
798
|
# the consent reads `revocation_pending`, then `revoked` once the bank confirms access is terminated, or
|
|
790
|
-
# `revocation_failed` while the call is retried automatically. `consent.ended_by` is `customer`.
|
|
799
|
+
# `revocation_failed` while the call is retried automatically. `consent.ended_by` is `customer`. Until the bank
|
|
800
|
+
# confirms, `status` keeps its value and `status_reason` is `null`; once `status` is `revoked`, `status_reason`
|
|
801
|
+
# is `revoked_by_customer`.
|
|
791
802
|
#
|
|
792
803
|
# Revoking does not delete anything: stored accounts, balances and transactions stay readable until
|
|
793
804
|
# `consent.retain_until`, the retention setting of your application, and nothing is charged. To delete them now,
|
data/lib/didit/types/bank.rb
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Didit
|
|
5
5
|
module Types
|
|
6
|
-
# `one_time` (default) reads the data once
|
|
7
|
-
#
|
|
8
|
-
#
|
|
6
|
+
# `one_time` (default) reads the data once: when the read completes the connection ends itself and reads `status:
|
|
7
|
+
# revoked` with `status_reason: collection_complete`, and its data stays readable until `consent.retain_until`.
|
|
8
|
+
# `ongoing` keeps access open until the consent ends or someone stops it. With `institution_id` set, a bank that
|
|
9
|
+
# cannot keep access open answers `400 ongoing_access_not_available` before any screen. Without it, the bank
|
|
10
|
+
# picker lists only banks that can.
|
|
9
11
|
module BankCreateLinkParamsAccess
|
|
10
12
|
ONE_TIME = "one_time"
|
|
11
13
|
ONGOING = "ongoing"
|
|
@@ -449,14 +449,16 @@ module Didit
|
|
|
449
449
|
VALUES = [CONNECTION_MONTH, ONE_TIME].freeze
|
|
450
450
|
end
|
|
451
451
|
|
|
452
|
-
# Who ended access, set from evidence. `
|
|
452
|
+
# Who ended access, set from evidence. `system` when Didit ended it by design: a one-time connection once its read
|
|
453
|
+
# is complete. `unknown` when neither the bank nor the sync says.
|
|
453
454
|
module BankConnectionConsentEndedBy
|
|
454
455
|
END_USER = "end_user"
|
|
455
456
|
BANK = "bank"
|
|
456
457
|
CUSTOMER = "customer"
|
|
458
|
+
SYSTEM = "system"
|
|
457
459
|
UNKNOWN = "unknown"
|
|
458
460
|
|
|
459
|
-
VALUES = [END_USER, BANK, CUSTOMER, UNKNOWN].freeze
|
|
461
|
+
VALUES = [END_USER, BANK, CUSTOMER, SYSTEM, UNKNOWN].freeze
|
|
460
462
|
end
|
|
461
463
|
|
|
462
464
|
# How a renewal works: `reconfirm` is the person confirming on Didit's screen with no bank sign-in, where the bank
|
|
@@ -563,8 +565,9 @@ module Didit
|
|
|
563
565
|
|
|
564
566
|
# `pending`: first sync running. `active`: consent valid. `renewal_required`: the consent ended or the bank wants
|
|
565
567
|
# the person to sign in again, data readable as last synced and nothing charged. `paused`: balance too low for the
|
|
566
|
-
# month. `revoked`: access stopped by the person, the bank or you
|
|
567
|
-
# `status_reason`, `created_at` and `erasure` remain.
|
|
568
|
+
# month. `revoked`: access stopped by the person, the bank or you, or ended because the read of a one-time
|
|
569
|
+
# connection is complete. `deleted`: only `id`, `status`, `status_reason`, `created_at` and `erasure` remain.
|
|
570
|
+
# `failed`: the first sync never succeeded.
|
|
568
571
|
module BankConnectionStatus
|
|
569
572
|
PENDING = "pending"
|
|
570
573
|
ACTIVE = "active"
|
|
@@ -577,8 +580,9 @@ module Didit
|
|
|
577
580
|
VALUES = [PENDING, ACTIVE, RENEWAL_REQUIRED, PAUSED, REVOKED, DELETED, FAILED].freeze
|
|
578
581
|
end
|
|
579
582
|
|
|
580
|
-
# Why the connection is in this status. `
|
|
581
|
-
#
|
|
583
|
+
# Why the connection is in this status. `collection_complete`: a one-time connection whose read is complete, so
|
|
584
|
+
# its access has ended. `paused_by_customer` is reserved. On a `deleted` connection: `deleted_by_customer`,
|
|
585
|
+
# `consent_lapsed`, `retention_elapsed` or `application_deleted`.
|
|
582
586
|
module BankConnectionStatusReason
|
|
583
587
|
COLLECTION_COMPLETE = "collection_complete"
|
|
584
588
|
CONSENT_EXPIRED = "consent_expired"
|
data/lib/didit/version.rb
CHANGED