Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 10, 2024
1 parent 4de093d commit 0a7bb85
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 22 deletions.
1 change: 0 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4227,7 +4227,6 @@ Methods:
Types:

- <code><a href="./src/resources/zero-trust/access/access.ts">AccessRule</a></code>
- <code><a href="./src/resources/zero-trust/access/access.ts">AuthenticationMethodRule</a></code>
- <code><a href="./src/resources/zero-trust/access/access.ts">AzureGroupRule</a></code>
- <code><a href="./src/resources/zero-trust/access/access.ts">CertificateRule</a></code>
- <code><a href="./src/resources/zero-trust/access/access.ts">CountryRule</a></code>
Expand Down
35 changes: 17 additions & 18 deletions src/resources/zero-trust/access/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type AccessRule =
| AccessRule.AccessAnyValidServiceTokenRule
| ExternalEvaluationRule
| CountryRule
| AuthenticationMethodRule
| AccessRule.AccessAuthenticationMethodRule
| AccessRule.AccessDevicePostureRule;

export namespace AccessRule {
Expand All @@ -61,6 +61,22 @@ export namespace AccessRule {
any_valid_service_token: unknown;
}

/**
* Enforce different MFA options
*/
export interface AccessAuthenticationMethodRule {
auth_method: AccessAuthenticationMethodRule.AuthMethod;
}

export namespace AccessAuthenticationMethodRule {
export interface AuthMethod {
/**
* The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176.
*/
auth_method: string;
}
}

/**
* Enforces a device posture rule has run successfully
*/
Expand All @@ -78,22 +94,6 @@ export namespace AccessRule {
}
}

/**
* Enforce different MFA options
*/
export interface AuthenticationMethodRule {
auth_method: AuthenticationMethodRule.AuthMethod;
}

export namespace AuthenticationMethodRule {
export interface AuthMethod {
/**
* The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176.
*/
auth_method: string;
}
}

/**
* Matches an Azure group. Requires an Azure identity provider.
*/
Expand Down Expand Up @@ -369,7 +369,6 @@ export namespace ServiceTokenRule {

export namespace Access {
export import AccessRule = AccessAPI.AccessRule;
export import AuthenticationMethodRule = AccessAPI.AuthenticationMethodRule;
export import AzureGroupRule = AccessAPI.AzureGroupRule;
export import CertificateRule = AccessAPI.CertificateRule;
export import CountryRule = AccessAPI.CountryRule;
Expand Down
1 change: 0 additions & 1 deletion src/resources/zero-trust/access/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

export {
AccessRule,
AuthenticationMethodRule,
AzureGroupRule,
CertificateRule,
CountryRule,
Expand Down
1 change: 0 additions & 1 deletion src/resources/zero-trust/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

export {
AccessRule,
AuthenticationMethodRule,
AzureGroupRule,
CertificateRule,
CountryRule,
Expand Down
1 change: 0 additions & 1 deletion src/resources/zero-trust/zero-trust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export namespace ZeroTrust {
export import SeatEditParams = SeatsAPI.SeatEditParams;
export import Access = AccessAPI.Access;
export import AccessRule = AccessAPI.AccessRule;
export import AuthenticationMethodRule = AccessAPI.AuthenticationMethodRule;
export import AzureGroupRule = AccessAPI.AzureGroupRule;
export import CertificateRule = AccessAPI.CertificateRule;
export import CountryRule = AccessAPI.CountryRule;
Expand Down

0 comments on commit 0a7bb85

Please sign in to comment.