From 65efccb1d01ffd54f053ceb56915f29e0a83c485 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Fri, 16 Aug 2024 14:50:28 -0700
Subject: [PATCH] SDK regeneration (#9)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
---
package.json | 2 +-
reference.md | 944 +++++++++++++++++-
src/Client.ts | 7 +
src/api/resources/index.ts | 1 +
src/api/resources/management/client/Client.ts | 51 +
src/api/resources/management/client/index.ts | 1 +
src/api/resources/management/index.ts | 2 +
.../resources/management/resources/index.ts | 8 +
.../resources/organizations/client/Client.ts | 293 ++++++
.../resources/organizations/client/index.ts | 1 +
.../OrganizationsListOrganizationsRequest.ts | 11 +
.../organizations/client/requests/index.ts | 1 +
.../resources/organizations/index.ts | 1 +
.../samlConnections/client/Client.ts | 297 ++++++
.../resources/samlConnections/client/index.ts | 1 +
...mlConnectionsListSamlConnectionsRequest.ts | 12 +
.../samlConnections/client/requests/index.ts | 1 +
.../resources/samlConnections/index.ts | 1 +
.../scimDirectories/client/Client.ts | 358 +++++++
.../resources/scimDirectories/client/index.ts | 1 +
...imDirectoriesListScimDirectoriesRequest.ts | 12 +
.../scimDirectories/client/requests/index.ts | 1 +
.../resources/scimDirectories/index.ts | 1 +
.../resources/setupUrls/client/Client.ts | 102 ++
.../resources/setupUrls/client/index.ts | 1 +
.../client/requests/CreateSetupUrlRequest.ts | 13 +
.../setupUrls/client/requests/index.ts | 1 +
.../management/resources/setupUrls/index.ts | 1 +
src/api/resources/saml/client/Client.ts | 14 +-
src/api/resources/scim/client/Client.ts | 18 +-
src/api/types/CreateOrganizationResponse.ts | 9 +
src/api/types/CreateSamlConnectionResponse.ts | 9 +
src/api/types/CreateScimDirectoryResponse.ts | 9 +
src/api/types/CreateSetupUrlResponse.ts | 7 +
src/api/types/GetOrganizationResponse.ts | 9 +
src/api/types/GetSamlConnectionResponse.ts | 9 +
src/api/types/GetScimDirectoryResponse.ts | 9 +
src/api/types/ListOrganizationsResponse.ts | 10 +
src/api/types/ListSamlConnectionsResponse.ts | 10 +
src/api/types/ListScimDirectoriesResponse.ts | 10 +
src/api/types/Organization.ts | 10 +
.../RotateScimDirectoryBearerTokenResponse.ts | 7 +
src/api/types/SamlConnection.ts | 14 +
src/api/types/ScimDirectory.ts | 12 +
src/api/types/UpdateOrganizationResponse.ts | 9 +
src/api/types/UpdateSamlConnectionResponse.ts | 9 +
src/api/types/UpdateScimDirectoryResponse.ts | 9 +
src/api/types/index.ts | 17 +
src/serialization/resources/index.ts | 1 +
.../resources/management/index.ts | 1 +
.../resources/management/resources/index.ts | 2 +
.../resources/setupUrls/client/index.ts | 1 +
.../client/requests/CreateSetupUrlRequest.ts | 24 +
.../setupUrls/client/requests/index.ts | 1 +
.../management/resources/setupUrls/index.ts | 1 +
.../types/CreateOrganizationResponse.ts | 21 +
.../types/CreateSamlConnectionResponse.ts | 21 +
.../types/CreateScimDirectoryResponse.ts | 21 +
.../types/CreateSetupUrlResponse.ts | 20 +
.../types/GetOrganizationResponse.ts | 21 +
.../types/GetSamlConnectionResponse.ts | 21 +
.../types/GetScimDirectoryResponse.ts | 21 +
.../types/ListOrganizationsResponse.ts | 23 +
.../types/ListSamlConnectionsResponse.ts | 23 +
.../types/ListScimDirectoriesResponse.ts | 23 +
src/serialization/types/Organization.ts | 24 +
.../RotateScimDirectoryBearerTokenResponse.ts | 20 +
src/serialization/types/SamlConnection.ts | 32 +
src/serialization/types/ScimDirectory.ts | 28 +
.../types/UpdateOrganizationResponse.ts | 21 +
.../types/UpdateSamlConnectionResponse.ts | 21 +
.../types/UpdateScimDirectoryResponse.ts | 21 +
src/serialization/types/index.ts | 17 +
yarn.lock | 22 +-
74 files changed, 2750 insertions(+), 38 deletions(-)
create mode 100644 src/api/resources/management/client/Client.ts
create mode 100644 src/api/resources/management/client/index.ts
create mode 100644 src/api/resources/management/index.ts
create mode 100644 src/api/resources/management/resources/index.ts
create mode 100644 src/api/resources/management/resources/organizations/client/Client.ts
create mode 100644 src/api/resources/management/resources/organizations/client/index.ts
create mode 100644 src/api/resources/management/resources/organizations/client/requests/OrganizationsListOrganizationsRequest.ts
create mode 100644 src/api/resources/management/resources/organizations/client/requests/index.ts
create mode 100644 src/api/resources/management/resources/organizations/index.ts
create mode 100644 src/api/resources/management/resources/samlConnections/client/Client.ts
create mode 100644 src/api/resources/management/resources/samlConnections/client/index.ts
create mode 100644 src/api/resources/management/resources/samlConnections/client/requests/SamlConnectionsListSamlConnectionsRequest.ts
create mode 100644 src/api/resources/management/resources/samlConnections/client/requests/index.ts
create mode 100644 src/api/resources/management/resources/samlConnections/index.ts
create mode 100644 src/api/resources/management/resources/scimDirectories/client/Client.ts
create mode 100644 src/api/resources/management/resources/scimDirectories/client/index.ts
create mode 100644 src/api/resources/management/resources/scimDirectories/client/requests/ScimDirectoriesListScimDirectoriesRequest.ts
create mode 100644 src/api/resources/management/resources/scimDirectories/client/requests/index.ts
create mode 100644 src/api/resources/management/resources/scimDirectories/index.ts
create mode 100644 src/api/resources/management/resources/setupUrls/client/Client.ts
create mode 100644 src/api/resources/management/resources/setupUrls/client/index.ts
create mode 100644 src/api/resources/management/resources/setupUrls/client/requests/CreateSetupUrlRequest.ts
create mode 100644 src/api/resources/management/resources/setupUrls/client/requests/index.ts
create mode 100644 src/api/resources/management/resources/setupUrls/index.ts
create mode 100644 src/api/types/CreateOrganizationResponse.ts
create mode 100644 src/api/types/CreateSamlConnectionResponse.ts
create mode 100644 src/api/types/CreateScimDirectoryResponse.ts
create mode 100644 src/api/types/CreateSetupUrlResponse.ts
create mode 100644 src/api/types/GetOrganizationResponse.ts
create mode 100644 src/api/types/GetSamlConnectionResponse.ts
create mode 100644 src/api/types/GetScimDirectoryResponse.ts
create mode 100644 src/api/types/ListOrganizationsResponse.ts
create mode 100644 src/api/types/ListSamlConnectionsResponse.ts
create mode 100644 src/api/types/ListScimDirectoriesResponse.ts
create mode 100644 src/api/types/Organization.ts
create mode 100644 src/api/types/RotateScimDirectoryBearerTokenResponse.ts
create mode 100644 src/api/types/SamlConnection.ts
create mode 100644 src/api/types/ScimDirectory.ts
create mode 100644 src/api/types/UpdateOrganizationResponse.ts
create mode 100644 src/api/types/UpdateSamlConnectionResponse.ts
create mode 100644 src/api/types/UpdateScimDirectoryResponse.ts
create mode 100644 src/serialization/resources/management/index.ts
create mode 100644 src/serialization/resources/management/resources/index.ts
create mode 100644 src/serialization/resources/management/resources/setupUrls/client/index.ts
create mode 100644 src/serialization/resources/management/resources/setupUrls/client/requests/CreateSetupUrlRequest.ts
create mode 100644 src/serialization/resources/management/resources/setupUrls/client/requests/index.ts
create mode 100644 src/serialization/resources/management/resources/setupUrls/index.ts
create mode 100644 src/serialization/types/CreateOrganizationResponse.ts
create mode 100644 src/serialization/types/CreateSamlConnectionResponse.ts
create mode 100644 src/serialization/types/CreateScimDirectoryResponse.ts
create mode 100644 src/serialization/types/CreateSetupUrlResponse.ts
create mode 100644 src/serialization/types/GetOrganizationResponse.ts
create mode 100644 src/serialization/types/GetSamlConnectionResponse.ts
create mode 100644 src/serialization/types/GetScimDirectoryResponse.ts
create mode 100644 src/serialization/types/ListOrganizationsResponse.ts
create mode 100644 src/serialization/types/ListSamlConnectionsResponse.ts
create mode 100644 src/serialization/types/ListScimDirectoriesResponse.ts
create mode 100644 src/serialization/types/Organization.ts
create mode 100644 src/serialization/types/RotateScimDirectoryBearerTokenResponse.ts
create mode 100644 src/serialization/types/SamlConnection.ts
create mode 100644 src/serialization/types/ScimDirectory.ts
create mode 100644 src/serialization/types/UpdateOrganizationResponse.ts
create mode 100644 src/serialization/types/UpdateSamlConnectionResponse.ts
create mode 100644 src/serialization/types/UpdateScimDirectoryResponse.ts
diff --git a/package.json b/package.json
index 217e9d6..3796f77 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ssoready",
- "version": "1.0.1",
+ "version": "1.1.0",
"private": false,
"repository": "https://github.com/ssoready/ssoready-typescript",
"license": "MIT",
diff --git a/reference.md b/reference.md
index 0b71095..47f4012 100644
--- a/reference.md
+++ b/reference.md
@@ -1,6 +1,729 @@
+## Management Organizations
+
+ ssoReady.management.organizations.listOrganizations({ ...params }) -> SSOReady.ListOrganizationsResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.organizations.listOrganizations();
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**request: `SSOReady.management.OrganizationsListOrganizationsRequest`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `Organizations.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.organizations.createOrganization({ ...params }) -> SSOReady.CreateOrganizationResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.organizations.createOrganization({});
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**request: `SSOReady.Organization`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `Organizations.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.organizations.getOrganization(id) -> SSOReady.GetOrganizationResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.organizations.getOrganization("id");
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**id: `string`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `Organizations.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.organizations.updateOrganization(id, { ...params }) -> SSOReady.UpdateOrganizationResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.organizations.updateOrganization("id", {});
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**id: `string`**
+
+
+
+
+
+
+
+-
+
+**request: `SSOReady.Organization`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `Organizations.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Management SamlConnections
+
+ ssoReady.management.samlConnections.listSamlConnections({ ...params }) -> SSOReady.ListSamlConnectionsResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.samlConnections.listSamlConnections();
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**request: `SSOReady.management.SamlConnectionsListSamlConnectionsRequest`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `SamlConnections.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.samlConnections.createSamlConnection({ ...params }) -> SSOReady.CreateSamlConnectionResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.samlConnections.createSamlConnection({});
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**request: `SSOReady.SamlConnection`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `SamlConnections.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.samlConnections.getSamlConnection(id) -> SSOReady.GetSamlConnectionResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.samlConnections.getSamlConnection("id");
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**id: `string`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `SamlConnections.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.samlConnections.updateSamlConnection(id, { ...params }) -> SSOReady.UpdateSamlConnectionResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.samlConnections.updateSamlConnection("id", {});
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**id: `string`**
+
+
+
+
+
+
+
+-
+
+**request: `SSOReady.SamlConnection`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `SamlConnections.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
## Saml
- ssoReady.saml.redeemSamlAccessCode({ ...params }) -> SSOReady.RedeemSamlAccessCodeResponse
+ ssoReady.saml.redeemSamlAccessCode({ ...params }) -> SSOReady.RedeemSamlAccessCodeResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.saml.redeemSamlAccessCode({
+ samlAccessCode: "saml_access_code_...",
+});
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**request: `SSOReady.RedeemSamlAccessCodeRequest`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `Saml.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.saml.getSamlRedirectUrl({ ...params }) -> SSOReady.GetSamlRedirectUrlResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.saml.getSamlRedirectUrl({
+ organizationExternalId: "my_custom_external_id",
+});
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**request: `SSOReady.GetSamlRedirectUrlRequest`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `Saml.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Management ScimDirectories
+
+ ssoReady.management.scimDirectories.listScimDirectories({ ...params }) -> SSOReady.ListScimDirectoriesResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.scimDirectories.listScimDirectories();
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**request: `SSOReady.management.ScimDirectoriesListScimDirectoriesRequest`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `ScimDirectories.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.scimDirectories.createScimDirectory({ ...params }) -> SSOReady.CreateScimDirectoryResponse
@@ -17,9 +740,7 @@
-
```ts
-await ssoReady.saml.redeemSamlAccessCode({
- samlAccessCode: "saml_access_code_...",
-});
+await ssoReady.management.scimDirectories.createScimDirectory({});
```
@@ -40,7 +761,7 @@ await ssoReady.saml.redeemSamlAccessCode({
-
-**request: `SSOReady.RedeemSamlAccessCodeRequest`**
+**request: `SSOReady.ScimDirectory`**
@@ -50,7 +771,7 @@ await ssoReady.saml.redeemSamlAccessCode({
-
-**requestOptions: `Saml.RequestOptions`**
+**requestOptions: `ScimDirectories.RequestOptions`**
@@ -65,7 +786,7 @@ await ssoReady.saml.redeemSamlAccessCode({
- ssoReady.saml.getSamlRedirectUrl({ ...params }) -> SSOReady.GetSamlRedirectUrlResponse
+ ssoReady.management.scimDirectories.getScimDirectory(id) -> SSOReady.GetScimDirectoryResponse
@@ -82,9 +803,7 @@ await ssoReady.saml.redeemSamlAccessCode({
-
```ts
-await ssoReady.saml.getSamlRedirectUrl({
- organizationExternalId: "my_custom_external_id",
-});
+await ssoReady.management.scimDirectories.getScimDirectory("id");
```
@@ -105,7 +824,7 @@ await ssoReady.saml.getSamlRedirectUrl({
-
-**request: `SSOReady.GetSamlRedirectUrlRequest`**
+**id: `string`**
@@ -115,7 +834,143 @@ await ssoReady.saml.getSamlRedirectUrl({
-
-**requestOptions: `Saml.RequestOptions`**
+**requestOptions: `ScimDirectories.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.scimDirectories.updateScimDirectory(id, { ...params }) -> SSOReady.UpdateScimDirectoryResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.scimDirectories.updateScimDirectory("id", {});
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**id: `string`**
+
+
+
+
+
+
+
+-
+
+**request: `SSOReady.ScimDirectory`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `ScimDirectories.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ssoReady.management.scimDirectories.rotateScimDirectoryBearerToken(id) -> SSOReady.RotateScimDirectoryBearerTokenResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.scimDirectories.rotateScimDirectoryBearerToken("id");
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**id: `string`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `ScimDirectories.RequestOptions`**
@@ -387,3 +1242,68 @@ await ssoReady.scim.getScimUser("scim_user_...");
+
+## Management SetupUrls
+
+ ssoReady.management.setupUrls.createSetupUrl({ ...params }) -> SSOReady.CreateSetupUrlResponse
+
+
+
+-
+
+#### 🔌 Usage
+
+
+
+-
+
+
+
+-
+
+```ts
+await ssoReady.management.setupUrls.createSetupUrl();
+```
+
+
+
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+-
+
+
+
+-
+
+**request: `SSOReady.management.CreateSetupUrlRequest`**
+
+
+
+
+
+
+
+-
+
+**requestOptions: `SetupUrls.RequestOptions`**
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Client.ts b/src/Client.ts
index bfb4cf1..e866853 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -4,6 +4,7 @@
import * as environments from "./environments";
import * as core from "./core";
+import { Management } from "./api/resources/management/client/Client";
import { Saml } from "./api/resources/saml/client/Client";
import { Scim } from "./api/resources/scim/client/Client";
@@ -23,6 +24,12 @@ export declare namespace SSOReadyClient {
export class SSOReadyClient {
constructor(protected readonly _options: SSOReadyClient.Options = {}) {}
+ protected _management: Management | undefined;
+
+ public get management(): Management {
+ return (this._management ??= new Management(this._options));
+ }
+
protected _saml: Saml | undefined;
public get saml(): Saml {
diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts
index b36c389..cb7e21a 100644
--- a/src/api/resources/index.ts
+++ b/src/api/resources/index.ts
@@ -1,3 +1,4 @@
+export * as management from "./management";
export * as saml from "./saml";
export * as scim from "./scim";
export * from "./saml/client/requests";
diff --git a/src/api/resources/management/client/Client.ts b/src/api/resources/management/client/Client.ts
new file mode 100644
index 0000000..5af0c05
--- /dev/null
+++ b/src/api/resources/management/client/Client.ts
@@ -0,0 +1,51 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../environments";
+import * as core from "../../../../core";
+import { Organizations } from "../resources/organizations/client/Client";
+import { SamlConnections } from "../resources/samlConnections/client/Client";
+import { ScimDirectories } from "../resources/scimDirectories/client/Client";
+import { SetupUrls } from "../resources/setupUrls/client/Client";
+
+export declare namespace Management {
+ interface Options {
+ environment?: core.Supplier;
+ apiKey?: core.Supplier;
+ fetcher?: core.FetchFunction;
+ }
+
+ interface RequestOptions {
+ timeoutInSeconds?: number;
+ maxRetries?: number;
+ }
+}
+
+export class Management {
+ constructor(protected readonly _options: Management.Options = {}) {}
+
+ protected _organizations: Organizations | undefined;
+
+ public get organizations(): Organizations {
+ return (this._organizations ??= new Organizations(this._options));
+ }
+
+ protected _samlConnections: SamlConnections | undefined;
+
+ public get samlConnections(): SamlConnections {
+ return (this._samlConnections ??= new SamlConnections(this._options));
+ }
+
+ protected _scimDirectories: ScimDirectories | undefined;
+
+ public get scimDirectories(): ScimDirectories {
+ return (this._scimDirectories ??= new ScimDirectories(this._options));
+ }
+
+ protected _setupUrls: SetupUrls | undefined;
+
+ public get setupUrls(): SetupUrls {
+ return (this._setupUrls ??= new SetupUrls(this._options));
+ }
+}
diff --git a/src/api/resources/management/client/index.ts b/src/api/resources/management/client/index.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/src/api/resources/management/client/index.ts
@@ -0,0 +1 @@
+export {};
diff --git a/src/api/resources/management/index.ts b/src/api/resources/management/index.ts
new file mode 100644
index 0000000..33a87f1
--- /dev/null
+++ b/src/api/resources/management/index.ts
@@ -0,0 +1,2 @@
+export * from "./client";
+export * from "./resources";
diff --git a/src/api/resources/management/resources/index.ts b/src/api/resources/management/resources/index.ts
new file mode 100644
index 0000000..614a63c
--- /dev/null
+++ b/src/api/resources/management/resources/index.ts
@@ -0,0 +1,8 @@
+export * as organizations from "./organizations";
+export * as samlConnections from "./samlConnections";
+export * as scimDirectories from "./scimDirectories";
+export * as setupUrls from "./setupUrls";
+export * from "./organizations/client/requests";
+export * from "./samlConnections/client/requests";
+export * from "./scimDirectories/client/requests";
+export * from "./setupUrls/client/requests";
diff --git a/src/api/resources/management/resources/organizations/client/Client.ts b/src/api/resources/management/resources/organizations/client/Client.ts
new file mode 100644
index 0000000..46bb242
--- /dev/null
+++ b/src/api/resources/management/resources/organizations/client/Client.ts
@@ -0,0 +1,293 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../../../environments";
+import * as core from "../../../../../../core";
+import * as SSOReady from "../../../../../index";
+import urlJoin from "url-join";
+import * as serializers from "../../../../../../serialization/index";
+import * as errors from "../../../../../../errors/index";
+
+export declare namespace Organizations {
+ interface Options {
+ environment?: core.Supplier;
+ apiKey?: core.Supplier;
+ fetcher?: core.FetchFunction;
+ }
+
+ interface RequestOptions {
+ timeoutInSeconds?: number;
+ maxRetries?: number;
+ }
+}
+
+export class Organizations {
+ constructor(protected readonly _options: Organizations.Options = {}) {}
+
+ /**
+ * @param {SSOReady.management.OrganizationsListOrganizationsRequest} request
+ * @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.organizations.listOrganizations()
+ */
+ public async listOrganizations(
+ request: SSOReady.management.OrganizationsListOrganizationsRequest = {},
+ requestOptions?: Organizations.RequestOptions
+ ): Promise {
+ const { pageToken } = request;
+ const _queryParams: Record = {};
+ if (pageToken != null) {
+ _queryParams["pageToken"] = pageToken;
+ }
+
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ "v1/organizations"
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ queryParameters: _queryParams,
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.ListOrganizationsResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {SSOReady.Organization} request
+ * @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.organizations.createOrganization({})
+ */
+ public async createOrganization(
+ request: SSOReady.Organization,
+ requestOptions?: Organizations.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ "v1/organizations"
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ body: await serializers.Organization.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.CreateOrganizationResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.organizations.getOrganization("id")
+ */
+ public async getOrganization(
+ id: string,
+ requestOptions?: Organizations.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ `v1/organizations/${encodeURIComponent(id)}`
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.GetOrganizationResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {SSOReady.Organization} request
+ * @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.organizations.updateOrganization("id", {})
+ */
+ public async updateOrganization(
+ id: string,
+ request: SSOReady.Organization,
+ requestOptions?: Organizations.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ `v1/organizations/${encodeURIComponent(id)}`
+ ),
+ method: "PATCH",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ body: await serializers.Organization.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.UpdateOrganizationResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ protected async _getAuthorizationHeader(): Promise {
+ const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["SSOREADY_API_KEY"];
+ if (bearer == null) {
+ throw new errors.SSOReadyError({
+ message: "Please specify SSOREADY_API_KEY when instantiating the client.",
+ });
+ }
+
+ return `Bearer ${bearer}`;
+ }
+}
diff --git a/src/api/resources/management/resources/organizations/client/index.ts b/src/api/resources/management/resources/organizations/client/index.ts
new file mode 100644
index 0000000..415726b
--- /dev/null
+++ b/src/api/resources/management/resources/organizations/client/index.ts
@@ -0,0 +1 @@
+export * from "./requests";
diff --git a/src/api/resources/management/resources/organizations/client/requests/OrganizationsListOrganizationsRequest.ts b/src/api/resources/management/resources/organizations/client/requests/OrganizationsListOrganizationsRequest.ts
new file mode 100644
index 0000000..7a51bf2
--- /dev/null
+++ b/src/api/resources/management/resources/organizations/client/requests/OrganizationsListOrganizationsRequest.ts
@@ -0,0 +1,11 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface OrganizationsListOrganizationsRequest {
+ pageToken?: string;
+}
diff --git a/src/api/resources/management/resources/organizations/client/requests/index.ts b/src/api/resources/management/resources/organizations/client/requests/index.ts
new file mode 100644
index 0000000..81569f8
--- /dev/null
+++ b/src/api/resources/management/resources/organizations/client/requests/index.ts
@@ -0,0 +1 @@
+export { type OrganizationsListOrganizationsRequest } from "./OrganizationsListOrganizationsRequest";
diff --git a/src/api/resources/management/resources/organizations/index.ts b/src/api/resources/management/resources/organizations/index.ts
new file mode 100644
index 0000000..5ec7692
--- /dev/null
+++ b/src/api/resources/management/resources/organizations/index.ts
@@ -0,0 +1 @@
+export * from "./client";
diff --git a/src/api/resources/management/resources/samlConnections/client/Client.ts b/src/api/resources/management/resources/samlConnections/client/Client.ts
new file mode 100644
index 0000000..93355b2
--- /dev/null
+++ b/src/api/resources/management/resources/samlConnections/client/Client.ts
@@ -0,0 +1,297 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../../../environments";
+import * as core from "../../../../../../core";
+import * as SSOReady from "../../../../../index";
+import urlJoin from "url-join";
+import * as serializers from "../../../../../../serialization/index";
+import * as errors from "../../../../../../errors/index";
+
+export declare namespace SamlConnections {
+ interface Options {
+ environment?: core.Supplier;
+ apiKey?: core.Supplier;
+ fetcher?: core.FetchFunction;
+ }
+
+ interface RequestOptions {
+ timeoutInSeconds?: number;
+ maxRetries?: number;
+ }
+}
+
+export class SamlConnections {
+ constructor(protected readonly _options: SamlConnections.Options = {}) {}
+
+ /**
+ * @param {SSOReady.management.SamlConnectionsListSamlConnectionsRequest} request
+ * @param {SamlConnections.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.samlConnections.listSamlConnections()
+ */
+ public async listSamlConnections(
+ request: SSOReady.management.SamlConnectionsListSamlConnectionsRequest = {},
+ requestOptions?: SamlConnections.RequestOptions
+ ): Promise {
+ const { organizationId, pageToken } = request;
+ const _queryParams: Record = {};
+ if (organizationId != null) {
+ _queryParams["organizationId"] = organizationId;
+ }
+
+ if (pageToken != null) {
+ _queryParams["pageToken"] = pageToken;
+ }
+
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ "v1/saml-connections"
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ queryParameters: _queryParams,
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.ListSamlConnectionsResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {SSOReady.SamlConnection} request
+ * @param {SamlConnections.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.samlConnections.createSamlConnection({})
+ */
+ public async createSamlConnection(
+ request: SSOReady.SamlConnection,
+ requestOptions?: SamlConnections.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ "v1/saml-connections"
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ body: await serializers.SamlConnection.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.CreateSamlConnectionResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {SamlConnections.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.samlConnections.getSamlConnection("id")
+ */
+ public async getSamlConnection(
+ id: string,
+ requestOptions?: SamlConnections.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ `v1/saml-connections/${encodeURIComponent(id)}`
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.GetSamlConnectionResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {SSOReady.SamlConnection} request
+ * @param {SamlConnections.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.samlConnections.updateSamlConnection("id", {})
+ */
+ public async updateSamlConnection(
+ id: string,
+ request: SSOReady.SamlConnection,
+ requestOptions?: SamlConnections.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ `v1/saml-connections/${encodeURIComponent(id)}`
+ ),
+ method: "PATCH",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ body: await serializers.SamlConnection.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.UpdateSamlConnectionResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ protected async _getAuthorizationHeader(): Promise {
+ const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["SSOREADY_API_KEY"];
+ if (bearer == null) {
+ throw new errors.SSOReadyError({
+ message: "Please specify SSOREADY_API_KEY when instantiating the client.",
+ });
+ }
+
+ return `Bearer ${bearer}`;
+ }
+}
diff --git a/src/api/resources/management/resources/samlConnections/client/index.ts b/src/api/resources/management/resources/samlConnections/client/index.ts
new file mode 100644
index 0000000..415726b
--- /dev/null
+++ b/src/api/resources/management/resources/samlConnections/client/index.ts
@@ -0,0 +1 @@
+export * from "./requests";
diff --git a/src/api/resources/management/resources/samlConnections/client/requests/SamlConnectionsListSamlConnectionsRequest.ts b/src/api/resources/management/resources/samlConnections/client/requests/SamlConnectionsListSamlConnectionsRequest.ts
new file mode 100644
index 0000000..0e06e7c
--- /dev/null
+++ b/src/api/resources/management/resources/samlConnections/client/requests/SamlConnectionsListSamlConnectionsRequest.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface SamlConnectionsListSamlConnectionsRequest {
+ organizationId?: string;
+ pageToken?: string;
+}
diff --git a/src/api/resources/management/resources/samlConnections/client/requests/index.ts b/src/api/resources/management/resources/samlConnections/client/requests/index.ts
new file mode 100644
index 0000000..38a4de8
--- /dev/null
+++ b/src/api/resources/management/resources/samlConnections/client/requests/index.ts
@@ -0,0 +1 @@
+export { type SamlConnectionsListSamlConnectionsRequest } from "./SamlConnectionsListSamlConnectionsRequest";
diff --git a/src/api/resources/management/resources/samlConnections/index.ts b/src/api/resources/management/resources/samlConnections/index.ts
new file mode 100644
index 0000000..5ec7692
--- /dev/null
+++ b/src/api/resources/management/resources/samlConnections/index.ts
@@ -0,0 +1 @@
+export * from "./client";
diff --git a/src/api/resources/management/resources/scimDirectories/client/Client.ts b/src/api/resources/management/resources/scimDirectories/client/Client.ts
new file mode 100644
index 0000000..61063ce
--- /dev/null
+++ b/src/api/resources/management/resources/scimDirectories/client/Client.ts
@@ -0,0 +1,358 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../../../environments";
+import * as core from "../../../../../../core";
+import * as SSOReady from "../../../../../index";
+import urlJoin from "url-join";
+import * as serializers from "../../../../../../serialization/index";
+import * as errors from "../../../../../../errors/index";
+
+export declare namespace ScimDirectories {
+ interface Options {
+ environment?: core.Supplier;
+ apiKey?: core.Supplier;
+ fetcher?: core.FetchFunction;
+ }
+
+ interface RequestOptions {
+ timeoutInSeconds?: number;
+ maxRetries?: number;
+ }
+}
+
+export class ScimDirectories {
+ constructor(protected readonly _options: ScimDirectories.Options = {}) {}
+
+ /**
+ * @param {SSOReady.management.ScimDirectoriesListScimDirectoriesRequest} request
+ * @param {ScimDirectories.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.scimDirectories.listScimDirectories()
+ */
+ public async listScimDirectories(
+ request: SSOReady.management.ScimDirectoriesListScimDirectoriesRequest = {},
+ requestOptions?: ScimDirectories.RequestOptions
+ ): Promise {
+ const { organizationId, pageToken } = request;
+ const _queryParams: Record = {};
+ if (organizationId != null) {
+ _queryParams["organizationId"] = organizationId;
+ }
+
+ if (pageToken != null) {
+ _queryParams["pageToken"] = pageToken;
+ }
+
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ "v1/scim-directories"
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ queryParameters: _queryParams,
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.ListScimDirectoriesResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {SSOReady.ScimDirectory} request
+ * @param {ScimDirectories.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.scimDirectories.createScimDirectory({})
+ */
+ public async createScimDirectory(
+ request: SSOReady.ScimDirectory,
+ requestOptions?: ScimDirectories.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ "v1/scim-directories"
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ body: await serializers.ScimDirectory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.CreateScimDirectoryResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {ScimDirectories.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.scimDirectories.getScimDirectory("id")
+ */
+ public async getScimDirectory(
+ id: string,
+ requestOptions?: ScimDirectories.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ `v1/scim-directories/${encodeURIComponent(id)}`
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.GetScimDirectoryResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {SSOReady.ScimDirectory} request
+ * @param {ScimDirectories.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.scimDirectories.updateScimDirectory("id", {})
+ */
+ public async updateScimDirectory(
+ id: string,
+ request: SSOReady.ScimDirectory,
+ requestOptions?: ScimDirectories.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ `v1/scim-directories/${encodeURIComponent(id)}`
+ ),
+ method: "PATCH",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ body: await serializers.ScimDirectory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.UpdateScimDirectoryResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {ScimDirectories.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.scimDirectories.rotateScimDirectoryBearerToken("id")
+ */
+ public async rotateScimDirectoryBearerToken(
+ id: string,
+ requestOptions?: ScimDirectories.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ `v1/scim-directories/${encodeURIComponent(id)}/rotate-bearer-token`
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.RotateScimDirectoryBearerTokenResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ protected async _getAuthorizationHeader(): Promise {
+ const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["SSOREADY_API_KEY"];
+ if (bearer == null) {
+ throw new errors.SSOReadyError({
+ message: "Please specify SSOREADY_API_KEY when instantiating the client.",
+ });
+ }
+
+ return `Bearer ${bearer}`;
+ }
+}
diff --git a/src/api/resources/management/resources/scimDirectories/client/index.ts b/src/api/resources/management/resources/scimDirectories/client/index.ts
new file mode 100644
index 0000000..415726b
--- /dev/null
+++ b/src/api/resources/management/resources/scimDirectories/client/index.ts
@@ -0,0 +1 @@
+export * from "./requests";
diff --git a/src/api/resources/management/resources/scimDirectories/client/requests/ScimDirectoriesListScimDirectoriesRequest.ts b/src/api/resources/management/resources/scimDirectories/client/requests/ScimDirectoriesListScimDirectoriesRequest.ts
new file mode 100644
index 0000000..e73c1a3
--- /dev/null
+++ b/src/api/resources/management/resources/scimDirectories/client/requests/ScimDirectoriesListScimDirectoriesRequest.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ScimDirectoriesListScimDirectoriesRequest {
+ organizationId?: string;
+ pageToken?: string;
+}
diff --git a/src/api/resources/management/resources/scimDirectories/client/requests/index.ts b/src/api/resources/management/resources/scimDirectories/client/requests/index.ts
new file mode 100644
index 0000000..ec13e0c
--- /dev/null
+++ b/src/api/resources/management/resources/scimDirectories/client/requests/index.ts
@@ -0,0 +1 @@
+export { type ScimDirectoriesListScimDirectoriesRequest } from "./ScimDirectoriesListScimDirectoriesRequest";
diff --git a/src/api/resources/management/resources/scimDirectories/index.ts b/src/api/resources/management/resources/scimDirectories/index.ts
new file mode 100644
index 0000000..5ec7692
--- /dev/null
+++ b/src/api/resources/management/resources/scimDirectories/index.ts
@@ -0,0 +1 @@
+export * from "./client";
diff --git a/src/api/resources/management/resources/setupUrls/client/Client.ts b/src/api/resources/management/resources/setupUrls/client/Client.ts
new file mode 100644
index 0000000..6c13f4c
--- /dev/null
+++ b/src/api/resources/management/resources/setupUrls/client/Client.ts
@@ -0,0 +1,102 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../../../environments";
+import * as core from "../../../../../../core";
+import * as SSOReady from "../../../../../index";
+import * as serializers from "../../../../../../serialization/index";
+import urlJoin from "url-join";
+import * as errors from "../../../../../../errors/index";
+
+export declare namespace SetupUrls {
+ interface Options {
+ environment?: core.Supplier;
+ apiKey?: core.Supplier;
+ fetcher?: core.FetchFunction;
+ }
+
+ interface RequestOptions {
+ timeoutInSeconds?: number;
+ maxRetries?: number;
+ }
+}
+
+export class SetupUrls {
+ constructor(protected readonly _options: SetupUrls.Options = {}) {}
+
+ /**
+ * @param {SSOReady.management.CreateSetupUrlRequest} request
+ * @param {SetupUrls.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await ssoReady.management.setupUrls.createSetupUrl()
+ */
+ public async createSetupUrl(
+ request: SSOReady.management.CreateSetupUrlRequest = {},
+ requestOptions?: SetupUrls.RequestOptions
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.SSOReadyEnvironment.Default,
+ "v1/setup-urls"
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "ssoready",
+ "X-Fern-SDK-Version": "1.1.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ body: await serializers.management.CreateSetupUrlRequest.jsonOrThrow(request, {
+ unrecognizedObjectKeys: "strip",
+ }),
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ });
+ if (_response.ok) {
+ return await serializers.CreateSetupUrlResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SSOReadyError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SSOReadyTimeoutError();
+ case "unknown":
+ throw new errors.SSOReadyError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ protected async _getAuthorizationHeader(): Promise {
+ const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["SSOREADY_API_KEY"];
+ if (bearer == null) {
+ throw new errors.SSOReadyError({
+ message: "Please specify SSOREADY_API_KEY when instantiating the client.",
+ });
+ }
+
+ return `Bearer ${bearer}`;
+ }
+}
diff --git a/src/api/resources/management/resources/setupUrls/client/index.ts b/src/api/resources/management/resources/setupUrls/client/index.ts
new file mode 100644
index 0000000..415726b
--- /dev/null
+++ b/src/api/resources/management/resources/setupUrls/client/index.ts
@@ -0,0 +1 @@
+export * from "./requests";
diff --git a/src/api/resources/management/resources/setupUrls/client/requests/CreateSetupUrlRequest.ts b/src/api/resources/management/resources/setupUrls/client/requests/CreateSetupUrlRequest.ts
new file mode 100644
index 0000000..439b24a
--- /dev/null
+++ b/src/api/resources/management/resources/setupUrls/client/requests/CreateSetupUrlRequest.ts
@@ -0,0 +1,13 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface CreateSetupUrlRequest {
+ organizationId?: string;
+ canManageSaml?: boolean;
+ canManageScim?: boolean;
+}
diff --git a/src/api/resources/management/resources/setupUrls/client/requests/index.ts b/src/api/resources/management/resources/setupUrls/client/requests/index.ts
new file mode 100644
index 0000000..3993524
--- /dev/null
+++ b/src/api/resources/management/resources/setupUrls/client/requests/index.ts
@@ -0,0 +1 @@
+export { type CreateSetupUrlRequest } from "./CreateSetupUrlRequest";
diff --git a/src/api/resources/management/resources/setupUrls/index.ts b/src/api/resources/management/resources/setupUrls/index.ts
new file mode 100644
index 0000000..5ec7692
--- /dev/null
+++ b/src/api/resources/management/resources/setupUrls/index.ts
@@ -0,0 +1 @@
+export * from "./client";
diff --git a/src/api/resources/saml/client/Client.ts b/src/api/resources/saml/client/Client.ts
index 9f014d3..c2b989e 100644
--- a/src/api/resources/saml/client/Client.ts
+++ b/src/api/resources/saml/client/Client.ts
@@ -48,7 +48,7 @@ export class Saml {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ssoready",
- "X-Fern-SDK-Version": "1.0.1",
+ "X-Fern-SDK-Version": "1.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -114,7 +114,7 @@ export class Saml {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ssoready",
- "X-Fern-SDK-Version": "1.0.1",
+ "X-Fern-SDK-Version": "1.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -155,12 +155,14 @@ export class Saml {
}
}
- protected async _getAuthorizationHeader(): Promise {
+ protected async _getAuthorizationHeader(): Promise {
const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["SSOREADY_API_KEY"];
- if (bearer != null) {
- return `Bearer ${bearer}`;
+ if (bearer == null) {
+ throw new errors.SSOReadyError({
+ message: "Please specify SSOREADY_API_KEY when instantiating the client.",
+ });
}
- return undefined;
+ return `Bearer ${bearer}`;
}
}
diff --git a/src/api/resources/scim/client/Client.ts b/src/api/resources/scim/client/Client.ts
index 6e36545..0963806 100644
--- a/src/api/resources/scim/client/Client.ts
+++ b/src/api/resources/scim/client/Client.ts
@@ -66,7 +66,7 @@ export class Scim {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ssoready",
- "X-Fern-SDK-Version": "1.0.1",
+ "X-Fern-SDK-Version": "1.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -128,7 +128,7 @@ export class Scim {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ssoready",
- "X-Fern-SDK-Version": "1.0.1",
+ "X-Fern-SDK-Version": "1.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -213,7 +213,7 @@ export class Scim {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ssoready",
- "X-Fern-SDK-Version": "1.0.1",
+ "X-Fern-SDK-Version": "1.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -272,7 +272,7 @@ export class Scim {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ssoready",
- "X-Fern-SDK-Version": "1.0.1",
+ "X-Fern-SDK-Version": "1.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -312,12 +312,14 @@ export class Scim {
}
}
- protected async _getAuthorizationHeader(): Promise {
+ protected async _getAuthorizationHeader(): Promise {
const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["SSOREADY_API_KEY"];
- if (bearer != null) {
- return `Bearer ${bearer}`;
+ if (bearer == null) {
+ throw new errors.SSOReadyError({
+ message: "Please specify SSOREADY_API_KEY when instantiating the client.",
+ });
}
- return undefined;
+ return `Bearer ${bearer}`;
}
}
diff --git a/src/api/types/CreateOrganizationResponse.ts b/src/api/types/CreateOrganizationResponse.ts
new file mode 100644
index 0000000..3aa6f26
--- /dev/null
+++ b/src/api/types/CreateOrganizationResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface CreateOrganizationResponse {
+ organization?: SSOReady.Organization;
+}
diff --git a/src/api/types/CreateSamlConnectionResponse.ts b/src/api/types/CreateSamlConnectionResponse.ts
new file mode 100644
index 0000000..390ffd0
--- /dev/null
+++ b/src/api/types/CreateSamlConnectionResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface CreateSamlConnectionResponse {
+ samlConnection?: SSOReady.SamlConnection;
+}
diff --git a/src/api/types/CreateScimDirectoryResponse.ts b/src/api/types/CreateScimDirectoryResponse.ts
new file mode 100644
index 0000000..ede04ed
--- /dev/null
+++ b/src/api/types/CreateScimDirectoryResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface CreateScimDirectoryResponse {
+ scimDirectory?: SSOReady.ScimDirectory;
+}
diff --git a/src/api/types/CreateSetupUrlResponse.ts b/src/api/types/CreateSetupUrlResponse.ts
new file mode 100644
index 0000000..f43b531
--- /dev/null
+++ b/src/api/types/CreateSetupUrlResponse.ts
@@ -0,0 +1,7 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface CreateSetupUrlResponse {
+ url?: string;
+}
diff --git a/src/api/types/GetOrganizationResponse.ts b/src/api/types/GetOrganizationResponse.ts
new file mode 100644
index 0000000..4eb989e
--- /dev/null
+++ b/src/api/types/GetOrganizationResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface GetOrganizationResponse {
+ organization?: SSOReady.Organization;
+}
diff --git a/src/api/types/GetSamlConnectionResponse.ts b/src/api/types/GetSamlConnectionResponse.ts
new file mode 100644
index 0000000..ac5f48d
--- /dev/null
+++ b/src/api/types/GetSamlConnectionResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface GetSamlConnectionResponse {
+ samlConnection?: SSOReady.SamlConnection;
+}
diff --git a/src/api/types/GetScimDirectoryResponse.ts b/src/api/types/GetScimDirectoryResponse.ts
new file mode 100644
index 0000000..1056a17
--- /dev/null
+++ b/src/api/types/GetScimDirectoryResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface GetScimDirectoryResponse {
+ scimDirectory?: SSOReady.ScimDirectory;
+}
diff --git a/src/api/types/ListOrganizationsResponse.ts b/src/api/types/ListOrganizationsResponse.ts
new file mode 100644
index 0000000..4a69960
--- /dev/null
+++ b/src/api/types/ListOrganizationsResponse.ts
@@ -0,0 +1,10 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface ListOrganizationsResponse {
+ organizations?: SSOReady.Organization[];
+ nextPageToken?: string;
+}
diff --git a/src/api/types/ListSamlConnectionsResponse.ts b/src/api/types/ListSamlConnectionsResponse.ts
new file mode 100644
index 0000000..2ae1ef3
--- /dev/null
+++ b/src/api/types/ListSamlConnectionsResponse.ts
@@ -0,0 +1,10 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface ListSamlConnectionsResponse {
+ samlConnections?: SSOReady.SamlConnection[];
+ nextPageToken?: string;
+}
diff --git a/src/api/types/ListScimDirectoriesResponse.ts b/src/api/types/ListScimDirectoriesResponse.ts
new file mode 100644
index 0000000..1e33ad0
--- /dev/null
+++ b/src/api/types/ListScimDirectoriesResponse.ts
@@ -0,0 +1,10 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface ListScimDirectoriesResponse {
+ scimDirectories?: SSOReady.ScimDirectory[];
+ nextPageToken?: string;
+}
diff --git a/src/api/types/Organization.ts b/src/api/types/Organization.ts
new file mode 100644
index 0000000..ee81753
--- /dev/null
+++ b/src/api/types/Organization.ts
@@ -0,0 +1,10 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface Organization {
+ id?: string;
+ environmentId?: string;
+ externalId?: string;
+ domains?: string[];
+}
diff --git a/src/api/types/RotateScimDirectoryBearerTokenResponse.ts b/src/api/types/RotateScimDirectoryBearerTokenResponse.ts
new file mode 100644
index 0000000..7da23ef
--- /dev/null
+++ b/src/api/types/RotateScimDirectoryBearerTokenResponse.ts
@@ -0,0 +1,7 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface RotateScimDirectoryBearerTokenResponse {
+ bearerToken?: string;
+}
diff --git a/src/api/types/SamlConnection.ts b/src/api/types/SamlConnection.ts
new file mode 100644
index 0000000..590c65d
--- /dev/null
+++ b/src/api/types/SamlConnection.ts
@@ -0,0 +1,14 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface SamlConnection {
+ id?: string;
+ organizationId?: string;
+ primary?: boolean;
+ idpRedirectUrl?: string;
+ idpCertificate?: string;
+ idpEntityId?: string;
+ spEntityId?: string;
+ spAcsUrl?: string;
+}
diff --git a/src/api/types/ScimDirectory.ts b/src/api/types/ScimDirectory.ts
new file mode 100644
index 0000000..db5a067
--- /dev/null
+++ b/src/api/types/ScimDirectory.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface ScimDirectory {
+ id?: string;
+ organizationId?: string;
+ primary?: boolean;
+ scimBaseUrl?: string;
+ clientBearerToken?: string;
+ hasClientBearerToken?: boolean;
+}
diff --git a/src/api/types/UpdateOrganizationResponse.ts b/src/api/types/UpdateOrganizationResponse.ts
new file mode 100644
index 0000000..94f0498
--- /dev/null
+++ b/src/api/types/UpdateOrganizationResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface UpdateOrganizationResponse {
+ organization?: SSOReady.Organization;
+}
diff --git a/src/api/types/UpdateSamlConnectionResponse.ts b/src/api/types/UpdateSamlConnectionResponse.ts
new file mode 100644
index 0000000..ffd1044
--- /dev/null
+++ b/src/api/types/UpdateSamlConnectionResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface UpdateSamlConnectionResponse {
+ samlConnection?: SSOReady.SamlConnection;
+}
diff --git a/src/api/types/UpdateScimDirectoryResponse.ts b/src/api/types/UpdateScimDirectoryResponse.ts
new file mode 100644
index 0000000..5b83cad
--- /dev/null
+++ b/src/api/types/UpdateScimDirectoryResponse.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as SSOReady from "../index";
+
+export interface UpdateScimDirectoryResponse {
+ scimDirectory?: SSOReady.ScimDirectory;
+}
diff --git a/src/api/types/index.ts b/src/api/types/index.ts
index 48e0555..ec1cfa7 100644
--- a/src/api/types/index.ts
+++ b/src/api/types/index.ts
@@ -1,10 +1,27 @@
+export * from "./CreateOrganizationResponse";
+export * from "./CreateSamlConnectionResponse";
+export * from "./CreateScimDirectoryResponse";
+export * from "./CreateSetupUrlResponse";
+export * from "./GetOrganizationResponse";
+export * from "./GetSamlConnectionResponse";
export * from "./GetSamlRedirectUrlResponse";
+export * from "./GetScimDirectoryResponse";
export * from "./GetScimGroupResponse";
export * from "./GetScimUserResponse";
export * from "./GoogleProtobufAny";
+export * from "./ListOrganizationsResponse";
+export * from "./ListSamlConnectionsResponse";
+export * from "./ListScimDirectoriesResponse";
export * from "./ListScimGroupsResponse";
export * from "./ListScimUsersResponse";
+export * from "./Organization";
export * from "./RedeemSamlAccessCodeResponse";
+export * from "./RotateScimDirectoryBearerTokenResponse";
+export * from "./SamlConnection";
+export * from "./ScimDirectory";
export * from "./ScimGroup";
export * from "./ScimUser";
export * from "./Status";
+export * from "./UpdateOrganizationResponse";
+export * from "./UpdateSamlConnectionResponse";
+export * from "./UpdateScimDirectoryResponse";
diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts
index b591619..34b806d 100644
--- a/src/serialization/resources/index.ts
+++ b/src/serialization/resources/index.ts
@@ -1,2 +1,3 @@
export * as saml from "./saml";
export * from "./saml/client/requests";
+export * as management from "./management";
diff --git a/src/serialization/resources/management/index.ts b/src/serialization/resources/management/index.ts
new file mode 100644
index 0000000..3e5335f
--- /dev/null
+++ b/src/serialization/resources/management/index.ts
@@ -0,0 +1 @@
+export * from "./resources";
diff --git a/src/serialization/resources/management/resources/index.ts b/src/serialization/resources/management/resources/index.ts
new file mode 100644
index 0000000..39b0c2e
--- /dev/null
+++ b/src/serialization/resources/management/resources/index.ts
@@ -0,0 +1,2 @@
+export * as setupUrls from "./setupUrls";
+export * from "./setupUrls/client/requests";
diff --git a/src/serialization/resources/management/resources/setupUrls/client/index.ts b/src/serialization/resources/management/resources/setupUrls/client/index.ts
new file mode 100644
index 0000000..415726b
--- /dev/null
+++ b/src/serialization/resources/management/resources/setupUrls/client/index.ts
@@ -0,0 +1 @@
+export * from "./requests";
diff --git a/src/serialization/resources/management/resources/setupUrls/client/requests/CreateSetupUrlRequest.ts b/src/serialization/resources/management/resources/setupUrls/client/requests/CreateSetupUrlRequest.ts
new file mode 100644
index 0000000..6bb51d1
--- /dev/null
+++ b/src/serialization/resources/management/resources/setupUrls/client/requests/CreateSetupUrlRequest.ts
@@ -0,0 +1,24 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../../../../../../index";
+import * as SSOReady from "../../../../../../../api/index";
+import * as core from "../../../../../../../core";
+
+export const CreateSetupUrlRequest: core.serialization.Schema<
+ serializers.management.CreateSetupUrlRequest.Raw,
+ SSOReady.management.CreateSetupUrlRequest
+> = core.serialization.object({
+ organizationId: core.serialization.string().optional(),
+ canManageSaml: core.serialization.boolean().optional(),
+ canManageScim: core.serialization.boolean().optional(),
+});
+
+export declare namespace CreateSetupUrlRequest {
+ interface Raw {
+ organizationId?: string | null;
+ canManageSaml?: boolean | null;
+ canManageScim?: boolean | null;
+ }
+}
diff --git a/src/serialization/resources/management/resources/setupUrls/client/requests/index.ts b/src/serialization/resources/management/resources/setupUrls/client/requests/index.ts
new file mode 100644
index 0000000..1ee9289
--- /dev/null
+++ b/src/serialization/resources/management/resources/setupUrls/client/requests/index.ts
@@ -0,0 +1 @@
+export { CreateSetupUrlRequest } from "./CreateSetupUrlRequest";
diff --git a/src/serialization/resources/management/resources/setupUrls/index.ts b/src/serialization/resources/management/resources/setupUrls/index.ts
new file mode 100644
index 0000000..5ec7692
--- /dev/null
+++ b/src/serialization/resources/management/resources/setupUrls/index.ts
@@ -0,0 +1 @@
+export * from "./client";
diff --git a/src/serialization/types/CreateOrganizationResponse.ts b/src/serialization/types/CreateOrganizationResponse.ts
new file mode 100644
index 0000000..73fee27
--- /dev/null
+++ b/src/serialization/types/CreateOrganizationResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { Organization } from "./Organization";
+
+export const CreateOrganizationResponse: core.serialization.ObjectSchema<
+ serializers.CreateOrganizationResponse.Raw,
+ SSOReady.CreateOrganizationResponse
+> = core.serialization.object({
+ organization: Organization.optional(),
+});
+
+export declare namespace CreateOrganizationResponse {
+ interface Raw {
+ organization?: Organization.Raw | null;
+ }
+}
diff --git a/src/serialization/types/CreateSamlConnectionResponse.ts b/src/serialization/types/CreateSamlConnectionResponse.ts
new file mode 100644
index 0000000..06bf6e4
--- /dev/null
+++ b/src/serialization/types/CreateSamlConnectionResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { SamlConnection } from "./SamlConnection";
+
+export const CreateSamlConnectionResponse: core.serialization.ObjectSchema<
+ serializers.CreateSamlConnectionResponse.Raw,
+ SSOReady.CreateSamlConnectionResponse
+> = core.serialization.object({
+ samlConnection: SamlConnection.optional(),
+});
+
+export declare namespace CreateSamlConnectionResponse {
+ interface Raw {
+ samlConnection?: SamlConnection.Raw | null;
+ }
+}
diff --git a/src/serialization/types/CreateScimDirectoryResponse.ts b/src/serialization/types/CreateScimDirectoryResponse.ts
new file mode 100644
index 0000000..be1a77e
--- /dev/null
+++ b/src/serialization/types/CreateScimDirectoryResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { ScimDirectory } from "./ScimDirectory";
+
+export const CreateScimDirectoryResponse: core.serialization.ObjectSchema<
+ serializers.CreateScimDirectoryResponse.Raw,
+ SSOReady.CreateScimDirectoryResponse
+> = core.serialization.object({
+ scimDirectory: ScimDirectory.optional(),
+});
+
+export declare namespace CreateScimDirectoryResponse {
+ interface Raw {
+ scimDirectory?: ScimDirectory.Raw | null;
+ }
+}
diff --git a/src/serialization/types/CreateSetupUrlResponse.ts b/src/serialization/types/CreateSetupUrlResponse.ts
new file mode 100644
index 0000000..fd7abc9
--- /dev/null
+++ b/src/serialization/types/CreateSetupUrlResponse.ts
@@ -0,0 +1,20 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+
+export const CreateSetupUrlResponse: core.serialization.ObjectSchema<
+ serializers.CreateSetupUrlResponse.Raw,
+ SSOReady.CreateSetupUrlResponse
+> = core.serialization.object({
+ url: core.serialization.string().optional(),
+});
+
+export declare namespace CreateSetupUrlResponse {
+ interface Raw {
+ url?: string | null;
+ }
+}
diff --git a/src/serialization/types/GetOrganizationResponse.ts b/src/serialization/types/GetOrganizationResponse.ts
new file mode 100644
index 0000000..c88b453
--- /dev/null
+++ b/src/serialization/types/GetOrganizationResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { Organization } from "./Organization";
+
+export const GetOrganizationResponse: core.serialization.ObjectSchema<
+ serializers.GetOrganizationResponse.Raw,
+ SSOReady.GetOrganizationResponse
+> = core.serialization.object({
+ organization: Organization.optional(),
+});
+
+export declare namespace GetOrganizationResponse {
+ interface Raw {
+ organization?: Organization.Raw | null;
+ }
+}
diff --git a/src/serialization/types/GetSamlConnectionResponse.ts b/src/serialization/types/GetSamlConnectionResponse.ts
new file mode 100644
index 0000000..c4774c2
--- /dev/null
+++ b/src/serialization/types/GetSamlConnectionResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { SamlConnection } from "./SamlConnection";
+
+export const GetSamlConnectionResponse: core.serialization.ObjectSchema<
+ serializers.GetSamlConnectionResponse.Raw,
+ SSOReady.GetSamlConnectionResponse
+> = core.serialization.object({
+ samlConnection: SamlConnection.optional(),
+});
+
+export declare namespace GetSamlConnectionResponse {
+ interface Raw {
+ samlConnection?: SamlConnection.Raw | null;
+ }
+}
diff --git a/src/serialization/types/GetScimDirectoryResponse.ts b/src/serialization/types/GetScimDirectoryResponse.ts
new file mode 100644
index 0000000..9bd379d
--- /dev/null
+++ b/src/serialization/types/GetScimDirectoryResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { ScimDirectory } from "./ScimDirectory";
+
+export const GetScimDirectoryResponse: core.serialization.ObjectSchema<
+ serializers.GetScimDirectoryResponse.Raw,
+ SSOReady.GetScimDirectoryResponse
+> = core.serialization.object({
+ scimDirectory: ScimDirectory.optional(),
+});
+
+export declare namespace GetScimDirectoryResponse {
+ interface Raw {
+ scimDirectory?: ScimDirectory.Raw | null;
+ }
+}
diff --git a/src/serialization/types/ListOrganizationsResponse.ts b/src/serialization/types/ListOrganizationsResponse.ts
new file mode 100644
index 0000000..3aedadf
--- /dev/null
+++ b/src/serialization/types/ListOrganizationsResponse.ts
@@ -0,0 +1,23 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { Organization } from "./Organization";
+
+export const ListOrganizationsResponse: core.serialization.ObjectSchema<
+ serializers.ListOrganizationsResponse.Raw,
+ SSOReady.ListOrganizationsResponse
+> = core.serialization.object({
+ organizations: core.serialization.list(Organization).optional(),
+ nextPageToken: core.serialization.string().optional(),
+});
+
+export declare namespace ListOrganizationsResponse {
+ interface Raw {
+ organizations?: Organization.Raw[] | null;
+ nextPageToken?: string | null;
+ }
+}
diff --git a/src/serialization/types/ListSamlConnectionsResponse.ts b/src/serialization/types/ListSamlConnectionsResponse.ts
new file mode 100644
index 0000000..97a4d5b
--- /dev/null
+++ b/src/serialization/types/ListSamlConnectionsResponse.ts
@@ -0,0 +1,23 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { SamlConnection } from "./SamlConnection";
+
+export const ListSamlConnectionsResponse: core.serialization.ObjectSchema<
+ serializers.ListSamlConnectionsResponse.Raw,
+ SSOReady.ListSamlConnectionsResponse
+> = core.serialization.object({
+ samlConnections: core.serialization.list(SamlConnection).optional(),
+ nextPageToken: core.serialization.string().optional(),
+});
+
+export declare namespace ListSamlConnectionsResponse {
+ interface Raw {
+ samlConnections?: SamlConnection.Raw[] | null;
+ nextPageToken?: string | null;
+ }
+}
diff --git a/src/serialization/types/ListScimDirectoriesResponse.ts b/src/serialization/types/ListScimDirectoriesResponse.ts
new file mode 100644
index 0000000..f0af2f3
--- /dev/null
+++ b/src/serialization/types/ListScimDirectoriesResponse.ts
@@ -0,0 +1,23 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { ScimDirectory } from "./ScimDirectory";
+
+export const ListScimDirectoriesResponse: core.serialization.ObjectSchema<
+ serializers.ListScimDirectoriesResponse.Raw,
+ SSOReady.ListScimDirectoriesResponse
+> = core.serialization.object({
+ scimDirectories: core.serialization.list(ScimDirectory).optional(),
+ nextPageToken: core.serialization.string().optional(),
+});
+
+export declare namespace ListScimDirectoriesResponse {
+ interface Raw {
+ scimDirectories?: ScimDirectory.Raw[] | null;
+ nextPageToken?: string | null;
+ }
+}
diff --git a/src/serialization/types/Organization.ts b/src/serialization/types/Organization.ts
new file mode 100644
index 0000000..21a9c3c
--- /dev/null
+++ b/src/serialization/types/Organization.ts
@@ -0,0 +1,24 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+
+export const Organization: core.serialization.ObjectSchema =
+ core.serialization.object({
+ id: core.serialization.string().optional(),
+ environmentId: core.serialization.string().optional(),
+ externalId: core.serialization.string().optional(),
+ domains: core.serialization.list(core.serialization.string()).optional(),
+ });
+
+export declare namespace Organization {
+ interface Raw {
+ id?: string | null;
+ environmentId?: string | null;
+ externalId?: string | null;
+ domains?: string[] | null;
+ }
+}
diff --git a/src/serialization/types/RotateScimDirectoryBearerTokenResponse.ts b/src/serialization/types/RotateScimDirectoryBearerTokenResponse.ts
new file mode 100644
index 0000000..e05479c
--- /dev/null
+++ b/src/serialization/types/RotateScimDirectoryBearerTokenResponse.ts
@@ -0,0 +1,20 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+
+export const RotateScimDirectoryBearerTokenResponse: core.serialization.ObjectSchema<
+ serializers.RotateScimDirectoryBearerTokenResponse.Raw,
+ SSOReady.RotateScimDirectoryBearerTokenResponse
+> = core.serialization.object({
+ bearerToken: core.serialization.string().optional(),
+});
+
+export declare namespace RotateScimDirectoryBearerTokenResponse {
+ interface Raw {
+ bearerToken?: string | null;
+ }
+}
diff --git a/src/serialization/types/SamlConnection.ts b/src/serialization/types/SamlConnection.ts
new file mode 100644
index 0000000..e8efc33
--- /dev/null
+++ b/src/serialization/types/SamlConnection.ts
@@ -0,0 +1,32 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+
+export const SamlConnection: core.serialization.ObjectSchema =
+ core.serialization.object({
+ id: core.serialization.string().optional(),
+ organizationId: core.serialization.string().optional(),
+ primary: core.serialization.boolean().optional(),
+ idpRedirectUrl: core.serialization.string().optional(),
+ idpCertificate: core.serialization.string().optional(),
+ idpEntityId: core.serialization.string().optional(),
+ spEntityId: core.serialization.string().optional(),
+ spAcsUrl: core.serialization.string().optional(),
+ });
+
+export declare namespace SamlConnection {
+ interface Raw {
+ id?: string | null;
+ organizationId?: string | null;
+ primary?: boolean | null;
+ idpRedirectUrl?: string | null;
+ idpCertificate?: string | null;
+ idpEntityId?: string | null;
+ spEntityId?: string | null;
+ spAcsUrl?: string | null;
+ }
+}
diff --git a/src/serialization/types/ScimDirectory.ts b/src/serialization/types/ScimDirectory.ts
new file mode 100644
index 0000000..38370c7
--- /dev/null
+++ b/src/serialization/types/ScimDirectory.ts
@@ -0,0 +1,28 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+
+export const ScimDirectory: core.serialization.ObjectSchema =
+ core.serialization.object({
+ id: core.serialization.string().optional(),
+ organizationId: core.serialization.string().optional(),
+ primary: core.serialization.boolean().optional(),
+ scimBaseUrl: core.serialization.string().optional(),
+ clientBearerToken: core.serialization.string().optional(),
+ hasClientBearerToken: core.serialization.boolean().optional(),
+ });
+
+export declare namespace ScimDirectory {
+ interface Raw {
+ id?: string | null;
+ organizationId?: string | null;
+ primary?: boolean | null;
+ scimBaseUrl?: string | null;
+ clientBearerToken?: string | null;
+ hasClientBearerToken?: boolean | null;
+ }
+}
diff --git a/src/serialization/types/UpdateOrganizationResponse.ts b/src/serialization/types/UpdateOrganizationResponse.ts
new file mode 100644
index 0000000..10a12c8
--- /dev/null
+++ b/src/serialization/types/UpdateOrganizationResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { Organization } from "./Organization";
+
+export const UpdateOrganizationResponse: core.serialization.ObjectSchema<
+ serializers.UpdateOrganizationResponse.Raw,
+ SSOReady.UpdateOrganizationResponse
+> = core.serialization.object({
+ organization: Organization.optional(),
+});
+
+export declare namespace UpdateOrganizationResponse {
+ interface Raw {
+ organization?: Organization.Raw | null;
+ }
+}
diff --git a/src/serialization/types/UpdateSamlConnectionResponse.ts b/src/serialization/types/UpdateSamlConnectionResponse.ts
new file mode 100644
index 0000000..ede199b
--- /dev/null
+++ b/src/serialization/types/UpdateSamlConnectionResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { SamlConnection } from "./SamlConnection";
+
+export const UpdateSamlConnectionResponse: core.serialization.ObjectSchema<
+ serializers.UpdateSamlConnectionResponse.Raw,
+ SSOReady.UpdateSamlConnectionResponse
+> = core.serialization.object({
+ samlConnection: SamlConnection.optional(),
+});
+
+export declare namespace UpdateSamlConnectionResponse {
+ interface Raw {
+ samlConnection?: SamlConnection.Raw | null;
+ }
+}
diff --git a/src/serialization/types/UpdateScimDirectoryResponse.ts b/src/serialization/types/UpdateScimDirectoryResponse.ts
new file mode 100644
index 0000000..882f29a
--- /dev/null
+++ b/src/serialization/types/UpdateScimDirectoryResponse.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as SSOReady from "../../api/index";
+import * as core from "../../core";
+import { ScimDirectory } from "./ScimDirectory";
+
+export const UpdateScimDirectoryResponse: core.serialization.ObjectSchema<
+ serializers.UpdateScimDirectoryResponse.Raw,
+ SSOReady.UpdateScimDirectoryResponse
+> = core.serialization.object({
+ scimDirectory: ScimDirectory.optional(),
+});
+
+export declare namespace UpdateScimDirectoryResponse {
+ interface Raw {
+ scimDirectory?: ScimDirectory.Raw | null;
+ }
+}
diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts
index 48e0555..ec1cfa7 100644
--- a/src/serialization/types/index.ts
+++ b/src/serialization/types/index.ts
@@ -1,10 +1,27 @@
+export * from "./CreateOrganizationResponse";
+export * from "./CreateSamlConnectionResponse";
+export * from "./CreateScimDirectoryResponse";
+export * from "./CreateSetupUrlResponse";
+export * from "./GetOrganizationResponse";
+export * from "./GetSamlConnectionResponse";
export * from "./GetSamlRedirectUrlResponse";
+export * from "./GetScimDirectoryResponse";
export * from "./GetScimGroupResponse";
export * from "./GetScimUserResponse";
export * from "./GoogleProtobufAny";
+export * from "./ListOrganizationsResponse";
+export * from "./ListSamlConnectionsResponse";
+export * from "./ListScimDirectoriesResponse";
export * from "./ListScimGroupsResponse";
export * from "./ListScimUsersResponse";
+export * from "./Organization";
export * from "./RedeemSamlAccessCodeResponse";
+export * from "./RotateScimDirectoryBearerTokenResponse";
+export * from "./SamlConnection";
+export * from "./ScimDirectory";
export * from "./ScimGroup";
export * from "./ScimUser";
export * from "./Status";
+export * from "./UpdateOrganizationResponse";
+export * from "./UpdateSamlConnectionResponse";
+export * from "./UpdateScimDirectoryResponse";
diff --git a/yarn.lock b/yarn.lock
index fb66e3e..b8fe469 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -640,11 +640,11 @@
form-data "^4.0.0"
"@types/node@*":
- version "22.2.0"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-22.2.0.tgz#7cf046a99f0ba4d628ad3088cb21f790df9b0c5b"
- integrity sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==
+ version "22.4.0"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-22.4.0.tgz#c295fe1d6f5f58916cc61dbef8cf65b5b9b71de9"
+ integrity sha512-49AbMDwYUz7EXxKU/r7mXOsxwFr4BYbvB7tWYxVuLdb2ibd30ijjXINSMAHiEEZk5PCRBmW1gUeisn2VMKt3cQ==
dependencies:
- undici-types "~6.13.0"
+ undici-types "~6.19.2"
"@types/node@17.0.33":
version "17.0.33"
@@ -1103,9 +1103,9 @@ domexception@^4.0.0:
webidl-conversions "^7.0.0"
electron-to-chromium@^1.5.4:
- version "1.5.6"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.6.tgz#c81d9938b5a877314ad370feb73b4e5409b36abd"
- integrity sha512-jwXWsM5RPf6j9dPYzaorcBSUg6AiqocPEyMpkchkvntaH9HGfOOMZwxMJjDY/XEs3T5dM7uyH1VhRMkqUU9qVw==
+ version "1.5.9"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.9.tgz#3e92950e3a409d109371b7a153a9c5712e2509fd"
+ integrity sha512-HfkT8ndXR0SEkU8gBQQM3rz035bpE/hxkZ1YIt4KJPEFES68HfIU6LzKukH0H794Lm83WJtkSAMfEToxCs15VA==
emittery@^0.13.1:
version "0.13.1"
@@ -2533,10 +2533,10 @@ typescript@4.6.4:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9"
integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==
-undici-types@~6.13.0:
- version "6.13.0"
- resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.13.0.tgz#e3e79220ab8c81ed1496b5812471afd7cf075ea5"
- integrity sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==
+undici-types@~6.19.2:
+ version "6.19.6"
+ resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.6.tgz#e218c3df0987f4c0e0008ca00d6b6472d9b89b36"
+ integrity sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==
universalify@^0.2.0:
version "0.2.0"