@unofficialbox/box-open-sdk 0.4.0 → 0.4.1

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 (232) hide show
  1. package/dist/cjs/models/schemas/ai.js +3 -0
  2. package/dist/cjs/models/schemas/ai_studio.js +3 -0
  3. package/dist/cjs/models/schemas/app_item_associations.js +3 -0
  4. package/dist/cjs/models/schemas/archives.js +3 -0
  5. package/dist/cjs/models/schemas/authorization.js +3 -0
  6. package/dist/cjs/models/schemas/automate_workflows.js +3 -0
  7. package/dist/cjs/models/schemas/avatars.js +3 -0
  8. package/dist/cjs/models/schemas/chunked_uploads.js +3 -0
  9. package/dist/cjs/models/schemas/classifications.js +3 -0
  10. package/dist/cjs/models/schemas/collaboration_allowlist_entries.js +3 -0
  11. package/dist/cjs/models/schemas/collaboration_allowlist_exempt_targets.js +3 -0
  12. package/dist/cjs/models/schemas/collections.js +3 -0
  13. package/dist/cjs/models/schemas/comments.js +3 -0
  14. package/dist/cjs/models/schemas/device_pinners.js +3 -0
  15. package/dist/cjs/models/schemas/docgen.js +3 -0
  16. package/dist/cjs/models/schemas/docgen_template.js +3 -0
  17. package/dist/cjs/models/schemas/email_aliases.js +3 -0
  18. package/dist/cjs/models/schemas/enterprise_configurations.js +3 -0
  19. package/dist/cjs/models/schemas/events.js +3 -0
  20. package/dist/cjs/models/schemas/external_users.js +3 -0
  21. package/dist/cjs/models/schemas/file_requests.js +3 -0
  22. package/dist/cjs/models/schemas/file_version_legal_holds.js +3 -0
  23. package/dist/cjs/models/schemas/file_version_retentions.js +3 -0
  24. package/dist/cjs/models/schemas/file_versions.js +3 -0
  25. package/dist/cjs/models/schemas/files.js +3 -0
  26. package/dist/cjs/models/schemas/folder_locks.js +3 -0
  27. package/dist/cjs/models/schemas/folders.js +3 -0
  28. package/dist/cjs/models/schemas/groups.js +3 -0
  29. package/dist/cjs/models/schemas/hub_collaborations.js +3 -0
  30. package/dist/cjs/models/schemas/hub_document.js +3 -0
  31. package/dist/cjs/models/schemas/hub_items.js +3 -0
  32. package/dist/cjs/models/schemas/hubs.js +3 -0
  33. package/dist/cjs/models/schemas/integration_mappings.js +3 -0
  34. package/dist/cjs/models/schemas/invites.js +3 -0
  35. package/dist/cjs/models/schemas/legal_hold_policies.js +3 -0
  36. package/dist/cjs/models/schemas/legal_hold_policy_assignments.js +3 -0
  37. package/dist/cjs/models/schemas/list_collaborations.js +3 -0
  38. package/dist/cjs/models/schemas/memberships.js +3 -0
  39. package/dist/cjs/models/schemas/metadata_cascade_policies.js +3 -0
  40. package/dist/cjs/models/schemas/metadata_taxonomies.js +3 -0
  41. package/dist/cjs/models/schemas/metadata_templates.js +3 -0
  42. package/dist/cjs/models/schemas/notes.js +3 -0
  43. package/dist/cjs/models/schemas/query.js +3 -0
  44. package/dist/cjs/models/schemas/recent_items.js +3 -0
  45. package/dist/cjs/models/schemas/retention_policies.js +3 -0
  46. package/dist/cjs/models/schemas/retention_policy_assignments.js +3 -0
  47. package/dist/cjs/models/schemas/search.js +3 -0
  48. package/dist/cjs/models/schemas/session_termination.js +3 -0
  49. package/dist/cjs/models/schemas/shared_links_folders.js +3 -0
  50. package/dist/cjs/models/schemas/shield_information_barrier_reports.js +3 -0
  51. package/dist/cjs/models/schemas/shield_information_barrier_segment_members.js +3 -0
  52. package/dist/cjs/models/schemas/shield_information_barrier_segment_restrictions.js +3 -0
  53. package/dist/cjs/models/schemas/shield_information_barrier_segments.js +3 -0
  54. package/dist/cjs/models/schemas/shield_information_barriers.js +3 -0
  55. package/dist/cjs/models/schemas/shield_lists.js +3 -0
  56. package/dist/cjs/models/schemas/sign_requests.js +3 -0
  57. package/dist/cjs/models/schemas/sign_templates.js +3 -0
  58. package/dist/cjs/models/schemas/skills.js +3 -0
  59. package/dist/cjs/models/schemas/storage_policies.js +3 -0
  60. package/dist/cjs/models/schemas/storage_policy_assignments.js +3 -0
  61. package/dist/cjs/models/schemas/task_assignments.js +3 -0
  62. package/dist/cjs/models/schemas/tasks.js +3 -0
  63. package/dist/cjs/models/schemas/terms_of_service_user_statuses.js +3 -0
  64. package/dist/cjs/models/schemas/terms_of_services.js +3 -0
  65. package/dist/cjs/models/schemas/transfer.js +3 -0
  66. package/dist/cjs/models/schemas/trashed_files.js +3 -0
  67. package/dist/cjs/models/schemas/trashed_folders.js +3 -0
  68. package/dist/cjs/models/schemas/trashed_items.js +3 -0
  69. package/dist/cjs/models/schemas/trashed_web_links.js +3 -0
  70. package/dist/cjs/models/schemas/uploads.js +3 -0
  71. package/dist/cjs/models/schemas/user_collaborations.js +3 -0
  72. package/dist/cjs/models/schemas/users.js +3 -0
  73. package/dist/cjs/models/schemas/web_links.js +3 -0
  74. package/dist/cjs/models/schemas/webhooks.js +3 -0
  75. package/dist/cjs/models/schemas/workflows.js +3 -0
  76. package/dist/cjs/models/schemas/zip_downloads.js +3 -0
  77. package/dist/cjs/models/schemas.js +90 -0
  78. package/dist/esm/models/schemas/ai.js +2 -0
  79. package/dist/esm/models/schemas/ai_studio.js +2 -0
  80. package/dist/esm/models/schemas/app_item_associations.js +2 -0
  81. package/dist/esm/models/schemas/archives.js +2 -0
  82. package/dist/esm/models/schemas/authorization.js +2 -0
  83. package/dist/esm/models/schemas/automate_workflows.js +2 -0
  84. package/dist/esm/models/schemas/avatars.js +2 -0
  85. package/dist/esm/models/schemas/chunked_uploads.js +2 -0
  86. package/dist/esm/models/schemas/classifications.js +2 -0
  87. package/dist/esm/models/schemas/collaboration_allowlist_entries.js +2 -0
  88. package/dist/esm/models/schemas/collaboration_allowlist_exempt_targets.js +2 -0
  89. package/dist/esm/models/schemas/collections.js +2 -0
  90. package/dist/esm/models/schemas/comments.js +2 -0
  91. package/dist/esm/models/schemas/device_pinners.js +2 -0
  92. package/dist/esm/models/schemas/docgen.js +2 -0
  93. package/dist/esm/models/schemas/docgen_template.js +2 -0
  94. package/dist/esm/models/schemas/email_aliases.js +2 -0
  95. package/dist/esm/models/schemas/enterprise_configurations.js +2 -0
  96. package/dist/esm/models/schemas/events.js +2 -0
  97. package/dist/esm/models/schemas/external_users.js +2 -0
  98. package/dist/esm/models/schemas/file_requests.js +2 -0
  99. package/dist/esm/models/schemas/file_version_legal_holds.js +2 -0
  100. package/dist/esm/models/schemas/file_version_retentions.js +2 -0
  101. package/dist/esm/models/schemas/file_versions.js +2 -0
  102. package/dist/esm/models/schemas/files.js +2 -0
  103. package/dist/esm/models/schemas/folder_locks.js +2 -0
  104. package/dist/esm/models/schemas/folders.js +2 -0
  105. package/dist/esm/models/schemas/groups.js +2 -0
  106. package/dist/esm/models/schemas/hub_collaborations.js +2 -0
  107. package/dist/esm/models/schemas/hub_document.js +2 -0
  108. package/dist/esm/models/schemas/hub_items.js +2 -0
  109. package/dist/esm/models/schemas/hubs.js +2 -0
  110. package/dist/esm/models/schemas/integration_mappings.js +2 -0
  111. package/dist/esm/models/schemas/invites.js +2 -0
  112. package/dist/esm/models/schemas/legal_hold_policies.js +2 -0
  113. package/dist/esm/models/schemas/legal_hold_policy_assignments.js +2 -0
  114. package/dist/esm/models/schemas/list_collaborations.js +2 -0
  115. package/dist/esm/models/schemas/memberships.js +2 -0
  116. package/dist/esm/models/schemas/metadata_cascade_policies.js +2 -0
  117. package/dist/esm/models/schemas/metadata_taxonomies.js +2 -0
  118. package/dist/esm/models/schemas/metadata_templates.js +2 -0
  119. package/dist/esm/models/schemas/notes.js +2 -0
  120. package/dist/esm/models/schemas/query.js +2 -0
  121. package/dist/esm/models/schemas/recent_items.js +2 -0
  122. package/dist/esm/models/schemas/retention_policies.js +2 -0
  123. package/dist/esm/models/schemas/retention_policy_assignments.js +2 -0
  124. package/dist/esm/models/schemas/search.js +2 -0
  125. package/dist/esm/models/schemas/session_termination.js +2 -0
  126. package/dist/esm/models/schemas/shared_links_folders.js +2 -0
  127. package/dist/esm/models/schemas/shield_information_barrier_reports.js +2 -0
  128. package/dist/esm/models/schemas/shield_information_barrier_segment_members.js +2 -0
  129. package/dist/esm/models/schemas/shield_information_barrier_segment_restrictions.js +2 -0
  130. package/dist/esm/models/schemas/shield_information_barrier_segments.js +2 -0
  131. package/dist/esm/models/schemas/shield_information_barriers.js +2 -0
  132. package/dist/esm/models/schemas/shield_lists.js +2 -0
  133. package/dist/esm/models/schemas/sign_requests.js +2 -0
  134. package/dist/esm/models/schemas/sign_templates.js +2 -0
  135. package/dist/esm/models/schemas/skills.js +2 -0
  136. package/dist/esm/models/schemas/storage_policies.js +2 -0
  137. package/dist/esm/models/schemas/storage_policy_assignments.js +2 -0
  138. package/dist/esm/models/schemas/task_assignments.js +2 -0
  139. package/dist/esm/models/schemas/tasks.js +2 -0
  140. package/dist/esm/models/schemas/terms_of_service_user_statuses.js +2 -0
  141. package/dist/esm/models/schemas/terms_of_services.js +2 -0
  142. package/dist/esm/models/schemas/transfer.js +2 -0
  143. package/dist/esm/models/schemas/trashed_files.js +2 -0
  144. package/dist/esm/models/schemas/trashed_folders.js +2 -0
  145. package/dist/esm/models/schemas/trashed_items.js +2 -0
  146. package/dist/esm/models/schemas/trashed_web_links.js +2 -0
  147. package/dist/esm/models/schemas/uploads.js +2 -0
  148. package/dist/esm/models/schemas/user_collaborations.js +2 -0
  149. package/dist/esm/models/schemas/users.js +2 -0
  150. package/dist/esm/models/schemas/web_links.js +2 -0
  151. package/dist/esm/models/schemas/webhooks.js +2 -0
  152. package/dist/esm/models/schemas/workflows.js +2 -0
  153. package/dist/esm/models/schemas/zip_downloads.js +2 -0
  154. package/dist/esm/models/schemas.js +76 -1
  155. package/dist/types/models/schemas/ai.d.ts +240 -0
  156. package/dist/types/models/schemas/ai_studio.d.ts +172 -0
  157. package/dist/types/models/schemas/app_item_associations.d.ts +34 -0
  158. package/dist/types/models/schemas/archives.d.ts +27 -0
  159. package/dist/types/models/schemas/authorization.d.ts +43 -0
  160. package/dist/types/models/schemas/automate_workflows.d.ts +29 -0
  161. package/dist/types/models/schemas/avatars.d.ts +11 -0
  162. package/dist/types/models/schemas/chunked_uploads.d.ts +47 -0
  163. package/dist/types/models/schemas/classifications.d.ts +66 -0
  164. package/dist/types/models/schemas/collaboration_allowlist_entries.d.ts +21 -0
  165. package/dist/types/models/schemas/collaboration_allowlist_exempt_targets.d.ts +19 -0
  166. package/dist/types/models/schemas/collections.d.ts +15 -0
  167. package/dist/types/models/schemas/comments.d.ts +33 -0
  168. package/dist/types/models/schemas/device_pinners.d.ts +20 -0
  169. package/dist/types/models/schemas/docgen.d.ts +40 -0
  170. package/dist/types/models/schemas/docgen_template.d.ts +29 -0
  171. package/dist/types/models/schemas/email_aliases.d.ts +14 -0
  172. package/dist/types/models/schemas/enterprise_configurations.d.ts +251 -0
  173. package/dist/types/models/schemas/events.d.ts +71 -0
  174. package/dist/types/models/schemas/external_users.d.ts +16 -0
  175. package/dist/types/models/schemas/file_requests.d.ts +41 -0
  176. package/dist/types/models/schemas/file_version_legal_holds.d.ts +16 -0
  177. package/dist/types/models/schemas/file_version_retentions.d.ts +17 -0
  178. package/dist/types/models/schemas/file_versions.d.ts +32 -0
  179. package/dist/types/models/schemas/files.d.ts +27 -0
  180. package/dist/types/models/schemas/folder_locks.d.ts +27 -0
  181. package/dist/types/models/schemas/folders.d.ts +28 -0
  182. package/dist/types/models/schemas/groups.d.ts +42 -0
  183. package/dist/types/models/schemas/hub_collaborations.d.ts +57 -0
  184. package/dist/types/models/schemas/hub_document.d.ts +67 -0
  185. package/dist/types/models/schemas/hub_items.d.ts +46 -0
  186. package/dist/types/models/schemas/hubs.d.ts +43 -0
  187. package/dist/types/models/schemas/integration_mappings.d.ts +83 -0
  188. package/dist/types/models/schemas/invites.d.ts +19 -0
  189. package/dist/types/models/schemas/legal_hold_policies.d.ts +43 -0
  190. package/dist/types/models/schemas/legal_hold_policy_assignments.d.ts +43 -0
  191. package/dist/types/models/schemas/list_collaborations.d.ts +14 -0
  192. package/dist/types/models/schemas/memberships.d.ts +29 -0
  193. package/dist/types/models/schemas/metadata_cascade_policies.d.ts +29 -0
  194. package/dist/types/models/schemas/metadata_taxonomies.d.ts +60 -0
  195. package/dist/types/models/schemas/metadata_templates.d.ts +71 -0
  196. package/dist/types/models/schemas/notes.d.ts +13 -0
  197. package/dist/types/models/schemas/query.d.ts +62 -0
  198. package/dist/types/models/schemas/recent_items.d.ts +25 -0
  199. package/dist/types/models/schemas/retention_policies.d.ts +60 -0
  200. package/dist/types/models/schemas/retention_policy_assignments.d.ts +47 -0
  201. package/dist/types/models/schemas/search.d.ts +98 -0
  202. package/dist/types/models/schemas/session_termination.d.ts +10 -0
  203. package/dist/types/models/schemas/shared_links_folders.d.ts +11 -0
  204. package/dist/types/models/schemas/shield_information_barrier_reports.d.ts +27 -0
  205. package/dist/types/models/schemas/shield_information_barrier_segment_members.d.ts +24 -0
  206. package/dist/types/models/schemas/shield_information_barrier_segment_restrictions.d.ts +24 -0
  207. package/dist/types/models/schemas/shield_information_barrier_segments.d.ts +26 -0
  208. package/dist/types/models/schemas/shield_information_barriers.d.ts +31 -0
  209. package/dist/types/models/schemas/shield_lists.d.ts +88 -0
  210. package/dist/types/models/schemas/sign_requests.d.ts +136 -0
  211. package/dist/types/models/schemas/sign_templates.d.ts +90 -0
  212. package/dist/types/models/schemas/skills.d.ts +120 -0
  213. package/dist/types/models/schemas/storage_policies.d.ts +12 -0
  214. package/dist/types/models/schemas/storage_policy_assignments.d.ts +34 -0
  215. package/dist/types/models/schemas/task_assignments.d.ts +17 -0
  216. package/dist/types/models/schemas/tasks.d.ts +37 -0
  217. package/dist/types/models/schemas/terms_of_service_user_statuses.d.ts +27 -0
  218. package/dist/types/models/schemas/terms_of_services.d.ts +27 -0
  219. package/dist/types/models/schemas/transfer.d.ts +4 -0
  220. package/dist/types/models/schemas/trashed_files.d.ts +49 -0
  221. package/dist/types/models/schemas/trashed_folders.d.ts +47 -0
  222. package/dist/types/models/schemas/trashed_items.d.ts +1 -0
  223. package/dist/types/models/schemas/trashed_web_links.d.ts +41 -0
  224. package/dist/types/models/schemas/uploads.d.ts +28 -0
  225. package/dist/types/models/schemas/user_collaborations.d.ts +26 -0
  226. package/dist/types/models/schemas/users.d.ts +98 -0
  227. package/dist/types/models/schemas/web_links.d.ts +20 -0
  228. package/dist/types/models/schemas/webhooks.d.ts +37 -0
  229. package/dist/types/models/schemas/workflows.d.ts +93 -0
  230. package/dist/types/models/schemas/zip_downloads.d.ts +29 -0
  231. package/dist/types/models/schemas.d.ts +136 -3535
  232. package/package.json +1 -1
