Skip to content

Commit bd337d2

Browse files
feat(api): Organizations Open API docs (#18)
1 parent 06e872d commit bd337d2

File tree

9 files changed

+563
-80
lines changed

9 files changed

+563
-80
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-0c37e687e2a070abfe49501156af6d906ff166b6eaad779ee6c2b568515f2b7e.yml

src/resources/organizations/domain-verifications.ts

+110-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,34 @@ import { RequestOptions } from '../../internal/request-options';
77

88
export class DomainVerifications extends APIResource {
99
/**
10-
* CreateDomainVerification creates a new domain verification request
10+
* Initiates domain verification process to enable organization features.
11+
*
12+
* Use this method to:
13+
*
14+
* - Start domain ownership verification
15+
* - Enable automatic team joining
16+
* - Set up SSO restrictions
17+
* - Configure email-based policies
18+
*
19+
* ### Examples
20+
*
21+
* - Verify primary domain:
22+
*
23+
* Starts verification for main company domain.
24+
*
25+
* ```yaml
26+
* organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
27+
* domain: "acme-corp.com"
28+
* ```
29+
*
30+
* - Verify subsidiary domain:
31+
*
32+
* Adds verification for additional company domain.
33+
*
34+
* ```yaml
35+
* organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
36+
* domain: "acme-subsidiary.com"
37+
* ```
1138
*/
1239
create(
1340
body: DomainVerificationCreateParams,
@@ -17,7 +44,23 @@ export class DomainVerifications extends APIResource {
1744
}
1845

1946
/**
20-
* GetDomainVerification retrieves a domain verification request
47+
* Retrieves the status of a domain verification request.
48+
*
49+
* Use this method to:
50+
*
51+
* - Check verification progress
52+
* - View verification requirements
53+
* - Monitor domain status
54+
*
55+
* ### Examples
56+
*
57+
* - Get verification status:
58+
*
59+
* Checks the current state of a domain verification.
60+
*
61+
* ```yaml
62+
* domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
63+
* ```
2164
*/
2265
retrieve(
2366
body: DomainVerificationRetrieveParams,
@@ -27,7 +70,37 @@ export class DomainVerifications extends APIResource {
2770
}
2871

2972
/**
30-
* ListDomainVerifications lists all domain verifications for an organization
73+
* Lists and monitors domain verification status across an organization.
74+
*
75+
* Use this method to:
76+
*
77+
* - Track verification progress
78+
* - View all verified domains
79+
* - Monitor pending verifications
80+
* - Audit domain settings
81+
*
82+
* ### Examples
83+
*
84+
* - List all verifications:
85+
*
86+
* Shows all domain verifications regardless of status.
87+
*
88+
* ```yaml
89+
* organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
90+
* pagination:
91+
* pageSize: 20
92+
* ```
93+
*
94+
* - List with pagination:
95+
*
96+
* Retrieves next page of verifications.
97+
*
98+
* ```yaml
99+
* organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
100+
* pagination:
101+
* pageSize: 20
102+
* token: "next-page-token-from-previous-response"
103+
* ```
31104
*/
32105
list(
33106
params: DomainVerificationListParams,
@@ -42,14 +115,46 @@ export class DomainVerifications extends APIResource {
42115
}
43116

44117
/**
45-
* DeleteDomainVerification deletes a domain verification request
118+
* Removes a domain verification request.
119+
*
120+
* Use this method to:
121+
*
122+
* - Cancel pending verifications
123+
* - Remove verified domains
124+
* - Clean up unused domain records
125+
*
126+
* ### Examples
127+
*
128+
* - Delete verification:
129+
*
130+
* Removes a domain verification request.
131+
*
132+
* ```yaml
133+
* domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
134+
* ```
46135
*/
47136
delete(body: DomainVerificationDeleteParams, options?: RequestOptions): APIPromise<unknown> {
48137
return this._client.post('/gitpod.v1.OrganizationService/DeleteDomainVerification', { body, ...options });
49138
}
50139

51140
/**
52-
* VerifyDomain verifies a domain ownership
141+
* Verifies domain ownership for an organization.
142+
*
143+
* Use this method to:
144+
*
145+
* - Complete domain verification process
146+
* - Enable domain-based features
147+
* - Validate DNS configuration
148+
*
149+
* ### Examples
150+
*
151+
* - Verify domain ownership:
152+
*
153+
* Verifies ownership after DNS records are configured.
154+
*
155+
* ```yaml
156+
* domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
157+
* ```
53158
*/
54159
verify(
55160
body: DomainVerificationVerifyParams,

src/resources/organizations/invites.ts

+36-5
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,55 @@ import { RequestOptions } from '../../internal/request-options';
66

77
export class Invites extends APIResource {
88
/**
9-
* CreateOrganizationInvite creates an invite for the organization. Any existing
9+
* Creates an invite link for joining an organization. Any existing
1010
* OrganizationInvites are invalidated and can no longer be used.
11+
*
12+
* Use this method to:
13+
*
14+
* - Generate shareable invite links
15+
* - Manage team growth
16+
* - Control organization access
17+
*
18+
* ### Examples
19+
*
20+
* - Create organization invite:
21+
*
22+
* Generates a new invite link for the organization.
23+
*
24+
* ```yaml
25+
* organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
26+
* ```
1127
*/
1228
create(body: InviteCreateParams, options?: RequestOptions): APIPromise<InviteCreateResponse> {
1329
return this._client.post('/gitpod.v1.OrganizationService/CreateOrganizationInvite', { body, ...options });
1430
}
1531

1632
/**
17-
* GetOrganizationInvite retrieves invite for the organization. If no invite
18-
* exists, a new one is created.
33+
* GetOrganizationInvite
1934
*/
2035
retrieve(body: InviteRetrieveParams, options?: RequestOptions): APIPromise<InviteRetrieveResponse> {
2136
return this._client.post('/gitpod.v1.OrganizationService/GetOrganizationInvite', { body, ...options });
2237
}
2338

2439
/**
25-
* GetOrganizationInviteSummary retrieves a summary of the organization based on an
26-
* Invite ID. Used to discover which organization an invite is for.
40+
* Retrieves organization details and membership info based on an invite link.
41+
*
42+
* Use this method to:
43+
*
44+
* - Preview organization details before joining
45+
* - Validate invite link authenticity
46+
* - Check organization size and activity
47+
* - View team information before accepting
48+
*
49+
* ### Examples
50+
*
51+
* - Get invite summary:
52+
*
53+
* Retrieves organization information from an invite.
54+
*
55+
* ```yaml
56+
* inviteId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
57+
* ```
2758
*/
2859
getSummary(body: InviteGetSummaryParams, options?: RequestOptions): APIPromise<InviteGetSummaryResponse> {
2960
return this._client.post('/gitpod.v1.OrganizationService/GetOrganizationInviteSummary', {

0 commit comments

Comments
 (0)