agentbase-web-sdk 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +41 -0
  3. package/dist/cjs/sdk.js +16322 -0
  4. package/dist/cjs/sdk.js.map +1 -0
  5. package/dist/esm/sdk.js +16292 -0
  6. package/dist/esm/sdk.js.map +1 -0
  7. package/dist/iife/sdk.js +20121 -0
  8. package/package.json +54 -0
  9. package/types/channel.d.ts +79 -0
  10. package/types/client.d.ts +289 -0
  11. package/types/enums/authentication-factor.d.ts +6 -0
  12. package/types/enums/authenticator-type.d.ts +3 -0
  13. package/types/enums/browser-permission.d.ts +22 -0
  14. package/types/enums/browser.d.ts +16 -0
  15. package/types/enums/credit-card.d.ts +19 -0
  16. package/types/enums/data-api-catalog-data-source-database-type.d.ts +6 -0
  17. package/types/enums/data-api-catalog-data-source-visibility-source.d.ts +7 -0
  18. package/types/enums/data-api-catalog-database-availability.d.ts +5 -0
  19. package/types/enums/data-api-catalog-database-classification.d.ts +4 -0
  20. package/types/enums/data-api-catalog-database-status.d.ts +4 -0
  21. package/types/enums/data-api-catalog-database-visibility-source.d.ts +7 -0
  22. package/types/enums/data-api-filter-logic.d.ts +4 -0
  23. package/types/enums/data-api-owned-binding-principal-type.d.ts +4 -0
  24. package/types/enums/data-api-owned-binding-status.d.ts +4 -0
  25. package/types/enums/distillation-message-role.d.ts +6 -0
  26. package/types/enums/distillation-mode.d.ts +4 -0
  27. package/types/enums/distillation-tool-status.d.ts +4 -0
  28. package/types/enums/execution-method.d.ts +9 -0
  29. package/types/enums/execution-status.d.ts +7 -0
  30. package/types/enums/execution-trigger.d.ts +5 -0
  31. package/types/enums/export-job-mode.d.ts +4 -0
  32. package/types/enums/export-mode.d.ts +3 -0
  33. package/types/enums/feedback-type.d.ts +5 -0
  34. package/types/enums/flag.d.ts +197 -0
  35. package/types/enums/format.d.ts +4 -0
  36. package/types/enums/image-format.d.ts +9 -0
  37. package/types/enums/image-gravity.d.ts +11 -0
  38. package/types/enums/kind.d.ts +6 -0
  39. package/types/enums/kinds.d.ts +6 -0
  40. package/types/enums/knowledge-base-data-source-document-import-result-status.d.ts +5 -0
  41. package/types/enums/memory-access-mode.d.ts +4 -0
  42. package/types/enums/memory-batch-operation.d.ts +5 -0
  43. package/types/enums/memory-bulk-delete-item-status.d.ts +4 -0
  44. package/types/enums/memory-bulk-delete-response-status.d.ts +4 -0
  45. package/types/enums/memory-handling-policy.d.ts +5 -0
  46. package/types/enums/memory-message-role.d.ts +5 -0
  47. package/types/enums/memory-pipeline-run-result-status.d.ts +4 -0
  48. package/types/enums/memory-pipeline-run-scenario.d.ts +6 -0
  49. package/types/enums/memory-pipeline-run-status.d.ts +6 -0
  50. package/types/enums/memory-record-kind.d.ts +5 -0
  51. package/types/enums/memory-record-sensitivity.d.ts +5 -0
  52. package/types/enums/memory-scope.d.ts +7 -0
  53. package/types/enums/memory-sensitivity.d.ts +6 -0
  54. package/types/enums/memory-share-subject-type.d.ts +4 -0
  55. package/types/enums/method.d.ts +9 -0
  56. package/types/enums/o-auth-provider.d.ts +45 -0
  57. package/types/enums/organization-project-deletion-deletion-status.d.ts +5 -0
  58. package/types/enums/organization-role.d.ts +8 -0
  59. package/types/enums/organization-usage-range.d.ts +5 -0
  60. package/types/enums/outcome.d.ts +6 -0
  61. package/types/enums/path-match.d.ts +4 -0
  62. package/types/enums/profile-extraction-mode.d.ts +4 -0
  63. package/types/enums/profile-type.d.ts +4 -0
  64. package/types/enums/project-deletion-restore-status.d.ts +3 -0
  65. package/types/enums/project-deletion-result-deletion-status.d.ts +5 -0
  66. package/types/enums/project-deletion-result-status.d.ts +5 -0
  67. package/types/enums/record-kind.d.ts +5 -0
  68. package/types/enums/retention-policy.d.ts +3 -0
  69. package/types/enums/scenario.d.ts +6 -0
  70. package/types/enums/scene.d.ts +4 -0
  71. package/types/enums/scope.d.ts +5 -0
  72. package/types/enums/source-type.d.ts +6 -0
  73. package/types/enums/status.d.ts +23 -0
  74. package/types/enums/theme.d.ts +4 -0
  75. package/types/enums/timezone.d.ts +422 -0
  76. package/types/enums/transaction-action.d.ts +12 -0
  77. package/types/enums/validation-status.d.ts +6 -0
  78. package/types/enums/verification-source.d.ts +5 -0
  79. package/types/id.d.ts +20 -0
  80. package/types/index.d.ts +105 -0
  81. package/types/models.d.ts +3368 -0
  82. package/types/operator.d.ts +180 -0
  83. package/types/permission.d.ts +43 -0
  84. package/types/query.d.ts +442 -0
  85. package/types/role.d.ts +70 -0
  86. package/types/service.d.ts +11 -0
  87. package/types/services/account.d.ts +1350 -0
  88. package/types/services/agent-runtime.d.ts +370 -0
  89. package/types/services/ai-gateway.d.ts +888 -0
  90. package/types/services/avatars.d.ts +320 -0
  91. package/types/services/data-api.d.ts +257 -0
  92. package/types/services/databases.d.ts +441 -0
  93. package/types/services/documents-db.d.ts +409 -0
  94. package/types/services/functions.d.ts +175 -0
  95. package/types/services/graphql.d.ts +43 -0
  96. package/types/services/knowledge-bases.d.ts +304 -0
  97. package/types/services/llm-gateway.d.ts +289 -0
  98. package/types/services/locale.d.ts +64 -0
  99. package/types/services/memory.d.ts +2352 -0
  100. package/types/services/messaging.d.ts +53 -0
  101. package/types/services/projects.d.ts +129 -0
  102. package/types/services/realtime.d.ts +197 -0
  103. package/types/services/self-hosted-organizations.d.ts +495 -0
  104. package/types/services/storage.d.ts +265 -0
  105. package/types/services/tables-db.d.ts +438 -0
  106. package/types/services/teams.d.ts +341 -0
  107. package/types/services/vectors-db.d.ts +297 -0
