@nizam-os/dashboard-sdk 6.5.0 → 7.0.0
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/Client.d.ts +6 -0
- package/dist/Client.js +26 -18
- package/dist/api/errors/ContentTooLargeError.d.ts +6 -0
- package/dist/api/errors/ContentTooLargeError.js +54 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/files/client/Client.d.ts +188 -0
- package/dist/api/resources/files/client/Client.js +608 -0
- package/dist/api/resources/files/client/index.d.ts +1 -0
- package/dist/api/resources/files/client/index.js +17 -0
- package/dist/api/resources/files/client/requests/CancelFileUploadRequest.d.ts +9 -0
- package/dist/api/resources/files/client/requests/CancelFileUploadRequest.js +3 -0
- package/dist/api/resources/files/client/requests/CompleteFileUploadRequest.d.ts +15 -0
- package/dist/api/resources/files/client/requests/CompleteFileUploadRequest.js +3 -0
- package/dist/api/resources/files/client/requests/CreateFileDownloadUrlRequest.d.ts +9 -0
- package/dist/api/resources/files/client/requests/CreateFileDownloadUrlRequest.js +3 -0
- package/dist/api/resources/files/client/requests/DeleteFileRequest.d.ts +9 -0
- package/dist/api/resources/files/client/requests/DeleteFileRequest.js +3 -0
- package/dist/api/resources/files/client/requests/GetFileRequest.d.ts +9 -0
- package/dist/api/resources/files/client/requests/GetFileRequest.js +3 -0
- package/dist/api/resources/files/client/requests/InitiateFileUploadRequest.d.ts +41 -0
- package/dist/api/resources/files/client/requests/InitiateFileUploadRequest.js +17 -0
- package/dist/api/resources/files/client/requests/ListFilesRequest.d.ts +27 -0
- package/dist/api/resources/files/client/requests/ListFilesRequest.js +3 -0
- package/dist/api/resources/files/client/requests/ResumeFileUploadRequest.d.ts +9 -0
- package/dist/api/resources/files/client/requests/ResumeFileUploadRequest.js +3 -0
- package/dist/api/resources/files/client/requests/index.d.ts +8 -0
- package/dist/api/resources/files/client/requests/index.js +5 -0
- package/dist/api/resources/files/exports.d.ts +2 -0
- package/dist/api/resources/files/exports.js +21 -0
- package/dist/api/resources/files/index.d.ts +1 -0
- package/dist/api/resources/files/index.js +17 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +5 -1
- package/dist/api/resources/taskAttempts/client/Client.d.ts +65 -0
- package/dist/api/resources/taskAttempts/client/Client.js +208 -0
- package/dist/api/resources/taskAttempts/client/index.d.ts +1 -0
- package/dist/api/resources/taskAttempts/client/index.js +17 -0
- package/dist/api/resources/taskAttempts/client/requests/CaptureTaskAttemptPhotoRequest.d.ts +49 -0
- package/dist/api/resources/taskAttempts/client/requests/CaptureTaskAttemptPhotoRequest.js +20 -0
- package/dist/api/resources/taskAttempts/client/requests/ListTaskAttemptPhotosRequest.d.ts +17 -0
- package/dist/api/resources/taskAttempts/client/requests/ListTaskAttemptPhotosRequest.js +3 -0
- package/dist/api/resources/taskAttempts/client/requests/index.d.ts +2 -0
- package/dist/api/resources/taskAttempts/client/requests/index.js +5 -0
- package/dist/api/resources/taskAttempts/exports.d.ts +2 -0
- package/dist/api/resources/taskAttempts/exports.js +21 -0
- package/dist/api/resources/taskAttempts/index.d.ts +1 -0
- package/dist/api/resources/taskAttempts/index.js +17 -0
- package/dist/api/resources/users/client/Client.d.ts +43 -0
- package/dist/api/resources/users/client/Client.js +142 -0
- package/dist/api/resources/users/client/requests/GetUserProfilePictureRequest.d.ts +11 -0
- package/dist/api/resources/users/client/requests/GetUserProfilePictureRequest.js +3 -0
- package/dist/api/resources/users/client/requests/InitiateProfilePictureUploadRequest.d.ts +19 -0
- package/dist/api/resources/users/client/requests/InitiateProfilePictureUploadRequest.js +3 -0
- package/dist/api/resources/users/client/requests/index.d.ts +2 -0
- package/dist/api/types/FileDownloadUrl.d.ts +16 -0
- package/dist/api/types/FileDownloadUrl.js +10 -0
- package/dist/api/types/FileUploadPart.d.ts +13 -0
- package/dist/api/types/FileUploadPart.js +3 -0
- package/dist/api/types/FileUploadPartReport.d.ts +9 -0
- package/dist/api/types/FileUploadPartReport.js +3 -0
- package/dist/api/types/FileUploadSession.d.ts +51 -0
- package/dist/api/types/FileUploadSession.js +28 -0
- package/dist/api/types/File_.d.ts +86 -0
- package/dist/api/types/File_.js +40 -0
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/Job.js +2 -0
- package/dist/api/types/ListResponseFile.d.ts +27 -0
- package/dist/api/types/ListResponseFile.js +11 -0
- package/dist/api/types/TaskAttemptPhoto.d.ts +30 -0
- package/dist/api/types/TaskAttemptPhoto.js +10 -0
- package/dist/api/types/TaskAttemptPhotoThumbnail.d.ts +9 -0
- package/dist/api/types/TaskAttemptPhotoThumbnail.js +3 -0
- package/dist/api/types/UploadInitiation.d.ts +22 -0
- package/dist/api/types/UploadInitiation.js +10 -0
- package/dist/api/types/UploadInitiationPart.d.ts +13 -0
- package/dist/api/types/UploadInitiationPart.js +3 -0
- package/dist/api/types/index.d.ts +10 -0
- package/dist/api/types/index.js +10 -0
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ActiveOrganizationClient } from "./api/resources/activeOrganization/cli
|
|
|
2
2
|
import { ActivityClient } from "./api/resources/activity/client/Client.js";
|
|
3
3
|
import { AssetsClient } from "./api/resources/assets/client/Client.js";
|
|
4
4
|
import { AssignmentsClient } from "./api/resources/assignments/client/Client.js";
|
|
5
|
+
import { FilesClient } from "./api/resources/files/client/Client.js";
|
|
5
6
|
import { InvitesClient } from "./api/resources/invites/client/Client.js";
|
|
6
7
|
import { JobsClient } from "./api/resources/jobs/client/Client.js";
|
|
7
8
|
import { LookupsClient } from "./api/resources/lookups/client/Client.js";
|
|
@@ -10,6 +11,7 @@ import { OperatorsClient } from "./api/resources/operators/client/Client.js";
|
|
|
10
11
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.js";
|
|
11
12
|
import { PositionsClient } from "./api/resources/positions/client/Client.js";
|
|
12
13
|
import { RealtimeClient } from "./api/resources/realtime/client/Client.js";
|
|
14
|
+
import { TaskAttemptsClient } from "./api/resources/taskAttempts/client/Client.js";
|
|
13
15
|
import { UsersClient } from "./api/resources/users/client/Client.js";
|
|
14
16
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
15
17
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
|
|
@@ -24,6 +26,7 @@ export declare class NizamDashboardClient {
|
|
|
24
26
|
protected _activity: ActivityClient | undefined;
|
|
25
27
|
protected _assets: AssetsClient | undefined;
|
|
26
28
|
protected _assignments: AssignmentsClient | undefined;
|
|
29
|
+
protected _files: FilesClient | undefined;
|
|
27
30
|
protected _positions: PositionsClient | undefined;
|
|
28
31
|
protected _invites: InvitesClient | undefined;
|
|
29
32
|
protected _jobs: JobsClient | undefined;
|
|
@@ -34,10 +37,12 @@ export declare class NizamDashboardClient {
|
|
|
34
37
|
protected _operators: OperatorsClient | undefined;
|
|
35
38
|
protected _organizations: OrganizationsClient | undefined;
|
|
36
39
|
protected _realtime: RealtimeClient | undefined;
|
|
40
|
+
protected _taskAttempts: TaskAttemptsClient | undefined;
|
|
37
41
|
constructor(options: NizamDashboardClient.Options);
|
|
38
42
|
get activity(): ActivityClient;
|
|
39
43
|
get assets(): AssetsClient;
|
|
40
44
|
get assignments(): AssignmentsClient;
|
|
45
|
+
get files(): FilesClient;
|
|
41
46
|
get positions(): PositionsClient;
|
|
42
47
|
get invites(): InvitesClient;
|
|
43
48
|
get jobs(): JobsClient;
|
|
@@ -48,6 +53,7 @@ export declare class NizamDashboardClient {
|
|
|
48
53
|
get operators(): OperatorsClient;
|
|
49
54
|
get organizations(): OrganizationsClient;
|
|
50
55
|
get realtime(): RealtimeClient;
|
|
56
|
+
get taskAttempts(): TaskAttemptsClient;
|
|
51
57
|
/**
|
|
52
58
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
53
59
|
* This is useful for making requests to endpoints not yet supported in the SDK.
|
package/dist/Client.js
CHANGED
|
@@ -39,15 +39,17 @@ const Client_js_1 = require("./api/resources/activeOrganization/client/Client.js
|
|
|
39
39
|
const Client_js_2 = require("./api/resources/activity/client/Client.js");
|
|
40
40
|
const Client_js_3 = require("./api/resources/assets/client/Client.js");
|
|
41
41
|
const Client_js_4 = require("./api/resources/assignments/client/Client.js");
|
|
42
|
-
const Client_js_5 = require("./api/resources/
|
|
43
|
-
const Client_js_6 = require("./api/resources/
|
|
44
|
-
const Client_js_7 = require("./api/resources/
|
|
45
|
-
const Client_js_8 = require("./api/resources/
|
|
46
|
-
const Client_js_9 = require("./api/resources/
|
|
47
|
-
const Client_js_10 = require("./api/resources/
|
|
48
|
-
const Client_js_11 = require("./api/resources/
|
|
49
|
-
const Client_js_12 = require("./api/resources/
|
|
50
|
-
const Client_js_13 = require("./api/resources/
|
|
42
|
+
const Client_js_5 = require("./api/resources/files/client/Client.js");
|
|
43
|
+
const Client_js_6 = require("./api/resources/invites/client/Client.js");
|
|
44
|
+
const Client_js_7 = require("./api/resources/jobs/client/Client.js");
|
|
45
|
+
const Client_js_8 = require("./api/resources/lookups/client/Client.js");
|
|
46
|
+
const Client_js_9 = require("./api/resources/memberships/client/Client.js");
|
|
47
|
+
const Client_js_10 = require("./api/resources/operators/client/Client.js");
|
|
48
|
+
const Client_js_11 = require("./api/resources/organizations/client/Client.js");
|
|
49
|
+
const Client_js_12 = require("./api/resources/positions/client/Client.js");
|
|
50
|
+
const Client_js_13 = require("./api/resources/realtime/client/Client.js");
|
|
51
|
+
const Client_js_14 = require("./api/resources/taskAttempts/client/Client.js");
|
|
52
|
+
const Client_js_15 = require("./api/resources/users/client/Client.js");
|
|
51
53
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
52
54
|
const core = __importStar(require("./core/index.js"));
|
|
53
55
|
class NizamDashboardClient {
|
|
@@ -63,35 +65,41 @@ class NizamDashboardClient {
|
|
|
63
65
|
get assignments() {
|
|
64
66
|
return (this._assignments ?? (this._assignments = new Client_js_4.AssignmentsClient(this._options)));
|
|
65
67
|
}
|
|
68
|
+
get files() {
|
|
69
|
+
return (this._files ?? (this._files = new Client_js_5.FilesClient(this._options)));
|
|
70
|
+
}
|
|
66
71
|
get positions() {
|
|
67
|
-
return (this._positions ?? (this._positions = new
|
|
72
|
+
return (this._positions ?? (this._positions = new Client_js_12.PositionsClient(this._options)));
|
|
68
73
|
}
|
|
69
74
|
get invites() {
|
|
70
|
-
return (this._invites ?? (this._invites = new
|
|
75
|
+
return (this._invites ?? (this._invites = new Client_js_6.InvitesClient(this._options)));
|
|
71
76
|
}
|
|
72
77
|
get jobs() {
|
|
73
|
-
return (this._jobs ?? (this._jobs = new
|
|
78
|
+
return (this._jobs ?? (this._jobs = new Client_js_7.JobsClient(this._options)));
|
|
74
79
|
}
|
|
75
80
|
get lookups() {
|
|
76
|
-
return (this._lookups ?? (this._lookups = new
|
|
81
|
+
return (this._lookups ?? (this._lookups = new Client_js_8.LookupsClient(this._options)));
|
|
77
82
|
}
|
|
78
83
|
get users() {
|
|
79
|
-
return (this._users ?? (this._users = new
|
|
84
|
+
return (this._users ?? (this._users = new Client_js_15.UsersClient(this._options)));
|
|
80
85
|
}
|
|
81
86
|
get activeOrganization() {
|
|
82
87
|
return (this._activeOrganization ?? (this._activeOrganization = new Client_js_1.ActiveOrganizationClient(this._options)));
|
|
83
88
|
}
|
|
84
89
|
get memberships() {
|
|
85
|
-
return (this._memberships ?? (this._memberships = new
|
|
90
|
+
return (this._memberships ?? (this._memberships = new Client_js_9.MembershipsClient(this._options)));
|
|
86
91
|
}
|
|
87
92
|
get operators() {
|
|
88
|
-
return (this._operators ?? (this._operators = new
|
|
93
|
+
return (this._operators ?? (this._operators = new Client_js_10.OperatorsClient(this._options)));
|
|
89
94
|
}
|
|
90
95
|
get organizations() {
|
|
91
|
-
return (this._organizations ?? (this._organizations = new
|
|
96
|
+
return (this._organizations ?? (this._organizations = new Client_js_11.OrganizationsClient(this._options)));
|
|
92
97
|
}
|
|
93
98
|
get realtime() {
|
|
94
|
-
return (this._realtime ?? (this._realtime = new
|
|
99
|
+
return (this._realtime ?? (this._realtime = new Client_js_13.RealtimeClient(this._options)));
|
|
100
|
+
}
|
|
101
|
+
get taskAttempts() {
|
|
102
|
+
return (this._taskAttempts ?? (this._taskAttempts = new Client_js_14.TaskAttemptsClient(this._options)));
|
|
95
103
|
}
|
|
96
104
|
/**
|
|
97
105
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as NizamDashboard from "../index.js";
|
|
4
|
+
export declare class ContentTooLargeError extends errors.NizamDashboardError {
|
|
5
|
+
constructor(body: NizamDashboard.ProblemDetail, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.ContentTooLargeError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class ContentTooLargeError extends errors.NizamDashboardError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "ContentTooLargeError",
|
|
43
|
+
statusCode: 413,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.ContentTooLargeError = ContentTooLargeError;
|
package/dist/api/errors/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BadRequestError.js"), exports);
|
|
18
18
|
__exportStar(require("./ConflictError.js"), exports);
|
|
19
|
+
__exportStar(require("./ContentTooLargeError.js"), exports);
|
|
19
20
|
__exportStar(require("./ForbiddenError.js"), exports);
|
|
20
21
|
__exportStar(require("./GoneError.js"), exports);
|
|
21
22
|
__exportStar(require("./InternalServerError.js"), exports);
|
|
@@ -0,0 +1,188 @@
|
|
|
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 NizamDashboard from "../../../index.js";
|
|
5
|
+
export declare namespace FilesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class FilesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<FilesClient.Options>;
|
|
12
|
+
constructor(options: FilesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* The active organization's files ordered by `created_at` descending (pass `sort=created_at` for ascending). `kind` / `status` accept comma-separated values; `subject_type` + `subject_id` narrow to the files documenting one business entity. Pagination is bidirectional (`starting_after` / `ending_before`).
|
|
15
|
+
*
|
|
16
|
+
* @param {NizamDashboard.ListFilesRequest} request
|
|
17
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
20
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
21
|
+
* @throws {@link NizamDashboard.ForbiddenError}
|
|
22
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
23
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.files.listFiles({
|
|
27
|
+
* subject_type: "<string>",
|
|
28
|
+
* subject_id: "00000000-0000-0000-0000-000000000000",
|
|
29
|
+
* starting_after: "Y3Vyc29yX25leHRfMDFKNVE=",
|
|
30
|
+
* ending_before: "Y3Vyc29yX25leHRfMDFKNVE="
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
listFiles(request?: NizamDashboard.ListFilesRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.ListResponseFile>;
|
|
34
|
+
private __listFiles;
|
|
35
|
+
/**
|
|
36
|
+
* Validates the declaration against the kind's policy (allowed portals, content types, size ceiling, organization quota), pre-reserves the final file id, and returns presigned part URLs. PUT each part's bytes directly to its URL (repeating the part's `headers` verbatim) and keep each response's `ETag` for completion. Sessions expire after 24h; the part URLs sooner — re-issue them via the resume endpoint.
|
|
37
|
+
*
|
|
38
|
+
* @param {NizamDashboard.InitiateFileUploadRequest} request
|
|
39
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
42
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
43
|
+
* @throws {@link NizamDashboard.ForbiddenError}
|
|
44
|
+
* @throws {@link NizamDashboard.ContentTooLargeError}
|
|
45
|
+
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
46
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
47
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.files.initiateFileUpload({
|
|
51
|
+
* kind: "profile_picture",
|
|
52
|
+
* subject_type: "task_attempt",
|
|
53
|
+
* subject_id: "b3c4d5e6-7f8a-9b0c-1d2e-3f4a5b6c7d8e",
|
|
54
|
+
* filename: "pod-photo.jpg",
|
|
55
|
+
* content_type: "image/jpeg",
|
|
56
|
+
* size_bytes: 2048576,
|
|
57
|
+
* checksum_sha256: "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
60
|
+
initiateFileUpload(request: NizamDashboard.InitiateFileUploadRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.FileUploadSession>;
|
|
61
|
+
private __initiateFileUpload;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the session state — which parts are already confirmed — plus fresh presigned URLs for the parts still missing. The IndexedDB-persisted ETags from before the interruption stay valid; only re-upload the missing parts. Uploader-only: other members' sessions read as 404.
|
|
64
|
+
*
|
|
65
|
+
* @param {NizamDashboard.ResumeFileUploadRequest} request
|
|
66
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
69
|
+
* @throws {@link NizamDashboard.ForbiddenError}
|
|
70
|
+
* @throws {@link NizamDashboard.NotFoundError}
|
|
71
|
+
* @throws {@link NizamDashboard.ConflictError}
|
|
72
|
+
* @throws {@link NizamDashboard.GoneError}
|
|
73
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
74
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.files.resumeFileUpload({
|
|
78
|
+
* id: "00000000-0000-0000-0000-000000000000"
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
resumeFileUpload(request: NizamDashboard.ResumeFileUploadRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.FileUploadSession>;
|
|
82
|
+
private __resumeFileUpload;
|
|
83
|
+
/**
|
|
84
|
+
* Aborts the storage-side multipart upload and marks the session aborted. Idempotent: cancelling an already-terminal session is a no-op.
|
|
85
|
+
*
|
|
86
|
+
* @param {NizamDashboard.CancelFileUploadRequest} request
|
|
87
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
90
|
+
* @throws {@link NizamDashboard.ForbiddenError}
|
|
91
|
+
* @throws {@link NizamDashboard.NotFoundError}
|
|
92
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
93
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* await client.files.cancelFileUpload({
|
|
97
|
+
* id: "00000000-0000-0000-0000-000000000000"
|
|
98
|
+
* })
|
|
99
|
+
*/
|
|
100
|
+
cancelFileUpload(request: NizamDashboard.CancelFileUploadRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
101
|
+
private __cancelFileUpload;
|
|
102
|
+
/**
|
|
103
|
+
* Assembles the file from the reported part ETags, verifies the declared size against storage, detects the real content type from the bytes, creates the file record under the pre-reserved id and enqueues the malware-scan / thumbnail pipeline. Scanned kinds stay undownloadable until the verdict lands (`virus_scan_status: clean`).
|
|
104
|
+
*
|
|
105
|
+
* @param {NizamDashboard.CompleteFileUploadRequest} request
|
|
106
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
109
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
110
|
+
* @throws {@link NizamDashboard.ForbiddenError}
|
|
111
|
+
* @throws {@link NizamDashboard.NotFoundError}
|
|
112
|
+
* @throws {@link NizamDashboard.ConflictError}
|
|
113
|
+
* @throws {@link NizamDashboard.GoneError}
|
|
114
|
+
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
115
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
116
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* await client.files.completeFileUpload({
|
|
120
|
+
* id: "00000000-0000-0000-0000-000000000000",
|
|
121
|
+
* parts: [{
|
|
122
|
+
* part_number: 1,
|
|
123
|
+
* etag: "9bb58f26192e4ba00f01e2e7b136bbd8"
|
|
124
|
+
* }]
|
|
125
|
+
* })
|
|
126
|
+
*/
|
|
127
|
+
completeFileUpload(request: NizamDashboard.CompleteFileUploadRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.File_>;
|
|
128
|
+
private __completeFileUpload;
|
|
129
|
+
/**
|
|
130
|
+
* Single file view: kind, integrity, lifecycle, scan verdict, subject. Org-scoped: any member of the owning organization can read it. Bytes are served only through the download-url endpoint.
|
|
131
|
+
*
|
|
132
|
+
* @param {NizamDashboard.GetFileRequest} request
|
|
133
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
136
|
+
* @throws {@link NizamDashboard.ForbiddenError}
|
|
137
|
+
* @throws {@link NizamDashboard.NotFoundError}
|
|
138
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
139
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* await client.files.getFile({
|
|
143
|
+
* id: "00000000-0000-0000-0000-000000000000"
|
|
144
|
+
* })
|
|
145
|
+
*/
|
|
146
|
+
getFile(request: NizamDashboard.GetFileRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.File_>;
|
|
147
|
+
private __getFile;
|
|
148
|
+
/**
|
|
149
|
+
* Soft-deletes the file: it disappears from listings immediately; the bytes are purged later by the lifecycle sweep once the grace period passes. Refused while a regulatory retention hold is in force (409).
|
|
150
|
+
*
|
|
151
|
+
* @param {NizamDashboard.DeleteFileRequest} request
|
|
152
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
155
|
+
* @throws {@link NizamDashboard.ForbiddenError}
|
|
156
|
+
* @throws {@link NizamDashboard.NotFoundError}
|
|
157
|
+
* @throws {@link NizamDashboard.ConflictError}
|
|
158
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
159
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* await client.files.deleteFile({
|
|
163
|
+
* id: "00000000-0000-0000-0000-000000000000"
|
|
164
|
+
* })
|
|
165
|
+
*/
|
|
166
|
+
deleteFile(request: NizamDashboard.DeleteFileRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
167
|
+
private __deleteFile;
|
|
168
|
+
/**
|
|
169
|
+
* Authorizes the caller (org membership + the kind's portal allow-list + the scan verdict) and issues a short-lived URL for the bytes — presigned storage, or a signed CDN URL for public kinds when the CDN is enabled. Sensitive kinds append an access-audit row in the same transaction; POST because issuing a grant is an audited action, not a cacheable read.
|
|
170
|
+
*
|
|
171
|
+
* @param {NizamDashboard.CreateFileDownloadUrlRequest} request
|
|
172
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
|
+
*
|
|
174
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
175
|
+
* @throws {@link NizamDashboard.ForbiddenError}
|
|
176
|
+
* @throws {@link NizamDashboard.NotFoundError}
|
|
177
|
+
* @throws {@link NizamDashboard.ConflictError}
|
|
178
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
179
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* await client.files.createFileDownloadUrl({
|
|
183
|
+
* id: "00000000-0000-0000-0000-000000000000"
|
|
184
|
+
* })
|
|
185
|
+
*/
|
|
186
|
+
createFileDownloadUrl(request: NizamDashboard.CreateFileDownloadUrlRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.FileDownloadUrl>;
|
|
187
|
+
private __createFileDownloadUrl;
|
|
188
|
+
}
|