nordlet 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +252 -19
  3. data/lib/nordlet/account/types/api_keys_list_account_response_rows_item.rb +2 -0
  4. data/lib/nordlet/account/types/export_account_response.rb +8 -0
  5. data/lib/nordlet/account/types/export_account_response_api_keys_item.rb +25 -0
  6. data/lib/nordlet/account/types/export_account_response_auth_events_item.rb +17 -0
  7. data/lib/nordlet/account/types/export_account_response_oauth_grants_item.rb +17 -0
  8. data/lib/nordlet/account/types/export_account_response_referral_points_item.rb +15 -0
  9. data/lib/nordlet/account/types/invites_accept_account_response.rb +2 -0
  10. data/lib/nordlet/account/types/login_link_consume_account_response.rb +2 -0
  11. data/lib/nordlet/account/types/two_factor_disable_account_request.rb +11 -0
  12. data/lib/nordlet/account/types/two_factor_disable_account_response.rb +11 -0
  13. data/lib/nordlet/account/types/two_factor_enable_account_request.rb +11 -0
  14. data/lib/nordlet/account/types/two_factor_enable_account_response.rb +11 -0
  15. data/lib/nordlet/account/types/two_factor_get_account_request.rb +9 -0
  16. data/lib/nordlet/account/types/two_factor_get_account_response.rb +17 -0
  17. data/lib/nordlet/account/types/two_factor_get_account_response_setup.rb +13 -0
  18. data/lib/nordlet/account/types/two_factor_recovery_codes_regenerate_account_request.rb +11 -0
  19. data/lib/nordlet/account/types/two_factor_recovery_codes_regenerate_account_response.rb +11 -0
  20. data/lib/nordlet/account/types/two_factor_setup_account_request.rb +9 -0
  21. data/lib/nordlet/account/types/two_factor_setup_account_response.rb +13 -0
  22. data/lib/nordlet/account/types/two_factor_verify_account_request.rb +11 -0
  23. data/lib/nordlet/account/types/two_factor_verify_account_response.rb +11 -0
  24. data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item_kind.rb +1 -0
  25. data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item_kind.rb +1 -0
  26. data/lib/nordlet/peppol/client.rb +4 -1
  27. data/lib/nordlet/version.rb +1 -1
  28. data/lib/nordlet/webhooks/client.rb +41 -2
  29. data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_request.rb +13 -0
  30. data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_response.rb +31 -0
  31. data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_response_last_delivery_status.rb +15 -0
  32. data/lib/nordlet.rb +20 -0
  33. data/reference.md +437 -11
  34. metadata +22 -2
data/reference.md CHANGED
@@ -19975,7 +19975,7 @@ client.peppol.participants_lookup
19975
19975
  <dl>
19976
19976
  <dd>
19977
19977
 
19978
- Apply one event: a delivery status event updates the Peppol status of the sale invoice with that message id and, when the status changes, emits `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` or `sale_invoice.peppol_failed`; a received-document event fetches the document from the access point, stores it as a document capture with the matched supplier, emits `document_capture.peppol_received` and marks it read at the access point (a document already stored is skipped). `handled` is false when the event matched no invoice or document. Answers 404 when no company uses that provider account, 401 when the signature does not match.
19978
+ Apply one event: a delivery status event updates the Peppol status of the sale invoice with that message id and, when the status changes, emits `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` or `sale_invoice.peppol_failed`; a received-document event fetches the document from the access point, stores it as a document capture with the matched supplier, emits `document_capture.peppol_received` and marks it read at the access point (a document already stored is skipped). `handled` is false when the event matched no invoice or document. A status is not moved back: pending, failed, delivered and rejected come in that order, and an event with an earlier status than the stored one changes nothing. Answers 401, with the same body, when no company uses that provider account, when the signature does not match and, for e-invoice.be, when the `created_at` of the event is more than 5 minutes from the server time.
19979
19979
  </dd>
19980
19980
  </dl>
19981
19981
  </dd>
@@ -47370,7 +47370,7 @@ client.audit.list
47370
47370
  <dl>
47371
47371
  <dd>
47372
47372
 
