agentmail 0.4.3 → 0.4.4
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/domains/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/domains/client/Client.js +69 -0
- package/dist/cjs/api/resources/domains/types/UpdateDomainRequest.d.ts +4 -0
- package/dist/cjs/api/resources/domains/types/UpdateDomainRequest.js +3 -0
- package/dist/cjs/api/resources/domains/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/domains/types/index.js +1 -0
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +50 -50
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +22 -15
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +71 -56
- package/dist/cjs/api/resources/lists/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/lists/client/Client.js +67 -67
- package/dist/cjs/api/resources/messages/types/RawMessageResponse.d.ts +14 -0
- package/dist/cjs/api/resources/messages/types/RawMessageResponse.js +3 -0
- package/dist/cjs/api/resources/messages/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/types/index.js +1 -0
- package/dist/cjs/api/resources/pods/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/pods/client/Client.js +8 -8
- package/dist/cjs/api/resources/pods/resources/apiKeys/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/pods/resources/apiKeys/client/Client.js +42 -42
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +33 -3
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +178 -6
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +15 -0
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +72 -0
- package/dist/cjs/api/resources/pods/resources/lists/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/pods/resources/lists/client/Client.js +67 -67
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +15 -0
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +61 -0
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.d.ts +8 -0
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.js +3 -0
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/threads/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/threads/client/Client.js +60 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadRequest.d.ts +8 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/webhooks/client/Client.js +31 -31
- package/dist/cjs/serialization/resources/domains/types/UpdateDomainRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/domains/types/UpdateDomainRequest.js +42 -0
- package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/domains/types/index.js +1 -0
- package/dist/cjs/serialization/resources/messages/types/RawMessageResponse.d.ts +14 -0
- package/dist/cjs/serialization/resources/messages/types/RawMessageResponse.js +46 -0
- package/dist/cjs/serialization/resources/messages/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/messages/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/domains/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/domains/client/Client.mjs +69 -0
- package/dist/esm/api/resources/domains/types/UpdateDomainRequest.d.mts +4 -0
- package/dist/esm/api/resources/domains/types/UpdateDomainRequest.mjs +2 -0
- package/dist/esm/api/resources/domains/types/index.d.mts +1 -0
- package/dist/esm/api/resources/domains/types/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +50 -50
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +22 -15
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +71 -56
- package/dist/esm/api/resources/lists/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/lists/client/Client.mjs +67 -67
- package/dist/esm/api/resources/messages/types/RawMessageResponse.d.mts +14 -0
- package/dist/esm/api/resources/messages/types/RawMessageResponse.mjs +2 -0
- package/dist/esm/api/resources/messages/types/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/types/index.mjs +1 -0
- package/dist/esm/api/resources/pods/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/pods/client/Client.mjs +8 -8
- package/dist/esm/api/resources/pods/resources/apiKeys/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/pods/resources/apiKeys/client/Client.mjs +42 -42
- package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +33 -3
- package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +178 -6
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +15 -0
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +72 -0
- package/dist/esm/api/resources/pods/resources/lists/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/pods/resources/lists/client/Client.mjs +67 -67
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +15 -0
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +61 -0
- package/dist/esm/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.d.mts +8 -0
- package/dist/esm/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.mjs +2 -0
- package/dist/esm/api/resources/pods/resources/threads/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/threads/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/threads/client/Client.mjs +60 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadRequest.d.mts +8 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/webhooks/client/Client.mjs +31 -31
- package/dist/esm/serialization/resources/domains/types/UpdateDomainRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/domains/types/UpdateDomainRequest.mjs +6 -0
- package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/domains/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/messages/types/RawMessageResponse.d.mts +14 -0
- package/dist/esm/serialization/resources/messages/types/RawMessageResponse.mjs +10 -0
- package/dist/esm/serialization/resources/messages/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/messages/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +16825 -11774
- package/dist/llms.txt +94 -25
- package/package.json +1 -1
- package/reference.md +570 -117
|
@@ -23,36 +23,31 @@ export class ListsClient {
|
|
|
23
23
|
/**
|
|
24
24
|
* @param {AgentMail.Direction} direction
|
|
25
25
|
* @param {AgentMail.ListType} type
|
|
26
|
-
* @param {AgentMail.
|
|
26
|
+
* @param {AgentMail.ListListEntriesRequest} request
|
|
27
27
|
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
|
-
* @throws {@link AgentMail.ValidationError}
|
|
30
|
-
*
|
|
31
29
|
* @example
|
|
32
|
-
* await client.lists.
|
|
33
|
-
* entry: "entry"
|
|
34
|
-
* })
|
|
30
|
+
* await client.lists.list("send", "allow")
|
|
35
31
|
*/
|
|
36
|
-
|
|
37
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
32
|
+
list(direction, type, request = {}, requestOptions) {
|
|
33
|
+
return core.HttpResponsePromise.fromPromise(this.__list(direction, type, request, requestOptions));
|
|
38
34
|
}
|
|
39
|
-
|
|
40
|
-
return __awaiter(this,
|
|
35
|
+
__list(direction_1, type_1) {
|
|
36
|
+
return __awaiter(this, arguments, void 0, function* (direction, type, request = {}, requestOptions) {
|
|
41
37
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
38
|
+
const { limit, pageToken } = request;
|
|
39
|
+
const _queryParams = {
|
|
40
|
+
limit,
|
|
41
|
+
page_token: pageToken,
|
|
42
|
+
};
|
|
42
43
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
43
44
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
44
45
|
const _response = yield core.fetcher({
|
|
45
46
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
|
|
46
47
|
.http, `/v0/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}`),
|
|
47
|
-
method: "
|
|
48
|
+
method: "GET",
|
|
48
49
|
headers: _headers,
|
|
49
|
-
|
|
50
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
51
|
-
requestType: "json",
|
|
52
|
-
body: serializers.CreateListEntryRequest.jsonOrThrow(request, {
|
|
53
|
-
unrecognizedObjectKeys: "strip",
|
|
54
|
-
omitUndefined: true,
|
|
55
|
-
}),
|
|
50
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
56
51
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
57
52
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
58
53
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -61,7 +56,7 @@ export class ListsClient {
|
|
|
61
56
|
});
|
|
62
57
|
if (_response.ok) {
|
|
63
58
|
return {
|
|
64
|
-
data: serializers.
|
|
59
|
+
data: serializers.ListListEntriesResponse.parseOrThrow(_response.body, {
|
|
65
60
|
unrecognizedObjectKeys: "passthrough",
|
|
66
61
|
allowUnrecognizedUnionMembers: true,
|
|
67
62
|
allowUnrecognizedEnumValues: true,
|
|
@@ -72,54 +67,40 @@ export class ListsClient {
|
|
|
72
67
|
};
|
|
73
68
|
}
|
|
74
69
|
if (_response.error.reason === "status-code") {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
allowUnrecognizedEnumValues: true,
|
|
81
|
-
skipValidation: true,
|
|
82
|
-
breadcrumbsPrefix: ["response"],
|
|
83
|
-
}), _response.rawResponse);
|
|
84
|
-
default:
|
|
85
|
-
throw new errors.AgentMailError({
|
|
86
|
-
statusCode: _response.error.statusCode,
|
|
87
|
-
body: _response.error.body,
|
|
88
|
-
rawResponse: _response.rawResponse,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
70
|
+
throw new errors.AgentMailError({
|
|
71
|
+
statusCode: _response.error.statusCode,
|
|
72
|
+
body: _response.error.body,
|
|
73
|
+
rawResponse: _response.rawResponse,
|
|
74
|
+
});
|
|
91
75
|
}
|
|
92
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
76
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/lists/{direction}/{type}");
|
|
93
77
|
});
|
|
94
78
|
}
|
|
95
79
|
/**
|
|
96
80
|
* @param {AgentMail.Direction} direction
|
|
97
81
|
* @param {AgentMail.ListType} type
|
|
98
|
-
* @param {
|
|
82
|
+
* @param {string} entry - Email address or domain.
|
|
99
83
|
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
84
|
*
|
|
85
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
86
|
+
*
|
|
101
87
|
* @example
|
|
102
|
-
* await client.lists.
|
|
88
|
+
* await client.lists.get("send", "allow", "entry")
|
|
103
89
|
*/
|
|
104
|
-
|
|
105
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
90
|
+
get(direction, type, entry, requestOptions) {
|
|
91
|
+
return core.HttpResponsePromise.fromPromise(this.__get(direction, type, entry, requestOptions));
|
|
106
92
|
}
|
|
107
|
-
|
|
108
|
-
return __awaiter(this,
|
|
93
|
+
__get(direction, type, entry, requestOptions) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
95
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
110
|
-
const { limit, pageToken } = request;
|
|
111
|
-
const _queryParams = {
|
|
112
|
-
limit,
|
|
113
|
-
page_token: pageToken,
|
|
114
|
-
};
|
|
115
96
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
116
97
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
117
98
|
const _response = yield core.fetcher({
|
|
118
99
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
|
|
119
|
-
.http, `/v0/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}`),
|
|
100
|
+
.http, `/v0/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}/${core.url.encodePathParam(entry)}`),
|
|
120
101
|
method: "GET",
|
|
121
102
|
headers: _headers,
|
|
122
|
-
queryParameters:
|
|
103
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
123
104
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
124
105
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
125
106
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -128,7 +109,7 @@ export class ListsClient {
|
|
|
128
109
|
});
|
|
129
110
|
if (_response.ok) {
|
|
130
111
|
return {
|
|
131
|
-
data: serializers.
|
|
112
|
+
data: serializers.ListEntry.parseOrThrow(_response.body, {
|
|
132
113
|
unrecognizedObjectKeys: "passthrough",
|
|
133
114
|
allowUnrecognizedUnionMembers: true,
|
|
134
115
|
allowUnrecognizedEnumValues: true,
|
|
@@ -139,40 +120,59 @@ export class ListsClient {
|
|
|
139
120
|
};
|
|
140
121
|
}
|
|
141
122
|
if (_response.error.reason === "status-code") {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
123
|
+
switch (_response.error.statusCode) {
|
|
124
|
+
case 404:
|
|
125
|
+
throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
126
|
+
unrecognizedObjectKeys: "passthrough",
|
|
127
|
+
allowUnrecognizedUnionMembers: true,
|
|
128
|
+
allowUnrecognizedEnumValues: true,
|
|
129
|
+
skipValidation: true,
|
|
130
|
+
breadcrumbsPrefix: ["response"],
|
|
131
|
+
}), _response.rawResponse);
|
|
132
|
+
default:
|
|
133
|
+
throw new errors.AgentMailError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.body,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
147
139
|
}
|
|
148
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/lists/{direction}/{type}");
|
|
140
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/lists/{direction}/{type}/{entry}");
|
|
149
141
|
});
|
|
150
142
|
}
|
|
151
143
|
/**
|
|
152
144
|
* @param {AgentMail.Direction} direction
|
|
153
145
|
* @param {AgentMail.ListType} type
|
|
154
|
-
* @param {
|
|
146
|
+
* @param {AgentMail.CreateListEntryRequest} request
|
|
155
147
|
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
148
|
*
|
|
157
|
-
* @throws {@link AgentMail.
|
|
149
|
+
* @throws {@link AgentMail.ValidationError}
|
|
158
150
|
*
|
|
159
151
|
* @example
|
|
160
|
-
* await client.lists.
|
|
152
|
+
* await client.lists.create("send", "allow", {
|
|
153
|
+
* entry: "entry"
|
|
154
|
+
* })
|
|
161
155
|
*/
|
|
162
|
-
|
|
163
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
156
|
+
create(direction, type, request, requestOptions) {
|
|
157
|
+
return core.HttpResponsePromise.fromPromise(this.__create(direction, type, request, requestOptions));
|
|
164
158
|
}
|
|
165
|
-
|
|
159
|
+
__create(direction, type, request, requestOptions) {
|
|
166
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
161
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
168
162
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
169
163
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
170
164
|
const _response = yield core.fetcher({
|
|
171
165
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
|
|
172
|
-
.http, `/v0/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}
|
|
173
|
-
method: "
|
|
166
|
+
.http, `/v0/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}`),
|
|
167
|
+
method: "POST",
|
|
174
168
|
headers: _headers,
|
|
169
|
+
contentType: "application/json",
|
|
175
170
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
171
|
+
requestType: "json",
|
|
172
|
+
body: serializers.CreateListEntryRequest.jsonOrThrow(request, {
|
|
173
|
+
unrecognizedObjectKeys: "strip",
|
|
174
|
+
omitUndefined: true,
|
|
175
|
+
}),
|
|
176
176
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
177
177
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
178
178
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -193,8 +193,8 @@ export class ListsClient {
|
|
|
193
193
|
}
|
|
194
194
|
if (_response.error.reason === "status-code") {
|
|
195
195
|
switch (_response.error.statusCode) {
|
|
196
|
-
case
|
|
197
|
-
throw new AgentMail.
|
|
196
|
+
case 400:
|
|
197
|
+
throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
198
198
|
unrecognizedObjectKeys: "passthrough",
|
|
199
199
|
allowUnrecognizedUnionMembers: true,
|
|
200
200
|
allowUnrecognizedEnumValues: true,
|
|
@@ -209,7 +209,7 @@ export class ListsClient {
|
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
212
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v0/lists/{direction}/{type}");
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Signed URL to download the raw .eml file. Uses CloudFront signing, same as attachments.
|
|
4
|
+
*/
|
|
5
|
+
export interface RawMessageResponse {
|
|
6
|
+
/** ID of the message. */
|
|
7
|
+
messageId: AgentMail.MessageId;
|
|
8
|
+
/** Size of the raw message in bytes. */
|
|
9
|
+
size: AgentMail.MessageSize;
|
|
10
|
+
/** Pre-signed CloudFront URL to download the raw message. Expires at expires_at. */
|
|
11
|
+
downloadUrl: string;
|
|
12
|
+
/** Time at which the download URL expires. */
|
|
13
|
+
expiresAt: Date;
|
|
14
|
+
}
|
|
@@ -21,6 +21,7 @@ export * from "./MessageText.mjs";
|
|
|
21
21
|
export * from "./MessageTimestamp.mjs";
|
|
22
22
|
export * from "./MessageTo.mjs";
|
|
23
23
|
export * from "./MessageUpdatedAt.mjs";
|
|
24
|
+
export * from "./RawMessageResponse.mjs";
|
|
24
25
|
export * from "./ReplyAll.mjs";
|
|
25
26
|
export * from "./ReplyAllMessageRequest.mjs";
|
|
26
27
|
export * from "./ReplyToMessageRequest.mjs";
|
|
@@ -21,6 +21,7 @@ export * from "./MessageText.mjs";
|
|
|
21
21
|
export * from "./MessageTimestamp.mjs";
|
|
22
22
|
export * from "./MessageTo.mjs";
|
|
23
23
|
export * from "./MessageUpdatedAt.mjs";
|
|
24
|
+
export * from "./RawMessageResponse.mjs";
|
|
24
25
|
export * from "./ReplyAll.mjs";
|
|
25
26
|
export * from "./ReplyAllMessageRequest.mjs";
|
|
26
27
|
export * from "./ReplyToMessageRequest.mjs";
|
|
@@ -16,20 +16,20 @@ export declare namespace PodsClient {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class PodsClient {
|
|
18
18
|
protected readonly _options: NormalizedClientOptionsWithAuth<PodsClient.Options>;
|
|
19
|
+
protected _apiKeys: ApiKeysClient | undefined;
|
|
20
|
+
protected _domains: DomainsClient | undefined;
|
|
19
21
|
protected _inboxes: InboxesClient | undefined;
|
|
20
22
|
protected _threads: ThreadsClient | undefined;
|
|
21
23
|
protected _drafts: DraftsClient | undefined;
|
|
22
|
-
protected _domains: DomainsClient | undefined;
|
|
23
24
|
protected _lists: ListsClient | undefined;
|
|
24
|
-
protected _apiKeys: ApiKeysClient | undefined;
|
|
25
25
|
protected _metrics: MetricsClient | undefined;
|
|
26
26
|
constructor(options?: PodsClient.Options);
|
|
27
|
+
get apiKeys(): ApiKeysClient;
|
|
28
|
+
get domains(): DomainsClient;
|
|
27
29
|
get inboxes(): InboxesClient;
|
|
28
30
|
get threads(): ThreadsClient;
|
|
29
31
|
get drafts(): DraftsClient;
|
|
30
|
-
get domains(): DomainsClient;
|
|
31
32
|
get lists(): ListsClient;
|
|
32
|
-
get apiKeys(): ApiKeysClient;
|
|
33
33
|
get metrics(): MetricsClient;
|
|
34
34
|
/**
|
|
35
35
|
* @param {AgentMail.pods.ListPodsRequest} request
|
|
@@ -27,6 +27,14 @@ export class PodsClient {
|
|
|
27
27
|
constructor(options = {}) {
|
|
28
28
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
29
29
|
}
|
|
30
|
+
get apiKeys() {
|
|
31
|
+
var _a;
|
|
32
|
+
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
|
|
33
|
+
}
|
|
34
|
+
get domains() {
|
|
35
|
+
var _a;
|
|
36
|
+
return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new DomainsClient(this._options)));
|
|
37
|
+
}
|
|
30
38
|
get inboxes() {
|
|
31
39
|
var _a;
|
|
32
40
|
return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new InboxesClient(this._options)));
|
|
@@ -39,18 +47,10 @@ export class PodsClient {
|
|
|
39
47
|
var _a;
|
|
40
48
|
return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new DraftsClient(this._options)));
|
|
41
49
|
}
|
|
42
|
-
get domains() {
|
|
43
|
-
var _a;
|
|
44
|
-
return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new DomainsClient(this._options)));
|
|
45
|
-
}
|
|
46
50
|
get lists() {
|
|
47
51
|
var _a;
|
|
48
52
|
return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new ListsClient(this._options)));
|
|
49
53
|
}
|
|
50
|
-
get apiKeys() {
|
|
51
|
-
var _a;
|
|
52
|
-
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
|
|
53
|
-
}
|
|
54
54
|
get metrics() {
|
|
55
55
|
var _a;
|
|
56
56
|
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new MetricsClient(this._options)));
|
|
@@ -12,31 +12,31 @@ export declare class ApiKeysClient {
|
|
|
12
12
|
constructor(options?: ApiKeysClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {AgentMail.pods.PodId} pod_id
|
|
15
|
-
* @param {AgentMail.
|
|
15
|
+
* @param {AgentMail.pods.ListApiKeysRequest} request
|
|
16
16
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
17
|
*
|
|
18
18
|
* @throws {@link AgentMail.NotFoundError}
|
|
19
|
-
* @throws {@link AgentMail.ValidationError}
|
|
20
19
|
*
|
|
21
20
|
* @example
|
|
22
|
-
* await client.pods.apiKeys.
|
|
23
|
-
* name: "name"
|
|
24
|
-
* })
|
|
21
|
+
* await client.pods.apiKeys.list("pod_id")
|
|
25
22
|
*/
|
|
26
|
-
|
|
27
|
-
private
|
|
23
|
+
list(pod_id: AgentMail.pods.PodId, request?: AgentMail.pods.ListApiKeysRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListApiKeysResponse>;
|
|
24
|
+
private __list;
|
|
28
25
|
/**
|
|
29
26
|
* @param {AgentMail.pods.PodId} pod_id
|
|
30
|
-
* @param {AgentMail.
|
|
27
|
+
* @param {AgentMail.CreateApiKeyRequest} request
|
|
31
28
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
29
|
*
|
|
33
30
|
* @throws {@link AgentMail.NotFoundError}
|
|
31
|
+
* @throws {@link AgentMail.ValidationError}
|
|
34
32
|
*
|
|
35
33
|
* @example
|
|
36
|
-
* await client.pods.apiKeys.
|
|
34
|
+
* await client.pods.apiKeys.create("pod_id", {
|
|
35
|
+
* name: "name"
|
|
36
|
+
* })
|
|
37
37
|
*/
|
|
38
|
-
|
|
39
|
-
private
|
|
38
|
+
create(pod_id: AgentMail.pods.PodId, request: AgentMail.CreateApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<AgentMail.CreateApiKeyResponse>;
|
|
39
|
+
private __create;
|
|
40
40
|
/**
|
|
41
41
|
* @param {AgentMail.pods.PodId} pod_id
|
|
42
42
|
* @param {AgentMail.ApiKeyId} api_key
|
|
@@ -22,37 +22,33 @@ export class ApiKeysClient {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* @param {AgentMail.pods.PodId} pod_id
|
|
25
|
-
* @param {AgentMail.
|
|
25
|
+
* @param {AgentMail.pods.ListApiKeysRequest} request
|
|
26
26
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link AgentMail.NotFoundError}
|
|
29
|
-
* @throws {@link AgentMail.ValidationError}
|
|
30
29
|
*
|
|
31
30
|
* @example
|
|
32
|
-
* await client.pods.apiKeys.
|
|
33
|
-
* name: "name"
|
|
34
|
-
* })
|
|
31
|
+
* await client.pods.apiKeys.list("pod_id")
|
|
35
32
|
*/
|
|
36
|
-
|
|
37
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
33
|
+
list(pod_id, request = {}, requestOptions) {
|
|
34
|
+
return core.HttpResponsePromise.fromPromise(this.__list(pod_id, request, requestOptions));
|
|
38
35
|
}
|
|
39
|
-
|
|
40
|
-
return __awaiter(this,
|
|
36
|
+
__list(pod_id_1) {
|
|
37
|
+
return __awaiter(this, arguments, void 0, function* (pod_id, request = {}, requestOptions) {
|
|
41
38
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
39
|
+
const { limit, pageToken } = request;
|
|
40
|
+
const _queryParams = {
|
|
41
|
+
limit,
|
|
42
|
+
page_token: pageToken,
|
|
43
|
+
};
|
|
42
44
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
43
45
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
44
46
|
const _response = yield core.fetcher({
|
|
45
47
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
|
|
46
48
|
.http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/api-keys`),
|
|
47
|
-
method: "
|
|
49
|
+
method: "GET",
|
|
48
50
|
headers: _headers,
|
|
49
|
-
|
|
50
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
51
|
-
requestType: "json",
|
|
52
|
-
body: serializers.CreateApiKeyRequest.jsonOrThrow(request, {
|
|
53
|
-
unrecognizedObjectKeys: "strip",
|
|
54
|
-
omitUndefined: true,
|
|
55
|
-
}),
|
|
51
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
56
52
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
57
53
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
58
54
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -61,7 +57,7 @@ export class ApiKeysClient {
|
|
|
61
57
|
});
|
|
62
58
|
if (_response.ok) {
|
|
63
59
|
return {
|
|
64
|
-
data: serializers.
|
|
60
|
+
data: serializers.ListApiKeysResponse.parseOrThrow(_response.body, {
|
|
65
61
|
unrecognizedObjectKeys: "passthrough",
|
|
66
62
|
allowUnrecognizedUnionMembers: true,
|
|
67
63
|
allowUnrecognizedEnumValues: true,
|
|
@@ -81,14 +77,6 @@ export class ApiKeysClient {
|
|
|
81
77
|
skipValidation: true,
|
|
82
78
|
breadcrumbsPrefix: ["response"],
|
|
83
79
|
}), _response.rawResponse);
|
|
84
|
-
case 400:
|
|
85
|
-
throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
86
|
-
unrecognizedObjectKeys: "passthrough",
|
|
87
|
-
allowUnrecognizedUnionMembers: true,
|
|
88
|
-
allowUnrecognizedEnumValues: true,
|
|
89
|
-
skipValidation: true,
|
|
90
|
-
breadcrumbsPrefix: ["response"],
|
|
91
|
-
}), _response.rawResponse);
|
|
92
80
|
default:
|
|
93
81
|
throw new errors.AgentMailError({
|
|
94
82
|
statusCode: _response.error.statusCode,
|
|
@@ -97,38 +85,42 @@ export class ApiKeysClient {
|
|
|
97
85
|
});
|
|
98
86
|
}
|
|
99
87
|
}
|
|
100
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
88
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/pods/{pod_id}/api-keys");
|
|
101
89
|
});
|
|
102
90
|
}
|
|
103
91
|
/**
|
|
104
92
|
* @param {AgentMail.pods.PodId} pod_id
|
|
105
|
-
* @param {AgentMail.
|
|
93
|
+
* @param {AgentMail.CreateApiKeyRequest} request
|
|
106
94
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
95
|
*
|
|
108
96
|
* @throws {@link AgentMail.NotFoundError}
|
|
97
|
+
* @throws {@link AgentMail.ValidationError}
|
|
109
98
|
*
|
|
110
99
|
* @example
|
|
111
|
-
* await client.pods.apiKeys.
|
|
100
|
+
* await client.pods.apiKeys.create("pod_id", {
|
|
101
|
+
* name: "name"
|
|
102
|
+
* })
|
|
112
103
|
*/
|
|
113
|
-
|
|
114
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
104
|
+
create(pod_id, request, requestOptions) {
|
|
105
|
+
return core.HttpResponsePromise.fromPromise(this.__create(pod_id, request, requestOptions));
|
|
115
106
|
}
|
|
116
|
-
|
|
117
|
-
return __awaiter(this,
|
|
107
|
+
__create(pod_id, request, requestOptions) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
109
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
119
|
-
const { limit, pageToken } = request;
|
|
120
|
-
const _queryParams = {
|
|
121
|
-
limit,
|
|
122
|
-
page_token: pageToken,
|
|
123
|
-
};
|
|
124
110
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
125
111
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
126
112
|
const _response = yield core.fetcher({
|
|
127
113
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
|
|
128
114
|
.http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/api-keys`),
|
|
129
|
-
method: "
|
|
115
|
+
method: "POST",
|
|
130
116
|
headers: _headers,
|
|
131
|
-
|
|
117
|
+
contentType: "application/json",
|
|
118
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
119
|
+
requestType: "json",
|
|
120
|
+
body: serializers.CreateApiKeyRequest.jsonOrThrow(request, {
|
|
121
|
+
unrecognizedObjectKeys: "strip",
|
|
122
|
+
omitUndefined: true,
|
|
123
|
+
}),
|
|
132
124
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
133
125
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
134
126
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -137,7 +129,7 @@ export class ApiKeysClient {
|
|
|
137
129
|
});
|
|
138
130
|
if (_response.ok) {
|
|
139
131
|
return {
|
|
140
|
-
data: serializers.
|
|
132
|
+
data: serializers.CreateApiKeyResponse.parseOrThrow(_response.body, {
|
|
141
133
|
unrecognizedObjectKeys: "passthrough",
|
|
142
134
|
allowUnrecognizedUnionMembers: true,
|
|
143
135
|
allowUnrecognizedEnumValues: true,
|
|
@@ -157,6 +149,14 @@ export class ApiKeysClient {
|
|
|
157
149
|
skipValidation: true,
|
|
158
150
|
breadcrumbsPrefix: ["response"],
|
|
159
151
|
}), _response.rawResponse);
|
|
152
|
+
case 400:
|
|
153
|
+
throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
154
|
+
unrecognizedObjectKeys: "passthrough",
|
|
155
|
+
allowUnrecognizedUnionMembers: true,
|
|
156
|
+
allowUnrecognizedEnumValues: true,
|
|
157
|
+
skipValidation: true,
|
|
158
|
+
breadcrumbsPrefix: ["response"],
|
|
159
|
+
}), _response.rawResponse);
|
|
160
160
|
default:
|
|
161
161
|
throw new errors.AgentMailError({
|
|
162
162
|
statusCode: _response.error.statusCode,
|
|
@@ -165,7 +165,7 @@ export class ApiKeysClient {
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
168
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v0/pods/{pod_id}/api-keys");
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
@@ -22,6 +22,23 @@ export declare class DomainsClient {
|
|
|
22
22
|
*/
|
|
23
23
|
list(pod_id: AgentMail.pods.PodId, request?: AgentMail.pods.ListDomainsRequest, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListDomainsResponse>;
|
|
24
24
|
private __list;
|
|
25
|
+
/**
|
|
26
|
+
* @param {AgentMail.pods.PodId} pod_id
|
|
27
|
+
* @param {AgentMail.DomainId} domain_id
|
|
28
|
+
* @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.pods.domains.get("pod_id", "domain_id")
|
|
34
|
+
*/
|
|
35
|
+
get(pod_id: AgentMail.pods.PodId, domain_id: AgentMail.DomainId, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Domain>;
|
|
36
|
+
private __get;
|
|
37
|
+
/**
|
|
38
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
39
|
+
*/
|
|
40
|
+
getZoneFile(pod_id: AgentMail.pods.PodId, domain_id: AgentMail.DomainId, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
41
|
+
private __getZoneFile;
|
|
25
42
|
/**
|
|
26
43
|
* @param {AgentMail.pods.PodId} pod_id
|
|
27
44
|
* @param {AgentMail.CreateDomainRequest} request
|
|
@@ -40,15 +57,16 @@ export declare class DomainsClient {
|
|
|
40
57
|
/**
|
|
41
58
|
* @param {AgentMail.pods.PodId} pod_id
|
|
42
59
|
* @param {AgentMail.DomainId} domain_id
|
|
60
|
+
* @param {AgentMail.UpdateDomainRequest} request
|
|
43
61
|
* @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
62
|
*
|
|
45
63
|
* @throws {@link AgentMail.NotFoundError}
|
|
46
64
|
*
|
|
47
65
|
* @example
|
|
48
|
-
* await client.pods.domains.
|
|
66
|
+
* await client.pods.domains.update("pod_id", "domain_id", {})
|
|
49
67
|
*/
|
|
50
|
-
|
|
51
|
-
private
|
|
68
|
+
update(pod_id: AgentMail.pods.PodId, domain_id: AgentMail.DomainId, request: AgentMail.UpdateDomainRequest, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Domain>;
|
|
69
|
+
private __update;
|
|
52
70
|
/**
|
|
53
71
|
* @param {AgentMail.pods.PodId} pod_id
|
|
54
72
|
* @param {AgentMail.DomainId} domain_id
|
|
@@ -61,4 +79,16 @@ export declare class DomainsClient {
|
|
|
61
79
|
*/
|
|
62
80
|
delete(pod_id: AgentMail.pods.PodId, domain_id: AgentMail.DomainId, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
63
81
|
private __delete;
|
|
82
|
+
/**
|
|
83
|
+
* @param {AgentMail.pods.PodId} pod_id
|
|
84
|
+
* @param {AgentMail.DomainId} domain_id
|
|
85
|
+
* @param {DomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.pods.domains.verify("pod_id", "domain_id")
|
|
91
|
+
*/
|
|
92
|
+
verify(pod_id: AgentMail.pods.PodId, domain_id: AgentMail.DomainId, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
93
|
+
private __verify;
|
|
64
94
|
}
|