@@ -7,7 +7,34 @@ import { RequestOptions } from '../../internal/request-options';
7
7
8
8
export class DomainVerifications extends APIResource {
9
9
/**
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
+ * ```
11
38
*/
12
39
create (
13
40
body : DomainVerificationCreateParams ,
@@ -17,7 +44,23 @@ export class DomainVerifications extends APIResource {
17
44
}
18
45
19
46
/**
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
+ * ```
21
64
*/
22
65
retrieve (
23
66
body : DomainVerificationRetrieveParams ,
@@ -27,7 +70,37 @@ export class DomainVerifications extends APIResource {
27
70
}
28
71
29
72
/**
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
+ * ```
31
104
*/
32
105
list (
33
106
params : DomainVerificationListParams ,
@@ -42,14 +115,46 @@ export class DomainVerifications extends APIResource {
42
115
}
43
116
44
117
/**
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
+ * ```
46
135
*/
47
136
delete ( body : DomainVerificationDeleteParams , options ?: RequestOptions ) : APIPromise < unknown > {
48
137
return this . _client . post ( '/gitpod.v1.OrganizationService/DeleteDomainVerification' , { body, ...options } ) ;
49
138
}
50
139
51
140
/**
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
+ * ```
53
158
*/
54
159
verify (
55
160
body : DomainVerificationVerifyParams ,
0 commit comments