Skip to content

Commit 7363259

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#481)
1 parent d498b37 commit 7363259

File tree

13 files changed

+49
-15
lines changed

13 files changed

+49
-15
lines changed

api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Methods:
3535

3636
Types:
3737

38+
- <code><a href="./src/resources/accounts/members.ts">MemberStatus</a></code>
3839
- <code><a href="./src/resources/accounts/members.ts">UserWithInviteCode</a></code>
3940
- <code><a href="./src/resources/accounts/members.ts">MemberListResponse</a></code>
4041
- <code><a href="./src/resources/accounts/members.ts">MemberDeleteResponse</a></code>
@@ -1190,6 +1191,7 @@ Methods:
11901191

11911192
Types:
11921193

1194+
- <code><a href="./src/resources/acm/total-tls.ts">TotalTLSCertificateAuthority</a></code>
11931195
- <code><a href="./src/resources/acm/total-tls.ts">TotalTLSCreateResponse</a></code>
11941196
- <code><a href="./src/resources/acm/total-tls.ts">TotalTLSGetResponse</a></code>
11951197

@@ -2780,6 +2782,7 @@ Methods:
27802782
Types:
27812783

27822784
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMap</a></code>
2785+
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMapKind</a></code>
27832786
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMapCreateResponse</a></code>
27842787
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMapDeleteResponse</a></code>
27852788
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMapGetResponse</a></code>

