@faable/auth-sdk 2.7.82 → 2.7.83

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.
@@ -2126,7 +2126,23 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2126
2126
  readonly is_using_default_credentials: boolean;
2127
2127
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
2128
2128
  password_policy?: {
2129
- level: "none" | "low" | "fair" | "good" | "excellent";
2129
+ level: "none" | "low" | "fair" | "good" | "excellent"; /**
2130
+ * `GET /teammember` — operationId: `teammember/list`
2131
+ *
2132
+ * List Teammembers
2133
+ *
2134
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
2135
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2136
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
2137
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2138
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2139
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2140
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2141
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2142
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2143
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2144
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2145
+ */
2130
2146
  min_length?: number | undefined;
2131
2147
  require_lowercase?: boolean | undefined;
2132
2148
  require_uppercase?: boolean | undefined;
@@ -2166,7 +2182,23 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2166
2182
  readonly is_using_default_credentials: boolean;
2167
2183
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
2168
2184
  password_policy?: {
2169
- level: "none" | "low" | "fair" | "good" | "excellent";
2185
+ level: "none" | "low" | "fair" | "good" | "excellent"; /**
2186
+ * `GET /teammember` — operationId: `teammember/list`
2187
+ *
2188
+ * List Teammembers
2189
+ *
2190
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
2191
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2192
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
2193
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2194
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2195
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2196
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2197
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2198
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2199
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2200
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2201
+ */
2170
2202
  min_length?: number | undefined;
2171
2203
  require_lowercase?: boolean | undefined;
2172
2204
  require_uppercase?: boolean | undefined;
@@ -2209,7 +2241,23 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2209
2241
  readonly is_using_default_credentials: boolean;
2210
2242
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
2211
2243
  password_policy?: {
2212
- level: "none" | "low" | "fair" | "good" | "excellent";
2244
+ level: "none" | "low" | "fair" | "good" | "excellent"; /**
2245
+ * `GET /teammember` — operationId: `teammember/list`
2246
+ *
2247
+ * List Teammembers
2248
+ *
2249
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
2250
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2251
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
2252
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2253
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2254
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2255
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2256
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2257
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2258
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2259
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2260
+ */
2213
2261
  min_length?: number | undefined;
2214
2262
  require_lowercase?: boolean | undefined;
2215
2263
  require_uppercase?: boolean | undefined;
@@ -4501,6 +4549,49 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4501
4549
  slug: string;
4502
4550
  description: string | null;
4503
4551
  logo_url: string | null;
4552
+ domains: {
4553
+ domain: string;
4554
+ verification_token: string;
4555
+ verified_at: string | null;
4556
+ }[];
4557
+ admins: string[];
4558
+ account: string;
4559
+ metadata: {
4560
+ [key: string]: unknown;
4561
+ };
4562
+ createdAt: string;
4563
+ updatedAt?: string | undefined;
4564
+ }>;
4565
+ /**
4566
+ * `POST /organization/{organization_id}/domain` — operationId: `organization/addDomain`
4567
+ *
4568
+ * Claim an email domain for an Organization
4569
+ *
4570
+ * Adds the domain unverified, with the `verification_token` its TXT record must hold. Idempotent. Nothing changes for anyone until the domain is verified.
4571
+ *
4572
+ * @throws {FaableApiError} `invalid_email_domain` (400) — Not an email domain this organization can claim: it must be a plain domain name (`acme.com`), lowercase, without scheme, path or wildcard.
4573
+ * @throws {FaableApiError} `public_email_domain` (400) — A public email provider (gmail.com, outlook.com…) cannot belong to an organization: anyone can have an address there.
4574
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4575
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4576
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4577
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4578
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4579
+ * @throws {FaableApiError} `organization_not_found` (404) — No organization with that id in this account.
4580
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4581
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4582
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4583
+ */
4584
+ organizationAddDomain(organization_id: string, data: OpBody<"organization/addDomain">): Promise<{
4585
+ id: string;
4586
+ name: string;
4587
+ slug: string;
4588
+ description: string | null;
4589
+ logo_url: string | null;
4590
+ domains: {
4591
+ domain: string;
4592
+ verification_token: string;
4593
+ verified_at: string | null;
4594
+ }[];
4504
4595
  admins: string[];
4505
4596
  account: string;
4506
4597
  metadata: {
@@ -4530,6 +4621,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4530
4621
  slug: string;
4531
4622
  description: string | null;
4532
4623
  logo_url: string | null;
4624
+ domains: {
4625
+ domain: string;
4626
+ verification_token: string;
4627
+ verified_at: string | null;
4628
+ }[];
4533
4629
  admins: string[];
4534
4630
  account: string;
4535
4631
  metadata: {
@@ -4560,6 +4656,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4560
4656
  slug: string;
4561
4657
  description: string | null;
4562
4658
  logo_url: string | null;
4659
+ domains: {
4660
+ domain: string;
4661
+ verification_token: string;
4662
+ verified_at: string | null;
4663
+ }[];
4563
4664
  admins: string[];
4564
4665
  account: string;
4565
4666
  metadata: {
@@ -4591,6 +4692,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4591
4692
  slug: string;
4592
4693
  description: string | null;
4593
4694
  logo_url: string | null;
4695
+ domains: {
4696
+ domain: string;
4697
+ verification_token: string;
4698
+ verified_at: string | null;
4699
+ }[];
4594
4700
  admins: string[];
4595
4701
  account: string;
4596
4702
  metadata: {
@@ -4623,6 +4729,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4623
4729
  slug: string;
4624
4730
  description: string | null;
4625
4731
  logo_url: string | null;
4732
+ domains: {
4733
+ domain: string;
4734
+ verification_token: string;
4735
+ verified_at: string | null;
4736
+ }[];
4626
4737
  admins: string[];
4627
4738
  account: string;
4628
4739
  metadata: {
@@ -4637,6 +4748,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4637
4748
  slug: string;
4638
4749
  description: string | null;
4639
4750
  logo_url: string | null;
4751
+ domains: {
4752
+ domain: string;
4753
+ verification_token: string;
4754
+ verified_at: string | null;
4755
+ }[];
4640
4756
  admins: string[];
4641
4757
  account: string;
4642
4758
  metadata: {
@@ -4654,6 +4770,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4654
4770
  slug: string;
4655
4771
  description: string | null;
4656
4772
  logo_url: string | null;
4773
+ domains: {
4774
+ domain: string;
4775
+ verification_token: string;
4776
+ verified_at: string | null;
4777
+ }[];
4657
4778
  admins: string[];
4658
4779
  account: string;
4659
4780
  metadata: {
@@ -4688,6 +4809,48 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4688
4809
  slug: string;
4689
4810
  description: string | null;
4690
4811
  logo_url: string | null;
4812
+ domains: {
4813
+ domain: string;
4814
+ verification_token: string;
4815
+ verified_at: string | null;
4816
+ }[];
4817
+ admins: string[];
4818
+ account: string;
4819
+ metadata: {
4820
+ [key: string]: unknown;
4821
+ };
4822
+ createdAt: string;
4823
+ updatedAt?: string | undefined;
4824
+ }>;
4825
+ /**
4826
+ * `DELETE /organization/{organization_id}/domain/{domain}` — operationId: `organization/removeDomain`
4827
+ *
4828
+ * Remove an email domain from an Organization
4829
+ *
4830
+ * Removes the domain, verified or not. Logins of people already in the organization are unaffected.
4831
+ *
4832
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4833
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4834
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4835
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4836
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4837
+ * @throws {FaableApiError} `organization_not_found` (404) — No organization with that id in this account.
4838
+ * @throws {FaableApiError} `organization_domain_not_found` (404) — The organization has no such domain.
4839
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4840
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4841
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4842
+ */
4843
+ organizationRemoveDomain(organization_id: string, domain: string): Promise<{
4844
+ id: string;
4845
+ name: string;
4846
+ slug: string;
4847
+ description: string | null;
4848
+ logo_url: string | null;
4849
+ domains: {
4850
+ domain: string;
4851
+ verification_token: string;
4852
+ verified_at: string | null;
4853
+ }[];
4691
4854
  admins: string[];
4692
4855
  account: string;
4693
4856
  metadata: {
@@ -4719,6 +4882,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4719
4882
  slug: string;
4720
4883
  description: string | null;
4721
4884
  logo_url: string | null;
4885
+ domains: {
4886
+ domain: string;
4887
+ verification_token: string;
4888
+ verified_at: string | null;
4889
+ }[];
4722
4890
  admins: string[];
4723
4891
  account: string;
4724
4892
  metadata: {
@@ -4727,6 +4895,58 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4727
4895
  createdAt: string;
4728
4896
  updatedAt?: string | undefined;
4729
4897
  }>;
4898
+ /**
4899
+ * `POST /organization/{organization_id}/domain/{domain}/verify` — operationId: `organization/verifyDomain`
4900
+ *
4901
+ * Verify an Organization's email domain
4902
+ *
4903
+ * Looks up the TXT record `_faable-challenge.<domain>` and, when it holds `faable-verification=<verification_token>`, marks the domain verified. Pro plan (`plan_required`; `plan_unavailable` when the plan cannot be checked). A domain is verified by one organization of the tenant at most (`organization_domain_taken`).
4904
+ *
4905
+ * @throws {FaableApiError} `organization_domain_unverified` (400) — The TXT record was not found or does not hold the expected value yet. `details.record` says what was expected and what resolves now; DNS can take a few minutes to propagate.
4906
+ * @throws {FaableApiError} `invalid_email_domain` (400) — Not an email domain this organization can claim: it must be a plain domain name (`acme.com`), lowercase, without scheme, path or wildcard.
4907
+ * @throws {FaableApiError} `public_email_domain` (400) — A public email provider (gmail.com, outlook.com…) cannot belong to an organization: anyone can have an address there.
4908
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4909
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4910
+ * @throws {FaableApiError} `plan_required` (402) — The setting requires a higher plan. `message` says which.
4911
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4912
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4913
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4914
+ * @throws {FaableApiError} `organization_not_found` (404) — No organization with that id in this account.
4915
+ * @throws {FaableApiError} `organization_domain_not_found` (404) — The organization has no such domain.
4916
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4917
+ * @throws {FaableApiError} `organization_domain_taken` (409) — Another organization of this tenant already verified this domain. A domain belongs to one organization.
4918
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4919
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4920
+ * @throws {FaableApiError} `plan_unavailable` (503) — The plan could not be checked right now, and this setting is only for paid plans. Try again in a minute.
4921
+ */
4922
+ organizationVerifyDomain(organization_id: string, domain: string): Promise<{
4923
+ organization: {
4924
+ id: string;
4925
+ name: string;
4926
+ slug: string;
4927
+ description: string | null;
4928
+ logo_url: string | null;
4929
+ domains: {
4930
+ domain: string;
4931
+ verification_token: string;
4932
+ verified_at: string | null;
4933
+ }[];
4934
+ admins: string[];
4935
+ account: string;
4936
+ metadata: {
4937
+ [key: string]: unknown;
4938
+ };
4939
+ createdAt: string;
4940
+ updatedAt?: string | undefined;
4941
+ };
4942
+ record: {
4943
+ type: "TXT";
4944
+ host: string;
4945
+ expected: string;
4946
+ observed: string[];
4947
+ ok: boolean;
4948
+ } | null;
4949
+ }>;
4730
4950
  /**
4731
4951
  * `POST /role/{role_id}/users` — operationId: `role/assign_users`
4732
4952
  *
@@ -1556,6 +1556,29 @@ export class GeneratedFaableAuthApi extends FaableApi {
1556
1556
  requireId("organization_id", organization_id);
1557
1557
  return this.fetcher.post(`/organization/${organization_id}/admin`, data);
1558
1558
  }
1559
+ /**
1560
+ * `POST /organization/{organization_id}/domain` — operationId: `organization/addDomain`
1561
+ *
1562
+ * Claim an email domain for an Organization
1563
+ *
1564
+ * Adds the domain unverified, with the `verification_token` its TXT record must hold. Idempotent. Nothing changes for anyone until the domain is verified.
1565
+ *
1566
+ * @throws {FaableApiError} `invalid_email_domain` (400) — Not an email domain this organization can claim: it must be a plain domain name (`acme.com`), lowercase, without scheme, path or wildcard.
1567
+ * @throws {FaableApiError} `public_email_domain` (400) — A public email provider (gmail.com, outlook.com…) cannot belong to an organization: anyone can have an address there.
1568
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1569
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1570
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1571
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1572
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1573
+ * @throws {FaableApiError} `organization_not_found` (404) — No organization with that id in this account.
1574
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1575
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1576
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1577
+ */
1578
+ organizationAddDomain(organization_id, data) {
1579
+ requireId("organization_id", organization_id);
1580
+ return this.fetcher.post(`/organization/${organization_id}/domain`, data);
1581
+ }
1559
1582
  /**
1560
1583
  * `POST /organization` — operationId: `organization/create`
1561
1584
  *
@@ -1659,6 +1682,29 @@ export class GeneratedFaableAuthApi extends FaableApi {
1659
1682
  requireId("user_id", user_id);
1660
1683
  return this.fetcher.delete(`/organization/${organization_id}/admin/${user_id}`);
1661
1684
  }
1685
+ /**
1686
+ * `DELETE /organization/{organization_id}/domain/{domain}` — operationId: `organization/removeDomain`
1687
+ *
1688
+ * Remove an email domain from an Organization
1689
+ *
1690
+ * Removes the domain, verified or not. Logins of people already in the organization are unaffected.
1691
+ *
1692
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1693
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1694
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1695
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1696
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1697
+ * @throws {FaableApiError} `organization_not_found` (404) — No organization with that id in this account.
1698
+ * @throws {FaableApiError} `organization_domain_not_found` (404) — The organization has no such domain.
1699
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1700
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1701
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1702
+ */
1703
+ organizationRemoveDomain(organization_id, domain) {
1704
+ requireId("organization_id", organization_id);
1705
+ requireId("domain", domain);
1706
+ return this.fetcher.delete(`/organization/${organization_id}/domain/${domain}`);
1707
+ }
1662
1708
  /**
1663
1709
  * `POST /organization/{organization_id}` — operationId: `organization/update`
1664
1710
  *
@@ -1680,6 +1726,35 @@ export class GeneratedFaableAuthApi extends FaableApi {
1680
1726
  requireId("organization_id", organization_id);
1681
1727
  return this.fetcher.post(`/organization/${organization_id}`, data);
1682
1728
  }
1729
+ /**
1730
+ * `POST /organization/{organization_id}/domain/{domain}/verify` — operationId: `organization/verifyDomain`
1731
+ *
1732
+ * Verify an Organization's email domain
1733
+ *
1734
+ * Looks up the TXT record `_faable-challenge.<domain>` and, when it holds `faable-verification=<verification_token>`, marks the domain verified. Pro plan (`plan_required`; `plan_unavailable` when the plan cannot be checked). A domain is verified by one organization of the tenant at most (`organization_domain_taken`).
1735
+ *
1736
+ * @throws {FaableApiError} `organization_domain_unverified` (400) — The TXT record was not found or does not hold the expected value yet. `details.record` says what was expected and what resolves now; DNS can take a few minutes to propagate.
1737
+ * @throws {FaableApiError} `invalid_email_domain` (400) — Not an email domain this organization can claim: it must be a plain domain name (`acme.com`), lowercase, without scheme, path or wildcard.
1738
+ * @throws {FaableApiError} `public_email_domain` (400) — A public email provider (gmail.com, outlook.com…) cannot belong to an organization: anyone can have an address there.
1739
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1740
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1741
+ * @throws {FaableApiError} `plan_required` (402) — The setting requires a higher plan. `message` says which.
1742
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1743
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1744
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1745
+ * @throws {FaableApiError} `organization_not_found` (404) — No organization with that id in this account.
1746
+ * @throws {FaableApiError} `organization_domain_not_found` (404) — The organization has no such domain.
1747
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1748
+ * @throws {FaableApiError} `organization_domain_taken` (409) — Another organization of this tenant already verified this domain. A domain belongs to one organization.
1749
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1750
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1751
+ * @throws {FaableApiError} `plan_unavailable` (503) — The plan could not be checked right now, and this setting is only for paid plans. Try again in a minute.
1752
+ */
1753
+ organizationVerifyDomain(organization_id, domain) {
1754
+ requireId("organization_id", organization_id);
1755
+ requireId("domain", domain);
1756
+ return this.fetcher.post(`/organization/${organization_id}/domain/${domain}/verify`, {});
1757
+ }
1683
1758
  /**
1684
1759
  * `POST /role/{role_id}/users` — operationId: `role/assign_users`
1685
1760
  *