@unofficialbox/box-open-sdk 0.4.4 → 0.6.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/README.md +13 -0
- package/dist/cjs/buildinfo.js +2 -2
- package/dist/cjs/client.js +10 -3
- package/dist/cjs/errors.js +47 -0
- package/dist/cjs/managers/chunked_uploads.js +13 -0
- package/dist/cjs/managers/document_split.js +100 -0
- package/dist/cjs/managers/index.js +2 -0
- package/dist/cjs/managers/shuttle.js +679 -0
- package/dist/cjs/models/schemas/ai.js +1 -1
- package/dist/cjs/models/schemas/ai_studio.js +1 -1
- package/dist/cjs/models/schemas/app_item_associations.js +1 -1
- package/dist/cjs/models/schemas/archives.js +1 -1
- package/dist/cjs/models/schemas/authorization.js +1 -1
- package/dist/cjs/models/schemas/automate_workflows.js +1 -1
- package/dist/cjs/models/schemas/avatars.js +1 -1
- package/dist/cjs/models/schemas/chunked_uploads.js +1 -1
- package/dist/cjs/models/schemas/classifications.js +1 -1
- package/dist/cjs/models/schemas/collaboration_allowlist_entries.js +1 -1
- package/dist/cjs/models/schemas/collaboration_allowlist_exempt_targets.js +1 -1
- package/dist/cjs/models/schemas/collections.js +1 -1
- package/dist/cjs/models/schemas/comments.js +1 -1
- package/dist/cjs/models/schemas/device_pinners.js +1 -1
- package/dist/cjs/models/schemas/docgen.js +1 -1
- package/dist/cjs/models/schemas/docgen_template.js +1 -1
- package/dist/cjs/models/schemas/document_split.js +3 -0
- package/dist/cjs/models/schemas/email_aliases.js +1 -1
- package/dist/cjs/models/schemas/enterprise_configurations.js +1 -1
- package/dist/cjs/models/schemas/events.js +1 -1
- package/dist/cjs/models/schemas/external_users.js +1 -1
- package/dist/cjs/models/schemas/file_requests.js +1 -1
- package/dist/cjs/models/schemas/file_version_legal_holds.js +1 -1
- package/dist/cjs/models/schemas/file_version_retentions.js +1 -1
- package/dist/cjs/models/schemas/file_versions.js +1 -1
- package/dist/cjs/models/schemas/files.js +1 -1
- package/dist/cjs/models/schemas/folder_locks.js +1 -1
- package/dist/cjs/models/schemas/folders.js +1 -1
- package/dist/cjs/models/schemas/groups.js +1 -1
- package/dist/cjs/models/schemas/hub_collaborations.js +1 -1
- package/dist/cjs/models/schemas/hub_document.js +1 -1
- package/dist/cjs/models/schemas/hub_items.js +1 -1
- package/dist/cjs/models/schemas/hubs.js +1 -1
- package/dist/cjs/models/schemas/integration_mappings.js +1 -1
- package/dist/cjs/models/schemas/invites.js +1 -1
- package/dist/cjs/models/schemas/legal_hold_policies.js +1 -1
- package/dist/cjs/models/schemas/legal_hold_policy_assignments.js +1 -1
- package/dist/cjs/models/schemas/list_collaborations.js +1 -1
- package/dist/cjs/models/schemas/memberships.js +1 -1
- package/dist/cjs/models/schemas/metadata_cascade_policies.js +1 -1
- package/dist/cjs/models/schemas/metadata_taxonomies.js +1 -1
- package/dist/cjs/models/schemas/metadata_templates.js +1 -1
- package/dist/cjs/models/schemas/notes.js +1 -1
- package/dist/cjs/models/schemas/query.js +1 -1
- package/dist/cjs/models/schemas/recent_items.js +1 -1
- package/dist/cjs/models/schemas/retention_policies.js +1 -1
- package/dist/cjs/models/schemas/retention_policy_assignments.js +1 -1
- package/dist/cjs/models/schemas/search.js +1 -1
- package/dist/cjs/models/schemas/session_termination.js +1 -1
- package/dist/cjs/models/schemas/shared_links_folders.js +1 -1
- package/dist/cjs/models/schemas/shield_information_barrier_reports.js +1 -1
- package/dist/cjs/models/schemas/shield_information_barrier_segment_members.js +1 -1
- package/dist/cjs/models/schemas/shield_information_barrier_segment_restrictions.js +1 -1
- package/dist/cjs/models/schemas/shield_information_barrier_segments.js +1 -1
- package/dist/cjs/models/schemas/shield_information_barriers.js +1 -1
- package/dist/cjs/models/schemas/shield_lists.js +1 -1
- package/dist/cjs/models/schemas/shuttle.js +3 -0
- package/dist/cjs/models/schemas/sign_requests.js +1 -1
- package/dist/cjs/models/schemas/sign_templates.js +1 -1
- package/dist/cjs/models/schemas/skills.js +1 -1
- package/dist/cjs/models/schemas/storage_policies.js +1 -1
- package/dist/cjs/models/schemas/storage_policy_assignments.js +1 -1
- package/dist/cjs/models/schemas/task_assignments.js +1 -1
- package/dist/cjs/models/schemas/tasks.js +1 -1
- package/dist/cjs/models/schemas/terms_of_service_user_statuses.js +1 -1
- package/dist/cjs/models/schemas/terms_of_services.js +1 -1
- package/dist/cjs/models/schemas/transfer.js +1 -1
- package/dist/cjs/models/schemas/trashed_files.js +1 -1
- package/dist/cjs/models/schemas/trashed_folders.js +1 -1
- package/dist/cjs/models/schemas/trashed_items.js +1 -1
- package/dist/cjs/models/schemas/trashed_web_links.js +1 -1
- package/dist/cjs/models/schemas/uploads.js +1 -1
- package/dist/cjs/models/schemas/user_collaborations.js +1 -1
- package/dist/cjs/models/schemas/users.js +1 -1
- package/dist/cjs/models/schemas/web_links.js +1 -1
- package/dist/cjs/models/schemas/webhooks.js +1 -1
- package/dist/cjs/models/schemas/workflows.js +1 -1
- package/dist/cjs/models/schemas/zip_downloads.js +1 -1
- package/dist/cjs/models/schemas.js +3 -1
- package/dist/cjs/runtime.js +3 -0
- package/dist/esm/buildinfo.js +2 -2
- package/dist/esm/client.js +10 -3
- package/dist/esm/errors.js +46 -0
- package/dist/esm/managers/chunked_uploads.js +13 -0
- package/dist/esm/managers/document_split.js +63 -0
- package/dist/esm/managers/index.js +2 -0
- package/dist/esm/managers/shuttle.js +642 -0
- package/dist/esm/models/schemas/ai.js +1 -1
- package/dist/esm/models/schemas/ai_studio.js +1 -1
- package/dist/esm/models/schemas/app_item_associations.js +1 -1
- package/dist/esm/models/schemas/archives.js +1 -1
- package/dist/esm/models/schemas/authorization.js +1 -1
- package/dist/esm/models/schemas/automate_workflows.js +1 -1
- package/dist/esm/models/schemas/avatars.js +1 -1
- package/dist/esm/models/schemas/chunked_uploads.js +1 -1
- package/dist/esm/models/schemas/classifications.js +1 -1
- package/dist/esm/models/schemas/collaboration_allowlist_entries.js +1 -1
- package/dist/esm/models/schemas/collaboration_allowlist_exempt_targets.js +1 -1
- package/dist/esm/models/schemas/collections.js +1 -1
- package/dist/esm/models/schemas/comments.js +1 -1
- package/dist/esm/models/schemas/device_pinners.js +1 -1
- package/dist/esm/models/schemas/docgen.js +1 -1
- package/dist/esm/models/schemas/docgen_template.js +1 -1
- package/dist/esm/models/schemas/document_split.js +2 -0
- package/dist/esm/models/schemas/email_aliases.js +1 -1
- package/dist/esm/models/schemas/enterprise_configurations.js +1 -1
- package/dist/esm/models/schemas/events.js +1 -1
- package/dist/esm/models/schemas/external_users.js +1 -1
- package/dist/esm/models/schemas/file_requests.js +1 -1
- package/dist/esm/models/schemas/file_version_legal_holds.js +1 -1
- package/dist/esm/models/schemas/file_version_retentions.js +1 -1
- package/dist/esm/models/schemas/file_versions.js +1 -1
- package/dist/esm/models/schemas/files.js +1 -1
- package/dist/esm/models/schemas/folder_locks.js +1 -1
- package/dist/esm/models/schemas/folders.js +1 -1
- package/dist/esm/models/schemas/groups.js +1 -1
- package/dist/esm/models/schemas/hub_collaborations.js +1 -1
- package/dist/esm/models/schemas/hub_document.js +1 -1
- package/dist/esm/models/schemas/hub_items.js +1 -1
- package/dist/esm/models/schemas/hubs.js +1 -1
- package/dist/esm/models/schemas/integration_mappings.js +1 -1
- package/dist/esm/models/schemas/invites.js +1 -1
- package/dist/esm/models/schemas/legal_hold_policies.js +1 -1
- package/dist/esm/models/schemas/legal_hold_policy_assignments.js +1 -1
- package/dist/esm/models/schemas/list_collaborations.js +1 -1
- package/dist/esm/models/schemas/memberships.js +1 -1
- package/dist/esm/models/schemas/metadata_cascade_policies.js +1 -1
- package/dist/esm/models/schemas/metadata_taxonomies.js +1 -1
- package/dist/esm/models/schemas/metadata_templates.js +1 -1
- package/dist/esm/models/schemas/notes.js +1 -1
- package/dist/esm/models/schemas/query.js +1 -1
- package/dist/esm/models/schemas/recent_items.js +1 -1
- package/dist/esm/models/schemas/retention_policies.js +1 -1
- package/dist/esm/models/schemas/retention_policy_assignments.js +1 -1
- package/dist/esm/models/schemas/search.js +1 -1
- package/dist/esm/models/schemas/session_termination.js +1 -1
- package/dist/esm/models/schemas/shared_links_folders.js +1 -1
- package/dist/esm/models/schemas/shield_information_barrier_reports.js +1 -1
- package/dist/esm/models/schemas/shield_information_barrier_segment_members.js +1 -1
- package/dist/esm/models/schemas/shield_information_barrier_segment_restrictions.js +1 -1
- package/dist/esm/models/schemas/shield_information_barrier_segments.js +1 -1
- package/dist/esm/models/schemas/shield_information_barriers.js +1 -1
- package/dist/esm/models/schemas/shield_lists.js +1 -1
- package/dist/esm/models/schemas/shuttle.js +2 -0
- package/dist/esm/models/schemas/sign_requests.js +1 -1
- package/dist/esm/models/schemas/sign_templates.js +1 -1
- package/dist/esm/models/schemas/skills.js +1 -1
- package/dist/esm/models/schemas/storage_policies.js +1 -1
- package/dist/esm/models/schemas/storage_policy_assignments.js +1 -1
- package/dist/esm/models/schemas/task_assignments.js +1 -1
- package/dist/esm/models/schemas/tasks.js +1 -1
- package/dist/esm/models/schemas/terms_of_service_user_statuses.js +1 -1
- package/dist/esm/models/schemas/terms_of_services.js +1 -1
- package/dist/esm/models/schemas/transfer.js +1 -1
- package/dist/esm/models/schemas/trashed_files.js +1 -1
- package/dist/esm/models/schemas/trashed_folders.js +1 -1
- package/dist/esm/models/schemas/trashed_items.js +1 -1
- package/dist/esm/models/schemas/trashed_web_links.js +1 -1
- package/dist/esm/models/schemas/uploads.js +1 -1
- package/dist/esm/models/schemas/user_collaborations.js +1 -1
- package/dist/esm/models/schemas/users.js +1 -1
- package/dist/esm/models/schemas/web_links.js +1 -1
- package/dist/esm/models/schemas/webhooks.js +1 -1
- package/dist/esm/models/schemas/workflows.js +1 -1
- package/dist/esm/models/schemas/zip_downloads.js +1 -1
- package/dist/esm/models/schemas.js +3 -1
- package/dist/esm/runtime.js +4 -1
- package/dist/types/buildinfo.d.ts +1 -1
- package/dist/types/client.d.ts +8 -3
- package/dist/types/errors.d.ts +21 -0
- package/dist/types/managers/chunked_uploads.d.ts +1 -0
- package/dist/types/managers/document_split.d.ts +17 -0
- package/dist/types/managers/index.d.ts +2 -0
- package/dist/types/managers/retention_policies.d.ts +1 -1
- package/dist/types/managers/shuttle.d.ts +119 -0
- package/dist/types/models/schemas/archives.d.ts +2 -2
- package/dist/types/models/schemas/automate_workflows.d.ts +2 -2
- package/dist/types/models/schemas/chunked_uploads.d.ts +21 -0
- package/dist/types/models/schemas/docgen.d.ts +2 -0
- package/dist/types/models/schemas/document_split.d.ts +92 -0
- package/dist/types/models/schemas/events.d.ts +51 -3
- package/dist/types/models/schemas/groups.d.ts +2 -2
- package/dist/types/models/schemas/notes.d.ts +1 -1
- package/dist/types/models/schemas/retention_policies.d.ts +3 -3
- package/dist/types/models/schemas/shared_links_folders.d.ts +2 -1
- package/dist/types/models/schemas/shield_information_barrier_reports.d.ts +2 -2
- package/dist/types/models/schemas/shuttle.d.ts +436 -0
- package/dist/types/models/schemas/skills.d.ts +2 -2
- package/dist/types/models/schemas/web_links.d.ts +2 -1
- package/dist/types/models/schemas/workflows.d.ts +2 -2
- package/dist/types/models/schemas.d.ts +51 -61
- package/docs/README.md +3 -1
- package/docs/errors.md +5 -4
- package/docs/managers/chunked_uploads.md +18 -0
- package/docs/managers/document_split.md +56 -0
- package/docs/managers/retention_policies.md +1 -1
- package/docs/managers/shuttle.md +687 -0
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ export * from './schemas/comments.js';
|
|
|
22
22
|
export * from './schemas/device_pinners.js';
|
|
23
23
|
export * from './schemas/docgen.js';
|
|
24
24
|
export * from './schemas/docgen_template.js';
|
|
25
|
+
export * from './schemas/document_split.js';
|
|
25
26
|
export * from './schemas/email_aliases.js';
|
|
26
27
|
export * from './schemas/enterprise_configurations.js';
|
|
27
28
|
export * from './schemas/events.js';
|
|
@@ -61,6 +62,7 @@ export * from './schemas/shield_information_barrier_segment_restrictions.js';
|
|
|
61
62
|
export * from './schemas/shield_information_barrier_segments.js';
|
|
62
63
|
export * from './schemas/shield_information_barriers.js';
|
|
63
64
|
export * from './schemas/shield_lists.js';
|
|
65
|
+
export * from './schemas/shuttle.js';
|
|
64
66
|
export * from './schemas/sign_requests.js';
|
|
65
67
|
export * from './schemas/sign_templates.js';
|
|
66
68
|
export * from './schemas/skills.js';
|
|
@@ -206,11 +208,11 @@ export type CollaborationAccessGrantee = (UserCollaborations & {
|
|
|
206
208
|
type: string;
|
|
207
209
|
[key: string]: unknown;
|
|
208
210
|
};
|
|
209
|
-
export type CollaborationItem = (
|
|
211
|
+
export type CollaborationItem = (FileMini & {
|
|
210
212
|
type: "file";
|
|
211
|
-
}) | (
|
|
213
|
+
}) | (FolderMini & {
|
|
212
214
|
type: "folder";
|
|
213
|
-
}) | (
|
|
215
|
+
}) | (WebLinkMini & {
|
|
214
216
|
type: "web_link";
|
|
215
217
|
}) | {
|
|
216
218
|
type: string;
|
|
@@ -220,7 +222,7 @@ export interface Collection {
|
|
|
220
222
|
id?: string;
|
|
221
223
|
type?: CollectionType;
|
|
222
224
|
name?: CollectionName;
|
|
223
|
-
collection_type?:
|
|
225
|
+
collection_type?: CollectionCollectionType;
|
|
224
226
|
}
|
|
225
227
|
export interface Comment {
|
|
226
228
|
id?: string;
|
|
@@ -245,30 +247,6 @@ export interface ConflictError {
|
|
|
245
247
|
help_url?: string;
|
|
246
248
|
request_id?: string;
|
|
247
249
|
}
|
|
248
|
-
export interface File {
|
|
249
|
-
id: string;
|
|
250
|
-
etag?: string | null;
|
|
251
|
-
type: AiCitationType;
|
|
252
|
-
sequence_id?: string;
|
|
253
|
-
name?: string;
|
|
254
|
-
sha1?: string;
|
|
255
|
-
file_version?: FileVersionMini;
|
|
256
|
-
description?: string;
|
|
257
|
-
size?: number;
|
|
258
|
-
path_collection?: FilePathCollection;
|
|
259
|
-
created_at?: string;
|
|
260
|
-
modified_at?: string;
|
|
261
|
-
trashed_at?: string | null;
|
|
262
|
-
purged_at?: string | null;
|
|
263
|
-
content_created_at?: string | null;
|
|
264
|
-
content_modified_at?: string | null;
|
|
265
|
-
created_by?: UserMini;
|
|
266
|
-
modified_by?: UserMini;
|
|
267
|
-
owned_by?: UserMini;
|
|
268
|
-
shared_link?: FileSharedLink | null;
|
|
269
|
-
parent?: FolderMini | null;
|
|
270
|
-
item_status?: FileItemStatus;
|
|
271
|
-
}
|
|
272
250
|
export interface FileBase {
|
|
273
251
|
id: string;
|
|
274
252
|
etag?: string | null;
|
|
@@ -355,30 +333,6 @@ export interface FileVersionMini {
|
|
|
355
333
|
type: FileVersionType;
|
|
356
334
|
sha1?: string;
|
|
357
335
|
}
|
|
358
|
-
export interface Folder {
|
|
359
|
-
id: string;
|
|
360
|
-
etag?: string | null;
|
|
361
|
-
type: FolderType;
|
|
362
|
-
sequence_id?: string;
|
|
363
|
-
name?: string;
|
|
364
|
-
created_at?: string | null;
|
|
365
|
-
modified_at?: string | null;
|
|
366
|
-
description?: string;
|
|
367
|
-
size?: number;
|
|
368
|
-
path_collection?: FilePathCollection;
|
|
369
|
-
created_by?: UserMini;
|
|
370
|
-
modified_by?: UserMini;
|
|
371
|
-
trashed_at?: string | null;
|
|
372
|
-
purged_at?: string | null;
|
|
373
|
-
content_created_at?: string | null;
|
|
374
|
-
content_modified_at?: string | null;
|
|
375
|
-
owned_by?: UserMini;
|
|
376
|
-
shared_link?: FileSharedLink | null;
|
|
377
|
-
folder_upload_email?: FolderUploadEmail | null;
|
|
378
|
-
parent?: FolderMini | null;
|
|
379
|
-
item_status?: FileItemStatus;
|
|
380
|
-
item_collection?: Items;
|
|
381
|
-
}
|
|
382
336
|
export interface FolderFull {
|
|
383
337
|
id: string;
|
|
384
338
|
etag?: string | null;
|
|
@@ -434,7 +388,7 @@ export interface Group {
|
|
|
434
388
|
id: string;
|
|
435
389
|
type: GroupType;
|
|
436
390
|
name?: string;
|
|
437
|
-
group_type?:
|
|
391
|
+
group_type?: GroupGroupType;
|
|
438
392
|
created_at?: string;
|
|
439
393
|
modified_at?: string;
|
|
440
394
|
}
|
|
@@ -442,7 +396,7 @@ export interface GroupMini {
|
|
|
442
396
|
id: string;
|
|
443
397
|
type: GroupType;
|
|
444
398
|
name?: string;
|
|
445
|
-
group_type?:
|
|
399
|
+
group_type?: GroupGroupType;
|
|
446
400
|
}
|
|
447
401
|
export interface IntegrationMappingBase {
|
|
448
402
|
id: string;
|
|
@@ -528,7 +482,7 @@ export type Resource = (FolderMini & {
|
|
|
528
482
|
[key: string]: unknown;
|
|
529
483
|
};
|
|
530
484
|
export interface ResourceScope {
|
|
531
|
-
scope?:
|
|
485
|
+
scope?: ResourceScopeScope;
|
|
532
486
|
object?: Resource;
|
|
533
487
|
}
|
|
534
488
|
export interface RetentionPolicyBase {
|
|
@@ -544,6 +498,27 @@ export interface RetentionPolicyMini {
|
|
|
544
498
|
max_extension_length?: RetentionPolicyMaxExtensionLengthResponse;
|
|
545
499
|
}
|
|
546
500
|
export type RetentionPolicyMaxExtensionLengthResponse = unknown;
|
|
501
|
+
export interface SharedLinkOtpAllowlistEntry {
|
|
502
|
+
type: SharedLinkOtpAllowlistEntryType;
|
|
503
|
+
value: string;
|
|
504
|
+
created_at: string;
|
|
505
|
+
created_by: UserBase;
|
|
506
|
+
}
|
|
507
|
+
export interface SharedLinkOtpAllowlistEntryWritable {
|
|
508
|
+
type: SharedLinkOtpAllowlistEntryType;
|
|
509
|
+
value: string;
|
|
510
|
+
}
|
|
511
|
+
export type SharedLinkOtpWritable = unknown;
|
|
512
|
+
export interface SharedLinkOtpWritableAllowlist {
|
|
513
|
+
mode: SharedLinkOtpWritableAllowlistMode;
|
|
514
|
+
allowlist: Array<SharedLinkOtpAllowlistEntryWritable>;
|
|
515
|
+
}
|
|
516
|
+
export interface SharedLinkOtpWritableNone {
|
|
517
|
+
mode: RetentionPolicyMaxExtensionLengthRequestVariant0;
|
|
518
|
+
}
|
|
519
|
+
export interface SharedLinkOtpWritableOpen {
|
|
520
|
+
mode: SharedLinkOtpWritableOpenMode;
|
|
521
|
+
}
|
|
547
522
|
export interface ShieldInformationBarrierBase {
|
|
548
523
|
id?: string;
|
|
549
524
|
type?: ShieldInformationBarrierType;
|
|
@@ -620,6 +595,9 @@ export type SignRequestSignerInputValidation = unknown;
|
|
|
620
595
|
export interface SignRequestSignerInputZIP4Validation {
|
|
621
596
|
validation_type: SignRequestSignerInputZIP4ValidationType;
|
|
622
597
|
}
|
|
598
|
+
export interface SignRequestSignerInputZIPJPValidation {
|
|
599
|
+
validation_type: SignRequestSignerInputZIPJPValidationType;
|
|
600
|
+
}
|
|
623
601
|
export interface SignRequestSignerInputZIPValidation {
|
|
624
602
|
validation_type: SignRequestSignerInputZIPValidationType;
|
|
625
603
|
}
|
|
@@ -666,7 +644,7 @@ export interface UserMini {
|
|
|
666
644
|
login?: string;
|
|
667
645
|
}
|
|
668
646
|
export interface Watermark {
|
|
669
|
-
watermark?:
|
|
647
|
+
watermark?: WatermarkWatermark;
|
|
670
648
|
}
|
|
671
649
|
export interface WebLink {
|
|
672
650
|
id: string;
|
|
@@ -729,7 +707,7 @@ export type AiLlmEndpointParamsOpenAiType = "openai_params" | (string & {});
|
|
|
729
707
|
export type AppItemType = "app_item" | (string & {});
|
|
730
708
|
export type ClassificationTemplate2 = "securityClassification-6VMVochwUWo" | (string & {});
|
|
731
709
|
export type ClientErrorType = "error" | (string & {});
|
|
732
|
-
export type ClientErrorCode = "created" | "accepted" | "no_content" | "redirect" | "not_modified" | "bad_request" | "unauthorized" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "precondition_failed" | "too_many_requests" | "internal_server_error" | "unavailable" | "item_name_invalid" | "insufficient_scope" | (string & {});
|
|
710
|
+
export type ClientErrorCode = "created" | "accepted" | "no_content" | "redirect" | "not_modified" | "bad_request" | "unauthorized" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "precondition_failed" | "unprocessable_entity" | "too_many_requests" | "internal_server_error" | "unavailable" | "item_name_invalid" | "insufficient_scope" | (string & {});
|
|
733
711
|
export type CollaborationType = "collaboration" | (string & {});
|
|
734
712
|
export type CollaborationRole = "editor" | "viewer" | "previewer" | "uploader" | "previewer uploader" | "viewer uploader" | "co-owner" | "owner" | (string & {});
|
|
735
713
|
export type CollaborationStatus = "accepted" | "pending" | "rejected" | (string & {});
|
|
@@ -763,7 +741,7 @@ export interface CollaboratorVariableValue {
|
|
|
763
741
|
}
|
|
764
742
|
export type CollectionType = "collection" | (string & {});
|
|
765
743
|
export type CollectionName = "Favorites" | (string & {});
|
|
766
|
-
export type
|
|
744
|
+
export type CollectionCollectionType = "favorites" | (string & {});
|
|
767
745
|
export type OrderDirection = "ASC" | "DESC" | (string & {});
|
|
768
746
|
export interface CollectionsOrder {
|
|
769
747
|
by?: string;
|
|
@@ -792,6 +770,10 @@ export interface SharedLinkPermissions {
|
|
|
792
770
|
notes_shared_link_option?: string | null;
|
|
793
771
|
default_notes_shared_link_type?: string | null;
|
|
794
772
|
}
|
|
773
|
+
export interface SharedLinkOneTimePasscode {
|
|
774
|
+
mode: string;
|
|
775
|
+
allowlist?: Array<SharedLinkOtpAllowlistEntry>;
|
|
776
|
+
}
|
|
795
777
|
export interface FileSharedLink {
|
|
796
778
|
url: string;
|
|
797
779
|
download_url?: string | null;
|
|
@@ -805,6 +787,7 @@ export interface FileSharedLink {
|
|
|
805
787
|
permissions?: SharedLinkPermissions;
|
|
806
788
|
download_count: number;
|
|
807
789
|
preview_count: number;
|
|
790
|
+
one_time_passcode: SharedLinkOneTimePasscode;
|
|
808
791
|
}
|
|
809
792
|
export type FileItemStatus = "active" | "trashed" | "deleted" | (string & {});
|
|
810
793
|
export interface FileFullPermissions {
|
|
@@ -896,7 +879,7 @@ export interface FolderFullPermissions {
|
|
|
896
879
|
can_apply_watermark?: boolean;
|
|
897
880
|
}
|
|
898
881
|
export type GroupType = "group" | (string & {});
|
|
899
|
-
export type
|
|
882
|
+
export type GroupGroupType = "managed_group" | "all_users_group" | (string & {});
|
|
900
883
|
export type LegalHoldPolicyType = "legal_hold_policy" | (string & {});
|
|
901
884
|
export type LegalHoldPolicyAssignedItemType = "file" | "file_version" | "folder" | "user" | "ownership" | "interactions" | (string & {});
|
|
902
885
|
export type LegalHoldPolicyAssignmentType = "legal_hold_policy_assignment" | (string & {});
|
|
@@ -904,10 +887,13 @@ export interface MetadataCascadePolicyParent {
|
|
|
904
887
|
type?: FolderType;
|
|
905
888
|
id?: string;
|
|
906
889
|
}
|
|
907
|
-
export type
|
|
890
|
+
export type ResourceScopeScope = "annotation_edit" | "annotation_view_all" | "annotation_view_self" | "base_explorer" | "base_picker" | "base_preview" | "base_upload" | "item_delete" | "item_download" | "item_preview" | "item_rename" | "item_share" | "item_upload" | "item_read" | (string & {});
|
|
908
891
|
export type RetentionPolicyType = "retention_policy" | (string & {});
|
|
909
892
|
export type RetentionPolicyDispositionAction = "permanently_delete" | "remove_retention" | (string & {});
|
|
910
893
|
export type RetentionPolicyMaxExtensionLengthRequestVariant0 = "none" | (string & {});
|
|
894
|
+
export type SharedLinkOtpAllowlistEntryType = "email" | "domain" | (string & {});
|
|
895
|
+
export type SharedLinkOtpWritableAllowlistMode = "allowlist" | (string & {});
|
|
896
|
+
export type SharedLinkOtpWritableOpenMode = "open" | (string & {});
|
|
911
897
|
export type ShieldInformationBarrierType = "shield_information_barrier" | (string & {});
|
|
912
898
|
export type ShieldInformationBarrierSegmentType = "shield_information_barrier_segment" | (string & {});
|
|
913
899
|
export interface ShieldInformationBarrierSegmentMemberShieldInformationBarrierSegment {
|
|
@@ -926,6 +912,7 @@ export type SignRequestSignerInputNumberWithCommaValidationType = "number_with_c
|
|
|
926
912
|
export type SignRequestSignerInputNumberWithPeriodValidationType = "number_with_period" | (string & {});
|
|
927
913
|
export type SignRequestSignerInputSSNValidationType = "ssn" | (string & {});
|
|
928
914
|
export type SignRequestSignerInputZIP4ValidationType = "zip_4" | (string & {});
|
|
915
|
+
export type SignRequestSignerInputZIPJPValidationType = "zip_jp" | (string & {});
|
|
929
916
|
export type SignRequestSignerInputZIPValidationType = "zip" | (string & {});
|
|
930
917
|
export type StoragePolicyType = "storage_policy" | (string & {});
|
|
931
918
|
export type TaskType = "task" | (string & {});
|
|
@@ -949,7 +936,7 @@ export interface UserNotificationEmail {
|
|
|
949
936
|
email?: string;
|
|
950
937
|
is_confirmed?: boolean;
|
|
951
938
|
}
|
|
952
|
-
export interface
|
|
939
|
+
export interface WatermarkWatermark {
|
|
953
940
|
created_at?: string;
|
|
954
941
|
modified_at?: string;
|
|
955
942
|
}
|
|
@@ -966,6 +953,7 @@ export interface PutIdSharedLink {
|
|
|
966
953
|
vanity_name?: string;
|
|
967
954
|
unshared_at?: string;
|
|
968
955
|
permissions?: UpdateFileRequestSharedLinkPermissions;
|
|
956
|
+
one_time_passcode?: SharedLinkOtpWritable;
|
|
969
957
|
}
|
|
970
958
|
export interface PostFileIdParent {
|
|
971
959
|
id?: string;
|
|
@@ -1014,6 +1002,7 @@ export interface PutFileIdAddSharedLink {
|
|
|
1014
1002
|
vanity_name?: string;
|
|
1015
1003
|
unshared_at?: string;
|
|
1016
1004
|
permissions?: UpdateFileAddSharedLinkRequestSharedLinkPermissions;
|
|
1005
|
+
one_time_passcode?: SharedLinkOtpWritable;
|
|
1017
1006
|
}
|
|
1018
1007
|
export interface UpdateFileAddSharedLinkRequest {
|
|
1019
1008
|
shared_link?: PutFileIdAddSharedLink;
|
|
@@ -1032,6 +1021,7 @@ export interface DocGenBatchBase {
|
|
|
1032
1021
|
export interface DocGenJob {
|
|
1033
1022
|
id: string;
|
|
1034
1023
|
type: DocGenJobType;
|
|
1024
|
+
external_id?: string;
|
|
1035
1025
|
batch: DocGenBatchBase;
|
|
1036
1026
|
template_file: FileReference;
|
|
1037
1027
|
template_file_version: FileVersionBase;
|
package/docs/README.md
CHANGED
|
@@ -21,7 +21,7 @@ One resource manager per Box API tag, reached through the single
|
|
|
21
21
|
| [AuthorizationManager](managers/authorization.md) | 4 |
|
|
22
22
|
| [AutomateWorkflowsManager](managers/automate_workflows.md) | 2 |
|
|
23
23
|
| [AvatarsManager](managers/avatars.md) | 3 |
|
|
24
|
-
| [ChunkedUploadsManager](managers/chunked_uploads.md) |
|
|
24
|
+
| [ChunkedUploadsManager](managers/chunked_uploads.md) | 8 |
|
|
25
25
|
| [ClassificationsManager](managers/classifications.md) | 4 |
|
|
26
26
|
| [CollaborationAllowlistEntriesManager](managers/collaboration_allowlist_entries.md) | 4 |
|
|
27
27
|
| [CollaborationAllowlistExemptTargetsManager](managers/collaboration_allowlist_exempt_targets.md) | 4 |
|
|
@@ -30,6 +30,7 @@ One resource manager per Box API tag, reached through the single
|
|
|
30
30
|
| [DevicePinnersManager](managers/device_pinners.md) | 3 |
|
|
31
31
|
| [DocgenManager](managers/docgen.md) | 4 |
|
|
32
32
|
| [DocgenTemplateManager](managers/docgen_template.md) | 6 |
|
|
33
|
+
| [DocumentSplitManager](managers/document_split.md) | 3 |
|
|
33
34
|
| [DownloadsManager](managers/downloads.md) | 1 |
|
|
34
35
|
| [EmailAliasesManager](managers/email_aliases.md) | 3 |
|
|
35
36
|
| [EnterpriseConfigurationsManager](managers/enterprise_configurations.md) | 1 |
|
|
@@ -79,6 +80,7 @@ One resource manager per Box API tag, reached through the single
|
|
|
79
80
|
| [ShieldInformationBarrierSegmentsManager](managers/shield_information_barrier_segments.md) | 5 |
|
|
80
81
|
| [ShieldInformationBarriersManager](managers/shield_information_barriers.md) | 4 |
|
|
81
82
|
| [ShieldListsManager](managers/shield_lists.md) | 5 |
|
|
83
|
+
| [ShuttleManager](managers/shuttle.md) | 39 |
|
|
82
84
|
| [SignRequestsManager](managers/sign_requests.md) | 5 |
|
|
83
85
|
| [SignTemplatesManager](managers/sign_templates.md) | 2 |
|
|
84
86
|
| [SkillsManager](managers/skills.md) | 5 |
|
package/docs/errors.md
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
Methods are `async` and surface failure by throwing — the return type only
|
|
5
5
|
describes the success value. A thrown `BoxApiError` is either a transport
|
|
6
6
|
failure or a non-2xx response after the network layer's retries (exponential
|
|
7
|
-
backoff + jitter, `401` refresh, `Retry-After`).
|
|
8
|
-
|
|
9
|
-
transport
|
|
7
|
+
backoff + jitter, `401` refresh, `Retry-After`). For a non-2xx response it
|
|
8
|
+
carries the HTTP `status`, Box's error `code`, `boxMessage`, and `requestId`,
|
|
9
|
+
and the raw `body`; transport and decode failures carry the underlying
|
|
10
|
+
`cause` instead:
|
|
10
11
|
|
|
11
12
|
```ts
|
|
12
13
|
import { runtime } from '@unofficialbox/box-open-sdk';
|
|
@@ -14,7 +15,7 @@ try {
|
|
|
14
15
|
await client.files.getFileById(fileId);
|
|
15
16
|
} catch (err) {
|
|
16
17
|
if (err instanceof runtime.BoxApiError) {
|
|
17
|
-
// err.status
|
|
18
|
+
// err.status, err.code, err.boxMessage, err.requestId, err.body, err.cause
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
```
|
|
@@ -109,6 +109,24 @@ for await (const item of client.chunkedUploads.listFileUploadSessionParts("UPLOA
|
|
|
109
109
|
|
|
110
110
|
Paginated — `listFileUploadSessionParts(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
111
111
|
|
|
112
|
+
## createFileUploadSessionPlan
|
|
113
|
+
|
|
114
|
+
`POST /files/upload_sessions/{upload_session_id}/plan`
|
|
115
|
+
|
|
116
|
+
| Parameter | In | Type | Required |
|
|
117
|
+
|---|---|---|---|
|
|
118
|
+
| `upload_session_id` | path | `string` | yes |
|
|
119
|
+
|
|
120
|
+
**Request body** (`application/json`): `UploadSessionPlanRequest`
|
|
121
|
+
|
|
122
|
+
**Returns:** `UploadSessionPlanResponse`
|
|
123
|
+
|
|
124
|
+
**Example**
|
|
125
|
+
|
|
126
|
+
```ts
|
|
127
|
+
const result = await client.chunkedUploads.createFileUploadSessionPlan("UPLOAD_SESSION_ID", { /* … */ });
|
|
128
|
+
```
|
|
129
|
+
|
|
112
130
|
## commitFileUploadSession
|
|
113
131
|
|
|
114
132
|
`POST /files/upload_sessions/{upload_session_id}/commit`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!-- Generated by box-gantry. DO NOT EDIT. -->
|
|
2
|
+
# DocumentSplitManager
|
|
3
|
+
|
|
4
|
+
Reach these methods through the `documentSplit` field on `Client`.
|
|
5
|
+
|
|
6
|
+
## listDocumentSplits
|
|
7
|
+
|
|
8
|
+
`GET /document_splits`
|
|
9
|
+
|
|
10
|
+
| Parameter | In | Type | Required |
|
|
11
|
+
|---|---|---|---|
|
|
12
|
+
| `marker` | query | `string` | no |
|
|
13
|
+
| `limit` | query | `number` | no |
|
|
14
|
+
|
|
15
|
+
**Returns:** `DocumentSplits`
|
|
16
|
+
|
|
17
|
+
**Example**
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
for await (const item of client.documentSplit.listDocumentSplits()) {
|
|
21
|
+
// use item
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Paginated — `listDocumentSplits(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
26
|
+
|
|
27
|
+
## createDocumentSplits
|
|
28
|
+
|
|
29
|
+
`POST /document_splits`
|
|
30
|
+
|
|
31
|
+
**Request body** (`application/json`): `DocumentSplitCreateRequest`
|
|
32
|
+
|
|
33
|
+
**Returns:** `DocumentSplitCreateResponse`
|
|
34
|
+
|
|
35
|
+
**Example**
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
const result = await client.documentSplit.createDocumentSplits({ /* … */ });
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## getDocumentSplit
|
|
42
|
+
|
|
43
|
+
`GET /document_splits/{document_split_id}`
|
|
44
|
+
|
|
45
|
+
| Parameter | In | Type | Required |
|
|
46
|
+
|---|---|---|---|
|
|
47
|
+
| `document_split_id` | path | `string` | yes |
|
|
48
|
+
|
|
49
|
+
**Returns:** `DocumentSplit`
|
|
50
|
+
|
|
51
|
+
**Example**
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
const result = await client.documentSplit.getDocumentSplit("DOCUMENT_SPLIT_ID");
|
|
55
|
+
```
|
|
56
|
+
|
|
@@ -10,7 +10,7 @@ Reach these methods through the `retentionPolicies` field on `Client`.
|
|
|
10
10
|
| Parameter | In | Type | Required |
|
|
11
11
|
|---|---|---|---|
|
|
12
12
|
| `policy_name` | query | `string` | no |
|
|
13
|
-
| `policy_type` | query | `
|
|
13
|
+
| `policy_type` | query | `RetentionPolicyPolicyType` | no |
|
|
14
14
|
| `created_by_user_id` | query | `string` | no |
|
|
15
15
|
| `fields` | query | `Array<string>` | no |
|
|
16
16
|
| `limit` | query | `number` | no |
|