src/resources/accounts/accounts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export interface AccountGetParams {
192192

193193
export namespace Accounts {
194194
export import Members = MembersAPI.Members;
195+
export import MemberStatus = MembersAPI.MemberStatus;
195196
export import UserWithInviteCode = MembersAPI.UserWithInviteCode;
196197
export import MemberListResponse = MembersAPI.MemberListResponse;
197198
export import MemberDeleteResponse = MembersAPI.MemberDeleteResponse;

src/resources/accounts/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
export { Accounts } from './accounts';
4-
export { RoleGetResponse, RoleListParams, RoleGetParams, Roles } from './roles';
54
export {
5+
MemberStatus,
66
UserWithInviteCode,
77
MemberListResponse,
88
MemberDeleteResponse,
@@ -14,3 +14,4 @@ export {
1414
MemberListResponsesV4PagePaginationArray,
1515
Members,
1616
} from './members';
17+
export { RoleGetResponse, RoleListParams, RoleGetParams, Roles } from './roles';

src/resources/accounts/members.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ export class Members extends APIResource {
8686

8787
export class MemberListResponsesV4PagePaginationArray extends V4PagePaginationArray<MemberListResponse> {}
8888

89+
/**
90+
* Whether the user is a member of the organization or has an inivitation pending.
91+
*/
92+
export type MemberStatus = 'member' | 'invited';
93+
8994
export interface UserWithInviteCode {
9095
/**
9196
* Membership identifier tag.
@@ -292,6 +297,7 @@ export interface MemberGetParams {
292297
}
293298

294299
export namespace Members {
300+
export import MemberStatus = MembersAPI.MemberStatus;
295301
export import UserWithInviteCode = MembersAPI.UserWithInviteCode;
296302
export import MemberListResponse = MembersAPI.MemberListResponse;
297303
export import MemberDeleteResponse = MembersAPI.MemberDeleteResponse;

src/resources/acm/acm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export class ACM extends APIResource {
99

1010
export namespace ACM {
1111
export import TotalTLS = TotalTLSAPI.TotalTLS;
12+
export import TotalTLSCertificateAuthority = TotalTLSAPI.TotalTLSCertificateAuthority;
1213
export import TotalTLSCreateResponse = TotalTLSAPI.TotalTLSCreateResponse;
1314
export import TotalTLSGetResponse = TotalTLSAPI.TotalTLSGetResponse;
1415
export import TotalTLSCreateParams = TotalTLSAPI.TotalTLSCreateParams;

src/resources/acm/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
export { ACM } from './acm';
44
export {
5+
TotalTLSCertificateAuthority,
56
TotalTLSCreateResponse,
67
TotalTLSGetResponse,
78
TotalTLSCreateParams,

src/resources/acm/total-tls.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,21 @@ export class TotalTLS extends APIResource {
3333
}
3434
}
3535

36+
/**
37+
* The Certificate Authority that Total TLS certificates will be issued through.
38+
*/
39+
export type TotalTLSCertificateAuthority = 'google' | 'lets_encrypt';
40+
41+
/**
42+
* The Certificate Authority that Total TLS certificates will be issued through.
43+
*/
44+
export type TotalTLSCertificateAuthorityParam = 'google' | 'lets_encrypt';
45+
3646
export interface TotalTLSCreateResponse {
3747
/**
3848
* The Certificate Authority that Total TLS certificates will be issued through.
3949
*/
40-
certificate_authority?: 'google' | 'lets_encrypt';
50+
certificate_authority?: TotalTLSCertificateAuthority;
4151

4252
/**
4353
* If enabled, Total TLS will order a hostname specific TLS certificate for any
@@ -55,7 +65,7 @@ export interface TotalTLSGetResponse {
5565
/**
5666
* The Certificate Authority that Total TLS certificates will be issued through.
5767
*/
58-
certificate_authority?: 'google' | 'lets_encrypt';
68+
certificate_authority?: TotalTLSCertificateAuthority;
5969

6070
/**
6171
* If enabled, Total TLS will order a hostname specific TLS certificate for any
@@ -85,7 +95,7 @@ export interface TotalTLSCreateParams {
8595
* Body param: The Certificate Authority that Total TLS certificates will be issued
8696
* through.
8797
*/
88-
certificate_authority?: 'google' | 'lets_encrypt';
98+
certificate_authority?: TotalTLSCertificateAuthorityParam;
8999
}
90100

91101
export interface TotalTLSGetParams {
@@ -96,6 +106,7 @@ export interface TotalTLSGetParams {
96106
}
97107

98108
export namespace TotalTLS {
109+
export import TotalTLSCertificateAuthority = TotalTLSAPI.TotalTLSCertificateAuthority;
99110
export import TotalTLSCreateResponse = TotalTLSAPI.TotalTLSCreateResponse;
100111
export import TotalTLSGetResponse = TotalTLSAPI.TotalTLSGetResponse;
101112
export import TotalTLSCreateParams = TotalTLSAPI.TotalTLSCreateParams;

src/resources/addressing/address-maps/address-maps.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ export interface AddressMap {
143143
modified_at?: string;
144144
}
145145

146+
/**
147+
* The type of the membership.
148+
*/
149+
export type AddressMapKind = 'zone' | 'account';
150+
146151
export interface AddressMapCreateResponse {
147152
/**
148153
* Identifier
@@ -224,7 +229,7 @@ export namespace AddressMapCreateResponse {
224229
/**
225230
* The type of the membership.
226231
*/
227-
kind?: 'zone' | 'account';
232+
kind?: AddressMapsAPI.AddressMapKind;
228233
}
229234
}
230235

@@ -311,7 +316,7 @@ export namespace AddressMapGetResponse {
311316
/**
312317
* The type of the membership.
313318
*/
314-
kind?: 'zone' | 'account';
319+
kind?: AddressMapsAPI.AddressMapKind;
315320
}
316321
}
317322

@@ -385,6 +390,7 @@ export interface AddressMapGetParams {
385390

386391
export namespace AddressMaps {
387392
export import AddressMap = AddressMapsAPI.AddressMap;
393+
export import AddressMapKind = AddressMapsAPI.AddressMapKind;
388394
export import AddressMapCreateResponse = AddressMapsAPI.AddressMapCreateResponse;
389395
export import AddressMapDeleteResponse = AddressMapsAPI.AddressMapDeleteResponse;
390396
export import AddressMapGetResponse = AddressMapsAPI.AddressMapGetResponse;

src/resources/addressing/address-maps/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export {
99
} from './accounts';
1010
export {
1111
AddressMap,
12+
AddressMapKind,
1213
AddressMapCreateResponse,
1314
AddressMapDeleteResponse,
1415
AddressMapGetResponse,

src/resources/addressing/addressing.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export namespace Addressing {
2020
export import ServiceListParams = ServicesAPI.ServiceListParams;
2121
export import AddressMaps = AddressMapsAPI.AddressMaps;
2222
export import AddressMap = AddressMapsAPI.AddressMap;
23+
export import AddressMapKind = AddressMapsAPI.AddressMapKind;
2324
export import AddressMapCreateResponse = AddressMapsAPI.AddressMapCreateResponse;
2425
export import AddressMapDeleteResponse = AddressMapsAPI.AddressMapDeleteResponse;
2526
export import AddressMapGetResponse = AddressMapsAPI.AddressMapGetResponse;

0 commit comments

Comments
 (0)