47373
- Register a webhook endpoint for the given event types (`*` for every event). The URL must be an https address that resolves to a public network (422 otherwise). The signing secret is generated unless `secret` is given, and this call is the only one that returns it.
47373
+ Register a webhook endpoint for the given event types (`*` for every event). The URL must be an https address that resolves to a public network (422 otherwise). The signing secret is generated unless `secret` is given (at least 32 characters), and this call is the only one that returns it. Answers 503 when the platform encryption key is not configured.
47374
47374
  </dd>
47375
47375
  </dl>
47376
47376
  </dd>
@@ -47529,6 +47529,76 @@ client.webhooks.subscriptions_list
47529
47529
  </dl>
47530
47530
 
47531
47531
 
47532
+ </dd>
47533
+ </dl>
47534
+ </details>
47535
+
47536
+ <details><summary><code>client.webhooks.<a href="/lib/nordlet/webhooks/client.rb">subscriptions_rotate_secret</a>(request) -> Nordlet::Webhooks::Types::SubscriptionsRotateSecretWebhooksResponse</code></summary>
47537
+ <dl>
47538
+ <dd>
47539
+
47540
+ #### 📝 Description
47541
+
47542
+ <dl>
47543
+ <dd>
47544
+
47545
+ <dl>
47546
+ <dd>
47547
+
47548
+ Replace the signing secret of a subscription and return the new one; this call is the only one that returns it. The secret is generated unless `secret` is given (at least 32 characters). For 24 hours `x-nordlet-signature-v2` carries two `v1=` values, one with the new secret and one with the previous one, so a receiver can switch secrets without refusing deliveries; `x-nordlet-signature` uses the new secret only. Answers 404 for an unknown subscription and 503 when the platform encryption key is not configured.
47549
+ </dd>
47550
+ </dl>
47551
+ </dd>
47552
+ </dl>
47553
+
47554
+ #### 🔌 Usage
47555
+
47556
+ <dl>
47557
+ <dd>
47558
+
47559
+ <dl>
47560
+ <dd>
47561
+
47562
+ ```ruby
47563
+ client.webhooks.subscriptions_rotate_secret(id: "id")
47564
+ ```
47565
+ </dd>
47566
+ </dl>
47567
+ </dd>
47568
+ </dl>
47569
+
47570
+ #### ⚙️ Parameters
47571
+
47572
+ <dl>
47573
+ <dd>
47574
+
47575
+ <dl>
47576
+ <dd>
47577
+
47578
+ **id:** `String`
47579
+
47580
+ </dd>
47581
+ </dl>
47582
+
47583
+ <dl>
47584
+ <dd>
47585
+
47586
+ **secret:** `String`
47587
+
47588
+ </dd>
47589
+ </dl>
47590
+
47591
+ <dl>
47592
+ <dd>
47593
+
47594
+ **request_options:** `Nordlet::Webhooks::RequestOptions`
47595
+
47596
+ </dd>
47597
+ </dl>
47598
+ </dd>
47599
+ </dl>
47600
+
47601
+
47532
47602
  </dd>
47533
47603
  </dl>
47534
47604
  </details>
