Skip to content

Commit

Permalink
SDK regeneration (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored May 28, 2024
1 parent 4da7254 commit 62dcd48
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssoready",
"version": "0.1.1",
"version": "0.2.0",
"private": false,
"repository": "https://github.com/ssoready/ssoready-typescript",
"main": "./index.js",
Expand Down
13 changes: 6 additions & 7 deletions reference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Saml

<details><summary> <code>ssoReady.saml.<a href="./src/api/resources/saml/client/Client.ts">redeemAccessCode</a>({ ...params }) -> SSOReady.RedeemSamlAccessCodeResponse</code> </summary>
<details><summary> <code>ssoReady.saml.<a href="./src/api/resources/saml/client/Client.ts">redeemSamlAccessCode</a>({ ...params }) -> SSOReady.RedeemSamlAccessCodeResponse</code> </summary>

<dl>

Expand Down Expand Up @@ -37,8 +37,8 @@ Exchange a SAML access code for details about a SAML login.
<dd>

```ts
await ssoReady.saml.redeemAccessCode({
samlAccessCode: "saml_access_code_94d90b43a2027a9084bfc792",
await ssoReady.saml.redeemSamlAccessCode({
samlAccessCode: "saml_access_code_...",
});
```

Expand Down Expand Up @@ -85,7 +85,7 @@ await ssoReady.saml.redeemAccessCode({
</dl>
</details>

<details><summary> <code>ssoReady.saml.<a href="./src/api/resources/saml/client/Client.ts">getRedirectUrl</a>({ ...params }) -> SSOReady.GetSamlRedirectUrlResponse</code> </summary>
<details><summary> <code>ssoReady.saml.<a href="./src/api/resources/saml/client/Client.ts">getSamlRedirectUrl</a>({ ...params }) -> SSOReady.GetSamlRedirectUrlResponse</code> </summary>

<dl>

Expand Down Expand Up @@ -122,9 +122,8 @@ Get a URL to initiate a SAML login.
<dd>

```ts
await ssoReady.saml.getRedirectUrl({
samlConnectionId: "saml_conn_ac3bzzoqhaa88ozk29hhv12l",
organizationId: "org_7cu5hsy9vrbi5d2k1qvbh19lj",
await ssoReady.saml.getSamlRedirectUrl({
organizationExternalId: "my_custom_external_id",
});
```

Expand Down
17 changes: 8 additions & 9 deletions src/api/resources/saml/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export class Saml {
* @param {Saml.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await ssoReady.saml.redeemAccessCode({
* samlAccessCode: "saml_access_code_94d90b43a2027a9084bfc792"
* await ssoReady.saml.redeemSamlAccessCode({
* samlAccessCode: "saml_access_code_..."
* })
*/
public async redeemAccessCode(
public async redeemSamlAccessCode(
request: SSOReady.RedeemSamlAccessCodeRequest = {},
requestOptions?: Saml.RequestOptions
): Promise<SSOReady.RedeemSamlAccessCodeResponse> {
Expand All @@ -50,7 +50,7 @@ export class Saml {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ssoready",
"X-Fern-SDK-Version": "0.1.1",
"X-Fern-SDK-Version": "0.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -100,12 +100,11 @@ export class Saml {
* @param {Saml.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await ssoReady.saml.getRedirectUrl({
* samlConnectionId: "saml_conn_ac3bzzoqhaa88ozk29hhv12l",
* organizationId: "org_7cu5hsy9vrbi5d2k1qvbh19lj"
* await ssoReady.saml.getSamlRedirectUrl({
* organizationExternalId: "my_custom_external_id"
* })
*/
public async getRedirectUrl(
public async getSamlRedirectUrl(
request: SSOReady.GetSamlRedirectUrlRequest = {},
requestOptions?: Saml.RequestOptions
): Promise<SSOReady.GetSamlRedirectUrlResponse> {
Expand All @@ -119,7 +118,7 @@ export class Saml {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ssoready",
"X-Fern-SDK-Version": "0.1.1",
"X-Fern-SDK-Version": "0.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
/**
* @example
* {
* samlConnectionId: "saml_conn_ac3bzzoqhaa88ozk29hhv12l",
* organizationId: "org_7cu5hsy9vrbi5d2k1qvbh19lj"
* organizationExternalId: "my_custom_external_id"
* }
*/
export interface GetSamlRedirectUrlRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* @example
* {
* samlAccessCode: "saml_access_code_94d90b43a2027a9084bfc792"
* samlAccessCode: "saml_access_code_..."
* }
*/
export interface RedeemSamlAccessCodeRequest {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,9 @@ domexception@^4.0.0:
webidl-conversions "^7.0.0"

electron-to-chromium@^1.4.668:
version "1.4.782"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.782.tgz#726d7916f0f0a80524c2a2a19e5dceb60d35ce0e"
integrity sha512-JUfU61e8tr+i5Y1FKXcKs+Xe+rJ+CEqm4cgv1kMihPE2EvYHmYyVr3Im/+1+Z5B29Be2EEGCZCwAc6Tazdl1Yg==
version "1.4.783"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.783.tgz#933887165b8b6025a81663d2d97cf4b85cde27b2"
integrity sha512-bT0jEz/Xz1fahQpbZ1D7LgmPYZ3iHVY39NcWWro1+hA2IvjiPeaXtfSqrQ+nXjApMvQRE2ASt1itSLRrebHMRQ==

emittery@^0.13.1:
version "0.13.1"
Expand Down

0 comments on commit 62dcd48

Please sign in to comment.