@augno/sdk 0.11.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/package.json +1 -1
- package/resources/core/audit-events.d.mts +3 -3
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +3 -3
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +2 -2
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +2 -2
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs.map +1 -1
- package/resources/messaging/conversations/conversations.d.mts +3 -3
- package/resources/messaging/conversations/conversations.d.mts.map +1 -1
- package/resources/messaging/conversations/conversations.d.ts +3 -3
- package/resources/messaging/conversations/conversations.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.js.map +1 -1
- package/resources/messaging/conversations/conversations.mjs.map +1 -1
- package/resources/messaging/conversations/links.d.mts +2 -2
- package/resources/messaging/conversations/links.d.mts.map +1 -1
- package/resources/messaging/conversations/links.d.ts +2 -2
- package/resources/messaging/conversations/links.d.ts.map +1 -1
- package/resources/messaging/conversations/messages.d.mts +2 -2
- package/resources/messaging/conversations/messages.d.mts.map +1 -1
- package/resources/messaging/conversations/messages.d.ts +2 -2
- package/resources/messaging/conversations/messages.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.d.mts +2 -2
- package/resources/messaging/notifications/notifications.d.mts.map +1 -1
- package/resources/messaging/notifications/notifications.d.ts +2 -2
- package/resources/messaging/notifications/notifications.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.js.map +1 -1
- package/resources/messaging/notifications/notifications.mjs.map +1 -1
- package/resources/settings/index.d.mts +1 -0
- package/resources/settings/index.d.mts.map +1 -1
- package/resources/settings/index.d.ts +1 -0
- package/resources/settings/index.d.ts.map +1 -1
- package/resources/settings/index.js +3 -1
- package/resources/settings/index.js.map +1 -1
- package/resources/settings/index.mjs +1 -0
- package/resources/settings/index.mjs.map +1 -1
- package/resources/settings/portal-domains/actions.d.mts +28 -0
- package/resources/settings/portal-domains/actions.d.mts.map +1 -0
- package/resources/settings/portal-domains/actions.d.ts +28 -0
- package/resources/settings/portal-domains/actions.d.ts.map +1 -0
- package/resources/settings/portal-domains/actions.js +33 -0
- package/resources/settings/portal-domains/actions.js.map +1 -0
- package/resources/settings/portal-domains/actions.mjs +29 -0
- package/resources/settings/portal-domains/actions.mjs.map +1 -0
- package/resources/settings/portal-domains/index.d.mts +3 -0
- package/resources/settings/portal-domains/index.d.mts.map +1 -0
- package/resources/settings/portal-domains/index.d.ts +3 -0
- package/resources/settings/portal-domains/index.d.ts.map +1 -0
- package/resources/settings/portal-domains/index.js +9 -0
- package/resources/settings/portal-domains/index.js.map +1 -0
- package/resources/settings/portal-domains/index.mjs +4 -0
- package/resources/settings/portal-domains/index.mjs.map +1 -0
- package/resources/settings/portal-domains/portal-domains.d.mts +212 -0
- package/resources/settings/portal-domains/portal-domains.d.mts.map +1 -0
- package/resources/settings/portal-domains/portal-domains.d.ts +212 -0
- package/resources/settings/portal-domains/portal-domains.d.ts.map +1 -0
- package/resources/settings/portal-domains/portal-domains.js +93 -0
- package/resources/settings/portal-domains/portal-domains.js.map +1 -0
- package/resources/settings/portal-domains/portal-domains.mjs +88 -0
- package/resources/settings/portal-domains/portal-domains.mjs.map +1 -0
- package/resources/settings/portal-domains.d.mts +2 -0
- package/resources/settings/portal-domains.d.mts.map +1 -0
- package/resources/settings/portal-domains.d.ts +2 -0
- package/resources/settings/portal-domains.d.ts.map +1 -0
- package/resources/settings/portal-domains.js +6 -0
- package/resources/settings/portal-domains.js.map +1 -0
- package/resources/settings/portal-domains.mjs +3 -0
- package/resources/settings/portal-domains.mjs.map +1 -0
- package/resources/settings/settings.d.mts +4 -0
- package/resources/settings/settings.d.mts.map +1 -1
- package/resources/settings/settings.d.ts +4 -0
- package/resources/settings/settings.d.ts.map +1 -1
- package/resources/settings/settings.js +4 -0
- package/resources/settings/settings.js.map +1 -1
- package/resources/settings/settings.mjs +4 -0
- package/resources/settings/settings.mjs.map +1 -1
- package/src/resources/core/audit-events.ts +6 -0
- package/src/resources/core/core.ts +4 -0
- package/src/resources/messaging/conversations/conversations.ts +6 -0
- package/src/resources/messaging/conversations/links.ts +4 -0
- package/src/resources/messaging/conversations/messages.ts +4 -0
- package/src/resources/messaging/notifications/notifications.ts +4 -0
- package/src/resources/settings/index.ts +10 -0
- package/src/resources/settings/portal-domains/actions.ts +33 -0
- package/src/resources/settings/portal-domains/index.ts +13 -0
- package/src/resources/settings/portal-domains/portal-domains.ts +260 -0
- package/src/resources/settings/portal-domains.ts +3 -0
- package/src/resources/settings/settings.ts +24 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as APIKeysAPI from "../../auth/api-keys/api-keys.mjs";
|
|
3
|
+
import * as ActionsAPI from "./actions.mjs";
|
|
4
|
+
import { Actions } from "./actions.mjs";
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Connect a custom domain to the account's customer portal, verify its DNS, and resolve custom hosts to portal accounts.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PortalDomains extends APIResource {
|
|
11
|
+
actions: ActionsAPI.Actions;
|
|
12
|
+
/**
|
|
13
|
+
* Connects a custom domain to the account's customer portal and returns the DNS
|
|
14
|
+
* records to publish.
|
|
15
|
+
*
|
|
16
|
+
* Each account can have one custom domain. The domain starts in `pending` until
|
|
17
|
+
* its DNS is verified.
|
|
18
|
+
*
|
|
19
|
+
* This endpoint requires the permission: `self:update`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const portalDomain =
|
|
24
|
+
* await client.settings.portalDomains.create({
|
|
25
|
+
* domain: 'shop.acme.com',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(body: PortalDomainCreateParams, options?: RequestOptions): APIPromise<PortalDomain>;
|
|
30
|
+
/**
|
|
31
|
+
* Lists the account's portal domains.
|
|
32
|
+
*
|
|
33
|
+
* Accounts currently have at most one custom portal domain.
|
|
34
|
+
*
|
|
35
|
+
* This endpoint requires the permission: `self:read`.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const listPortalDomain =
|
|
40
|
+
* await client.settings.portalDomains.list();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
list(options?: RequestOptions): APIPromise<ListPortalDomain>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a single portal domain, including the DNS records the customer must
|
|
46
|
+
* publish.
|
|
47
|
+
*
|
|
48
|
+
* This endpoint requires the permission: `self:read`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const portalDomain =
|
|
53
|
+
* await client.settings.portalDomains.retrieve(
|
|
54
|
+
* 'podn_018e88072d1320808dc9aab42',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PortalDomain>;
|
|
59
|
+
/**
|
|
60
|
+
* Disconnects the custom domain from the account's customer portal.
|
|
61
|
+
*
|
|
62
|
+
* The domain is detached from the serving infrastructure and immediately stops
|
|
63
|
+
* serving the portal.
|
|
64
|
+
*
|
|
65
|
+
* This endpoint requires the permission: `self:update`.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const portalDomain =
|
|
70
|
+
* await client.settings.portalDomains.delete(
|
|
71
|
+
* 'podn_018e88072d1320808dc9aab42',
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
delete(id: string, options?: RequestOptions): APIPromise<PortalDomainDeleteResponse>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Request to connect a custom domain to the account's customer portal.
|
|
79
|
+
*/
|
|
80
|
+
export interface CreatePortalDomainRequest {
|
|
81
|
+
/**
|
|
82
|
+
* The fully-qualified domain name to connect (e.g. `shop.acme.com`). Subdomains
|
|
83
|
+
* are recommended; apex domains are supported via an A record.
|
|
84
|
+
*/
|
|
85
|
+
domain: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* A DNS record the customer must publish for their portal domain.
|
|
89
|
+
*/
|
|
90
|
+
export interface DNSRecord {
|
|
91
|
+
/**
|
|
92
|
+
* Record name (host) to publish.
|
|
93
|
+
*/
|
|
94
|
+
name: string;
|
|
95
|
+
/**
|
|
96
|
+
* Resource type identifier.
|
|
97
|
+
*/
|
|
98
|
+
object: 'dns_record';
|
|
99
|
+
/**
|
|
100
|
+
* Why the record is needed.
|
|
101
|
+
*
|
|
102
|
+
* Routing records point traffic at the portal's serving infrastructure; ownership
|
|
103
|
+
* records prove control of a domain that is claimed elsewhere.
|
|
104
|
+
*/
|
|
105
|
+
reason: 'routing' | 'ownership';
|
|
106
|
+
/**
|
|
107
|
+
* Record type.
|
|
108
|
+
*/
|
|
109
|
+
type: 'CNAME' | 'A' | 'TXT';
|
|
110
|
+
/**
|
|
111
|
+
* Record value to publish.
|
|
112
|
+
*/
|
|
113
|
+
value: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* List represents a paginated list of resources.
|
|
117
|
+
*/
|
|
118
|
+
export interface ListDNSRecord {
|
|
119
|
+
/**
|
|
120
|
+
* Resources in this page.
|
|
121
|
+
*/
|
|
122
|
+
data: Array<DNSRecord>;
|
|
123
|
+
/**
|
|
124
|
+
* Resource type identifier.
|
|
125
|
+
*/
|
|
126
|
+
object: 'list';
|
|
127
|
+
/**
|
|
128
|
+
* PageInfo contains URL-based pagination metadata.
|
|
129
|
+
*/
|
|
130
|
+
page_info: APIKeysAPI.PageInfo;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* List represents a paginated list of resources.
|
|
134
|
+
*/
|
|
135
|
+
export interface ListPortalDomain {
|
|
136
|
+
/**
|
|
137
|
+
* Resources in this page.
|
|
138
|
+
*/
|
|
139
|
+
data: Array<PortalDomain>;
|
|
140
|
+
/**
|
|
141
|
+
* Resource type identifier.
|
|
142
|
+
*/
|
|
143
|
+
object: 'list';
|
|
144
|
+
/**
|
|
145
|
+
* PageInfo contains URL-based pagination metadata.
|
|
146
|
+
*/
|
|
147
|
+
page_info: APIKeysAPI.PageInfo;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* A custom domain that serves the account's customer portal (e.g.
|
|
151
|
+
* `shop.acme.com`).
|
|
152
|
+
*
|
|
153
|
+
* After creation the domain starts in `pending`; publish the returned DNS records,
|
|
154
|
+
* then poll the verify action. Once DNS is correct the domain moves to `securing`
|
|
155
|
+
* while its TLS certificate is issued — it is not yet reachable over HTTPS during
|
|
156
|
+
* this window — and finally to `verified` once the certificate is live and the
|
|
157
|
+
* portal is served on the domain.
|
|
158
|
+
*/
|
|
159
|
+
export interface PortalDomain {
|
|
160
|
+
/**
|
|
161
|
+
* Portal domain ID.
|
|
162
|
+
*/
|
|
163
|
+
id: string;
|
|
164
|
+
/**
|
|
165
|
+
* Creation timestamp.
|
|
166
|
+
*/
|
|
167
|
+
created_at: string;
|
|
168
|
+
/**
|
|
169
|
+
* List represents a paginated list of resources.
|
|
170
|
+
*/
|
|
171
|
+
dns_records: ListDNSRecord | null;
|
|
172
|
+
/**
|
|
173
|
+
* The fully-qualified domain name (e.g. `shop.acme.com`).
|
|
174
|
+
*/
|
|
175
|
+
domain: string;
|
|
176
|
+
/**
|
|
177
|
+
* Resource type identifier.
|
|
178
|
+
*/
|
|
179
|
+
object: 'portal_domain';
|
|
180
|
+
/**
|
|
181
|
+
* Verification status.
|
|
182
|
+
*
|
|
183
|
+
* - pending domains await DNS configuration
|
|
184
|
+
* - securing domains have correct DNS and are waiting on TLS certificate issuance;
|
|
185
|
+
* the portal is not yet reachable over HTTPS
|
|
186
|
+
* - verified domains serve the portal over HTTPS
|
|
187
|
+
* - failed domains were rejected and cannot be used
|
|
188
|
+
*/
|
|
189
|
+
status: 'pending' | 'securing' | 'verified' | 'failed';
|
|
190
|
+
/**
|
|
191
|
+
* Last updated timestamp.
|
|
192
|
+
*/
|
|
193
|
+
updated_at: string;
|
|
194
|
+
/**
|
|
195
|
+
* When the domain's DNS configuration was confirmed.
|
|
196
|
+
*/
|
|
197
|
+
verified_at: string | null;
|
|
198
|
+
}
|
|
199
|
+
export interface PortalDomainDeleteResponse {
|
|
200
|
+
}
|
|
201
|
+
export interface PortalDomainCreateParams {
|
|
202
|
+
/**
|
|
203
|
+
* The fully-qualified domain name to connect (e.g. `shop.acme.com`). Subdomains
|
|
204
|
+
* are recommended; apex domains are supported via an A record.
|
|
205
|
+
*/
|
|
206
|
+
domain: string;
|
|
207
|
+
}
|
|
208
|
+
export declare namespace PortalDomains {
|
|
209
|
+
export { type CreatePortalDomainRequest as CreatePortalDomainRequest, type DNSRecord as DNSRecord, type ListDNSRecord as ListDNSRecord, type ListPortalDomain as ListPortalDomain, type PortalDomain as PortalDomain, type PortalDomainDeleteResponse as PortalDomainDeleteResponse, type PortalDomainCreateParams as PortalDomainCreateParams, };
|
|
210
|
+
export { Actions as Actions };
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=portal-domains.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-domains.d.mts","sourceRoot":"","sources":["../../../src/resources/settings/portal-domains/portal-domains.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as APIKeysAPI from "../../auth/api-keys/api-keys.js";
|
|
3
|
+
import * as ActionsAPI from "./actions.js";
|
|
4
|
+
import { Actions } from "./actions.js";
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
|
+
/**
|
|
8
|
+
* Connect a custom domain to the account's customer portal, verify its DNS, and resolve custom hosts to portal accounts.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PortalDomains extends APIResource {
|
|
11
|
+
actions: ActionsAPI.Actions;
|
|
12
|
+
/**
|
|
13
|
+
* Connects a custom domain to the account's customer portal and returns the DNS
|
|
14
|
+
* records to publish.
|
|
15
|
+
*
|
|
16
|
+
* Each account can have one custom domain. The domain starts in `pending` until
|
|
17
|
+
* its DNS is verified.
|
|
18
|
+
*
|
|
19
|
+
* This endpoint requires the permission: `self:update`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const portalDomain =
|
|
24
|
+
* await client.settings.portalDomains.create({
|
|
25
|
+
* domain: 'shop.acme.com',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(body: PortalDomainCreateParams, options?: RequestOptions): APIPromise<PortalDomain>;
|
|
30
|
+
/**
|
|
31
|
+
* Lists the account's portal domains.
|
|
32
|
+
*
|
|
33
|
+
* Accounts currently have at most one custom portal domain.
|
|
34
|
+
*
|
|
35
|
+
* This endpoint requires the permission: `self:read`.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const listPortalDomain =
|
|
40
|
+
* await client.settings.portalDomains.list();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
list(options?: RequestOptions): APIPromise<ListPortalDomain>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a single portal domain, including the DNS records the customer must
|
|
46
|
+
* publish.
|
|
47
|
+
*
|
|
48
|
+
* This endpoint requires the permission: `self:read`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const portalDomain =
|
|
53
|
+
* await client.settings.portalDomains.retrieve(
|
|
54
|
+
* 'podn_018e88072d1320808dc9aab42',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PortalDomain>;
|
|
59
|
+
/**
|
|
60
|
+
* Disconnects the custom domain from the account's customer portal.
|
|
61
|
+
*
|
|
62
|
+
* The domain is detached from the serving infrastructure and immediately stops
|
|
63
|
+
* serving the portal.
|
|
64
|
+
*
|
|
65
|
+
* This endpoint requires the permission: `self:update`.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const portalDomain =
|
|
70
|
+
* await client.settings.portalDomains.delete(
|
|
71
|
+
* 'podn_018e88072d1320808dc9aab42',
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
delete(id: string, options?: RequestOptions): APIPromise<PortalDomainDeleteResponse>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Request to connect a custom domain to the account's customer portal.
|
|
79
|
+
*/
|
|
80
|
+
export interface CreatePortalDomainRequest {
|
|
81
|
+
/**
|
|
82
|
+
* The fully-qualified domain name to connect (e.g. `shop.acme.com`). Subdomains
|
|
83
|
+
* are recommended; apex domains are supported via an A record.
|
|
84
|
+
*/
|
|
85
|
+
domain: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* A DNS record the customer must publish for their portal domain.
|
|
89
|
+
*/
|
|
90
|
+
export interface DNSRecord {
|
|
91
|
+
/**
|
|
92
|
+
* Record name (host) to publish.
|
|
93
|
+
*/
|
|
94
|
+
name: string;
|
|
95
|
+
/**
|
|
96
|
+
* Resource type identifier.
|
|
97
|
+
*/
|
|
98
|
+
object: 'dns_record';
|
|
99
|
+
/**
|
|
100
|
+
* Why the record is needed.
|
|
101
|
+
*
|
|
102
|
+
* Routing records point traffic at the portal's serving infrastructure; ownership
|
|
103
|
+
* records prove control of a domain that is claimed elsewhere.
|
|
104
|
+
*/
|
|
105
|
+
reason: 'routing' | 'ownership';
|
|
106
|
+
/**
|
|
107
|
+
* Record type.
|
|
108
|
+
*/
|
|
109
|
+
type: 'CNAME' | 'A' | 'TXT';
|
|
110
|
+
/**
|
|
111
|
+
* Record value to publish.
|
|
112
|
+
*/
|
|
113
|
+
value: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* List represents a paginated list of resources.
|
|
117
|
+
*/
|
|
118
|
+
export interface ListDNSRecord {
|
|
119
|
+
/**
|
|
120
|
+
* Resources in this page.
|
|
121
|
+
*/
|
|
122
|
+
data: Array<DNSRecord>;
|
|
123
|
+
/**
|
|
124
|
+
* Resource type identifier.
|
|
125
|
+
*/
|
|
126
|
+
object: 'list';
|
|
127
|
+
/**
|
|
128
|
+
* PageInfo contains URL-based pagination metadata.
|
|
129
|
+
*/
|
|
130
|
+
page_info: APIKeysAPI.PageInfo;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* List represents a paginated list of resources.
|
|
134
|
+
*/
|
|
135
|
+
export interface ListPortalDomain {
|
|
136
|
+
/**
|
|
137
|
+
* Resources in this page.
|
|
138
|
+
*/
|
|
139
|
+
data: Array<PortalDomain>;
|
|
140
|
+
/**
|
|
141
|
+
* Resource type identifier.
|
|
142
|
+
*/
|
|
143
|
+
object: 'list';
|
|
144
|
+
/**
|
|
145
|
+
* PageInfo contains URL-based pagination metadata.
|
|
146
|
+
*/
|
|
147
|
+
page_info: APIKeysAPI.PageInfo;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* A custom domain that serves the account's customer portal (e.g.
|
|
151
|
+
* `shop.acme.com`).
|
|
152
|
+
*
|
|
153
|
+
* After creation the domain starts in `pending`; publish the returned DNS records,
|
|
154
|
+
* then poll the verify action. Once DNS is correct the domain moves to `securing`
|
|
155
|
+
* while its TLS certificate is issued — it is not yet reachable over HTTPS during
|
|
156
|
+
* this window — and finally to `verified` once the certificate is live and the
|
|
157
|
+
* portal is served on the domain.
|
|
158
|
+
*/
|
|
159
|
+
export interface PortalDomain {
|
|
160
|
+
/**
|
|
161
|
+
* Portal domain ID.
|
|
162
|
+
*/
|
|
163
|
+
id: string;
|
|
164
|
+
/**
|
|
165
|
+
* Creation timestamp.
|
|
166
|
+
*/
|
|
167
|
+
created_at: string;
|
|
168
|
+
/**
|
|
169
|
+
* List represents a paginated list of resources.
|
|
170
|
+
*/
|
|
171
|
+
dns_records: ListDNSRecord | null;
|
|
172
|
+
/**
|
|
173
|
+
* The fully-qualified domain name (e.g. `shop.acme.com`).
|
|
174
|
+
*/
|
|
175
|
+
domain: string;
|
|
176
|
+
/**
|
|
177
|
+
* Resource type identifier.
|
|
178
|
+
*/
|
|
179
|
+
object: 'portal_domain';
|
|
180
|
+
/**
|
|
181
|
+
* Verification status.
|
|
182
|
+
*
|
|
183
|
+
* - pending domains await DNS configuration
|
|
184
|
+
* - securing domains have correct DNS and are waiting on TLS certificate issuance;
|
|
185
|
+
* the portal is not yet reachable over HTTPS
|
|
186
|
+
* - verified domains serve the portal over HTTPS
|
|
187
|
+
* - failed domains were rejected and cannot be used
|
|
188
|
+
*/
|
|
189
|
+
status: 'pending' | 'securing' | 'verified' | 'failed';
|
|
190
|
+
/**
|
|
191
|
+
* Last updated timestamp.
|
|
192
|
+
*/
|
|
193
|
+
updated_at: string;
|
|
194
|
+
/**
|
|
195
|
+
* When the domain's DNS configuration was confirmed.
|
|
196
|
+
*/
|
|
197
|
+
verified_at: string | null;
|
|
198
|
+
}
|
|
199
|
+
export interface PortalDomainDeleteResponse {
|
|
200
|
+
}
|
|
201
|
+
export interface PortalDomainCreateParams {
|
|
202
|
+
/**
|
|
203
|
+
* The fully-qualified domain name to connect (e.g. `shop.acme.com`). Subdomains
|
|
204
|
+
* are recommended; apex domains are supported via an A record.
|
|
205
|
+
*/
|
|
206
|
+
domain: string;
|
|
207
|
+
}
|
|
208
|
+
export declare namespace PortalDomains {
|
|
209
|
+
export { type CreatePortalDomainRequest as CreatePortalDomainRequest, type DNSRecord as DNSRecord, type ListDNSRecord as ListDNSRecord, type ListPortalDomain as ListPortalDomain, type PortalDomain as PortalDomain, type PortalDomainDeleteResponse as PortalDomainDeleteResponse, type PortalDomainCreateParams as PortalDomainCreateParams, };
|
|
210
|
+
export { Actions as Actions };
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=portal-domains.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-domains.d.ts","sourceRoot":"","sources":["../../../src/resources/settings/portal-domains/portal-domains.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PortalDomains = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ActionsAPI = tslib_1.__importStar(require("./actions.js"));
|
|
8
|
+
const actions_1 = require("./actions.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
/**
|
|
11
|
+
* Connect a custom domain to the account's customer portal, verify its DNS, and resolve custom hosts to portal accounts.
|
|
12
|
+
*/
|
|
13
|
+
class PortalDomains extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Connects a custom domain to the account's customer portal and returns the DNS
|
|
20
|
+
* records to publish.
|
|
21
|
+
*
|
|
22
|
+
* Each account can have one custom domain. The domain starts in `pending` until
|
|
23
|
+
* its DNS is verified.
|
|
24
|
+
*
|
|
25
|
+
* This endpoint requires the permission: `self:update`.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const portalDomain =
|
|
30
|
+
* await client.settings.portalDomains.create({
|
|
31
|
+
* domain: 'shop.acme.com',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
create(body, options) {
|
|
36
|
+
return this._client.post('/v1/settings/portal-domains', { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Lists the account's portal domains.
|
|
40
|
+
*
|
|
41
|
+
* Accounts currently have at most one custom portal domain.
|
|
42
|
+
*
|
|
43
|
+
* This endpoint requires the permission: `self:read`.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const listPortalDomain =
|
|
48
|
+
* await client.settings.portalDomains.list();
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
list(options) {
|
|
52
|
+
return this._client.get('/v1/settings/portal-domains', options);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns a single portal domain, including the DNS records the customer must
|
|
56
|
+
* publish.
|
|
57
|
+
*
|
|
58
|
+
* This endpoint requires the permission: `self:read`.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const portalDomain =
|
|
63
|
+
* await client.settings.portalDomains.retrieve(
|
|
64
|
+
* 'podn_018e88072d1320808dc9aab42',
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
retrieve(id, options) {
|
|
69
|
+
return this._client.get((0, path_1.path) `/v1/settings/portal-domains/${id}`, options);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Disconnects the custom domain from the account's customer portal.
|
|
73
|
+
*
|
|
74
|
+
* The domain is detached from the serving infrastructure and immediately stops
|
|
75
|
+
* serving the portal.
|
|
76
|
+
*
|
|
77
|
+
* This endpoint requires the permission: `self:update`.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* const portalDomain =
|
|
82
|
+
* await client.settings.portalDomains.delete(
|
|
83
|
+
* 'podn_018e88072d1320808dc9aab42',
|
|
84
|
+
* );
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
delete(id, options) {
|
|
88
|
+
return this._client.delete((0, path_1.path) `/v1/settings/portal-domains/${id}`, options);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.PortalDomains = PortalDomains;
|
|
92
|
+
PortalDomains.Actions = actions_1.Actions;
|
|
93
|
+
//# sourceMappingURL=portal-domains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-domains.js","sourceRoot":"","sources":["../../../src/resources/settings/portal-domains/portal-domains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,iEAAwC;AACxC,0CAAoC;AAGpC,0DAAoD;AAEpD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6ErE,CAAC;IA3EC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AA9ED,sCA8EC;AA0JD,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as ActionsAPI from "./actions.mjs";
|
|
4
|
+
import { Actions } from "./actions.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Connect a custom domain to the account's customer portal, verify its DNS, and resolve custom hosts to portal accounts.
|
|
8
|
+
*/
|
|
9
|
+
export class PortalDomains extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Connects a custom domain to the account's customer portal and returns the DNS
|
|
16
|
+
* records to publish.
|
|
17
|
+
*
|
|
18
|
+
* Each account can have one custom domain. The domain starts in `pending` until
|
|
19
|
+
* its DNS is verified.
|
|
20
|
+
*
|
|
21
|
+
* This endpoint requires the permission: `self:update`.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const portalDomain =
|
|
26
|
+
* await client.settings.portalDomains.create({
|
|
27
|
+
* domain: 'shop.acme.com',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(body, options) {
|
|
32
|
+
return this._client.post('/v1/settings/portal-domains', { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Lists the account's portal domains.
|
|
36
|
+
*
|
|
37
|
+
* Accounts currently have at most one custom portal domain.
|
|
38
|
+
*
|
|
39
|
+
* This endpoint requires the permission: `self:read`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const listPortalDomain =
|
|
44
|
+
* await client.settings.portalDomains.list();
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
list(options) {
|
|
48
|
+
return this._client.get('/v1/settings/portal-domains', options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns a single portal domain, including the DNS records the customer must
|
|
52
|
+
* publish.
|
|
53
|
+
*
|
|
54
|
+
* This endpoint requires the permission: `self:read`.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const portalDomain =
|
|
59
|
+
* await client.settings.portalDomains.retrieve(
|
|
60
|
+
* 'podn_018e88072d1320808dc9aab42',
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
retrieve(id, options) {
|
|
65
|
+
return this._client.get(path `/v1/settings/portal-domains/${id}`, options);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Disconnects the custom domain from the account's customer portal.
|
|
69
|
+
*
|
|
70
|
+
* The domain is detached from the serving infrastructure and immediately stops
|
|
71
|
+
* serving the portal.
|
|
72
|
+
*
|
|
73
|
+
* This endpoint requires the permission: `self:update`.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const portalDomain =
|
|
78
|
+
* await client.settings.portalDomains.delete(
|
|
79
|
+
* 'podn_018e88072d1320808dc9aab42',
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
delete(id, options) {
|
|
84
|
+
return this._client.delete(path `/v1/settings/portal-domains/${id}`, options);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
PortalDomains.Actions = Actions;
|
|
88
|
+
//# sourceMappingURL=portal-domains.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-domains.mjs","sourceRoot":"","sources":["../../../src/resources/settings/portal-domains/portal-domains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE;OAGX,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6ErE,CAAC;IA3EC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AA0JD,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-domains.d.mts","sourceRoot":"","sources":["../../src/resources/settings/portal-domains.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-domains.d.ts","sourceRoot":"","sources":["../../src/resources/settings/portal-domains.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./portal-domains/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=portal-domains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-domains.js","sourceRoot":"","sources":["../../src/resources/settings/portal-domains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-domains.mjs","sourceRoot":"","sources":["../../src/resources/settings/portal-domains.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as IntegrationsAPI from "./integrations.mjs";
|
|
3
3
|
import { AccountIntegration, CreateAccountIntegrationRequest, IntegrationCreateParams, IntegrationListParams, IntegrationUpdateParams, Integrations, ListAccountIntegration, UpdateAccountIntegrationRequest } from "./integrations.mjs";
|
|
4
|
+
import * as PortalDomainsAPI from "./portal-domains/portal-domains.mjs";
|
|
5
|
+
import { CreatePortalDomainRequest, DNSRecord, ListDNSRecord, ListPortalDomain, PortalDomain, PortalDomainCreateParams, PortalDomainDeleteResponse, PortalDomains } from "./portal-domains/portal-domains.mjs";
|
|
4
6
|
export declare class Settings extends APIResource {
|
|
7
|
+
portalDomains: PortalDomainsAPI.PortalDomains;
|
|
5
8
|
integrations: IntegrationsAPI.Integrations;
|
|
6
9
|
}
|
|
7
10
|
export declare namespace Settings {
|
|
11
|
+
export { PortalDomains as PortalDomains, type CreatePortalDomainRequest as CreatePortalDomainRequest, type DNSRecord as DNSRecord, type ListDNSRecord as ListDNSRecord, type ListPortalDomain as ListPortalDomain, type PortalDomain as PortalDomain, type PortalDomainDeleteResponse as PortalDomainDeleteResponse, type PortalDomainCreateParams as PortalDomainCreateParams, };
|
|
8
12
|
export { Integrations as Integrations, type AccountIntegration as AccountIntegration, type CreateAccountIntegrationRequest as CreateAccountIntegrationRequest, type ListAccountIntegration as ListAccountIntegration, type UpdateAccountIntegrationRequest as UpdateAccountIntegrationRequest, type IntegrationListParams as IntegrationListParams, type IntegrationCreateParams as IntegrationCreateParams, type IntegrationUpdateParams as IntegrationUpdateParams, };
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=settings.d.mts.map
|