@@ -56869,7 +56939,7 @@ client.billing.usage_list(
56869
56939
  <dl>
56870
56940
  <dd>
56871
56941
 
56872
- Create a sign-in link for the e-mail address and send it; the link is valid for 15 minutes and is consumed with `account/login-link/consume`. When an unused link was requested for the same address within the last minute, the call answers `sent` without sending another. `locale` sets the language of the e-mail and of the link; `app` set to `invoice` makes the link open the invoice app instead of the Nordlet app; `acceptTerms`, `acceptDpa` and `referralCode` are stored with the link and used when the address has no account yet.
56942
+ Create a sign-in link for the e-mail address and send it; the link is valid for 15 minutes and is consumed with `account/login-link/consume`. When an unused link was requested for the same address within the last minute, the call answers `sent` without sending another; after five links for the address within an hour it answers 429; otherwise the earlier unused sign-in links for the address stop working. `locale` sets the language of the e-mail and of the link; `app` set to `invoice` makes the link open the invoice app instead of the Nordlet app; `acceptTerms`, `acceptDpa` and `referralCode` are stored with the link and used when the address has no account yet.
56873
56943
  </dd>
56874
56944
  </dl>
56875
56945
  </dd>
@@ -56971,7 +57041,7 @@ client.account.login_link_request(email: "email")
56971
57041
  <dl>
56972
57042
  <dd>
56973
57043
 
56974
- Exchange a sign-in link token for a session; an unknown, used or expired token is refused with 401. When no account has the address, one is created (`isNewUser`), which is refused with 422 unless the link was requested with `acceptTerms` and `acceptDpa`; a `referralCode` on the link records who referred the new user. A link from `account/email/change-request` changes the signed-in user's address instead, refused with 409 when another account has it.
57044
+ Exchange a sign-in link token for a session; an unknown, used or expired token is refused with 401. When no account has the address, one is created (`isNewUser`), which is refused with 422 unless the link was requested with `acceptTerms` and `acceptDpa`; a `referralCode` on the link records who referred the new user. The link `account/email/change-request` sends to the current address signs that user in and sends a confirmation link to the new address; that second link changes the address, deletes the user's other sessions and sends the previous address a link, valid for 24 hours, that changes the address back and deletes every session of the user. No link goes to the new address when another account has it, and the change and the change back are refused with 409 when another account has the address. When the user has two-factor authentication on, `twoFactorRequired` is true and the session can make no call other than `account/two-factor/verify` and `account/logout` until a code is entered.
56975
57045
  </dd>
56976
57046
  </dl>
56977
57047
  </dd>
@@ -57400,7 +57470,7 @@ client.account.members_remove(user_id: "userId")
57400
57470
  <dl>
57401
57471
  <dd>
57402
57472
 
57403
- Create an invitation to the active company for an e-mail address with the given role and send it by e-mail in `locale`; owners and admins may call it. The invitation is valid for 7 days and replaces an earlier pending one for the same address. Refused with 409 when the address already belongs to a member.
57473
+ Create an invitation to the active company for an e-mail address with the given role and send it by e-mail in `locale`; owners and admins may call it. The invitation is valid for 7 days and replaces an earlier pending one for the same address. Refused with 409 when the address already belongs to a member and with 429 (`rate_limited`) after 50 invitations by the user, in all their companies, within 24 hours.
57404
57474
  </dd>
57405
57475
  </dl>
57406
57476
  </dd>
@@ -58793,7 +58863,7 @@ client.account.companies_activate(company_id: "companyId")
58793
58863
  <dl>
58794
58864
  <dd>
58795
58865
 
58796
- Create an API key for the signed-in person and return the key itself once. Owners, admins and developers of the active company may call it. The key works in every company the person is a member of, with the rights of their role in each; every call names the company in the `x-nordlet-company` header. `scopes` defaults to the caller's scopes in the active company and may not exceed them (403); in each company the key's scopes are further limited to the person's role there. Without `expiresInDays` the key does not expire.
58866
+ Create an API key for the signed-in person and return the key itself once. Owners, admins and developers of the active company may call it. The key works in every company the person is a member of, with the rights of their role in each; every call names the company in the `x-nordlet-company` header. `scopes` defaults to the caller's scopes in the active company and may not exceed them (403); in each company the key's scopes are further limited to the person's role there. `expiresInDays` defaults to 90. The list shows the key's last four characters as `lastFour`.
58797
58867
  </dd>
58798
58868
  </dl>
58799
58869
  </dd>
@@ -58871,7 +58941,7 @@ client.account.api_keys_create(name: "name")
58871
58941
  <dl>
58872
58942
  <dd>
58873
58943
 
58874
- List the signed-in person's API keys, including expired and revoked ones.
58944
+ List the signed-in person's API keys, including expired and revoked ones. `lastFour` is the last four characters of the key (null for keys created before it was recorded); for an app connected through OAuth it is those of the current access token.
58875
58945
  </dd>
58876
58946
  </dl>
58877
58947
  </dd>
@@ -58925,7 +58995,7 @@ client.account.api_keys_list
58925
58995
  <dl>
58926
58996
  <dd>
58927
58997
 
58928
- Create a new key with the name and scopes of the signed-in person's key `id` and return it once; the old key keeps working for `overlapHours` and then expires, and its `replacedByKeyId` points to the new one. `expiresInDays` applies to the new key. Refused with 409 when the old key is revoked or belongs to an app connected through OAuth, which renews its own access.
58998
+ Create a new key with the name and scopes of the signed-in person's key `id` and return it once; the old key keeps working for `overlapHours` and then expires, and its `replacedByKeyId` points to the new one. `expiresInDays` applies to the new key and defaults to 90. Refused with 409 when the old key is revoked or belongs to an app connected through OAuth, which renews its own access.
58929
58999
  </dd>
58930
59000
  </dl>
58931
59001
  </dd>
@@ -59200,7 +59270,7 @@ client.account.profile_update
59200
59270
  <dl>
59201
59271
  <dd>
59202
59272
 
59203
- Send a confirmation link to `newEmail`; the address changes when that link is consumed with `account/login-link/consume`. When an unused link was sent to the address within the last minute, the call answers `sent` without sending another. Refused with 422 when it is already the user's address and with 409 when another account has it.
59273
+ Send a confirmation link for the change to `newEmail` to the user's current address. When it is consumed with `account/login-link/consume`, a second link goes to `newEmail`, and the address changes when that one is consumed. When an unused link for `newEmail` was created within the last minute, the call answers `sent` without sending another. Refused with 422 when it is already the user's address and with 429 (`rate_limited`) after five requests by the user within 24 hours. When another account has `newEmail`, the call answers the same, the confirmation link signs the user in and no link goes to `newEmail`.
59204
59274
  </dd>
59205
59275
  </dl>
59206
59276
  </dd>
@@ -59270,7 +59340,7 @@ client.account.email_change_request(new_email: "newEmail")
59270
59340
  <dl>
59271
59341
  <dd>
59272
59342
 
59273
- List the signed-in user's sessions that have not expired; `current` marks the one the call was made with.
59343
+ List the signed-in user's sessions that have not expired: a session ends 30 days after sign-in or after 7 days without a call. `current` marks the one the call was made with.
59274
59344
  </dd>
59275
59345
  </dl>
59276
59346
  </dd>
@@ -59440,7 +59510,7 @@ client.account.sessions_revoke_others
59440
59510
  <dl>
59441
59511
  <dd>
59442
59512
 
59443
- Return the user's profile, consent state, memberships, unexpired sessions, billing accounts (`billing` is the `app` site's, `billingAccounts` has one per site), credit transactions and the audit entries they made in their companies (the most recent 5000 of each of the last two).
59513
+ Return the user's profile, consent state, memberships, unexpired sessions, sign-in events, API keys (without the keys), connected OAuth apps, referral points, billing accounts (`billing` is the `app` site's, `billingAccounts` has one per site), credit transactions and every audit entry they made in their companies.
59444
59514
  </dd>
