@unofficialbox/box-open-sdk 0.4.3 → 0.5.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/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/esm/buildinfo.js +2 -2
- package/dist/esm/client.js +10 -3
- 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/types/buildinfo.d.ts +1 -1
- package/dist/types/client.d.ts +8 -3
- 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/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
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import type { UserBase } from '../schemas.js';
|
|
2
|
+
export interface ShuttleAgentCredentials {
|
|
3
|
+
registration_token: string;
|
|
4
|
+
expires_at: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ShuttleDiscoveredSubject {
|
|
7
|
+
id: string;
|
|
8
|
+
type: ShuttleDiscoveredSubjectType;
|
|
9
|
+
job_id: string;
|
|
10
|
+
revision: number;
|
|
11
|
+
source: ShuttleSubject;
|
|
12
|
+
suggested_target?: ShuttleTargetSubject | null;
|
|
13
|
+
}
|
|
14
|
+
export interface ShuttleDiscoveredSubjects {
|
|
15
|
+
entries: Array<ShuttleDiscoveredSubject>;
|
|
16
|
+
limit?: number;
|
|
17
|
+
next_marker?: string | null;
|
|
18
|
+
prev_marker?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface ShuttleJob {
|
|
21
|
+
id: string;
|
|
22
|
+
type: ShuttleJobType;
|
|
23
|
+
name: string;
|
|
24
|
+
comment?: string | null;
|
|
25
|
+
job_type: ShuttleJobJobType;
|
|
26
|
+
state: string;
|
|
27
|
+
mapping_state: string;
|
|
28
|
+
source_system: ShuttleJobSourceSystem;
|
|
29
|
+
account_mapping?: ShuttleJobAccountMapping;
|
|
30
|
+
tags?: Array<string>;
|
|
31
|
+
settings?: ShuttleJobSettings;
|
|
32
|
+
}
|
|
33
|
+
export interface ShuttleJobCreateRequest {
|
|
34
|
+
name: string;
|
|
35
|
+
job_type: ShuttleJobJobType;
|
|
36
|
+
source_system_id: string;
|
|
37
|
+
comment?: string;
|
|
38
|
+
tags?: Array<string>;
|
|
39
|
+
account_mapping?: ShuttleJobCreateRequestAccountMapping;
|
|
40
|
+
settings?: ShuttleJobSettings;
|
|
41
|
+
}
|
|
42
|
+
export type ShuttleJobPermissionConflictStrategy = "preserve_structure_restrict_sharing" | "preserve_structure_expand_sharing" | "preserve_sharing_modify_structure" | "warn_permissions_conflicts" | (string & {});
|
|
43
|
+
export interface ShuttleJobs {
|
|
44
|
+
entries: Array<ShuttleJob>;
|
|
45
|
+
limit?: number;
|
|
46
|
+
next_marker?: string | null;
|
|
47
|
+
prev_marker?: string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface ShuttleJobSchedule {
|
|
50
|
+
id: string;
|
|
51
|
+
type: ShuttleJobScheduleType;
|
|
52
|
+
job_id: string;
|
|
53
|
+
state: ShuttleJobScheduleState;
|
|
54
|
+
run_mode: ShuttleJobScheduleRunMode;
|
|
55
|
+
description?: string | null;
|
|
56
|
+
last_attempt_at?: string | null;
|
|
57
|
+
trigger: ShuttleJobScheduleTrigger;
|
|
58
|
+
}
|
|
59
|
+
export interface ShuttleJobScheduleCreateRequest {
|
|
60
|
+
job_id: string;
|
|
61
|
+
run_mode: ShuttleJobScheduleRunMode;
|
|
62
|
+
state?: ShuttleJobScheduleState;
|
|
63
|
+
description?: string | null;
|
|
64
|
+
trigger: ShuttleJobScheduleTrigger;
|
|
65
|
+
}
|
|
66
|
+
export interface ShuttleJobSchedules {
|
|
67
|
+
entries: Array<ShuttleJobSchedule>;
|
|
68
|
+
limit?: number;
|
|
69
|
+
next_marker?: string | null;
|
|
70
|
+
prev_marker?: string | null;
|
|
71
|
+
}
|
|
72
|
+
export type ShuttleJobScheduleTrigger = (ShuttleJobScheduleTriggerByTime & {
|
|
73
|
+
type: "by_time";
|
|
74
|
+
}) | (ShuttleJobScheduleTriggerByJob & {
|
|
75
|
+
type: "by_job";
|
|
76
|
+
}) | {
|
|
77
|
+
type: string;
|
|
78
|
+
[key: string]: unknown;
|
|
79
|
+
};
|
|
80
|
+
export interface ShuttleJobScheduleTriggerByJob {
|
|
81
|
+
type: ShuttleJobScheduleTriggerByJobType;
|
|
82
|
+
triggered_by_job_id: string;
|
|
83
|
+
last_run_condition: ShuttleJobScheduleTriggerByJobLastRunCondition;
|
|
84
|
+
}
|
|
85
|
+
export interface ShuttleJobScheduleTriggerByTime {
|
|
86
|
+
type: ShuttleJobScheduleTriggerByTimeType;
|
|
87
|
+
start_at: string;
|
|
88
|
+
time_zone: string;
|
|
89
|
+
repeat: ShuttleJobScheduleTriggerByTimeRepeat;
|
|
90
|
+
}
|
|
91
|
+
export interface ShuttleJobScheduleUpdateRequest {
|
|
92
|
+
state?: ShuttleJobScheduleState;
|
|
93
|
+
run_mode?: ShuttleJobScheduleRunMode;
|
|
94
|
+
description?: string | null;
|
|
95
|
+
trigger?: ShuttleJobScheduleTrigger;
|
|
96
|
+
}
|
|
97
|
+
export interface ShuttleJobStartRequest {
|
|
98
|
+
mode?: ShuttleJobStartRequestMode;
|
|
99
|
+
}
|
|
100
|
+
export interface ShuttleJobUpdateRequest {
|
|
101
|
+
name?: string;
|
|
102
|
+
comment?: string | null;
|
|
103
|
+
tags?: Array<string>;
|
|
104
|
+
account_mapping?: ShuttleJobCreateRequestAccountMapping;
|
|
105
|
+
settings?: ShuttleJobSettings;
|
|
106
|
+
}
|
|
107
|
+
export interface ShuttleMappingError {
|
|
108
|
+
id: string;
|
|
109
|
+
type: ShuttleMappingErrorType;
|
|
110
|
+
job_id: string;
|
|
111
|
+
revision: number;
|
|
112
|
+
category: string;
|
|
113
|
+
path: string;
|
|
114
|
+
messages: Array<string>;
|
|
115
|
+
}
|
|
116
|
+
export interface ShuttleMappingErrors {
|
|
117
|
+
entries: Array<ShuttleMappingError>;
|
|
118
|
+
limit?: number;
|
|
119
|
+
next_marker?: string | null;
|
|
120
|
+
prev_marker?: string | null;
|
|
121
|
+
}
|
|
122
|
+
export interface ShuttlePathEntries {
|
|
123
|
+
entries: Array<ShuttlePathEntry>;
|
|
124
|
+
limit?: number;
|
|
125
|
+
next_marker?: string | null;
|
|
126
|
+
prev_marker?: string | null;
|
|
127
|
+
}
|
|
128
|
+
export interface ShuttlePathEntry {
|
|
129
|
+
id: string;
|
|
130
|
+
type: ShuttlePathEntryType;
|
|
131
|
+
name: string;
|
|
132
|
+
path: string;
|
|
133
|
+
path_id?: string | null;
|
|
134
|
+
parent_path?: string | null;
|
|
135
|
+
scope: ShuttlePathEntryScope;
|
|
136
|
+
is_directory: boolean;
|
|
137
|
+
can_map: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface ShuttlePathEntryAccountScope {
|
|
140
|
+
type: ShuttlePathEntryAccountScopeType;
|
|
141
|
+
id?: string | null;
|
|
142
|
+
email?: string | null;
|
|
143
|
+
name?: string | null;
|
|
144
|
+
}
|
|
145
|
+
export type ShuttlePathEntryScope = (ShuttlePathEntryAccountScope & {
|
|
146
|
+
type: "account";
|
|
147
|
+
}) | (ShuttlePathEntrySharedSpaceScope & {
|
|
148
|
+
type: "shared_space";
|
|
149
|
+
}) | {
|
|
150
|
+
type: string;
|
|
151
|
+
[key: string]: unknown;
|
|
152
|
+
};
|
|
153
|
+
export interface ShuttlePathEntrySharedSpaceScope {
|
|
154
|
+
type: ShuttlePathEntrySharedSpaceScopeType;
|
|
155
|
+
space?: string | null;
|
|
156
|
+
}
|
|
157
|
+
export interface ShuttlePathMapping {
|
|
158
|
+
id: string;
|
|
159
|
+
type: ShuttlePathMappingType;
|
|
160
|
+
job_id: string;
|
|
161
|
+
is_path_skipped: boolean;
|
|
162
|
+
source: ShuttlePathMappingLocation;
|
|
163
|
+
target?: ShuttlePathMappingLocation | null;
|
|
164
|
+
}
|
|
165
|
+
export interface ShuttlePathMappingAccount {
|
|
166
|
+
id?: string | null;
|
|
167
|
+
email?: string | null;
|
|
168
|
+
name?: string | null;
|
|
169
|
+
}
|
|
170
|
+
export interface ShuttlePathMappingAccountInput {
|
|
171
|
+
id?: string;
|
|
172
|
+
email?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ShuttlePathMappingAccountLocation {
|
|
175
|
+
type: ShuttlePathEntryAccountScopeType;
|
|
176
|
+
path: string;
|
|
177
|
+
path_id?: string | null;
|
|
178
|
+
account?: ShuttlePathMappingAccount;
|
|
179
|
+
is_directory?: boolean | null;
|
|
180
|
+
}
|
|
181
|
+
export interface ShuttlePathMappingAccountLocationInput {
|
|
182
|
+
type: ShuttlePathEntryAccountScopeType;
|
|
183
|
+
path: string;
|
|
184
|
+
path_id?: string;
|
|
185
|
+
account: ShuttlePathMappingAccountInput;
|
|
186
|
+
is_directory?: boolean;
|
|
187
|
+
}
|
|
188
|
+
export interface ShuttlePathMappingAccountLocationTargetInput {
|
|
189
|
+
type: ShuttlePathEntryAccountScopeType;
|
|
190
|
+
path: string;
|
|
191
|
+
path_id?: string;
|
|
192
|
+
account: ShuttlePathMappingAccountInput;
|
|
193
|
+
}
|
|
194
|
+
export interface ShuttlePathMappingCreateRequest {
|
|
195
|
+
job_id: string;
|
|
196
|
+
is_path_skipped?: boolean;
|
|
197
|
+
source: ShuttlePathMappingLocationInput;
|
|
198
|
+
target?: ShuttlePathMappingTargetLocationInput | null;
|
|
199
|
+
}
|
|
200
|
+
export interface ShuttlePathMappingImportCreateRequest {
|
|
201
|
+
job_id: string;
|
|
202
|
+
file_id: string;
|
|
203
|
+
}
|
|
204
|
+
export type ShuttlePathMappingLocation = (ShuttlePathMappingAccountLocation & {
|
|
205
|
+
type: "account";
|
|
206
|
+
}) | (ShuttlePathMappingSharedSpaceLocation & {
|
|
207
|
+
type: "shared_space";
|
|
208
|
+
}) | {
|
|
209
|
+
type: string;
|
|
210
|
+
[key: string]: unknown;
|
|
211
|
+
};
|
|
212
|
+
export type ShuttlePathMappingLocationInput = (ShuttlePathMappingAccountLocationInput & {
|
|
213
|
+
type: "account";
|
|
214
|
+
}) | (ShuttlePathMappingSharedSpaceLocationInput & {
|
|
215
|
+
type: "shared_space";
|
|
216
|
+
}) | {
|
|
217
|
+
type: string;
|
|
218
|
+
[key: string]: unknown;
|
|
219
|
+
};
|
|
220
|
+
export interface ShuttlePathMappings {
|
|
221
|
+
entries: Array<ShuttlePathMapping>;
|
|
222
|
+
limit?: number;
|
|
223
|
+
next_marker?: string | null;
|
|
224
|
+
prev_marker?: string | null;
|
|
225
|
+
}
|
|
226
|
+
export interface ShuttlePathMappingSharedSpaceLocation {
|
|
227
|
+
type: ShuttlePathEntrySharedSpaceScopeType;
|
|
228
|
+
space?: string | null;
|
|
229
|
+
path: string;
|
|
230
|
+
path_id?: string | null;
|
|
231
|
+
is_directory?: boolean | null;
|
|
232
|
+
}
|
|
233
|
+
export interface ShuttlePathMappingSharedSpaceLocationInput {
|
|
234
|
+
type: ShuttlePathEntrySharedSpaceScopeType;
|
|
235
|
+
space?: string;
|
|
236
|
+
path: string;
|
|
237
|
+
path_id?: string;
|
|
238
|
+
is_directory?: boolean;
|
|
239
|
+
}
|
|
240
|
+
export interface ShuttlePathMappingSharedSpaceLocationTargetInput {
|
|
241
|
+
type: ShuttlePathEntrySharedSpaceScopeType;
|
|
242
|
+
space?: string;
|
|
243
|
+
path: string;
|
|
244
|
+
path_id?: string;
|
|
245
|
+
}
|
|
246
|
+
export type ShuttlePathMappingTargetLocationInput = (ShuttlePathMappingAccountLocationTargetInput & {
|
|
247
|
+
type: "account";
|
|
248
|
+
}) | (ShuttlePathMappingSharedSpaceLocationTargetInput & {
|
|
249
|
+
type: "shared_space";
|
|
250
|
+
}) | {
|
|
251
|
+
type: string;
|
|
252
|
+
[key: string]: unknown;
|
|
253
|
+
};
|
|
254
|
+
export interface ShuttlePathMappingUpdateRequest {
|
|
255
|
+
is_path_skipped?: boolean;
|
|
256
|
+
source?: ShuttlePathMappingLocationInput;
|
|
257
|
+
target?: ShuttlePathMappingTargetLocationInput | null;
|
|
258
|
+
}
|
|
259
|
+
export interface ShuttleReport {
|
|
260
|
+
id: string;
|
|
261
|
+
type: ShuttleReportType;
|
|
262
|
+
run_id: string;
|
|
263
|
+
status: string;
|
|
264
|
+
format: ShuttleReportFormat;
|
|
265
|
+
sections?: Array<string>;
|
|
266
|
+
users_scope?: ShuttleReportUsersScope;
|
|
267
|
+
output: ShuttleReportOutput | null;
|
|
268
|
+
created_at?: string;
|
|
269
|
+
completed_at: string | null;
|
|
270
|
+
}
|
|
271
|
+
export interface ShuttleReportCreateRequest {
|
|
272
|
+
run_id: string;
|
|
273
|
+
format: ShuttleReportFormat;
|
|
274
|
+
sections: Array<string>;
|
|
275
|
+
users_scope?: ShuttleReportUsersScope;
|
|
276
|
+
}
|
|
277
|
+
export interface ShuttleReportOutput {
|
|
278
|
+
id: string;
|
|
279
|
+
type: ShuttleReportOutputType;
|
|
280
|
+
}
|
|
281
|
+
export interface ShuttleReports {
|
|
282
|
+
entries: Array<ShuttleReport>;
|
|
283
|
+
limit?: number;
|
|
284
|
+
next_marker?: string | null;
|
|
285
|
+
prev_marker?: string | null;
|
|
286
|
+
}
|
|
287
|
+
export interface ShuttleRun {
|
|
288
|
+
id: string;
|
|
289
|
+
type: ShuttleRunType;
|
|
290
|
+
job_id: string;
|
|
291
|
+
run_mode: string;
|
|
292
|
+
state: string;
|
|
293
|
+
started_at?: string;
|
|
294
|
+
ended_at?: string | null;
|
|
295
|
+
duration_seconds?: number | null;
|
|
296
|
+
stats?: ShuttleRunStats;
|
|
297
|
+
created_by?: UserBase | null;
|
|
298
|
+
available_report_sections?: Array<string>;
|
|
299
|
+
}
|
|
300
|
+
export interface ShuttleRuns {
|
|
301
|
+
entries: Array<ShuttleRun>;
|
|
302
|
+
limit?: number;
|
|
303
|
+
next_marker?: string | null;
|
|
304
|
+
prev_marker?: string | null;
|
|
305
|
+
}
|
|
306
|
+
export interface ShuttleSubject {
|
|
307
|
+
type: ShuttleSubjectType;
|
|
308
|
+
id?: string | null;
|
|
309
|
+
email?: string | null;
|
|
310
|
+
name?: string | null;
|
|
311
|
+
roles?: Array<ShuttleSubjectRole> | null;
|
|
312
|
+
}
|
|
313
|
+
export interface ShuttleSubjectMapping {
|
|
314
|
+
id: string;
|
|
315
|
+
type: ShuttleSubjectMappingType;
|
|
316
|
+
job_id: string;
|
|
317
|
+
discovered_subject_id?: string | null;
|
|
318
|
+
revision?: number | null;
|
|
319
|
+
is_subject_skipped: boolean;
|
|
320
|
+
source: ShuttleSubject;
|
|
321
|
+
target?: ShuttleTargetSubject | null;
|
|
322
|
+
}
|
|
323
|
+
export interface ShuttleSubjectMappingCreateRequest {
|
|
324
|
+
job_id: string;
|
|
325
|
+
discovered_subject_id: string;
|
|
326
|
+
revision?: number;
|
|
327
|
+
is_subject_skipped?: boolean;
|
|
328
|
+
target?: ShuttleTargetSubjectInput | null;
|
|
329
|
+
}
|
|
330
|
+
export interface ShuttleSubjectMappingImportCreateRequest {
|
|
331
|
+
job_id: string;
|
|
332
|
+
file_id: string;
|
|
333
|
+
}
|
|
334
|
+
export interface ShuttleSubjectMappings {
|
|
335
|
+
entries: Array<ShuttleSubjectMapping>;
|
|
336
|
+
limit?: number;
|
|
337
|
+
next_marker?: string | null;
|
|
338
|
+
prev_marker?: string | null;
|
|
339
|
+
}
|
|
340
|
+
export interface ShuttleSubjectMappingUpdateRequest {
|
|
341
|
+
is_subject_skipped?: boolean;
|
|
342
|
+
target?: ShuttleTargetSubjectInput | null;
|
|
343
|
+
}
|
|
344
|
+
export type ShuttleSubjectRole = "owner" | "creator" | "updater" | "namespace_account" | "sharee" | "account_holder" | "unknown" | (string & {});
|
|
345
|
+
export interface ShuttleSystem {
|
|
346
|
+
id: string;
|
|
347
|
+
type: SourceSystemType;
|
|
348
|
+
name: string;
|
|
349
|
+
system_type: string;
|
|
350
|
+
label?: string;
|
|
351
|
+
state: ShuttleSystemState;
|
|
352
|
+
}
|
|
353
|
+
export interface ShuttleSystemCreateRequest {
|
|
354
|
+
name: string;
|
|
355
|
+
system_type: ShuttleSystemCreateRequestSystemType;
|
|
356
|
+
}
|
|
357
|
+
export interface ShuttleSystems {
|
|
358
|
+
entries: Array<ShuttleSystem>;
|
|
359
|
+
limit?: number;
|
|
360
|
+
next_marker?: string | null;
|
|
361
|
+
prev_marker?: string | null;
|
|
362
|
+
}
|
|
363
|
+
export interface ShuttleSystemUpdateRequest {
|
|
364
|
+
name?: string;
|
|
365
|
+
}
|
|
366
|
+
export interface ShuttleTargetSubject {
|
|
367
|
+
type: ShuttleSubjectType;
|
|
368
|
+
id?: string | null;
|
|
369
|
+
email?: string | null;
|
|
370
|
+
name?: string | null;
|
|
371
|
+
}
|
|
372
|
+
export interface ShuttleTargetSubjectInput {
|
|
373
|
+
type: ShuttleSubjectType;
|
|
374
|
+
id: string;
|
|
375
|
+
}
|
|
376
|
+
export type ShuttleDiscoveredSubjectType = "shuttle_discovered_subject" | (string & {});
|
|
377
|
+
export type ShuttleJobType = "shuttle_job" | (string & {});
|
|
378
|
+
export type ShuttleJobJobType = "transfer" | "analysis" | (string & {});
|
|
379
|
+
export type SourceSystemType = "shuttle_system" | (string & {});
|
|
380
|
+
export interface ShuttleJobSourceSystem {
|
|
381
|
+
type: SourceSystemType;
|
|
382
|
+
id: string;
|
|
383
|
+
name: string;
|
|
384
|
+
}
|
|
385
|
+
export interface ShuttleJobAccountMapping {
|
|
386
|
+
is_enabled: boolean;
|
|
387
|
+
permission_conflict_strategy?: ShuttleJobPermissionConflictStrategy | null;
|
|
388
|
+
are_external_shares_mapped?: boolean;
|
|
389
|
+
are_permissions_mapped?: boolean;
|
|
390
|
+
}
|
|
391
|
+
export interface ShuttleJobSettings {
|
|
392
|
+
bandwidth_limit_bytes_per_sec?: number | null;
|
|
393
|
+
are_deletions_mirrored?: boolean;
|
|
394
|
+
are_file_versions_synced?: boolean;
|
|
395
|
+
max_file_versions?: number | null;
|
|
396
|
+
is_overwrite_enabled?: boolean;
|
|
397
|
+
are_completed_mappings_skipped_on_rerun?: boolean;
|
|
398
|
+
is_content_scanning_enabled?: boolean;
|
|
399
|
+
include_shared_source_folders?: boolean;
|
|
400
|
+
include_shared_destination_folders?: boolean;
|
|
401
|
+
}
|
|
402
|
+
export interface ShuttleJobCreateRequestAccountMapping {
|
|
403
|
+
is_enabled?: boolean;
|
|
404
|
+
permission_conflict_strategy?: ShuttleJobPermissionConflictStrategy | null;
|
|
405
|
+
are_external_shares_mapped?: boolean;
|
|
406
|
+
are_permissions_mapped?: boolean;
|
|
407
|
+
}
|
|
408
|
+
export type ShuttleJobScheduleType = "shuttle_job_schedule" | (string & {});
|
|
409
|
+
export type ShuttleJobScheduleState = "enabled" | "paused" | (string & {});
|
|
410
|
+
export type ShuttleJobScheduleRunMode = "transfer" | "simulation" | "analysis" | (string & {});
|
|
411
|
+
export type ShuttleJobScheduleTriggerByJobType = "by_job" | (string & {});
|
|
412
|
+
export type ShuttleJobScheduleTriggerByJobLastRunCondition = "always" | "on_success" | "on_finish" | (string & {});
|
|
413
|
+
export type ShuttleJobScheduleTriggerByTimeType = "by_time" | (string & {});
|
|
414
|
+
export type ShuttleJobScheduleTriggerByTimeRepeat = "none" | "daily" | "weekly" | "weekdays" | "weekends" | (string & {});
|
|
415
|
+
export type ShuttleJobStartRequestMode = "transfer" | "simulation" | "scan" | "analysis" | (string & {});
|
|
416
|
+
export type ShuttleMappingErrorType = "shuttle_mapping_error" | (string & {});
|
|
417
|
+
export type ShuttlePathEntryType = "shuttle_path_entry" | (string & {});
|
|
418
|
+
export type ShuttlePathEntryAccountScopeType = "account" | (string & {});
|
|
419
|
+
export type ShuttlePathEntrySharedSpaceScopeType = "shared_space" | (string & {});
|
|
420
|
+
export type ShuttlePathMappingType = "shuttle_path_mapping" | (string & {});
|
|
421
|
+
export type ShuttleReportType = "shuttle_report" | (string & {});
|
|
422
|
+
export type ShuttleReportFormat = "xlsx" | "csv" | (string & {});
|
|
423
|
+
export type ShuttleReportUsersScope = "migrated" | "all" | (string & {});
|
|
424
|
+
export type ShuttleReportOutputType = "file" | "folder" | (string & {});
|
|
425
|
+
export type ShuttleRunType = "shuttle_run" | (string & {});
|
|
426
|
+
export interface ShuttleRunStats {
|
|
427
|
+
bytes_sent?: number;
|
|
428
|
+
files_sent?: number;
|
|
429
|
+
folders_created?: number;
|
|
430
|
+
is_estimated?: boolean;
|
|
431
|
+
}
|
|
432
|
+
export type ShuttleSubjectType = "user" | "group" | (string & {});
|
|
433
|
+
export type ShuttleSubjectMappingType = "shuttle_subject_mapping" | (string & {});
|
|
434
|
+
export type ShuttleSystemState = "connected" | "disconnected" | "unknown" | (string & {});
|
|
435
|
+
export type ShuttleSystemCreateRequestSystemType = "windows" | (string & {});
|
|
436
|
+
export type GetPathEntriesSide = "source" | "target" | (string & {});
|
|
@@ -2,7 +2,7 @@ import type { FileVersionType, PutOp, PutSkillInvocationIdFile } from '../schema
|
|
|
2
2
|
export interface KeywordSkillCard {
|
|
3
3
|
created_at?: string;
|
|
4
4
|
type: KeywordSkillCardType;
|
|
5
|
-
skill_card_type:
|
|
5
|
+
skill_card_type: KeywordSkillCardSkillCardType;
|
|
6
6
|
skill_card_title?: KeywordSkillCardTitle;
|
|
7
7
|
skill: KeywordSkillCardSkill;
|
|
8
8
|
invocation: KeywordSkillCardInvocation;
|
|
@@ -50,7 +50,7 @@ export interface TranscriptSkillCard {
|
|
|
50
50
|
entries: Array<TranscriptSkillCardEntries>;
|
|
51
51
|
}
|
|
52
52
|
export type KeywordSkillCardType = "skill_card" | (string & {});
|
|
53
|
-
export type
|
|
53
|
+
export type KeywordSkillCardSkillCardType = "keyword" | (string & {});
|
|
54
54
|
export interface KeywordSkillCardTitle {
|
|
55
55
|
code?: string;
|
|
56
56
|
message: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AttributesParent, PutIdParent, SharedLinkAccess } from '../schemas.js';
|
|
1
|
+
import type { AttributesParent, PutIdParent, SharedLinkAccess, SharedLinkOtpWritable } from '../schemas.js';
|
|
2
2
|
export interface CreateWebLinkRequest {
|
|
3
3
|
url: string;
|
|
4
4
|
parent: AttributesParent;
|
|
@@ -10,6 +10,7 @@ export interface UpdateWebLinkRequestSharedLink {
|
|
|
10
10
|
password?: string | null;
|
|
11
11
|
vanity_name?: string;
|
|
12
12
|
unshared_at?: string;
|
|
13
|
+
one_time_passcode?: SharedLinkOtpWritable;
|
|
13
14
|
}
|
|
14
15
|
export interface UpdateWebLinkRequest {
|
|
15
16
|
url?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CollaboratorVariableValue, FileFullAllowedInviteeRoles, MetadataCascadePolicyParent, PutSkillInvocationIdFile, UserBase } from '../schemas.js';
|
|
2
2
|
export interface CollaboratorVariable {
|
|
3
3
|
type: CollaboratorVariableType;
|
|
4
|
-
variable_type:
|
|
4
|
+
variable_type: CollaboratorVariableVariableType;
|
|
5
5
|
variable_value: Array<CollaboratorVariableValue>;
|
|
6
6
|
}
|
|
7
7
|
export interface CompletionRuleVariable {
|
|
@@ -37,7 +37,7 @@ export interface Workflows {
|
|
|
37
37
|
entries?: Array<Workflow>;
|
|
38
38
|
}
|
|
39
39
|
export type CollaboratorVariableType = "variable" | (string & {});
|
|
40
|
-
export type
|
|
40
|
+
export type CollaboratorVariableVariableType = "user_list" | (string & {});
|
|
41
41
|
export type CompletionRuleVariableType = "task_completion_rule" | (string & {});
|
|
42
42
|
export type CompletionRuleVariableValue = "all_assignees" | "any_assignees" | (string & {});
|
|
43
43
|
export type RoleVariableType = "collaborator_role" | (string & {});
|