@unofficialbox/box-open-sdk 0.4.0 → 0.4.2

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.
Files changed (236) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/models/schemas/ai.js +3 -0
  3. package/dist/cjs/models/schemas/ai_studio.js +3 -0
  4. package/dist/cjs/models/schemas/app_item_associations.js +3 -0
  5. package/dist/cjs/models/schemas/archives.js +3 -0
  6. package/dist/cjs/models/schemas/authorization.js +3 -0
  7. package/dist/cjs/models/schemas/automate_workflows.js +3 -0
  8. package/dist/cjs/models/schemas/avatars.js +3 -0
  9. package/dist/cjs/models/schemas/chunked_uploads.js +3 -0
  10. package/dist/cjs/models/schemas/classifications.js +3 -0
  11. package/dist/cjs/models/schemas/collaboration_allowlist_entries.js +3 -0
  12. package/dist/cjs/models/schemas/collaboration_allowlist_exempt_targets.js +3 -0
  13. package/dist/cjs/models/schemas/collections.js +3 -0
  14. package/dist/cjs/models/schemas/comments.js +3 -0
  15. package/dist/cjs/models/schemas/device_pinners.js +3 -0
  16. package/dist/cjs/models/schemas/docgen.js +3 -0
  17. package/dist/cjs/models/schemas/docgen_template.js +3 -0
  18. package/dist/cjs/models/schemas/email_aliases.js +3 -0
  19. package/dist/cjs/models/schemas/enterprise_configurations.js +3 -0
  20. package/dist/cjs/models/schemas/events.js +3 -0
  21. package/dist/cjs/models/schemas/external_users.js +3 -0
  22. package/dist/cjs/models/schemas/file_requests.js +3 -0
  23. package/dist/cjs/models/schemas/file_version_legal_holds.js +3 -0
  24. package/dist/cjs/models/schemas/file_version_retentions.js +3 -0
  25. package/dist/cjs/models/schemas/file_versions.js +3 -0
  26. package/dist/cjs/models/schemas/files.js +3 -0
  27. package/dist/cjs/models/schemas/folder_locks.js +3 -0
  28. package/dist/cjs/models/schemas/folders.js +3 -0
  29. package/dist/cjs/models/schemas/groups.js +3 -0
  30. package/dist/cjs/models/schemas/hub_collaborations.js +3 -0
  31. package/dist/cjs/models/schemas/hub_document.js +3 -0
  32. package/dist/cjs/models/schemas/hub_items.js +3 -0
  33. package/dist/cjs/models/schemas/hubs.js +3 -0
  34. package/dist/cjs/models/schemas/integration_mappings.js +3 -0
  35. package/dist/cjs/models/schemas/invites.js +3 -0
  36. package/dist/cjs/models/schemas/legal_hold_policies.js +3 -0
  37. package/dist/cjs/models/schemas/legal_hold_policy_assignments.js +3 -0
  38. package/dist/cjs/models/schemas/list_collaborations.js +3 -0
  39. package/dist/cjs/models/schemas/memberships.js +3 -0
  40. package/dist/cjs/models/schemas/metadata_cascade_policies.js +3 -0
  41. package/dist/cjs/models/schemas/metadata_taxonomies.js +3 -0
  42. package/dist/cjs/models/schemas/metadata_templates.js +3 -0
  43. package/dist/cjs/models/schemas/notes.js +3 -0
  44. package/dist/cjs/models/schemas/query.js +3 -0
  45. package/dist/cjs/models/schemas/recent_items.js +3 -0
  46. package/dist/cjs/models/schemas/retention_policies.js +3 -0
  47. package/dist/cjs/models/schemas/retention_policy_assignments.js +3 -0
  48. package/dist/cjs/models/schemas/search.js +3 -0
  49. package/dist/cjs/models/schemas/session_termination.js +3 -0
  50. package/dist/cjs/models/schemas/shared_links_folders.js +3 -0
  51. package/dist/cjs/models/schemas/shield_information_barrier_reports.js +3 -0
  52. package/dist/cjs/models/schemas/shield_information_barrier_segment_members.js +3 -0
  53. package/dist/cjs/models/schemas/shield_information_barrier_segment_restrictions.js +3 -0
  54. package/dist/cjs/models/schemas/shield_information_barrier_segments.js +3 -0
  55. package/dist/cjs/models/schemas/shield_information_barriers.js +3 -0
  56. package/dist/cjs/models/schemas/shield_lists.js +3 -0
  57. package/dist/cjs/models/schemas/sign_requests.js +3 -0
  58. package/dist/cjs/models/schemas/sign_templates.js +3 -0
  59. package/dist/cjs/models/schemas/skills.js +3 -0
  60. package/dist/cjs/models/schemas/storage_policies.js +3 -0
  61. package/dist/cjs/models/schemas/storage_policy_assignments.js +3 -0
  62. package/dist/cjs/models/schemas/task_assignments.js +3 -0
  63. package/dist/cjs/models/schemas/tasks.js +3 -0
  64. package/dist/cjs/models/schemas/terms_of_service_user_statuses.js +3 -0
  65. package/dist/cjs/models/schemas/terms_of_services.js +3 -0
  66. package/dist/cjs/models/schemas/transfer.js +3 -0
  67. package/dist/cjs/models/schemas/trashed_files.js +3 -0
  68. package/dist/cjs/models/schemas/trashed_folders.js +3 -0
  69. package/dist/cjs/models/schemas/trashed_items.js +3 -0
  70. package/dist/cjs/models/schemas/trashed_web_links.js +3 -0
  71. package/dist/cjs/models/schemas/uploads.js +3 -0
  72. package/dist/cjs/models/schemas/user_collaborations.js +3 -0
  73. package/dist/cjs/models/schemas/users.js +3 -0
  74. package/dist/cjs/models/schemas/web_links.js +3 -0
  75. package/dist/cjs/models/schemas/webhooks.js +3 -0
  76. package/dist/cjs/models/schemas/workflows.js +3 -0
  77. package/dist/cjs/models/schemas/zip_downloads.js +3 -0
  78. package/dist/cjs/models/schemas.js +90 -0
  79. package/dist/esm/models/schemas/ai.js +2 -0
  80. package/dist/esm/models/schemas/ai_studio.js +2 -0
  81. package/dist/esm/models/schemas/app_item_associations.js +2 -0
  82. package/dist/esm/models/schemas/archives.js +2 -0
  83. package/dist/esm/models/schemas/authorization.js +2 -0
  84. package/dist/esm/models/schemas/automate_workflows.js +2 -0
  85. package/dist/esm/models/schemas/avatars.js +2 -0
  86. package/dist/esm/models/schemas/chunked_uploads.js +2 -0
  87. package/dist/esm/models/schemas/classifications.js +2 -0
  88. package/dist/esm/models/schemas/collaboration_allowlist_entries.js +2 -0
  89. package/dist/esm/models/schemas/collaboration_allowlist_exempt_targets.js +2 -0
  90. package/dist/esm/models/schemas/collections.js +2 -0
  91. package/dist/esm/models/schemas/comments.js +2 -0
  92. package/dist/esm/models/schemas/device_pinners.js +2 -0
  93. package/dist/esm/models/schemas/docgen.js +2 -0
  94. package/dist/esm/models/schemas/docgen_template.js +2 -0
  95. package/dist/esm/models/schemas/email_aliases.js +2 -0
  96. package/dist/esm/models/schemas/enterprise_configurations.js +2 -0
  97. package/dist/esm/models/schemas/events.js +2 -0
  98. package/dist/esm/models/schemas/external_users.js +2 -0
  99. package/dist/esm/models/schemas/file_requests.js +2 -0
  100. package/dist/esm/models/schemas/file_version_legal_holds.js +2 -0
  101. package/dist/esm/models/schemas/file_version_retentions.js +2 -0
  102. package/dist/esm/models/schemas/file_versions.js +2 -0
  103. package/dist/esm/models/schemas/files.js +2 -0
  104. package/dist/esm/models/schemas/folder_locks.js +2 -0
  105. package/dist/esm/models/schemas/folders.js +2 -0
  106. package/dist/esm/models/schemas/groups.js +2 -0
  107. package/dist/esm/models/schemas/hub_collaborations.js +2 -0
  108. package/dist/esm/models/schemas/hub_document.js +2 -0
  109. package/dist/esm/models/schemas/hub_items.js +2 -0
  110. package/dist/esm/models/schemas/hubs.js +2 -0
  111. package/dist/esm/models/schemas/integration_mappings.js +2 -0
  112. package/dist/esm/models/schemas/invites.js +2 -0
  113. package/dist/esm/models/schemas/legal_hold_policies.js +2 -0
  114. package/dist/esm/models/schemas/legal_hold_policy_assignments.js +2 -0
  115. package/dist/esm/models/schemas/list_collaborations.js +2 -0
  116. package/dist/esm/models/schemas/memberships.js +2 -0
  117. package/dist/esm/models/schemas/metadata_cascade_policies.js +2 -0
  118. package/dist/esm/models/schemas/metadata_taxonomies.js +2 -0
  119. package/dist/esm/models/schemas/metadata_templates.js +2 -0
  120. package/dist/esm/models/schemas/notes.js +2 -0
  121. package/dist/esm/models/schemas/query.js +2 -0
  122. package/dist/esm/models/schemas/recent_items.js +2 -0
  123. package/dist/esm/models/schemas/retention_policies.js +2 -0
  124. package/dist/esm/models/schemas/retention_policy_assignments.js +2 -0
  125. package/dist/esm/models/schemas/search.js +2 -0
  126. package/dist/esm/models/schemas/session_termination.js +2 -0
  127. package/dist/esm/models/schemas/shared_links_folders.js +2 -0
  128. package/dist/esm/models/schemas/shield_information_barrier_reports.js +2 -0
  129. package/dist/esm/models/schemas/shield_information_barrier_segment_members.js +2 -0
  130. package/dist/esm/models/schemas/shield_information_barrier_segment_restrictions.js +2 -0
  131. package/dist/esm/models/schemas/shield_information_barrier_segments.js +2 -0
  132. package/dist/esm/models/schemas/shield_information_barriers.js +2 -0
  133. package/dist/esm/models/schemas/shield_lists.js +2 -0
  134. package/dist/esm/models/schemas/sign_requests.js +2 -0
  135. package/dist/esm/models/schemas/sign_templates.js +2 -0
  136. package/dist/esm/models/schemas/skills.js +2 -0
  137. package/dist/esm/models/schemas/storage_policies.js +2 -0
  138. package/dist/esm/models/schemas/storage_policy_assignments.js +2 -0
  139. package/dist/esm/models/schemas/task_assignments.js +2 -0
  140. package/dist/esm/models/schemas/tasks.js +2 -0
  141. package/dist/esm/models/schemas/terms_of_service_user_statuses.js +2 -0
  142. package/dist/esm/models/schemas/terms_of_services.js +2 -0
  143. package/dist/esm/models/schemas/transfer.js +2 -0
  144. package/dist/esm/models/schemas/trashed_files.js +2 -0
  145. package/dist/esm/models/schemas/trashed_folders.js +2 -0
  146. package/dist/esm/models/schemas/trashed_items.js +2 -0
  147. package/dist/esm/models/schemas/trashed_web_links.js +2 -0
  148. package/dist/esm/models/schemas/uploads.js +2 -0
  149. package/dist/esm/models/schemas/user_collaborations.js +2 -0
  150. package/dist/esm/models/schemas/users.js +2 -0
  151. package/dist/esm/models/schemas/web_links.js +2 -0
  152. package/dist/esm/models/schemas/webhooks.js +2 -0
  153. package/dist/esm/models/schemas/workflows.js +2 -0
  154. package/dist/esm/models/schemas/zip_downloads.js +2 -0
  155. package/dist/esm/models/schemas.js +76 -1
  156. package/dist/types/managers/metadata_taxonomies.d.ts +2 -2
  157. package/dist/types/managers/retention_policies.d.ts +1 -1
  158. package/dist/types/models/schemas/ai.d.ts +240 -0
  159. package/dist/types/models/schemas/ai_studio.d.ts +172 -0
  160. package/dist/types/models/schemas/app_item_associations.d.ts +34 -0
  161. package/dist/types/models/schemas/archives.d.ts +27 -0
  162. package/dist/types/models/schemas/authorization.d.ts +43 -0
  163. package/dist/types/models/schemas/automate_workflows.d.ts +29 -0
  164. package/dist/types/models/schemas/avatars.d.ts +11 -0
  165. package/dist/types/models/schemas/chunked_uploads.d.ts +47 -0
  166. package/dist/types/models/schemas/classifications.d.ts +66 -0
  167. package/dist/types/models/schemas/collaboration_allowlist_entries.d.ts +21 -0
  168. package/dist/types/models/schemas/collaboration_allowlist_exempt_targets.d.ts +19 -0
  169. package/dist/types/models/schemas/collections.d.ts +15 -0
  170. package/dist/types/models/schemas/comments.d.ts +33 -0
  171. package/dist/types/models/schemas/device_pinners.d.ts +20 -0
  172. package/dist/types/models/schemas/docgen.d.ts +40 -0
  173. package/dist/types/models/schemas/docgen_template.d.ts +29 -0
  174. package/dist/types/models/schemas/email_aliases.d.ts +14 -0
  175. package/dist/types/models/schemas/enterprise_configurations.d.ts +251 -0
  176. package/dist/types/models/schemas/events.d.ts +71 -0
  177. package/dist/types/models/schemas/external_users.d.ts +16 -0
  178. package/dist/types/models/schemas/file_requests.d.ts +41 -0
  179. package/dist/types/models/schemas/file_version_legal_holds.d.ts +16 -0
  180. package/dist/types/models/schemas/file_version_retentions.d.ts +17 -0
  181. package/dist/types/models/schemas/file_versions.d.ts +32 -0
  182. package/dist/types/models/schemas/files.d.ts +27 -0
  183. package/dist/types/models/schemas/folder_locks.d.ts +27 -0
  184. package/dist/types/models/schemas/folders.d.ts +28 -0
  185. package/dist/types/models/schemas/groups.d.ts +42 -0
  186. package/dist/types/models/schemas/hub_collaborations.d.ts +57 -0
  187. package/dist/types/models/schemas/hub_document.d.ts +67 -0
  188. package/dist/types/models/schemas/hub_items.d.ts +46 -0
  189. package/dist/types/models/schemas/hubs.d.ts +43 -0
  190. package/dist/types/models/schemas/integration_mappings.d.ts +83 -0
  191. package/dist/types/models/schemas/invites.d.ts +19 -0
  192. package/dist/types/models/schemas/legal_hold_policies.d.ts +43 -0
  193. package/dist/types/models/schemas/legal_hold_policy_assignments.d.ts +43 -0
  194. package/dist/types/models/schemas/list_collaborations.d.ts +14 -0
  195. package/dist/types/models/schemas/memberships.d.ts +29 -0
  196. package/dist/types/models/schemas/metadata_cascade_policies.d.ts +29 -0
  197. package/dist/types/models/schemas/metadata_taxonomies.d.ts +60 -0
  198. package/dist/types/models/schemas/metadata_templates.d.ts +71 -0
  199. package/dist/types/models/schemas/notes.d.ts +13 -0
  200. package/dist/types/models/schemas/query.d.ts +62 -0
  201. package/dist/types/models/schemas/recent_items.d.ts +25 -0
  202. package/dist/types/models/schemas/retention_policies.d.ts +60 -0
  203. package/dist/types/models/schemas/retention_policy_assignments.d.ts +47 -0
  204. package/dist/types/models/schemas/search.d.ts +98 -0
  205. package/dist/types/models/schemas/session_termination.d.ts +10 -0
  206. package/dist/types/models/schemas/shared_links_folders.d.ts +11 -0
  207. package/dist/types/models/schemas/shield_information_barrier_reports.d.ts +27 -0
  208. package/dist/types/models/schemas/shield_information_barrier_segment_members.d.ts +24 -0
  209. package/dist/types/models/schemas/shield_information_barrier_segment_restrictions.d.ts +24 -0
  210. package/dist/types/models/schemas/shield_information_barrier_segments.d.ts +26 -0
  211. package/dist/types/models/schemas/shield_information_barriers.d.ts +31 -0
  212. package/dist/types/models/schemas/shield_lists.d.ts +88 -0
  213. package/dist/types/models/schemas/sign_requests.d.ts +136 -0
  214. package/dist/types/models/schemas/sign_templates.d.ts +90 -0
  215. package/dist/types/models/schemas/skills.d.ts +120 -0
  216. package/dist/types/models/schemas/storage_policies.d.ts +12 -0
  217. package/dist/types/models/schemas/storage_policy_assignments.d.ts +34 -0
  218. package/dist/types/models/schemas/task_assignments.d.ts +17 -0
  219. package/dist/types/models/schemas/tasks.d.ts +37 -0
  220. package/dist/types/models/schemas/terms_of_service_user_statuses.d.ts +27 -0
  221. package/dist/types/models/schemas/terms_of_services.d.ts +27 -0
  222. package/dist/types/models/schemas/transfer.d.ts +4 -0
  223. package/dist/types/models/schemas/trashed_files.d.ts +49 -0
  224. package/dist/types/models/schemas/trashed_folders.d.ts +47 -0
  225. package/dist/types/models/schemas/trashed_items.d.ts +1 -0
  226. package/dist/types/models/schemas/trashed_web_links.d.ts +41 -0
  227. package/dist/types/models/schemas/uploads.d.ts +28 -0
  228. package/dist/types/models/schemas/user_collaborations.d.ts +26 -0
  229. package/dist/types/models/schemas/users.d.ts +98 -0
  230. package/dist/types/models/schemas/web_links.d.ts +20 -0
  231. package/dist/types/models/schemas/webhooks.d.ts +37 -0
  232. package/dist/types/models/schemas/workflows.d.ts +93 -0
  233. package/dist/types/models/schemas/zip_downloads.d.ts +29 -0
  234. package/dist/types/models/schemas.d.ts +180 -3579
  235. package/docs/managers/retention_policies.md +1 -1
  236. package/package.json +1 -1