59445
59515
  </dl>
59446
59516
  </dd>
@@ -60208,3 +60278,359 @@ client.account.oauth_authorize_deny(client_id: "clientId")
60208
60278
  </dl>
60209
60279
  </details>
60210
60280
 
60281
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_get</a>(request) -> Nordlet::Account::Types::TwoFactorGetAccountResponse</code></summary>
60282
+ <dl>
60283
+ <dd>
60284
+
60285
+ #### 📝 Description
60286
+
60287
+ <dl>
60288
+ <dd>
60289
+
60290
+ <dl>
60291
+ <dd>
60292
+
60293
+ Return the signed-in user's two-factor authentication state: `enabled`, `required` (true for platform administrators, who cannot use platform administration without it), the number of unused recovery codes and, while a setup started with `two-factor/setup` is not finished, the key to add to an authenticator app as `setup`.
60294
+ </dd>
60295
+ </dl>
60296
+ </dd>
60297
+ </dl>
60298
+
60299
+ #### 🔌 Usage
60300
+
60301
+ <dl>
60302
+ <dd>
60303
+
60304
+ <dl>
60305
+ <dd>
60306
+
60307
+ ```ruby
60308
+ client.account.two_factor_get
60309
+ ```
60310
+ </dd>
60311
+ </dl>
60312
+ </dd>
60313
+ </dl>
60314
+
60315
+ #### ⚙️ Parameters
60316
+
60317
+ <dl>
60318
+ <dd>
60319
+
60320
+ <dl>
60321
+ <dd>
60322
+
60323
+ **request_options:** `Nordlet::Account::RequestOptions`
60324
+
60325
+ </dd>
60326
+ </dl>
60327
+ </dd>
60328
+ </dl>
60329
+
60330
+
60331
+ </dd>
60332
+ </dl>
60333
+ </details>
60334
+
60335
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_setup</a>(request) -> Nordlet::Account::Types::TwoFactorSetupAccountResponse</code></summary>
60336
+ <dl>
60337
+ <dd>
60338
+
60339
+ #### 📝 Description
60340
+
60341
+ <dl>
60342
+ <dd>
60343
+
60344
+ <dl>
60345
+ <dd>
60346
+
60347
+ Start setting up two-factor authentication: create a new key for an authenticator app (time-based codes, RFC 6238: SHA-1, 6 digits, 30 seconds) and return it with its `otpauth://` address. Nothing changes at sign-in until `two-factor/enable` is called with a code from the app. Refused with 409 when two-factor authentication is already on.
60348
+ </dd>
60349
+ </dl>
60350
+ </dd>
60351
+ </dl>
60352
+
60353
+ #### 🔌 Usage
60354
+
60355
+ <dl>
60356
+ <dd>
60357
+
60358
+ <dl>
60359
+ <dd>
60360
+
60361
+ ```ruby
60362
+ client.account.two_factor_setup
60363
+ ```
60364
+ </dd>
60365
+ </dl>
60366
+ </dd>
60367
+ </dl>
60368
+
60369
+ #### ⚙️ Parameters
60370
+
60371
+ <dl>
60372
+ <dd>
60373
+
60374
+ <dl>
60375
+ <dd>
60376
+
60377
+ **request_options:** `Nordlet::Account::RequestOptions`
60378
+
60379
+ </dd>
60380
+ </dl>
60381
+ </dd>
60382
+ </dl>
60383
+
60384
+
60385
+ </dd>
60386
+ </dl>
60387
+ </details>
60388
+
60389
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_enable</a>(request) -> Nordlet::Account::Types::TwoFactorEnableAccountResponse</code></summary>
60390
+ <dl>
60391
+ <dd>
60392
+
60393
+ #### 📝 Description
60394
+
60395
+ <dl>
60396
+ <dd>
60397
+
60398
+ <dl>
60399
+ <dd>
60400
+
60401
+ Turn on two-factor authentication with a current code from the authenticator app set up by `two-factor/setup`. Returns 10 recovery codes, shown only this once; each one works once in place of a code. The user's other sessions are deleted. From then on a session created by a sign-in link can make no call other than `two-factor/verify` and `account/logout` until a code is entered. A wrong code answers 422; after 5 wrong codes the session is deleted (401).
60402
+ </dd>
60403
+ </dl>
60404
+ </dd>
60405
+ </dl>
60406
+
60407
+ #### 🔌 Usage
60408
+
60409
+ <dl>
60410
+ <dd>
60411
+
60412
+ <dl>
60413
+ <dd>
60414
+
60415
+ ```ruby
60416
+ client.account.two_factor_enable(code: "code")
60417
+ ```
60418
+ </dd>
60419
+ </dl>
60420
+ </dd>
60421
+ </dl>
60422
+
60423
+ #### ⚙️ Parameters
60424
+
60425
+ <dl>
60426
+ <dd>
60427
+
60428
+ <dl>
60429
+ <dd>
60430
+
60431
+ **code:** `String`
60432
+
60433
+ </dd>
60434
+ </dl>
60435
+
60436
+ <dl>
60437
+ <dd>
60438
+
60439
+ **request_options:** `Nordlet::Account::RequestOptions`
60440
+
60441
+ </dd>
60442
+ </dl>
60443
+ </dd>
60444
+ </dl>
60445
+
60446
+
60447
+ </dd>
60448
+ </dl>
60449
+ </details>
60450
+
60451
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_verify</a>(request) -> Nordlet::Account::Types::TwoFactorVerifyAccountResponse</code></summary>
60452
+ <dl>
60453
+ <dd>
60454
+
60455
+ #### 📝 Description
60456
+
60457
+ <dl>
60458
+ <dd>
60459
+
60460
+ <dl>
60461
+ <dd>
60462
+
60463
+ Finish signing in when `account/login-link/consume` answered `twoFactorRequired`: send a current code from the authenticator app or an unused recovery code. A wrong code answers 422; after 5 wrong codes the session is deleted (401) and the user signs in again with a new link.
60464
+ </dd>
60465
+ </dl>
60466
+ </dd>
60467
+ </dl>
60468
+
60469
+ #### 🔌 Usage
60470
+
60471
+ <dl>
60472
+ <dd>
60473
+
60474
+ <dl>
60475
+ <dd>
60476
+
60477
+ ```ruby
60478
+ client.account.two_factor_verify(code: "code")
60479
+ ```
60480
+ </dd>
60481
+ </dl>
60482
+ </dd>
60483
+ </dl>
60484
+
60485
+ #### ⚙️ Parameters
60486
+
60487
+ <dl>
60488
+ <dd>
60489
+
60490
+ <dl>
60491
+ <dd>
60492
+
60493
+ **code:** `String`
60494
+
60495
+ </dd>
60496
+ </dl>
60497
+
60498
+ <dl>
60499
+ <dd>
60500
+
60501
+ **request_options:** `Nordlet::Account::RequestOptions`
60502
+
60503
+ </dd>
60504
+ </dl>
60505
+ </dd>
60506
+ </dl>
60507
+
60508
+
60509
+ </dd>
60510
+ </dl>
60511
+ </details>
60512
+
60513
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_recovery_codes_regenerate</a>(request) -> Nordlet::Account::Types::TwoFactorRecoveryCodesRegenerateAccountResponse</code></summary>
60514
+ <dl>
60515
+ <dd>
60516
+
60517
+ #### 📝 Description
60518
+
60519
+ <dl>
60520
+ <dd>
60521
+
60522
+ <dl>
60523
+ <dd>
60524
+
60525
+ Replace the recovery codes with 10 new ones, shown only this once, after a current code from the authenticator app. The earlier codes stop working.
60526
+ </dd>
60527
+ </dl>
60528
+ </dd>
60529
+ </dl>
60530
+
60531
+ #### 🔌 Usage
60532
+
60533
+ <dl>
60534
+ <dd>
60535
+
60536
+ <dl>
60537
+ <dd>
60538
+
60539
+ ```ruby
60540
+ client.account.two_factor_recovery_codes_regenerate(code: "code")
60541
+ ```
60542
+ </dd>
60543
+ </dl>
60544
+ </dd>
60545
+ </dl>
60546
+
60547
+ #### ⚙️ Parameters
60548
+
60549
+ <dl>
60550
+ <dd>
60551
+
60552
+ <dl>
60553
+ <dd>
60554
+
60555
+ **code:** `String`
60556
+
60557
+ </dd>
60558
+ </dl>
60559
+
60560
+ <dl>
60561
+ <dd>
60562
+
60563
+ **request_options:** `Nordlet::Account::RequestOptions`
60564
+
60565
+ </dd>
60566
+ </dl>
60567
+ </dd>
60568
+ </dl>
60569
+
60570
+
60571
+ </dd>
60572
+ </dl>
60573
+ </details>
60574
+
60575
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_disable</a>(request) -> Nordlet::Account::Types::TwoFactorDisableAccountResponse</code></summary>
60576
+ <dl>
60577
+ <dd>
60578
+
60579
+ #### 📝 Description
60580
+
60581
+ <dl>
60582
+ <dd>
60583
+
60584
+ <dl>
60585
+ <dd>
60586
+
60587
+ Turn off two-factor authentication after a current code from the authenticator app or an unused recovery code; the key and the recovery codes are deleted. Refused with 422 for a platform administrator, for whom it is required.
60588
+ </dd>
60589
+ </dl>
60590
+ </dd>
60591
+ </dl>
60592
+
60593
+ #### 🔌 Usage
60594
+
60595
+ <dl>
60596
+ <dd>
60597
+
60598
+ <dl>
60599
+ <dd>
60600
+
60601
+ ```ruby
60602
+ client.account.two_factor_disable(code: "code")
60603
+ ```
60604
+ </dd>
60605
+ </dl>
60606
+ </dd>
60607
+ </dl>
60608
+
60609
+ #### ⚙️ Parameters
60610
+
60611
+ <dl>
60612
+ <dd>
60613
+
60614
+ <dl>
60615
+ <dd>
60616
+
60617
+ **code:** `String`
60618
+
60619
+ </dd>
60620
+ </dl>
60621
+
60622
+ <dl>
60623
+ <dd>
60624
+
60625
+ **request_options:** `Nordlet::Account::RequestOptions`
60626
+
60627
+ </dd>
60628
+ </dl>
60629
+ </dd>
60630
+ </dl>
60631
+
60632
+
60633
+ </dd>
60634
+ </dl>
60635
+ </details>
60636
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nordlet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nordlet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-04 00:00:00.000000000 Z
11
+ date: 2026-11-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The Nordlet Ruby library provides convenient access to the Nordlet API
14
14
  from Ruby.