@@ -0,0 +1,265 @@
1
+ import { Client, UploadProgress } from '../client';
2
+ import type { Models } from '../models';
3
+ import { ImageGravity } from '../enums/image-gravity';
4
+ import { ImageFormat } from '../enums/image-format';
5
+ export declare class Storage {
6
+ client: Client;
7
+ constructor(client: Client);
8
+ /**
9
+ * Get a list of files allowed by the existing bucket and file permissions.
10
+ *
11
+ * When the bucket has `clientFileListing=false`, application clients (including unauthenticated requests, anonymous sessions, user sessions and JWTs) cannot list files. Authenticated server and project management requests remain subject to project authorization and the `files.read` scope. This setting does not change upload or individual file access permissions. Missing or null values retain the previous listing behavior.
12
+ *
13
+ *
14
+ * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
15
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries]([HOSTNAME]/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, signature, mimeType, sizeOriginal, chunksTotal, chunksUploaded
16
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
17
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
18
+ * @throws {AgentbaseException}
19
+ * @returns {Promise<Models.FileList>}
20
+ */
21
+ listFiles(params: {
22
+ bucketId: string;
23
+ queries?: string[];
24
+ search?: string;
25
+ total?: boolean;
26
+ }): Promise<Models.FileList>;
27
+ /**
28
+ * Get a list of files allowed by the existing bucket and file permissions.
29
+ *
30
+ * When the bucket has `clientFileListing=false`, application clients (including unauthenticated requests, anonymous sessions, user sessions and JWTs) cannot list files. Authenticated server and project management requests remain subject to project authorization and the `files.read` scope. This setting does not change upload or individual file access permissions. Missing or null values retain the previous listing behavior.
31
+ *
32
+ *
33
+ * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
34
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries]([HOSTNAME]/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, signature, mimeType, sizeOriginal, chunksTotal, chunksUploaded
35
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
36
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
37
+ * @throws {AgentbaseException}
38
+ * @returns {Promise<Models.FileList>}
39
+ * @deprecated Use the object parameter style method for a better developer experience.
40
+ */
41
+ listFiles(bucketId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.FileList>;
42
+ /**
43
+ * Create a new file. Before using this route, you should create a new bucket resource using either a [server integration]([HOSTNAME]/docs/server/storage#storageCreateBucket) API or directly from your Agentbase console.
44
+ *
45
+ * Larger files should be uploaded using multiple requests with the [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.
46
+ *
47
+ * When the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.
48
+ *
49
+ * If you're creating a new file using one of the Agentbase SDKs, all the chunking logic will be managed by the SDK internally.
50
+ *
51
+ *
52
+ * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
53
+ * @param {string} params.fileId - File ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
54
+ * @param {File} params.file - Binary file. Agentbase SDKs provide helpers to handle file input. [Learn about file input]([HOSTNAME]/docs/products/storage/upload-download#input-file).
55
+ * @param {string[]} params.permissions - An array of permission strings. By default, only the current user is granted all permissions. [Learn more about permissions]([HOSTNAME]/docs/permissions).
56
+ * @throws {AgentbaseException}
57
+ * @returns {Promise<Models.File>}
58
+ */
59
+ createFile(params: {
60
+ bucketId: string;
61
+ fileId: string;
62
+ file: File;
63
+ permissions?: string[];
64
+ onProgress?: (progress: UploadProgress) => void;
65
+ }): Promise<Models.File>;
66
+ /**
67
+ * Create a new file. Before using this route, you should create a new bucket resource using either a [server integration]([HOSTNAME]/docs/server/storage#storageCreateBucket) API or directly from your Agentbase console.
68
+ *
69
+ * Larger files should be uploaded using multiple requests with the [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.
70
+ *
71
+ * When the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.
72
+ *
73
+ * If you're creating a new file using one of the Agentbase SDKs, all the chunking logic will be managed by the SDK internally.
74
+ *
75
+ *
76
+ * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
77
+ * @param {string} fileId - File ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
78
+ * @param {File} file - Binary file. Agentbase SDKs provide helpers to handle file input. [Learn about file input]([HOSTNAME]/docs/products/storage/upload-download#input-file).
79
+ * @param {string[]} permissions - An array of permission strings. By default, only the current user is granted all permissions. [Learn more about permissions]([HOSTNAME]/docs/permissions).
80
+ * @throws {AgentbaseException}
81
+ * @returns {Promise<Models.File>}
82
+ * @deprecated Use the object parameter style method for a better developer experience.
83
+ */
84
+ createFile(bucketId: string, fileId: string, file: File, permissions?: string[], onProgress?: (progress: UploadProgress) => void): Promise<Models.File>;
85
+ /**
86
+ * Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.
87
+ *
88
+ * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
89
+ * @param {string} params.fileId - File ID.
90
+ * @throws {AgentbaseException}
91
+ * @returns {Promise<Models.File>}
92
+ */
93
+ getFile(params: {
94
+ bucketId: string;
95
+ fileId: string;
96
+ }): Promise<Models.File>;
97
+ /**
98
+ * Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.
99
+ *
100
+ * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
101
+ * @param {string} fileId - File ID.
102
+ * @throws {AgentbaseException}
103
+ * @returns {Promise<Models.File>}
104
+ * @deprecated Use the object parameter style method for a better developer experience.
105
+ */
106
+ getFile(bucketId: string, fileId: string): Promise<Models.File>;
107
+ /**
108
+ * Update a file by its unique ID. Only users with write permissions have access to update this resource.
109
+ *
110
+ * @param {string} params.bucketId - Bucket unique ID.
111
+ * @param {string} params.fileId - File ID.
112
+ * @param {string} params.name - File name.
113
+ * @param {string[]} params.permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions]([HOSTNAME]/docs/permissions).
114
+ * @throws {AgentbaseException}
115
+ * @returns {Promise<Models.File>}
116
+ */
117
+ updateFile(params: {
118
+ bucketId: string;
119
+ fileId: string;
120
+ name?: string;
121
+ permissions?: string[];
122
+ }): Promise<Models.File>;
123
+ /**
124
+ * Update a file by its unique ID. Only users with write permissions have access to update this resource.
125
+ *
126
+ * @param {string} bucketId - Bucket unique ID.
127
+ * @param {string} fileId - File ID.
128
+ * @param {string} name - File name.
129
+ * @param {string[]} permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions]([HOSTNAME]/docs/permissions).
130
+ * @throws {AgentbaseException}
131
+ * @returns {Promise<Models.File>}
132
+ * @deprecated Use the object parameter style method for a better developer experience.
133
+ */
134
+ updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File>;
135
+ /**
136
+ * Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
137
+ *
138
+ * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
139
+ * @param {string} params.fileId - File ID.
140
+ * @throws {AgentbaseException}
141
+ * @returns {Promise<{}>}
142
+ */
143
+ deleteFile(params: {
144
+ bucketId: string;
145
+ fileId: string;
146
+ }): Promise<{}>;
147
+ /**
148
+ * Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
149
+ *
150
+ * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
151
+ * @param {string} fileId - File ID.
152
+ * @throws {AgentbaseException}
153
+ * @returns {Promise<{}>}
154
+ * @deprecated Use the object parameter style method for a better developer experience.
155
+ */
156
+ deleteFile(bucketId: string, fileId: string): Promise<{}>;
157
+ /**
158
+ * Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
159
+ *
160
+ * @param {string} params.bucketId - Storage bucket ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
161
+ * @param {string} params.fileId - File ID.
162
+ * @param {string} params.token - File token for accessing this file.
163
+ * @throws {AgentbaseException}
164
+ * @returns {string}
165
+ */
166
+ getFileDownload(params: {
167
+ bucketId: string;
168
+ fileId: string;
169
+ token?: string;
170
+ }): string;
171
+ /**
172
+ * Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
173
+ *
174
+ * @param {string} bucketId - Storage bucket ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
175
+ * @param {string} fileId - File ID.
176
+ * @param {string} token - File token for accessing this file.
177
+ * @throws {AgentbaseException}
178
+ * @returns {string}
179
+ * @deprecated Use the object parameter style method for a better developer experience.
180
+ */
181
+ getFileDownload(bucketId: string, fileId: string, token?: string): string;
182
+ /**
183
+ * Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.
184
+ *
185
+ * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
186
+ * @param {string} params.fileId - File ID
187
+ * @param {number} params.width - Resize preview image width, Pass an integer between 0 to 4000.
188
+ * @param {number} params.height - Resize preview image height, Pass an integer between 0 to 4000.
189
+ * @param {ImageGravity} params.gravity - Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right
190
+ * @param {number} params.quality - Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.
191
+ * @param {number} params.borderWidth - Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.
192
+ * @param {string} params.borderColor - Preview image border color. Use a valid HEX color, no # is needed for prefix.
193
+ * @param {number} params.borderRadius - Preview image border radius in pixels. Pass an integer between 0 to 4000.
194
+ * @param {number} params.opacity - Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1.
195
+ * @param {number} params.rotation - Preview image rotation in degrees. Pass an integer between -360 and 360.
196
+ * @param {string} params.background - Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.
197
+ * @param {ImageFormat} params.output - Output format type (jpeg, jpg, png, gif and webp).
198
+ * @param {string} params.token - File token for accessing this file.
199
+ * @throws {AgentbaseException}
200
+ * @returns {string}
201
+ */
202
+ getFilePreview(params: {
203
+ bucketId: string;
204
+ fileId: string;
205
+ width?: number;
206
+ height?: number;
207
+ gravity?: ImageGravity;
208
+ quality?: number;
209
+ borderWidth?: number;
210
+ borderColor?: string;
211
+ borderRadius?: number;
212
+ opacity?: number;
213
+ rotation?: number;
214
+ background?: string;
215
+ output?: ImageFormat;
216
+ token?: string;
217
+ }): string;
218
+ /**
219
+ * Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.
220
+ *
221
+ * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
222
+ * @param {string} fileId - File ID
223
+ * @param {number} width - Resize preview image width, Pass an integer between 0 to 4000.
224
+ * @param {number} height - Resize preview image height, Pass an integer between 0 to 4000.
225
+ * @param {ImageGravity} gravity - Image crop gravity. Can be one of center,top-left,top,top-right,left,right,bottom-left,bottom,bottom-right
226
+ * @param {number} quality - Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.
227
+ * @param {number} borderWidth - Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.
228
+ * @param {string} borderColor - Preview image border color. Use a valid HEX color, no # is needed for prefix.
229
+ * @param {number} borderRadius - Preview image border radius in pixels. Pass an integer between 0 to 4000.
230
+ * @param {number} opacity - Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1.
231
+ * @param {number} rotation - Preview image rotation in degrees. Pass an integer between -360 and 360.
232
+ * @param {string} background - Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.
233
+ * @param {ImageFormat} output - Output format type (jpeg, jpg, png, gif and webp).
234
+ * @param {string} token - File token for accessing this file.
235
+ * @throws {AgentbaseException}
236
+ * @returns {string}
237
+ * @deprecated Use the object parameter style method for a better developer experience.
238
+ */
239
+ getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: ImageGravity, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: ImageFormat, token?: string): string;
240
+ /**
241
+ * Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.
242
+ *
243
+ * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
244
+ * @param {string} params.fileId - File ID.
245
+ * @param {string} params.token - File token for accessing this file.
246
+ * @throws {AgentbaseException}
247
+ * @returns {string}
248
+ */
249
+ getFileView(params: {
250
+ bucketId: string;
251
+ fileId: string;
252
+ token?: string;
253
+ }): string;
254
+ /**
255
+ * Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.
256
+ *
257
+ * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration]([HOSTNAME]/docs/server/storage#createBucket).
258
+ * @param {string} fileId - File ID.
259
+ * @param {string} token - File token for accessing this file.
260
+ * @throws {AgentbaseException}
261
+ * @returns {string}
262
+ * @deprecated Use the object parameter style method for a better developer experience.
263
+ */
264
+ getFileView(bucketId: string, fileId: string, token?: string): string;
265
+ }