agentmail 0.5.5 → 0.5.7
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/inboxes/types/UpdateInboxRequest.d.ts +4 -2
- package/dist/cjs/api/resources/inboxes/types/UpdateMetadata.d.ts +1 -1
- package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.d.ts +1 -1
- package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.js +1 -1
- package/dist/cjs/serialization/resources/inboxes/types/UpdateMetadata.js +1 -1
- 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/inboxes/types/UpdateInboxRequest.d.mts +4 -2
- package/dist/esm/api/resources/inboxes/types/UpdateMetadata.d.mts +1 -1
- package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.d.mts +1 -1
- package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.mjs +1 -1
- package/dist/esm/serialization/resources/inboxes/types/UpdateMetadata.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +95 -26
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "agentmail",
|
|
46
|
-
"X-Fern-SDK-Version": "0.5.
|
|
47
|
-
"User-Agent": "agentmail/0.5.
|
|
46
|
+
"X-Fern-SDK-Version": "0.5.7",
|
|
47
|
+
"User-Agent": "agentmail/0.5.7",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -5,7 +5,9 @@ export interface UpdateInboxRequest {
|
|
|
5
5
|
* Metadata to merge into the inbox's existing metadata. Keys you include
|
|
6
6
|
* are added or overwritten; keys you omit are left unchanged. To remove a
|
|
7
7
|
* single key, send it with a null value. To clear all metadata, send
|
|
8
|
-
* `metadata` as null.
|
|
8
|
+
* `metadata` as null. Sending an empty object is rejected; use null to
|
|
9
|
+
* clear. Each update must include at least one of `display_name` or
|
|
10
|
+
* `metadata`.
|
|
9
11
|
*/
|
|
10
|
-
metadata?: AgentMail.inboxes.UpdateMetadata;
|
|
12
|
+
metadata?: AgentMail.inboxes.UpdateMetadata | null;
|
|
11
13
|
}
|
|
@@ -5,4 +5,4 @@ import type * as AgentMail from "../../../index.js";
|
|
|
5
5
|
* removes it. Up to 256 keys; keys and string values are each limited to
|
|
6
6
|
* 256 characters.
|
|
7
7
|
*/
|
|
8
|
-
export type UpdateMetadata = Record<string, AgentMail.inboxes.MetadataValue>;
|
|
8
|
+
export type UpdateMetadata = Record<string, AgentMail.inboxes.MetadataValue | null>;
|
|
@@ -7,6 +7,6 @@ export declare const UpdateInboxRequest: core.serialization.ObjectSchema<seriali
|
|
|
7
7
|
export declare namespace UpdateInboxRequest {
|
|
8
8
|
interface Raw {
|
|
9
9
|
display_name?: DisplayName.Raw | null;
|
|
10
|
-
metadata?: UpdateMetadata.Raw | null;
|
|
10
|
+
metadata?: (UpdateMetadata.Raw | null | undefined) | null;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -40,5 +40,5 @@ const DisplayName_js_1 = require("./DisplayName.js");
|
|
|
40
40
|
const UpdateMetadata_js_1 = require("./UpdateMetadata.js");
|
|
41
41
|
exports.UpdateInboxRequest = core.serialization.object({
|
|
42
42
|
displayName: core.serialization.property("display_name", DisplayName_js_1.DisplayName.optional()),
|
|
43
|
-
metadata: UpdateMetadata_js_1.UpdateMetadata.
|
|
43
|
+
metadata: UpdateMetadata_js_1.UpdateMetadata.optionalNullable(),
|
|
44
44
|
});
|
|
@@ -37,4 +37,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.UpdateMetadata = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const MetadataValue_js_1 = require("./MetadataValue.js");
|
|
40
|
-
exports.UpdateMetadata = core.serialization.record(core.serialization.string(), MetadataValue_js_1.MetadataValue);
|
|
40
|
+
exports.UpdateMetadata = core.serialization.record(core.serialization.string(), MetadataValue_js_1.MetadataValue.nullable());
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.7";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "agentmail",
|
|
9
|
-
"X-Fern-SDK-Version": "0.5.
|
|
10
|
-
"User-Agent": "agentmail/0.5.
|
|
9
|
+
"X-Fern-SDK-Version": "0.5.7",
|
|
10
|
+
"User-Agent": "agentmail/0.5.7",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -5,7 +5,9 @@ export interface UpdateInboxRequest {
|
|
|
5
5
|
* Metadata to merge into the inbox's existing metadata. Keys you include
|
|
6
6
|
* are added or overwritten; keys you omit are left unchanged. To remove a
|
|
7
7
|
* single key, send it with a null value. To clear all metadata, send
|
|
8
|
-
* `metadata` as null.
|
|
8
|
+
* `metadata` as null. Sending an empty object is rejected; use null to
|
|
9
|
+
* clear. Each update must include at least one of `display_name` or
|
|
10
|
+
* `metadata`.
|
|
9
11
|
*/
|
|
10
|
-
metadata?: AgentMail.inboxes.UpdateMetadata;
|
|
12
|
+
metadata?: AgentMail.inboxes.UpdateMetadata | null;
|
|
11
13
|
}
|
|
@@ -5,4 +5,4 @@ import type * as AgentMail from "../../../index.mjs";
|
|
|
5
5
|
* removes it. Up to 256 keys; keys and string values are each limited to
|
|
6
6
|
* 256 characters.
|
|
7
7
|
*/
|
|
8
|
-
export type UpdateMetadata = Record<string, AgentMail.inboxes.MetadataValue>;
|
|
8
|
+
export type UpdateMetadata = Record<string, AgentMail.inboxes.MetadataValue | null>;
|
|
@@ -7,6 +7,6 @@ export declare const UpdateInboxRequest: core.serialization.ObjectSchema<seriali
|
|
|
7
7
|
export declare namespace UpdateInboxRequest {
|
|
8
8
|
interface Raw {
|
|
9
9
|
display_name?: DisplayName.Raw | null;
|
|
10
|
-
metadata?: UpdateMetadata.Raw | null;
|
|
10
|
+
metadata?: (UpdateMetadata.Raw | null | undefined) | null;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -4,5 +4,5 @@ import { DisplayName } from "./DisplayName.mjs";
|
|
|
4
4
|
import { UpdateMetadata } from "./UpdateMetadata.mjs";
|
|
5
5
|
export const UpdateInboxRequest = core.serialization.object({
|
|
6
6
|
displayName: core.serialization.property("display_name", DisplayName.optional()),
|
|
7
|
-
metadata: UpdateMetadata.
|
|
7
|
+
metadata: UpdateMetadata.optionalNullable(),
|
|
8
8
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import { MetadataValue } from "./MetadataValue.mjs";
|
|
4
|
-
export const UpdateMetadata = core.serialization.record(core.serialization.string(), MetadataValue);
|
|
4
|
+
export const UpdateMetadata = core.serialization.record(core.serialization.string(), MetadataValue.nullable());
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.7";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.7";
|
package/dist/llms-full.txt
CHANGED
|
@@ -12447,9 +12447,13 @@ components:
|
|
|
12447
12447
|
type: object
|
|
12448
12448
|
additionalProperties:
|
|
12449
12449
|
$ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
12450
|
-
description:
|
|
12450
|
+
description: >-
|
|
12451
12451
|
Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and
|
|
12452
|
-
|
|
12452
|
+
|
|
12453
|
+
string values are each limited to 256 characters. When updating
|
|
12454
|
+
metadata,
|
|
12455
|
+
|
|
12456
|
+
send a key with a null value to remove that key.
|
|
12453
12457
|
title: Metadata
|
|
12454
12458
|
type_inboxes:Inbox:
|
|
12455
12459
|
type: object
|
|
@@ -12728,9 +12732,13 @@ components:
|
|
|
12728
12732
|
type: object
|
|
12729
12733
|
additionalProperties:
|
|
12730
12734
|
$ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
12731
|
-
description:
|
|
12735
|
+
description: >-
|
|
12732
12736
|
Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and
|
|
12733
|
-
|
|
12737
|
+
|
|
12738
|
+
string values are each limited to 256 characters. When updating
|
|
12739
|
+
metadata,
|
|
12740
|
+
|
|
12741
|
+
send a key with a null value to remove that key.
|
|
12734
12742
|
title: Metadata
|
|
12735
12743
|
type_inboxes:Inbox:
|
|
12736
12744
|
type: object
|
|
@@ -13005,9 +13013,13 @@ components:
|
|
|
13005
13013
|
type: object
|
|
13006
13014
|
additionalProperties:
|
|
13007
13015
|
$ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
13008
|
-
description:
|
|
13016
|
+
description: >-
|
|
13009
13017
|
Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and
|
|
13010
|
-
|
|
13018
|
+
|
|
13019
|
+
string values are each limited to 256 characters. When updating
|
|
13020
|
+
metadata,
|
|
13021
|
+
|
|
13022
|
+
send a key with a null value to remove that key.
|
|
13011
13023
|
title: Metadata
|
|
13012
13024
|
type_inboxes:CreateInboxRequest:
|
|
13013
13025
|
type: object
|
|
@@ -13295,6 +13307,9 @@ paths:
|
|
|
13295
13307
|
schema:
|
|
13296
13308
|
$ref: '#/components/schemas/type_:ErrorResponse'
|
|
13297
13309
|
requestBody:
|
|
13310
|
+
description: >-
|
|
13311
|
+
Expects an object; provide at least one of `display_name` or
|
|
13312
|
+
`metadata`.
|
|
13298
13313
|
content:
|
|
13299
13314
|
application/json:
|
|
13300
13315
|
schema:
|
|
@@ -13322,21 +13337,27 @@ components:
|
|
|
13322
13337
|
- type: boolean
|
|
13323
13338
|
description: A metadata value. May be a string, number, or boolean.
|
|
13324
13339
|
title: MetadataValue
|
|
13325
|
-
type_inboxes:
|
|
13340
|
+
type_inboxes:UpdateMetadata:
|
|
13326
13341
|
type: object
|
|
13327
13342
|
additionalProperties:
|
|
13328
|
-
|
|
13343
|
+
oneOf:
|
|
13344
|
+
- $ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
13345
|
+
- type: 'null'
|
|
13329
13346
|
description: |-
|
|
13330
|
-
Custom key-value pairs
|
|
13331
|
-
string
|
|
13332
|
-
|
|
13347
|
+
Custom key-value pairs to merge into the inbox's existing metadata. A
|
|
13348
|
+
value may be a string, number, boolean, or null. Setting a key to null
|
|
13349
|
+
removes it. Up to 256 keys; keys and string values are each limited to
|
|
13350
|
+
256 characters.
|
|
13351
|
+
title: UpdateMetadata
|
|
13333
13352
|
type_inboxes:UpdateInboxRequest:
|
|
13334
13353
|
type: object
|
|
13335
13354
|
properties:
|
|
13336
13355
|
display_name:
|
|
13337
13356
|
$ref: '#/components/schemas/type_inboxes:DisplayName'
|
|
13338
13357
|
metadata:
|
|
13339
|
-
|
|
13358
|
+
oneOf:
|
|
13359
|
+
- $ref: '#/components/schemas/type_inboxes:UpdateMetadata'
|
|
13360
|
+
- type: 'null'
|
|
13340
13361
|
description: >-
|
|
13341
13362
|
Metadata to merge into the inbox's existing metadata. Keys you
|
|
13342
13363
|
include
|
|
@@ -13346,7 +13367,10 @@ components:
|
|
|
13346
13367
|
|
|
13347
13368
|
single key, send it with a null value. To clear all metadata, send
|
|
13348
13369
|
|
|
13349
|
-
`metadata` as null.
|
|
13370
|
+
`metadata` as null. Sending an empty object is rejected; use null to
|
|
13371
|
+
|
|
13372
|
+
clear. Each update must include at least one of `display_name` or
|
|
13373
|
+
|
|
13350
13374
|
`metadata`.
|
|
13351
13375
|
title: UpdateInboxRequest
|
|
13352
13376
|
type_pods:PodId:
|
|
@@ -13361,6 +13385,18 @@ components:
|
|
|
13361
13385
|
type: string
|
|
13362
13386
|
description: Client ID of inbox.
|
|
13363
13387
|
title: ClientId
|
|
13388
|
+
type_inboxes:Metadata:
|
|
13389
|
+
type: object
|
|
13390
|
+
additionalProperties:
|
|
13391
|
+
$ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
13392
|
+
description: >-
|
|
13393
|
+
Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and
|
|
13394
|
+
|
|
13395
|
+
string values are each limited to 256 characters. When updating
|
|
13396
|
+
metadata,
|
|
13397
|
+
|
|
13398
|
+
send a key with a null value to remove that key.
|
|
13399
|
+
title: Metadata
|
|
13364
13400
|
type_inboxes:Inbox:
|
|
13365
13401
|
type: object
|
|
13366
13402
|
properties:
|
|
@@ -38008,9 +38044,13 @@ components:
|
|
|
38008
38044
|
type: object
|
|
38009
38045
|
additionalProperties:
|
|
38010
38046
|
$ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
38011
|
-
description:
|
|
38047
|
+
description: >-
|
|
38012
38048
|
Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and
|
|
38013
|
-
|
|
38049
|
+
|
|
38050
|
+
string values are each limited to 256 characters. When updating
|
|
38051
|
+
metadata,
|
|
38052
|
+
|
|
38053
|
+
send a key with a null value to remove that key.
|
|
38014
38054
|
title: Metadata
|
|
38015
38055
|
type_inboxes:Inbox:
|
|
38016
38056
|
type: object
|
|
@@ -38315,9 +38355,13 @@ components:
|
|
|
38315
38355
|
type: object
|
|
38316
38356
|
additionalProperties:
|
|
38317
38357
|
$ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
38318
|
-
description:
|
|
38358
|
+
description: >-
|
|
38319
38359
|
Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and
|
|
38320
|
-
|
|
38360
|
+
|
|
38361
|
+
string values are each limited to 256 characters. When updating
|
|
38362
|
+
metadata,
|
|
38363
|
+
|
|
38364
|
+
send a key with a null value to remove that key.
|
|
38321
38365
|
title: Metadata
|
|
38322
38366
|
type_inboxes:Inbox:
|
|
38323
38367
|
type: object
|
|
@@ -38602,9 +38646,13 @@ components:
|
|
|
38602
38646
|
type: object
|
|
38603
38647
|
additionalProperties:
|
|
38604
38648
|
$ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
38605
|
-
description:
|
|
38649
|
+
description: >-
|
|
38606
38650
|
Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and
|
|
38607
|
-
|
|
38651
|
+
|
|
38652
|
+
string values are each limited to 256 characters. When updating
|
|
38653
|
+
metadata,
|
|
38654
|
+
|
|
38655
|
+
send a key with a null value to remove that key.
|
|
38608
38656
|
title: Metadata
|
|
38609
38657
|
type_inboxes:CreateInboxRequest:
|
|
38610
38658
|
type: object
|
|
@@ -38927,21 +38975,27 @@ components:
|
|
|
38927
38975
|
- type: boolean
|
|
38928
38976
|
description: A metadata value. May be a string, number, or boolean.
|
|
38929
38977
|
title: MetadataValue
|
|
38930
|
-
type_inboxes:
|
|
38978
|
+
type_inboxes:UpdateMetadata:
|
|
38931
38979
|
type: object
|
|
38932
38980
|
additionalProperties:
|
|
38933
|
-
|
|
38981
|
+
oneOf:
|
|
38982
|
+
- $ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
38983
|
+
- type: 'null'
|
|
38934
38984
|
description: |-
|
|
38935
|
-
Custom key-value pairs
|
|
38936
|
-
string
|
|
38937
|
-
|
|
38985
|
+
Custom key-value pairs to merge into the inbox's existing metadata. A
|
|
38986
|
+
value may be a string, number, boolean, or null. Setting a key to null
|
|
38987
|
+
removes it. Up to 256 keys; keys and string values are each limited to
|
|
38988
|
+
256 characters.
|
|
38989
|
+
title: UpdateMetadata
|
|
38938
38990
|
type_inboxes:UpdateInboxRequest:
|
|
38939
38991
|
type: object
|
|
38940
38992
|
properties:
|
|
38941
38993
|
display_name:
|
|
38942
38994
|
$ref: '#/components/schemas/type_inboxes:DisplayName'
|
|
38943
38995
|
metadata:
|
|
38944
|
-
|
|
38996
|
+
oneOf:
|
|
38997
|
+
- $ref: '#/components/schemas/type_inboxes:UpdateMetadata'
|
|
38998
|
+
- type: 'null'
|
|
38945
38999
|
description: >-
|
|
38946
39000
|
Metadata to merge into the inbox's existing metadata. Keys you
|
|
38947
39001
|
include
|
|
@@ -38951,7 +39005,10 @@ components:
|
|
|
38951
39005
|
|
|
38952
39006
|
single key, send it with a null value. To clear all metadata, send
|
|
38953
39007
|
|
|
38954
|
-
`metadata` as null.
|
|
39008
|
+
`metadata` as null. Sending an empty object is rejected; use null to
|
|
39009
|
+
|
|
39010
|
+
clear. Each update must include at least one of `display_name` or
|
|
39011
|
+
|
|
38955
39012
|
`metadata`.
|
|
38956
39013
|
title: UpdateInboxRequest
|
|
38957
39014
|
type_inboxes:Email:
|
|
@@ -38962,6 +39019,18 @@ components:
|
|
|
38962
39019
|
type: string
|
|
38963
39020
|
description: Client ID of inbox.
|
|
38964
39021
|
title: ClientId
|
|
39022
|
+
type_inboxes:Metadata:
|
|
39023
|
+
type: object
|
|
39024
|
+
additionalProperties:
|
|
39025
|
+
$ref: '#/components/schemas/type_inboxes:MetadataValue'
|
|
39026
|
+
description: >-
|
|
39027
|
+
Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and
|
|
39028
|
+
|
|
39029
|
+
string values are each limited to 256 characters. When updating
|
|
39030
|
+
metadata,
|
|
39031
|
+
|
|
39032
|
+
send a key with a null value to remove that key.
|
|
39033
|
+
title: Metadata
|
|
38965
39034
|
type_inboxes:Inbox:
|
|
38966
39035
|
type: object
|
|
38967
39036
|
properties:
|