@@ -70,7 +70,9 @@ files:
70
70
  - lib/nordlet/account/types/email_change_request_account_response.rb
71
71
  - lib/nordlet/account/types/export_account_request.rb
72
72
  - lib/nordlet/account/types/export_account_response.rb
73
+ - lib/nordlet/account/types/export_account_response_api_keys_item.rb
73
74
  - lib/nordlet/account/types/export_account_response_audit_entries_item.rb
75
+ - lib/nordlet/account/types/export_account_response_auth_events_item.rb
74
76
  - lib/nordlet/account/types/export_account_response_billing.rb
75
77
  - lib/nordlet/account/types/export_account_response_billing_accounts_item.rb
76
78
  - lib/nordlet/account/types/export_account_response_billing_accounts_item_site.rb
@@ -78,6 +80,8 @@ files:
78
80
  - lib/nordlet/account/types/export_account_response_credit_transactions_item.rb
79
81
  - lib/nordlet/account/types/export_account_response_credit_transactions_item_site.rb
80
82
  - lib/nordlet/account/types/export_account_response_memberships_item.rb
83
+ - lib/nordlet/account/types/export_account_response_oauth_grants_item.rb
84
+ - lib/nordlet/account/types/export_account_response_referral_points_item.rb
81
85
  - lib/nordlet/account/types/export_account_response_sessions_item.rb
