agentmail 0.1.15 → 0.1.17
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +13 -8
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/organizations/client/Client.d.ts +24 -0
- package/dist/cjs/api/resources/organizations/client/Client.js +121 -0
- package/dist/cjs/api/resources/organizations/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/organizations/client/index.js +2 -0
- package/dist/cjs/api/resources/organizations/index.d.ts +2 -0
- package/dist/cjs/api/resources/organizations/index.js +18 -0
- package/dist/cjs/api/resources/organizations/types/Organization.d.ts +19 -0
- package/dist/cjs/api/resources/organizations/types/Organization.js +3 -0
- package/dist/cjs/api/resources/organizations/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/organizations/types/index.js +17 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/serialization/resources/organizations/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/organizations/index.js +17 -0
- package/dist/cjs/serialization/resources/organizations/types/Organization.d.ts +16 -0
- package/dist/cjs/serialization/resources/organizations/types/Organization.js +48 -0
- package/dist/cjs/serialization/resources/organizations/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/organizations/types/index.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/organizations/client/Client.d.mts +24 -0
- package/dist/esm/api/resources/organizations/client/Client.mjs +84 -0
- package/dist/esm/api/resources/organizations/client/index.d.mts +1 -0
- package/dist/esm/api/resources/organizations/client/index.mjs +1 -0
- package/dist/esm/api/resources/organizations/index.d.mts +2 -0
- package/dist/esm/api/resources/organizations/index.mjs +2 -0
- package/dist/esm/api/resources/organizations/types/Organization.d.mts +19 -0
- package/dist/esm/api/resources/organizations/types/Organization.mjs +2 -0
- package/dist/esm/api/resources/organizations/types/index.d.mts +1 -0
- package/dist/esm/api/resources/organizations/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/organizations/index.d.mts +1 -0
- package/dist/esm/serialization/resources/organizations/index.mjs +1 -0
- package/dist/esm/serialization/resources/organizations/types/Organization.d.mts +16 -0
- package/dist/esm/serialization/resources/organizations/types/Organization.mjs +12 -0
- package/dist/esm/serialization/resources/organizations/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/organizations/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 +48 -28
- package/package.json +1 -1
- package/reference.md +56 -0
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.1.
|
|
47
|
-
"User-Agent": "agentmail/0.1.
|
|
46
|
+
"X-Fern-SDK-Version": "0.1.17",
|
|
47
|
+
"User-Agent": "agentmail/0.1.17",
|
|
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);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { DomainsClient } from "./api/resources/domains/client/Client.js";
|
|
|
3
3
|
import { DraftsClient } from "./api/resources/drafts/client/Client.js";
|
|
4
4
|
import { InboxesClient } from "./api/resources/inboxes/client/Client.js";
|
|
5
5
|
import { MetricsClient } from "./api/resources/metrics/client/Client.js";
|
|
6
|
+
import { OrganizationsClient } from "./api/resources/organizations/client/Client.js";
|
|
6
7
|
import { PodsClient } from "./api/resources/pods/client/Client.js";
|
|
7
8
|
import { ThreadsClient } from "./api/resources/threads/client/Client.js";
|
|
8
9
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.js";
|
|
@@ -24,6 +25,7 @@ export declare class AgentMailClient {
|
|
|
24
25
|
protected _domains: DomainsClient | undefined;
|
|
25
26
|
protected _drafts: DraftsClient | undefined;
|
|
26
27
|
protected _metrics: MetricsClient | undefined;
|
|
28
|
+
protected _organizations: OrganizationsClient | undefined;
|
|
27
29
|
protected _threads: ThreadsClient | undefined;
|
|
28
30
|
protected _websockets: WebsocketsClient | undefined;
|
|
29
31
|
constructor(options?: AgentMailClient.Options);
|
|
@@ -34,6 +36,7 @@ export declare class AgentMailClient {
|
|
|
34
36
|
get domains(): DomainsClient;
|
|
35
37
|
get drafts(): DraftsClient;
|
|
36
38
|
get metrics(): MetricsClient;
|
|
39
|
+
get organizations(): OrganizationsClient;
|
|
37
40
|
get threads(): ThreadsClient;
|
|
38
41
|
get websockets(): WebsocketsClient;
|
|
39
42
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -7,10 +7,11 @@ const Client_js_2 = require("./api/resources/domains/client/Client.js");
|
|
|
7
7
|
const Client_js_3 = require("./api/resources/drafts/client/Client.js");
|
|
8
8
|
const Client_js_4 = require("./api/resources/inboxes/client/Client.js");
|
|
9
9
|
const Client_js_5 = require("./api/resources/metrics/client/Client.js");
|
|
10
|
-
const Client_js_6 = require("./api/resources/
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
10
|
+
const Client_js_6 = require("./api/resources/organizations/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/pods/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/threads/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/webhooks/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/websockets/client/Client.js");
|
|
14
15
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
15
16
|
class AgentMailClient {
|
|
16
17
|
constructor(options = {}) {
|
|
@@ -22,11 +23,11 @@ class AgentMailClient {
|
|
|
22
23
|
}
|
|
23
24
|
get pods() {
|
|
24
25
|
var _a;
|
|
25
|
-
return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new
|
|
26
|
+
return ((_a = this._pods) !== null && _a !== void 0 ? _a : (this._pods = new Client_js_7.PodsClient(this._options)));
|
|
26
27
|
}
|
|
27
28
|
get webhooks() {
|
|
28
29
|
var _a;
|
|
29
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
30
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_9.WebhooksClient(this._options)));
|
|
30
31
|
}
|
|
31
32
|
get apiKeys() {
|
|
32
33
|
var _a;
|
|
@@ -44,13 +45,17 @@ class AgentMailClient {
|
|
|
44
45
|
var _a;
|
|
45
46
|
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_5.MetricsClient(this._options)));
|
|
46
47
|
}
|
|
48
|
+
get organizations() {
|
|
49
|
+
var _a;
|
|
50
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_6.OrganizationsClient(this._options)));
|
|
51
|
+
}
|
|
47
52
|
get threads() {
|
|
48
53
|
var _a;
|
|
49
|
-
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new
|
|
54
|
+
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_8.ThreadsClient(this._options)));
|
|
50
55
|
}
|
|
51
56
|
get websockets() {
|
|
52
57
|
var _a;
|
|
53
|
-
return ((_a = this._websockets) !== null && _a !== void 0 ? _a : (this._websockets = new
|
|
58
|
+
return ((_a = this._websockets) !== null && _a !== void 0 ? _a : (this._websockets = new Client_js_10.WebsocketsClient(this._options)));
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
exports.AgentMailClient = AgentMailClient;
|
|
@@ -18,6 +18,8 @@ export * from "./messages/types/index.js";
|
|
|
18
18
|
export * from "./metrics/client/requests/index.js";
|
|
19
19
|
export * as metrics from "./metrics/index.js";
|
|
20
20
|
export * from "./metrics/types/index.js";
|
|
21
|
+
export * as organizations from "./organizations/index.js";
|
|
22
|
+
export * from "./organizations/types/index.js";
|
|
21
23
|
export * as pods from "./pods/index.js";
|
|
22
24
|
export * from "./threads/client/requests/index.js";
|
|
23
25
|
export * as threads from "./threads/index.js";
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.metrics = exports.messages = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = void 0;
|
|
39
|
+
exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.organizations = exports.metrics = exports.messages = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = void 0;
|
|
40
40
|
__exportStar(require("./apiKeys/client/requests/index.js"), exports);
|
|
41
41
|
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
42
42
|
__exportStar(require("./apiKeys/types/index.js"), exports);
|
|
@@ -57,6 +57,8 @@ __exportStar(require("./messages/types/index.js"), exports);
|
|
|
57
57
|
__exportStar(require("./metrics/client/requests/index.js"), exports);
|
|
58
58
|
exports.metrics = __importStar(require("./metrics/index.js"));
|
|
59
59
|
__exportStar(require("./metrics/types/index.js"), exports);
|
|
60
|
+
exports.organizations = __importStar(require("./organizations/index.js"));
|
|
61
|
+
__exportStar(require("./organizations/types/index.js"), exports);
|
|
60
62
|
exports.pods = __importStar(require("./pods/index.js"));
|
|
61
63
|
__exportStar(require("./threads/client/requests/index.js"), exports);
|
|
62
64
|
exports.threads = __importStar(require("./threads/index.js"));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import type * as AgentMail from "../../../index.js";
|
|
5
|
+
export declare namespace OrganizationsClient {
|
|
6
|
+
interface Options extends BaseClientOptions {
|
|
7
|
+
}
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class OrganizationsClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
|
|
13
|
+
constructor(options?: OrganizationsClient.Options);
|
|
14
|
+
/**
|
|
15
|
+
* Get the current organization.
|
|
16
|
+
*
|
|
17
|
+
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* await client.organizations.get()
|
|
21
|
+
*/
|
|
22
|
+
get(requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Organization>;
|
|
23
|
+
private __get;
|
|
24
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.OrganizationsClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
51
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
|
+
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
53
|
+
class OrganizationsClient {
|
|
54
|
+
constructor(options = {}) {
|
|
55
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get the current organization.
|
|
59
|
+
*
|
|
60
|
+
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.organizations.get()
|
|
64
|
+
*/
|
|
65
|
+
get(requestOptions) {
|
|
66
|
+
return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
|
|
67
|
+
}
|
|
68
|
+
__get(requestOptions) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
71
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
72
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
|
+
const _response = yield core.fetcher({
|
|
74
|
+
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/organizations"),
|
|
75
|
+
method: "GET",
|
|
76
|
+
headers: _headers,
|
|
77
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
78
|
+
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
|
+
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,
|
|
80
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
81
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
82
|
+
logging: this._options.logging,
|
|
83
|
+
});
|
|
84
|
+
if (_response.ok) {
|
|
85
|
+
return {
|
|
86
|
+
data: serializers.Organization.parseOrThrow(_response.body, {
|
|
87
|
+
unrecognizedObjectKeys: "passthrough",
|
|
88
|
+
allowUnrecognizedUnionMembers: true,
|
|
89
|
+
allowUnrecognizedEnumValues: true,
|
|
90
|
+
skipValidation: true,
|
|
91
|
+
breadcrumbsPrefix: ["response"],
|
|
92
|
+
}),
|
|
93
|
+
rawResponse: _response.rawResponse,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (_response.error.reason === "status-code") {
|
|
97
|
+
throw new errors.AgentMailError({
|
|
98
|
+
statusCode: _response.error.statusCode,
|
|
99
|
+
body: _response.error.body,
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
switch (_response.error.reason) {
|
|
104
|
+
case "non-json":
|
|
105
|
+
throw new errors.AgentMailError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.rawBody,
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
});
|
|
110
|
+
case "timeout":
|
|
111
|
+
throw new errors.AgentMailTimeoutError("Timeout exceeded when calling GET /v0/organizations.");
|
|
112
|
+
case "unknown":
|
|
113
|
+
throw new errors.AgentMailError({
|
|
114
|
+
message: _response.error.errorMessage,
|
|
115
|
+
rawResponse: _response.rawResponse,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.OrganizationsClient = OrganizationsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Organization details with usage limits and counts.
|
|
4
|
+
*/
|
|
5
|
+
export interface Organization {
|
|
6
|
+
organizationId: AgentMail.OrganizationId;
|
|
7
|
+
/** Current number of inboxes. */
|
|
8
|
+
inboxCount: number;
|
|
9
|
+
/** Current number of domains. */
|
|
10
|
+
domainCount: number;
|
|
11
|
+
/** Maximum number of inboxes allowed. */
|
|
12
|
+
inboxLimit?: number;
|
|
13
|
+
/** Maximum number of domains allowed. */
|
|
14
|
+
domainLimit?: number;
|
|
15
|
+
/** Time at which organization was last updated. */
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
/** Time at which organization was created. */
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Organization.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Organization.js"), exports);
|
|
@@ -13,6 +13,8 @@ export * as messages from "./messages/index.js";
|
|
|
13
13
|
export * from "./messages/types/index.js";
|
|
14
14
|
export * as metrics from "./metrics/index.js";
|
|
15
15
|
export * from "./metrics/types/index.js";
|
|
16
|
+
export * as organizations from "./organizations/index.js";
|
|
17
|
+
export * from "./organizations/types/index.js";
|
|
16
18
|
export * as pods from "./pods/index.js";
|
|
17
19
|
export * as threads from "./threads/index.js";
|
|
18
20
|
export * from "./threads/types/index.js";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.metrics = exports.messages = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = void 0;
|
|
39
|
+
exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.organizations = exports.metrics = exports.messages = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = void 0;
|
|
40
40
|
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
41
41
|
__exportStar(require("./apiKeys/types/index.js"), exports);
|
|
42
42
|
exports.attachments = __importStar(require("./attachments/index.js"));
|
|
@@ -52,6 +52,8 @@ exports.messages = __importStar(require("./messages/index.js"));
|
|
|
52
52
|
__exportStar(require("./messages/types/index.js"), exports);
|
|
53
53
|
exports.metrics = __importStar(require("./metrics/index.js"));
|
|
54
54
|
__exportStar(require("./metrics/types/index.js"), exports);
|
|
55
|
+
exports.organizations = __importStar(require("./organizations/index.js"));
|
|
56
|
+
__exportStar(require("./organizations/types/index.js"), exports);
|
|
55
57
|
exports.pods = __importStar(require("./pods/index.js"));
|
|
56
58
|
exports.threads = __importStar(require("./threads/index.js"));
|
|
57
59
|
__exportStar(require("./threads/types/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { OrganizationId } from "../../../types/OrganizationId.js";
|
|
5
|
+
export declare const Organization: core.serialization.ObjectSchema<serializers.Organization.Raw, AgentMail.Organization>;
|
|
6
|
+
export declare namespace Organization {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organization_id: OrganizationId.Raw;
|
|
9
|
+
inbox_count: number;
|
|
10
|
+
domain_count: number;
|
|
11
|
+
inbox_limit?: number | null;
|
|
12
|
+
domain_limit?: number | null;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Organization = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const OrganizationId_js_1 = require("../../../types/OrganizationId.js");
|
|
40
|
+
exports.Organization = core.serialization.object({
|
|
41
|
+
organizationId: core.serialization.property("organization_id", OrganizationId_js_1.OrganizationId),
|
|
42
|
+
inboxCount: core.serialization.property("inbox_count", core.serialization.number()),
|
|
43
|
+
domainCount: core.serialization.property("domain_count", core.serialization.number()),
|
|
44
|
+
inboxLimit: core.serialization.property("inbox_limit", core.serialization.number().optional()),
|
|
45
|
+
domainLimit: core.serialization.property("domain_limit", core.serialization.number().optional()),
|
|
46
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
47
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
48
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Organization.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Organization.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.17";
|
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.1.
|
|
10
|
-
"User-Agent": "agentmail/0.1.
|
|
9
|
+
"X-Fern-SDK-Version": "0.1.17",
|
|
10
|
+
"User-Agent": "agentmail/0.1.17",
|
|
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);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import { DomainsClient } from "./api/resources/domains/client/Client.mjs";
|
|
|
3
3
|
import { DraftsClient } from "./api/resources/drafts/client/Client.mjs";
|
|
4
4
|
import { InboxesClient } from "./api/resources/inboxes/client/Client.mjs";
|
|
5
5
|
import { MetricsClient } from "./api/resources/metrics/client/Client.mjs";
|
|
6
|
+
import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
|
|
6
7
|
import { PodsClient } from "./api/resources/pods/client/Client.mjs";
|
|
7
8
|
import { ThreadsClient } from "./api/resources/threads/client/Client.mjs";
|
|
8
9
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.mjs";
|
|
@@ -24,6 +25,7 @@ export declare class AgentMailClient {
|
|
|
24
25
|
protected _domains: DomainsClient | undefined;
|
|
25
26
|
protected _drafts: DraftsClient | undefined;
|
|
26
27
|
protected _metrics: MetricsClient | undefined;
|
|
28
|
+
protected _organizations: OrganizationsClient | undefined;
|
|
27
29
|
protected _threads: ThreadsClient | undefined;
|
|
28
30
|
protected _websockets: WebsocketsClient | undefined;
|
|
29
31
|
constructor(options?: AgentMailClient.Options);
|
|
@@ -34,6 +36,7 @@ export declare class AgentMailClient {
|
|
|
34
36
|
get domains(): DomainsClient;
|
|
35
37
|
get drafts(): DraftsClient;
|
|
36
38
|
get metrics(): MetricsClient;
|
|
39
|
+
get organizations(): OrganizationsClient;
|
|
37
40
|
get threads(): ThreadsClient;
|
|
38
41
|
get websockets(): WebsocketsClient;
|
|
39
42
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { DomainsClient } from "./api/resources/domains/client/Client.mjs";
|
|
|
4
4
|
import { DraftsClient } from "./api/resources/drafts/client/Client.mjs";
|
|
5
5
|
import { InboxesClient } from "./api/resources/inboxes/client/Client.mjs";
|
|
6
6
|
import { MetricsClient } from "./api/resources/metrics/client/Client.mjs";
|
|
7
|
+
import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
|
|
7
8
|
import { PodsClient } from "./api/resources/pods/client/Client.mjs";
|
|
8
9
|
import { ThreadsClient } from "./api/resources/threads/client/Client.mjs";
|
|
9
10
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.mjs";
|
|
@@ -41,6 +42,10 @@ export class AgentMailClient {
|
|
|
41
42
|
var _a;
|
|
42
43
|
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new MetricsClient(this._options)));
|
|
43
44
|
}
|
|
45
|
+
get organizations() {
|
|
46
|
+
var _a;
|
|
47
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new OrganizationsClient(this._options)));
|
|
48
|
+
}
|
|
44
49
|
get threads() {
|
|
45
50
|
var _a;
|
|
46
51
|
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new ThreadsClient(this._options)));
|
|
@@ -18,6 +18,8 @@ export * from "./messages/types/index.mjs";
|
|
|
18
18
|
export * from "./metrics/client/requests/index.mjs";
|
|
19
19
|
export * as metrics from "./metrics/index.mjs";
|
|
20
20
|
export * from "./metrics/types/index.mjs";
|
|
21
|
+
export * as organizations from "./organizations/index.mjs";
|
|
22
|
+
export * from "./organizations/types/index.mjs";
|
|
21
23
|
export * as pods from "./pods/index.mjs";
|
|
22
24
|
export * from "./threads/client/requests/index.mjs";
|
|
23
25
|
export * as threads from "./threads/index.mjs";
|
|
@@ -18,6 +18,8 @@ export * from "./messages/types/index.mjs";
|
|
|
18
18
|
export * from "./metrics/client/requests/index.mjs";
|
|
19
19
|
export * as metrics from "./metrics/index.mjs";
|
|
20
20
|
export * from "./metrics/types/index.mjs";
|
|
21
|
+
export * as organizations from "./organizations/index.mjs";
|
|
22
|
+
export * from "./organizations/types/index.mjs";
|
|
21
23
|
export * as pods from "./pods/index.mjs";
|
|
22
24
|
export * from "./threads/client/requests/index.mjs";
|
|
23
25
|
export * as threads from "./threads/index.mjs";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import type * as AgentMail from "../../../index.mjs";
|
|
5
|
+
export declare namespace OrganizationsClient {
|
|
6
|
+
interface Options extends BaseClientOptions {
|
|
7
|
+
}
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class OrganizationsClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
|
|
13
|
+
constructor(options?: OrganizationsClient.Options);
|
|
14
|
+
/**
|
|
15
|
+
* Get the current organization.
|
|
16
|
+
*
|
|
17
|
+
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* await client.organizations.get()
|
|
21
|
+
*/
|
|
22
|
+
get(requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Organization>;
|
|
23
|
+
private __get;
|
|
24
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../environments.mjs";
|
|
15
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
16
|
+
import * as serializers from "../../../../serialization/index.mjs";
|
|
17
|
+
export class OrganizationsClient {
|
|
18
|
+
constructor(options = {}) {
|
|
19
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get the current organization.
|
|
23
|
+
*
|
|
24
|
+
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* await client.organizations.get()
|
|
28
|
+
*/
|
|
29
|
+
get(requestOptions) {
|
|
30
|
+
return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
|
|
31
|
+
}
|
|
32
|
+
__get(requestOptions) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
35
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
36
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
|
+
const _response = yield core.fetcher({
|
|
38
|
+
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/organizations"),
|
|
39
|
+
method: "GET",
|
|
40
|
+
headers: _headers,
|
|
41
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
42
|
+
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,
|
|
43
|
+
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,
|
|
44
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
45
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
46
|
+
logging: this._options.logging,
|
|
47
|
+
});
|
|
48
|
+
if (_response.ok) {
|
|
49
|
+
return {
|
|
50
|
+
data: serializers.Organization.parseOrThrow(_response.body, {
|
|
51
|
+
unrecognizedObjectKeys: "passthrough",
|
|
52
|
+
allowUnrecognizedUnionMembers: true,
|
|
53
|
+
allowUnrecognizedEnumValues: true,
|
|
54
|
+
skipValidation: true,
|
|
55
|
+
breadcrumbsPrefix: ["response"],
|
|
56
|
+
}),
|
|
57
|
+
rawResponse: _response.rawResponse,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (_response.error.reason === "status-code") {
|
|
61
|
+
throw new errors.AgentMailError({
|
|
62
|
+
statusCode: _response.error.statusCode,
|
|
63
|
+
body: _response.error.body,
|
|
64
|
+
rawResponse: _response.rawResponse,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
switch (_response.error.reason) {
|
|
68
|
+
case "non-json":
|
|
69
|
+
throw new errors.AgentMailError({
|
|
70
|
+
statusCode: _response.error.statusCode,
|
|
71
|
+
body: _response.error.rawBody,
|
|
72
|
+
rawResponse: _response.rawResponse,
|
|
73
|
+
});
|
|
74
|
+
case "timeout":
|
|
75
|
+
throw new errors.AgentMailTimeoutError("Timeout exceeded when calling GET /v0/organizations.");
|
|
76
|
+
case "unknown":
|
|
77
|
+
throw new errors.AgentMailError({
|
|
78
|
+
message: _response.error.errorMessage,
|
|
79
|
+
rawResponse: _response.rawResponse,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Organization details with usage limits and counts.
|
|
4
|
+
*/
|
|
5
|
+
export interface Organization {
|
|
6
|
+
organizationId: AgentMail.OrganizationId;
|
|
7
|
+
/** Current number of inboxes. */
|
|
8
|
+
inboxCount: number;
|
|
9
|
+
/** Current number of domains. */
|
|
10
|
+
domainCount: number;
|
|
11
|
+
/** Maximum number of inboxes allowed. */
|
|
12
|
+
inboxLimit?: number;
|
|
13
|
+
/** Maximum number of domains allowed. */
|
|
14
|
+
domainLimit?: number;
|
|
15
|
+
/** Time at which organization was last updated. */
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
/** Time at which organization was created. */
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Organization.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Organization.mjs";
|
|
@@ -13,6 +13,8 @@ export * as messages from "./messages/index.mjs";
|
|
|
13
13
|
export * from "./messages/types/index.mjs";
|
|
14
14
|
export * as metrics from "./metrics/index.mjs";
|
|
15
15
|
export * from "./metrics/types/index.mjs";
|
|
16
|
+
export * as organizations from "./organizations/index.mjs";
|
|
17
|
+
export * from "./organizations/types/index.mjs";
|
|
16
18
|
export * as pods from "./pods/index.mjs";
|
|
17
19
|
export * as threads from "./threads/index.mjs";
|
|
18
20
|
export * from "./threads/types/index.mjs";
|
|
@@ -13,6 +13,8 @@ export * as messages from "./messages/index.mjs";
|
|
|
13
13
|
export * from "./messages/types/index.mjs";
|
|
14
14
|
export * as metrics from "./metrics/index.mjs";
|
|
15
15
|
export * from "./metrics/types/index.mjs";
|
|
16
|
+
export * as organizations from "./organizations/index.mjs";
|
|
17
|
+
export * from "./organizations/types/index.mjs";
|
|
16
18
|
export * as pods from "./pods/index.mjs";
|
|
17
19
|
export * as threads from "./threads/index.mjs";
|
|
18
20
|
export * from "./threads/types/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { OrganizationId } from "../../../types/OrganizationId.mjs";
|
|
5
|
+
export declare const Organization: core.serialization.ObjectSchema<serializers.Organization.Raw, AgentMail.Organization>;
|
|
6
|
+
export declare namespace Organization {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organization_id: OrganizationId.Raw;
|
|
9
|
+
inbox_count: number;
|
|
10
|
+
domain_count: number;
|
|
11
|
+
inbox_limit?: number | null;
|
|
12
|
+
domain_limit?: number | null;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { OrganizationId } from "../../../types/OrganizationId.mjs";
|
|
4
|
+
export const Organization = core.serialization.object({
|
|
5
|
+
organizationId: core.serialization.property("organization_id", OrganizationId),
|
|
6
|
+
inboxCount: core.serialization.property("inbox_count", core.serialization.number()),
|
|
7
|
+
domainCount: core.serialization.property("domain_count", core.serialization.number()),
|
|
8
|
+
inboxLimit: core.serialization.property("inbox_limit", core.serialization.number().optional()),
|
|
9
|
+
domainLimit: core.serialization.property("domain_limit", core.serialization.number().optional()),
|
|
10
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
11
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Organization.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Organization.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.17";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.
|
|
1
|
+
export const SDK_VERSION = "0.1.17";
|
package/dist/llms-full.txt
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<Tip title="Welcome to AgentMail!" icon="fa-solid fa-star" />
|
|
6
6
|
|
|
7
7
|
<Frame caption="We're excited to have you onboard!">
|
|
8
|
-
<img src="file:
|
|
8
|
+
<img src="file:2bbde1f0-3ffb-42e2-983f-dbde7883b260" alt="We're excited to have you onboard!" />
|
|
9
9
|
</Frame>
|
|
10
10
|
|
|
11
11
|
AgentMail is an API platform for giving AI agents their own inboxes to send, receive, and act upon emails. This allows agents to assume their own identity and communicate via the universal protocol of email with services, people, and other agents.
|
|
@@ -171,7 +171,7 @@ This guide will walk you through installing the AgentMail SDK, authenticating wi
|
|
|
171
171
|
<Step title="Create an API Key">
|
|
172
172
|
Now that you're in the console, you'll need to create an API key to
|
|
173
173
|
authenticate your requests. Navigate to the API Keys section in your console
|
|
174
|
-
dashboard.  Click
|
|
175
175
|
"Create New API Key" and give it a descriptive name. Once created, copy the
|
|
176
176
|
API key and store it securely. Create a `.env` file in your project's root
|
|
177
177
|
directory and add your key to it. We recommend using environment variables to
|
|
@@ -322,7 +322,7 @@ Unlike traditional email providers that are designed for human scale, AgentMail
|
|
|
322
322
|
|
|
323
323
|
As the diagram below illustrates, your `organization` is the top-level container that holds all your resources. You can provision many `Inboxes` within your `organization`, each with its own `Threads`, `Messages`, and `Attachments`, allowing you to manage a large fleet of agents seamlessly.
|
|
324
324
|
|
|
325
|
-
<img src="file:
|
|
325
|
+
<img src="file:2f70a86c-fb83-4804-90dd-4f3b666cccf5" alt="AgentMail Organizational Hierarchy" />
|
|
326
326
|
|
|
327
327
|
<Steps>
|
|
328
328
|
<Step title="Organization">
|
|
@@ -742,7 +742,7 @@ Here is an example of a well-structured and styled HTML header:
|
|
|
742
742
|
</CodeBlocks>
|
|
743
743
|
|
|
744
744
|
<Frame caption="Look how pretty this message looks!">
|
|
745
|
-
<img src="file:
|
|
745
|
+
<img src="file:d664e355-f144-4b64-85d2-0e39cbba8ac7" alt="rendered css" />
|
|
746
746
|
</Frame>
|
|
747
747
|
|
|
748
748
|
## Receiving `Messages`
|
|
@@ -1981,7 +1981,7 @@ Configuring your domain is a three-step process: add the domain via API, copy th
|
|
|
1981
1981
|
After creating your domain in the AgentMail Console, click the "Download BIND Zone File" button to get the complete zone file.
|
|
1982
1982
|
|
|
1983
1983
|
<Frame caption="Downloading BIND zone file from AgentMail Console">
|
|
1984
|
-
<img src="file:
|
|
1984
|
+
<img src="file:b15a4c8d-594a-4014-a5fe-03b02c2921d4" alt="Download BIND Zone File from Console" />
|
|
1985
1985
|
</Frame>
|
|
1986
1986
|
|
|
1987
1987
|
<Tabs>
|
|
@@ -1992,13 +1992,13 @@ Configuring your domain is a three-step process: add the domain via API, copy th
|
|
|
1992
1992
|
2. Navigate to **DNS > Records**
|
|
1993
1993
|
|
|
1994
1994
|
<Frame caption="This is what the page looks like">
|
|
1995
|
-
<img src="file:
|
|
1995
|
+
<img src="file:b833b8bb-2437-44a2-85d8-e269f59dd24b" alt="Cloudflare BIND Import" />
|
|
1996
1996
|
</Frame>
|
|
1997
1997
|
|
|
1998
1998
|
3. Click **"Import and Export"**
|
|
1999
1999
|
|
|
2000
2000
|
<Frame caption="You should be able to just drop the file in">
|
|
2001
|
-
<img src="file:
|
|
2001
|
+
<img src="file:8d2d26bc-c4f3-48c1-aabc-16cf3ee90047" alt="Cloudflare BIND Import" />
|
|
2002
2002
|
</Frame>
|
|
2003
2003
|
|
|
2004
2004
|
4. Upload the downloaded BIND zone file as is
|
|
@@ -2011,13 +2011,13 @@ Configuring your domain is a three-step process: add the domain via API, copy th
|
|
|
2011
2011
|
2. Click **"Import zone file"** in the top right corner
|
|
2012
2012
|
|
|
2013
2013
|
<Frame caption="Importing BIND zone file in AWS Route 53">
|
|
2014
|
-
<img src="file:
|
|
2014
|
+
<img src="file:d7b1afc1-0bad-4d53-a011-5c4091a4380f" alt="AWS Route 53 BIND Import" />
|
|
2015
2015
|
</Frame>
|
|
2016
2016
|
|
|
2017
2017
|
3. Paste the CONTENTS of downloaded BIND zone file
|
|
2018
2018
|
|
|
2019
2019
|
<Frame caption="Open the file with text editor and paste the contents. It should look similar to what we have in this image.">
|
|
2020
|
-
<img src="file:
|
|
2020
|
+
<img src="file:bbc90a2f-9733-4e39-890d-8068bc184c73" alt="AWS Route 53 BIND Import" />
|
|
2021
2021
|
</Frame>
|
|
2022
2022
|
|
|
2023
2023
|
4. Review the records and click **"Import"**
|
|
@@ -2046,13 +2046,13 @@ Configuring your domain is a three-step process: add the domain via API, copy th
|
|
|
2046
2046
|
2. Navigate to the **DNS** subtab of the domain you want to send from
|
|
2047
2047
|
|
|
2048
2048
|
<Frame caption="Click on this button!">
|
|
2049
|
-
<img src="file:
|
|
2049
|
+
<img src="file:4785688a-45d5-4f45-bd33-b92d0ef11fab" alt="Porkbun DNS Management" />
|
|
2050
2050
|
</Frame>
|
|
2051
2051
|
|
|
2052
2052
|
3. Scroll down to the quick upload section
|
|
2053
2053
|
|
|
2054
2054
|
<Frame caption="Upload your BIND zone file here">
|
|
2055
|
-
<img src="file:
|
|
2055
|
+
<img src="file:b8882eda-ea51-462c-a0fc-da905d4821d7" alt="Porkbun Zone File Import" />
|
|
2056
2056
|
</Frame>
|
|
2057
2057
|
|
|
2058
2058
|
4. Upload the downloaded BIND zone file as is
|
|
@@ -2485,7 +2485,7 @@ The process is straightforward:
|
|
|
2485
2485
|
</Step>
|
|
2486
2486
|
|
|
2487
2487
|
<Step title="2. Register the Endpoint with AgentMail">
|
|
2488
|
-
You can register your URL using the AgentMail API. When you create a webhook, you'll specify your endpoint's URL
|
|
2488
|
+
You can register your URL using the AgentMail API. When you create a webhook, you'll specify your endpoint's URL as well as event types you want to receive.
|
|
2489
2489
|
|
|
2490
2490
|
<CodeBlocks>
|
|
2491
2491
|
```python
|
|
@@ -2870,13 +2870,13 @@ Ngrok creates a secure tunnel from a public URL to your local development server
|
|
|
2870
2870
|
|
|
2871
2871
|
Visit [ngrok.com](https://ngrok.com/) and click "Sign up" to create a free account.
|
|
2872
2872
|
|
|
2873
|
-
<img src="file:
|
|
2873
|
+
<img src="file:257e9c77-745e-4f57-898d-6ad64c30184f" alt="Ngrok homepage" />
|
|
2874
2874
|
|
|
2875
2875
|
### 1.2 Choose your platform and install
|
|
2876
2876
|
|
|
2877
2877
|
After logging in, ngrok will guide you through the setup process. Select your operating system and follow the installation instructions.
|
|
2878
2878
|
|
|
2879
|
-
<img src="file:
|
|
2879
|
+
<img src="file:62640b7b-609b-4c81-b4c5-93673f5a0a1b" alt="Ngrok setup instructions" />
|
|
2880
2880
|
|
|
2881
2881
|
For macOS, you can install ngrok via Homebrew:
|
|
2882
2882
|
|
|
@@ -2922,7 +2922,7 @@ ngrok http 3000
|
|
|
2922
2922
|
|
|
2923
2923
|
You should see output similar to this:
|
|
2924
2924
|
|
|
2925
|
-
<img src="file:
|
|
2925
|
+
<img src="file:0fe5c03c-37be-413a-8ae6-ffb22f356221" alt="Ngrok terminal output" />
|
|
2926
2926
|
|
|
2927
2927
|
Copy the **Forwarding URL** (e.g., `https://your-subdomain.ngrok-free.app`). This is the public URL that AgentMail will use to send webhooks.
|
|
2928
2928
|
|
|
@@ -3019,7 +3019,7 @@ python webhook_receiver.py
|
|
|
3019
3019
|
|
|
3020
3020
|
Open your browser and visit `http://127.0.0.1:3000` to see the status page confirming your webhook receiver is running:
|
|
3021
3021
|
|
|
3022
|
-
<img src="file:
|
|
3022
|
+
<img src="file:445e6cfc-8d24-4d5b-9ade-cbf9e21c5f4e" alt="Webhook receiver status page" />
|
|
3023
3023
|
|
|
3024
3024
|
## Testing Your Setup
|
|
3025
3025
|
|
|
@@ -3516,7 +3516,7 @@ How you send your emails is just as important as what you send. If you're sendin
|
|
|
3516
3516
|
more natural to email providers. AgentMail's ability to create inboxes at
|
|
3517
3517
|
scale makes this strategy easy to implement.
|
|
3518
3518
|
|
|
3519
|
-
<img src="file:
|
|
3519
|
+
<img src="file:98c9cc4a-14cd-4306-b9af-5add27313bfe" alt="Diagram comparing one inbox sending 1000 emails vs. five inboxes sending 200 each." />
|
|
3520
3520
|
</Step>
|
|
3521
3521
|
|
|
3522
3522
|
<Step title="Protect Your Reputation with Multiple Domains">
|
|
@@ -5535,7 +5535,7 @@ Done
|
|
|
5535
5535
|
|
|
5536
5536
|
Go to your AgentMail inbox and filter by labels to organize your emails:
|
|
5537
5537
|
|
|
5538
|
-
<img src="file:
|
|
5538
|
+
<img src="file:aabdc3e3-f51c-4b2d-93e9-0aeaff841bf8" alt="Test image" />
|
|
5539
5539
|
|
|
5540
5540
|
**Filter by sentiment:**
|
|
5541
5541
|
|
|
@@ -15081,9 +15081,12 @@ components:
|
|
|
15081
15081
|
type_domains:VerificationStatus:
|
|
15082
15082
|
type: string
|
|
15083
15083
|
enum:
|
|
15084
|
+
- value: NOT_STARTED
|
|
15084
15085
|
- value: PENDING
|
|
15086
|
+
- value: INVALID
|
|
15087
|
+
- value: FAILED
|
|
15085
15088
|
- value: VERIFYING
|
|
15086
|
-
- value:
|
|
15089
|
+
- value: VERIFIED
|
|
15087
15090
|
type_domains:FeedbackEnabled:
|
|
15088
15091
|
type: boolean
|
|
15089
15092
|
type_domains:RecordType:
|
|
@@ -15096,7 +15099,8 @@ components:
|
|
|
15096
15099
|
type: string
|
|
15097
15100
|
enum:
|
|
15098
15101
|
- value: MISSING
|
|
15099
|
-
- value:
|
|
15102
|
+
- value: INVALID
|
|
15103
|
+
- value: VALID
|
|
15100
15104
|
type_domains:VerificationRecord:
|
|
15101
15105
|
type: object
|
|
15102
15106
|
properties:
|
|
@@ -15529,9 +15533,12 @@ components:
|
|
|
15529
15533
|
type_domains:VerificationStatus:
|
|
15530
15534
|
type: string
|
|
15531
15535
|
enum:
|
|
15536
|
+
- value: NOT_STARTED
|
|
15532
15537
|
- value: PENDING
|
|
15538
|
+
- value: INVALID
|
|
15539
|
+
- value: FAILED
|
|
15533
15540
|
- value: VERIFYING
|
|
15534
|
-
- value:
|
|
15541
|
+
- value: VERIFIED
|
|
15535
15542
|
type_domains:RecordType:
|
|
15536
15543
|
type: string
|
|
15537
15544
|
enum:
|
|
@@ -15542,7 +15549,8 @@ components:
|
|
|
15542
15549
|
type: string
|
|
15543
15550
|
enum:
|
|
15544
15551
|
- value: MISSING
|
|
15545
|
-
- value:
|
|
15552
|
+
- value: INVALID
|
|
15553
|
+
- value: VALID
|
|
15546
15554
|
type_domains:VerificationRecord:
|
|
15547
15555
|
type: object
|
|
15548
15556
|
properties:
|
|
@@ -18034,9 +18042,12 @@ components:
|
|
|
18034
18042
|
type_domains:VerificationStatus:
|
|
18035
18043
|
type: string
|
|
18036
18044
|
enum:
|
|
18045
|
+
- value: NOT_STARTED
|
|
18037
18046
|
- value: PENDING
|
|
18047
|
+
- value: INVALID
|
|
18048
|
+
- value: FAILED
|
|
18038
18049
|
- value: VERIFYING
|
|
18039
|
-
- value:
|
|
18050
|
+
- value: VERIFIED
|
|
18040
18051
|
type_domains:FeedbackEnabled:
|
|
18041
18052
|
type: boolean
|
|
18042
18053
|
type_domains:RecordType:
|
|
@@ -18049,7 +18060,8 @@ components:
|
|
|
18049
18060
|
type: string
|
|
18050
18061
|
enum:
|
|
18051
18062
|
- value: MISSING
|
|
18052
|
-
- value:
|
|
18063
|
+
- value: INVALID
|
|
18064
|
+
- value: VALID
|
|
18053
18065
|
type_domains:VerificationRecord:
|
|
18054
18066
|
type: object
|
|
18055
18067
|
properties:
|
|
@@ -18789,9 +18801,12 @@ components:
|
|
|
18789
18801
|
type_domains:VerificationStatus:
|
|
18790
18802
|
type: string
|
|
18791
18803
|
enum:
|
|
18804
|
+
- value: NOT_STARTED
|
|
18792
18805
|
- value: PENDING
|
|
18806
|
+
- value: INVALID
|
|
18807
|
+
- value: FAILED
|
|
18793
18808
|
- value: VERIFYING
|
|
18794
|
-
- value:
|
|
18809
|
+
- value: VERIFIED
|
|
18795
18810
|
type_domains:FeedbackEnabled:
|
|
18796
18811
|
type: boolean
|
|
18797
18812
|
type_domains:RecordType:
|
|
@@ -18804,7 +18819,8 @@ components:
|
|
|
18804
18819
|
type: string
|
|
18805
18820
|
enum:
|
|
18806
18821
|
- value: MISSING
|
|
18807
|
-
- value:
|
|
18822
|
+
- value: INVALID
|
|
18823
|
+
- value: VALID
|
|
18808
18824
|
type_domains:VerificationRecord:
|
|
18809
18825
|
type: object
|
|
18810
18826
|
properties:
|
|
@@ -23471,9 +23487,12 @@ components:
|
|
|
23471
23487
|
type_domains:VerificationStatus:
|
|
23472
23488
|
type: string
|
|
23473
23489
|
enum:
|
|
23490
|
+
- value: NOT_STARTED
|
|
23474
23491
|
- value: PENDING
|
|
23492
|
+
- value: INVALID
|
|
23493
|
+
- value: FAILED
|
|
23475
23494
|
- value: VERIFYING
|
|
23476
|
-
- value:
|
|
23495
|
+
- value: VERIFIED
|
|
23477
23496
|
type_domains:RecordType:
|
|
23478
23497
|
type: string
|
|
23479
23498
|
enum:
|
|
@@ -23484,7 +23503,8 @@ components:
|
|
|
23484
23503
|
type: string
|
|
23485
23504
|
enum:
|
|
23486
23505
|
- value: MISSING
|
|
23487
|
-
- value:
|
|
23506
|
+
- value: INVALID
|
|
23507
|
+
- value: VALID
|
|
23488
23508
|
type_domains:VerificationRecord:
|
|
23489
23509
|
type: object
|
|
23490
23510
|
properties:
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2394,6 +2394,62 @@ await client.metrics.list({
|
|
|
2394
2394
|
</dl>
|
|
2395
2395
|
|
|
2396
2396
|
|
|
2397
|
+
</dd>
|
|
2398
|
+
</dl>
|
|
2399
|
+
</details>
|
|
2400
|
+
|
|
2401
|
+
## Organizations
|
|
2402
|
+
<details><summary><code>client.organizations.<a href="/src/api/resources/organizations/client/Client.ts">get</a>() -> AgentMail.Organization</code></summary>
|
|
2403
|
+
<dl>
|
|
2404
|
+
<dd>
|
|
2405
|
+
|
|
2406
|
+
#### 📝 Description
|
|
2407
|
+
|
|
2408
|
+
<dl>
|
|
2409
|
+
<dd>
|
|
2410
|
+
|
|
2411
|
+
<dl>
|
|
2412
|
+
<dd>
|
|
2413
|
+
|
|
2414
|
+
Get the current organization.
|
|
2415
|
+
</dd>
|
|
2416
|
+
</dl>
|
|
2417
|
+
</dd>
|
|
2418
|
+
</dl>
|
|
2419
|
+
|
|
2420
|
+
#### 🔌 Usage
|
|
2421
|
+
|
|
2422
|
+
<dl>
|
|
2423
|
+
<dd>
|
|
2424
|
+
|
|
2425
|
+
<dl>
|
|
2426
|
+
<dd>
|
|
2427
|
+
|
|
2428
|
+
```typescript
|
|
2429
|
+
await client.organizations.get();
|
|
2430
|
+
|
|
2431
|
+
```
|
|
2432
|
+
</dd>
|
|
2433
|
+
</dl>
|
|
2434
|
+
</dd>
|
|
2435
|
+
</dl>
|
|
2436
|
+
|
|
2437
|
+
#### ⚙️ Parameters
|
|
2438
|
+
|
|
2439
|
+
<dl>
|
|
2440
|
+
<dd>
|
|
2441
|
+
|
|
2442
|
+
<dl>
|
|
2443
|
+
<dd>
|
|
2444
|
+
|
|
2445
|
+
**requestOptions:** `OrganizationsClient.RequestOptions`
|
|
2446
|
+
|
|
2447
|
+
</dd>
|
|
2448
|
+
</dl>
|
|
2449
|
+
</dd>
|
|
2450
|
+
</dl>
|
|
2451
|
+
|
|
2452
|
+
|
|
2397
2453
|
</dd>
|
|
2398
2454
|
</dl>
|
|
2399
2455
|
</details>
|