@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,172 @@
1
+ import type { AiAgentAskType, AiAgentBasicGenToolEmbeddings, AiAgentExtractType, AiAgentSpreadsheetTool, AiAgentTextGenType, AiLlmEndpointParams, GroupType, UserBase } from '../schemas.js';
2
+ export type AiAgentAllowedEntity = (UserBase & {
3
+ type: "user";
4
+ }) | (GroupBase & {
5
+ type: "group";
6
+ }) | {
7
+ type: string;
8
+ [key: string]: unknown;
9
+ };
10
+ export interface AiMultipleAgentResponse {
11
+ limit?: number;
12
+ next_marker?: string | null;
13
+ prev_marker?: string | null;
14
+ entries: Array<AiSingleAgentResponseFull>;
15
+ }
16
+ export interface AiSingleAgentResponseFull {
17
+ id: string;
18
+ type?: AiSingleAgentResponseType;
19
+ origin: string;
20
+ name: string;
21
+ access_state: string;
22
+ created_by?: UserBase;
23
+ created_at?: string;
24
+ modified_by?: UserBase;
25
+ modified_at?: string;
26
+ icon_reference?: string;
27
+ allowed_entities?: Array<AiAgentAllowedEntity>;
28
+ ask?: AiStudioAgentAskResponse;
29
+ text_gen?: AiStudioAgentTextGenResponse;
30
+ extract?: AiStudioAgentExtractResponse;
31
+ }
32
+ export interface AiStudioAgentAsk {
33
+ type: AiAgentAskType;
34
+ access_state: string;
35
+ description: string;
36
+ custom_instructions?: string | null;
37
+ suggested_questions?: Array<string>;
38
+ long_text?: AiStudioAgentLongTextTool;
39
+ basic_text?: AiStudioAgentBasicTextTool;
40
+ basic_image?: AiStudioAgentBasicTextTool;
41
+ spreadsheet?: AiStudioAgentSpreadsheetTool;
42
+ long_text_multi?: AiStudioAgentLongTextTool;
43
+ basic_text_multi?: AiStudioAgentBasicTextTool;
44
+ basic_image_multi?: AiStudioAgentBasicTextTool;
45
+ }
46
+ export interface AiStudioAgentAskResponse {
47
+ type: AiAgentAskType;
48
+ access_state: string;
49
+ description: string;
50
+ custom_instructions?: string | null;
51
+ suggested_questions?: Array<string>;
52
+ long_text?: AiStudioAgentLongTextToolResponse;
53
+ basic_text?: AiStudioAgentBasicTextToolResponse;
54
+ basic_image?: AiStudioAgentBasicTextToolResponse;
55
+ spreadsheet?: AiStudioAgentSpreadsheetToolResponse;
56
+ long_text_multi?: AiStudioAgentLongTextToolResponse;
57
+ basic_text_multi?: AiStudioAgentBasicTextToolResponse;
58
+ basic_image_multi?: AiStudioAgentBasicTextToolResponse;
59
+ }
60
+ export interface AiStudioAgentBasicGenTool {
61
+ model?: string;
62
+ num_tokens_for_completion?: number;
63
+ llm_endpoint_params?: AiLlmEndpointParams;
64
+ system_message?: string;
65
+ prompt_template?: string;
66
+ embeddings?: AiAgentBasicGenToolEmbeddings;
67
+ content_template?: string;
68
+ is_custom_instructions_included?: boolean;
69
+ }
70
+ export interface AiStudioAgentBasicGenToolResponse {
71
+ model?: string;
72
+ num_tokens_for_completion?: number;
73
+ llm_endpoint_params?: AiLlmEndpointParams;
74
+ system_message?: string;
75
+ prompt_template?: string;
76
+ embeddings?: AiAgentBasicGenToolEmbeddings;
77
+ content_template?: string;
78
+ is_custom_instructions_included?: boolean;
79
+ warnings?: Array<string>;
80
+ }
81
+ export interface AiStudioAgentBasicTextTool {
82
+ model?: string;
83
+ num_tokens_for_completion?: number;
84
+ llm_endpoint_params?: AiLlmEndpointParams;
85
+ system_message?: string;
86
+ prompt_template?: string;
87
+ is_custom_instructions_included?: boolean;
88
+ }
89
+ export interface AiStudioAgentBasicTextToolResponse {
90
+ model?: string;
91
+ num_tokens_for_completion?: number;
92
+ llm_endpoint_params?: AiLlmEndpointParams;
93
+ system_message?: string;
94
+ prompt_template?: string;
95
+ is_custom_instructions_included?: boolean;
96
+ warnings?: Array<string>;
97
+ }
98
+ export interface AiStudioAgentExtract {
99
+ type: AiAgentExtractType;
100
+ access_state: string;
101
+ description: string;
102
+ custom_instructions?: string | null;
103
+ long_text?: AiStudioAgentLongTextTool;
104
+ basic_text?: AiStudioAgentBasicTextTool;
105
+ basic_image?: AiStudioAgentBasicTextTool;
106
+ }
107
+ export interface AiStudioAgentExtractResponse {
108
+ type: AiAgentExtractType;
109
+ access_state: string;
110
+ description: string;
111
+ custom_instructions?: string | null;
112
+ long_text?: AiStudioAgentLongTextToolResponse;
113
+ basic_text?: AiStudioAgentBasicTextToolResponse;
114
+ basic_image?: AiStudioAgentBasicTextToolResponse;
115
+ }
116
+ export interface AiStudioAgentLongTextTool {
117
+ model?: string;
118
+ num_tokens_for_completion?: number;
119
+ llm_endpoint_params?: AiLlmEndpointParams;
120
+ system_message?: string;
121
+ prompt_template?: string;
122
+ embeddings?: AiAgentBasicGenToolEmbeddings;
123
+ is_custom_instructions_included?: boolean;
124
+ }
125
+ export interface AiStudioAgentLongTextToolResponse {
126
+ model?: string;
127
+ num_tokens_for_completion?: number;
128
+ llm_endpoint_params?: AiLlmEndpointParams;
129
+ system_message?: string;
130
+ prompt_template?: string;
131
+ embeddings?: AiAgentBasicGenToolEmbeddings;
132
+ is_custom_instructions_included?: boolean;
133
+ warnings?: Array<string>;
134
+ }
135
+ export type AiStudioAgentSpreadsheetTool = AiAgentSpreadsheetTool;
136
+ export interface AiStudioAgentSpreadsheetToolResponse {
137
+ model?: string;
138
+ num_tokens_for_completion?: number;
139
+ llm_endpoint_params?: AiLlmEndpointParams;
140
+ warnings?: Array<string>;
141
+ }
142
+ export interface AiStudioAgentTextGen {
143
+ type: AiAgentTextGenType;
144
+ access_state: string;
145
+ description: string;
146
+ custom_instructions?: string | null;
147
+ suggested_questions?: Array<string>;
148
+ basic_gen?: AiStudioAgentBasicGenTool;
149
+ }
150
+ export interface AiStudioAgentTextGenResponse {
151
+ type: AiAgentTextGenType;
152
+ access_state: string;
153
+ description: string;
154
+ custom_instructions?: string | null;
155
+ suggested_questions?: Array<string>;
156
+ basic_gen?: AiStudioAgentBasicGenToolResponse;
157
+ }
158
+ export interface CreateAiAgent {
159
+ type: AiSingleAgentResponseType;
160
+ name: string;
161
+ access_state: string;
162
+ icon_reference?: string;
163
+ allowed_entities?: Array<AiAgentAllowedEntity>;
164
+ ask?: AiStudioAgentAsk;
165
+ text_gen?: AiStudioAgentTextGen;
166
+ extract?: AiStudioAgentExtract;
167
+ }
168
+ export interface GroupBase {
169
+ id: string;
170
+ type: GroupType;
171
+ }
172
+ export type AiSingleAgentResponseType = "ai_agent" | (string & {});
@@ -0,0 +1,34 @@
1
+ import type { AppItem, FileBase, FolderType, TrashWebLinkType } from '../schemas.js';
2
+ export type AppItemAssociatedItem = (FileBase & {
3
+ type: "file";
4
+ }) | (FolderBase & {
5
+ type: "folder";
6
+ }) | (WebLinkBase & {
7
+ type: "web_link";
8
+ }) | {
9
+ type: string;
10
+ [key: string]: unknown;
11
+ };
12
+ export interface AppItemAssociation {
13
+ id: string;
14
+ type: AppItemAssociationType;
15
+ app_item: AppItem;
16
+ item: AppItemAssociatedItem;
17
+ }
18
+ export interface AppItemAssociations {
19
+ limit?: number;
20
+ next_marker?: string | null;
21
+ prev_marker?: string | null;
22
+ entries?: Array<AppItemAssociation>;
23
+ }
24
+ export interface FolderBase {
25
+ id: string;
26
+ etag?: string | null;
27
+ type: FolderType;
28
+ }
29
+ export interface WebLinkBase {
30
+ id: string;
31
+ type: TrashWebLinkType;
32
+ etag?: string;
33
+ }
34
+ export type AppItemAssociationType = "app_item_association" | (string & {});
@@ -0,0 +1,27 @@
1
+ export interface Archive {
2
+ id: string;
3
+ type: ArchiveType;
4
+ name: string;
5
+ size: number;
6
+ description?: string | null;
7
+ owned_by?: ArchiveOwnedBy;
8
+ }
9
+ export interface Archives {
10
+ entries?: Array<Archive>;
11
+ limit?: number;
12
+ next_marker?: string | null;
13
+ }
14
+ export type ArchiveType = "archive" | (string & {});
15
+ export interface ArchiveOwnedBy {
16
+ id: string;
17
+ type: string;
18
+ }
19
+ export interface CreateArchiveRequest {
20
+ name: string;
21
+ description?: string;
22
+ storage_policy_id?: string;
23
+ }
24
+ export interface UpdateArchiveRequest {
25
+ name?: string;
26
+ description?: string;
27
+ }
@@ -0,0 +1,43 @@
1
+ import type { AccessTokenType, ResourceScope } from '../schemas.js';
2
+ export interface AccessToken {
3
+ access_token?: string;
4
+ expires_in?: number;
5
+ token_type?: AccessTokenType;
6
+ restricted_to?: Array<ResourceScope>;
7
+ refresh_token?: string;
8
+ issued_token_type?: AccessTokenIssuedTokenType;
9
+ }
10
+ export interface PostOAuth2Revoke {
11
+ client_id?: string;
12
+ client_secret?: string;
13
+ token?: string;
14
+ }
15
+ export interface PostOAuth2Token {
16
+ grant_type: PostOAuth2TokenGrantType;
17
+ client_id?: string;
18
+ client_secret?: string;
19
+ code?: string;
20
+ refresh_token?: string;
21
+ assertion?: string;
22
+ subject_token?: string;
23
+ subject_token_type?: AccessTokenIssuedTokenType;
24
+ actor_token?: string;
25
+ actor_token_type?: PostOAuth2TokenActorTokenType;
26
+ scope?: string;
27
+ resource?: string;
28
+ box_subject_type?: PostOAuth2TokenBoxSubjectType;
29
+ box_subject_id?: string;
30
+ box_shared_link?: string;
31
+ }
32
+ export interface PostOAuth2TokenRefreshAccessToken {
33
+ grant_type: PostOAuth2TokenRefreshAccessTokenGrantType;
34
+ client_id: string;
35
+ client_secret: string;
36
+ refresh_token: string;
37
+ }
38
+ export type AccessTokenIssuedTokenType = "urn:ietf:params:oauth:token-type:access_token" | (string & {});
39
+ export type PostOAuth2TokenGrantType = "authorization_code" | "refresh_token" | "client_credentials" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:token-exchange" | (string & {});
40
+ export type PostOAuth2TokenActorTokenType = "urn:ietf:params:oauth:token-type:id_token" | (string & {});
41
+ export type PostOAuth2TokenBoxSubjectType = "enterprise" | "user" | (string & {});
42
+ export type PostOAuth2TokenRefreshAccessTokenGrantType = "refresh_token" | (string & {});
43
+ export type GetAuthorizeResponseType = "code" | (string & {});
@@ -0,0 +1,29 @@
1
+ import type { UserMini } from '../schemas.js';
2
+ export interface AutomateWorkflowAction {
3
+ id: string;
4
+ type: AutomateWorkflowActionType;
5
+ action_type: AutomateWorkflowActionType2;
6
+ description?: string;
7
+ created_at?: string;
8
+ updated_at?: string;
9
+ created_by?: UserMini;
10
+ updated_by?: UserMini;
11
+ workflow: AutomateWorkflowReference;
12
+ }
13
+ export interface AutomateWorkflowReference {
14
+ id: string;
15
+ type: AutomateWorkflowReferenceType;
16
+ name?: string;
17
+ }
18
+ export interface AutomateWorkflows {
19
+ entries?: Array<AutomateWorkflowAction>;
20
+ limit?: number;
21
+ next_marker?: string | null;
22
+ }
23
+ export interface AutomateWorkflowStartRequest {
24
+ workflow_action_id: string;
25
+ file_ids: Array<string>;
26
+ }
27
+ export type AutomateWorkflowActionType = "workflow_action" | (string & {});
28
+ export type AutomateWorkflowActionType2 = "run_workflow" | (string & {});
29
+ export type AutomateWorkflowReferenceType = "workflow" | (string & {});
@@ -0,0 +1,11 @@
1
+ export interface UserAvatar {
2
+ pic_urls?: UserAvatarPicUrls;
3
+ }
4
+ export interface UserAvatarPicUrls {
5
+ small?: string;
6
+ large?: string;
7
+ preview?: string;
8
+ }
9
+ export interface CreateUserAvatarRequest {
10
+ pic: Blob;
11
+ }
@@ -0,0 +1,47 @@
1
+ import type { CollectionsOrder } from '../schemas.js';
2
+ export interface UploadedPart {
3
+ part?: UploadPart;
4
+ }
5
+ export interface UploadPart {
6
+ part_id?: string;
7
+ offset?: number;
8
+ size?: number;
9
+ sha1?: string;
10
+ }
11
+ export interface UploadParts {
12
+ total_count?: number;
13
+ limit?: number;
14
+ offset?: number;
15
+ order?: Array<CollectionsOrder>;
16
+ entries?: Array<UploadPart>;
17
+ }
18
+ export interface UploadSession {
19
+ id?: string;
20
+ type?: UploadSessionType;
21
+ session_expires_at?: string;
22
+ part_size?: number;
23
+ total_parts?: number;
24
+ num_parts_processed?: number;
25
+ session_endpoints?: UploadSessionEndpoints;
26
+ }
27
+ export type UploadSessionType = "upload_session" | (string & {});
28
+ export interface UploadSessionEndpoints {
29
+ upload_part?: string;
30
+ commit?: string;
31
+ abort?: string;
32
+ list_parts?: string;
33
+ status?: string;
34
+ log_event?: string;
35
+ }
36
+ export interface CreateFileUploadSessionRequest {
37
+ folder_id: string;
38
+ file_size: number;
39
+ file_name: string;
40
+ }
41
+ export interface CreateFileVersionUploadSessionRequest {
42
+ file_size: number;
43
+ file_name?: string;
44
+ }
45
+ export interface CommitFileUploadSessionRequest {
46
+ parts: Array<UploadPart>;
47
+ }
@@ -0,0 +1,66 @@
1
+ import type { ClassificationTemplate2, EnterpriseType, MetadataTemplateType } from '../schemas.js';
2
+ export interface ClassificationTemplate {
3
+ id: string;
4
+ type: MetadataTemplateType;
5
+ scope: string;
6
+ templateKey: ClassificationTemplate2;
7
+ displayName: ClassificationTemplateDisplayName;
8
+ hidden?: boolean;
9
+ copyInstanceOnItemCopy?: boolean;
10
+ fields: Array<ClassificationTemplateFields>;
11
+ }
12
+ export type ClassificationTemplateDisplayName = "Classification" | (string & {});
13
+ export type FieldsType = "enum" | (string & {});
14
+ export type FieldsKey = "Box__Security__Classification__Key" | (string & {});
15
+ export interface StaticConfigClassification {
16
+ classificationDefinition?: string;
17
+ colorID?: number;
18
+ }
19
+ export interface OptionsStaticConfig {
20
+ classification?: StaticConfigClassification;
21
+ }
22
+ export interface ClassificationTemplateFieldsOptions {
23
+ id: string;
24
+ key: string;
25
+ staticConfig?: OptionsStaticConfig;
26
+ }
27
+ export interface ClassificationTemplateFields {
28
+ id: string;
29
+ type: FieldsType;
30
+ key: FieldsKey;
31
+ displayName: ClassificationTemplateDisplayName;
32
+ hidden?: boolean;
33
+ options: Array<ClassificationTemplateFieldsOptions>;
34
+ }
35
+ export type PutAddOp = "addEnumOption" | (string & {});
36
+ export interface PutAddData {
37
+ key: string;
38
+ staticConfig?: OptionsStaticConfig;
39
+ }
40
+ export interface UpdateClassificationAddRequest {
41
+ op: PutAddOp;
42
+ fieldKey: FieldsKey;
43
+ data: PutAddData;
44
+ }
45
+ export type PutUpdateOp = "editEnumOption" | (string & {});
46
+ export interface UpdateClassificationUpdateRequest {
47
+ op: PutUpdateOp;
48
+ fieldKey: FieldsKey;
49
+ enumOptionKey: string;
50
+ data: PutAddData;
51
+ }
52
+ export interface PostMetadataTemplateSchemaClassificationsFields {
53
+ type: FieldsType;
54
+ key: FieldsKey;
55
+ displayName: ClassificationTemplateDisplayName;
56
+ hidden?: boolean;
57
+ options: Array<PutAddData>;
58
+ }
59
+ export interface CreateMetadataTemplateSchemaClassificationsRequest {
60
+ scope: EnterpriseType;
61
+ templateKey: ClassificationTemplate2;
62
+ displayName: ClassificationTemplateDisplayName;
63
+ hidden?: boolean;
64
+ copyInstanceOnItemCopy?: boolean;
65
+ fields: Array<PostMetadataTemplateSchemaClassificationsFields>;
66
+ }
@@ -0,0 +1,21 @@
1
+ import type { CollaborationAllowlistEntryEnterprise } from '../schemas.js';
2
+ export interface CollaborationAllowlistEntries {
3
+ limit?: number;
4
+ next_marker?: string | null;
5
+ prev_marker?: string | null;
6
+ entries?: Array<CollaborationAllowlistEntry>;
7
+ }
8
+ export interface CollaborationAllowlistEntry {
9
+ id?: string;
10
+ type?: CollaborationAllowlistEntryType;
11
+ domain?: string;
12
+ direction?: CollaborationAllowlistEntryDirection;
13
+ enterprise?: CollaborationAllowlistEntryEnterprise;
14
+ created_at?: string;
15
+ }
16
+ export type CollaborationAllowlistEntryType = "collaboration_whitelist_entry" | (string & {});
17
+ export type CollaborationAllowlistEntryDirection = "inbound" | "outbound" | "both" | (string & {});
18
+ export interface CreateCollaborationAllowlistEntryRequest {
19
+ domain: string;
20
+ direction: CollaborationAllowlistEntryDirection;
21
+ }
@@ -0,0 +1,19 @@
1
+ import type { AttributesParent, CollaborationAllowlistEntryEnterprise, UserMini } from '../schemas.js';
2
+ export interface CollaborationAllowlistExemptTarget {
3
+ id?: string;
4
+ type?: CollaborationAllowlistExemptTargetType;
5
+ enterprise?: CollaborationAllowlistEntryEnterprise;
6
+ user?: UserMini;
7
+ created_at?: string;
8
+ modified_at?: string;
9
+ }
10
+ export interface CollaborationAllowlistExemptTargets {
11
+ limit?: number;
12
+ next_marker?: string | null;
13
+ prev_marker?: string | null;
14
+ entries?: Array<CollaborationAllowlistExemptTarget>;
15
+ }
16
+ export type CollaborationAllowlistExemptTargetType = "collaboration_whitelist_exempt_target" | (string & {});
17
+ export interface CreateCollaborationAllowlistExemptTargetRequest {
18
+ user: AttributesParent;
19
+ }
@@ -0,0 +1,15 @@
1
+ import type { Collection, CollectionsOrder, Item } from '../schemas.js';
2
+ export interface Collections {
3
+ total_count?: number;
4
+ limit?: number;
5
+ offset?: number;
6
+ order?: Array<CollectionsOrder>;
7
+ entries?: Array<Collection>;
8
+ }
9
+ export interface ItemsOffsetPaginated {
10
+ total_count?: number;
11
+ limit?: number;
12
+ offset?: number;
13
+ order?: Array<CollectionsOrder>;
14
+ entries?: Array<Item>;
15
+ }
@@ -0,0 +1,33 @@
1
+ import type { CollectionsOrder, CommentItem, UserMini } from '../schemas.js';
2
+ export interface CommentFull {
3
+ id?: string;
4
+ type?: CommentType;
5
+ is_reply_comment?: boolean;
6
+ message?: string;
7
+ created_by?: UserMini;
8
+ created_at?: string;
9
+ modified_at?: string;
10
+ item?: CommentItem;
11
+ tagged_message?: string;
12
+ }
13
+ export interface Comments {
14
+ total_count?: number;
15
+ limit?: number;
16
+ offset?: number;
17
+ order?: Array<CollectionsOrder>;
18
+ entries?: Array<CommentFull>;
19
+ }
20
+ export type CommentType = "comment" | (string & {});
21
+ export interface UpdateCommentRequest {
22
+ message?: string;
23
+ }
24
+ export type ItemType = "file" | "comment" | (string & {});
25
+ export interface PostItem {
26
+ id: string;
27
+ type: ItemType;
28
+ }
29
+ export interface CreateCommentRequest {
30
+ message: string;
31
+ tagged_message?: string;
32
+ item: PostItem;
33
+ }
@@ -0,0 +1,20 @@
1
+ import type { UserMini } from '../schemas.js';
2
+ export interface DevicePinner {
3
+ id?: string;
4
+ type?: DevicePinnerType;
5
+ owned_by?: UserMini;
6
+ product_name?: string;
7
+ }
8
+ export interface DevicePinners {
9
+ entries?: Array<DevicePinner>;
10
+ limit?: number;
11
+ next_marker?: number;
12
+ order?: Array<DevicePinnersOrder>;
13
+ }
14
+ export type DevicePinnerType = "device_pinner" | (string & {});
15
+ export type OrderBy = "id" | (string & {});
16
+ export type DevicePinnersOrderDirection = "asc" | "desc" | (string & {});
17
+ export interface DevicePinnersOrder {
18
+ by?: OrderBy;
19
+ direction?: DevicePinnersOrderDirection;
20
+ }
@@ -0,0 +1,40 @@
1
+ import type { DocGenBatchBase, DocGenJobFailures, DocGenJobStatus, DocGenJobType, EnterpriseReference, FileReference, FileVersionBase, UserBase } from '../schemas.js';
2
+ export interface DocGenBatchCreateRequest {
3
+ file: FileReference;
4
+ file_version?: FileVersionBase;
5
+ input_source: string;
6
+ destination_folder: DocGenBatchCreateRequestDestinationFolder;
7
+ output_type: string;
8
+ document_generation_data: Array<DocGenDocumentGenerationData>;
9
+ }
10
+ export interface DocGenDocumentGenerationData {
11
+ generated_file_name: string;
12
+ user_input: Record<string, unknown>;
13
+ }
14
+ export interface DocGenJobFull {
15
+ id: string;
16
+ type: DocGenJobType;
17
+ batch: DocGenBatchBase;
18
+ template_file: FileReference;
19
+ template_file_version: FileVersionBase;
20
+ output_file?: FileReference | null;
21
+ output_file_version?: FileVersionBase | null;
22
+ status: DocGenJobStatus;
23
+ output_type: string;
24
+ failures?: DocGenJobFailures | null;
25
+ created_at?: string;
26
+ created_by: UserBase;
27
+ enterprise: EnterpriseReference;
28
+ source: string;
29
+ }
30
+ export interface DocGenJobsFull {
31
+ limit?: number;
32
+ next_marker?: string | null;
33
+ prev_marker?: string | null;
34
+ entries?: Array<DocGenJobFull>;
35
+ }
36
+ export type DestinationFolderType = "folder" | (string & {});
37
+ export interface DocGenBatchCreateRequestDestinationFolder {
38
+ type: DestinationFolderType;
39
+ id: string;
40
+ }
@@ -0,0 +1,29 @@
1
+ import type { FileReference } from '../schemas.js';
2
+ export interface DocGenTag {
3
+ tag_content: string;
4
+ tag_type: DocGenTagType;
5
+ json_paths: Array<string>;
6
+ }
7
+ export interface DocGenTags {
8
+ limit?: number;
9
+ next_marker?: string | null;
10
+ prev_marker?: string | null;
11
+ entries?: Array<DocGenTag>;
12
+ }
13
+ export interface DocGenTemplate {
14
+ file?: FileReference;
15
+ file_name?: string | null;
16
+ }
17
+ export interface DocGenTemplateBase {
18
+ file?: FileReference;
19
+ }
20
+ export interface DocGenTemplateCreateRequest {
21
+ file: FileReference;
22
+ }
23
+ export interface DocGenTemplates {
24
+ limit?: number;
25
+ next_marker?: string | null;
26
+ prev_marker?: string | null;
27
+ entries?: Array<DocGenTemplate>;
28
+ }
29
+ export type DocGenTagType = "text" | "arithmetic" | "conditional" | "for-loop" | "table-loop" | "image" | (string & {});
@@ -0,0 +1,14 @@
1
+ export interface EmailAlias {
2
+ id?: string;
3
+ type?: EmailAliasType;
4
+ email?: string;
5
+ is_confirmed?: boolean;
6
+ }
7
+ export interface EmailAliases {
8
+ total_count?: number;
9
+ entries?: Array<EmailAlias>;
10
+ }
11
+ export type EmailAliasType = "email_alias" | (string & {});
12
+ export interface CreateUserIdRequest {
13
+ email: string;
14
+ }