82
86
  - lib/nordlet/account/types/export_account_response_user.rb
83
87
  - lib/nordlet/account/types/invites_accept_account_request.rb
@@ -155,6 +159,19 @@ files:
155
159
  - lib/nordlet/account/types/table_settings_list_account_response_rows_item.rb
156
160
  - lib/nordlet/account/types/table_settings_set_account_request.rb
157
161
  - lib/nordlet/account/types/table_settings_set_account_response.rb
162
+ - lib/nordlet/account/types/two_factor_disable_account_request.rb
163
+ - lib/nordlet/account/types/two_factor_disable_account_response.rb
164
+ - lib/nordlet/account/types/two_factor_enable_account_request.rb
165
+ - lib/nordlet/account/types/two_factor_enable_account_response.rb
166
+ - lib/nordlet/account/types/two_factor_get_account_request.rb
167
+ - lib/nordlet/account/types/two_factor_get_account_response.rb
168
+ - lib/nordlet/account/types/two_factor_get_account_response_setup.rb
169
+ - lib/nordlet/account/types/two_factor_recovery_codes_regenerate_account_request.rb
170
+ - lib/nordlet/account/types/two_factor_recovery_codes_regenerate_account_response.rb
171
+ - lib/nordlet/account/types/two_factor_setup_account_request.rb
172
+ - lib/nordlet/account/types/two_factor_setup_account_response.rb
173
+ - lib/nordlet/account/types/two_factor_verify_account_request.rb
174
+ - lib/nordlet/account/types/two_factor_verify_account_response.rb
158
175
  - lib/nordlet/agreements/client.rb
159
176
  - lib/nordlet/agreements/types/agreements_billing_run_agreements_request.rb
160
177
  - lib/nordlet/agreements/types/agreements_billing_run_agreements_response.rb
@@ -3654,6 +3671,9 @@ files:
3654
3671
  - lib/nordlet/webhooks/types/subscriptions_list_webhooks_response.rb
3655
3672
  - lib/nordlet/webhooks/types/subscriptions_list_webhooks_response_rows_item.rb
3656
3673
  - lib/nordlet/webhooks/types/subscriptions_list_webhooks_response_rows_item_last_delivery_status.rb
3674
+ - lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_request.rb
3675
+ - lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_response.rb
3676
+ - lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_response_last_delivery_status.rb
3657
3677
  - lib/nordlet/webhooks/types/subscriptions_update_webhooks_request.rb
3658
3678
  - lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb
3659
3679
  - lib/nordlet/webhooks/types/subscriptions_update_webhooks_response.rb