nordlet 0.6.4 → 0.6.6
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/lib/nordlet/account/client.rb +293 -20
- data/lib/nordlet/account/types/api_keys_list_account_response_rows_item.rb +2 -0
- data/lib/nordlet/account/types/companies_convert_to_live_account_request.rb +11 -0
- data/lib/nordlet/account/types/companies_convert_to_live_account_response.rb +13 -0
- data/lib/nordlet/account/types/export_account_response.rb +8 -0
- data/lib/nordlet/account/types/export_account_response_api_keys_item.rb +25 -0
- data/lib/nordlet/account/types/export_account_response_auth_events_item.rb +17 -0
- data/lib/nordlet/account/types/export_account_response_oauth_grants_item.rb +17 -0
- data/lib/nordlet/account/types/export_account_response_referral_points_item.rb +15 -0
- data/lib/nordlet/account/types/invites_accept_account_response.rb +2 -0
- data/lib/nordlet/account/types/login_link_consume_account_response.rb +2 -0
- data/lib/nordlet/account/types/me_account_response_billing.rb +2 -0
- data/lib/nordlet/account/types/two_factor_disable_account_request.rb +11 -0
- data/lib/nordlet/account/types/two_factor_disable_account_response.rb +11 -0
- data/lib/nordlet/account/types/two_factor_enable_account_request.rb +11 -0
- data/lib/nordlet/account/types/two_factor_enable_account_response.rb +11 -0
- data/lib/nordlet/account/types/two_factor_get_account_request.rb +9 -0
- data/lib/nordlet/account/types/two_factor_get_account_response.rb +17 -0
- data/lib/nordlet/account/types/two_factor_get_account_response_setup.rb +13 -0
- data/lib/nordlet/account/types/two_factor_recovery_codes_regenerate_account_request.rb +11 -0
- data/lib/nordlet/account/types/two_factor_recovery_codes_regenerate_account_response.rb +11 -0
- data/lib/nordlet/account/types/two_factor_setup_account_request.rb +9 -0
- data/lib/nordlet/account/types/two_factor_setup_account_response.rb +13 -0
- data/lib/nordlet/account/types/two_factor_verify_account_request.rb +11 -0
- data/lib/nordlet/account/types/two_factor_verify_account_response.rb +11 -0
- data/lib/nordlet/billing/client.rb +47 -8
- data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request.rb +2 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_request.rb +9 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response.rb +55 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_plan.rb +16 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/topup_create_billing_request.rb +2 -0
- data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item_kind.rb +1 -0
- data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item_kind.rb +1 -0
- data/lib/nordlet/peppol/client.rb +4 -1
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet/webhooks/client.rb +41 -2
- data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_request.rb +13 -0
- data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_response.rb +31 -0
- data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_response_last_delivery_status.rb +15 -0
- data/lib/nordlet.rb +32 -0
- data/reference.md +573 -15
- metadata +34 -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
|
|
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>
|
|
@@ -56345,7 +56415,7 @@ client.billing.account_set_overdraft_cap(cap_cents: 1000000)
|
|
|
56345
56415
|
<dl>
|
|
56346
56416
|
<dd>
|
|
56347
56417
|
|
|
56348
|
-
Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits page or to the onboarding plan page, in `locale
|
|
56418
|
+
Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits page or to the onboarding plan page, in `locale`; with `convertCompanyId` it returns to the onboarding plan page, which then converts that sandbox company to a live company. Answers 409 on a site without top-ups and 503 when online payments are not configured.
|
|
56349
56419
|
</dd>
|
|
56350
56420
|
</dl>
|
|
56351
56421
|
</dd>
|
|
@@ -56399,6 +56469,14 @@ client.billing.topup_create(amount_cents: 1000000)
|
|
|
56399
56469
|
<dl>
|
|
56400
56470
|
<dd>
|
|
56401
56471
|
|
|
56472
|
+
**convert_company_id:** `String`
|
|
56473
|
+
|
|
56474
|
+
</dd>
|
|
56475
|
+
</dl>
|
|
56476
|
+
|
|
56477
|
+
<dl>
|
|
56478
|
+
<dd>
|
|
56479
|
+
|
|
56402
56480
|
**request_options:** `Nordlet::Billing::RequestOptions`
|
|
56403
56481
|
|
|
56404
56482
|
</dd>
|
|
@@ -56469,6 +56547,60 @@ client.billing.topup_confirm(session_id: "sessionId")
|
|
|
56469
56547
|
</dl>
|
|
56470
56548
|
|
|
56471
56549
|
|
|
56550
|
+
</dd>
|
|
56551
|
+
</dl>
|
|
56552
|
+
</details>
|
|
56553
|
+
|
|
56554
|
+
<details><summary><code>client.billing.<a href="/lib/nordlet/billing/client.rb">free_sandbox_start</a>(request) -> Nordlet::Billing::Types::FreeSandboxStartBillingResponse</code></summary>
|
|
56555
|
+
<dl>
|
|
56556
|
+
<dd>
|
|
56557
|
+
|
|
56558
|
+
#### 📝 Description
|
|
56559
|
+
|
|
56560
|
+
<dl>
|
|
56561
|
+
<dd>
|
|
56562
|
+
|
|
56563
|
+
<dl>
|
|
56564
|
+
<dd>
|
|
56565
|
+
|
|
56566
|
+
Start the free sandbox plan of the caller's `app` billing account: one sandbox company, free for 14 days from now, without a payment. A free sandbox that is already running keeps its end date. After `trialEndsAt` the sandbox company answers 402 until a paid plan is chosen. Answers 409 on the `invoice` site, when a paid plan is already active, and when the free sandbox of this account has already ended.
|
|
56567
|
+
</dd>
|
|
56568
|
+
</dl>
|
|
56569
|
+
</dd>
|
|
56570
|
+
</dl>
|
|
56571
|
+
|
|
56572
|
+
#### 🔌 Usage
|
|
56573
|
+
|
|
56574
|
+
<dl>
|
|
56575
|
+
<dd>
|
|
56576
|
+
|
|
56577
|
+
<dl>
|
|
56578
|
+
<dd>
|
|
56579
|
+
|
|
56580
|
+
```ruby
|
|
56581
|
+
client.billing.free_sandbox_start
|
|
56582
|
+
```
|
|
56583
|
+
</dd>
|
|
56584
|
+
</dl>
|
|
56585
|
+
</dd>
|
|
56586
|
+
</dl>
|
|
56587
|
+
|
|
56588
|
+
#### ⚙️ Parameters
|
|
56589
|
+
|
|
56590
|
+
<dl>
|
|
56591
|
+
<dd>
|
|
56592
|
+
|
|
56593
|
+
<dl>
|
|
56594
|
+
<dd>
|
|
56595
|
+
|
|
56596
|
+
**request_options:** `Nordlet::Billing::RequestOptions`
|
|
56597
|
+
|
|
56598
|
+
</dd>
|
|
56599
|
+
</dl>
|
|
56600
|
+
</dd>
|
|
56601
|
+
</dl>
|
|
56602
|
+
|
|
56603
|
+
|
|
56472
56604
|
</dd>
|
|
56473
56605
|
</dl>
|
|
56474
56606
|
</details>
|
|
@@ -56485,7 +56617,7 @@ client.billing.topup_confirm(session_id: "sessionId")
|
|
|
56485
56617
|
<dl>
|
|
56486
56618
|
<dd>
|
|
56487
56619
|
|
|
56488
|
-
Open a Stripe Checkout session for a flat-rate subscription on `plan` (by default the first plan of the request's site) for the billing account of the request's site
|
|
56620
|
+
Open a Stripe Checkout session for a flat-rate subscription on `plan` (by default the first plan of the request's site) for the billing account of the request's site and return its URL; a Stripe customer is created for that account when it has none. The plans of the `app` site have no trial period: the first month is charged at checkout. The `invoicing` plan of the `invoice` site takes its trial days from the server setting `INVOICE_PLAN_TRIAL_DAYS` and returns to the invoice app. With `convertCompanyId` Checkout returns to the onboarding plan page, which then converts that sandbox company to a live company. Answers 422 when the plan is not one of the site's plans, 409 when the site's flat-rate subscription is already active and 503 when online payments are not configured, the plan has no price, or the Invoicing trial is not set.
|
|
56489
56621
|
</dd>
|
|
56490
56622
|
</dl>
|
|
56491
56623
|
</dd>
|
|
@@ -56531,6 +56663,14 @@ client.billing.flat_rate_create
|
|
|
56531
56663
|
<dl>
|
|
56532
56664
|
<dd>
|
|
56533
56665
|
|
|
56666
|
+
**convert_company_id:** `String`
|
|
56667
|
+
|
|
56668
|
+
</dd>
|
|
56669
|
+
</dl>
|
|
56670
|
+
|
|
56671
|
+
<dl>
|
|
56672
|
+
<dd>
|
|
56673
|
+
|
|
56534
56674
|
**request_options:** `Nordlet::Billing::RequestOptions`
|
|
56535
56675
|
|
|
56536
56676
|
</dd>
|
|
@@ -56869,7 +57009,7 @@ client.billing.usage_list(
|
|
|
56869
57009
|
<dl>
|
|
56870
57010
|
<dd>
|
|
56871
57011
|
|
|
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.
|
|
57012
|
+
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
57013
|
</dd>
|
|
56874
57014
|
</dl>
|
|
56875
57015
|
</dd>
|
|
@@ -56971,7 +57111,7 @@ client.account.login_link_request(email: "email")
|
|
|
56971
57111
|
<dl>
|
|
56972
57112
|
<dd>
|
|
56973
57113
|
|
|
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.
|
|
57114
|
+
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
57115
|
</dd>
|
|
56976
57116
|
</dl>
|
|
56977
57117
|
</dd>
|
|
@@ -57400,7 +57540,7 @@ client.account.members_remove(user_id: "userId")
|
|
|
57400
57540
|
<dl>
|
|
57401
57541
|
<dd>
|
|
57402
57542
|
|
|
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.
|
|
57543
|
+
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
57544
|
</dd>
|
|
57405
57545
|
</dl>
|
|
57406
57546
|
</dd>
|
|
@@ -57815,7 +57955,7 @@ client.account.locale_set(locale: "en")
|
|
|
57815
57955
|
<dl>
|
|
57816
57956
|
<dd>
|
|
57817
57957
|
|
|
57818
|
-
Create a company with the caller as its owner and payer, seed its chart of accounts from the template of `countryCode`, and make it the active company of the session. `timeZone` defaults to the country's, `isVatPayer` to true and `defaultInvoiceCurrency` to the base currency. Refused with 422 when `baseCurrency` is not a supported currency.
|
|
57958
|
+
Create a company with the caller as its owner and payer, seed its chart of accounts from the template of `countryCode`, and make it the active company of the session. `timeZone` defaults to the country's, `isVatPayer` to true and `defaultInvoiceCurrency` to the base currency. Without a paid plan the caller may create only one sandbox company, which starts the free sandbox plan; a live company, a second sandbox company, or a sandbox company after the free sandbox has ended is refused with 402. Refused with 422 when `baseCurrency` is not a supported currency.
|
|
57819
57959
|
</dd>
|
|
57820
57960
|
</dl>
|
|
57821
57961
|
</dd>
|
|
@@ -58125,7 +58265,7 @@ client.account.companies_create(name: "name")
|
|
|
58125
58265
|
<dl>
|
|
58126
58266
|
<dd>
|
|
58127
58267
|
|
|
58128
|
-
**is_sandbox:** `Internal::Types::Boolean` — Sandbox companies hold test data and are purged immediately on delete
|
|
58268
|
+
**is_sandbox:** `Internal::Types::Boolean` — Sandbox companies hold test data and are purged immediately on delete; `companies/convert-to-live` turns one into a live company
|
|
58129
58269
|
|
|
58130
58270
|
</dd>
|
|
58131
58271
|
</dl>
|
|
@@ -58715,6 +58855,68 @@ client.account.companies_delete(company_id: "companyId")
|
|
|
58715
58855
|
</dl>
|
|
58716
58856
|
|
|
58717
58857
|
|
|
58858
|
+
</dd>
|
|
58859
|
+
</dl>
|
|
58860
|
+
</details>
|
|
58861
|
+
|
|
58862
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">companies_convert_to_live</a>(request) -> Nordlet::Account::Types::CompaniesConvertToLiveAccountResponse</code></summary>
|
|
58863
|
+
<dl>
|
|
58864
|
+
<dd>
|
|
58865
|
+
|
|
58866
|
+
#### 📝 Description
|
|
58867
|
+
|
|
58868
|
+
<dl>
|
|
58869
|
+
<dd>
|
|
58870
|
+
|
|
58871
|
+
<dl>
|
|
58872
|
+
<dd>
|
|
58873
|
+
|
|
58874
|
+
Turn the sandbox company `companyId` into a live company and keep all of its data: from then on its filings go to the authorities' production systems and a delete is no longer purged at once. The caller must be the company's owner and payer and have a paid plan (a flat-rate subscription or per-request billing). Refused with 403 when the caller is not the owner or not the payer, 409 when the company is not a sandbox company and 402 when the caller has no paid plan.
|
|
58875
|
+
</dd>
|
|
58876
|
+
</dl>
|
|
58877
|
+
</dd>
|
|
58878
|
+
</dl>
|
|
58879
|
+
|
|
58880
|
+
#### 🔌 Usage
|
|
58881
|
+
|
|
58882
|
+
<dl>
|
|
58883
|
+
<dd>
|
|
58884
|
+
|
|
58885
|
+
<dl>
|
|
58886
|
+
<dd>
|
|
58887
|
+
|
|
58888
|
+
```ruby
|
|
58889
|
+
client.account.companies_convert_to_live(company_id: "companyId")
|
|
58890
|
+
```
|
|
58891
|
+
</dd>
|
|
58892
|
+
</dl>
|
|
58893
|
+
</dd>
|
|
58894
|
+
</dl>
|
|
58895
|
+
|
|
58896
|
+
#### ⚙️ Parameters
|
|
58897
|
+
|
|
58898
|
+
<dl>
|
|
58899
|
+
<dd>
|
|
58900
|
+
|
|
58901
|
+
<dl>
|
|
58902
|
+
<dd>
|
|
58903
|
+
|
|
58904
|
+
**company_id:** `String`
|
|
58905
|
+
|
|
58906
|
+
</dd>
|
|
58907
|
+
</dl>
|
|
58908
|
+
|
|
58909
|
+
<dl>
|
|
58910
|
+
<dd>
|
|
58911
|
+
|
|
58912
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
58913
|
+
|
|
58914
|
+
</dd>
|
|
58915
|
+
</dl>
|
|
58916
|
+
</dd>
|
|
58917
|
+
</dl>
|
|
58918
|
+
|
|
58919
|
+
|
|
58718
58920
|
</dd>
|
|
58719
58921
|
</dl>
|
|
58720
58922
|
</details>
|
|
@@ -58793,7 +58995,7 @@ client.account.companies_activate(company_id: "companyId")
|
|
|
58793
58995
|
<dl>
|
|
58794
58996
|
<dd>
|
|
58795
58997
|
|
|
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.
|
|
58998
|
+
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
58999
|
</dd>
|
|
58798
59000
|
</dl>
|
|
58799
59001
|
</dd>
|
|
@@ -58871,7 +59073,7 @@ client.account.api_keys_create(name: "name")
|
|
|
58871
59073
|
<dl>
|
|
58872
59074
|
<dd>
|
|
58873
59075
|
|
|
58874
|
-
List the signed-in person's API keys, including expired and revoked ones.
|
|
59076
|
+
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
59077
|
</dd>
|
|
58876
59078
|
</dl>
|
|
58877
59079
|
</dd>
|
|
@@ -58925,7 +59127,7 @@ client.account.api_keys_list
|
|
|
58925
59127
|
<dl>
|
|
58926
59128
|
<dd>
|
|
58927
59129
|
|
|
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.
|
|
59130
|
+
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
59131
|
</dd>
|
|
58930
59132
|
</dl>
|
|
58931
59133
|
</dd>
|
|
@@ -59200,7 +59402,7 @@ client.account.profile_update
|
|
|
59200
59402
|
<dl>
|
|
59201
59403
|
<dd>
|
|
59202
59404
|
|
|
59203
|
-
Send a confirmation link to `newEmail
|
|
59405
|
+
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
59406
|
</dd>
|
|
59205
59407
|
</dl>
|
|
59206
59408
|
</dd>
|
|
@@ -59270,7 +59472,7 @@ client.account.email_change_request(new_email: "newEmail")
|
|
|
59270
59472
|
<dl>
|
|
59271
59473
|
<dd>
|
|
59272
59474
|
|
|
59273
|
-
List the signed-in user's sessions that have not expired
|
|
59475
|
+
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
59476
|
</dd>
|
|
59275
59477
|
</dl>
|
|
59276
59478
|
</dd>
|
|
@@ -59440,7 +59642,7 @@ client.account.sessions_revoke_others
|
|
|
59440
59642
|
<dl>
|
|
59441
59643
|
<dd>
|
|
59442
59644
|
|
|
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
|
|
59645
|
+
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
59646
|
</dd>
|
|
59445
59647
|
</dl>
|
|
59446
59648
|
</dd>
|
|
@@ -60208,3 +60410,359 @@ client.account.oauth_authorize_deny(client_id: "clientId")
|
|
|
60208
60410
|
</dl>
|
|
60209
60411
|
</details>
|
|
60210
60412
|
|
|
60413
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_get</a>(request) -> Nordlet::Account::Types::TwoFactorGetAccountResponse</code></summary>
|
|
60414
|
+
<dl>
|
|
60415
|
+
<dd>
|
|
60416
|
+
|
|
60417
|
+
#### 📝 Description
|
|
60418
|
+
|
|
60419
|
+
<dl>
|
|
60420
|
+
<dd>
|
|
60421
|
+
|
|
60422
|
+
<dl>
|
|
60423
|
+
<dd>
|
|
60424
|
+
|
|
60425
|
+
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`.
|
|
60426
|
+
</dd>
|
|
60427
|
+
</dl>
|
|
60428
|
+
</dd>
|
|
60429
|
+
</dl>
|
|
60430
|
+
|
|
60431
|
+
#### 🔌 Usage
|
|
60432
|
+
|
|
60433
|
+
<dl>
|
|
60434
|
+
<dd>
|
|
60435
|
+
|
|
60436
|
+
<dl>
|
|
60437
|
+
<dd>
|
|
60438
|
+
|
|
60439
|
+
```ruby
|
|
60440
|
+
client.account.two_factor_get
|
|
60441
|
+
```
|
|
60442
|
+
</dd>
|
|
60443
|
+
</dl>
|
|
60444
|
+
</dd>
|
|
60445
|
+
</dl>
|
|
60446
|
+
|
|
60447
|
+
#### ⚙️ Parameters
|
|
60448
|
+
|
|
60449
|
+
<dl>
|
|
60450
|
+
<dd>
|
|
60451
|
+
|
|
60452
|
+
<dl>
|
|
60453
|
+
<dd>
|
|
60454
|
+
|
|
60455
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
60456
|
+
|
|
60457
|
+
</dd>
|
|
60458
|
+
</dl>
|
|
60459
|
+
</dd>
|
|
60460
|
+
</dl>
|
|
60461
|
+
|
|
60462
|
+
|
|
60463
|
+
</dd>
|
|
60464
|
+
</dl>
|
|
60465
|
+
</details>
|
|
60466
|
+
|
|
60467
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_setup</a>(request) -> Nordlet::Account::Types::TwoFactorSetupAccountResponse</code></summary>
|
|
60468
|
+
<dl>
|
|
60469
|
+
<dd>
|
|
60470
|
+
|
|
60471
|
+
#### 📝 Description
|
|
60472
|
+
|
|
60473
|
+
<dl>
|
|
60474
|
+
<dd>
|
|
60475
|
+
|
|
60476
|
+
<dl>
|
|
60477
|
+
<dd>
|
|
60478
|
+
|
|
60479
|
+
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.
|
|
60480
|
+
</dd>
|
|
60481
|
+
</dl>
|
|
60482
|
+
</dd>
|
|
60483
|
+
</dl>
|
|
60484
|
+
|
|
60485
|
+
#### 🔌 Usage
|
|
60486
|
+
|
|
60487
|
+
<dl>
|
|
60488
|
+
<dd>
|
|
60489
|
+
|
|
60490
|
+
<dl>
|
|
60491
|
+
<dd>
|
|
60492
|
+
|
|
60493
|
+
```ruby
|
|
60494
|
+
client.account.two_factor_setup
|
|
60495
|
+
```
|
|
60496
|
+
</dd>
|
|
60497
|
+
</dl>
|
|
60498
|
+
</dd>
|
|
60499
|
+
</dl>
|
|
60500
|
+
|
|
60501
|
+
#### ⚙️ Parameters
|
|
60502
|
+
|
|
60503
|
+
<dl>
|
|
60504
|
+
<dd>
|
|
60505
|
+
|
|
60506
|
+
<dl>
|
|
60507
|
+
<dd>
|
|
60508
|
+
|
|
60509
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
60510
|
+
|
|
60511
|
+
</dd>
|
|
60512
|
+
</dl>
|
|
60513
|
+
</dd>
|
|
60514
|
+
</dl>
|
|
60515
|
+
|
|
60516
|
+
|
|
60517
|
+
</dd>
|
|
60518
|
+
</dl>
|
|
60519
|
+
</details>
|
|
60520
|
+
|
|
60521
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_enable</a>(request) -> Nordlet::Account::Types::TwoFactorEnableAccountResponse</code></summary>
|
|
60522
|
+
<dl>
|
|
60523
|
+
<dd>
|
|
60524
|
+
|
|
60525
|
+
#### 📝 Description
|
|
60526
|
+
|
|
60527
|
+
<dl>
|
|
60528
|
+
<dd>
|
|
60529
|
+
|
|
60530
|
+
<dl>
|
|
60531
|
+
<dd>
|
|
60532
|
+
|
|
60533
|
+
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).
|
|
60534
|
+
</dd>
|
|
60535
|
+
</dl>
|
|
60536
|
+
</dd>
|
|
60537
|
+
</dl>
|
|
60538
|
+
|
|
60539
|
+
#### 🔌 Usage
|
|
60540
|
+
|
|
60541
|
+
<dl>
|
|
60542
|
+
<dd>
|
|
60543
|
+
|
|
60544
|
+
<dl>
|
|
60545
|
+
<dd>
|
|
60546
|
+
|
|
60547
|
+
```ruby
|
|
60548
|
+
client.account.two_factor_enable(code: "code")
|
|
60549
|
+
```
|
|
60550
|
+
</dd>
|
|
60551
|
+
</dl>
|
|
60552
|
+
</dd>
|
|
60553
|
+
</dl>
|
|
60554
|
+
|
|
60555
|
+
#### ⚙️ Parameters
|
|
60556
|
+
|
|
60557
|
+
<dl>
|
|
60558
|
+
<dd>
|
|
60559
|
+
|
|
60560
|
+
<dl>
|
|
60561
|
+
<dd>
|
|
60562
|
+
|
|
60563
|
+
**code:** `String`
|
|
60564
|
+
|
|
60565
|
+
</dd>
|
|
60566
|
+
</dl>
|
|
60567
|
+
|
|
60568
|
+
<dl>
|
|
60569
|
+
<dd>
|
|
60570
|
+
|
|
60571
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
60572
|
+
|
|
60573
|
+
</dd>
|
|
60574
|
+
</dl>
|
|
60575
|
+
</dd>
|
|
60576
|
+
</dl>
|
|
60577
|
+
|
|
60578
|
+
|
|
60579
|
+
</dd>
|
|
60580
|
+
</dl>
|
|
60581
|
+
</details>
|
|
60582
|
+
|
|
60583
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_verify</a>(request) -> Nordlet::Account::Types::TwoFactorVerifyAccountResponse</code></summary>
|
|
60584
|
+
<dl>
|
|
60585
|
+
<dd>
|
|
60586
|
+
|
|
60587
|
+
#### 📝 Description
|
|
60588
|
+
|
|
60589
|
+
<dl>
|
|
60590
|
+
<dd>
|
|
60591
|
+
|
|
60592
|
+
<dl>
|
|
60593
|
+
<dd>
|
|
60594
|
+
|
|
60595
|
+
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.
|
|
60596
|
+
</dd>
|
|
60597
|
+
</dl>
|
|
60598
|
+
</dd>
|
|
60599
|
+
</dl>
|
|
60600
|
+
|
|
60601
|
+
#### 🔌 Usage
|
|
60602
|
+
|
|
60603
|
+
<dl>
|
|
60604
|
+
<dd>
|
|
60605
|
+
|
|
60606
|
+
<dl>
|
|
60607
|
+
<dd>
|
|
60608
|
+
|
|
60609
|
+
```ruby
|
|
60610
|
+
client.account.two_factor_verify(code: "code")
|
|
60611
|
+
```
|
|
60612
|
+
</dd>
|
|
60613
|
+
</dl>
|
|
60614
|
+
</dd>
|
|
60615
|
+
</dl>
|
|
60616
|
+
|
|
60617
|
+
#### ⚙️ Parameters
|
|
60618
|
+
|
|
60619
|
+
<dl>
|
|
60620
|
+
<dd>
|
|
60621
|
+
|
|
60622
|
+
<dl>
|
|
60623
|
+
<dd>
|
|
60624
|
+
|
|
60625
|
+
**code:** `String`
|
|
60626
|
+
|
|
60627
|
+
</dd>
|
|
60628
|
+
</dl>
|
|
60629
|
+
|
|
60630
|
+
<dl>
|
|
60631
|
+
<dd>
|
|
60632
|
+
|
|
60633
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
60634
|
+
|
|
60635
|
+
</dd>
|
|
60636
|
+
</dl>
|
|
60637
|
+
</dd>
|
|
60638
|
+
</dl>
|
|
60639
|
+
|
|
60640
|
+
|
|
60641
|
+
</dd>
|
|
60642
|
+
</dl>
|
|
60643
|
+
</details>
|
|
60644
|
+
|
|
60645
|
+
<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>
|
|
60646
|
+
<dl>
|
|
60647
|
+
<dd>
|
|
60648
|
+
|
|
60649
|
+
#### 📝 Description
|
|
60650
|
+
|
|
60651
|
+
<dl>
|
|
60652
|
+
<dd>
|
|
60653
|
+
|
|
60654
|
+
<dl>
|
|
60655
|
+
<dd>
|
|
60656
|
+
|
|
60657
|
+
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.
|
|
60658
|
+
</dd>
|
|
60659
|
+
</dl>
|
|
60660
|
+
</dd>
|
|
60661
|
+
</dl>
|
|
60662
|
+
|
|
60663
|
+
#### 🔌 Usage
|
|
60664
|
+
|
|
60665
|
+
<dl>
|
|
60666
|
+
<dd>
|
|
60667
|
+
|
|
60668
|
+
<dl>
|
|
60669
|
+
<dd>
|
|
60670
|
+
|
|
60671
|
+
```ruby
|
|
60672
|
+
client.account.two_factor_recovery_codes_regenerate(code: "code")
|
|
60673
|
+
```
|
|
60674
|
+
</dd>
|
|
60675
|
+
</dl>
|
|
60676
|
+
</dd>
|
|
60677
|
+
</dl>
|
|
60678
|
+
|
|
60679
|
+
#### ⚙️ Parameters
|
|
60680
|
+
|
|
60681
|
+
<dl>
|
|
60682
|
+
<dd>
|
|
60683
|
+
|
|
60684
|
+
<dl>
|
|
60685
|
+
<dd>
|
|
60686
|
+
|
|
60687
|
+
**code:** `String`
|
|
60688
|
+
|
|
60689
|
+
</dd>
|
|
60690
|
+
</dl>
|
|
60691
|
+
|
|
60692
|
+
<dl>
|
|
60693
|
+
<dd>
|
|
60694
|
+
|
|
60695
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
60696
|
+
|
|
60697
|
+
</dd>
|
|
60698
|
+
</dl>
|
|
60699
|
+
</dd>
|
|
60700
|
+
</dl>
|
|
60701
|
+
|
|
60702
|
+
|
|
60703
|
+
</dd>
|
|
60704
|
+
</dl>
|
|
60705
|
+
</details>
|
|
60706
|
+
|
|
60707
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_disable</a>(request) -> Nordlet::Account::Types::TwoFactorDisableAccountResponse</code></summary>
|
|
60708
|
+
<dl>
|
|
60709
|
+
<dd>
|
|
60710
|
+
|
|
60711
|
+
#### 📝 Description
|
|
60712
|
+
|
|
60713
|
+
<dl>
|
|
60714
|
+
<dd>
|
|
60715
|
+
|
|
60716
|
+
<dl>
|
|
60717
|
+
<dd>
|
|
60718
|
+
|
|
60719
|
+
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.
|
|
60720
|
+
</dd>
|
|
60721
|
+
</dl>
|
|
60722
|
+
</dd>
|
|
60723
|
+
</dl>
|
|
60724
|
+
|
|
60725
|
+
#### 🔌 Usage
|
|
60726
|
+
|
|
60727
|
+
<dl>
|
|
60728
|
+
<dd>
|
|
60729
|
+
|
|
60730
|
+
<dl>
|
|
60731
|
+
<dd>
|
|
60732
|
+
|
|
60733
|
+
```ruby
|
|
60734
|
+
client.account.two_factor_disable(code: "code")
|
|
60735
|
+
```
|
|
60736
|
+
</dd>
|
|
60737
|
+
</dl>
|
|
60738
|
+
</dd>
|
|
60739
|
+
</dl>
|
|
60740
|
+
|
|
60741
|
+
#### ⚙️ Parameters
|
|
60742
|
+
|
|
60743
|
+
<dl>
|
|
60744
|
+
<dd>
|
|
60745
|
+
|
|
60746
|
+
<dl>
|
|
60747
|
+
<dd>
|
|
60748
|
+
|
|
60749
|
+
**code:** `String`
|
|
60750
|
+
|
|
60751
|
+
</dd>
|
|
60752
|
+
</dl>
|
|
60753
|
+
|
|
60754
|
+
<dl>
|
|
60755
|
+
<dd>
|
|
60756
|
+
|
|
60757
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
60758
|
+
|
|
60759
|
+
</dd>
|
|
60760
|
+
</dl>
|
|
60761
|
+
</dd>
|
|
60762
|
+
</dl>
|
|
60763
|
+
|
|
60764
|
+
|
|
60765
|
+
</dd>
|
|
60766
|
+
</dl>
|
|
60767
|
+
</details>
|
|
60768
|
+
|