agentmail 0.1.3 → 0.1.5
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/Client.js +2 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.js +3 -1
- package/dist/cjs/api/resources/domains/client/Client.js +3 -1
- package/dist/cjs/api/resources/domains/types/{DomainSummary.d.ts → DomainItem.d.ts} +1 -1
- package/dist/cjs/api/resources/domains/types/ListDomainsResponse.d.ts +2 -1
- package/dist/cjs/api/resources/domains/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/domains/types/index.js +1 -1
- package/dist/cjs/api/resources/drafts/client/Client.js +6 -1
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/inboxes/client/Client.js +86 -1
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +15 -4
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +15 -4
- package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.js +3 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +6 -1
- package/dist/cjs/api/resources/inboxes/types/UpdateInboxRequest.d.ts +4 -0
- package/dist/cjs/api/resources/inboxes/types/UpdateInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inboxes/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/types/index.js +1 -0
- package/dist/cjs/api/resources/metrics/client/Client.js +3 -1
- package/dist/cjs/api/resources/pods/client/Client.js +3 -1
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +9 -2
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +6 -1
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +9 -2
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +6 -1
- package/dist/cjs/api/resources/threads/client/Client.js +6 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +3 -1
- package/dist/cjs/serialization/resources/domains/types/{DomainSummary.d.ts → DomainItem.d.ts} +2 -2
- package/dist/cjs/serialization/resources/domains/types/{DomainSummary.js → DomainItem.js} +2 -2
- package/dist/cjs/serialization/resources/domains/types/ListDomainsResponse.d.ts +4 -2
- package/dist/cjs/serialization/resources/domains/types/ListDomainsResponse.js +4 -2
- package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -1
- package/dist/cjs/serialization/resources/domains/types/index.js +1 -1
- package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.js +42 -0
- package/dist/cjs/serialization/resources/inboxes/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/inboxes/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +3 -1
- package/dist/esm/api/resources/domains/client/Client.mjs +3 -1
- package/dist/esm/api/resources/domains/types/{DomainSummary.d.mts → DomainItem.d.mts} +1 -1
- package/dist/esm/api/resources/domains/types/ListDomainsResponse.d.mts +2 -1
- package/dist/esm/api/resources/domains/types/index.d.mts +1 -1
- package/dist/esm/api/resources/domains/types/index.mjs +1 -1
- package/dist/esm/api/resources/drafts/client/Client.mjs +6 -1
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/inboxes/client/Client.mjs +86 -1
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +15 -4
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +15 -4
- package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.mjs +3 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +6 -1
- package/dist/esm/api/resources/inboxes/types/UpdateInboxRequest.d.mts +4 -0
- package/dist/esm/api/resources/inboxes/types/UpdateInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inboxes/types/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/types/index.mjs +1 -0
- package/dist/esm/api/resources/metrics/client/Client.mjs +3 -1
- package/dist/esm/api/resources/pods/client/Client.mjs +3 -1
- package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +9 -2
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +6 -1
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +9 -2
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +6 -1
- package/dist/esm/api/resources/threads/client/Client.mjs +6 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +3 -1
- package/dist/esm/serialization/resources/domains/types/{DomainSummary.d.mts → DomainItem.d.mts} +2 -2
- package/dist/esm/serialization/resources/domains/types/{DomainSummary.mjs → DomainItem.mjs} +1 -1
- package/dist/esm/serialization/resources/domains/types/ListDomainsResponse.d.mts +4 -2
- package/dist/esm/serialization/resources/domains/types/ListDomainsResponse.mjs +4 -2
- package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -1
- package/dist/esm/serialization/resources/domains/types/index.mjs +1 -1
- package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.mjs +6 -0
- package/dist/esm/serialization/resources/inboxes/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/inboxes/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 +297 -57
- package/dist/llms.txt +1 -0
- package/package.json +1 -1
- package/reference.md +59 -0
- /package/dist/cjs/api/resources/domains/types/{DomainSummary.js → DomainItem.js} +0 -0
- /package/dist/esm/api/resources/domains/types/{DomainSummary.mjs → DomainItem.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -51,8 +51,8 @@ class AgentMailClient {
|
|
|
51
51
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "agentmail",
|
|
54
|
-
"X-Fern-SDK-Version": "0.1.
|
|
55
|
-
"User-Agent": "agentmail/0.1.
|
|
54
|
+
"X-Fern-SDK-Version": "0.1.5",
|
|
55
|
+
"User-Agent": "agentmail/0.1.5",
|
|
56
56
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
57
57
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
58
58
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -147,7 +147,9 @@ class ApiKeys {
|
|
|
147
147
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
148
148
|
requestType: "json",
|
|
149
149
|
body: serializers.CreateApiKeyRequest.jsonOrThrow(request, {
|
|
150
|
-
unrecognizedObjectKeys: "
|
|
150
|
+
unrecognizedObjectKeys: "passthrough",
|
|
151
|
+
allowUnrecognizedUnionMembers: true,
|
|
152
|
+
allowUnrecognizedEnumValues: true,
|
|
151
153
|
omitUndefined: true,
|
|
152
154
|
}),
|
|
153
155
|
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,
|
|
@@ -278,7 +278,9 @@ class Domains {
|
|
|
278
278
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
279
279
|
requestType: "json",
|
|
280
280
|
body: serializers.CreateDomainRequest.jsonOrThrow(request, {
|
|
281
|
-
unrecognizedObjectKeys: "
|
|
281
|
+
unrecognizedObjectKeys: "passthrough",
|
|
282
|
+
allowUnrecognizedUnionMembers: true,
|
|
283
|
+
allowUnrecognizedEnumValues: true,
|
|
282
284
|
omitUndefined: true,
|
|
283
285
|
}),
|
|
284
286
|
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,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.js";
|
|
2
2
|
export interface ListDomainsResponse {
|
|
3
3
|
count: AgentMail.Count;
|
|
4
|
+
limit?: AgentMail.Limit;
|
|
4
5
|
nextPageToken?: AgentMail.PageToken;
|
|
5
6
|
/** Ordered by `created_at` descending. */
|
|
6
|
-
domains: AgentMail.
|
|
7
|
+
domains: AgentMail.DomainItem[];
|
|
7
8
|
}
|
|
@@ -2,8 +2,8 @@ export * from "./ClientId.js";
|
|
|
2
2
|
export * from "./CreateDomainRequest.js";
|
|
3
3
|
export * from "./Domain.js";
|
|
4
4
|
export * from "./DomainId.js";
|
|
5
|
+
export * from "./DomainItem.js";
|
|
5
6
|
export * from "./DomainName.js";
|
|
6
|
-
export * from "./DomainSummary.js";
|
|
7
7
|
export * from "./FeedbackEnabled.js";
|
|
8
8
|
export * from "./ListDomainsResponse.js";
|
|
9
9
|
export * from "./RecordStatus.js";
|
|
@@ -18,8 +18,8 @@ __exportStar(require("./ClientId.js"), exports);
|
|
|
18
18
|
__exportStar(require("./CreateDomainRequest.js"), exports);
|
|
19
19
|
__exportStar(require("./Domain.js"), exports);
|
|
20
20
|
__exportStar(require("./DomainId.js"), exports);
|
|
21
|
+
__exportStar(require("./DomainItem.js"), exports);
|
|
21
22
|
__exportStar(require("./DomainName.js"), exports);
|
|
22
|
-
__exportStar(require("./DomainSummary.js"), exports);
|
|
23
23
|
__exportStar(require("./FeedbackEnabled.js"), exports);
|
|
24
24
|
__exportStar(require("./ListDomainsResponse.js"), exports);
|
|
25
25
|
__exportStar(require("./RecordStatus.js"), exports);
|
|
@@ -79,7 +79,12 @@ class Drafts {
|
|
|
79
79
|
_queryParams.page_token = pageToken;
|
|
80
80
|
}
|
|
81
81
|
if (labels != null) {
|
|
82
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
82
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
unrecognizedObjectKeys: "passthrough",
|
|
84
|
+
allowUnrecognizedUnionMembers: true,
|
|
85
|
+
allowUnrecognizedEnumValues: true,
|
|
86
|
+
omitUndefined: true,
|
|
87
|
+
}));
|
|
83
88
|
}
|
|
84
89
|
if (before != null) {
|
|
85
90
|
_queryParams.before = before.toISOString();
|
|
@@ -53,6 +53,20 @@ export declare class Inboxes {
|
|
|
53
53
|
*/
|
|
54
54
|
create(request: AgentMail.inboxes.CreateInboxRequest, requestOptions?: Inboxes.RequestOptions): core.HttpResponsePromise<AgentMail.inboxes.Inbox>;
|
|
55
55
|
private __create;
|
|
56
|
+
/**
|
|
57
|
+
* @param {AgentMail.inboxes.InboxId} inboxId
|
|
58
|
+
* @param {AgentMail.inboxes.UpdateInboxRequest} request
|
|
59
|
+
* @param {Inboxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await client.inboxes.update("inbox_id", {
|
|
65
|
+
* displayName: "display_name"
|
|
66
|
+
* })
|
|
67
|
+
*/
|
|
68
|
+
update(inboxId: AgentMail.inboxes.InboxId, request: AgentMail.inboxes.UpdateInboxRequest, requestOptions?: Inboxes.RequestOptions): core.HttpResponsePromise<AgentMail.inboxes.Inbox>;
|
|
69
|
+
private __update;
|
|
56
70
|
/**
|
|
57
71
|
* @param {AgentMail.inboxes.InboxId} inboxId
|
|
58
72
|
* @param {Inboxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -237,7 +237,9 @@ class Inboxes {
|
|
|
237
237
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
238
238
|
requestType: "json",
|
|
239
239
|
body: serializers.inboxes.CreateInboxRequest.jsonOrThrow(request, {
|
|
240
|
-
unrecognizedObjectKeys: "
|
|
240
|
+
unrecognizedObjectKeys: "passthrough",
|
|
241
|
+
allowUnrecognizedUnionMembers: true,
|
|
242
|
+
allowUnrecognizedEnumValues: true,
|
|
241
243
|
omitUndefined: true,
|
|
242
244
|
}),
|
|
243
245
|
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,
|
|
@@ -291,6 +293,89 @@ class Inboxes {
|
|
|
291
293
|
}
|
|
292
294
|
});
|
|
293
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* @param {AgentMail.inboxes.InboxId} inboxId
|
|
298
|
+
* @param {AgentMail.inboxes.UpdateInboxRequest} request
|
|
299
|
+
* @param {Inboxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
300
|
+
*
|
|
301
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* await client.inboxes.update("inbox_id", {
|
|
305
|
+
* displayName: "display_name"
|
|
306
|
+
* })
|
|
307
|
+
*/
|
|
308
|
+
update(inboxId, request, requestOptions) {
|
|
309
|
+
return core.HttpResponsePromise.fromPromise(this.__update(inboxId, request, requestOptions));
|
|
310
|
+
}
|
|
311
|
+
__update(inboxId, request, requestOptions) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
314
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
315
|
+
const _response = yield core.fetcher({
|
|
316
|
+
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.Production).http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inboxId, { omitUndefined: true }))}`),
|
|
317
|
+
method: "PATCH",
|
|
318
|
+
headers: _headers,
|
|
319
|
+
contentType: "application/json",
|
|
320
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
321
|
+
requestType: "json",
|
|
322
|
+
body: serializers.inboxes.UpdateInboxRequest.jsonOrThrow(request, {
|
|
323
|
+
unrecognizedObjectKeys: "passthrough",
|
|
324
|
+
allowUnrecognizedUnionMembers: true,
|
|
325
|
+
allowUnrecognizedEnumValues: true,
|
|
326
|
+
omitUndefined: true,
|
|
327
|
+
}),
|
|
328
|
+
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,
|
|
329
|
+
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,
|
|
330
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
331
|
+
});
|
|
332
|
+
if (_response.ok) {
|
|
333
|
+
return {
|
|
334
|
+
data: serializers.inboxes.Inbox.parseOrThrow(_response.body, {
|
|
335
|
+
unrecognizedObjectKeys: "passthrough",
|
|
336
|
+
allowUnrecognizedUnionMembers: true,
|
|
337
|
+
allowUnrecognizedEnumValues: true,
|
|
338
|
+
skipValidation: true,
|
|
339
|
+
breadcrumbsPrefix: ["response"],
|
|
340
|
+
}),
|
|
341
|
+
rawResponse: _response.rawResponse,
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
if (_response.error.reason === "status-code") {
|
|
345
|
+
switch (_response.error.statusCode) {
|
|
346
|
+
case 404:
|
|
347
|
+
throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
348
|
+
unrecognizedObjectKeys: "passthrough",
|
|
349
|
+
allowUnrecognizedUnionMembers: true,
|
|
350
|
+
allowUnrecognizedEnumValues: true,
|
|
351
|
+
skipValidation: true,
|
|
352
|
+
breadcrumbsPrefix: ["response"],
|
|
353
|
+
}), _response.rawResponse);
|
|
354
|
+
default:
|
|
355
|
+
throw new errors.AgentMailError({
|
|
356
|
+
statusCode: _response.error.statusCode,
|
|
357
|
+
body: _response.error.body,
|
|
358
|
+
rawResponse: _response.rawResponse,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
switch (_response.error.reason) {
|
|
363
|
+
case "non-json":
|
|
364
|
+
throw new errors.AgentMailError({
|
|
365
|
+
statusCode: _response.error.statusCode,
|
|
366
|
+
body: _response.error.rawBody,
|
|
367
|
+
rawResponse: _response.rawResponse,
|
|
368
|
+
});
|
|
369
|
+
case "timeout":
|
|
370
|
+
throw new errors.AgentMailTimeoutError("Timeout exceeded when calling PATCH /v0/inboxes/{inbox_id}.");
|
|
371
|
+
case "unknown":
|
|
372
|
+
throw new errors.AgentMailError({
|
|
373
|
+
message: _response.error.errorMessage,
|
|
374
|
+
rawResponse: _response.rawResponse,
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
}
|
|
294
379
|
/**
|
|
295
380
|
* @param {AgentMail.inboxes.InboxId} inboxId
|
|
296
381
|
* @param {Inboxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -80,7 +80,12 @@ class Drafts {
|
|
|
80
80
|
_queryParams.page_token = pageToken;
|
|
81
81
|
}
|
|
82
82
|
if (labels != null) {
|
|
83
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
|
86
|
+
allowUnrecognizedEnumValues: true,
|
|
87
|
+
omitUndefined: true,
|
|
88
|
+
}));
|
|
84
89
|
}
|
|
85
90
|
if (before != null) {
|
|
86
91
|
_queryParams.before = before.toISOString();
|
|
@@ -246,7 +251,9 @@ class Drafts {
|
|
|
246
251
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
247
252
|
requestType: "json",
|
|
248
253
|
body: serializers.CreateDraftRequest.jsonOrThrow(request, {
|
|
249
|
-
unrecognizedObjectKeys: "
|
|
254
|
+
unrecognizedObjectKeys: "passthrough",
|
|
255
|
+
allowUnrecognizedUnionMembers: true,
|
|
256
|
+
allowUnrecognizedEnumValues: true,
|
|
250
257
|
omitUndefined: true,
|
|
251
258
|
}),
|
|
252
259
|
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,
|
|
@@ -326,7 +333,9 @@ class Drafts {
|
|
|
326
333
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
327
334
|
requestType: "json",
|
|
328
335
|
body: serializers.UpdateDraftRequest.jsonOrThrow(request, {
|
|
329
|
-
unrecognizedObjectKeys: "
|
|
336
|
+
unrecognizedObjectKeys: "passthrough",
|
|
337
|
+
allowUnrecognizedUnionMembers: true,
|
|
338
|
+
allowUnrecognizedEnumValues: true,
|
|
330
339
|
omitUndefined: true,
|
|
331
340
|
}),
|
|
332
341
|
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,
|
|
@@ -408,7 +417,9 @@ class Drafts {
|
|
|
408
417
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
409
418
|
requestType: "json",
|
|
410
419
|
body: serializers.UpdateMessageRequest.jsonOrThrow(request, {
|
|
411
|
-
unrecognizedObjectKeys: "
|
|
420
|
+
unrecognizedObjectKeys: "passthrough",
|
|
421
|
+
allowUnrecognizedUnionMembers: true,
|
|
422
|
+
allowUnrecognizedEnumValues: true,
|
|
412
423
|
omitUndefined: true,
|
|
413
424
|
}),
|
|
414
425
|
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,
|
|
@@ -80,7 +80,12 @@ class Messages {
|
|
|
80
80
|
_queryParams.page_token = pageToken;
|
|
81
81
|
}
|
|
82
82
|
if (labels != null) {
|
|
83
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
|
86
|
+
allowUnrecognizedEnumValues: true,
|
|
87
|
+
omitUndefined: true,
|
|
88
|
+
}));
|
|
84
89
|
}
|
|
85
90
|
if (before != null) {
|
|
86
91
|
_queryParams.before = before.toISOString();
|
|
@@ -364,7 +369,9 @@ class Messages {
|
|
|
364
369
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
365
370
|
requestType: "json",
|
|
366
371
|
body: serializers.SendMessageRequest.jsonOrThrow(request, {
|
|
367
|
-
unrecognizedObjectKeys: "
|
|
372
|
+
unrecognizedObjectKeys: "passthrough",
|
|
373
|
+
allowUnrecognizedUnionMembers: true,
|
|
374
|
+
allowUnrecognizedEnumValues: true,
|
|
368
375
|
omitUndefined: true,
|
|
369
376
|
}),
|
|
370
377
|
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,
|
|
@@ -462,7 +469,9 @@ class Messages {
|
|
|
462
469
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
463
470
|
requestType: "json",
|
|
464
471
|
body: serializers.ReplyToMessageRequest.jsonOrThrow(request, {
|
|
465
|
-
unrecognizedObjectKeys: "
|
|
472
|
+
unrecognizedObjectKeys: "passthrough",
|
|
473
|
+
allowUnrecognizedUnionMembers: true,
|
|
474
|
+
allowUnrecognizedEnumValues: true,
|
|
466
475
|
omitUndefined: true,
|
|
467
476
|
}),
|
|
468
477
|
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,
|
|
@@ -559,7 +568,9 @@ class Messages {
|
|
|
559
568
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
560
569
|
requestType: "json",
|
|
561
570
|
body: serializers.UpdateMessageRequest.jsonOrThrow(request, {
|
|
562
|
-
unrecognizedObjectKeys: "
|
|
571
|
+
unrecognizedObjectKeys: "passthrough",
|
|
572
|
+
allowUnrecognizedUnionMembers: true,
|
|
573
|
+
allowUnrecognizedEnumValues: true,
|
|
563
574
|
omitUndefined: true,
|
|
564
575
|
}),
|
|
565
576
|
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,
|
|
@@ -79,7 +79,9 @@ class Metrics {
|
|
|
79
79
|
const _queryParams = {};
|
|
80
80
|
if (eventTypes != null) {
|
|
81
81
|
_queryParams.event_types = (0, json_js_1.toJson)(serializers.MetricEventTypes.jsonOrThrow(eventTypes, {
|
|
82
|
-
unrecognizedObjectKeys: "
|
|
82
|
+
unrecognizedObjectKeys: "passthrough",
|
|
83
|
+
allowUnrecognizedUnionMembers: true,
|
|
84
|
+
allowUnrecognizedEnumValues: true,
|
|
83
85
|
omitUndefined: true,
|
|
84
86
|
}));
|
|
85
87
|
}
|
|
@@ -80,7 +80,12 @@ class Threads {
|
|
|
80
80
|
_queryParams.page_token = pageToken;
|
|
81
81
|
}
|
|
82
82
|
if (labels != null) {
|
|
83
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
|
86
|
+
allowUnrecognizedEnumValues: true,
|
|
87
|
+
omitUndefined: true,
|
|
88
|
+
}));
|
|
84
89
|
}
|
|
85
90
|
if (before != null) {
|
|
86
91
|
_queryParams.before = before.toISOString();
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./DisplayName.js"), exports);
|
|
|
20
20
|
__exportStar(require("./Inbox.js"), exports);
|
|
21
21
|
__exportStar(require("./InboxId.js"), exports);
|
|
22
22
|
__exportStar(require("./ListInboxesResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./UpdateInboxRequest.js"), exports);
|
|
@@ -77,7 +77,9 @@ class Metrics {
|
|
|
77
77
|
const _queryParams = {};
|
|
78
78
|
if (eventTypes != null) {
|
|
79
79
|
_queryParams.event_types = (0, json_js_1.toJson)(serializers.MetricEventTypes.jsonOrThrow(eventTypes, {
|
|
80
|
-
unrecognizedObjectKeys: "
|
|
80
|
+
unrecognizedObjectKeys: "passthrough",
|
|
81
|
+
allowUnrecognizedUnionMembers: true,
|
|
82
|
+
allowUnrecognizedEnumValues: true,
|
|
81
83
|
omitUndefined: true,
|
|
82
84
|
}));
|
|
83
85
|
}
|
|
@@ -237,7 +237,9 @@ class Pods {
|
|
|
237
237
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
238
238
|
requestType: "json",
|
|
239
239
|
body: serializers.pods.CreatePodRequest.jsonOrThrow(request, {
|
|
240
|
-
unrecognizedObjectKeys: "
|
|
240
|
+
unrecognizedObjectKeys: "passthrough",
|
|
241
|
+
allowUnrecognizedUnionMembers: true,
|
|
242
|
+
allowUnrecognizedEnumValues: true,
|
|
241
243
|
omitUndefined: true,
|
|
242
244
|
}),
|
|
243
245
|
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,
|
|
@@ -80,7 +80,12 @@ class Domains {
|
|
|
80
80
|
_queryParams.page_token = pageToken;
|
|
81
81
|
}
|
|
82
82
|
if (labels != null) {
|
|
83
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
|
86
|
+
allowUnrecognizedEnumValues: true,
|
|
87
|
+
omitUndefined: true,
|
|
88
|
+
}));
|
|
84
89
|
}
|
|
85
90
|
if (before != null) {
|
|
86
91
|
_queryParams.before = before.toISOString();
|
|
@@ -176,7 +181,9 @@ class Domains {
|
|
|
176
181
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
177
182
|
requestType: "json",
|
|
178
183
|
body: serializers.CreateDomainRequest.jsonOrThrow(request, {
|
|
179
|
-
unrecognizedObjectKeys: "
|
|
184
|
+
unrecognizedObjectKeys: "passthrough",
|
|
185
|
+
allowUnrecognizedUnionMembers: true,
|
|
186
|
+
allowUnrecognizedEnumValues: true,
|
|
180
187
|
omitUndefined: true,
|
|
181
188
|
}),
|
|
182
189
|
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,
|
|
@@ -80,7 +80,12 @@ class Drafts {
|
|
|
80
80
|
_queryParams.page_token = pageToken;
|
|
81
81
|
}
|
|
82
82
|
if (labels != null) {
|
|
83
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
|
86
|
+
allowUnrecognizedEnumValues: true,
|
|
87
|
+
omitUndefined: true,
|
|
88
|
+
}));
|
|
84
89
|
}
|
|
85
90
|
if (before != null) {
|
|
86
91
|
_queryParams.before = before.toISOString();
|
|
@@ -80,7 +80,12 @@ class Inboxes {
|
|
|
80
80
|
_queryParams.page_token = pageToken;
|
|
81
81
|
}
|
|
82
82
|
if (labels != null) {
|
|
83
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
|
86
|
+
allowUnrecognizedEnumValues: true,
|
|
87
|
+
omitUndefined: true,
|
|
88
|
+
}));
|
|
84
89
|
}
|
|
85
90
|
if (before != null) {
|
|
86
91
|
_queryParams.before = before.toISOString();
|
|
@@ -246,7 +251,9 @@ class Inboxes {
|
|
|
246
251
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
247
252
|
requestType: "json",
|
|
248
253
|
body: serializers.inboxes.CreateInboxRequest.jsonOrThrow(request, {
|
|
249
|
-
unrecognizedObjectKeys: "
|
|
254
|
+
unrecognizedObjectKeys: "passthrough",
|
|
255
|
+
allowUnrecognizedUnionMembers: true,
|
|
256
|
+
allowUnrecognizedEnumValues: true,
|
|
250
257
|
omitUndefined: true,
|
|
251
258
|
}),
|
|
252
259
|
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,
|
|
@@ -80,7 +80,12 @@ class Threads {
|
|
|
80
80
|
_queryParams.page_token = pageToken;
|
|
81
81
|
}
|
|
82
82
|
if (labels != null) {
|
|
83
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
|
86
|
+
allowUnrecognizedEnumValues: true,
|
|
87
|
+
omitUndefined: true,
|
|
88
|
+
}));
|
|
84
89
|
}
|
|
85
90
|
if (before != null) {
|
|
86
91
|
_queryParams.before = before.toISOString();
|
|
@@ -79,7 +79,12 @@ class Threads {
|
|
|
79
79
|
_queryParams.page_token = pageToken;
|
|
80
80
|
}
|
|
81
81
|
if (labels != null) {
|
|
82
|
-
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
82
|
+
_queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
|
|
83
|
+
unrecognizedObjectKeys: "passthrough",
|
|
84
|
+
allowUnrecognizedUnionMembers: true,
|
|
85
|
+
allowUnrecognizedEnumValues: true,
|
|
86
|
+
omitUndefined: true,
|
|
87
|
+
}));
|
|
83
88
|
}
|
|
84
89
|
if (before != null) {
|
|
85
90
|
_queryParams.before = before.toISOString();
|
|
@@ -220,7 +220,9 @@ class Webhooks {
|
|
|
220
220
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
221
221
|
requestType: "json",
|
|
222
222
|
body: serializers.webhooks.CreateWebhookRequest.jsonOrThrow(request, {
|
|
223
|
-
unrecognizedObjectKeys: "
|
|
223
|
+
unrecognizedObjectKeys: "passthrough",
|
|
224
|
+
allowUnrecognizedUnionMembers: true,
|
|
225
|
+
allowUnrecognizedEnumValues: true,
|
|
224
226
|
omitUndefined: true,
|
|
225
227
|
}),
|
|
226
228
|
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,
|
package/dist/cjs/serialization/resources/domains/types/{DomainSummary.d.ts → DomainItem.d.ts}
RENAMED
|
@@ -4,8 +4,8 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
import { ClientId } from "./ClientId.js";
|
|
5
5
|
import { DomainId } from "./DomainId.js";
|
|
6
6
|
import { FeedbackEnabled } from "./FeedbackEnabled.js";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const DomainItem: core.serialization.ObjectSchema<serializers.DomainItem.Raw, AgentMail.DomainItem>;
|
|
8
|
+
export declare namespace DomainItem {
|
|
9
9
|
interface Raw {
|
|
10
10
|
domain_id: DomainId.Raw;
|
|
11
11
|
feedback_enabled: FeedbackEnabled.Raw;
|
|
@@ -34,12 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.DomainItem = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const ClientId_js_1 = require("./ClientId.js");
|
|
40
40
|
const DomainId_js_1 = require("./DomainId.js");
|
|
41
41
|
const FeedbackEnabled_js_1 = require("./FeedbackEnabled.js");
|
|
42
|
-
exports.
|
|
42
|
+
exports.DomainItem = core.serialization.object({
|
|
43
43
|
domainId: core.serialization.property("domain_id", DomainId_js_1.DomainId),
|
|
44
44
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled),
|
|
45
45
|
clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
|
|
@@ -2,13 +2,15 @@ import type * as AgentMail from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { Count } from "../../../types/Count.js";
|
|
5
|
+
import { Limit } from "../../../types/Limit.js";
|
|
5
6
|
import { PageToken } from "../../../types/PageToken.js";
|
|
6
|
-
import {
|
|
7
|
+
import { DomainItem } from "./DomainItem.js";
|
|
7
8
|
export declare const ListDomainsResponse: core.serialization.ObjectSchema<serializers.ListDomainsResponse.Raw, AgentMail.ListDomainsResponse>;
|
|
8
9
|
export declare namespace ListDomainsResponse {
|
|
9
10
|
interface Raw {
|
|
10
11
|
count: Count.Raw;
|
|
12
|
+
limit?: Limit.Raw | null;
|
|
11
13
|
next_page_token?: PageToken.Raw | null;
|
|
12
|
-
domains:
|
|
14
|
+
domains: DomainItem.Raw[];
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.ListDomainsResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const Count_js_1 = require("../../../types/Count.js");
|
|
40
|
+
const Limit_js_1 = require("../../../types/Limit.js");
|
|
40
41
|
const PageToken_js_1 = require("../../../types/PageToken.js");
|
|
41
|
-
const
|
|
42
|
+
const DomainItem_js_1 = require("./DomainItem.js");
|
|
42
43
|
exports.ListDomainsResponse = core.serialization.object({
|
|
43
44
|
count: Count_js_1.Count,
|
|
45
|
+
limit: Limit_js_1.Limit.optional(),
|
|
44
46
|
nextPageToken: core.serialization.property("next_page_token", PageToken_js_1.PageToken.optional()),
|
|
45
|
-
domains: core.serialization.list(
|
|
47
|
+
domains: core.serialization.list(DomainItem_js_1.DomainItem),
|
|
46
48
|
});
|
|
@@ -2,8 +2,8 @@ export * from "./ClientId.js";
|
|
|
2
2
|
export * from "./CreateDomainRequest.js";
|
|
3
3
|
export * from "./Domain.js";
|
|
4
4
|
export * from "./DomainId.js";
|
|
5
|
+
export * from "./DomainItem.js";
|
|
5
6
|
export * from "./DomainName.js";
|
|
6
|
-
export * from "./DomainSummary.js";
|
|
7
7
|
export * from "./FeedbackEnabled.js";
|
|
8
8
|
export * from "./ListDomainsResponse.js";
|
|
9
9
|
export * from "./RecordStatus.js";
|
|
@@ -18,8 +18,8 @@ __exportStar(require("./ClientId.js"), exports);
|
|
|
18
18
|
__exportStar(require("./CreateDomainRequest.js"), exports);
|
|
19
19
|
__exportStar(require("./Domain.js"), exports);
|
|
20
20
|
__exportStar(require("./DomainId.js"), exports);
|
|
21
|
+
__exportStar(require("./DomainItem.js"), exports);
|
|
21
22
|
__exportStar(require("./DomainName.js"), exports);
|
|
22
|
-
__exportStar(require("./DomainSummary.js"), exports);
|
|
23
23
|
__exportStar(require("./FeedbackEnabled.js"), exports);
|
|
24
24
|
__exportStar(require("./ListDomainsResponse.js"), exports);
|
|
25
25
|
__exportStar(require("./RecordStatus.js"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { DisplayName } from "./DisplayName.js";
|
|
5
|
+
export declare const UpdateInboxRequest: core.serialization.ObjectSchema<serializers.inboxes.UpdateInboxRequest.Raw, AgentMail.inboxes.UpdateInboxRequest>;
|
|
6
|
+
export declare namespace UpdateInboxRequest {
|
|
7
|
+
interface Raw {
|
|
8
|
+
display_name: DisplayName.Raw;
|
|
9
|
+
}
|
|
10
|
+
}
|