@@ -0,0 +1,120 @@
1
+ import type { FileVersionType, PutOp, PutSkillInvocationIdFile } from '../schemas.js';
2
+ export interface KeywordSkillCard {
3
+ created_at?: string;
4
+ type: KeywordSkillCardType;
5
+ skill_card_type: KeywordSkillCardSkillCardType;
6
+ skill_card_title?: KeywordSkillCardSkillCardTitle;
7
+ skill: KeywordSkillCardSkill;
8
+ invocation: KeywordSkillCardInvocation;
9
+ entries: Array<KeywordSkillCardEntries>;
10
+ }
11
+ export type SkillCard = unknown;
12
+ export interface SkillCardsMetadata {
13
+ $canEdit?: boolean;
14
+ $id?: string;
15
+ $parent?: string;
16
+ $scope?: string;
17
+ $template?: string;
18
+ $type?: string;
19
+ $typeVersion?: number;
20
+ $version?: number;
21
+ cards?: Array<SkillCard>;
22
+ }
23
+ export interface StatusSkillCard {
24
+ created_at?: string;
25
+ type: KeywordSkillCardType;
26
+ skill_card_type: StatusSkillCardSkillCardType;
27
+ skill_card_title?: KeywordSkillCardSkillCardTitle;
28
+ status: StatusSkillCardStatus;
29
+ skill: KeywordSkillCardSkill;
30
+ invocation: KeywordSkillCardInvocation;
31
+ }
32
+ export interface TimelineSkillCard {
33
+ created_at?: string;
34
+ type: KeywordSkillCardType;
35
+ skill_card_type: TimelineSkillCardSkillCardType;
36
+ skill_card_title?: KeywordSkillCardSkillCardTitle;
37
+ skill: KeywordSkillCardSkill;
38
+ invocation: KeywordSkillCardInvocation;
39
+ duration?: number;
40
+ entries: Array<TimelineSkillCardEntries>;
41
+ }
42
+ export interface TranscriptSkillCard {
43
+ created_at?: string;
44
+ type: KeywordSkillCardType;
45
+ skill_card_type: TranscriptSkillCardSkillCardType;
46
+ skill_card_title?: KeywordSkillCardSkillCardTitle;
47
+ skill: KeywordSkillCardSkill;
48
+ invocation: KeywordSkillCardInvocation;
49
+ duration?: number;
50
+ entries: Array<TranscriptSkillCardEntries>;
51
+ }
52
+ export type KeywordSkillCardType = "skill_card" | (string & {});
53
+ export type KeywordSkillCardSkillCardType = "keyword" | (string & {});
54
+ export interface KeywordSkillCardSkillCardTitle {
55
+ code?: string;
56
+ message: string;
57
+ }
58
+ export type SkillType = "service" | (string & {});
59
+ export interface KeywordSkillCardSkill {
60
+ type: SkillType;
61
+ id: string;
62
+ }
63
+ export type InvocationType = "skill_invocation" | (string & {});
64
+ export interface KeywordSkillCardInvocation {
65
+ type: InvocationType;
66
+ id: string;
67
+ }
68
+ export interface KeywordSkillCardEntries {
69
+ text?: string;
70
+ }
71
+ export type StatusSkillCardSkillCardType = "status" | (string & {});
72
+ export type StatusCode = "invoked" | "processing" | "success" | "transient_failure" | "permanent_failure" | (string & {});
73
+ export interface StatusSkillCardStatus {
74
+ code: StatusCode;
75
+ message?: string;
76
+ }
77
+ export type TimelineSkillCardSkillCardType = "timeline" | (string & {});
78
+ export interface EntriesAppears {
79
+ start?: number;
80
+ end?: number;
81
+ }
82
+ export interface TimelineSkillCardEntries {
83
+ text?: string;
84
+ appears?: Array<EntriesAppears>;
85
+ image_url?: string;
86
+ }
87
+ export type TranscriptSkillCardSkillCardType = "transcript" | (string & {});
88
+ export interface TranscriptSkillCardEntriesAppears {
89
+ start?: number;
90
+ }
91
+ export interface TranscriptSkillCardEntries {
92
+ text?: string;
93
+ appears?: Array<TranscriptSkillCardEntriesAppears>;
94
+ }
95
+ export interface UpdateSkillRequest {
96
+ op?: PutOp;
97
+ path?: string;
98
+ value?: SkillCard;
99
+ }
100
+ export interface CreateSkillRequest {
101
+ cards: Array<SkillCard>;
102
+ }
103
+ export interface PutSkillInvocationIdMetadata {
104
+ cards?: Array<SkillCard>;
105
+ }
106
+ export interface PutSkillInvocationIdFileVersion {
107
+ type?: FileVersionType;
108
+ id?: string;
109
+ }
110
+ export interface PutSkillInvocationIdUsage {
111
+ unit?: string;
112
+ value?: number;
113
+ }
114
+ export interface UpdateSkillInvocationRequest {
115
+ status: StatusCode;
116
+ metadata: PutSkillInvocationIdMetadata;
117
+ file: PutSkillInvocationIdFile;
118
+ file_version?: PutSkillInvocationIdFileVersion;
119
+ usage?: PutSkillInvocationIdUsage;
120
+ }
@@ -0,0 +1,12 @@
1
+ import type { StoragePolicyType } from '../schemas.js';
2
+ export interface StoragePolicies {
3
+ limit?: number;
4
+ next_marker?: string | null;
5
+ prev_marker?: string | null;
6
+ entries?: Array<StoragePolicy>;
7
+ }
8
+ export interface StoragePolicy {
9
+ id: string;
10
+ type: StoragePolicyType;
11
+ name?: string;
12
+ }
@@ -0,0 +1,34 @@
1
+ import type { CommentItem, StoragePolicyType } from '../schemas.js';
2
+ export interface StoragePolicyMini {
3
+ id: string;
4
+ type: StoragePolicyType;
5
+ }
6
+ export interface StoragePolicyAssignment {
7
+ id: string;
8
+ type: StoragePolicyAssignmentType;
9
+ storage_policy?: StoragePolicyMini;
10
+ assigned_to?: CommentItem;
11
+ }
12
+ export interface StoragePolicyAssignments {
13
+ limit?: number;
14
+ next_marker?: string | null;
15
+ prev_marker?: string | null;
16
+ entries?: Array<StoragePolicyAssignment>;
17
+ }
18
+ export type StoragePolicyAssignmentType = "storage_policy_assignment" | (string & {});
19
+ export type GetResolvedForType = "user" | "enterprise" | (string & {});
20
+ export interface PostStoragePolicy {
21
+ type: StoragePolicyType;
22
+ id: string;
23
+ }
24
+ export interface PostAssignedTo {
25
+ type: GetResolvedForType;
26
+ id: string;
27
+ }
28
+ export interface CreateStoragePolicyAssignmentRequest {
29
+ storage_policy: PostStoragePolicy;
30
+ assigned_to: PostAssignedTo;
31
+ }
32
+ export interface UpdateStoragePolicyAssignmentRequest {
33
+ storage_policy: PostStoragePolicy;
34
+ }
@@ -0,0 +1,17 @@
1
+ import type { TaskAssignmentResolutionState, TaskType } from '../schemas.js';
2
+ export interface PostTask {
3
+ id: string;
4
+ type: TaskType;
5
+ }
6
+ export interface PostAssignTo {
7
+ id?: string;
8
+ login?: string;
9
+ }
10
+ export interface CreateTaskAssignmentRequest {
11
+ task: PostTask;
12
+ assign_to: PostAssignTo;
13
+ }
14
+ export interface UpdateTaskAssignmentRequest {
15
+ message?: string;
16
+ resolution_state?: TaskAssignmentResolutionState;
17
+ }
@@ -0,0 +1,37 @@
1
+ import type { AiCitationType, FileMini, TaskAssignments, TaskType, UserMini } from '../schemas.js';
2
+ export interface Task {
3
+ id?: string;
4
+ type?: TaskType;
5
+ item?: FileMini;
6
+ due_at?: string;
7
+ action?: TaskAction;
8
+ message?: string;
9
+ task_assignment_collection?: TaskAssignments;
10
+ is_completed?: boolean;
11
+ created_by?: UserMini;
12
+ created_at?: string;
13
+ completion_rule?: TaskCompletionRule;
14
+ }
15
+ export interface Tasks {
16
+ total_count?: number;
17
+ entries?: Array<Task>;
18
+ }
19
+ export type TaskAction = "review" | "complete" | (string & {});
20
+ export type TaskCompletionRule = "all_assignees" | "any_assignee" | (string & {});
21
+ export interface CreateTaskRequestItem {
22
+ id?: string;
23
+ type?: AiCitationType;
24
+ }
25
+ export interface CreateTaskRequest {
26
+ item: CreateTaskRequestItem;
27
+ action?: TaskAction;
28
+ message?: string;
29
+ due_at?: string;
30
+ completion_rule?: TaskCompletionRule;
31
+ }
32
+ export interface UpdateTaskRequest {
33
+ action?: TaskAction;
34
+ message?: string;
35
+ due_at?: string;
36
+ completion_rule?: TaskCompletionRule;
37
+ }
@@ -0,0 +1,27 @@
1
+ import type { CollaboratorVariableVariableValue, TermsOfServiceBase, TermsOfServiceType, UserMini } from '../schemas.js';
2
+ export interface TermsOfServiceUserStatus {
3
+ id: string;
4
+ type: TermsOfServiceUserStatusType;
5
+ tos?: TermsOfServiceBase;
6
+ user?: UserMini;
7
+ is_accepted?: boolean;
8
+ created_at?: string;
9
+ modified_at?: string;
10
+ }
11
+ export interface TermsOfServiceUserStatuses {
12
+ total_count?: number;
13
+ entries?: Array<TermsOfServiceUserStatus>;
14
+ }
15
+ export type TermsOfServiceUserStatusType = "terms_of_service_user_status" | (string & {});
16
+ export interface PostTos {
17
+ type: TermsOfServiceType;
18
+ id: string;
19
+ }
20
+ export interface CreateTermsOfServiceUserStatusRequest {
21
+ tos: PostTos;
22
+ user: CollaboratorVariableVariableValue;
23
+ is_accepted: boolean;
24
+ }
25
+ export interface UpdateTermsOfServiceUserStatusRequest {
26
+ is_accepted: boolean;
27
+ }
@@ -0,0 +1,27 @@
1
+ import type { CollaborationAllowlistEntryEnterprise, TermsOfServiceType } from '../schemas.js';
2
+ export interface TermsOfService {
3
+ id: string;
4
+ type: TermsOfServiceType;
5
+ status?: TermsOfServiceStatus;
6
+ enterprise?: CollaborationAllowlistEntryEnterprise;
7
+ tos_type?: TermsOfServiceTosType;
8
+ text?: string;
9
+ created_at?: string;
10
+ modified_at?: string;
11
+ }
12
+ export interface TermsOfServices {
13
+ total_count?: number;
14
+ entries?: Array<TermsOfService>;
15
+ }
16
+ export type TermsOfServiceStatus = "enabled" | "disabled" | (string & {});
17
+ export type TermsOfServiceTosType = "managed" | "external" | (string & {});
18
+ export type GetTosType = "external" | "managed" | (string & {});
19
+ export interface CreateTermsOfServiceRequest {
20
+ status: TermsOfServiceStatus;
21
+ tos_type?: GetTosType;
22
+ text: string;
23
+ }
24
+ export interface UpdateTermsOfServiceRequest {
25
+ status: TermsOfServiceStatus;
26
+ text: string;
27
+ }
@@ -0,0 +1,4 @@
1
+ import type { AttributesParent } from '../schemas.js';
2
+ export interface TransferFoldersRequest {
3
+ owned_by: AttributesParent;
4
+ }
@@ -0,0 +1,49 @@
1
+ import type { AiCitationType, FileItemStatus, FilePathCollection, FileVersionMini, FolderMini, TrashFilePathCollection, UserMini } from '../schemas.js';
2
+ export interface TrashFile {
3
+ id: string;
4
+ etag?: string | null;
5
+ type: AiCitationType;
6
+ sequence_id: string;
7
+ name?: string;
8
+ sha1: string;
9
+ file_version?: FileVersionMini;
10
+ description: string;
11
+ size: number;
12
+ path_collection: TrashFilePathCollection;
13
+ created_at: string;
14
+ modified_at: string;
15
+ trashed_at?: string | null;
16
+ purged_at?: string | null;
17
+ content_created_at?: string | null;
18
+ content_modified_at?: string | null;
19
+ created_by?: UserMini;
20
+ modified_by: UserMini;
21
+ owned_by: UserMini;
22
+ shared_link?: string | null;
23
+ parent?: FolderMini | null;
24
+ item_status: FileItemStatus;
25
+ }
26
+ export interface TrashFileRestored {
27
+ id: string;
28
+ etag?: string | null;
29
+ type: AiCitationType;
30
+ sequence_id: string;
31
+ name?: string;
32
+ sha1: string;
33
+ file_version?: FileVersionMini;
34
+ description: string;
35
+ size: number;
36
+ path_collection: FilePathCollection;
37
+ created_at: string;
38
+ modified_at: string;
39
+ trashed_at?: string | null;
40
+ purged_at?: string | null;
41
+ content_created_at?: string | null;
42
+ content_modified_at?: string | null;
43
+ created_by?: UserMini;
44
+ modified_by: UserMini;
45
+ owned_by: UserMini;
46
+ shared_link?: string | null;
47
+ parent?: FolderMini | null;
48
+ item_status: FileItemStatus;
49
+ }
@@ -0,0 +1,47 @@
1
+ import type { FileItemStatus, FilePathCollection, FolderMini, FolderType, TrashFilePathCollection, UserMini } from '../schemas.js';
2
+ export interface TrashFolder {
3
+ id: string;
4
+ etag?: string | null;
5
+ type: FolderType;
6
+ sequence_id?: string;
7
+ name: string;
8
+ created_at?: string | null;
9
+ modified_at?: string | null;
10
+ description: string;
11
+ size: number;
12
+ path_collection: TrashFilePathCollection;
13
+ created_by: UserMini;
14
+ modified_by: UserMini;
15
+ trashed_at?: string | null;
16
+ purged_at?: string | null;
17
+ content_created_at?: string | null;
18
+ content_modified_at?: string | null;
19
+ owned_by: UserMini;
20
+ shared_link?: string | null;
21
+ folder_upload_email?: string | null;
22
+ parent?: FolderMini | null;
23
+ item_status: FileItemStatus;
24
+ }
25
+ export interface TrashFolderRestored {
26
+ id?: string;
27
+ etag?: string | null;
28
+ type?: FolderType;
29
+ sequence_id?: string;
30
+ name?: string;
31
+ created_at?: string | null;
32
+ modified_at?: string | null;
33
+ description?: string;
34
+ size?: number;
35
+ path_collection?: FilePathCollection;
36
+ created_by?: UserMini;
37
+ modified_by?: UserMini;
38
+ trashed_at?: string | null;
39
+ purged_at?: string | null;
40
+ content_created_at?: string | null;
41
+ content_modified_at?: string | null;
42
+ owned_by?: UserMini;
43
+ shared_link?: string | null;
44
+ folder_upload_email?: string | null;
45
+ parent?: FolderMini | null;
46
+ item_status?: FileItemStatus;
47
+ }
@@ -0,0 +1 @@
1
+ export type GetFolderTrashItemsSort = "name" | "date" | "size" | (string & {});
@@ -0,0 +1,41 @@
1
+ import type { FileItemStatus, FilePathCollection, FolderMini, TrashFilePathCollection, TrashWebLinkType, UserMini } from '../schemas.js';
2
+ export interface TrashWebLink {
3
+ type?: TrashWebLinkType;
4
+ id?: string;
5
+ sequence_id?: string;
6
+ etag?: string;
7
+ name?: string;
8
+ url?: string;
9
+ parent?: FolderMini;
10
+ description?: string;
11
+ path_collection?: TrashFilePathCollection;
12
+ created_at?: string;
13
+ modified_at?: string;
14
+ trashed_at?: string | null;
15
+ purged_at?: string | null;
16
+ created_by?: UserMini;
17
+ modified_by?: UserMini;
18
+ owned_by?: UserMini;
19
+ shared_link?: string | null;
20
+ item_status?: FileItemStatus;
21
+ }
22
+ export interface TrashWebLinkRestored {
23
+ type?: TrashWebLinkType;
24
+ id?: string;
25
+ sequence_id: string;
26
+ etag?: string;
27
+ name?: string;
28
+ url?: string;
29
+ parent?: FolderMini;
30
+ description?: string;
31
+ path_collection: FilePathCollection;
32
+ created_at?: string;
33
+ modified_at?: string;
34
+ trashed_at?: string | null;
35
+ purged_at?: string | null;
36
+ created_by?: UserMini;
37
+ modified_by?: UserMini;
38
+ owned_by?: UserMini;
39
+ shared_link?: string | null;
40
+ item_status?: FileItemStatus;
41
+ }
@@ -0,0 +1,28 @@
1
+ import type { AttributesParent, PostFileIdParent } from '../schemas.js';
2
+ export interface UploadUrl {
3
+ upload_url?: string;
4
+ upload_token?: string;
5
+ }
6
+ export interface PostFileIdContentAttributes {
7
+ name: string;
8
+ content_modified_at?: string;
9
+ }
10
+ export interface CreateFileIdContentRequest {
11
+ attributes: PostFileIdContentAttributes;
12
+ file: Blob;
13
+ }
14
+ export interface PostFileContentAttributes {
15
+ name: string;
16
+ parent: AttributesParent;
17
+ content_created_at?: string;
18
+ content_modified_at?: string;
19
+ }
20
+ export interface CreateFileContentRequest {
21
+ attributes: PostFileContentAttributes;
22
+ file: Blob;
23
+ }
24
+ export interface OptionFileContentRequest {
25
+ name?: string;
26
+ size?: number;
27
+ parent?: PostFileIdParent;
28
+ }
@@ -0,0 +1,26 @@
1
+ import type { CollaborationRole, EventSourceItemType, FileFullAllowedInviteeRoles } from '../schemas.js';
2
+ export type PutCollaborationIdStatus = "pending" | "accepted" | "rejected" | (string & {});
3
+ export interface UpdateCollaborationRequest {
4
+ role?: CollaborationRole;
5
+ status?: PutCollaborationIdStatus;
6
+ expires_at?: string;
7
+ can_view_path?: boolean;
8
+ }
9
+ export interface PostCollaborationsItem {
10
+ type?: EventSourceItemType;
11
+ id?: string;
12
+ }
13
+ export type AccessibleByType = "user" | "group" | (string & {});
14
+ export interface PostCollaborationsAccessibleBy {
15
+ type: AccessibleByType;
16
+ id?: string;
17
+ login?: string;
18
+ }
19
+ export interface CreateCollaborationsRequest {
20
+ item: PostCollaborationsItem;
21
+ accessible_by: PostCollaborationsAccessibleBy;
22
+ role: FileFullAllowedInviteeRoles;
23
+ is_access_only?: boolean;
24
+ can_view_path?: boolean;
25
+ expires_at?: string;
26
+ }
@@ -0,0 +1,98 @@
1
+ import type { CollaborationAllowlistEntryEnterprise, CollectionsOrder, UserNotificationEmail, UserStatus, VariableValueType } from '../schemas.js';
2
+ export interface TrackingCode {
3
+ type?: TrackingCodeType;
4
+ name?: string;
5
+ value?: string;
6
+ }
7
+ export interface UserFull {
8
+ id: string;
9
+ type: VariableValueType;
10
+ name?: string;
11
+ login?: string;
12
+ created_at?: string;
13
+ modified_at?: string;
14
+ language?: string;
15
+ timezone?: string;
16
+ space_amount?: number;
17
+ space_used?: number;
18
+ max_upload_size?: number;
19
+ status?: UserStatus;
20
+ job_title?: string;
21
+ phone?: string;
22
+ address?: string;
23
+ avatar_url?: string;
24
+ notification_email?: UserNotificationEmail | null;
25
+ role?: UserFullRole;
26
+ tracking_codes?: Array<TrackingCode>;
27
+ can_see_managed_users?: boolean;
28
+ is_sync_enabled?: boolean;
29
+ is_external_collab_restricted?: boolean;
30
+ is_exempt_from_device_limits?: boolean;
31
+ is_exempt_from_login_verification?: boolean;
32
+ is_collaborated_content_available_when_owner_inactive?: boolean;
33
+ enterprise?: CollaborationAllowlistEntryEnterprise;
34
+ my_tags?: Array<string>;
35
+ hostname?: string;
36
+ is_platform_access_only?: boolean;
37
+ external_app_user_id?: string;
38
+ }
39
+ export interface Users {
40
+ limit?: number;
41
+ next_marker?: string | null;
42
+ prev_marker?: string | null;
43
+ total_count?: number;
44
+ offset?: number;
45
+ order?: Array<CollectionsOrder>;
46
+ entries?: Array<UserFull>;
47
+ }
48
+ export type TrackingCodeType = "tracking_code" | (string & {});
49
+ export type UserFullRole = "admin" | "coadmin" | "user" | (string & {});
50
+ export type GetUserType = "all" | "managed" | "external" | (string & {});
51
+ export type PostRole = "coadmin" | "user" | (string & {});
52
+ export interface CreateUserRequest {
53
+ name: string;
54
+ login?: string;
55
+ is_platform_access_only?: boolean;
56
+ role?: PostRole;
57
+ language?: string;
58
+ is_sync_enabled?: boolean;
59
+ job_title?: string;
60
+ phone?: string;
61
+ address?: string;
62
+ space_amount?: number;
63
+ tracking_codes?: Array<TrackingCode>;
64
+ can_see_managed_users?: boolean;
65
+ timezone?: string;
66
+ is_external_collab_restricted?: boolean;
67
+ is_exempt_from_device_limits?: boolean;
68
+ is_exempt_from_login_verification?: boolean;
69
+ status?: UserStatus;
70
+ external_app_user_id?: string;
71
+ }
72
+ export interface PutIdNotificationEmail {
73
+ email?: string;
74
+ }
75
+ export interface UpdateUserRequest {
76
+ enterprise?: string | null;
77
+ notify?: boolean;
78
+ name?: string;
79
+ login?: string;
80
+ role?: PostRole;
81
+ language?: string;
82
+ is_sync_enabled?: boolean;
83
+ job_title?: string;
84
+ phone?: string;
85
+ address?: string;
86
+ tracking_codes?: Array<TrackingCode>;
87
+ can_see_managed_users?: boolean;
88
+ timezone?: string;
89
+ is_external_collab_restricted?: boolean;
90
+ is_exempt_from_device_limits?: boolean;
91
+ is_exempt_from_login_verification?: boolean;
92
+ is_password_reset_required?: boolean;
93
+ is_collaborated_content_available_when_owner_inactive?: boolean;
94
+ status?: UserStatus;
95
+ space_amount?: number;
96
+ notification_email?: PutIdNotificationEmail | null;
97
+ external_app_user_id?: string;
98
+ }
@@ -0,0 +1,20 @@
1
+ import type { AttributesParent, PutIdParent, SharedLinkAccess } from '../schemas.js';
2
+ export interface CreateWebLinkRequest {
3
+ url: string;
4
+ parent: AttributesParent;
5
+ name?: string;
6
+ description?: string;
7
+ }
8
+ export interface UpdateWebLinkRequestSharedLink {
9
+ access?: SharedLinkAccess;
10
+ password?: string | null;
11
+ vanity_name?: string;
12
+ unshared_at?: string;
13
+ }
14
+ export interface UpdateWebLinkRequest {
15
+ url?: string;
16
+ parent?: PutIdParent;
17
+ name?: string;
18
+ description?: string;
19
+ shared_link?: UpdateWebLinkRequestSharedLink;
20
+ }
@@ -0,0 +1,37 @@
1
+ import type { EventSourceItemType, UserMini } from '../schemas.js';
2
+ export interface Webhook {
3
+ id?: string;
4
+ type?: WebhookType;
5
+ target?: WebhookTarget;
6
+ created_by?: UserMini;
7
+ created_at?: string;
8
+ address?: string;
9
+ triggers?: Array<WebhookTriggers>;
10
+ }
11
+ export interface WebhookMini {
12
+ id?: string;
13
+ type?: WebhookType;
14
+ target?: WebhookTarget;
15
+ }
16
+ export interface Webhooks {
17
+ limit?: number;
18
+ next_marker?: string | null;
19
+ prev_marker?: string | null;
20
+ entries?: Array<WebhookMini>;
21
+ }
22
+ export type WebhookType = "webhook" | (string & {});
23
+ export interface WebhookTarget {
24
+ id?: string;
25
+ type?: EventSourceItemType;
26
+ }
27
+ export type WebhookTriggers = "FILE.UPLOADED" | "FILE.PREVIEWED" | "FILE.DOWNLOADED" | "FILE.TRASHED" | "FILE.DELETED" | "FILE.RESTORED" | "FILE.COPIED" | "FILE.MOVED" | "FILE.LOCKED" | "FILE.UNLOCKED" | "FILE.RENAMED" | "COMMENT.CREATED" | "COMMENT.UPDATED" | "COMMENT.DELETED" | "TASK_ASSIGNMENT.CREATED" | "TASK_ASSIGNMENT.UPDATED" | "METADATA_INSTANCE.CREATED" | "METADATA_INSTANCE.UPDATED" | "METADATA_INSTANCE.DELETED" | "FOLDER.CREATED" | "FOLDER.RENAMED" | "FOLDER.DOWNLOADED" | "FOLDER.RESTORED" | "FOLDER.DELETED" | "FOLDER.COPIED" | "FOLDER.MOVED" | "FOLDER.TRASHED" | "WEBHOOK.DELETED" | "COLLABORATION.CREATED" | "COLLABORATION.ACCEPTED" | "COLLABORATION.REJECTED" | "COLLABORATION.REMOVED" | "COLLABORATION.UPDATED" | "SHARED_LINK.DELETED" | "SHARED_LINK.CREATED" | "SHARED_LINK.UPDATED" | "SIGN_REQUEST.COMPLETED" | "SIGN_REQUEST.DECLINED" | "SIGN_REQUEST.EXPIRED" | "SIGN_REQUEST.SIGNER_EMAIL_BOUNCED" | "SIGN_REQUEST.SIGN_SIGNER_SIGNED" | "SIGN_REQUEST.SIGN_DOCUMENT_CREATED" | "SIGN_REQUEST.SIGN_ERROR_FINALIZING" | (string & {});
28
+ export interface CreateWebhookRequest {
29
+ target: WebhookTarget;
30
+ address: string;
31
+ triggers: Array<WebhookTriggers>;
32
+ }
33
+ export interface UpdateWebhookRequest {
34
+ target?: WebhookTarget;
35
+ address?: string;
36
+ triggers?: Array<WebhookTriggers>;
37
+ }