@@ -0,0 +1,67 @@
1
+ export interface HubCalloutBoxTextBlock {
2
+ id: string;
3
+ parent_id?: string | null;
4
+ type: HubCalloutBoxTextBlockType;
5
+ fragment: string;
6
+ }
7
+ export interface HubDividerBlock {
8
+ id: string;
9
+ parent_id?: string | null;
10
+ type: HubDividerBlockType;
11
+ }
12
+ export type HubDocumentBlockEntry = (HubParagraphTextBlock & {
13
+ type: "paragraph";
14
+ }) | (HubSectionTitleTextBlock & {
15
+ type: "section_title";
16
+ }) | (HubCalloutBoxTextBlock & {
17
+ type: "callout_box";
18
+ }) | (HubItemListBlock & {
19
+ type: "item_list";
20
+ }) | (HubDividerBlock & {
21
+ type: "divider";
22
+ }) | {
23
+ type: string;
24
+ [key: string]: unknown;
25
+ };
26
+ export interface HubDocumentBlocks {
27
+ entries: Array<HubDocumentBlockEntry>;
28
+ type: HubDocumentBlocksType;
29
+ limit?: number;
30
+ next_marker?: string | null;
31
+ }
32
+ export interface HubDocumentPage {
33
+ id: string;
34
+ type: string;
35
+ parent_id?: string | null;
36
+ title_fragment: string;
37
+ }
38
+ export interface HubDocumentPages {
39
+ entries: Array<HubDocumentPage>;
40
+ type: HubDocumentPagesType;
41
+ limit?: number;
42
+ next_marker?: string | null;
43
+ }
44
+ export interface HubItemListBlock {
45
+ id: string;
46
+ parent_id?: string | null;
47
+ type: HubItemListBlockType;
48
+ }
49
+ export interface HubParagraphTextBlock {
50
+ id: string;
51
+ parent_id?: string | null;
52
+ type: HubParagraphTextBlockType;
53
+ fragment: string;
54
+ }
55
+ export interface HubSectionTitleTextBlock {
56
+ id: string;
57
+ parent_id?: string | null;
58
+ type: HubSectionTitleTextBlockType;
59
+ fragment: string;
60
+ }
61
+ export type HubCalloutBoxTextBlockType = "callout_box" | (string & {});
62
+ export type HubDividerBlockType = "divider" | (string & {});
63
+ export type HubDocumentBlocksType = "document_blocks" | (string & {});
64
+ export type HubDocumentPagesType = "document_pages" | (string & {});
65
+ export type HubItemListBlockType = "item_list" | (string & {});
66
+ export type HubParagraphTextBlockType = "paragraph" | (string & {});
67
+ export type HubSectionTitleTextBlockType = "section_title" | (string & {});
@@ -0,0 +1,46 @@
1
+ import type { FileReference, FolderReference } from '../schemas.js';
2
+ export interface HubItem {
3
+ id: string;
4
+ type: HubItemType;
5
+ name: string;
6
+ }
7
+ export interface HubItemOperation {
8
+ action: HubItemOperationAction;
9
+ item: HubItemReference;
10
+ parent_id?: string;
11
+ }
12
+ export interface HubItemOperationResult {
13
+ action?: string;
14
+ item?: HubItemReference;
15
+ parent_id?: string;
16
+ status?: number;
17
+ error?: string;
18
+ }
19
+ export type HubItemReference = (FileReference & {
20
+ type: "file";
21
+ }) | (FolderReference & {
22
+ type: "folder";
23
+ }) | (WeblinkReference & {
24
+ type: "web_link";
25
+ }) | {
26
+ type: string;
27
+ [key: string]: unknown;
28
+ };
29
+ export interface HubItems {
30
+ entries?: Array<HubItem>;
31
+ limit?: number;
32
+ next_marker?: string | null;
33
+ }
34
+ export interface HubItemsManageRequest {
35
+ operations?: Array<HubItemOperation>;
36
+ }
37
+ export interface HubItemsManageResponse {
38
+ operations: Array<HubItemOperationResult>;
39
+ }
40
+ export interface WeblinkReference {
41
+ type: WeblinkReferenceType;
42
+ id: string;
43
+ }
44
+ export type HubItemType = "file" | "folder" | "web_link" | (string & {});
45
+ export type HubItemOperationAction = "add" | "remove" | (string & {});
46
+ export type WeblinkReferenceType = "web_link" | (string & {});
@@ -0,0 +1,43 @@
1
+ import type { HubType, UserMini } from '../schemas.js';
2
+ export interface Hub {
3
+ id: string;
4
+ type: HubType;
5
+ title?: string;
6
+ description?: string;
7
+ created_at?: string;
8
+ updated_at?: string;
9
+ created_by?: UserMini;
10
+ updated_by?: UserMini;
11
+ view_count?: number;
12
+ is_ai_enabled?: boolean;
13
+ is_collaboration_restricted_to_enterprise?: boolean;
14
+ can_non_owners_invite?: boolean;
15
+ can_shared_link_be_created?: boolean;
16
+ can_public_shared_link_be_created?: boolean;
17
+ copy_hub_access?: HubCopyHubAccess;
18
+ }
19
+ export interface HubCopyRequest {
20
+ title?: string;
21
+ description?: string;
22
+ include_items?: boolean;
23
+ }
24
+ export interface HubCreateRequest {
25
+ title: string;
26
+ description?: string;
27
+ }
28
+ export interface Hubs {
29
+ entries?: Array<Hub>;
30
+ limit?: number;
31
+ next_marker?: string | null;
32
+ }
33
+ export interface HubUpdateRequest {
34
+ title?: string;
35
+ description?: string;
36
+ is_ai_enabled?: boolean;
37
+ is_collaboration_restricted_to_enterprise?: boolean;
38
+ can_non_owners_invite?: boolean;
39
+ can_shared_link_be_created?: boolean;
40
+ can_public_shared_link_be_created?: boolean;
41
+ copy_hub_access?: HubCopyHubAccess;
42
+ }
43
+ export type HubCopyHubAccess = "all" | "company" | "none" | (string & {});
@@ -0,0 +1,83 @@
1
+ import type { FolderMini, FolderReference, FolderType, VariableValueType } from '../schemas.js';
2
+ export interface IntegrationMapping {
3
+ id: string;
4
+ type: IntegrationMappingType;
5
+ integration_type?: IntegrationMappingIntegrationType;
6
+ is_manually_created?: boolean;
7
+ options?: IntegrationMappingSlackOptions;
8
+ created_by?: UserIntegrationMappings;
9
+ modified_by?: UserIntegrationMappings;
10
+ partner_item: IntegrationMappingPartnerItemSlack;
11
+ box_item: FolderMini;
12
+ created_at?: string;
13
+ modified_at?: string;
14
+ }
15
+ export interface IntegrationMappingBoxItemSlack {
16
+ type: FolderType;
17
+ id: string;
18
+ }
19
+ export interface IntegrationMappingPartnerItemSlack {
20
+ type: IntegrationMappingPartnerItemSlackType;
21
+ id: string;
22
+ slack_workspace_id?: string | null;
23
+ slack_org_id?: string | null;
24
+ }
25
+ export interface IntegrationMappingPartnerItemTeams {
26
+ type: IntegrationMappingPartnerItemTeamsType;
27
+ id: string;
28
+ tenant_id: string;
29
+ }
30
+ export interface IntegrationMappingPartnerItemTeamsCreateRequest {
31
+ type: IntegrationMappingPartnerItemTeamsType;
32
+ id: string;
33
+ tenant_id: string;
34
+ team_id: string;
35
+ }
36
+ export interface IntegrationMappings {
37
+ limit?: number;
38
+ next_marker?: string | null;
39
+ entries?: Array<IntegrationMapping>;
40
+ }
41
+ export interface IntegrationMappingSlackCreateRequest {
42
+ partner_item: IntegrationMappingPartnerItemSlack;
43
+ box_item: IntegrationMappingBoxItemSlack;
44
+ options?: IntegrationMappingSlackOptions;
45
+ }
46
+ export interface IntegrationMappingSlackOptions {
47
+ is_access_management_disabled?: boolean;
48
+ }
49
+ export interface IntegrationMappingsTeams {
50
+ entries?: Array<IntegrationMappingTeams>;
51
+ }
52
+ export interface IntegrationMappingTeams {
53
+ id: string;
54
+ type: IntegrationMappingType;
55
+ integration_type?: IntegrationMappingTeamsIntegrationType;
56
+ is_overridden_by_manual_mapping?: boolean;
57
+ partner_item: IntegrationMappingPartnerItemTeams;
58
+ box_item: FolderReference;
59
+ created_at?: string;
60
+ modified_at?: string;
61
+ }
62
+ export interface IntegrationMappingTeamsCreateRequest {
63
+ partner_item: IntegrationMappingPartnerItemTeamsCreateRequest;
64
+ box_item: FolderReference;
65
+ }
66
+ export interface UserIntegrationMappings {
67
+ id: string;
68
+ type: VariableValueType;
69
+ name?: string;
70
+ login?: string;
71
+ }
72
+ export type IntegrationMappingType = "integration_mapping" | (string & {});
73
+ export type IntegrationMappingIntegrationType = "slack" | (string & {});
74
+ export type IntegrationMappingPartnerItemSlackType = "channel" | (string & {});
75
+ export type IntegrationMappingPartnerItemTeamsType = "channel" | "team" | (string & {});
76
+ export type IntegrationMappingTeamsIntegrationType = "teams" | (string & {});
77
+ export interface UpdateSlackRequest {
78
+ box_item?: IntegrationMappingBoxItemSlack;
79
+ options?: IntegrationMappingSlackOptions;
80
+ }
81
+ export interface UpdateTeamRequest {
82
+ box_item?: FolderReference;
83
+ }
@@ -0,0 +1,19 @@
1
+ import type { AttributesParent, CollaborationAllowlistEntryEnterprise, UserMini } from '../schemas.js';
2
+ export interface Invite {
3
+ id: string;
4
+ type: InviteType;
5
+ invited_to?: CollaborationAllowlistEntryEnterprise;
6
+ actionable_by?: UserMini;
7
+ invited_by?: UserMini;
8
+ status?: string;
9
+ created_at?: string;
10
+ modified_at?: string;
11
+ }
12
+ export type InviteType = "invite" | (string & {});
13
+ export interface PostActionableBy {
14
+ login?: string;
15
+ }
16
+ export interface CreateInviteRequest {
17
+ enterprise: AttributesParent;
18
+ actionable_by: PostActionableBy;
19
+ }
@@ -0,0 +1,43 @@
1
+ import type { LegalHoldPolicyType, UserMini } from '../schemas.js';
2
+ export interface LegalHoldPolicies {
3
+ limit?: number;
4
+ next_marker?: string | null;
5
+ prev_marker?: string | null;
6
+ entries?: Array<LegalHoldPolicy>;
7
+ }
8
+ export interface LegalHoldPolicy {
9
+ id: string;
10
+ type: LegalHoldPolicyType;
11
+ policy_name?: string;
12
+ description?: string;
13
+ status?: LegalHoldPolicyStatus;
14
+ assignment_counts?: LegalHoldPolicyAssignmentCounts;
15
+ created_by?: UserMini;
16
+ created_at?: string;
17
+ modified_at?: string;
18
+ deleted_at?: string;
19
+ filter_started_at?: string;
20
+ filter_ended_at?: string;
21
+ release_notes?: string;
22
+ }
23
+ export type LegalHoldPolicyStatus = "active" | "applying" | "releasing" | "released" | (string & {});
24
+ export interface LegalHoldPolicyAssignmentCounts {
25
+ user?: number;
26
+ folder?: number;
27
+ file?: number;
28
+ file_version?: number;
29
+ ownership?: number;
30
+ interactions?: number;
31
+ }
32
+ export interface CreateLegalHoldPolicyRequest {
33
+ policy_name: string;
34
+ description?: string;
35
+ filter_started_at?: string;
36
+ filter_ended_at?: string;
37
+ is_ongoing?: boolean;
38
+ }
39
+ export interface UpdateLegalHoldPolicyRequest {
40
+ policy_name?: string;
41
+ description?: string;
42
+ release_notes?: string;
43
+ }
@@ -0,0 +1,43 @@
1
+ import type { FileMini, FileVersionType, LegalHoldPolicyAssignedItemType, LegalHoldPolicyAssignment, UserMini } from '../schemas.js';
2
+ export interface FilesOnHold {
3
+ limit?: number;
4
+ next_marker?: string | null;
5
+ prev_marker?: string | null;
6
+ entries?: Array<FileMini>;
7
+ }
8
+ export interface FileVersion {
9
+ id: string;
10
+ type: FileVersionType;
11
+ sha1?: string;
12
+ name?: string;
13
+ size?: number;
14
+ created_at?: string;
15
+ modified_at?: string;
16
+ modified_by?: UserMini;
17
+ trashed_at?: string | null;
18
+ trashed_by?: UserMini;
19
+ restored_at?: string | null;
20
+ restored_by?: UserMini;
21
+ purged_at?: string | null;
22
+ uploader_display_name?: string;
23
+ }
24
+ export interface FileVersionsOnHold {
25
+ limit?: number;
26
+ next_marker?: string | null;
27
+ prev_marker?: string | null;
28
+ entries?: Array<FileVersion>;
29
+ }
30
+ export interface LegalHoldPolicyAssignments {
31
+ limit?: number;
32
+ next_marker?: string | null;
33
+ prev_marker?: string | null;
34
+ entries?: Array<LegalHoldPolicyAssignment>;
35
+ }
36
+ export interface CreateLegalHoldPolicyAssignmentRequestAssignTo {
37
+ type: LegalHoldPolicyAssignedItemType;
38
+ id: string;
39
+ }
40
+ export interface CreateLegalHoldPolicyAssignmentRequest {
41
+ policy_id: string;
42
+ assign_to: CreateLegalHoldPolicyAssignmentRequestAssignTo;
43
+ }
@@ -0,0 +1,14 @@
1
+ import type { Collaboration } from '../schemas.js';
2
+ export interface Collaborations {
3
+ limit?: number;
4
+ next_marker?: string | null;
5
+ prev_marker?: string | null;
6
+ entries?: Array<Collaboration>;
7
+ }
8
+ export interface CollaborationsOffsetPaginated {
9
+ total_count?: number;
10
+ limit?: number;
11
+ offset?: number;
12
+ entries?: Array<Collaboration>;
13
+ }
14
+ export type GetCollaborationsStatus = "pending" | (string & {});
@@ -0,0 +1,29 @@
1
+ import type { AttributesParent, CollectionsOrder, GroupMini, UserMini } from '../schemas.js';
2
+ export interface GroupMembership {
3
+ id?: string;
4
+ type?: GroupMembershipType;
5
+ user?: UserMini;
6
+ group?: GroupMini;
7
+ role?: GroupMembershipRole;
8
+ created_at?: string;
9
+ modified_at?: string;
10
+ }
11
+ export interface GroupMemberships {
12
+ total_count?: number;
13
+ limit?: number;
14
+ offset?: number;
15
+ order?: Array<CollectionsOrder>;
16
+ entries?: Array<GroupMembership>;
17
+ }
18
+ export type GroupMembershipType = "group_membership" | (string & {});
19
+ export type GroupMembershipRole = "member" | "admin" | (string & {});
20
+ export interface CreateGroupMembershipRequest {
21
+ user: AttributesParent;
22
+ group: AttributesParent;
23
+ role?: GroupMembershipRole;
24
+ configurable_permissions?: Record<string, boolean> | null;
25
+ }
26
+ export interface UpdateGroupMembershipRequest {
27
+ role?: GroupMembershipRole;
28
+ configurable_permissions?: Record<string, boolean> | null;
29
+ }
@@ -0,0 +1,29 @@
1
+ import type { EnterpriseType, GetFileIdMetadataIdScope, MetadataCascadePolicyParent } from '../schemas.js';
2
+ export interface MetadataCascadePolicies {
3
+ limit?: number;
4
+ next_marker?: string | null;
5
+ prev_marker?: string | null;
6
+ entries?: Array<MetadataCascadePolicy>;
7
+ }
8
+ export interface MetadataCascadePolicy {
9
+ id: string;
10
+ type: MetadataCascadePolicyType;
11
+ owner_enterprise?: MetadataCascadePolicyOwnerEnterprise;
12
+ parent?: MetadataCascadePolicyParent;
13
+ scope?: string;
14
+ templateKey?: string;
15
+ }
16
+ export type MetadataCascadePolicyType = "metadata_cascade_policy" | (string & {});
17
+ export interface MetadataCascadePolicyOwnerEnterprise {
18
+ type?: EnterpriseType;
19
+ id?: string;
20
+ }
21
+ export interface CreateMetadataCascadePolicyRequest {
22
+ folder_id: string;
23
+ scope: GetFileIdMetadataIdScope;
24
+ templateKey: string;
25
+ }
26
+ export type PostIdApplyConflictResolution = "none" | "overwrite" | (string & {});
27
+ export interface ApplyMetadataCascadePolicyRequest {
28
+ conflict_resolution: PostIdApplyConflictResolution;
29
+ }
@@ -0,0 +1,60 @@
1
+ export interface MetadataTaxonomies {
2
+ limit?: number;
3
+ next_marker?: string | null;
4
+ prev_marker?: string | null;
5
+ entries?: Array<MetadataTaxonomy>;
6
+ }
7
+ export interface MetadataTaxonomy {
8
+ id: string;
9
+ key?: string;
10
+ displayName: string;
11
+ namespace: string;
12
+ levels?: Array<MetadataTaxonomyLevel>;
13
+ }
14
+ export interface MetadataTaxonomyAncestor {
15
+ id?: string;
16
+ displayName?: string;
17
+ level?: number;
18
+ }
19
+ export interface MetadataTaxonomyLevel {
20
+ displayName?: string;
21
+ description?: string;
22
+ level?: number;
23
+ }
24
+ export interface MetadataTaxonomyLevels {
25
+ entries?: Array<MetadataTaxonomyLevel>;
26
+ }
27
+ export interface MetadataTaxonomyNode {
28
+ id: string;
29
+ displayName: string;
30
+ level: number;
31
+ parentId?: string;
32
+ nodePath?: Array<string>;
33
+ ancestors?: Array<MetadataTaxonomyAncestor>;
34
+ }
35
+ export interface MetadataTaxonomyNodes {
36
+ limit?: number;
37
+ next_marker?: string | null;
38
+ prev_marker?: string | null;
39
+ entries?: Array<MetadataTaxonomyNode>;
40
+ }
41
+ export interface CreateMetadataTaxonomyRequest {
42
+ key?: string;
43
+ displayName: string;
44
+ namespace: string;
45
+ }
46
+ export interface UpdateMetadataTaxonomyRequest {
47
+ displayName: string;
48
+ }
49
+ export interface UpdateLevelRequest {
50
+ displayName: string;
51
+ description?: string;
52
+ }
53
+ export interface CreateNodesRequest {
54
+ displayName: string;
55
+ level: number;
56
+ parentId?: string;
57
+ }
58
+ export interface UpdateNodeRequest {
59
+ displayName?: string;
60
+ }
@@ -0,0 +1,71 @@
1
+ import type { FieldsOptions, MetadataTemplateType } from '../schemas.js';
2
+ export interface MetadataTemplate {
3
+ id: string;
4
+ type: MetadataTemplateType;
5
+ scope?: string;
6
+ templateKey?: string;
7
+ displayName?: string;
8
+ hidden?: boolean;
9
+ fields?: Array<MetadataTemplateFields>;
10
+ copyInstanceOnItemCopy?: boolean;
11
+ }
12
+ export interface MetadataTemplates {
13
+ limit?: number;
14
+ next_marker?: string | null;
15
+ prev_marker?: string | null;
16
+ entries?: Array<MetadataTemplate>;
17
+ }
18
+ export type MetadataTemplateFieldsType = "string" | "float" | "date" | "enum" | "multiSelect" | "taxonomy" | "integer" | (string & {});
19
+ export interface MetadataTemplateFieldsOptions {
20
+ key: string;
21
+ id?: string;
22
+ }
23
+ export interface FieldsOptionsRules {
24
+ multiSelect?: boolean;
25
+ selectableLevels?: Array<number>;
26
+ }
27
+ export interface MetadataTemplateFields {
28
+ type: MetadataTemplateFieldsType;
29
+ key: string;
30
+ displayName: string;
31
+ description?: string;
32
+ hidden?: boolean;
33
+ options?: Array<MetadataTemplateFieldsOptions>;
34
+ taxonomyKey?: string;
35
+ taxonomyId?: string;
36
+ namespace?: string;
37
+ optionsRules?: FieldsOptionsRules;
38
+ id?: string;
39
+ }
40
+ export type PutIdSchemaOp = "editTemplate" | "addField" | "reorderFields" | "addEnumOption" | "reorderEnumOptions" | "reorderMultiSelectOptions" | "addMultiSelectOption" | "editField" | "removeField" | "editEnumOption" | "removeEnumOption" | "editMultiSelectOption" | "removeMultiSelectOption" | (string & {});
41
+ export interface UpdateSchemaRequest {
42
+ op: PutIdSchemaOp;
43
+ data?: Record<string, unknown>;
44
+ fieldKey?: string;
45
+ fieldKeys?: Array<string>;
46
+ enumOptionKey?: string;
47
+ enumOptionKeys?: Array<string>;
48
+ multiSelectOptionKey?: string;
49
+ multiSelectOptionKeys?: Array<string>;
50
+ }
51
+ export type CreateSchemaRequestFieldsType = "string" | "float" | "date" | "enum" | "multiSelect" | "taxonomy" | (string & {});
52
+ export interface PostSchemaFields {
53
+ type: CreateSchemaRequestFieldsType;
54
+ key: string;
55
+ displayName: string;
56
+ description?: string;
57
+ hidden?: boolean;
58
+ options?: Array<FieldsOptions>;
59
+ taxonomyKey?: string;
60
+ taxonomyId?: string;
61
+ namespace?: string;
62
+ optionsRules?: FieldsOptionsRules;
63
+ }
64
+ export interface CreateSchemaRequest {
65
+ scope: string;
66
+ templateKey?: string;
67
+ displayName: string;
68
+ hidden?: boolean;
69
+ fields?: Array<PostSchemaFields>;
70
+ copyInstanceOnItemCopy?: boolean;
71
+ }
@@ -0,0 +1,13 @@
1
+ import type { FolderReference } from '../schemas.js';
2
+ export interface NotesConvertRequestBody {
3
+ content: string;
4
+ content_format: NotesConvertRequestBodyContentFormat;
5
+ parent: FolderReference;
6
+ name: string;
7
+ }
8
+ export interface NotesConvertResponse {
9
+ type: NotesConvertResponseType;
10
+ id: string;
11
+ }
12
+ export type NotesConvertRequestBodyContentFormat = "markdown" | (string & {});
13
+ export type NotesConvertResponseType = "file" | (string & {});
@@ -0,0 +1,62 @@
1
+ export interface QueryAncestorReference {
2
+ id: string;
3
+ type: string;
4
+ }
5
+ export interface QueryInsightEntry {
6
+ key: Array<string>;
7
+ type: QueryInsightEntryType;
8
+ metrics: Record<string, QueryInsightMetricResult>;
9
+ }
10
+ export interface QueryInsightMetricResult {
11
+ type: string;
12
+ values: Record<string, number>;
13
+ }
14
+ export interface QueryInsights {
15
+ insights: Array<QueryInsightEntry>;
16
+ }
17
+ export interface QueryInsightsGroupBy {
18
+ field: string;
19
+ bucket_limit?: number;
20
+ }
21
+ export interface QueryInsightsMetricDefinition {
22
+ type: QueryInsightsMetricDefinitionType;
23
+ field: string;
24
+ }
25
+ export interface QueryInsightsRequestBody {
26
+ query: QueryInsightsRequestBodyQuery;
27
+ metrics: Record<string, QueryInsightsMetricDefinition>;
28
+ }
29
+ export interface QueryOrderBy {
30
+ field_key: string;
31
+ direction: QueryOrderByDirection;
32
+ }
33
+ export interface QueryRequestBody {
34
+ query: QueryRequestBodyQuery;
35
+ order_by?: Array<QueryOrderBy>;
36
+ limit?: number;
37
+ fields?: Array<string>;
38
+ marker?: string;
39
+ }
40
+ export type QueryResultEntry = {
41
+ id: string;
42
+ type: string;
43
+ } & Record<string, unknown>;
44
+ export interface QueryResults {
45
+ entries: Array<QueryResultEntry>;
46
+ next_marker: string | null;
47
+ limit: number;
48
+ }
49
+ export type QueryInsightEntryType = "group" | "overall" | "other" | (string & {});
50
+ export type QueryInsightsMetricDefinitionType = "sum" | "avg" | "min" | "max" | "count" | (string & {});
51
+ export interface QueryInsightsRequestBodyQuery {
52
+ predicate: string;
53
+ params?: Record<string, unknown>;
54
+ ancestors?: Array<QueryAncestorReference>;
55
+ group_by?: Array<QueryInsightsGroupBy>;
56
+ }
57
+ export type QueryOrderByDirection = "asc" | "desc" | (string & {});
58
+ export interface QueryRequestBodyQuery {
59
+ predicate: string;
60
+ params?: Record<string, unknown>;
61
+ ancestors?: Array<QueryAncestorReference>;
62
+ }
@@ -0,0 +1,25 @@
1
+ import type { FileFull, FolderFull, WebLink } from '../schemas.js';
2
+ export interface RecentItem {
3
+ type?: string;
4
+ item?: RecentItemResource;
5
+ interaction_type?: RecentItemInteractionType;
6
+ interacted_at?: string;
7
+ interaction_shared_link?: string;
8
+ }
9
+ export type RecentItemResource = (FileFull & {
10
+ type: "file";
11
+ }) | (FolderFull & {
12
+ type: "folder";
13
+ }) | (WebLink & {
14
+ type: "web_link";
15
+ }) | {
16
+ type: string;
17
+ [key: string]: unknown;
18
+ };
19
+ export interface RecentItems {
20
+ limit?: number;
21
+ next_marker?: string | null;
22
+ prev_marker?: string | null;
23
+ entries?: Array<RecentItem>;
24
+ }
25
+ export type RecentItemInteractionType = "item_preview" | "item_upload" | "item_comment" | "item_open" | "item_modify" | (string & {});