@athenaintel/sdk 4.3.2111 → 4.3.2113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/assets/client/Client.d.ts +65 -0
- package/dist/cjs/api/resources/assets/client/Client.js +274 -0
- package/dist/cjs/api/resources/assets/client/requests/AssetActivityDeltaBatchRequestIn.d.ts +19 -0
- package/dist/cjs/api/resources/assets/client/requests/AssetActivityDeltaBatchRequestIn.js +3 -0
- package/dist/cjs/api/resources/assets/client/requests/GetActivityDeltaAssetsRequest.d.ts +15 -0
- package/dist/cjs/api/resources/assets/client/requests/GetActivityDeltaAssetsRequest.js +3 -0
- package/dist/cjs/api/resources/assets/client/requests/ListActivityAssetsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/assets/client/requests/ListActivityAssetsRequest.js +3 -0
- package/dist/cjs/api/resources/assets/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/databases/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/tools/client/Client.js +7 -1
- package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.ts +2 -0
- package/dist/cjs/api/types/ActivityClockRangeIn.d.ts +9 -0
- package/dist/cjs/api/types/ActivityClockRangeIn.js +3 -0
- package/dist/cjs/api/types/ActivityDeltaOut.d.ts +11 -0
- package/dist/cjs/api/types/ActivityDeltaOut.js +3 -0
- package/dist/cjs/api/types/ActivityItemOut.d.ts +19 -0
- package/dist/cjs/api/types/ActivityItemOut.js +3 -0
- package/dist/cjs/api/types/AssetActivityDeltaResponseOut.d.ts +11 -0
- package/dist/cjs/api/types/AssetActivityDeltaResponseOut.js +3 -0
- package/dist/cjs/api/types/AssetActivityResponseOut.d.ts +14 -0
- package/dist/cjs/api/types/AssetActivityResponseOut.js +3 -0
- package/dist/cjs/api/types/{AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.d.ts → DatabaseStatusResponse.d.ts} +3 -3
- package/dist/cjs/api/types/DatabaseStatusResponse.js +15 -0
- package/dist/cjs/api/types/GeneralAgentConfig.d.ts +1 -1
- package/dist/cjs/api/types/SessionOut.d.ts +7 -1
- package/dist/cjs/api/types/index.d.ts +6 -1
- package/dist/cjs/api/types/index.js +6 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/assets/client/Client.d.mts +65 -0
- package/dist/esm/api/resources/assets/client/Client.mjs +274 -0
- package/dist/esm/api/resources/assets/client/requests/AssetActivityDeltaBatchRequestIn.d.mts +19 -0
- package/dist/esm/api/resources/assets/client/requests/AssetActivityDeltaBatchRequestIn.mjs +2 -0
- package/dist/esm/api/resources/assets/client/requests/GetActivityDeltaAssetsRequest.d.mts +15 -0
- package/dist/esm/api/resources/assets/client/requests/GetActivityDeltaAssetsRequest.mjs +2 -0
- package/dist/esm/api/resources/assets/client/requests/ListActivityAssetsRequest.d.mts +13 -0
- package/dist/esm/api/resources/assets/client/requests/ListActivityAssetsRequest.mjs +2 -0
- package/dist/esm/api/resources/assets/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/databases/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/tools/client/Client.mjs +7 -1
- package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.mts +2 -0
- package/dist/esm/api/types/ActivityClockRangeIn.d.mts +9 -0
- package/dist/esm/api/types/ActivityClockRangeIn.mjs +2 -0
- package/dist/esm/api/types/ActivityDeltaOut.d.mts +11 -0
- package/dist/esm/api/types/ActivityDeltaOut.mjs +2 -0
- package/dist/esm/api/types/ActivityItemOut.d.mts +19 -0
- package/dist/esm/api/types/ActivityItemOut.mjs +2 -0
- package/dist/esm/api/types/AssetActivityDeltaResponseOut.d.mts +11 -0
- package/dist/esm/api/types/AssetActivityDeltaResponseOut.mjs +2 -0
- package/dist/esm/api/types/AssetActivityResponseOut.d.mts +14 -0
- package/dist/esm/api/types/AssetActivityResponseOut.mjs +2 -0
- package/dist/esm/api/types/{AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.d.mts → DatabaseStatusResponse.d.mts} +3 -3
- package/dist/esm/api/types/DatabaseStatusResponse.mjs +12 -0
- package/dist/esm/api/types/GeneralAgentConfig.d.mts +1 -1
- package/dist/esm/api/types/SessionOut.d.mts +7 -1
- package/dist/esm/api/types/index.d.mts +6 -1
- package/dist/esm/api/types/index.mjs +6 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +206 -2
- package/dist/cjs/api/types/AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.js +0 -15
- package/dist/esm/api/types/AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.mjs +0 -12
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DatabaseStatusResponse = void 0;
|
|
5
|
+
var DatabaseStatusResponse;
|
|
6
|
+
(function (DatabaseStatusResponse) {
|
|
7
|
+
/** Standardized database status */
|
|
8
|
+
DatabaseStatusResponse.Status = {
|
|
9
|
+
Running: "running",
|
|
10
|
+
Suspended: "suspended",
|
|
11
|
+
Starting: "starting",
|
|
12
|
+
Failed: "failed",
|
|
13
|
+
Unknown: "unknown",
|
|
14
|
+
};
|
|
15
|
+
})(DatabaseStatusResponse || (exports.DatabaseStatusResponse = DatabaseStatusResponse = {}));
|
|
@@ -10,6 +10,6 @@ export interface GeneralAgentConfig {
|
|
|
10
10
|
export declare namespace GeneralAgentConfig {
|
|
11
11
|
type EnabledTools = EnabledTools.Item[];
|
|
12
12
|
namespace EnabledTools {
|
|
13
|
-
type Item = ("search" | "browse") | string;
|
|
13
|
+
type Item = ("search" | "tavily_search" | "browse") | string;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -16,6 +16,8 @@ export interface SessionOut {
|
|
|
16
16
|
created_at: string;
|
|
17
17
|
/** Unique identifier of the user who created this session */
|
|
18
18
|
created_by_id?: string | null;
|
|
19
|
+
/** Canonical failure reason for failed runs; null for non-failed runs */
|
|
20
|
+
failure_reason_v2?: string | null;
|
|
19
21
|
/** Unique identifier of the session asset (e.g., 'asset_abc123') */
|
|
20
22
|
id: string;
|
|
21
23
|
/** Whether this is a branched sub-session of another session */
|
|
@@ -28,11 +30,15 @@ export interface SessionOut {
|
|
|
28
30
|
num_messages?: number | null;
|
|
29
31
|
/** Asset ID of the parent session for sub-sessions */
|
|
30
32
|
parent_session_id?: string | null;
|
|
33
|
+
/** Canonical latest-run status: scheduled, queued, running, needs_input, completed, failed, or canceled */
|
|
34
|
+
run_status_v2?: string | null;
|
|
35
|
+
/** Canonical user-facing session status: idle, active, needs_input, or error */
|
|
36
|
+
session_status_v2: string;
|
|
31
37
|
/** Kind of session: 'session' (chat), 'video_session', 'desktop_session', or 'mobile_session' */
|
|
32
38
|
session_type?: string | null;
|
|
33
39
|
/** Channel the session originated from (e.g., 'web', 'api', 'agent_email', 'agent_slack', 'agent_sms') */
|
|
34
40
|
source_channel?: string | null;
|
|
35
|
-
/**
|
|
41
|
+
/** Deprecated legacy execution state. Use session_status_v2, run_status_v2, and failure_reason_v2 for status UI. */
|
|
36
42
|
state?: string | null;
|
|
37
43
|
/** LangChain thread ID backing this session's message history */
|
|
38
44
|
thread_id: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./ActivityClockRangeIn.js";
|
|
2
|
+
export * from "./ActivityDeltaOut.js";
|
|
3
|
+
export * from "./ActivityItemOut.js";
|
|
2
4
|
export * from "./AopAsyncExecuteResponseOut.js";
|
|
3
5
|
export * from "./AopConfigResponseOut.js";
|
|
4
6
|
export * from "./AopConfigUpdateResponseOut.js";
|
|
@@ -7,6 +9,8 @@ export * from "./AopExecuteRequestIn.js";
|
|
|
7
9
|
export * from "./AopExecuteResponseOut.js";
|
|
8
10
|
export * from "./ApprovalMode.js";
|
|
9
11
|
export * from "./ArchiveAssetResponseOut.js";
|
|
12
|
+
export * from "./AssetActivityDeltaResponseOut.js";
|
|
13
|
+
export * from "./AssetActivityResponseOut.js";
|
|
10
14
|
export * from "./AssetCapabilitiesResponseOut.js";
|
|
11
15
|
export * from "./AssetComment.js";
|
|
12
16
|
export * from "./AssetCommentThread.js";
|
|
@@ -37,6 +41,7 @@ export * from "./DatabaseColumnInfo.js";
|
|
|
37
41
|
export * from "./DatabaseDataResponse.js";
|
|
38
42
|
export * from "./DatabaseMutationResponse.js";
|
|
39
43
|
export * from "./DatabaseSqlResponse.js";
|
|
44
|
+
export * from "./DatabaseStatusResponse.js";
|
|
40
45
|
export * from "./DatabaseTableInfo.js";
|
|
41
46
|
export * from "./DatabaseTableSchemaResponse.js";
|
|
42
47
|
export * from "./DatabaseTablesResponse.js";
|
|
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./ActivityClockRangeIn.js"), exports);
|
|
18
|
+
__exportStar(require("./ActivityDeltaOut.js"), exports);
|
|
19
|
+
__exportStar(require("./ActivityItemOut.js"), exports);
|
|
18
20
|
__exportStar(require("./AopAsyncExecuteResponseOut.js"), exports);
|
|
19
21
|
__exportStar(require("./AopConfigResponseOut.js"), exports);
|
|
20
22
|
__exportStar(require("./AopConfigUpdateResponseOut.js"), exports);
|
|
@@ -23,6 +25,8 @@ __exportStar(require("./AopExecuteRequestIn.js"), exports);
|
|
|
23
25
|
__exportStar(require("./AopExecuteResponseOut.js"), exports);
|
|
24
26
|
__exportStar(require("./ApprovalMode.js"), exports);
|
|
25
27
|
__exportStar(require("./ArchiveAssetResponseOut.js"), exports);
|
|
28
|
+
__exportStar(require("./AssetActivityDeltaResponseOut.js"), exports);
|
|
29
|
+
__exportStar(require("./AssetActivityResponseOut.js"), exports);
|
|
26
30
|
__exportStar(require("./AssetCapabilitiesResponseOut.js"), exports);
|
|
27
31
|
__exportStar(require("./AssetComment.js"), exports);
|
|
28
32
|
__exportStar(require("./AssetCommentThread.js"), exports);
|
|
@@ -53,6 +57,7 @@ __exportStar(require("./DatabaseColumnInfo.js"), exports);
|
|
|
53
57
|
__exportStar(require("./DatabaseDataResponse.js"), exports);
|
|
54
58
|
__exportStar(require("./DatabaseMutationResponse.js"), exports);
|
|
55
59
|
__exportStar(require("./DatabaseSqlResponse.js"), exports);
|
|
60
|
+
__exportStar(require("./DatabaseStatusResponse.js"), exports);
|
|
56
61
|
__exportStar(require("./DatabaseTableInfo.js"), exports);
|
|
57
62
|
__exportStar(require("./DatabaseTableSchemaResponse.js"), exports);
|
|
58
63
|
__exportStar(require("./DatabaseTablesResponse.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.2113";
|
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.2113",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2113",
|
|
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);
|
|
@@ -150,6 +150,71 @@ export declare class AssetsClient {
|
|
|
150
150
|
*/
|
|
151
151
|
rename(request: AthenaIntelligence.RenameAssetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.RenameAssetResponseOut>;
|
|
152
152
|
private __rename;
|
|
153
|
+
/**
|
|
154
|
+
* Admin only. List the edit history of a collaborative asset, newest first: who edited it, when, and under which agent/session attribution. Works for every collaborative asset type. Each item's from_clock/to_clock identify the edit for the companion delta endpoint, which reports what actually changed.
|
|
155
|
+
*
|
|
156
|
+
* @param {AthenaIntelligence.ListActivityAssetsRequest} request
|
|
157
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
160
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
161
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
162
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* await client.assets.listActivity({
|
|
166
|
+
* asset_id: "asset_id"
|
|
167
|
+
* })
|
|
168
|
+
*/
|
|
169
|
+
listActivity(request: AthenaIntelligence.ListActivityAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetActivityResponseOut>;
|
|
170
|
+
private __listActivity;
|
|
171
|
+
/**
|
|
172
|
+
* Admin only. Report what changed between two Keryx clocks — for spreadsheets, the per-cell before/after values; for documents, the inserted and deleted text; for presentations, the affected slides. Take the clocks from the activity endpoint. Computed by the same differ the in-app Activity pane renders, so the payload matches what a user sees. Always inspect delta.coverage: caps and non-decodable bulk regions are reported there rather than silently omitted.
|
|
173
|
+
*
|
|
174
|
+
* @param {AthenaIntelligence.GetActivityDeltaAssetsRequest} request
|
|
175
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
|
+
*
|
|
177
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
178
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
179
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
180
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
181
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* await client.assets.getActivityDelta({
|
|
185
|
+
* asset_id: "asset_id",
|
|
186
|
+
* from: 1,
|
|
187
|
+
* to: 1
|
|
188
|
+
* })
|
|
189
|
+
*/
|
|
190
|
+
getActivityDelta(request: AthenaIntelligence.GetActivityDeltaAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetActivityDeltaResponseOut>;
|
|
191
|
+
private __getActivityDelta;
|
|
192
|
+
/**
|
|
193
|
+
* Admin only. Batch form of the activity-delta endpoint: diff several clock ranges in one request. Prefer this when walking a whole log — one call computes every range in a single pass over the document instead of one request each (up to 25 per call). Results come back in request order, and a range that could not be read carries its own `error` instead of failing the batch. Same payload and `coverage` semantics as the single-range endpoint.
|
|
194
|
+
*
|
|
195
|
+
* @param {AthenaIntelligence.AssetActivityDeltaBatchRequestIn} request
|
|
196
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
+
*
|
|
198
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
199
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
200
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
201
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
202
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* await client.assets.getActivityDeltas({
|
|
206
|
+
* asset_id: "asset_id",
|
|
207
|
+
* ranges: [{
|
|
208
|
+
* from: 1752694811020,
|
|
209
|
+
* to: 1752694813551
|
|
210
|
+
* }, {
|
|
211
|
+
* from: 1752691402184,
|
|
212
|
+
* to: 1752691409776
|
|
213
|
+
* }]
|
|
214
|
+
* })
|
|
215
|
+
*/
|
|
216
|
+
getActivityDeltas(request: AthenaIntelligence.AssetActivityDeltaBatchRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetActivityDeltaResponseOut>;
|
|
217
|
+
private __getActivityDeltas;
|
|
153
218
|
/**
|
|
154
219
|
* Archive an asset by its ID. The asset will be hidden from active listings (e.g. GET /assets with default filters) but can still be retrieved directly by ID. For folders, all children are also archived recursively. For meetings, associated sub-assets (recordings, transcripts) are archived as well. Only the creator of the asset can archive it.
|
|
155
220
|
*
|
|
@@ -636,6 +636,280 @@ export class AssetsClient {
|
|
|
636
636
|
}
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
+
/**
|
|
640
|
+
* Admin only. List the edit history of a collaborative asset, newest first: who edited it, when, and under which agent/session attribution. Works for every collaborative asset type. Each item's from_clock/to_clock identify the edit for the companion delta endpoint, which reports what actually changed.
|
|
641
|
+
*
|
|
642
|
+
* @param {AthenaIntelligence.ListActivityAssetsRequest} request
|
|
643
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
644
|
+
*
|
|
645
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
646
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
647
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
648
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
649
|
+
*
|
|
650
|
+
* @example
|
|
651
|
+
* await client.assets.listActivity({
|
|
652
|
+
* asset_id: "asset_id"
|
|
653
|
+
* })
|
|
654
|
+
*/
|
|
655
|
+
listActivity(request, requestOptions) {
|
|
656
|
+
return core.HttpResponsePromise.fromPromise(this.__listActivity(request, requestOptions));
|
|
657
|
+
}
|
|
658
|
+
__listActivity(request, requestOptions) {
|
|
659
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
660
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
661
|
+
const { asset_id: assetId, limit, to_clock: toClock } = request;
|
|
662
|
+
const _queryParams = {};
|
|
663
|
+
if (limit != null) {
|
|
664
|
+
_queryParams.limit = limit.toString();
|
|
665
|
+
}
|
|
666
|
+
if (toClock !== undefined) {
|
|
667
|
+
_queryParams.to_clock = (_a = toClock === null || toClock === void 0 ? void 0 : toClock.toString()) !== null && _a !== void 0 ? _a : null;
|
|
668
|
+
}
|
|
669
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
670
|
+
const _headers = mergeHeaders(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
671
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
672
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.AthenaIntelligenceEnvironment.Production, `api/v0/assets/${core.url.encodePathParam(assetId)}/activity`),
|
|
673
|
+
method: "GET",
|
|
674
|
+
headers: _headers,
|
|
675
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
676
|
+
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
677
|
+
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
678
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
679
|
+
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
680
|
+
logging: this._options.logging,
|
|
681
|
+
});
|
|
682
|
+
if (_response.ok) {
|
|
683
|
+
return {
|
|
684
|
+
data: _response.body,
|
|
685
|
+
rawResponse: _response.rawResponse,
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
if (_response.error.reason === "status-code") {
|
|
689
|
+
switch (_response.error.statusCode) {
|
|
690
|
+
case 401:
|
|
691
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
692
|
+
case 403:
|
|
693
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
694
|
+
case 404:
|
|
695
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
696
|
+
case 422:
|
|
697
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
698
|
+
default:
|
|
699
|
+
throw new errors.AthenaIntelligenceError({
|
|
700
|
+
statusCode: _response.error.statusCode,
|
|
701
|
+
body: _response.error.body,
|
|
702
|
+
rawResponse: _response.rawResponse,
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
switch (_response.error.reason) {
|
|
707
|
+
case "non-json":
|
|
708
|
+
throw new errors.AthenaIntelligenceError({
|
|
709
|
+
statusCode: _response.error.statusCode,
|
|
710
|
+
body: _response.error.rawBody,
|
|
711
|
+
rawResponse: _response.rawResponse,
|
|
712
|
+
});
|
|
713
|
+
case "body-is-null":
|
|
714
|
+
throw new errors.AthenaIntelligenceError({
|
|
715
|
+
statusCode: _response.error.statusCode,
|
|
716
|
+
rawResponse: _response.rawResponse,
|
|
717
|
+
});
|
|
718
|
+
case "timeout":
|
|
719
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/assets/{asset_id}/activity.");
|
|
720
|
+
case "unknown":
|
|
721
|
+
throw new errors.AthenaIntelligenceError({
|
|
722
|
+
message: _response.error.errorMessage,
|
|
723
|
+
rawResponse: _response.rawResponse,
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* Admin only. Report what changed between two Keryx clocks — for spreadsheets, the per-cell before/after values; for documents, the inserted and deleted text; for presentations, the affected slides. Take the clocks from the activity endpoint. Computed by the same differ the in-app Activity pane renders, so the payload matches what a user sees. Always inspect delta.coverage: caps and non-decodable bulk regions are reported there rather than silently omitted.
|
|
730
|
+
*
|
|
731
|
+
* @param {AthenaIntelligence.GetActivityDeltaAssetsRequest} request
|
|
732
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
733
|
+
*
|
|
734
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
735
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
736
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
737
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
738
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
739
|
+
*
|
|
740
|
+
* @example
|
|
741
|
+
* await client.assets.getActivityDelta({
|
|
742
|
+
* asset_id: "asset_id",
|
|
743
|
+
* from: 1,
|
|
744
|
+
* to: 1
|
|
745
|
+
* })
|
|
746
|
+
*/
|
|
747
|
+
getActivityDelta(request, requestOptions) {
|
|
748
|
+
return core.HttpResponsePromise.fromPromise(this.__getActivityDelta(request, requestOptions));
|
|
749
|
+
}
|
|
750
|
+
__getActivityDelta(request, requestOptions) {
|
|
751
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
752
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
753
|
+
const { asset_id: assetId, from: from_, to } = request;
|
|
754
|
+
const _queryParams = {};
|
|
755
|
+
_queryParams.from = from_.toString();
|
|
756
|
+
_queryParams.to = to.toString();
|
|
757
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
758
|
+
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);
|
|
759
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
760
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, `api/v0/assets/${core.url.encodePathParam(assetId)}/activity/delta`),
|
|
761
|
+
method: "GET",
|
|
762
|
+
headers: _headers,
|
|
763
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
764
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
765
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
766
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
767
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
768
|
+
logging: this._options.logging,
|
|
769
|
+
});
|
|
770
|
+
if (_response.ok) {
|
|
771
|
+
return {
|
|
772
|
+
data: _response.body,
|
|
773
|
+
rawResponse: _response.rawResponse,
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
if (_response.error.reason === "status-code") {
|
|
777
|
+
switch (_response.error.statusCode) {
|
|
778
|
+
case 400:
|
|
779
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
780
|
+
case 401:
|
|
781
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
782
|
+
case 403:
|
|
783
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
784
|
+
case 404:
|
|
785
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
786
|
+
case 422:
|
|
787
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
788
|
+
default:
|
|
789
|
+
throw new errors.AthenaIntelligenceError({
|
|
790
|
+
statusCode: _response.error.statusCode,
|
|
791
|
+
body: _response.error.body,
|
|
792
|
+
rawResponse: _response.rawResponse,
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
switch (_response.error.reason) {
|
|
797
|
+
case "non-json":
|
|
798
|
+
throw new errors.AthenaIntelligenceError({
|
|
799
|
+
statusCode: _response.error.statusCode,
|
|
800
|
+
body: _response.error.rawBody,
|
|
801
|
+
rawResponse: _response.rawResponse,
|
|
802
|
+
});
|
|
803
|
+
case "body-is-null":
|
|
804
|
+
throw new errors.AthenaIntelligenceError({
|
|
805
|
+
statusCode: _response.error.statusCode,
|
|
806
|
+
rawResponse: _response.rawResponse,
|
|
807
|
+
});
|
|
808
|
+
case "timeout":
|
|
809
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/assets/{asset_id}/activity/delta.");
|
|
810
|
+
case "unknown":
|
|
811
|
+
throw new errors.AthenaIntelligenceError({
|
|
812
|
+
message: _response.error.errorMessage,
|
|
813
|
+
rawResponse: _response.rawResponse,
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Admin only. Batch form of the activity-delta endpoint: diff several clock ranges in one request. Prefer this when walking a whole log — one call computes every range in a single pass over the document instead of one request each (up to 25 per call). Results come back in request order, and a range that could not be read carries its own `error` instead of failing the batch. Same payload and `coverage` semantics as the single-range endpoint.
|
|
820
|
+
*
|
|
821
|
+
* @param {AthenaIntelligence.AssetActivityDeltaBatchRequestIn} request
|
|
822
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
823
|
+
*
|
|
824
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
825
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
826
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
827
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
828
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
829
|
+
*
|
|
830
|
+
* @example
|
|
831
|
+
* await client.assets.getActivityDeltas({
|
|
832
|
+
* asset_id: "asset_id",
|
|
833
|
+
* ranges: [{
|
|
834
|
+
* from: 1752694811020,
|
|
835
|
+
* to: 1752694813551
|
|
836
|
+
* }, {
|
|
837
|
+
* from: 1752691402184,
|
|
838
|
+
* to: 1752691409776
|
|
839
|
+
* }]
|
|
840
|
+
* })
|
|
841
|
+
*/
|
|
842
|
+
getActivityDeltas(request, requestOptions) {
|
|
843
|
+
return core.HttpResponsePromise.fromPromise(this.__getActivityDeltas(request, requestOptions));
|
|
844
|
+
}
|
|
845
|
+
__getActivityDeltas(request, requestOptions) {
|
|
846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
847
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
848
|
+
const { asset_id: assetId } = request, _body = __rest(request, ["asset_id"]);
|
|
849
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
850
|
+
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);
|
|
851
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
852
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, `api/v0/assets/${core.url.encodePathParam(assetId)}/activity/deltas`),
|
|
853
|
+
method: "POST",
|
|
854
|
+
headers: _headers,
|
|
855
|
+
contentType: "application/json",
|
|
856
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
857
|
+
requestType: "json",
|
|
858
|
+
body: _body,
|
|
859
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
860
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
861
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
862
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
863
|
+
logging: this._options.logging,
|
|
864
|
+
});
|
|
865
|
+
if (_response.ok) {
|
|
866
|
+
return {
|
|
867
|
+
data: _response.body,
|
|
868
|
+
rawResponse: _response.rawResponse,
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
if (_response.error.reason === "status-code") {
|
|
872
|
+
switch (_response.error.statusCode) {
|
|
873
|
+
case 400:
|
|
874
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
875
|
+
case 401:
|
|
876
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
877
|
+
case 403:
|
|
878
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
879
|
+
case 404:
|
|
880
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
881
|
+
case 422:
|
|
882
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
883
|
+
default:
|
|
884
|
+
throw new errors.AthenaIntelligenceError({
|
|
885
|
+
statusCode: _response.error.statusCode,
|
|
886
|
+
body: _response.error.body,
|
|
887
|
+
rawResponse: _response.rawResponse,
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
switch (_response.error.reason) {
|
|
892
|
+
case "non-json":
|
|
893
|
+
throw new errors.AthenaIntelligenceError({
|
|
894
|
+
statusCode: _response.error.statusCode,
|
|
895
|
+
body: _response.error.rawBody,
|
|
896
|
+
rawResponse: _response.rawResponse,
|
|
897
|
+
});
|
|
898
|
+
case "body-is-null":
|
|
899
|
+
throw new errors.AthenaIntelligenceError({
|
|
900
|
+
statusCode: _response.error.statusCode,
|
|
901
|
+
rawResponse: _response.rawResponse,
|
|
902
|
+
});
|
|
903
|
+
case "timeout":
|
|
904
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/assets/{asset_id}/activity/deltas.");
|
|
905
|
+
case "unknown":
|
|
906
|
+
throw new errors.AthenaIntelligenceError({
|
|
907
|
+
message: _response.error.errorMessage,
|
|
908
|
+
rawResponse: _response.rawResponse,
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
});
|
|
912
|
+
}
|
|
639
913
|
/**
|
|
640
914
|
* Archive an asset by its ID. The asset will be hidden from active listings (e.g. GET /assets with default filters) but can still be retrieved directly by ID. For folders, all children are also archived recursively. For meetings, associated sub-assets (recordings, transcripts) are archived as well. Only the creator of the asset can archive it.
|
|
641
915
|
*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* asset_id: "asset_id",
|
|
6
|
+
* ranges: [{
|
|
7
|
+
* from: 1752694811020,
|
|
8
|
+
* to: 1752694813551
|
|
9
|
+
* }, {
|
|
10
|
+
* from: 1752691402184,
|
|
11
|
+
* to: 1752691409776
|
|
12
|
+
* }]
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface AssetActivityDeltaBatchRequestIn {
|
|
16
|
+
asset_id: string;
|
|
17
|
+
/** Activity clock ranges to diff, at most 25 per call. Results are returned in request order. */
|
|
18
|
+
ranges: AthenaIntelligence.ActivityClockRangeIn[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* asset_id: "asset_id",
|
|
5
|
+
* from: 1,
|
|
6
|
+
* to: 1
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface GetActivityDeltaAssetsRequest {
|
|
10
|
+
asset_id: string;
|
|
11
|
+
/** Start clock, from an activity item's from_clock. */
|
|
12
|
+
from: number;
|
|
13
|
+
/** End clock, from the same activity item's to_clock. */
|
|
14
|
+
to: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* asset_id: "asset_id"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface ListActivityAssetsRequest {
|
|
8
|
+
asset_id: string;
|
|
9
|
+
/** Maximum items to return. */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Return only items at or before this clock. Pass the previous response's next_page_to_clock to page backwards through history. */
|
|
12
|
+
to_clock?: number | null;
|
|
13
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export type { ArchiveAssetsRequest } from "./ArchiveAssetsRequest.mjs";
|
|
2
|
+
export type { AssetActivityDeltaBatchRequestIn } from "./AssetActivityDeltaBatchRequestIn.mjs";
|
|
2
3
|
export type { ConvertExcelToSheetRequestIn } from "./ConvertExcelToSheetRequestIn.mjs";
|
|
3
4
|
export type { CreateAssetRequestIn } from "./CreateAssetRequestIn.mjs";
|
|
4
5
|
export type { CreateProjectRequestIn } from "./CreateProjectRequestIn.mjs";
|
|
5
6
|
export type { DownloadAssetsRequest } from "./DownloadAssetsRequest.mjs";
|
|
6
7
|
export type { DuplicateAssetRequestIn } from "./DuplicateAssetRequestIn.mjs";
|
|
8
|
+
export type { GetActivityDeltaAssetsRequest } from "./GetActivityDeltaAssetsRequest.mjs";
|
|
7
9
|
export type { GetAssetsRequest } from "./GetAssetsRequest.mjs";
|
|
10
|
+
export type { ListActivityAssetsRequest } from "./ListActivityAssetsRequest.mjs";
|
|
8
11
|
export type { ListAssetsRequest } from "./ListAssetsRequest.mjs";
|
|
9
12
|
export type { MoveAssetRequestIn } from "./MoveAssetRequestIn.mjs";
|
|
10
13
|
export type { RenameAssetRequestIn } from "./RenameAssetRequestIn.mjs";
|
|
@@ -35,7 +35,7 @@ export declare class DatabasesClient {
|
|
|
35
35
|
* asset_id: "asset_id"
|
|
36
36
|
* })
|
|
37
37
|
*/
|
|
38
|
-
getStatus(request: AthenaIntelligence.GetStatusDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.
|
|
38
|
+
getStatus(request: AthenaIntelligence.GetStatusDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DatabaseStatusResponse>;
|
|
39
39
|
private __getStatus;
|
|
40
40
|
/**
|
|
41
41
|
* Get a list of all tables in the database with optional row counts.
|
|
@@ -147,12 +147,13 @@ export declare class ToolsClient {
|
|
|
147
147
|
rawData(request: AthenaIntelligence.RawDataToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
148
148
|
private __rawData;
|
|
149
149
|
/**
|
|
150
|
-
* Save a file as an asset in the
|
|
150
|
+
* Save a file as an asset in the target workspace.
|
|
151
151
|
*
|
|
152
152
|
* @param {AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost} request
|
|
153
153
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
154
154
|
*
|
|
155
155
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
156
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
156
157
|
* @throws {@link AthenaIntelligence.ContentTooLargeError}
|
|
157
158
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
158
159
|
*
|
|
@@ -694,12 +694,13 @@ export class ToolsClient {
|
|
|
694
694
|
});
|
|
695
695
|
}
|
|
696
696
|
/**
|
|
697
|
-
* Save a file as an asset in the
|
|
697
|
+
* Save a file as an asset in the target workspace.
|
|
698
698
|
*
|
|
699
699
|
* @param {AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost} request
|
|
700
700
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
701
701
|
*
|
|
702
702
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
703
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
703
704
|
* @throws {@link AthenaIntelligence.ContentTooLargeError}
|
|
704
705
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
705
706
|
*
|
|
@@ -719,6 +720,9 @@ export class ToolsClient {
|
|
|
719
720
|
if (request.parent_folder_id !== undefined) {
|
|
720
721
|
_queryParams.parent_folder_id = request.parent_folder_id;
|
|
721
722
|
}
|
|
723
|
+
if (request.workspace_id !== undefined) {
|
|
724
|
+
_queryParams.workspace_id = request.workspace_id;
|
|
725
|
+
}
|
|
722
726
|
const _request = yield core.newFormData();
|
|
723
727
|
yield _request.appendFile("file", request.file);
|
|
724
728
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
@@ -748,6 +752,8 @@ export class ToolsClient {
|
|
|
748
752
|
switch (_response.error.statusCode) {
|
|
749
753
|
case 400:
|
|
750
754
|
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
755
|
+
case 403:
|
|
756
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
751
757
|
case 413:
|
|
752
758
|
throw new AthenaIntelligence.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
753
759
|
case 422:
|
package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.mts
CHANGED
|
@@ -8,5 +8,7 @@ import type * as core from "../../../../../core/index.mjs";
|
|
|
8
8
|
export interface BodySaveAssetApiV0ToolsFileSavePost {
|
|
9
9
|
/** Identifier of the folder into which the asset should be saved */
|
|
10
10
|
parent_folder_id?: string | null;
|
|
11
|
+
/** Identifier of the workspace to save the asset into. Defaults to the caller's current workspace. The caller must be a member of the specified workspace. */
|
|
12
|
+
workspace_id?: string | null;
|
|
11
13
|
file: core.file.Uploadable;
|
|
12
14
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One activity item's clock range, from the activity endpoint.
|
|
3
|
+
*/
|
|
4
|
+
export interface ActivityClockRangeIn {
|
|
5
|
+
/** Start clock, from an activity item's from_clock. */
|
|
6
|
+
from: number;
|
|
7
|
+
/** End clock, from the same activity item's to_clock. */
|
|
8
|
+
to: number;
|
|
9
|
+
}
|