agentmail 0.0.28 → 0.0.30
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/api/resources/drafts/client/Client.js +6 -3
- package/api/resources/drafts/client/requests/DraftsListDraftsRequest.d.ts +1 -0
- package/api/resources/inboxes/client/Client.js +3 -3
- package/api/resources/inboxes/resources/drafts/client/Client.d.ts +17 -0
- package/api/resources/inboxes/resources/drafts/client/Client.js +94 -4
- package/api/resources/inboxes/resources/drafts/client/requests/ListDraftsRequest.d.ts +1 -0
- package/api/resources/inboxes/resources/messages/client/Client.d.ts +2 -1
- package/api/resources/inboxes/resources/messages/client/Client.js +12 -8
- package/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.ts +1 -0
- package/api/resources/inboxes/resources/messages/types/SendMessageRequest.d.ts +2 -1
- package/api/resources/inboxes/resources/threads/client/Client.js +6 -3
- package/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -0
- package/api/resources/threads/client/Client.js +6 -3
- package/api/resources/threads/client/requests/ThreadsListThreadsRequest.d.ts +1 -0
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/types/Ascending.d.ts +7 -0
- package/api/types/Ascending.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/drafts/client/Client.js +6 -3
- package/dist/api/resources/drafts/client/requests/DraftsListDraftsRequest.d.ts +1 -0
- package/dist/api/resources/inboxes/client/Client.js +3 -3
- package/dist/api/resources/inboxes/resources/drafts/client/Client.d.ts +17 -0
- package/dist/api/resources/inboxes/resources/drafts/client/Client.js +94 -4
- package/dist/api/resources/inboxes/resources/drafts/client/requests/ListDraftsRequest.d.ts +1 -0
- package/dist/api/resources/inboxes/resources/messages/client/Client.d.ts +2 -1
- package/dist/api/resources/inboxes/resources/messages/client/Client.js +12 -8
- package/dist/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.ts +1 -0
- package/dist/api/resources/inboxes/resources/messages/types/SendMessageRequest.d.ts +2 -1
- package/dist/api/resources/inboxes/resources/threads/client/Client.js +6 -3
- package/dist/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -0
- package/dist/api/resources/threads/client/Client.js +6 -3
- package/dist/api/resources/threads/client/requests/ThreadsListThreadsRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/Client.js +4 -4
- package/dist/api/types/Ascending.d.ts +7 -0
- package/dist/api/types/Ascending.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/inboxes/resources/messages/types/SendMessageRequest.d.ts +3 -1
- package/dist/serialization/resources/inboxes/resources/messages/types/SendMessageRequest.js +3 -1
- package/dist/serialization/types/Ascending.d.ts +10 -0
- package/dist/serialization/types/Ascending.js +41 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +69 -1
- package/serialization/resources/inboxes/resources/messages/types/SendMessageRequest.d.ts +3 -1
- package/serialization/resources/inboxes/resources/messages/types/SendMessageRequest.js +3 -1
- package/serialization/types/Ascending.d.ts +10 -0
- package/serialization/types/Ascending.js +41 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -66,5 +66,22 @@ export declare class Drafts {
|
|
|
66
66
|
* })
|
|
67
67
|
*/
|
|
68
68
|
create(inboxId: AgentMail.inboxes.InboxId, request: AgentMail.inboxes.CreateDraftRequest, requestOptions?: Drafts.RequestOptions): Promise<AgentMail.inboxes.Draft>;
|
|
69
|
+
/**
|
|
70
|
+
* @param {AgentMail.inboxes.InboxId} inboxId
|
|
71
|
+
* @param {AgentMail.inboxes.DraftId} draftId
|
|
72
|
+
* @param {AgentMail.inboxes.UpdateMessageRequest} request
|
|
73
|
+
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
76
|
+
* @throws {@link AgentMail.ValidationError}
|
|
77
|
+
* @throws {@link AgentMail.inboxes.MessageRejectedError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.inboxes.drafts.send("inbox_id", "draft_id", {
|
|
81
|
+
* addLabels: undefined,
|
|
82
|
+
* removeLabels: undefined
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
send(inboxId: AgentMail.inboxes.InboxId, draftId: AgentMail.inboxes.DraftId, request: AgentMail.inboxes.UpdateMessageRequest, requestOptions?: Drafts.RequestOptions): Promise<AgentMail.inboxes.SendMessageResponse>;
|
|
69
86
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
70
87
|
}
|
|
@@ -73,7 +73,7 @@ class Drafts {
|
|
|
73
73
|
list(inboxId_1) {
|
|
74
74
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
75
75
|
var _a, _b;
|
|
76
|
-
const { limit, lastKey, labels } = request;
|
|
76
|
+
const { limit, lastKey, labels, ascending } = request;
|
|
77
77
|
const _queryParams = {};
|
|
78
78
|
if (limit != null) {
|
|
79
79
|
_queryParams["limit"] = limit.toString();
|
|
@@ -84,10 +84,13 @@ class Drafts {
|
|
|
84
84
|
if (labels != null) {
|
|
85
85
|
_queryParams["labels"] = (0, json_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip" }));
|
|
86
86
|
}
|
|
87
|
+
if (ascending != null) {
|
|
88
|
+
_queryParams["ascending"] = ascending.toString();
|
|
89
|
+
}
|
|
87
90
|
const _response = yield core.fetcher({
|
|
88
91
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/drafts`),
|
|
89
92
|
method: "GET",
|
|
90
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
93
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
94
|
contentType: "application/json",
|
|
92
95
|
queryParameters: _queryParams,
|
|
93
96
|
requestType: "json",
|
|
@@ -152,7 +155,7 @@ class Drafts {
|
|
|
152
155
|
const _response = yield core.fetcher({
|
|
153
156
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/drafts/${encodeURIComponent(serializers.inboxes.DraftId.jsonOrThrow(draftId))}`),
|
|
154
157
|
method: "GET",
|
|
155
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
158
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
156
159
|
contentType: "application/json",
|
|
157
160
|
requestType: "json",
|
|
158
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -224,7 +227,7 @@ class Drafts {
|
|
|
224
227
|
const _response = yield core.fetcher({
|
|
225
228
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/drafts`),
|
|
226
229
|
method: "POST",
|
|
227
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
230
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
231
|
contentType: "application/json",
|
|
229
232
|
requestType: "json",
|
|
230
233
|
body: serializers.inboxes.CreateDraftRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -273,6 +276,93 @@ class Drafts {
|
|
|
273
276
|
}
|
|
274
277
|
});
|
|
275
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* @param {AgentMail.inboxes.InboxId} inboxId
|
|
281
|
+
* @param {AgentMail.inboxes.DraftId} draftId
|
|
282
|
+
* @param {AgentMail.inboxes.UpdateMessageRequest} request
|
|
283
|
+
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
284
|
+
*
|
|
285
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
286
|
+
* @throws {@link AgentMail.ValidationError}
|
|
287
|
+
* @throws {@link AgentMail.inboxes.MessageRejectedError}
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* await client.inboxes.drafts.send("inbox_id", "draft_id", {
|
|
291
|
+
* addLabels: undefined,
|
|
292
|
+
* removeLabels: undefined
|
|
293
|
+
* })
|
|
294
|
+
*/
|
|
295
|
+
send(inboxId, draftId, request, requestOptions) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
var _a, _b;
|
|
298
|
+
const _response = yield core.fetcher({
|
|
299
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/drafts/${encodeURIComponent(serializers.inboxes.DraftId.jsonOrThrow(draftId))}/send`),
|
|
300
|
+
method: "POST",
|
|
301
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
302
|
+
contentType: "application/json",
|
|
303
|
+
requestType: "json",
|
|
304
|
+
body: serializers.inboxes.UpdateMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
305
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
306
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
307
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
308
|
+
});
|
|
309
|
+
if (_response.ok) {
|
|
310
|
+
return serializers.inboxes.SendMessageResponse.parseOrThrow(_response.body, {
|
|
311
|
+
unrecognizedObjectKeys: "passthrough",
|
|
312
|
+
allowUnrecognizedUnionMembers: true,
|
|
313
|
+
allowUnrecognizedEnumValues: true,
|
|
314
|
+
skipValidation: true,
|
|
315
|
+
breadcrumbsPrefix: ["response"],
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
if (_response.error.reason === "status-code") {
|
|
319
|
+
switch (_response.error.statusCode) {
|
|
320
|
+
case 404:
|
|
321
|
+
throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
322
|
+
unrecognizedObjectKeys: "passthrough",
|
|
323
|
+
allowUnrecognizedUnionMembers: true,
|
|
324
|
+
allowUnrecognizedEnumValues: true,
|
|
325
|
+
skipValidation: true,
|
|
326
|
+
breadcrumbsPrefix: ["response"],
|
|
327
|
+
}));
|
|
328
|
+
case 400:
|
|
329
|
+
throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
330
|
+
unrecognizedObjectKeys: "passthrough",
|
|
331
|
+
allowUnrecognizedUnionMembers: true,
|
|
332
|
+
allowUnrecognizedEnumValues: true,
|
|
333
|
+
skipValidation: true,
|
|
334
|
+
breadcrumbsPrefix: ["response"],
|
|
335
|
+
}));
|
|
336
|
+
case 403:
|
|
337
|
+
throw new AgentMail.inboxes.MessageRejectedError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
338
|
+
unrecognizedObjectKeys: "passthrough",
|
|
339
|
+
allowUnrecognizedUnionMembers: true,
|
|
340
|
+
allowUnrecognizedEnumValues: true,
|
|
341
|
+
skipValidation: true,
|
|
342
|
+
breadcrumbsPrefix: ["response"],
|
|
343
|
+
}));
|
|
344
|
+
default:
|
|
345
|
+
throw new errors.AgentMailError({
|
|
346
|
+
statusCode: _response.error.statusCode,
|
|
347
|
+
body: _response.error.body,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
switch (_response.error.reason) {
|
|
352
|
+
case "non-json":
|
|
353
|
+
throw new errors.AgentMailError({
|
|
354
|
+
statusCode: _response.error.statusCode,
|
|
355
|
+
body: _response.error.rawBody,
|
|
356
|
+
});
|
|
357
|
+
case "timeout":
|
|
358
|
+
throw new errors.AgentMailTimeoutError("Timeout exceeded when calling POST /v0/inboxes/{inbox_id}/drafts/{draft_id}/send.");
|
|
359
|
+
case "unknown":
|
|
360
|
+
throw new errors.AgentMailError({
|
|
361
|
+
message: _response.error.errorMessage,
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
}
|
|
276
366
|
_getAuthorizationHeader() {
|
|
277
367
|
return __awaiter(this, void 0, void 0, function* () {
|
|
278
368
|
var _a;
|
|
@@ -73,7 +73,7 @@ class Messages {
|
|
|
73
73
|
list(inboxId_1) {
|
|
74
74
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
75
75
|
var _a, _b;
|
|
76
|
-
const { limit, lastKey, labels } = request;
|
|
76
|
+
const { limit, lastKey, labels, ascending } = request;
|
|
77
77
|
const _queryParams = {};
|
|
78
78
|
if (limit != null) {
|
|
79
79
|
_queryParams["limit"] = limit.toString();
|
|
@@ -84,10 +84,13 @@ class Messages {
|
|
|
84
84
|
if (labels != null) {
|
|
85
85
|
_queryParams["labels"] = (0, json_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip" }));
|
|
86
86
|
}
|
|
87
|
+
if (ascending != null) {
|
|
88
|
+
_queryParams["ascending"] = ascending.toString();
|
|
89
|
+
}
|
|
87
90
|
const _response = yield core.fetcher({
|
|
88
91
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/messages`),
|
|
89
92
|
method: "GET",
|
|
90
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
93
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
94
|
contentType: "application/json",
|
|
92
95
|
queryParameters: _queryParams,
|
|
93
96
|
requestType: "json",
|
|
@@ -152,7 +155,7 @@ class Messages {
|
|
|
152
155
|
const _response = yield core.fetcher({
|
|
153
156
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.inboxes.MessageId.jsonOrThrow(messageId))}`),
|
|
154
157
|
method: "GET",
|
|
155
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
158
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
156
159
|
contentType: "application/json",
|
|
157
160
|
requestType: "json",
|
|
158
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -209,7 +212,7 @@ class Messages {
|
|
|
209
212
|
const _response = yield core.fetcher({
|
|
210
213
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.inboxes.MessageId.jsonOrThrow(messageId))}/attachments/${encodeURIComponent(serializers.inboxes.AttachmentId.jsonOrThrow(attachmentId))}`),
|
|
211
214
|
method: "GET",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
215
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
216
|
contentType: "application/json",
|
|
214
217
|
requestType: "json",
|
|
215
218
|
responseType: "streaming",
|
|
@@ -263,7 +266,8 @@ class Messages {
|
|
|
263
266
|
*
|
|
264
267
|
* @example
|
|
265
268
|
* await client.inboxes.messages.send("inbox_id", {
|
|
266
|
-
*
|
|
269
|
+
* labels: undefined,
|
|
270
|
+
* to: undefined,
|
|
267
271
|
* cc: undefined,
|
|
268
272
|
* bcc: undefined,
|
|
269
273
|
* subject: undefined,
|
|
@@ -278,7 +282,7 @@ class Messages {
|
|
|
278
282
|
const _response = yield core.fetcher({
|
|
279
283
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/send`),
|
|
280
284
|
method: "POST",
|
|
281
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
285
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
282
286
|
contentType: "application/json",
|
|
283
287
|
requestType: "json",
|
|
284
288
|
body: serializers.inboxes.SendMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -369,7 +373,7 @@ class Messages {
|
|
|
369
373
|
const _response = yield core.fetcher({
|
|
370
374
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.inboxes.MessageId.jsonOrThrow(messageId))}/reply`),
|
|
371
375
|
method: "POST",
|
|
372
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
376
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
373
377
|
contentType: "application/json",
|
|
374
378
|
requestType: "json",
|
|
375
379
|
body: serializers.inboxes.ReplyToMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -455,7 +459,7 @@ class Messages {
|
|
|
455
459
|
const _response = yield core.fetcher({
|
|
456
460
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.inboxes.MessageId.jsonOrThrow(messageId))}`),
|
|
457
461
|
method: "PATCH",
|
|
458
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
462
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
459
463
|
contentType: "application/json",
|
|
460
464
|
requestType: "json",
|
|
461
465
|
body: serializers.inboxes.UpdateMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as AgentMail from "../../../../../index";
|
|
5
5
|
export interface SendMessageRequest {
|
|
6
|
-
|
|
6
|
+
labels?: AgentMail.inboxes.MessageLabels;
|
|
7
|
+
to?: AgentMail.inboxes.SendMessageTo;
|
|
7
8
|
cc?: AgentMail.inboxes.SendMessageCc;
|
|
8
9
|
bcc?: AgentMail.inboxes.SendMessageBcc;
|
|
9
10
|
subject?: AgentMail.inboxes.MessageSubject;
|
|
@@ -73,7 +73,7 @@ class Threads {
|
|
|
73
73
|
list(inboxId_1) {
|
|
74
74
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
75
75
|
var _a, _b;
|
|
76
|
-
const { limit, lastKey, labels } = request;
|
|
76
|
+
const { limit, lastKey, labels, ascending } = request;
|
|
77
77
|
const _queryParams = {};
|
|
78
78
|
if (limit != null) {
|
|
79
79
|
_queryParams["limit"] = limit.toString();
|
|
@@ -84,10 +84,13 @@ class Threads {
|
|
|
84
84
|
if (labels != null) {
|
|
85
85
|
_queryParams["labels"] = (0, json_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip" }));
|
|
86
86
|
}
|
|
87
|
+
if (ascending != null) {
|
|
88
|
+
_queryParams["ascending"] = ascending.toString();
|
|
89
|
+
}
|
|
87
90
|
const _response = yield core.fetcher({
|
|
88
91
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/threads`),
|
|
89
92
|
method: "GET",
|
|
90
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
93
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
94
|
contentType: "application/json",
|
|
92
95
|
queryParameters: _queryParams,
|
|
93
96
|
requestType: "json",
|
|
@@ -152,7 +155,7 @@ class Threads {
|
|
|
152
155
|
const _response = yield core.fetcher({
|
|
153
156
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.inboxes.InboxId.jsonOrThrow(inboxId))}/threads/${encodeURIComponent(serializers.inboxes.ThreadId.jsonOrThrow(threadId))}`),
|
|
154
157
|
method: "GET",
|
|
155
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
158
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
156
159
|
contentType: "application/json",
|
|
157
160
|
requestType: "json",
|
|
158
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -72,7 +72,7 @@ class Threads {
|
|
|
72
72
|
list() {
|
|
73
73
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
74
|
var _a, _b;
|
|
75
|
-
const { limit, lastKey, labels } = request;
|
|
75
|
+
const { limit, lastKey, labels, ascending } = request;
|
|
76
76
|
const _queryParams = {};
|
|
77
77
|
if (limit != null) {
|
|
78
78
|
_queryParams["limit"] = limit.toString();
|
|
@@ -83,10 +83,13 @@ class Threads {
|
|
|
83
83
|
if (labels != null) {
|
|
84
84
|
_queryParams["labels"] = (0, json_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip" }));
|
|
85
85
|
}
|
|
86
|
+
if (ascending != null) {
|
|
87
|
+
_queryParams["ascending"] = ascending.toString();
|
|
88
|
+
}
|
|
86
89
|
const _response = yield core.fetcher({
|
|
87
90
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/threads"),
|
|
88
91
|
method: "GET",
|
|
89
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
92
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
90
93
|
contentType: "application/json",
|
|
91
94
|
queryParameters: _queryParams,
|
|
92
95
|
requestType: "json",
|
|
@@ -150,7 +153,7 @@ class Threads {
|
|
|
150
153
|
const _response = yield core.fetcher({
|
|
151
154
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/threads/${encodeURIComponent(serializers.inboxes.ThreadId.jsonOrThrow(threadId))}`),
|
|
152
155
|
method: "GET",
|
|
153
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
156
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
154
157
|
contentType: "application/json",
|
|
155
158
|
requestType: "json",
|
|
156
159
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -80,7 +80,7 @@ class Webhooks {
|
|
|
80
80
|
const _response = yield core.fetcher({
|
|
81
81
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/webhooks"),
|
|
82
82
|
method: "GET",
|
|
83
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
83
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
queryParameters: _queryParams,
|
|
86
86
|
requestType: "json",
|
|
@@ -133,7 +133,7 @@ class Webhooks {
|
|
|
133
133
|
const _response = yield core.fetcher({
|
|
134
134
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/webhooks/${encodeURIComponent(serializers.WebhookId.jsonOrThrow(webhookId))}`),
|
|
135
135
|
method: "GET",
|
|
136
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
136
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
137
137
|
contentType: "application/json",
|
|
138
138
|
requestType: "json",
|
|
139
139
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -200,7 +200,7 @@ class Webhooks {
|
|
|
200
200
|
const _response = yield core.fetcher({
|
|
201
201
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/webhooks"),
|
|
202
202
|
method: "POST",
|
|
203
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
203
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
204
204
|
contentType: "application/json",
|
|
205
205
|
requestType: "json",
|
|
206
206
|
body: serializers.CreateWebhookRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -264,7 +264,7 @@ class Webhooks {
|
|
|
264
264
|
const _response = yield core.fetcher({
|
|
265
265
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/webhooks/${encodeURIComponent(serializers.WebhookId.jsonOrThrow(webhookId))}`),
|
|
266
266
|
method: "DELETE",
|
|
267
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
267
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.30", "User-Agent": "agentmail/0.0.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
268
268
|
contentType: "application/json",
|
|
269
269
|
requestType: "json",
|
|
270
270
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
package/dist/api/types/index.js
CHANGED
|
@@ -18,6 +18,7 @@ __exportStar(require("./Limit"), exports);
|
|
|
18
18
|
__exportStar(require("./Count"), exports);
|
|
19
19
|
__exportStar(require("./LastKey"), exports);
|
|
20
20
|
__exportStar(require("./Labels"), exports);
|
|
21
|
+
__exportStar(require("./Ascending"), exports);
|
|
21
22
|
__exportStar(require("./OrganizationId"), exports);
|
|
22
23
|
__exportStar(require("./ErrorName"), exports);
|
|
23
24
|
__exportStar(require("./ErrorResponse"), exports);
|
package/dist/serialization/resources/inboxes/resources/messages/types/SendMessageRequest.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../../../index";
|
|
5
5
|
import * as AgentMail from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
|
+
import { MessageLabels } from "./MessageLabels";
|
|
7
8
|
import { SendMessageTo } from "./SendMessageTo";
|
|
8
9
|
import { SendMessageCc } from "./SendMessageCc";
|
|
9
10
|
import { SendMessageBcc } from "./SendMessageBcc";
|
|
@@ -14,7 +15,8 @@ import { SendMessageAttachments } from "./SendMessageAttachments";
|
|
|
14
15
|
export declare const SendMessageRequest: core.serialization.ObjectSchema<serializers.inboxes.SendMessageRequest.Raw, AgentMail.inboxes.SendMessageRequest>;
|
|
15
16
|
export declare namespace SendMessageRequest {
|
|
16
17
|
interface Raw {
|
|
17
|
-
|
|
18
|
+
labels?: MessageLabels.Raw | null;
|
|
19
|
+
to?: SendMessageTo.Raw | null;
|
|
18
20
|
cc?: SendMessageCc.Raw | null;
|
|
19
21
|
bcc?: SendMessageBcc.Raw | null;
|
|
20
22
|
subject?: MessageSubject.Raw | null;
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.SendMessageRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../core"));
|
|
41
|
+
const MessageLabels_1 = require("./MessageLabels");
|
|
41
42
|
const SendMessageTo_1 = require("./SendMessageTo");
|
|
42
43
|
const SendMessageCc_1 = require("./SendMessageCc");
|
|
43
44
|
const SendMessageBcc_1 = require("./SendMessageBcc");
|
|
@@ -46,7 +47,8 @@ const MessageText_1 = require("./MessageText");
|
|
|
46
47
|
const MessageHtml_1 = require("./MessageHtml");
|
|
47
48
|
const SendMessageAttachments_1 = require("./SendMessageAttachments");
|
|
48
49
|
exports.SendMessageRequest = core.serialization.object({
|
|
49
|
-
|
|
50
|
+
labels: MessageLabels_1.MessageLabels.optional(),
|
|
51
|
+
to: SendMessageTo_1.SendMessageTo.optional(),
|
|
50
52
|
cc: SendMessageCc_1.SendMessageCc.optional(),
|
|
51
53
|
bcc: SendMessageBcc_1.SendMessageBcc.optional(),
|
|
52
54
|
subject: MessageSubject_1.MessageSubject.optional(),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as AgentMail from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const Ascending: core.serialization.Schema<serializers.Ascending.Raw, AgentMail.Ascending>;
|
|
8
|
+
export declare namespace Ascending {
|
|
9
|
+
type Raw = boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Ascending = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.Ascending = core.serialization.boolean();
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./Limit"), exports);
|
|
|
18
18
|
__exportStar(require("./Count"), exports);
|
|
19
19
|
__exportStar(require("./LastKey"), exports);
|
|
20
20
|
__exportStar(require("./Labels"), exports);
|
|
21
|
+
__exportStar(require("./Ascending"), exports);
|
|
21
22
|
__exportStar(require("./OrganizationId"), exports);
|
|
22
23
|
__exportStar(require("./ErrorName"), exports);
|
|
23
24
|
__exportStar(require("./ErrorResponse"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.30";
|
package/dist/version.js
CHANGED