didit-sdk 2.12.0 → 2.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d237908b8d26f01a2c1b1f240404560f0840a60580942d4541504485c5e89d80
4
- data.tar.gz: 6ec80811d16ada1ca9e3dea375c23d30424bbf133cc56c195d241304b49031b5
3
+ metadata.gz: 88b2a67f60c7c6817959479e213a2458a19e281c0b1d25ce2e2d5e5b20e04cc7
4
+ data.tar.gz: a5bd939f7fe5bbc01a41fd3e6b563c549a72282f348648f10c55dad73ce230d6
5
5
  SHA512:
6
- metadata.gz: d446e8d8b357ace21eec7c8787ae8e779209a221bd568ac06afdb5963e112fcf915b5c59940ae96fe3ff289662af30fda2934a00b961f3e148faeefcc0dbd017
7
- data.tar.gz: '0905abc26c9270edae21957afd9eb9854c976e070894c072148159e8cfbd66760177c85f395233ddf3436bbcecfb0a0aab42eb5f78ba6f022bc77bd158002288'
6
+ metadata.gz: 15ba2f596d5b7014f98963637698fd4b5dac96dd547f8fb9fc9414d2f7d6d2aef8d8f5302dce36e41619421c9d4b89f31f3b7db51407d292eac02d76861ab348
7
+ data.tar.gz: 8fae87cb3eddd611a32b34162415ab6951f5684022bddee23776514d74c783efe62c77680aa4b8f6fbea7ecda076a2630573d0e782742f1fb0fe097850f5e563
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.13.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.12.0...v2.13.0) (2026-11-11)
4
+
5
+
6
+ ### Features
7
+
8
+ * **spec:** sync API spec 2026-11-11 ([918c23f](https://github.com/didit-protocol/sdk-ruby/commit/918c23f87009d9d61c568fc270fd97a17b0aa2b0))
9
+
3
10
  ## [2.12.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.11.0...v2.12.0) (2026-11-11)
4
11
 
5
12
 
@@ -142,7 +142,9 @@ module Didit
142
142
  # Set initiate_login_uri to your HTTPS sign-in page on the exact website_url hostname, or an empty string to
143
143
  # disable admin-sent sign-in links. Changing website_url also revalidates the saved sign-in URI. Invalid
144
144
  # values return 400 with an initiate_login_uri field error; hostname and URI policy failures use
145
- # https_url_on_registered_website_required.
145
+ # https_url_on_registered_website_required. An MCP token (a "Log in with Didit" grant, `token_use` `mcp`) also
146
+ # needs the `didit:management` scope, which carries the `applications` resource; a grant limited to
147
+ # `didit:verification` is refused with 403 before anything is created.
146
148
  #
147
149
  # +POST /organizations/me/{org_id}/applications/+
148
150
  #
@@ -201,7 +203,9 @@ module Didit
201
203
  #
202
204
  # List the organization's applications, 50 per page by default. Use this to discover `app_id` values when
203
205
  # recovering credentials from a new machine, then call `GET /organizations/me/{org_id}/applications/{app_id}/`
204
- # for the API key. Requires an owner or admin Bearer token.
206
+ # for the API key. Requires an owner or admin Bearer token. An MCP token (a "Log in with Didit" grant,
207
+ # `token_use` `mcp`) also needs the `didit:management` scope, which carries the `applications` resource; a
208
+ # grant limited to `didit:verification` is refused with 403 before any application is listed.
205
209
  #
206
210
  # +GET /organizations/me/{org_id}/applications/+
207
211
  #
@@ -229,7 +233,9 @@ module Didit
229
233
  # Get Application Credentials
230
234
  #
231
235
  # Read one application's full record including `client_id` and `api_key`. Use this to recover a lost
232
- # `api_key`.
236
+ # `api_key`. An MCP token (a "Log in with Didit" grant, `token_use` `mcp`) also needs the `didit:management`
237
+ # scope, which carries the `applications` resource; a grant limited to `didit:verification` is refused with
238
+ # 403 before the application is read.
233
239
  #
234
240
  # +GET /organizations/me/{org_id}/applications/{app_id}/+
235
241
  #
@@ -259,7 +265,9 @@ module Didit
259
265
  # Set initiate_login_uri to your HTTPS sign-in page on the exact website_url hostname, or an empty string to
260
266
  # disable admin-sent sign-in links. Changing website_url also revalidates the saved sign-in URI. Invalid
261
267
  # values return 400 with an initiate_login_uri field error; hostname and URI policy failures use
262
- # https_url_on_registered_website_required.
268
+ # https_url_on_registered_website_required. An MCP token (a "Log in with Didit" grant, `token_use` `mcp`) also
269
+ # needs the `didit:management` scope, which carries the `applications` resource; a grant limited to
270
+ # `didit:verification` is refused with 403 before anything is changed.
263
271
  #
264
272
  # +PATCH /organizations/me/{org_id}/applications/{app_id}/+
265
273
  #
@@ -1569,9 +1569,13 @@ module Didit
1569
1569
  # @param contact_id [String]
1570
1570
  # @param purpose [String] * `identity_document` - identity_document * `proof_of_address` - proof_of_address *
1571
1571
  # `business_document` - business_document * `confirm_details` - confirm_details * `review_in_progress` -
1572
- # review_in_progress
1572
+ # review_in_progress * `source_of_funds` - Request a document showing the source of payment funds. *
1573
+ # `purpose_of_payment` - Request a document explaining the payment purpose. Both are available for person and
1574
+ # busin...
1573
1575
  # @param request_id [String]
1574
- # @param expires_at [Time, String]
1576
+ # @param expires_at [Time, String] Use the expiry covered by the preview token. Source-of-funds and
1577
+ # purpose-of-payment requests allow up to 14 days; other purposes allow up to seven days. The default remains
1578
+ # seven days. Changing the expiry without a matching preview is rejected.
1575
1579
  # @param preview_token [String]
1576
1580
  # @param language [String]
1577
1581
  # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
@@ -1638,7 +1642,9 @@ module Didit
1638
1642
  # @param contact_id [String]
1639
1643
  # @param purpose [String] * `identity_document` - identity_document * `proof_of_address` - proof_of_address *
1640
1644
  # `business_document` - business_document * `confirm_details` - confirm_details * `review_in_progress` -
1641
- # review_in_progress
1645
+ # review_in_progress * `source_of_funds` - Request a document showing the source of payment funds. *
1646
+ # `purpose_of_payment` - Request a document explaining the payment purpose. Both are available for person and
1647
+ # busin...
1642
1648
  # @param language [String]
1643
1649
  # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
1644
1650
  # @return [Didit::Types::CustomerMessagingCaseRequestPreviewResponse]
@@ -215,7 +215,10 @@ module Didit
215
215
  #
216
216
  # Takes another action with a category and a reason. Also overrides a decision the Investigator took on its own
217
217
  # while it still stands. Restricted keys need the `decisions` scope (write); transaction alerts also need
218
- # `transactions` (write). Escalating a verification or transaction opens a case.
218
+ # `transactions` (write). Escalating a verification or transaction opens a case. Automated transaction decisions
219
+ # can be overridden only while the original decision still stands. The original decision remains unchanged, the
220
+ # override is recorded separately, and an immediate policy question is raised for its recorded situations with
221
+ # the original policy action. The override does not charge for another automated decision.
219
222
  #
220
223
  # +POST /v3/investigator/runs/{run_id}/override/+
221
224
  #
@@ -426,6 +426,8 @@ module Didit
426
426
  # @param evaluation_mode [String]
427
427
  # @param scope [Hash] Which transactions the rule applies to. Only these three keys are accepted.
428
428
  # @param period_days [Integer]
429
+ # @param rule_id [String] Optional ID of the rule being edited. Excludes that rule from overlap comparisons;
430
+ # does not change the candidate configuration.
429
431
  # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
430
432
  # @return [Didit::Types::TransactionRuleBacktestResult]
431
433
  def backtest(
@@ -434,6 +436,7 @@ module Didit
434
436
  evaluation_mode: OMIT,
435
437
  scope: OMIT,
436
438
  period_days: OMIT,
439
+ rule_id: OMIT,
437
440
  request_options: nil
438
441
  )
439
442
  @client.request(
@@ -444,7 +447,8 @@ module Didit
444
447
  "aggregation" => aggregation,
445
448
  "evaluation_mode" => evaluation_mode,
446
449
  "scope" => scope,
447
- "period_days" => period_days
450
+ "period_days" => period_days,
451
+ "rule_id" => rule_id
448
452
  },
449
453
  response: Types::TransactionRuleBacktestResult,
450
454
  request_options: request_options
@@ -846,6 +850,34 @@ module Didit
846
850
  )
847
851
  end
848
852
 
853
+ # List Travel Rule delivery history
854
+ #
855
+ # Read the complete delivery history for a transaction, oldest first. Requires transaction read permission.
856
+ # Unlike the newest 100 entries embedded in detail, this endpoint paginates the full history. See [delivery
857
+ # history](/management-api/travel-rule/list-deliveries).
858
+ #
859
+ # +GET /v3/transactions/{transaction_id}/travel-rule/deliveries/+
860
+ #
861
+ # @param transaction_id [String] Didit-stable transaction UUID that owns the transfer.
862
+ # @param limit [Integer] Entries per page. Defaults to 100 and larger values are capped at 100; a value above
863
+ # 1,000,000 returns `400`.
864
+ # @param offset [Integer] Number of entries to skip, up to 1,000,000. A larger value returns `400`.
865
+ # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
866
+ # @return [Didit::Page<Didit::Types::TravelRuleDeliveryLogEntry>]
867
+ def list_deliveries(transaction_id, limit: OMIT, offset: OMIT, request_options: nil)
868
+ @client.request(
869
+ :get,
870
+ "/v3/transactions/{transaction_id}/travel-rule/deliveries/",
871
+ path_params: { "transaction_id" => transaction_id },
872
+ query: {
873
+ "limit" => limit,
874
+ "offset" => offset
875
+ },
876
+ page: Types::TravelRuleDeliveryLogEntry,
877
+ request_options: request_options
878
+ )
879
+ end
880
+
849
881
  # List Travel Rule messages
850
882
  #
851
883
  # Messages and document requests exchanged with the counterparty VASP about this transfer.
@@ -881,14 +881,19 @@ module Didit
881
881
  # * `business_document` - business_document
882
882
  # * `confirm_details` - confirm_details
883
883
  # * `review_in_progress` - review_in_progress
884
+ # * `source_of_funds` - Request a document showing the source of payment funds.
885
+ # * `purpose_of_payment` - Request a document explaining the payment purpose. Both are available for person and
886
+ # business cases.
884
887
  module CustomerMessagingPurposeEnum
885
888
  IDENTITY_DOCUMENT = "identity_document"
886
889
  PROOF_OF_ADDRESS = "proof_of_address"
887
890
  BUSINESS_DOCUMENT = "business_document"
888
891
  CONFIRM_DETAILS = "confirm_details"
889
892
  REVIEW_IN_PROGRESS = "review_in_progress"
893
+ SOURCE_OF_FUNDS = "source_of_funds"
894
+ PURPOSE_OF_PAYMENT = "purpose_of_payment"
890
895
 
891
- VALUES = [IDENTITY_DOCUMENT, PROOF_OF_ADDRESS, BUSINESS_DOCUMENT, CONFIRM_DETAILS, REVIEW_IN_PROGRESS].freeze
896
+ VALUES = [IDENTITY_DOCUMENT, PROOF_OF_ADDRESS, BUSINESS_DOCUMENT, CONFIRM_DETAILS, REVIEW_IN_PROGRESS, SOURCE_OF_FUNDS, PURPOSE_OF_PAYMENT].freeze
892
897
  end
893
898
 
894
899
  # * `identity_document` - identity_document
@@ -896,14 +901,19 @@ module Didit
896
901
  # * `business_document` - business_document
897
902
  # * `confirm_details` - confirm_details
898
903
  # * `review_in_progress` - review_in_progress
904
+ # * `source_of_funds` - Request a document showing the source of payment funds.
905
+ # * `purpose_of_payment` - Request a document explaining the payment purpose. Both are available for person and
906
+ # business cases.
899
907
  module CustomerMessagingPurposesEnum
900
908
  IDENTITY_DOCUMENT = "identity_document"
901
909
  PROOF_OF_ADDRESS = "proof_of_address"
902
910
  BUSINESS_DOCUMENT = "business_document"
903
911
  CONFIRM_DETAILS = "confirm_details"
904
912
  REVIEW_IN_PROGRESS = "review_in_progress"
913
+ SOURCE_OF_FUNDS = "source_of_funds"
914
+ PURPOSE_OF_PAYMENT = "purpose_of_payment"
905
915
 
906
- VALUES = [IDENTITY_DOCUMENT, PROOF_OF_ADDRESS, BUSINESS_DOCUMENT, CONFIRM_DETAILS, REVIEW_IN_PROGRESS].freeze
916
+ VALUES = [IDENTITY_DOCUMENT, PROOF_OF_ADDRESS, BUSINESS_DOCUMENT, CONFIRM_DETAILS, REVIEW_IN_PROGRESS, SOURCE_OF_FUNDS, PURPOSE_OF_PAYMENT].freeze
907
917
  end
908
918
 
909
919
  # * `ISL` - ISL
@@ -4741,6 +4751,27 @@ module Didit
4741
4751
  VALUES = [DIDIT, CUSTOM].freeze
4742
4752
  end
4743
4753
 
4754
+ # Which side of the exchange this transfer is.
4755
+ module TransactionListTravelRuleDirection
4756
+ INBOUND = "INBOUND"
4757
+ OUTBOUND = "OUTBOUND"
4758
+
4759
+ VALUES = [INBOUND, OUTBOUND].freeze
4760
+ end
4761
+
4762
+ # not_required when the transfer is not required; otherwise confirmed or not_confirmed follows
4763
+ # ownership_confirmed. With no verdict, requested means an active outbound ownership widget matches this transfer
4764
+ # and subject; otherwise not_requested. A request is not completed proof.
4765
+ module TransactionListTravelRuleProofState
4766
+ NOT_REQUIRED = "not_required"
4767
+ CONFIRMED = "confirmed"
4768
+ NOT_CONFIRMED = "not_confirmed"
4769
+ REQUESTED = "requested"
4770
+ NOT_REQUESTED = "not_requested"
4771
+
4772
+ VALUES = [NOT_REQUIRED, CONFIRMED, NOT_CONFIRMED, REQUESTED, NOT_REQUESTED].freeze
4773
+ end
4774
+
4744
4775
  # Status after the change.
4745
4776
  module TransactionNoteMetadataNewStatus
4746
4777
  APPROVED = "APPROVED"
@@ -5261,6 +5292,42 @@ module Didit
5261
5292
  VALUES = [SEND, ANSWER, TXID, CANCEL, POLL].freeze
5262
5293
  end
5263
5294
 
5295
+ # What the message carries. `SEND`: the transfer's first message to the counterparty (outbound; the rail is chosen
5296
+ # when it is sent). `ANSWER`: your accept or decline, owed to the network that asked (inbound). `TXID`: the
5297
+ # on-chain transaction hash, after you finish the transfer. `CANCEL`: the cancellation, after you cancel it.
5298
+ # `POLL`: a status query to a network that offers one, repeated every 5 minutes while the transfer waits on the
5299
+ # counterparty.
5300
+ module TravelRuleDeliveryLogEntryKind
5301
+ SEND = "SEND"
5302
+ ANSWER = "ANSWER"
5303
+ TXID = "TXID"
5304
+ CANCEL = "CANCEL"
5305
+ POLL = "POLL"
5306
+
5307
+ VALUES = [SEND, ANSWER, TXID, CANCEL, POLL].freeze
5308
+ end
5309
+
5310
+ # Supplier-neutral transport type; null until selected.
5311
+ module TravelRuleDeliveryLogEntryRail
5312
+ EMAIL = "EMAIL"
5313
+ TRP = "TRP"
5314
+ INTERNAL = "INTERNAL"
5315
+ NETWORK = "NETWORK"
5316
+
5317
+ VALUES = [EMAIL, TRP, INTERNAL, NETWORK].freeze
5318
+ end
5319
+
5320
+ # Current delivery status.
5321
+ module TravelRuleDeliveryLogEntryStatus
5322
+ QUEUED = "QUEUED"
5323
+ SENDING = "SENDING"
5324
+ RETRYING = "RETRYING"
5325
+ DELIVERED = "DELIVERED"
5326
+ FAILED = "FAILED"
5327
+
5328
+ VALUES = [QUEUED, SENDING, RETRYING, DELIVERED, FAILED].freeze
5329
+ end
5330
+
5264
5331
  # The rail that carries the message. Empty until Didit has chosen one for a first message.
5265
5332
  module TravelRuleDeliveryRail
5266
5333
  INTERNAL = "INTERNAL"
@@ -11804,6 +11871,9 @@ module Didit
11804
11871
  field :id, "id", :string
11805
11872
  field :uuid, "uuid", :string
11806
11873
  field :title, "title", :string
11874
+ field :language, "language", :string
11875
+ field :source_revision, "source_revision", :string
11876
+ field :translation_id, "translation_id", :string
11807
11877
  field :file_name, "file_name", :string
11808
11878
  field :pages, "pages", :integer
11809
11879
  field :size_bytes, "size_bytes", :integer
@@ -12139,6 +12209,50 @@ module Didit
12139
12209
  field :source, "source", :string
12140
12210
  end
12141
12211
 
12212
+ # Travel Rule summary on a transaction list item. Includes latest delivery but omits deliveries and
12213
+ # deliveries_truncated.
12214
+ class TransactionListTravelRule < Didit::Model
12215
+ field :uuid, "uuid", :string
12216
+ field :status, "status", :string
12217
+ field :protocol, "protocol", :string
12218
+ field :required, "required", :boolean
12219
+ field :obligations_count, "obligations_count", :integer
12220
+ field :originator_data, "originator_data", :any
12221
+ field :beneficiary_data, "beneficiary_data", :any
12222
+ field :name_match, "name_match", :any
12223
+ field :data_match, "data_match", "TravelRuleDataMatch"
12224
+ field :mismatched_fields, "mismatched_fields", [:array, :string]
12225
+ field :data_unmasked, "data_unmasked", "TravelRuleDataUnmasked"
12226
+ field :data_masked, "data_masked", :boolean
12227
+ field :metadata, "metadata", :any
12228
+ field :direction, "direction", :string
12229
+ field :rail, "rail", :string
12230
+ field :counterparty_vasp, "counterparty_vasp", "TransactionListTravelRuleCounterpartyVasp"
12231
+ field :delivery, "delivery", "TravelRuleDelivery"
12232
+ field :discovery, "discovery", [:array, "TravelRuleDiscoveryStep"]
12233
+ field :reason, "reason", :string
12234
+ field :next_actions, "next_actions", [:array, "TravelRuleNextAction"]
12235
+ field :chain_details, "chain_details", "TravelRuleChainDetails"
12236
+ field :not_required_reason, "not_required_reason", :string
12237
+ field :proof_state, "proof_state", :string
12238
+ end
12239
+
12240
+ # The counterparty's directory entry, or `null` when the transfer links none.
12241
+ class TransactionListTravelRuleCounterpartyVasp < Didit::Model
12242
+ field :name, "name", :string
12243
+ field :lei, "lei", :string
12244
+ field :dd_score, "dd_score", :integer
12245
+ field :dd_score_breakdown, "dd_score_breakdown", [:map, "TransactionListTravelRuleCounterpartyVaspDdScoreBreakdownValue"]
12246
+ field :dd_assessed_at, "dd_assessed_at", :datetime
12247
+ end
12248
+
12249
+ class TransactionListTravelRuleCounterpartyVaspDdScoreBreakdownValue < Didit::Model
12250
+ field :points, "points", :float
12251
+ field :max, "max", :integer
12252
+ field :reason, "reason", :string
12253
+ field :detail, "detail", :string
12254
+ end
12255
+
12142
12256
  # One note on a monitored transaction's review timeline.
12143
12257
  class TransactionNote < Didit::Model
12144
12258
  field :uuid, "uuid", :string
@@ -12198,6 +12312,9 @@ module Didit
12198
12312
  field :matched, "matched", :integer
12199
12313
  field :affected_entities, "affected_entities", :integer
12200
12314
  field :period_days, "period_days", :integer
12315
+ field :truncated, "truncated", :boolean
12316
+ field :overlapping_rules, "overlapping_rules", [:array, "TransactionRuleOverlap"]
12317
+ field :overlapping_rules_truncated, "overlapping_rules_truncated", :boolean
12201
12318
  end
12202
12319
 
12203
12320
  # A condition reads only the transaction being evaluated - it never filters the aggregation window.
@@ -12264,6 +12381,13 @@ module Didit
12264
12381
  field :is_installed, "is_installed", :boolean
12265
12382
  end
12266
12383
 
12384
+ class TransactionRuleOverlap < Didit::Model
12385
+ field :rule_id, "rule_id", :string
12386
+ field :name, "name", :string
12387
+ field :actions, "actions", [:array, "TransactionRuleAction"]
12388
+ field :overlap_count, "overlap_count", :integer
12389
+ end
12390
+
12267
12391
  # Which transactions the rule applies to. Only these three keys are accepted.
12268
12392
  class TransactionRuleScope < Didit::Model
12269
12393
  field :transaction_types, "transaction_types", [:array, :string]
@@ -12319,11 +12443,8 @@ module Didit
12319
12443
  field :source, "source", :string
12320
12444
  end
12321
12445
 
12322
- # A transaction's Travel Rule transfer, as `GET /v3/transactions/{transaction_id}/`, the `201` of `POST
12323
- # /v3/transactions/` and each row of `GET /v3/transactions/` return it. `direction`, `rail`, `counterparty_vasp`,
12324
- # `delivery`, `discovery`, `reason` and `next_actions` have the same shape as on `PATCH
12325
- # /v3/transactions/{transaction_id}/travel-rule/`, so one read of a transaction says why its transfer is stuck and
12326
- # what moves it on.
12446
+ # Travel Rule transfer on transaction detail and creation responses. Includes latest delivery and bounded delivery
12447
+ # history. Transaction lists omit the history fields.
12327
12448
  class TransactionTravelRule < Didit::Model
12328
12449
  field :uuid, "uuid", :string
12329
12450
  field :status, "status", :string
@@ -12346,6 +12467,8 @@ module Didit
12346
12467
  field :reason, "reason", :string
12347
12468
  field :next_actions, "next_actions", [:array, "TravelRuleNextAction"]
12348
12469
  field :chain_details, "chain_details", "TravelRuleChainDetails"
12470
+ field :deliveries, "deliveries", [:array, "TravelRuleDeliveryLogEntry"]
12471
+ field :deliveries_truncated, "deliveries_truncated", :boolean
12349
12472
  field :not_required_reason, "not_required_reason", :string
12350
12473
  field :proof_state, "proof_state", :string
12351
12474
  end
@@ -12528,6 +12651,24 @@ module Didit
12528
12651
  field :delivered_at, "delivered_at", :datetime
12529
12652
  end
12530
12653
 
12654
+ # One supplier-neutral entry in the delivery history.
12655
+ class TravelRuleDeliveryLogEntry < Didit::Model
12656
+ field :uuid, "uuid", :string
12657
+ field :kind, "kind", :string
12658
+ field :status, "status", :string
12659
+ field :rail, "rail", :string
12660
+ field :created_at, "created_at", :datetime
12661
+ field :delivered_at, "delivered_at", :datetime
12662
+ field :detail_lines, "detail_lines", [:array, :string]
12663
+ end
12664
+
12665
+ class TravelRuleDeliveryLogPage < Didit::Model
12666
+ field :count, "count", :integer
12667
+ field :next, "next", :string
12668
+ field :previous, "previous", :string
12669
+ field :results, "results", [:array, "TravelRuleDeliveryLogEntry"]
12670
+ end
12671
+
12531
12672
  # One step of the counterparty discovery Didit ran for an outbound transfer, in the order it ran them. The first
12532
12673
  # step that names a VASP with a route ends the chain.
12533
12674
  class TravelRuleDiscoveryStep < Didit::Model
@@ -12828,6 +12969,8 @@ module Didit
12828
12969
  field :reason, "reason", :string
12829
12970
  field :next_actions, "next_actions", [:array, "TravelRuleNextAction"]
12830
12971
  field :chain_details, "chain_details", "TravelRuleChainDetails"
12972
+ field :deliveries, "deliveries", [:array, "TravelRuleDeliveryLogEntry"]
12973
+ field :deliveries_truncated, "deliveries_truncated", :boolean
12831
12974
  field :not_required_reason, "not_required_reason", :string
12832
12975
  field :proof_state, "proof_state", :string
12833
12976
  end
@@ -210,7 +210,7 @@ module Didit
210
210
  field :decision_reason_label, "decision_reason_label", :string
211
211
  field :assigned_to_name, "assigned_to_name", :string
212
212
  field :travel_rule_status, "travel_rule_status", :string
213
- field :travel_rule, "travel_rule", "TransactionTravelRule"
213
+ field :travel_rule, "travel_rule", "TransactionListTravelRule"
214
214
  end
215
215
 
216
216
  class TransactionsListResponseResultsTags < Didit::Model
data/lib/didit/types.rb CHANGED
@@ -1491,6 +1491,11 @@ module Didit
1491
1491
  autoload :TransactionDetailStatus, "didit/types/components"
1492
1492
  autoload :TransactionDetailTags, "didit/types/components"
1493
1493
  autoload :TransactionDetailTagsSource, "didit/types/components"
1494
+ autoload :TransactionListTravelRule, "didit/types/components"
1495
+ autoload :TransactionListTravelRuleCounterpartyVasp, "didit/types/components"
1496
+ autoload :TransactionListTravelRuleCounterpartyVaspDdScoreBreakdownValue, "didit/types/components"
1497
+ autoload :TransactionListTravelRuleDirection, "didit/types/components"
1498
+ autoload :TransactionListTravelRuleProofState, "didit/types/components"
1494
1499
  autoload :TransactionNote, "didit/types/components"
1495
1500
  autoload :TransactionNoteMetadata, "didit/types/components"
1496
1501
  autoload :TransactionNoteMetadataNewStatus, "didit/types/components"
@@ -1525,6 +1530,7 @@ module Didit
1525
1530
  autoload :TransactionRuleInstallResult, "didit/types/components"
1526
1531
  autoload :TransactionRuleLibraryEntry, "didit/types/components"
1527
1532
  autoload :TransactionRuleLibraryEntryEvaluationMode, "didit/types/components"
1533
+ autoload :TransactionRuleOverlap, "didit/types/components"
1528
1534
  autoload :TransactionRuleScope, "didit/types/components"
1529
1535
  autoload :TransactionRuleScopeDirections, "didit/types/components"
1530
1536
  autoload :TransactionSummary, "didit/types/components"
@@ -1600,6 +1606,11 @@ module Didit
1600
1606
  autoload :TravelRuleDataUnmaskedReason, "didit/types/components"
1601
1607
  autoload :TravelRuleDelivery, "didit/types/components"
1602
1608
  autoload :TravelRuleDeliveryKind, "didit/types/components"
1609
+ autoload :TravelRuleDeliveryLogEntry, "didit/types/components"
1610
+ autoload :TravelRuleDeliveryLogEntryKind, "didit/types/components"
1611
+ autoload :TravelRuleDeliveryLogEntryRail, "didit/types/components"
1612
+ autoload :TravelRuleDeliveryLogEntryStatus, "didit/types/components"
1613
+ autoload :TravelRuleDeliveryLogPage, "didit/types/components"
1603
1614
  autoload :TravelRuleDeliveryRail, "didit/types/components"
1604
1615
  autoload :TravelRuleDeliveryStatus, "didit/types/components"
1605
1616
  autoload :TravelRuleDiscoveryStep, "didit/types/components"
data/lib/didit/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Didit
4
- VERSION = "2.12.0" # x-release-please-version
4
+ VERSION = "2.13.0" # x-release-please-version
5
5
  end
@@ -21,7 +21,7 @@ module Didit
21
21
  def list: (String transaction_id, ?limit: Integer, ?offset: Integer, ?request_options: Didit::request_options?) -> Didit::Page[Didit::Types::TransactionNote]
22
22
  end
23
23
  class Rules < Didit::Resource
24
- def backtest: (?conditions: Array[Didit::Types::transaction_rule_condition], ?aggregation: Array[Didit::Types::transaction_rule_aggregation], ?evaluation_mode: String, ?scope: Didit::Types::transaction_rule_scope, ?period_days: Integer, ?request_options: Didit::request_options?) -> Didit::Types::TransactionRuleBacktestResult
24
+ def backtest: (?conditions: Array[Didit::Types::transaction_rule_condition], ?aggregation: Array[Didit::Types::transaction_rule_aggregation], ?evaluation_mode: String, ?scope: Didit::Types::transaction_rule_scope, ?period_days: Integer, ?rule_id: String, ?request_options: Didit::request_options?) -> Didit::Types::TransactionRuleBacktestResult
25
25
  def create: (title: String, category: String, mode: String, ?description: String?, ?evaluation_mode: String, ?scope: Didit::Types::transaction_rule_scope, ?conditions: Array[Didit::Types::transaction_rule_condition], ?aggregation: Array[Didit::Types::transaction_rule_aggregation], ?actions: Array[(Didit::Types::transaction_rule_action_add_score | Didit::Types::transaction_rule_action_change_status | Didit::Types::transaction_rule_action_add_tags | Didit::Types::transaction_rule_action_add_note | Didit::Types::transaction_rule_action_add_to_list | Didit::Types::transaction_rule_action_open_case)], ?metadata: Hash[String | Symbol, untyped], ?request_options: Didit::request_options?) -> Didit::Types::TransactionRuleDetail
26
26
  def delete: (String rule_uuid, ?request_options: Didit::request_options?) -> nil
27
27
  def install_library: (?library_keys: Array[String], ?bundle: String, ?request_options: Didit::request_options?) -> Didit::Types::TransactionRuleInstallResult
@@ -34,6 +34,7 @@ module Didit
34
34
  class TravelRule < Didit::Resource
35
35
  def confirm_ownership: (String transaction_id, confirmed: bool, ?wallet_address: String, ?request_options: Didit::request_options?) -> Didit::Types::TravelRuleTransferDetail
36
36
  def create_message: (String transaction_id, ?kind: String, ?body: String, ?requested_documents: Array[String], ?reply_to: String?, ?files: Array[Didit::upload], ?request_options: Didit::request_options?) -> Didit::Types::TravelRuleMessage
37
+ def list_deliveries: (String transaction_id, ?limit: Integer, ?offset: Integer, ?request_options: Didit::request_options?) -> Didit::Page[Didit::Types::TravelRuleDeliveryLogEntry]
37
38
  def list_messages: (String transaction_id, ?request_options: Didit::request_options?) -> Array[Didit::Types::TravelRuleMessage]
38
39
  def trigger_test_vasp_inbound: (beneficiary_wallet_address: String, ?scenario: String, ?chain: String, ?amount: String, ?currency: String, ?reference: String, ?request_options: Didit::request_options?) -> Didit::Types::TravelRuleTestVaspInboundResponse
39
40
  def update_transfer: (String transaction_id, ?payment_txn_id: String, ?action: String, ?compliance_email: String, ?wallet_address: String, ?memo: String, ?beneficiary_vasp: String, ?request_options: Didit::request_options?) -> Didit::Types::TravelRuleTransferDetail
@@ -753,6 +753,8 @@ module Didit
753
753
  BUSINESS_DOCUMENT: String
754
754
  CONFIRM_DETAILS: String
755
755
  REVIEW_IN_PROGRESS: String
756
+ SOURCE_OF_FUNDS: String
757
+ PURPOSE_OF_PAYMENT: String
756
758
 
757
759
  VALUES: Array[String]
758
760
  end
@@ -763,6 +765,8 @@ module Didit
763
765
  BUSINESS_DOCUMENT: String
764
766
  CONFIRM_DETAILS: String
765
767
  REVIEW_IN_PROGRESS: String
768
+ SOURCE_OF_FUNDS: String
769
+ PURPOSE_OF_PAYMENT: String
766
770
 
767
771
  VALUES: Array[String]
768
772
  end
@@ -3977,6 +3981,23 @@ module Didit
3977
3981
  VALUES: Array[String]
3978
3982
  end
3979
3983
 
3984
+ module TransactionListTravelRuleDirection
3985
+ INBOUND: String
3986
+ OUTBOUND: String
3987
+
3988
+ VALUES: Array[String]
3989
+ end
3990
+
3991
+ module TransactionListTravelRuleProofState
3992
+ NOT_REQUIRED: String
3993
+ CONFIRMED: String
3994
+ NOT_CONFIRMED: String
3995
+ REQUESTED: String
3996
+ NOT_REQUESTED: String
3997
+
3998
+ VALUES: Array[String]
3999
+ end
4000
+
3980
4001
  module TransactionNoteMetadataNewStatus
3981
4002
  APPROVED: String
3982
4003
  IN_REVIEW: String
@@ -4415,6 +4436,35 @@ module Didit
4415
4436
  VALUES: Array[String]
4416
4437
  end
4417
4438
 
4439
+ module TravelRuleDeliveryLogEntryKind
4440
+ SEND: String
4441
+ ANSWER: String
4442
+ TXID: String
4443
+ CANCEL: String
4444
+ POLL: String
4445
+
4446
+ VALUES: Array[String]
4447
+ end
4448
+
4449
+ module TravelRuleDeliveryLogEntryRail
4450
+ EMAIL: String
4451
+ TRP: String
4452
+ INTERNAL: String
4453
+ NETWORK: String
4454
+
4455
+ VALUES: Array[String]
4456
+ end
4457
+
4458
+ module TravelRuleDeliveryLogEntryStatus
4459
+ QUEUED: String
4460
+ SENDING: String
4461
+ RETRYING: String
4462
+ DELIVERED: String
4463
+ FAILED: String
4464
+
4465
+ VALUES: Array[String]
4466
+ end
4467
+
4418
4468
  module TravelRuleDeliveryRail
4419
4469
  INTERNAL: String
4420
4470
  TRP: String
@@ -10429,6 +10479,9 @@ module Didit
10429
10479
  def id: () -> String?
10430
10480
  def uuid: () -> String?
10431
10481
  def title: () -> String?
10482
+ def language: () -> String?
10483
+ def source_revision: () -> String?
10484
+ def translation_id: () -> String?
10432
10485
  def file_name: () -> String?
10433
10486
  def pages: () -> Integer?
10434
10487
  def size_bytes: () -> Integer?
@@ -10737,6 +10790,47 @@ module Didit
10737
10790
  def source: () -> String?
10738
10791
  end
10739
10792
 
10793
+ class TransactionListTravelRule < Didit::Model
10794
+ def uuid: () -> String?
10795
+ def status: () -> String?
10796
+ def protocol: () -> String?
10797
+ def required: () -> bool?
10798
+ def obligations_count: () -> Integer?
10799
+ def originator_data: () -> Hash[String, untyped]?
10800
+ def beneficiary_data: () -> Hash[String, untyped]?
10801
+ def name_match: () -> Hash[String, untyped]?
10802
+ def data_match: () -> Didit::Types::TravelRuleDataMatch?
10803
+ def mismatched_fields: () -> Array[String]?
10804
+ def data_unmasked: () -> Didit::Types::TravelRuleDataUnmasked?
10805
+ def data_masked: () -> bool?
10806
+ def metadata: () -> Hash[String, untyped]?
10807
+ def direction: () -> String?
10808
+ def rail: () -> String?
10809
+ def counterparty_vasp: () -> Didit::Types::TransactionListTravelRuleCounterpartyVasp?
10810
+ def delivery: () -> Didit::Types::TravelRuleDelivery?
10811
+ def discovery: () -> Array[Didit::Types::TravelRuleDiscoveryStep]?
10812
+ def reason: () -> String?
10813
+ def next_actions: () -> Array[Didit::Types::TravelRuleNextAction]?
10814
+ def chain_details: () -> Didit::Types::TravelRuleChainDetails?
10815
+ def not_required_reason: () -> String?
10816
+ def proof_state: () -> String?
10817
+ end
10818
+
10819
+ class TransactionListTravelRuleCounterpartyVasp < Didit::Model
10820
+ def name: () -> String?
10821
+ def lei: () -> String?
10822
+ def dd_score: () -> Integer?
10823
+ def dd_score_breakdown: () -> Hash[String, Didit::Types::TransactionListTravelRuleCounterpartyVaspDdScoreBreakdownValue]?
10824
+ def dd_assessed_at: () -> Time?
10825
+ end
10826
+
10827
+ class TransactionListTravelRuleCounterpartyVaspDdScoreBreakdownValue < Didit::Model
10828
+ def points: () -> Float?
10829
+ def max: () -> Integer?
10830
+ def reason: () -> String?
10831
+ def detail: () -> String?
10832
+ end
10833
+
10740
10834
  class TransactionNote < Didit::Model
10741
10835
  def uuid: () -> String
10742
10836
  def note: () -> String
@@ -10781,10 +10875,13 @@ module Didit
10781
10875
  end
10782
10876
 
10783
10877
  class TransactionRuleBacktestResult < Didit::Model
10784
- def evaluated: () -> Integer?
10785
- def matched: () -> Integer?
10786
- def affected_entities: () -> Integer?
10787
- def period_days: () -> Integer?
10878
+ def evaluated: () -> Integer
10879
+ def matched: () -> Integer
10880
+ def affected_entities: () -> Integer
10881
+ def period_days: () -> Integer
10882
+ def truncated: () -> bool
10883
+ def overlapping_rules: () -> Array[Didit::Types::TransactionRuleOverlap]
10884
+ def overlapping_rules_truncated: () -> bool
10788
10885
  end
10789
10886
 
10790
10887
  class TransactionRuleCondition < Didit::Model
@@ -10850,6 +10947,13 @@ module Didit
10850
10947
  def is_installed: () -> bool?
10851
10948
  end
10852
10949
 
10950
+ class TransactionRuleOverlap < Didit::Model
10951
+ def rule_id: () -> String
10952
+ def name: () -> String
10953
+ def actions: () -> Array[Didit::Types::TransactionRuleAction]
10954
+ def overlap_count: () -> Integer
10955
+ end
10956
+
10853
10957
  class TransactionRuleScope < Didit::Model
10854
10958
  def transaction_types: () -> Array[String]?
10855
10959
  def directions: () -> Array[String]?
@@ -10924,6 +11028,8 @@ module Didit
10924
11028
  def reason: () -> String?
10925
11029
  def next_actions: () -> Array[Didit::Types::TravelRuleNextAction]?
10926
11030
  def chain_details: () -> Didit::Types::TravelRuleChainDetails?
11031
+ def deliveries: () -> Array[Didit::Types::TravelRuleDeliveryLogEntry]?
11032
+ def deliveries_truncated: () -> bool?
10927
11033
  def not_required_reason: () -> String?
10928
11034
  def proof_state: () -> String?
10929
11035
  end
@@ -11072,6 +11178,23 @@ module Didit
11072
11178
  def delivered_at: () -> Time?
11073
11179
  end
11074
11180
 
11181
+ class TravelRuleDeliveryLogEntry < Didit::Model
11182
+ def uuid: () -> String
11183
+ def kind: () -> String
11184
+ def status: () -> String
11185
+ def rail: () -> String?
11186
+ def created_at: () -> Time
11187
+ def delivered_at: () -> Time?
11188
+ def detail_lines: () -> Array[String]
11189
+ end
11190
+
11191
+ class TravelRuleDeliveryLogPage < Didit::Model
11192
+ def count: () -> Integer
11193
+ def `next`: () -> String?
11194
+ def previous: () -> String?
11195
+ def results: () -> Array[Didit::Types::TravelRuleDeliveryLogEntry]
11196
+ end
11197
+
11075
11198
  class TravelRuleDiscoveryStep < Didit::Model
11076
11199
  def step: () -> String?
11077
11200
  def outcome: () -> String?
@@ -11337,6 +11460,8 @@ module Didit
11337
11460
  def reason: () -> String?
11338
11461
  def next_actions: () -> Array[Didit::Types::TravelRuleNextAction]?
11339
11462
  def chain_details: () -> Didit::Types::TravelRuleChainDetails?
11463
+ def deliveries: () -> Array[Didit::Types::TravelRuleDeliveryLogEntry]?
11464
+ def deliveries_truncated: () -> bool?
11340
11465
  def not_required_reason: () -> String?
11341
11466
  def proof_state: () -> String?
11342
11467
  end
@@ -182,7 +182,7 @@ module Didit
182
182
  def decision_reason_label: () -> String?
183
183
  def assigned_to_name: () -> String?
184
184
  def travel_rule_status: () -> String?
185
- def travel_rule: () -> Didit::Types::TransactionTravelRule?
185
+ def travel_rule: () -> Didit::Types::TransactionListTravelRule?
186
186
  end
187
187
 
188
188
  class TransactionsListResponseResultsTags < Didit::Model
@@ -252,7 +252,7 @@ module Didit
252
252
 
253
253
  type transactions_notes_create_params = { note: String, ?mentioned_emails: Array[String] }
254
254
 
255
- type transactions_rules_backtest_params = { ?conditions: Array[Didit::Types::transaction_rule_condition], ?aggregation: Array[Didit::Types::transaction_rule_aggregation], ?evaluation_mode: String, ?scope: Didit::Types::transaction_rule_scope, ?period_days: Integer }
255
+ type transactions_rules_backtest_params = { ?conditions: Array[Didit::Types::transaction_rule_condition], ?aggregation: Array[Didit::Types::transaction_rule_aggregation], ?evaluation_mode: String, ?scope: Didit::Types::transaction_rule_scope, ?period_days: Integer, ?rule_id: String }
256
256
 
257
257
  type transactions_rules_create_params = { title: String, ?description: String?, category: String, mode: String, ?evaluation_mode: String, ?scope: Didit::Types::transaction_rule_scope, ?conditions: Array[Didit::Types::transaction_rule_condition], ?aggregation: Array[Didit::Types::transaction_rule_aggregation], ?actions: Array[(Didit::Types::transaction_rule_action_add_score | Didit::Types::transaction_rule_action_change_status | Didit::Types::transaction_rule_action_add_tags | Didit::Types::transaction_rule_action_add_note | Didit::Types::transaction_rule_action_add_to_list | Didit::Types::transaction_rule_action_open_case)], ?metadata: Hash[String | Symbol, untyped] }
258
258
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: didit-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didit