@athenaintel/sdk 4.3.2310 → 4.3.2312
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 +27 -22
- package/dist/cjs/api/resources/bundles/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/bundles/client/Client.js +144 -0
- package/dist/cjs/api/resources/bundles/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/bundles/client/index.js +17 -0
- package/dist/cjs/api/resources/bundles/client/requests/GetMemberBundlesRequest.d.ts +17 -0
- package/dist/cjs/api/resources/bundles/client/requests/GetMemberBundlesRequest.js +3 -0
- package/dist/cjs/api/resources/bundles/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/bundles/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/bundles/index.d.ts +1 -0
- package/dist/cjs/api/resources/bundles/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/types/BundleMemberOut.d.ts +20 -0
- package/dist/cjs/api/types/BundleMemberOut.js +3 -0
- package/dist/cjs/api/types/BundleMemberRevisionOut.d.ts +11 -0
- package/dist/cjs/api/types/BundleMemberRevisionOut.js +3 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -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/bundles/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/bundles/client/Client.mjs +107 -0
- package/dist/esm/api/resources/bundles/client/index.d.mts +1 -0
- package/dist/esm/api/resources/bundles/client/index.mjs +1 -0
- package/dist/esm/api/resources/bundles/client/requests/GetMemberBundlesRequest.d.mts +17 -0
- package/dist/esm/api/resources/bundles/client/requests/GetMemberBundlesRequest.mjs +2 -0
- package/dist/esm/api/resources/bundles/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/bundles/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/bundles/index.d.mts +1 -0
- package/dist/esm/api/resources/bundles/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/types/BundleMemberOut.d.mts +20 -0
- package/dist/esm/api/types/BundleMemberOut.mjs +2 -0
- package/dist/esm/api/types/BundleMemberRevisionOut.d.mts +11 -0
- package/dist/esm/api/types/BundleMemberRevisionOut.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +67 -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": "@athenaintel/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "4.3.
|
|
47
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
46
|
+
"X-Fern-SDK-Version": "4.3.2312",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2312",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AgentsClient } from "./api/resources/agents/client/Client.js";
|
|
2
2
|
import { AopClient } from "./api/resources/aop/client/Client.js";
|
|
3
3
|
import { AssetsClient } from "./api/resources/assets/client/Client.js";
|
|
4
|
+
import { BundlesClient } from "./api/resources/bundles/client/Client.js";
|
|
4
5
|
import { CollabAgentsClient } from "./api/resources/collabAgents/client/Client.js";
|
|
5
6
|
import { ComputerClient } from "./api/resources/computer/client/Client.js";
|
|
6
7
|
import { DatabasesClient } from "./api/resources/databases/client/Client.js";
|
|
@@ -24,6 +25,7 @@ export declare class AthenaIntelligenceClient {
|
|
|
24
25
|
protected readonly _options: NormalizedClientOptionsWithAuth<AthenaIntelligenceClient.Options>;
|
|
25
26
|
protected _aop: AopClient | undefined;
|
|
26
27
|
protected _assets: AssetsClient | undefined;
|
|
28
|
+
protected _bundles: BundlesClient | undefined;
|
|
27
29
|
protected _collabAgents: CollabAgentsClient | undefined;
|
|
28
30
|
protected _computer: ComputerClient | undefined;
|
|
29
31
|
protected _databases: DatabasesClient | undefined;
|
|
@@ -39,6 +41,7 @@ export declare class AthenaIntelligenceClient {
|
|
|
39
41
|
constructor(options?: AthenaIntelligenceClient.Options);
|
|
40
42
|
get aop(): AopClient;
|
|
41
43
|
get assets(): AssetsClient;
|
|
44
|
+
get bundles(): BundlesClient;
|
|
42
45
|
get collabAgents(): CollabAgentsClient;
|
|
43
46
|
get computer(): ComputerClient;
|
|
44
47
|
get databases(): DatabasesClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -5,17 +5,18 @@ exports.AthenaIntelligenceClient = void 0;
|
|
|
5
5
|
const Client_js_1 = require("./api/resources/agents/client/Client.js");
|
|
6
6
|
const Client_js_2 = require("./api/resources/aop/client/Client.js");
|
|
7
7
|
const Client_js_3 = require("./api/resources/assets/client/Client.js");
|
|
8
|
-
const Client_js_4 = require("./api/resources/
|
|
9
|
-
const Client_js_5 = require("./api/resources/
|
|
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/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
16
|
-
const Client_js_12 = require("./api/resources/
|
|
17
|
-
const Client_js_13 = require("./api/resources/
|
|
18
|
-
const Client_js_14 = require("./api/resources/
|
|
8
|
+
const Client_js_4 = require("./api/resources/bundles/client/Client.js");
|
|
9
|
+
const Client_js_5 = require("./api/resources/collabAgents/client/Client.js");
|
|
10
|
+
const Client_js_6 = require("./api/resources/computer/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/databases/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/meetings/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/query/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/semanticModel/client/Client.js");
|
|
15
|
+
const Client_js_11 = require("./api/resources/sessions/client/Client.js");
|
|
16
|
+
const Client_js_12 = require("./api/resources/threads/client/Client.js");
|
|
17
|
+
const Client_js_13 = require("./api/resources/tools/client/Client.js");
|
|
18
|
+
const Client_js_14 = require("./api/resources/users/client/Client.js");
|
|
19
|
+
const Client_js_15 = require("./api/resources/workspaces/client/Client.js");
|
|
19
20
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
20
21
|
class AthenaIntelligenceClient {
|
|
21
22
|
constructor(options = {}) {
|
|
@@ -29,49 +30,53 @@ class AthenaIntelligenceClient {
|
|
|
29
30
|
var _a;
|
|
30
31
|
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_js_3.AssetsClient(this._options)));
|
|
31
32
|
}
|
|
33
|
+
get bundles() {
|
|
34
|
+
var _a;
|
|
35
|
+
return ((_a = this._bundles) !== null && _a !== void 0 ? _a : (this._bundles = new Client_js_4.BundlesClient(this._options)));
|
|
36
|
+
}
|
|
32
37
|
get collabAgents() {
|
|
33
38
|
var _a;
|
|
34
|
-
return ((_a = this._collabAgents) !== null && _a !== void 0 ? _a : (this._collabAgents = new
|
|
39
|
+
return ((_a = this._collabAgents) !== null && _a !== void 0 ? _a : (this._collabAgents = new Client_js_5.CollabAgentsClient(this._options)));
|
|
35
40
|
}
|
|
36
41
|
get computer() {
|
|
37
42
|
var _a;
|
|
38
|
-
return ((_a = this._computer) !== null && _a !== void 0 ? _a : (this._computer = new
|
|
43
|
+
return ((_a = this._computer) !== null && _a !== void 0 ? _a : (this._computer = new Client_js_6.ComputerClient(this._options)));
|
|
39
44
|
}
|
|
40
45
|
get databases() {
|
|
41
46
|
var _a;
|
|
42
|
-
return ((_a = this._databases) !== null && _a !== void 0 ? _a : (this._databases = new
|
|
47
|
+
return ((_a = this._databases) !== null && _a !== void 0 ? _a : (this._databases = new Client_js_7.DatabasesClient(this._options)));
|
|
43
48
|
}
|
|
44
49
|
get users() {
|
|
45
50
|
var _a;
|
|
46
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
51
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_14.UsersClient(this._options)));
|
|
47
52
|
}
|
|
48
53
|
get meetings() {
|
|
49
54
|
var _a;
|
|
50
|
-
return ((_a = this._meetings) !== null && _a !== void 0 ? _a : (this._meetings = new
|
|
55
|
+
return ((_a = this._meetings) !== null && _a !== void 0 ? _a : (this._meetings = new Client_js_8.MeetingsClient(this._options)));
|
|
51
56
|
}
|
|
52
57
|
get query() {
|
|
53
58
|
var _a;
|
|
54
|
-
return ((_a = this._query) !== null && _a !== void 0 ? _a : (this._query = new
|
|
59
|
+
return ((_a = this._query) !== null && _a !== void 0 ? _a : (this._query = new Client_js_9.QueryClient(this._options)));
|
|
55
60
|
}
|
|
56
61
|
get semanticModel() {
|
|
57
62
|
var _a;
|
|
58
|
-
return ((_a = this._semanticModel) !== null && _a !== void 0 ? _a : (this._semanticModel = new
|
|
63
|
+
return ((_a = this._semanticModel) !== null && _a !== void 0 ? _a : (this._semanticModel = new Client_js_10.SemanticModelClient(this._options)));
|
|
59
64
|
}
|
|
60
65
|
get sessions() {
|
|
61
66
|
var _a;
|
|
62
|
-
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new
|
|
67
|
+
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_11.SessionsClient(this._options)));
|
|
63
68
|
}
|
|
64
69
|
get threads() {
|
|
65
70
|
var _a;
|
|
66
|
-
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new
|
|
71
|
+
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_12.ThreadsClient(this._options)));
|
|
67
72
|
}
|
|
68
73
|
get tools() {
|
|
69
74
|
var _a;
|
|
70
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new
|
|
75
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_13.ToolsClient(this._options)));
|
|
71
76
|
}
|
|
72
77
|
get workspaces() {
|
|
73
78
|
var _a;
|
|
74
|
-
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new
|
|
79
|
+
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_js_15.WorkspacesClient(this._options)));
|
|
75
80
|
}
|
|
76
81
|
get agents() {
|
|
77
82
|
var _a;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 * as AthenaIntelligence from "../../../index.js";
|
|
5
|
+
export declare namespace BundlesClient {
|
|
6
|
+
interface Options extends BaseClientOptions {
|
|
7
|
+
}
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class BundlesClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<BundlesClient.Options>;
|
|
13
|
+
constructor(options?: BundlesClient.Options);
|
|
14
|
+
/**
|
|
15
|
+
* Resolve a bundle member's name, support-desk/support_agent, to this workspace's own asset: its id, type and link, and with track the revision that track serves. The caller needs view access to the bundle as a member of its workspace, and to the member. Every refusal is 404, the same answer a name that doesn't exist gets.
|
|
16
|
+
*
|
|
17
|
+
* @param {AthenaIntelligence.GetMemberBundlesRequest} request
|
|
18
|
+
* @param {BundlesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
21
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
22
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.bundles.getMember({
|
|
26
|
+
* bundle_key: "support-desk",
|
|
27
|
+
* member_key: "support_agent"
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
getMember(request: AthenaIntelligence.GetMemberBundlesRequest, requestOptions?: BundlesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.BundleMemberOut>;
|
|
31
|
+
private __getMember;
|
|
32
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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.BundlesClient = 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 AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
53
|
+
class BundlesClient {
|
|
54
|
+
constructor(options = {}) {
|
|
55
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Resolve a bundle member's name, support-desk/support_agent, to this workspace's own asset: its id, type and link, and with track the revision that track serves. The caller needs view access to the bundle as a member of its workspace, and to the member. Every refusal is 404, the same answer a name that doesn't exist gets.
|
|
59
|
+
*
|
|
60
|
+
* @param {AthenaIntelligence.GetMemberBundlesRequest} request
|
|
61
|
+
* @param {BundlesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
64
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
65
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.bundles.getMember({
|
|
69
|
+
* bundle_key: "support-desk",
|
|
70
|
+
* member_key: "support_agent"
|
|
71
|
+
* })
|
|
72
|
+
*/
|
|
73
|
+
getMember(request, requestOptions) {
|
|
74
|
+
return core.HttpResponsePromise.fromPromise(this.__getMember(request, requestOptions));
|
|
75
|
+
}
|
|
76
|
+
__getMember(request, requestOptions) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
79
|
+
const { bundle_key: bundleKey, member_key: memberKey, workspace_id: workspaceId, track } = request;
|
|
80
|
+
const _queryParams = {};
|
|
81
|
+
if (workspaceId !== undefined) {
|
|
82
|
+
_queryParams.workspace_id = workspaceId;
|
|
83
|
+
}
|
|
84
|
+
if (track !== undefined) {
|
|
85
|
+
_queryParams.track = track;
|
|
86
|
+
}
|
|
87
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
88
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
89
|
+
"X-Athena-Session-Credential": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sessionCredential) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sessionCredential,
|
|
90
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
91
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
92
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.AthenaIntelligenceEnvironment.Production, `api/v0/bundles/${core.url.encodePathParam(bundleKey)}/members/${core.url.encodePathParam(memberKey)}`),
|
|
93
|
+
method: "GET",
|
|
94
|
+
headers: _headers,
|
|
95
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
96
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
97
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
98
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
100
|
+
logging: this._options.logging,
|
|
101
|
+
});
|
|
102
|
+
if (_response.ok) {
|
|
103
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
104
|
+
}
|
|
105
|
+
if (_response.error.reason === "status-code") {
|
|
106
|
+
switch (_response.error.statusCode) {
|
|
107
|
+
case 400:
|
|
108
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
109
|
+
case 404:
|
|
110
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
111
|
+
case 422:
|
|
112
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
113
|
+
default:
|
|
114
|
+
throw new errors.AthenaIntelligenceError({
|
|
115
|
+
statusCode: _response.error.statusCode,
|
|
116
|
+
body: _response.error.body,
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
switch (_response.error.reason) {
|
|
122
|
+
case "non-json":
|
|
123
|
+
throw new errors.AthenaIntelligenceError({
|
|
124
|
+
statusCode: _response.error.statusCode,
|
|
125
|
+
body: _response.error.rawBody,
|
|
126
|
+
rawResponse: _response.rawResponse,
|
|
127
|
+
});
|
|
128
|
+
case "body-is-null":
|
|
129
|
+
throw new errors.AthenaIntelligenceError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
case "timeout":
|
|
134
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/bundles/{bundle_key}/members/{member_key}.");
|
|
135
|
+
case "unknown":
|
|
136
|
+
throw new errors.AthenaIntelligenceError({
|
|
137
|
+
message: _response.error.errorMessage,
|
|
138
|
+
rawResponse: _response.rawResponse,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.BundlesClient = BundlesClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/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("./requests/index.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* bundle_key: "support-desk",
|
|
5
|
+
* member_key: "support_agent"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface GetMemberBundlesRequest {
|
|
9
|
+
/** The bundle's permanent key. */
|
|
10
|
+
bundle_key: string;
|
|
11
|
+
/** The member's permanent key. */
|
|
12
|
+
member_key: string;
|
|
13
|
+
/** The workspace to resolve in. Optional for a caller with one workspace, and for a credential bound to one (a page's, a computer's); a caller in several names it. The caller must be a member. */
|
|
14
|
+
workspace_id?: string | null;
|
|
15
|
+
/** A track's key (production, pilot…): answer with the revision it serves. The caller must be on the track. */
|
|
16
|
+
track?: string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GetMemberBundlesRequest } from "./GetMemberBundlesRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/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("./client/index.js"), exports);
|
|
@@ -3,6 +3,8 @@ export * from "./aop/client/requests/index.js";
|
|
|
3
3
|
export * as aop from "./aop/index.js";
|
|
4
4
|
export * from "./assets/client/requests/index.js";
|
|
5
5
|
export * as assets from "./assets/index.js";
|
|
6
|
+
export * from "./bundles/client/requests/index.js";
|
|
7
|
+
export * as bundles from "./bundles/index.js";
|
|
6
8
|
export * from "./collabAgents/client/requests/index.js";
|
|
7
9
|
export * as collabAgents from "./collabAgents/index.js";
|
|
8
10
|
export * from "./computer/client/requests/index.js";
|
|
@@ -36,12 +36,14 @@ 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.workspaces = exports.users = exports.tools = exports.threads = exports.sessions = exports.semanticModel = exports.query = exports.meetings = exports.databases = exports.computer = exports.collabAgents = exports.assets = exports.aop = exports.agents = void 0;
|
|
39
|
+
exports.workspaces = exports.users = exports.tools = exports.threads = exports.sessions = exports.semanticModel = exports.query = exports.meetings = exports.databases = exports.computer = exports.collabAgents = exports.bundles = exports.assets = exports.aop = exports.agents = void 0;
|
|
40
40
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
41
41
|
__exportStar(require("./aop/client/requests/index.js"), exports);
|
|
42
42
|
exports.aop = __importStar(require("./aop/index.js"));
|
|
43
43
|
__exportStar(require("./assets/client/requests/index.js"), exports);
|
|
44
44
|
exports.assets = __importStar(require("./assets/index.js"));
|
|
45
|
+
__exportStar(require("./bundles/client/requests/index.js"), exports);
|
|
46
|
+
exports.bundles = __importStar(require("./bundles/index.js"));
|
|
45
47
|
__exportStar(require("./collabAgents/client/requests/index.js"), exports);
|
|
46
48
|
exports.collabAgents = __importStar(require("./collabAgents/index.js"));
|
|
47
49
|
__exportStar(require("./computer/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A member name, resolved in the caller's place.
|
|
4
|
+
*/
|
|
5
|
+
export interface BundleMemberOut {
|
|
6
|
+
/** This place's asset for the member. */
|
|
7
|
+
asset_id: string;
|
|
8
|
+
/** The bundle's permanent key. */
|
|
9
|
+
bundle_key: string;
|
|
10
|
+
/** How the member joins: ships, pin, pin+notify or follow. */
|
|
11
|
+
link: string;
|
|
12
|
+
/** The member's permanent key. */
|
|
13
|
+
member_key: string;
|
|
14
|
+
/** With a track, the revision it serves of the member (null for a followed member); null without a track. */
|
|
15
|
+
revision?: AthenaIntelligence.BundleMemberRevisionOut | null;
|
|
16
|
+
/** The track the answer read; null when none was asked for. */
|
|
17
|
+
track?: string | null;
|
|
18
|
+
/** The member asset's type, e.g. collab_agent. */
|
|
19
|
+
type: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The revision a track serves of a member.
|
|
3
|
+
*/
|
|
4
|
+
export interface BundleMemberRevisionOut {
|
|
5
|
+
/** The revision's content digest (sha256:…), the same in every place that holds this revision; null for a version cut before digests and for a document-like member (a document, sheet, deck, canvas or notebook), which Athena doesn't name by its content. */
|
|
6
|
+
digest?: string | null;
|
|
7
|
+
/** The digest's algorithm (athena.content.v2; athena.content.v1 for a version cut before 2026-11-10); null with it. */
|
|
8
|
+
digest_alg?: string | null;
|
|
9
|
+
/** The revision's version id. */
|
|
10
|
+
version_id: string;
|
|
11
|
+
}
|
|
@@ -32,6 +32,8 @@ export * from "./AssetScreenshotResponseOut.js";
|
|
|
32
32
|
export * from "./BorderModel.js";
|
|
33
33
|
export * from "./BorderStyle.js";
|
|
34
34
|
export * from "./BordersModel.js";
|
|
35
|
+
export * from "./BundleMemberOut.js";
|
|
36
|
+
export * from "./BundleMemberRevisionOut.js";
|
|
35
37
|
export * from "./CalendarAttendeeOut.js";
|
|
36
38
|
export * from "./CalendarEventOut.js";
|
|
37
39
|
export * from "./CalendarEventsResponseOut.js";
|
|
@@ -48,6 +48,8 @@ __exportStar(require("./AssetScreenshotResponseOut.js"), exports);
|
|
|
48
48
|
__exportStar(require("./BorderModel.js"), exports);
|
|
49
49
|
__exportStar(require("./BorderStyle.js"), exports);
|
|
50
50
|
__exportStar(require("./BordersModel.js"), exports);
|
|
51
|
+
__exportStar(require("./BundleMemberOut.js"), exports);
|
|
52
|
+
__exportStar(require("./BundleMemberRevisionOut.js"), exports);
|
|
51
53
|
__exportStar(require("./CalendarAttendeeOut.js"), exports);
|
|
52
54
|
__exportStar(require("./CalendarEventOut.js"), exports);
|
|
53
55
|
__exportStar(require("./CalendarEventsResponseOut.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2312";
|
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": "@athenaintel/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "4.3.
|
|
10
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
9
|
+
"X-Fern-SDK-Version": "4.3.2312",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2312",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AgentsClient } from "./api/resources/agents/client/Client.mjs";
|
|
2
2
|
import { AopClient } from "./api/resources/aop/client/Client.mjs";
|
|
3
3
|
import { AssetsClient } from "./api/resources/assets/client/Client.mjs";
|
|
4
|
+
import { BundlesClient } from "./api/resources/bundles/client/Client.mjs";
|
|
4
5
|
import { CollabAgentsClient } from "./api/resources/collabAgents/client/Client.mjs";
|
|
5
6
|
import { ComputerClient } from "./api/resources/computer/client/Client.mjs";
|
|
6
7
|
import { DatabasesClient } from "./api/resources/databases/client/Client.mjs";
|
|
@@ -24,6 +25,7 @@ export declare class AthenaIntelligenceClient {
|
|
|
24
25
|
protected readonly _options: NormalizedClientOptionsWithAuth<AthenaIntelligenceClient.Options>;
|
|
25
26
|
protected _aop: AopClient | undefined;
|
|
26
27
|
protected _assets: AssetsClient | undefined;
|
|
28
|
+
protected _bundles: BundlesClient | undefined;
|
|
27
29
|
protected _collabAgents: CollabAgentsClient | undefined;
|
|
28
30
|
protected _computer: ComputerClient | undefined;
|
|
29
31
|
protected _databases: DatabasesClient | undefined;
|
|
@@ -39,6 +41,7 @@ export declare class AthenaIntelligenceClient {
|
|
|
39
41
|
constructor(options?: AthenaIntelligenceClient.Options);
|
|
40
42
|
get aop(): AopClient;
|
|
41
43
|
get assets(): AssetsClient;
|
|
44
|
+
get bundles(): BundlesClient;
|
|
42
45
|
get collabAgents(): CollabAgentsClient;
|
|
43
46
|
get computer(): ComputerClient;
|
|
44
47
|
get databases(): DatabasesClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { AgentsClient } from "./api/resources/agents/client/Client.mjs";
|
|
3
3
|
import { AopClient } from "./api/resources/aop/client/Client.mjs";
|
|
4
4
|
import { AssetsClient } from "./api/resources/assets/client/Client.mjs";
|
|
5
|
+
import { BundlesClient } from "./api/resources/bundles/client/Client.mjs";
|
|
5
6
|
import { CollabAgentsClient } from "./api/resources/collabAgents/client/Client.mjs";
|
|
6
7
|
import { ComputerClient } from "./api/resources/computer/client/Client.mjs";
|
|
7
8
|
import { DatabasesClient } from "./api/resources/databases/client/Client.mjs";
|
|
@@ -26,6 +27,10 @@ export class AthenaIntelligenceClient {
|
|
|
26
27
|
var _a;
|
|
27
28
|
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new AssetsClient(this._options)));
|
|
28
29
|
}
|
|
30
|
+
get bundles() {
|
|
31
|
+
var _a;
|
|
32
|
+
return ((_a = this._bundles) !== null && _a !== void 0 ? _a : (this._bundles = new BundlesClient(this._options)));
|
|
33
|
+
}
|
|
29
34
|
get collabAgents() {
|
|
30
35
|
var _a;
|
|
31
36
|
return ((_a = this._collabAgents) !== null && _a !== void 0 ? _a : (this._collabAgents = new CollabAgentsClient(this._options)));
|
|
@@ -0,0 +1,32 @@
|
|
|
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 * as AthenaIntelligence from "../../../index.mjs";
|
|
5
|
+
export declare namespace BundlesClient {
|
|
6
|
+
interface Options extends BaseClientOptions {
|
|
7
|
+
}
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class BundlesClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<BundlesClient.Options>;
|
|
13
|
+
constructor(options?: BundlesClient.Options);
|
|
14
|
+
/**
|
|
15
|
+
* Resolve a bundle member's name, support-desk/support_agent, to this workspace's own asset: its id, type and link, and with track the revision that track serves. The caller needs view access to the bundle as a member of its workspace, and to the member. Every refusal is 404, the same answer a name that doesn't exist gets.
|
|
16
|
+
*
|
|
17
|
+
* @param {AthenaIntelligence.GetMemberBundlesRequest} request
|
|
18
|
+
* @param {BundlesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
21
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
22
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.bundles.getMember({
|
|
26
|
+
* bundle_key: "support-desk",
|
|
27
|
+
* member_key: "support_agent"
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
getMember(request: AthenaIntelligence.GetMemberBundlesRequest, requestOptions?: BundlesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.BundleMemberOut>;
|
|
31
|
+
private __getMember;
|
|
32
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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, mergeOnlyDefinedHeaders } 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 AthenaIntelligence from "../../../index.mjs";
|
|
17
|
+
export class BundlesClient {
|
|
18
|
+
constructor(options = {}) {
|
|
19
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Resolve a bundle member's name, support-desk/support_agent, to this workspace's own asset: its id, type and link, and with track the revision that track serves. The caller needs view access to the bundle as a member of its workspace, and to the member. Every refusal is 404, the same answer a name that doesn't exist gets.
|
|
23
|
+
*
|
|
24
|
+
* @param {AthenaIntelligence.GetMemberBundlesRequest} request
|
|
25
|
+
* @param {BundlesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
28
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
29
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.bundles.getMember({
|
|
33
|
+
* bundle_key: "support-desk",
|
|
34
|
+
* member_key: "support_agent"
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
getMember(request, requestOptions) {
|
|
38
|
+
return core.HttpResponsePromise.fromPromise(this.__getMember(request, requestOptions));
|
|
39
|
+
}
|
|
40
|
+
__getMember(request, requestOptions) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
43
|
+
const { bundle_key: bundleKey, member_key: memberKey, workspace_id: workspaceId, track } = request;
|
|
44
|
+
const _queryParams = {};
|
|
45
|
+
if (workspaceId !== undefined) {
|
|
46
|
+
_queryParams.workspace_id = workspaceId;
|
|
47
|
+
}
|
|
48
|
+
if (track !== undefined) {
|
|
49
|
+
_queryParams.track = track;
|
|
50
|
+
}
|
|
51
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
52
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
53
|
+
"X-Athena-Session-Credential": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sessionCredential) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sessionCredential,
|
|
54
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
55
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
56
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.AthenaIntelligenceEnvironment.Production, `api/v0/bundles/${core.url.encodePathParam(bundleKey)}/members/${core.url.encodePathParam(memberKey)}`),
|
|
57
|
+
method: "GET",
|
|
58
|
+
headers: _headers,
|
|
59
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
60
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
61
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
62
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
63
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
64
|
+
logging: this._options.logging,
|
|
65
|
+
});
|
|
66
|
+
if (_response.ok) {
|
|
67
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
68
|
+
}
|
|
69
|
+
if (_response.error.reason === "status-code") {
|
|
70
|
+
switch (_response.error.statusCode) {
|
|
71
|
+
case 400:
|
|
72
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
73
|
+
case 404:
|
|
74
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
75
|
+
case 422:
|
|
76
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
77
|
+
default:
|
|
78
|
+
throw new errors.AthenaIntelligenceError({
|
|
79
|
+
statusCode: _response.error.statusCode,
|
|
80
|
+
body: _response.error.body,
|
|
81
|
+
rawResponse: _response.rawResponse,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
switch (_response.error.reason) {
|
|
86
|
+
case "non-json":
|
|
87
|
+
throw new errors.AthenaIntelligenceError({
|
|
88
|
+
statusCode: _response.error.statusCode,
|
|
89
|
+
body: _response.error.rawBody,
|
|
90
|
+
rawResponse: _response.rawResponse,
|
|
91
|
+
});
|
|
92
|
+
case "body-is-null":
|
|
93
|
+
throw new errors.AthenaIntelligenceError({
|
|
94
|
+
statusCode: _response.error.statusCode,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
});
|
|
97
|
+
case "timeout":
|
|
98
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/bundles/{bundle_key}/members/{member_key}.");
|
|
99
|
+
case "unknown":
|
|
100
|
+
throw new errors.AthenaIntelligenceError({
|
|
101
|
+
message: _response.error.errorMessage,
|
|
102
|
+
rawResponse: _response.rawResponse,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* bundle_key: "support-desk",
|
|
5
|
+
* member_key: "support_agent"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface GetMemberBundlesRequest {
|
|
9
|
+
/** The bundle's permanent key. */
|
|
10
|
+
bundle_key: string;
|
|
11
|
+
/** The member's permanent key. */
|
|
12
|
+
member_key: string;
|
|
13
|
+
/** The workspace to resolve in. Optional for a caller with one workspace, and for a credential bound to one (a page's, a computer's); a caller in several names it. The caller must be a member. */
|
|
14
|
+
workspace_id?: string | null;
|
|
15
|
+
/** A track's key (production, pilot…): answer with the revision it serves. The caller must be on the track. */
|
|
16
|
+
track?: string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GetMemberBundlesRequest } from "./GetMemberBundlesRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -3,6 +3,8 @@ export * from "./aop/client/requests/index.mjs";
|
|
|
3
3
|
export * as aop from "./aop/index.mjs";
|
|
4
4
|
export * from "./assets/client/requests/index.mjs";
|
|
5
5
|
export * as assets from "./assets/index.mjs";
|
|
6
|
+
export * from "./bundles/client/requests/index.mjs";
|
|
7
|
+
export * as bundles from "./bundles/index.mjs";
|
|
6
8
|
export * from "./collabAgents/client/requests/index.mjs";
|
|
7
9
|
export * as collabAgents from "./collabAgents/index.mjs";
|
|
8
10
|
export * from "./computer/client/requests/index.mjs";
|
|
@@ -3,6 +3,8 @@ export * from "./aop/client/requests/index.mjs";
|
|
|
3
3
|
export * as aop from "./aop/index.mjs";
|
|
4
4
|
export * from "./assets/client/requests/index.mjs";
|
|
5
5
|
export * as assets from "./assets/index.mjs";
|
|
6
|
+
export * from "./bundles/client/requests/index.mjs";
|
|
7
|
+
export * as bundles from "./bundles/index.mjs";
|
|
6
8
|
export * from "./collabAgents/client/requests/index.mjs";
|
|
7
9
|
export * as collabAgents from "./collabAgents/index.mjs";
|
|
8
10
|
export * from "./computer/client/requests/index.mjs";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* A member name, resolved in the caller's place.
|
|
4
|
+
*/
|
|
5
|
+
export interface BundleMemberOut {
|
|
6
|
+
/** This place's asset for the member. */
|
|
7
|
+
asset_id: string;
|
|
8
|
+
/** The bundle's permanent key. */
|
|
9
|
+
bundle_key: string;
|
|
10
|
+
/** How the member joins: ships, pin, pin+notify or follow. */
|
|
11
|
+
link: string;
|
|
12
|
+
/** The member's permanent key. */
|
|
13
|
+
member_key: string;
|
|
14
|
+
/** With a track, the revision it serves of the member (null for a followed member); null without a track. */
|
|
15
|
+
revision?: AthenaIntelligence.BundleMemberRevisionOut | null;
|
|
16
|
+
/** The track the answer read; null when none was asked for. */
|
|
17
|
+
track?: string | null;
|
|
18
|
+
/** The member asset's type, e.g. collab_agent. */
|
|
19
|
+
type: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The revision a track serves of a member.
|
|
3
|
+
*/
|
|
4
|
+
export interface BundleMemberRevisionOut {
|
|
5
|
+
/** The revision's content digest (sha256:…), the same in every place that holds this revision; null for a version cut before digests and for a document-like member (a document, sheet, deck, canvas or notebook), which Athena doesn't name by its content. */
|
|
6
|
+
digest?: string | null;
|
|
7
|
+
/** The digest's algorithm (athena.content.v2; athena.content.v1 for a version cut before 2026-11-10); null with it. */
|
|
8
|
+
digest_alg?: string | null;
|
|
9
|
+
/** The revision's version id. */
|
|
10
|
+
version_id: string;
|
|
11
|
+
}
|
|
@@ -32,6 +32,8 @@ export * from "./AssetScreenshotResponseOut.mjs";
|
|
|
32
32
|
export * from "./BorderModel.mjs";
|
|
33
33
|
export * from "./BorderStyle.mjs";
|
|
34
34
|
export * from "./BordersModel.mjs";
|
|
35
|
+
export * from "./BundleMemberOut.mjs";
|
|
36
|
+
export * from "./BundleMemberRevisionOut.mjs";
|
|
35
37
|
export * from "./CalendarAttendeeOut.mjs";
|
|
36
38
|
export * from "./CalendarEventOut.mjs";
|
|
37
39
|
export * from "./CalendarEventsResponseOut.mjs";
|
|
@@ -32,6 +32,8 @@ export * from "./AssetScreenshotResponseOut.mjs";
|
|
|
32
32
|
export * from "./BorderModel.mjs";
|
|
33
33
|
export * from "./BorderStyle.mjs";
|
|
34
34
|
export * from "./BordersModel.mjs";
|
|
35
|
+
export * from "./BundleMemberOut.mjs";
|
|
36
|
+
export * from "./BundleMemberRevisionOut.mjs";
|
|
35
37
|
export * from "./CalendarAttendeeOut.mjs";
|
|
36
38
|
export * from "./CalendarEventOut.mjs";
|
|
37
39
|
export * from "./CalendarEventsResponseOut.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2312";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2312";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2293,6 +2293,73 @@ await client.assets.removeWorkspaceAccess({
|
|
|
2293
2293
|
</dl>
|
|
2294
2294
|
|
|
2295
2295
|
|
|
2296
|
+
</dd>
|
|
2297
|
+
</dl>
|
|
2298
|
+
</details>
|
|
2299
|
+
|
|
2300
|
+
## Bundles
|
|
2301
|
+
<details><summary><code>client.bundles.<a href="/src/api/resources/bundles/client/Client.ts">getMember</a>({ ...params }) -> AthenaIntelligence.BundleMemberOut</code></summary>
|
|
2302
|
+
<dl>
|
|
2303
|
+
<dd>
|
|
2304
|
+
|
|
2305
|
+
#### 📝 Description
|
|
2306
|
+
|
|
2307
|
+
<dl>
|
|
2308
|
+
<dd>
|
|
2309
|
+
|
|
2310
|
+
<dl>
|
|
2311
|
+
<dd>
|
|
2312
|
+
|
|
2313
|
+
Resolve a bundle member's name, support-desk/support_agent, to this workspace's own asset: its id, type and link, and with track the revision that track serves. The caller needs view access to the bundle as a member of its workspace, and to the member. Every refusal is 404, the same answer a name that doesn't exist gets.
|
|
2314
|
+
</dd>
|
|
2315
|
+
</dl>
|
|
2316
|
+
</dd>
|
|
2317
|
+
</dl>
|
|
2318
|
+
|
|
2319
|
+
#### 🔌 Usage
|
|
2320
|
+
|
|
2321
|
+
<dl>
|
|
2322
|
+
<dd>
|
|
2323
|
+
|
|
2324
|
+
<dl>
|
|
2325
|
+
<dd>
|
|
2326
|
+
|
|
2327
|
+
```typescript
|
|
2328
|
+
await client.bundles.getMember({
|
|
2329
|
+
bundle_key: "support-desk",
|
|
2330
|
+
member_key: "support_agent"
|
|
2331
|
+
});
|
|
2332
|
+
|
|
2333
|
+
```
|
|
2334
|
+
</dd>
|
|
2335
|
+
</dl>
|
|
2336
|
+
</dd>
|
|
2337
|
+
</dl>
|
|
2338
|
+
|
|
2339
|
+
#### ⚙️ Parameters
|
|
2340
|
+
|
|
2341
|
+
<dl>
|
|
2342
|
+
<dd>
|
|
2343
|
+
|
|
2344
|
+
<dl>
|
|
2345
|
+
<dd>
|
|
2346
|
+
|
|
2347
|
+
**request:** `AthenaIntelligence.GetMemberBundlesRequest`
|
|
2348
|
+
|
|
2349
|
+
</dd>
|
|
2350
|
+
</dl>
|
|
2351
|
+
|
|
2352
|
+
<dl>
|
|
2353
|
+
<dd>
|
|
2354
|
+
|
|
2355
|
+
**requestOptions:** `BundlesClient.RequestOptions`
|
|
2356
|
+
|
|
2357
|
+
</dd>
|
|
2358
|
+
</dl>
|
|
2359
|
+
</dd>
|
|
2360
|
+
</dl>
|
|
2361
|
+
|
|
2362
|
+
|
|
2296
2363
|
</dd>
|
|
2297
2364
|
</dl>
|
|
2298
2365
|
</details>
|