Skip to content

Commit c2df805

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#488)
1 parent 67f7f49 commit c2df805

File tree

5 files changed

+69
-73
lines changed

5 files changed

+69
-73
lines changed

api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4404,14 +4404,13 @@ Types:
44044404
Types:
44054405

44064406
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedHeaders</a></code>
4407-
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedHTTPMethods</a></code>
44084407
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedIdPs</a></code>
44094408
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedMethods</a></code>
44104409
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AllowedOrigins</a></code>
44114410
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">AppID</a></code>
44124411
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">Application</a></code>
4412+
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">ApplicationType</a></code>
44134413
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">CORSHeaders</a></code>
4414-
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">CustomPages</a></code>
44154414
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaaSAppNameFormat</a></code>
44164415
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaaSAppNameIDFormat</a></code>
44174416
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaaSAppSource</a></code>

src/resources/zero-trust/access/access.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,14 +727,13 @@ export namespace Access {
727727
export import ServiceTokenRule = AccessAPI.ServiceTokenRule;
728728
export import Applications = ApplicationsAPI.Applications;
729729
export import AllowedHeaders = ApplicationsAPI.AllowedHeaders;
730-
export import AllowedHTTPMethods = ApplicationsAPI.AllowedHTTPMethods;
731730
export import AllowedIdPs = ApplicationsAPI.AllowedIdPs;
732731
export import AllowedMethods = ApplicationsAPI.AllowedMethods;
733732
export import AllowedOrigins = ApplicationsAPI.AllowedOrigins;
734733
export import AppID = ApplicationsAPI.AppID;
735734
export import Application = ApplicationsAPI.Application;
735+
export import ApplicationType = ApplicationsAPI.ApplicationType;
736736
export import CORSHeaders = ApplicationsAPI.CORSHeaders;
737-
export import CustomPages = ApplicationsAPI.CustomPages;
738737
export import SaaSAppNameFormat = ApplicationsAPI.SaaSAppNameFormat;
739738
export import SaaSAppNameIDFormat = ApplicationsAPI.SaaSAppNameIDFormat;
740739
export import SaaSAppSource = ApplicationsAPI.SaaSAppSource;
@@ -792,6 +791,7 @@ export namespace Access {
792791
export import Users = UsersAPI.Users;
793792
export import AccessUser = UsersAPI.AccessUser;
794793
export import AccessUsersSinglePage = UsersAPI.AccessUsersSinglePage;
794+
export import CustomPages = CustomPagesAPI.CustomPages;
795795
export import CustomPage = CustomPagesAPI.CustomPage;
796796
export import CustomPageWithoutHTML = CustomPagesAPI.CustomPageWithoutHTML;
797797
export import CustomPageDeleteResponse = CustomPagesAPI.CustomPageDeleteResponse;

src/resources/zero-trust/access/applications/applications.ts

Lines changed: 64 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -255,46 +255,28 @@ export type AllowedHeaders = string;
255255
export type AllowedHeadersParam = string;
256256

257257
/**
258-
* Allowed HTTP request methods.
258+
* The identity providers selected for application.
259259
*/
260-
export type AllowedHTTPMethods = Array<AllowedMethods>;
260+
export type AllowedIdPs = string;
261261

262262
/**
263-
* Allowed HTTP request methods.
263+
* The identity providers selected for application.
264264
*/
265-
export type AllowedHTTPMethodsParam = Array<AllowedMethodsParam>;
265+
export type AllowedIdPsParam = string;
266266

267267
/**
268-
* The identity providers selected for application.
268+
* Allowed HTTP request methods.
269269
*/
270-
export type AllowedIdPs = string;
270+
export type AllowedMethods = Array<
271+
'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'
272+
>;
271273

272274
/**
273-
* The identity providers selected for application.
275+
* Allowed HTTP request methods.
274276
*/
275-
export type AllowedIdPsParam = string;
276-
277-
export type AllowedMethods =
278-
| 'GET'
279-
| 'POST'
280-
| 'HEAD'
281-
| 'PUT'
282-
| 'DELETE'
283-
| 'CONNECT'
284-
| 'OPTIONS'
285-
| 'TRACE'
286-
| 'PATCH';
287-
288-
export type AllowedMethodsParam =
289-
| 'GET'
290-
| 'POST'
291-
| 'HEAD'
292-
| 'PUT'
293-
| 'DELETE'
294-
| 'CONNECT'
295-
| 'OPTIONS'
296-
| 'TRACE'
297-
| 'PATCH';
277+
export type AllowedMethodsParam = Array<
278+
'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'
279+
>;
298280

299281
export type AllowedOrigins = string;
300282

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

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

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

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

841823
/**
842824
* Enables the binding cookie, which increases security against compromised
@@ -913,7 +895,7 @@ export namespace Application {
913895
/**
914896
* The application type.
915897
*/
916-
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
898+
type: ApplicationsAPI.ApplicationType;
917899

918900
/**
919901
* UUID
@@ -964,7 +946,7 @@ export namespace Application {
964946
/**
965947
* The application type.
966948
*/
967-
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
949+
type: ApplicationsAPI.ApplicationType;
968950

969951
/**
970952
* UUID
@@ -1015,7 +997,7 @@ export namespace Application {
1015997
/**
1016998
* The application type.
1017999
*/
1018-
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
1000+
type: ApplicationsAPI.ApplicationType;
10191001

10201002
/**
10211003
* UUID
@@ -1110,6 +1092,34 @@ export namespace Application {
11101092
}
11111093
}
11121094

1095+
/**
1096+
* The application type.
1097+
*/
1098+
export type ApplicationType =
1099+
| 'self_hosted'
1100+
| 'saas'
1101+
| 'ssh'
1102+
| 'vnc'
1103+
| 'app_launcher'
1104+
| 'warp'
1105+
| 'biso'
1106+
| 'bookmark'
1107+
| 'dash_sso';
1108+
1109+
/**
1110+
* The application type.
1111+
*/
1112+
export type ApplicationTypeParam =
1113+
| 'self_hosted'
1114+
| 'saas'
1115+
| 'ssh'
1116+
| 'vnc'
1117+
| 'app_launcher'
1118+
| 'warp'
1119+
| 'biso'
1120+
| 'bookmark'
1121+
| 'dash_sso';
1122+
11131123
export interface CORSHeaders {
11141124
/**
11151125
* Allows all HTTP request headers.
@@ -1140,7 +1150,7 @@ export interface CORSHeaders {
11401150
/**
11411151
* Allowed HTTP request methods.
11421152
*/
1143-
allowed_methods?: AllowedHTTPMethods;
1153+
allowed_methods?: AllowedMethods;
11441154

11451155
/**
11461156
* Allowed origins.
@@ -1183,7 +1193,7 @@ export interface CORSHeadersParam {
11831193
/**
11841194
* Allowed HTTP request methods.
11851195
*/
1186-
allowed_methods?: AllowedHTTPMethodsParam;
1196+
allowed_methods?: AllowedMethodsParam;
11871197

11881198
/**
11891199
* Allowed origins.
@@ -1196,16 +1206,6 @@ export interface CORSHeadersParam {
11961206
max_age?: number;
11971207
}
11981208

1199-
/**
1200-
* The custom pages selected for application.
1201-
*/
1202-
export type CustomPages = string;
1203-
1204-
/**
1205-
* The custom pages selected for application.
1206-
*/
1207-
export type CustomPagesParam = string;
1208-
12091209
/**
12101210
* A globally unique name for an identity or service provider.
12111211
*/
@@ -1547,7 +1547,7 @@ export namespace ApplicationCreateParams {
15471547
* Body param: The custom pages that will be displayed when applicable for this
15481548
* application
15491549
*/
1550-
custom_pages?: Array<CustomPagesParam>;
1550+
custom_pages?: Array<string>;
15511551

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

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

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

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

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

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

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

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

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

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

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

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

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

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

30483048
export namespace Applications {
30493049
export import AllowedHeaders = ApplicationsAPI.AllowedHeaders;
3050-
export import AllowedHTTPMethods = ApplicationsAPI.AllowedHTTPMethods;
30513050
export import AllowedIdPs = ApplicationsAPI.AllowedIdPs;
30523051
export import AllowedMethods = ApplicationsAPI.AllowedMethods;
30533052
export import AllowedOrigins = ApplicationsAPI.AllowedOrigins;
30543053
export import AppID = ApplicationsAPI.AppID;
30553054
export import Application = ApplicationsAPI.Application;
3055+
export import ApplicationType = ApplicationsAPI.ApplicationType;
30563056
export import CORSHeaders = ApplicationsAPI.CORSHeaders;
3057-
export import CustomPages = ApplicationsAPI.CustomPages;
30583057
export import SaaSAppNameFormat = ApplicationsAPI.SaaSAppNameFormat;
30593058
export import SaaSAppNameIDFormat = ApplicationsAPI.SaaSAppNameIDFormat;
30603059
export import SaaSAppSource = ApplicationsAPI.SaaSAppSource;

src/resources/zero-trust/access/applications/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
export {
44
AllowedHeaders,
5-
AllowedHTTPMethods,
65
AllowedIdPs,
76
AllowedMethods,
87
AllowedOrigins,
98
AppID,
109
Application,
10+
ApplicationType,
1111
CORSHeaders,
12-
CustomPages,
1312
SaaSAppNameFormat,
1413
SaaSAppNameIDFormat,
1514
SaaSAppSource,

0 commit comments

Comments
 (0)