Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and meorphis committed May 7, 2024
1 parent 27461c5 commit 82c7cbf
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 73 deletions.
3 changes: 1 addition & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4404,14 +4404,13 @@ Types:
Types:

- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedHeaders</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedHTTPMethods</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedIdPs</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedMethods</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedOrigins</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AppID</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">Application</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">ApplicationType</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">CORSHeaders</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">CustomPages</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaaSAppNameFormat</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaaSAppNameIDFormat</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaaSAppSource</a></code>
Expand Down
4 changes: 2 additions & 2 deletions src/resources/zero-trust/access/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -727,14 +727,13 @@ export namespace Access {
export import ServiceTokenRule = AccessAPI.ServiceTokenRule;
export import Applications = ApplicationsAPI.Applications;
export import AllowedHeaders = ApplicationsAPI.AllowedHeaders;
export import AllowedHTTPMethods = ApplicationsAPI.AllowedHTTPMethods;
export import AllowedIdPs = ApplicationsAPI.AllowedIdPs;
export import AllowedMethods = ApplicationsAPI.AllowedMethods;
export import AllowedOrigins = ApplicationsAPI.AllowedOrigins;
export import AppID = ApplicationsAPI.AppID;
export import Application = ApplicationsAPI.Application;
export import ApplicationType = ApplicationsAPI.ApplicationType;
export import CORSHeaders = ApplicationsAPI.CORSHeaders;
export import CustomPages = ApplicationsAPI.CustomPages;
export import SaaSAppNameFormat = ApplicationsAPI.SaaSAppNameFormat;
export import SaaSAppNameIDFormat = ApplicationsAPI.SaaSAppNameIDFormat;
export import SaaSAppSource = ApplicationsAPI.SaaSAppSource;
Expand Down Expand Up @@ -792,6 +791,7 @@ export namespace Access {
export import Users = UsersAPI.Users;
export import AccessUser = UsersAPI.AccessUser;
export import AccessUsersSinglePage = UsersAPI.AccessUsersSinglePage;
export import CustomPages = CustomPagesAPI.CustomPages;
export import CustomPage = CustomPagesAPI.CustomPage;
export import CustomPageWithoutHTML = CustomPagesAPI.CustomPageWithoutHTML;
export import CustomPageDeleteResponse = CustomPagesAPI.CustomPageDeleteResponse;
Expand Down
129 changes: 64 additions & 65 deletions src/resources/zero-trust/access/applications/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,46 +255,28 @@ export type AllowedHeaders = string;
export type AllowedHeadersParam = string;

/**
* Allowed HTTP request methods.
* The identity providers selected for application.
*/
export type AllowedHTTPMethods = Array<AllowedMethods>;
export type AllowedIdPs = string;

/**
* Allowed HTTP request methods.
* The identity providers selected for application.
*/
export type AllowedHTTPMethodsParam = Array<AllowedMethodsParam>;
export type AllowedIdPsParam = string;

/**
* The identity providers selected for application.
* Allowed HTTP request methods.
*/
export type AllowedIdPs = string;
export type AllowedMethods = Array<
'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'
>;

/**
* The identity providers selected for application.
* Allowed HTTP request methods.
*/
export type AllowedIdPsParam = string;

export type AllowedMethods =
| 'GET'
| 'POST'
| 'HEAD'
| 'PUT'
| 'DELETE'
| 'CONNECT'
| 'OPTIONS'
| 'TRACE'
| 'PATCH';

export type AllowedMethodsParam =
| 'GET'
| 'POST'
| 'HEAD'
| 'PUT'
| 'DELETE'
| 'CONNECT'
| 'OPTIONS'
| 'TRACE'
| 'PATCH';
export type AllowedMethodsParam = Array<
'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'
>;

export type AllowedOrigins = string;

Expand Down Expand Up @@ -393,7 +375,7 @@ export namespace Application {
/**
* The custom pages that will be displayed when applicable for this application
*/
custom_pages?: Array<ApplicationsAPI.CustomPages>;
custom_pages?: Array<string>;

/**
* Enables the binding cookie, which increases security against compromised
Expand Down Expand Up @@ -499,7 +481,7 @@ export namespace Application {
/**
* The custom pages that will be displayed when applicable for this application
*/
custom_pages?: Array<ApplicationsAPI.CustomPages>;
custom_pages?: Array<string>;

/**
* The image URL for the logo shown in the App Launcher dashboard.
Expand Down Expand Up @@ -691,7 +673,7 @@ export namespace Application {
/**
* The custom pages that will be displayed when applicable for this application
*/
custom_pages?: Array<ApplicationsAPI.CustomPages>;
custom_pages?: Array<string>;

/**
* Enables the binding cookie, which increases security against compromised
Expand Down Expand Up @@ -836,7 +818,7 @@ export namespace Application {
/**
* The custom pages that will be displayed when applicable for this application
*/
custom_pages?: Array<ApplicationsAPI.CustomPages>;
custom_pages?: Array<string>;

/**
* Enables the binding cookie, which increases security against compromised
Expand Down Expand Up @@ -913,7 +895,7 @@ export namespace Application {
/**
* The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationsAPI.ApplicationType;

/**
* UUID
Expand Down Expand Up @@ -964,7 +946,7 @@ export namespace Application {
/**
* The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationsAPI.ApplicationType;

/**
* UUID
Expand Down Expand Up @@ -1015,7 +997,7 @@ export namespace Application {
/**
* The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationsAPI.ApplicationType;

/**
* UUID
Expand Down Expand Up @@ -1110,6 +1092,34 @@ export namespace Application {
}
}

/**
* The application type.
*/
export type ApplicationType =
| 'self_hosted'
| 'saas'
| 'ssh'
| 'vnc'
| 'app_launcher'
| 'warp'
| 'biso'
| 'bookmark'
| 'dash_sso';

/**
* The application type.
*/
export type ApplicationTypeParam =
| 'self_hosted'
| 'saas'
| 'ssh'
| 'vnc'
| 'app_launcher'
| 'warp'
| 'biso'
| 'bookmark'
| 'dash_sso';

export interface CORSHeaders {
/**
* Allows all HTTP request headers.
Expand Down Expand Up @@ -1140,7 +1150,7 @@ export interface CORSHeaders {
/**
* Allowed HTTP request methods.
*/
allowed_methods?: AllowedHTTPMethods;
allowed_methods?: AllowedMethods;

/**
* Allowed origins.
Expand Down Expand Up @@ -1183,7 +1193,7 @@ export interface CORSHeadersParam {
/**
* Allowed HTTP request methods.
*/
allowed_methods?: AllowedHTTPMethodsParam;
allowed_methods?: AllowedMethodsParam;

/**
* Allowed origins.
Expand All @@ -1196,16 +1206,6 @@ export interface CORSHeadersParam {
max_age?: number;
}

/**
* The custom pages selected for application.
*/
export type CustomPages = string;

/**
* The custom pages selected for application.
*/
export type CustomPagesParam = string;

/**
* A globally unique name for an identity or service provider.
*/
Expand Down Expand Up @@ -1547,7 +1547,7 @@ export namespace ApplicationCreateParams {
* Body param: The custom pages that will be displayed when applicable for this
* application
*/
custom_pages?: Array<CustomPagesParam>;
custom_pages?: Array<string>;

/**
* Body param: Enables the binding cookie, which increases security against
Expand Down Expand Up @@ -1653,7 +1653,7 @@ export namespace ApplicationCreateParams {
* Body param: The custom pages that will be displayed when applicable for this
* application
*/
custom_pages?: Array<CustomPagesParam>;
custom_pages?: Array<string>;

/**
* Body param: The image URL for the logo shown in the App Launcher dashboard.
Expand Down Expand Up @@ -1847,7 +1847,7 @@ export namespace ApplicationCreateParams {
* Body param: The custom pages that will be displayed when applicable for this
* application
*/
custom_pages?: Array<CustomPagesParam>;
custom_pages?: Array<string>;

/**
* Body param: Enables the binding cookie, which increases security against
Expand Down Expand Up @@ -1996,7 +1996,7 @@ export namespace ApplicationCreateParams {
* Body param: The custom pages that will be displayed when applicable for this
* application
*/
custom_pages?: Array<CustomPagesParam>;
custom_pages?: Array<string>;

/**
* Body param: Enables the binding cookie, which increases security against
Expand Down Expand Up @@ -2072,7 +2072,7 @@ export namespace ApplicationCreateParams {
/**
* Body param: The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationTypeParam;

/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
Expand Down Expand Up @@ -2110,7 +2110,7 @@ export namespace ApplicationCreateParams {
/**
* Body param: The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationTypeParam;

/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
Expand Down Expand Up @@ -2148,7 +2148,7 @@ export namespace ApplicationCreateParams {
/**
* Body param: The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationTypeParam;

/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
Expand Down Expand Up @@ -2316,7 +2316,7 @@ export namespace ApplicationUpdateParams {
* Body param: The custom pages that will be displayed when applicable for this
* application
*/
custom_pages?: Array<CustomPagesParam>;
custom_pages?: Array<string>;

/**
* Body param: Enables the binding cookie, which increases security against
Expand Down Expand Up @@ -2422,7 +2422,7 @@ export namespace ApplicationUpdateParams {
* Body param: The custom pages that will be displayed when applicable for this
* application
*/
custom_pages?: Array<CustomPagesParam>;
custom_pages?: Array<string>;

/**
* Body param: The image URL for the logo shown in the App Launcher dashboard.
Expand Down Expand Up @@ -2616,7 +2616,7 @@ export namespace ApplicationUpdateParams {
* Body param: The custom pages that will be displayed when applicable for this
* application
*/
custom_pages?: Array<CustomPagesParam>;
custom_pages?: Array<string>;

/**
* Body param: Enables the binding cookie, which increases security against
Expand Down Expand Up @@ -2765,7 +2765,7 @@ export namespace ApplicationUpdateParams {
* Body param: The custom pages that will be displayed when applicable for this
* application
*/
custom_pages?: Array<CustomPagesParam>;
custom_pages?: Array<string>;

/**
* Body param: Enables the binding cookie, which increases security against
Expand Down Expand Up @@ -2841,7 +2841,7 @@ export namespace ApplicationUpdateParams {
/**
* Body param: The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationTypeParam;

/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
Expand Down Expand Up @@ -2879,7 +2879,7 @@ export namespace ApplicationUpdateParams {
/**
* Body param: The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationTypeParam;

/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
Expand Down Expand Up @@ -2917,7 +2917,7 @@ export namespace ApplicationUpdateParams {
/**
* Body param: The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
type: ApplicationTypeParam;

/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
Expand Down Expand Up @@ -3047,14 +3047,13 @@ export interface ApplicationRevokeTokensParams {

export namespace Applications {
export import AllowedHeaders = ApplicationsAPI.AllowedHeaders;
export import AllowedHTTPMethods = ApplicationsAPI.AllowedHTTPMethods;
export import AllowedIdPs = ApplicationsAPI.AllowedIdPs;
export import AllowedMethods = ApplicationsAPI.AllowedMethods;
export import AllowedOrigins = ApplicationsAPI.AllowedOrigins;
export import AppID = ApplicationsAPI.AppID;
export import Application = ApplicationsAPI.Application;
export import ApplicationType = ApplicationsAPI.ApplicationType;
export import CORSHeaders = ApplicationsAPI.CORSHeaders;
export import CustomPages = ApplicationsAPI.CustomPages;
export import SaaSAppNameFormat = ApplicationsAPI.SaaSAppNameFormat;
export import SaaSAppNameIDFormat = ApplicationsAPI.SaaSAppNameIDFormat;
export import SaaSAppSource = ApplicationsAPI.SaaSAppSource;
Expand Down
3 changes: 1 addition & 2 deletions src/resources/zero-trust/access/applications/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

export {
AllowedHeaders,
AllowedHTTPMethods,
AllowedIdPs,
AllowedMethods,
AllowedOrigins,
AppID,
Application,
ApplicationType,
CORSHeaders,
CustomPages,
SaaSAppNameFormat,
SaaSAppNameIDFormat,
SaaSAppSource,
Expand Down
Loading

0 comments on commit 82c7cbf

Please sign in to comment.