@superdurable/connector-box 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dex-connector.json +897 -24
- package/dist/chunk-7RYWT7W3.js +1653 -0
- package/dist/connection-BIbBd41p.d.ts +509 -0
- package/dist/index.d.ts +902 -5
- package/dist/index.js +1165 -29
- package/dist/mock.d.ts +293 -3
- package/dist/mock.js +275 -1
- package/package.json +4 -4
- package/dist/chunk-C3MMWLYU.js +0 -315
- package/dist/connection-DfqaRnkX.d.ts +0 -124
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DownloadFileInput, a as DownloadedFile, U as UploadFileInput, b as UploadedFile, C as
|
|
2
|
-
export {
|
|
1
|
+
import { D as DownloadFileInput, a as DownloadedFile, U as UploadFileInput, b as UploadedFile, C as CreateBoxFolderInput, c as CreatedBoxItem, d as CopyBoxFileInput, e as CopyBoxFolderInput, f as UpdatedBoxItem, g as UpdateBoxFileInput, h as UpdateBoxFolderInput, S as ShareBoxFileInput, i as ShareBoxFolderInput, j as CreateBoxFileInput, k as CreatedBoxFile, G as GetFileInput, B as BoxFile, l as GetFolderInput, m as BoxFolder, L as ListFolderItemsInput, n as BoxItemPage, o as SearchFilesInput, p as SearchFoldersInput, q as DeleteFileInput, r as DeletedBoxItem, s as DeleteFolderInput, t as Config, u as Credentials, v as Connection, O as Operations } from './connection-BIbBd41p.js';
|
|
2
|
+
export { w as BoxFileSchema, x as BoxFolderSchema, y as BoxItem, z as BoxItemPageSchema, A as BoxItemSchema, E as ConfigSchema, F as CopyBoxFileInputSchema, H as CopyBoxFolderInputSchema, I as CreateBoxFileInputSchema, J as CreateBoxFolderInputSchema, K as CreatedBoxFileSchema, M as CreatedBoxItemSchema, N as CredentialMaterialError, P as CredentialSource, Q as DeleteFileInputSchema, R as DeleteFolderInputSchema, T as DeletedBoxItemSchema, V as DownloadFileInputSchema, W as DownloadedFileSchema, X as GetFileInputSchema, Y as GetFolderInputSchema, Z as ListFolderItemsInputSchema, _ as SearchFilesInputSchema, $ as SearchFoldersInputSchema, a0 as ShareBoxFileInputSchema, a1 as ShareBoxFolderInputSchema, a2 as SignedInteger, a3 as UpdateBoxFileInputSchema, a4 as UpdateBoxFolderInputSchema, a5 as UpdatedBoxItemSchema, a6 as UploadFileInputSchema, a7 as UploadedFileSchema, a8 as decodeCredentials, a9 as decodeSharedCredentials, aa as decodeSignedInteger, ab as exactIntegerJSONCodec, ac as isCredentialMaterialError, ad as newConnection, ae as newConnectionWithOperations, af as parseExactIntegerJSON, ag as parseJSONNumberTokens } from './connection-BIbBd41p.js';
|
|
3
3
|
import * as _superdurable_connectors_sdk from '@superdurable/connectors-sdk';
|
|
4
|
-
import {
|
|
4
|
+
import { MutationDefinition, QueryDefinition, Query, Call, QueryAttempt, Mutation, MutationAttempt, Failure, CallID, IdempotencyKey, CredentialProvider, CredentialRefreshDriver, MutationStepConfig, MutationResult, QueryStepConfig, QueryResult, MutationStep, QueryStep } from '@superdurable/connectors-sdk';
|
|
5
5
|
import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
|
|
6
6
|
import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
|
|
7
7
|
import { StepTarget } from '@superdurable/dex';
|
|
@@ -11,6 +11,202 @@ import 'zod';
|
|
|
11
11
|
declare const ConnectorID = "box";
|
|
12
12
|
/** Provider identity for named connections. */
|
|
13
13
|
declare const ProviderID = "box";
|
|
14
|
+
/** Branch IDs for createFolder. */
|
|
15
|
+
declare const CreateFolderBranch: {
|
|
16
|
+
readonly Created: "created";
|
|
17
|
+
readonly ProviderRejected: "providerRejected";
|
|
18
|
+
readonly Defect: "defect";
|
|
19
|
+
readonly Uncertain: "uncertain";
|
|
20
|
+
};
|
|
21
|
+
/** Box created or confirmed the folder. */
|
|
22
|
+
declare const CreateFolderBranchCreated: "created";
|
|
23
|
+
/** Box definitively rejected creation. */
|
|
24
|
+
declare const CreateFolderBranchProviderRejected: "providerRejected";
|
|
25
|
+
/** Local input or credentials are invalid. */
|
|
26
|
+
declare const CreateFolderBranchDefect: "defect";
|
|
27
|
+
/** The send cap was reached without confirming creation. */
|
|
28
|
+
declare const CreateFolderBranchUncertain: "uncertain";
|
|
29
|
+
/** Manifest definition for createFolder. */
|
|
30
|
+
declare const CreateFolderDefinition: MutationDefinition;
|
|
31
|
+
/** Manifest metadata for createFolder. */
|
|
32
|
+
declare const CreateFolderMetadata: {
|
|
33
|
+
readonly kind: "mutation";
|
|
34
|
+
readonly idempotency: "required";
|
|
35
|
+
readonly authorization: "required";
|
|
36
|
+
};
|
|
37
|
+
/** Branch IDs for copyFile. */
|
|
38
|
+
declare const CopyFileBranch: {
|
|
39
|
+
readonly Copied: "copied";
|
|
40
|
+
readonly ProviderRejected: "providerRejected";
|
|
41
|
+
readonly Defect: "defect";
|
|
42
|
+
readonly Uncertain: "uncertain";
|
|
43
|
+
};
|
|
44
|
+
/** Box copied or confirmed the file. */
|
|
45
|
+
declare const CopyFileBranchCopied: "copied";
|
|
46
|
+
/** Box definitively rejected copying. */
|
|
47
|
+
declare const CopyFileBranchProviderRejected: "providerRejected";
|
|
48
|
+
/** Local input or credentials are invalid. */
|
|
49
|
+
declare const CopyFileBranchDefect: "defect";
|
|
50
|
+
/** The send cap was reached without confirming the copy. */
|
|
51
|
+
declare const CopyFileBranchUncertain: "uncertain";
|
|
52
|
+
/** Manifest definition for copyFile. */
|
|
53
|
+
declare const CopyFileDefinition: MutationDefinition;
|
|
54
|
+
/** Manifest metadata for copyFile. */
|
|
55
|
+
declare const CopyFileMetadata: {
|
|
56
|
+
readonly kind: "mutation";
|
|
57
|
+
readonly idempotency: "required";
|
|
58
|
+
readonly authorization: "required";
|
|
59
|
+
};
|
|
60
|
+
/** Branch IDs for copyFolder. */
|
|
61
|
+
declare const CopyFolderBranch: {
|
|
62
|
+
readonly Copied: "copied";
|
|
63
|
+
readonly ProviderRejected: "providerRejected";
|
|
64
|
+
readonly Defect: "defect";
|
|
65
|
+
readonly Uncertain: "uncertain";
|
|
66
|
+
};
|
|
67
|
+
/** Box copied or confirmed the folder. */
|
|
68
|
+
declare const CopyFolderBranchCopied: "copied";
|
|
69
|
+
/** Box definitively rejected copying. */
|
|
70
|
+
declare const CopyFolderBranchProviderRejected: "providerRejected";
|
|
71
|
+
/** Local input or credentials are invalid. */
|
|
72
|
+
declare const CopyFolderBranchDefect: "defect";
|
|
73
|
+
/** The send cap was reached without confirming the copy. */
|
|
74
|
+
declare const CopyFolderBranchUncertain: "uncertain";
|
|
75
|
+
/** Manifest definition for copyFolder. */
|
|
76
|
+
declare const CopyFolderDefinition: MutationDefinition;
|
|
77
|
+
/** Manifest metadata for copyFolder. */
|
|
78
|
+
declare const CopyFolderMetadata: {
|
|
79
|
+
readonly kind: "mutation";
|
|
80
|
+
readonly idempotency: "required";
|
|
81
|
+
readonly authorization: "required";
|
|
82
|
+
};
|
|
83
|
+
/** Branch IDs for updateFile. */
|
|
84
|
+
declare const UpdateFileBranch: {
|
|
85
|
+
readonly Updated: "updated";
|
|
86
|
+
readonly NotFound: "notFound";
|
|
87
|
+
readonly ProviderRejected: "providerRejected";
|
|
88
|
+
readonly InvalidResponse: "invalidResponse";
|
|
89
|
+
readonly Defect: "defect";
|
|
90
|
+
};
|
|
91
|
+
/** Box updated the file. */
|
|
92
|
+
declare const UpdateFileBranchUpdated: "updated";
|
|
93
|
+
/** Box did not find this file. */
|
|
94
|
+
declare const UpdateFileBranchNotFound: "notFound";
|
|
95
|
+
/** Box definitively rejected the update. */
|
|
96
|
+
declare const UpdateFileBranchProviderRejected: "providerRejected";
|
|
97
|
+
/** Box returned malformed or oversized JSON. */
|
|
98
|
+
declare const UpdateFileBranchInvalidResponse: "invalidResponse";
|
|
99
|
+
/** Local input or credentials are invalid. */
|
|
100
|
+
declare const UpdateFileBranchDefect: "defect";
|
|
101
|
+
/** Manifest definition for updateFile. */
|
|
102
|
+
declare const UpdateFileDefinition: MutationDefinition;
|
|
103
|
+
/** Manifest metadata for updateFile. */
|
|
104
|
+
declare const UpdateFileMetadata: {
|
|
105
|
+
readonly kind: "mutation";
|
|
106
|
+
readonly idempotency: "required";
|
|
107
|
+
readonly authorization: "required";
|
|
108
|
+
};
|
|
109
|
+
/** Branch IDs for updateFolder. */
|
|
110
|
+
declare const UpdateFolderBranch: {
|
|
111
|
+
readonly Updated: "updated";
|
|
112
|
+
readonly NotFound: "notFound";
|
|
113
|
+
readonly ProviderRejected: "providerRejected";
|
|
114
|
+
readonly InvalidResponse: "invalidResponse";
|
|
115
|
+
readonly Defect: "defect";
|
|
116
|
+
};
|
|
117
|
+
/** Box updated the folder. */
|
|
118
|
+
declare const UpdateFolderBranchUpdated: "updated";
|
|
119
|
+
/** Box did not find this folder. */
|
|
120
|
+
declare const UpdateFolderBranchNotFound: "notFound";
|
|
121
|
+
/** Box definitively rejected the update. */
|
|
122
|
+
declare const UpdateFolderBranchProviderRejected: "providerRejected";
|
|
123
|
+
/** Box returned malformed or oversized JSON. */
|
|
124
|
+
declare const UpdateFolderBranchInvalidResponse: "invalidResponse";
|
|
125
|
+
/** Local input or credentials are invalid. */
|
|
126
|
+
declare const UpdateFolderBranchDefect: "defect";
|
|
127
|
+
/** Manifest definition for updateFolder. */
|
|
128
|
+
declare const UpdateFolderDefinition: MutationDefinition;
|
|
129
|
+
/** Manifest metadata for updateFolder. */
|
|
130
|
+
declare const UpdateFolderMetadata: {
|
|
131
|
+
readonly kind: "mutation";
|
|
132
|
+
readonly idempotency: "required";
|
|
133
|
+
readonly authorization: "required";
|
|
134
|
+
};
|
|
135
|
+
/** Branch IDs for shareFile. */
|
|
136
|
+
declare const ShareFileBranch: {
|
|
137
|
+
readonly Shared: "shared";
|
|
138
|
+
readonly NotFound: "notFound";
|
|
139
|
+
readonly ProviderRejected: "providerRejected";
|
|
140
|
+
readonly InvalidResponse: "invalidResponse";
|
|
141
|
+
readonly Defect: "defect";
|
|
142
|
+
};
|
|
143
|
+
/** Box returned the shared file link. */
|
|
144
|
+
declare const ShareFileBranchShared: "shared";
|
|
145
|
+
/** Box did not find this file. */
|
|
146
|
+
declare const ShareFileBranchNotFound: "notFound";
|
|
147
|
+
/** Box definitively rejected sharing. */
|
|
148
|
+
declare const ShareFileBranchProviderRejected: "providerRejected";
|
|
149
|
+
/** Box returned malformed or oversized JSON. */
|
|
150
|
+
declare const ShareFileBranchInvalidResponse: "invalidResponse";
|
|
151
|
+
/** Local input or credentials are invalid. */
|
|
152
|
+
declare const ShareFileBranchDefect: "defect";
|
|
153
|
+
/** Manifest definition for shareFile. */
|
|
154
|
+
declare const ShareFileDefinition: MutationDefinition;
|
|
155
|
+
/** Manifest metadata for shareFile. */
|
|
156
|
+
declare const ShareFileMetadata: {
|
|
157
|
+
readonly kind: "mutation";
|
|
158
|
+
readonly idempotency: "required";
|
|
159
|
+
readonly authorization: "required";
|
|
160
|
+
};
|
|
161
|
+
/** Branch IDs for shareFolder. */
|
|
162
|
+
declare const ShareFolderBranch: {
|
|
163
|
+
readonly Shared: "shared";
|
|
164
|
+
readonly NotFound: "notFound";
|
|
165
|
+
readonly ProviderRejected: "providerRejected";
|
|
166
|
+
readonly InvalidResponse: "invalidResponse";
|
|
167
|
+
readonly Defect: "defect";
|
|
168
|
+
};
|
|
169
|
+
/** Box returned the shared folder link. */
|
|
170
|
+
declare const ShareFolderBranchShared: "shared";
|
|
171
|
+
/** Box did not find this folder. */
|
|
172
|
+
declare const ShareFolderBranchNotFound: "notFound";
|
|
173
|
+
/** Box definitively rejected sharing. */
|
|
174
|
+
declare const ShareFolderBranchProviderRejected: "providerRejected";
|
|
175
|
+
/** Box returned malformed or oversized JSON. */
|
|
176
|
+
declare const ShareFolderBranchInvalidResponse: "invalidResponse";
|
|
177
|
+
/** Local input or credentials are invalid. */
|
|
178
|
+
declare const ShareFolderBranchDefect: "defect";
|
|
179
|
+
/** Manifest definition for shareFolder. */
|
|
180
|
+
declare const ShareFolderDefinition: MutationDefinition;
|
|
181
|
+
/** Manifest metadata for shareFolder. */
|
|
182
|
+
declare const ShareFolderMetadata: {
|
|
183
|
+
readonly kind: "mutation";
|
|
184
|
+
readonly idempotency: "required";
|
|
185
|
+
readonly authorization: "required";
|
|
186
|
+
};
|
|
187
|
+
/** Branch IDs for createFile. */
|
|
188
|
+
declare const CreateFileBranch: {
|
|
189
|
+
readonly Created: "created";
|
|
190
|
+
readonly ProviderRejected: "providerRejected";
|
|
191
|
+
readonly Defect: "defect";
|
|
192
|
+
readonly Uncertain: "uncertain";
|
|
193
|
+
};
|
|
194
|
+
/** Box created or confirmed the file. */
|
|
195
|
+
declare const CreateFileBranchCreated: "created";
|
|
196
|
+
/** Box definitively rejected creation. */
|
|
197
|
+
declare const CreateFileBranchProviderRejected: "providerRejected";
|
|
198
|
+
/** Local input or credentials are invalid. */
|
|
199
|
+
declare const CreateFileBranchDefect: "defect";
|
|
200
|
+
/** The send cap was reached without confirming creation. */
|
|
201
|
+
declare const CreateFileBranchUncertain: "uncertain";
|
|
202
|
+
/** Manifest definition for createFile. */
|
|
203
|
+
declare const CreateFileDefinition: MutationDefinition;
|
|
204
|
+
/** Manifest metadata for createFile. */
|
|
205
|
+
declare const CreateFileMetadata: {
|
|
206
|
+
readonly kind: "mutation";
|
|
207
|
+
readonly idempotency: "required";
|
|
208
|
+
readonly authorization: "required";
|
|
209
|
+
};
|
|
14
210
|
/** Branch IDs for downloadFile. */
|
|
15
211
|
declare const DownloadFileBranch: {
|
|
16
212
|
readonly Downloaded: "downloaded";
|
|
@@ -66,6 +262,182 @@ declare const UploadFileMetadata: {
|
|
|
66
262
|
readonly idempotency: "required";
|
|
67
263
|
readonly authorization: "required";
|
|
68
264
|
};
|
|
265
|
+
/** Branch IDs for getFile. */
|
|
266
|
+
declare const GetFileBranch: {
|
|
267
|
+
readonly Found: "found";
|
|
268
|
+
readonly NotFound: "notFound";
|
|
269
|
+
readonly ProviderRejected: "providerRejected";
|
|
270
|
+
readonly InvalidResponse: "invalidResponse";
|
|
271
|
+
readonly Defect: "defect";
|
|
272
|
+
};
|
|
273
|
+
/** Box returned the requested result. */
|
|
274
|
+
declare const GetFileBranchFound: "found";
|
|
275
|
+
/** Box did not find the requested item. */
|
|
276
|
+
declare const GetFileBranchNotFound: "notFound";
|
|
277
|
+
/** Box definitively rejected the request. */
|
|
278
|
+
declare const GetFileBranchProviderRejected: "providerRejected";
|
|
279
|
+
/** Box returned malformed or oversized JSON. */
|
|
280
|
+
declare const GetFileBranchInvalidResponse: "invalidResponse";
|
|
281
|
+
/** Local input or connection credentials are invalid. */
|
|
282
|
+
declare const GetFileBranchDefect: "defect";
|
|
283
|
+
/** Manifest definition for getFile. */
|
|
284
|
+
declare const GetFileDefinition: QueryDefinition;
|
|
285
|
+
/** Manifest metadata for getFile. */
|
|
286
|
+
declare const GetFileMetadata: {
|
|
287
|
+
readonly kind: "query";
|
|
288
|
+
readonly idempotency: "none";
|
|
289
|
+
readonly authorization: "required";
|
|
290
|
+
};
|
|
291
|
+
/** Branch IDs for getFolder. */
|
|
292
|
+
declare const GetFolderBranch: {
|
|
293
|
+
readonly Found: "found";
|
|
294
|
+
readonly NotFound: "notFound";
|
|
295
|
+
readonly ProviderRejected: "providerRejected";
|
|
296
|
+
readonly InvalidResponse: "invalidResponse";
|
|
297
|
+
readonly Defect: "defect";
|
|
298
|
+
};
|
|
299
|
+
/** Box returned the requested result. */
|
|
300
|
+
declare const GetFolderBranchFound: "found";
|
|
301
|
+
/** Box did not find the requested item. */
|
|
302
|
+
declare const GetFolderBranchNotFound: "notFound";
|
|
303
|
+
/** Box definitively rejected the request. */
|
|
304
|
+
declare const GetFolderBranchProviderRejected: "providerRejected";
|
|
305
|
+
/** Box returned malformed or oversized JSON. */
|
|
306
|
+
declare const GetFolderBranchInvalidResponse: "invalidResponse";
|
|
307
|
+
/** Local input or connection credentials are invalid. */
|
|
308
|
+
declare const GetFolderBranchDefect: "defect";
|
|
309
|
+
/** Manifest definition for getFolder. */
|
|
310
|
+
declare const GetFolderDefinition: QueryDefinition;
|
|
311
|
+
/** Manifest metadata for getFolder. */
|
|
312
|
+
declare const GetFolderMetadata: {
|
|
313
|
+
readonly kind: "query";
|
|
314
|
+
readonly idempotency: "none";
|
|
315
|
+
readonly authorization: "required";
|
|
316
|
+
};
|
|
317
|
+
/** Branch IDs for listFolderItems. */
|
|
318
|
+
declare const ListFolderItemsBranch: {
|
|
319
|
+
readonly Listed: "listed";
|
|
320
|
+
readonly NotFound: "notFound";
|
|
321
|
+
readonly ProviderRejected: "providerRejected";
|
|
322
|
+
readonly InvalidResponse: "invalidResponse";
|
|
323
|
+
readonly Defect: "defect";
|
|
324
|
+
};
|
|
325
|
+
/** Box returned the requested result. */
|
|
326
|
+
declare const ListFolderItemsBranchListed: "listed";
|
|
327
|
+
/** Box did not find the requested item. */
|
|
328
|
+
declare const ListFolderItemsBranchNotFound: "notFound";
|
|
329
|
+
/** Box definitively rejected the request. */
|
|
330
|
+
declare const ListFolderItemsBranchProviderRejected: "providerRejected";
|
|
331
|
+
/** Box returned malformed or oversized JSON. */
|
|
332
|
+
declare const ListFolderItemsBranchInvalidResponse: "invalidResponse";
|
|
333
|
+
/** Local input or connection credentials are invalid. */
|
|
334
|
+
declare const ListFolderItemsBranchDefect: "defect";
|
|
335
|
+
/** Manifest definition for listFolderItems. */
|
|
336
|
+
declare const ListFolderItemsDefinition: QueryDefinition;
|
|
337
|
+
/** Manifest metadata for listFolderItems. */
|
|
338
|
+
declare const ListFolderItemsMetadata: {
|
|
339
|
+
readonly kind: "query";
|
|
340
|
+
readonly idempotency: "none";
|
|
341
|
+
readonly authorization: "required";
|
|
342
|
+
};
|
|
343
|
+
/** Branch IDs for searchFiles. */
|
|
344
|
+
declare const SearchFilesBranch: {
|
|
345
|
+
readonly Found: "found";
|
|
346
|
+
readonly ProviderRejected: "providerRejected";
|
|
347
|
+
readonly InvalidResponse: "invalidResponse";
|
|
348
|
+
readonly Defect: "defect";
|
|
349
|
+
};
|
|
350
|
+
/** Box returned the requested result. */
|
|
351
|
+
declare const SearchFilesBranchFound: "found";
|
|
352
|
+
/** Box definitively rejected the request. */
|
|
353
|
+
declare const SearchFilesBranchProviderRejected: "providerRejected";
|
|
354
|
+
/** Box returned malformed or oversized JSON. */
|
|
355
|
+
declare const SearchFilesBranchInvalidResponse: "invalidResponse";
|
|
356
|
+
/** Local input or connection credentials are invalid. */
|
|
357
|
+
declare const SearchFilesBranchDefect: "defect";
|
|
358
|
+
/** Manifest definition for searchFiles. */
|
|
359
|
+
declare const SearchFilesDefinition: QueryDefinition;
|
|
360
|
+
/** Manifest metadata for searchFiles. */
|
|
361
|
+
declare const SearchFilesMetadata: {
|
|
362
|
+
readonly kind: "query";
|
|
363
|
+
readonly idempotency: "none";
|
|
364
|
+
readonly authorization: "required";
|
|
365
|
+
};
|
|
366
|
+
/** Branch IDs for searchFolders. */
|
|
367
|
+
declare const SearchFoldersBranch: {
|
|
368
|
+
readonly Found: "found";
|
|
369
|
+
readonly ProviderRejected: "providerRejected";
|
|
370
|
+
readonly InvalidResponse: "invalidResponse";
|
|
371
|
+
readonly Defect: "defect";
|
|
372
|
+
};
|
|
373
|
+
/** Box returned the requested result. */
|
|
374
|
+
declare const SearchFoldersBranchFound: "found";
|
|
375
|
+
/** Box definitively rejected the request. */
|
|
376
|
+
declare const SearchFoldersBranchProviderRejected: "providerRejected";
|
|
377
|
+
/** Box returned malformed or oversized JSON. */
|
|
378
|
+
declare const SearchFoldersBranchInvalidResponse: "invalidResponse";
|
|
379
|
+
/** Local input or connection credentials are invalid. */
|
|
380
|
+
declare const SearchFoldersBranchDefect: "defect";
|
|
381
|
+
/** Manifest definition for searchFolders. */
|
|
382
|
+
declare const SearchFoldersDefinition: QueryDefinition;
|
|
383
|
+
/** Manifest metadata for searchFolders. */
|
|
384
|
+
declare const SearchFoldersMetadata: {
|
|
385
|
+
readonly kind: "query";
|
|
386
|
+
readonly idempotency: "none";
|
|
387
|
+
readonly authorization: "required";
|
|
388
|
+
};
|
|
389
|
+
/** Branch IDs for deleteFile. */
|
|
390
|
+
declare const DeleteFileBranch: {
|
|
391
|
+
readonly Deleted: "deleted";
|
|
392
|
+
readonly NotFound: "notFound";
|
|
393
|
+
readonly ProviderRejected: "providerRejected";
|
|
394
|
+
readonly InvalidResponse: "invalidResponse";
|
|
395
|
+
readonly Defect: "defect";
|
|
396
|
+
};
|
|
397
|
+
/** Box returned the requested result. */
|
|
398
|
+
declare const DeleteFileBranchDeleted: "deleted";
|
|
399
|
+
/** Box did not find the requested item. */
|
|
400
|
+
declare const DeleteFileBranchNotFound: "notFound";
|
|
401
|
+
/** Box definitively rejected the request. */
|
|
402
|
+
declare const DeleteFileBranchProviderRejected: "providerRejected";
|
|
403
|
+
/** Box returned malformed or oversized JSON. */
|
|
404
|
+
declare const DeleteFileBranchInvalidResponse: "invalidResponse";
|
|
405
|
+
/** Local input or connection credentials are invalid. */
|
|
406
|
+
declare const DeleteFileBranchDefect: "defect";
|
|
407
|
+
/** Manifest definition for deleteFile. */
|
|
408
|
+
declare const DeleteFileDefinition: MutationDefinition;
|
|
409
|
+
/** Manifest metadata for deleteFile. */
|
|
410
|
+
declare const DeleteFileMetadata: {
|
|
411
|
+
readonly kind: "mutation";
|
|
412
|
+
readonly idempotency: "required";
|
|
413
|
+
readonly authorization: "required";
|
|
414
|
+
};
|
|
415
|
+
/** Branch IDs for deleteFolder. */
|
|
416
|
+
declare const DeleteFolderBranch: {
|
|
417
|
+
readonly Deleted: "deleted";
|
|
418
|
+
readonly NotFound: "notFound";
|
|
419
|
+
readonly ProviderRejected: "providerRejected";
|
|
420
|
+
readonly InvalidResponse: "invalidResponse";
|
|
421
|
+
readonly Defect: "defect";
|
|
422
|
+
};
|
|
423
|
+
/** Box returned the requested result. */
|
|
424
|
+
declare const DeleteFolderBranchDeleted: "deleted";
|
|
425
|
+
/** Box did not find the requested item. */
|
|
426
|
+
declare const DeleteFolderBranchNotFound: "notFound";
|
|
427
|
+
/** Box definitively rejected the request. */
|
|
428
|
+
declare const DeleteFolderBranchProviderRejected: "providerRejected";
|
|
429
|
+
/** Box returned malformed or oversized JSON. */
|
|
430
|
+
declare const DeleteFolderBranchInvalidResponse: "invalidResponse";
|
|
431
|
+
/** Local input or connection credentials are invalid. */
|
|
432
|
+
declare const DeleteFolderBranchDefect: "defect";
|
|
433
|
+
/** Manifest definition for deleteFolder. */
|
|
434
|
+
declare const DeleteFolderDefinition: MutationDefinition;
|
|
435
|
+
/** Manifest metadata for deleteFolder. */
|
|
436
|
+
declare const DeleteFolderMetadata: {
|
|
437
|
+
readonly kind: "mutation";
|
|
438
|
+
readonly idempotency: "required";
|
|
439
|
+
readonly authorization: "required";
|
|
440
|
+
};
|
|
69
441
|
|
|
70
442
|
/** One bounded Box file-content Query. */
|
|
71
443
|
declare class DownloadFileOperation implements Query<DownloadFileInput, DownloadedFile> {
|
|
@@ -79,12 +451,183 @@ declare class DownloadFileOperation implements Query<DownloadFileInput, Download
|
|
|
79
451
|
declare class UploadFileOperation implements Mutation<UploadFileInput, UploadedFile> {
|
|
80
452
|
private readonly client;
|
|
81
453
|
/** Bind the provider client. */ constructor(client: BoxClient);
|
|
82
|
-
/** Return stable manifest metadata. */ definition(): _superdurable_connectors_sdk.
|
|
454
|
+
/** Return stable manifest metadata. */ definition(): _superdurable_connectors_sdk.MutationDefinition;
|
|
83
455
|
/** Record stable call identity; Box receives no request key. */ idempotencyKey(callID: string, _input: UploadFileInput): string;
|
|
84
456
|
/** Compare current content, replace once, and read back ambiguous outcomes. */
|
|
85
457
|
invoke(call: Call, input: UploadFileInput): Promise<MutationAttempt<UploadedFile>>;
|
|
86
458
|
}
|
|
87
459
|
|
|
460
|
+
type Kind = Failure['kind'];
|
|
461
|
+
type Document = Record<string, unknown>;
|
|
462
|
+
type ItemType = 'folder' | 'file';
|
|
463
|
+
type Decode<Output> = (raw: unknown) => Output;
|
|
464
|
+
interface Problem {
|
|
465
|
+
kind: Kind;
|
|
466
|
+
message: string;
|
|
467
|
+
branch?: string;
|
|
468
|
+
delay?: number;
|
|
469
|
+
}
|
|
470
|
+
declare abstract class Operation<Input, Output> {
|
|
471
|
+
protected readonly client: BoxClient;
|
|
472
|
+
protected abstract readonly operation: string;
|
|
473
|
+
/** Bind an authenticated Box client. */
|
|
474
|
+
constructor(client: BoxClient);
|
|
475
|
+
abstract invoke(call: Call, input: Input): Promise<QueryAttempt<Output> | MutationAttempt<Output>>;
|
|
476
|
+
protected failure(problem: Problem): Failure;
|
|
477
|
+
}
|
|
478
|
+
declare abstract class ReadOperation<Input, Output> extends Operation<Input, Output> implements Query<Input, Output> {
|
|
479
|
+
protected abstract readonly contract: QueryDefinition;
|
|
480
|
+
abstract invoke(call: Call, input: Input): Promise<QueryAttempt<Output>>;
|
|
481
|
+
/** Return the manifest-generated Query definition. */
|
|
482
|
+
definition(): QueryDefinition;
|
|
483
|
+
protected defect(empty: Output, message: string): QueryAttempt<Output>;
|
|
484
|
+
protected read(call: Call, path: string, empty: Output, branch: string, decode: Decode<Output>, hasNotFound?: boolean): Promise<QueryAttempt<Output>>;
|
|
485
|
+
}
|
|
486
|
+
interface Write<Output> {
|
|
487
|
+
method: 'PUT' | 'DELETE';
|
|
488
|
+
path: string;
|
|
489
|
+
empty: Output;
|
|
490
|
+
branch: string;
|
|
491
|
+
decode: Decode<Output>;
|
|
492
|
+
payload?: Document;
|
|
493
|
+
}
|
|
494
|
+
interface Creation<Output> {
|
|
495
|
+
path: string;
|
|
496
|
+
name: string;
|
|
497
|
+
parentId: string;
|
|
498
|
+
branch: string;
|
|
499
|
+
empty: Output;
|
|
500
|
+
decode: Decode<Output>;
|
|
501
|
+
itemType: ItemType;
|
|
502
|
+
file?: {
|
|
503
|
+
content: Uint8Array;
|
|
504
|
+
digest: string;
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
declare abstract class WriteOperation<Input, Output> extends Operation<Input, Output> implements Mutation<Input, Output> {
|
|
508
|
+
protected abstract readonly contract: MutationDefinition;
|
|
509
|
+
abstract invoke(call: Call, input: Input): Promise<MutationAttempt<Output>>;
|
|
510
|
+
/** Return the manifest-generated Mutation definition. */
|
|
511
|
+
definition(): MutationDefinition;
|
|
512
|
+
/** Correlate attempts with the original Dex call. */
|
|
513
|
+
idempotencyKey(callID: CallID): IdempotencyKey;
|
|
514
|
+
protected outcome(empty: Output, problem: Problem): MutationAttempt<Output>;
|
|
515
|
+
protected defect(empty: Output, message: string): MutationAttempt<Output>;
|
|
516
|
+
protected write(call: Call, request: Write<Output>): Promise<MutationAttempt<Output>>;
|
|
517
|
+
protected create(call: Call, request: Creation<Output>): Promise<MutationAttempt<Output>>;
|
|
518
|
+
private uncertain;
|
|
519
|
+
private unknownCreate;
|
|
520
|
+
private readDestination;
|
|
521
|
+
}
|
|
522
|
+
declare abstract class ChangeItem<Input> extends WriteOperation<Input, UpdatedBoxItem> {
|
|
523
|
+
protected update(call: Call, itemType: ItemType, id: string, branch: string, name: string, parent: string, access: string): Promise<MutationAttempt<UpdatedBoxItem>>;
|
|
524
|
+
}
|
|
525
|
+
/** Create one named Box folder under a parent folder. */
|
|
526
|
+
declare class CreateFolderOperation extends WriteOperation<CreateBoxFolderInput, CreatedBoxItem> {
|
|
527
|
+
protected readonly operation = "createFolder";
|
|
528
|
+
protected readonly contract: MutationDefinition;
|
|
529
|
+
/** Create one named Box folder under a parent folder. */
|
|
530
|
+
invoke(call: Call, input: CreateBoxFolderInput): Promise<MutationAttempt<CreatedBoxItem>>;
|
|
531
|
+
}
|
|
532
|
+
/** Copy a Box file to a parent folder under an explicit name. */
|
|
533
|
+
declare class CopyFileOperation extends WriteOperation<CopyBoxFileInput, CreatedBoxItem> {
|
|
534
|
+
protected readonly operation = "copyFile";
|
|
535
|
+
protected readonly contract: MutationDefinition;
|
|
536
|
+
/** Copy a Box file to a parent folder under an explicit name. */
|
|
537
|
+
invoke(call: Call, input: CopyBoxFileInput): Promise<MutationAttempt<CreatedBoxItem>>;
|
|
538
|
+
}
|
|
539
|
+
/** Copy a Box folder to a parent folder under an explicit name. */
|
|
540
|
+
declare class CopyFolderOperation extends WriteOperation<CopyBoxFolderInput, CreatedBoxItem> {
|
|
541
|
+
protected readonly operation = "copyFolder";
|
|
542
|
+
protected readonly contract: MutationDefinition;
|
|
543
|
+
/** Copy a Box folder to a parent folder under an explicit name. */
|
|
544
|
+
invoke(call: Call, input: CopyBoxFolderInput): Promise<MutationAttempt<CreatedBoxItem>>;
|
|
545
|
+
}
|
|
546
|
+
/** Rename or move a file, or create or change its shared link. */
|
|
547
|
+
declare class UpdateFileOperation extends ChangeItem<UpdateBoxFileInput> {
|
|
548
|
+
protected readonly operation = "updateFile";
|
|
549
|
+
protected readonly contract: MutationDefinition;
|
|
550
|
+
/** Rename or move a file, or create or change its shared link. */
|
|
551
|
+
invoke(call: Call, input: UpdateBoxFileInput): Promise<MutationAttempt<UpdatedBoxItem>>;
|
|
552
|
+
}
|
|
553
|
+
/** Rename or move a folder, or create or change its shared link. */
|
|
554
|
+
declare class UpdateFolderOperation extends ChangeItem<UpdateBoxFolderInput> {
|
|
555
|
+
protected readonly operation = "updateFolder";
|
|
556
|
+
protected readonly contract: MutationDefinition;
|
|
557
|
+
/** Rename or move a folder, or create or change its shared link. */
|
|
558
|
+
invoke(call: Call, input: UpdateBoxFolderInput): Promise<MutationAttempt<UpdatedBoxItem>>;
|
|
559
|
+
}
|
|
560
|
+
/** Create or replace a Box file's shared link access. */
|
|
561
|
+
declare class ShareFileOperation extends ChangeItem<ShareBoxFileInput> {
|
|
562
|
+
protected readonly operation = "shareFile";
|
|
563
|
+
protected readonly contract: MutationDefinition;
|
|
564
|
+
/** Create or replace a Box file's shared link access. */
|
|
565
|
+
invoke(call: Call, input: ShareBoxFileInput): Promise<MutationAttempt<UpdatedBoxItem>>;
|
|
566
|
+
}
|
|
567
|
+
/** Create or replace a Box folder's shared link access. */
|
|
568
|
+
declare class ShareFolderOperation extends ChangeItem<ShareBoxFolderInput> {
|
|
569
|
+
protected readonly operation = "shareFolder";
|
|
570
|
+
protected readonly contract: MutationDefinition;
|
|
571
|
+
/** Create or replace a Box folder's shared link access. */
|
|
572
|
+
invoke(call: Call, input: ShareBoxFolderInput): Promise<MutationAttempt<UpdatedBoxItem>>;
|
|
573
|
+
}
|
|
574
|
+
/** Upload one new bounded file under a Box folder. */
|
|
575
|
+
declare class CreateFileOperation extends WriteOperation<CreateBoxFileInput, CreatedBoxFile> {
|
|
576
|
+
protected readonly operation = "createFile";
|
|
577
|
+
protected readonly contract: MutationDefinition;
|
|
578
|
+
/** Upload one new bounded file under a Box folder. */
|
|
579
|
+
invoke(call: Call, input: CreateBoxFileInput): Promise<MutationAttempt<CreatedBoxFile>>;
|
|
580
|
+
}
|
|
581
|
+
/** Retrieve one Box file's metadata. */
|
|
582
|
+
declare class GetFileOperation extends ReadOperation<GetFileInput, BoxFile> {
|
|
583
|
+
protected readonly operation = "getFile";
|
|
584
|
+
protected readonly contract: QueryDefinition;
|
|
585
|
+
/** Retrieve one Box file's metadata. */
|
|
586
|
+
invoke(call: Call, input: GetFileInput): Promise<QueryAttempt<BoxFile>>;
|
|
587
|
+
}
|
|
588
|
+
/** Retrieve one Box folder's metadata. */
|
|
589
|
+
declare class GetFolderOperation extends ReadOperation<GetFolderInput, BoxFolder> {
|
|
590
|
+
protected readonly operation = "getFolder";
|
|
591
|
+
protected readonly contract: QueryDefinition;
|
|
592
|
+
/** Retrieve one Box folder's metadata. */
|
|
593
|
+
invoke(call: Call, input: GetFolderInput): Promise<QueryAttempt<BoxFolder>>;
|
|
594
|
+
}
|
|
595
|
+
/** List one page of files and folders in a Box folder. */
|
|
596
|
+
declare class ListFolderItemsOperation extends ReadOperation<ListFolderItemsInput, BoxItemPage> {
|
|
597
|
+
protected readonly operation = "listFolderItems";
|
|
598
|
+
protected readonly contract: QueryDefinition;
|
|
599
|
+
/** List one page of files and folders in a Box folder. */
|
|
600
|
+
invoke(call: Call, input: ListFolderItemsInput): Promise<QueryAttempt<BoxItemPage>>;
|
|
601
|
+
}
|
|
602
|
+
/** Search accessible Box files by a text query. */
|
|
603
|
+
declare class SearchFilesOperation extends ReadOperation<SearchFilesInput, BoxItemPage> {
|
|
604
|
+
protected readonly operation = "searchFiles";
|
|
605
|
+
protected readonly contract: QueryDefinition;
|
|
606
|
+
/** Search accessible Box files by a text query. */
|
|
607
|
+
invoke(call: Call, input: SearchFilesInput): Promise<QueryAttempt<BoxItemPage>>;
|
|
608
|
+
}
|
|
609
|
+
/** Search accessible Box folders by a text query. */
|
|
610
|
+
declare class SearchFoldersOperation extends ReadOperation<SearchFoldersInput, BoxItemPage> {
|
|
611
|
+
protected readonly operation = "searchFolders";
|
|
612
|
+
protected readonly contract: QueryDefinition;
|
|
613
|
+
/** Search accessible Box folders by a text query. */
|
|
614
|
+
invoke(call: Call, input: SearchFoldersInput): Promise<QueryAttempt<BoxItemPage>>;
|
|
615
|
+
}
|
|
616
|
+
/** Delete one Box file by ID. */
|
|
617
|
+
declare class DeleteFileOperation extends WriteOperation<DeleteFileInput, DeletedBoxItem> {
|
|
618
|
+
protected readonly operation = "deleteFile";
|
|
619
|
+
protected readonly contract: MutationDefinition;
|
|
620
|
+
/** Delete one Box file by ID. */
|
|
621
|
+
invoke(call: Call, input: DeleteFileInput): Promise<MutationAttempt<DeletedBoxItem>>;
|
|
622
|
+
}
|
|
623
|
+
/** Delete one empty Box folder by ID. */
|
|
624
|
+
declare class DeleteFolderOperation extends WriteOperation<DeleteFolderInput, DeletedBoxItem> {
|
|
625
|
+
protected readonly operation = "deleteFolder";
|
|
626
|
+
protected readonly contract: MutationDefinition;
|
|
627
|
+
/** Delete one empty Box folder by ID. */
|
|
628
|
+
invoke(call: Call, input: DeleteFolderInput): Promise<MutationAttempt<DeletedBoxItem>>;
|
|
629
|
+
}
|
|
630
|
+
|
|
88
631
|
/** One bounded provider response or classified transport failure. */
|
|
89
632
|
interface BoxExchange {
|
|
90
633
|
/** HTTP status, or zero before response headers. */ status: number;
|
|
@@ -116,12 +659,49 @@ declare class BoxClient {
|
|
|
116
659
|
constructor(config: Config, credentials: CredentialProvider<Credentials>, options?: BoxClientOptions);
|
|
117
660
|
/** Bind the bounded download Query. */ downloadFile(): DownloadFileOperation;
|
|
118
661
|
/** Bind the bounded replacement Mutation. */ uploadFile(): UploadFileOperation;
|
|
662
|
+
/** Bind the createFolder operation. */
|
|
663
|
+
createFolder(): CreateFolderOperation;
|
|
664
|
+
/** Bind the copyFile operation. */
|
|
665
|
+
copyFile(): CopyFileOperation;
|
|
666
|
+
/** Bind the copyFolder operation. */
|
|
667
|
+
copyFolder(): CopyFolderOperation;
|
|
668
|
+
/** Bind the updateFile operation. */
|
|
669
|
+
updateFile(): UpdateFileOperation;
|
|
670
|
+
/** Bind the updateFolder operation. */
|
|
671
|
+
updateFolder(): UpdateFolderOperation;
|
|
672
|
+
/** Bind the shareFile operation. */
|
|
673
|
+
shareFile(): ShareFileOperation;
|
|
674
|
+
/** Bind the shareFolder operation. */
|
|
675
|
+
shareFolder(): ShareFolderOperation;
|
|
676
|
+
/** Bind the createFile operation. */
|
|
677
|
+
createFile(): CreateFileOperation;
|
|
678
|
+
/** Bind the getFile operation. */
|
|
679
|
+
getFile(): GetFileOperation;
|
|
680
|
+
/** Bind the getFolder operation. */
|
|
681
|
+
getFolder(): GetFolderOperation;
|
|
682
|
+
/** Bind the listFolderItems operation. */
|
|
683
|
+
listFolderItems(): ListFolderItemsOperation;
|
|
684
|
+
/** Bind the searchFiles operation. */
|
|
685
|
+
searchFiles(): SearchFilesOperation;
|
|
686
|
+
/** Bind the searchFolders operation. */
|
|
687
|
+
searchFolders(): SearchFoldersOperation;
|
|
688
|
+
/** Bind the deleteFile operation. */
|
|
689
|
+
deleteFile(): DeleteFileOperation;
|
|
690
|
+
/** Bind the deleteFolder operation. */
|
|
691
|
+
deleteFolder(): DeleteFolderOperation;
|
|
119
692
|
/** Download one file, following only Box's signed HTTPS content URL. */
|
|
120
693
|
download(call: Call, fileID: string): Promise<BoxExchange>;
|
|
121
694
|
/** Read one file's current identity and digest. */
|
|
122
695
|
getFileMetadata(call: Call, fileID: string): Promise<BoxExchange>;
|
|
123
696
|
/** Replace current content with Box's attributes-first multipart request. */
|
|
124
697
|
upload(call: Call, fileID: string, name: string, content: Uint8Array): Promise<BoxExchange>;
|
|
698
|
+
/** Send a bounded request against the configured Box API. */
|
|
699
|
+
itemRequest(call: Call, method: string, path: string, payload?: object): Promise<BoxExchange>;
|
|
700
|
+
/** Resolve credentials outside the fence and bind them to one metadata request. */
|
|
701
|
+
prepareItemRequest(call: Call, method: string, path: string, payload?: object, file?: {
|
|
702
|
+
name: string;
|
|
703
|
+
content: Uint8Array;
|
|
704
|
+
}): Promise<BoxExchange | ((signal: AbortSignal) => Promise<BoxExchange>)>;
|
|
125
705
|
private resolveToken;
|
|
126
706
|
private request;
|
|
127
707
|
}
|
|
@@ -131,6 +711,174 @@ declare function header(headers: ProviderResponse['headers'], name: string): str
|
|
|
131
711
|
/** Open one statically named renewable Box connection from Dex project configuration. */
|
|
132
712
|
declare function newProjectConnection(project: LoadedProject, connectionName: string, options?: BoxClientOptions): Connection<Operations>;
|
|
133
713
|
|
|
714
|
+
/** Configuration for the createFolder connector Step. */
|
|
715
|
+
interface CreateFolderStepConfig<StepInput, OperationInput = CreateBoxFolderInput, OperationOutput = CreatedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
716
|
+
/** Named connection supplying this operation. */
|
|
717
|
+
connection: Connection<{
|
|
718
|
+
createFolder(): Mutation<OperationInput, OperationOutput>;
|
|
719
|
+
}>;
|
|
720
|
+
/** Name matching the bound connection. */
|
|
721
|
+
connectionName: string;
|
|
722
|
+
/** Box created or confirmed the folder. */
|
|
723
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
724
|
+
/** Box definitively rejected creation. */
|
|
725
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
726
|
+
/** Local input or credentials are invalid. */
|
|
727
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
728
|
+
/** The send cap was reached without confirming creation. */
|
|
729
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
730
|
+
}
|
|
731
|
+
/** Build the createFolder Step from a named connection. */
|
|
732
|
+
declare function newCreateFolderStep<StepInput, OperationInput = CreateBoxFolderInput, OperationOutput = CreatedBoxItem>(configuration: CreateFolderStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
733
|
+
/** Configuration for the copyFile connector Step. */
|
|
734
|
+
interface CopyFileStepConfig<StepInput, OperationInput = CopyBoxFileInput, OperationOutput = CreatedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
735
|
+
/** Named connection supplying this operation. */
|
|
736
|
+
connection: Connection<{
|
|
737
|
+
copyFile(): Mutation<OperationInput, OperationOutput>;
|
|
738
|
+
}>;
|
|
739
|
+
/** Name matching the bound connection. */
|
|
740
|
+
connectionName: string;
|
|
741
|
+
/** Box copied or confirmed the file. */
|
|
742
|
+
copied: StepTarget<MutationResult<OperationOutput>>;
|
|
743
|
+
/** Box definitively rejected copying. */
|
|
744
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
745
|
+
/** Local input or credentials are invalid. */
|
|
746
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
747
|
+
/** The send cap was reached without confirming the copy. */
|
|
748
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
749
|
+
}
|
|
750
|
+
/** Build the copyFile Step from a named connection. */
|
|
751
|
+
declare function newCopyFileStep<StepInput, OperationInput = CopyBoxFileInput, OperationOutput = CreatedBoxItem>(configuration: CopyFileStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
752
|
+
/** Configuration for the copyFolder connector Step. */
|
|
753
|
+
interface CopyFolderStepConfig<StepInput, OperationInput = CopyBoxFolderInput, OperationOutput = CreatedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
754
|
+
/** Named connection supplying this operation. */
|
|
755
|
+
connection: Connection<{
|
|
756
|
+
copyFolder(): Mutation<OperationInput, OperationOutput>;
|
|
757
|
+
}>;
|
|
758
|
+
/** Name matching the bound connection. */
|
|
759
|
+
connectionName: string;
|
|
760
|
+
/** Box copied or confirmed the folder. */
|
|
761
|
+
copied: StepTarget<MutationResult<OperationOutput>>;
|
|
762
|
+
/** Box definitively rejected copying. */
|
|
763
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
764
|
+
/** Local input or credentials are invalid. */
|
|
765
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
766
|
+
/** The send cap was reached without confirming the copy. */
|
|
767
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
768
|
+
}
|
|
769
|
+
/** Build the copyFolder Step from a named connection. */
|
|
770
|
+
declare function newCopyFolderStep<StepInput, OperationInput = CopyBoxFolderInput, OperationOutput = CreatedBoxItem>(configuration: CopyFolderStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
771
|
+
/** Configuration for the updateFile connector Step. */
|
|
772
|
+
interface UpdateFileStepConfig<StepInput, OperationInput = UpdateBoxFileInput, OperationOutput = UpdatedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
773
|
+
/** Named connection supplying this operation. */
|
|
774
|
+
connection: Connection<{
|
|
775
|
+
updateFile(): Mutation<OperationInput, OperationOutput>;
|
|
776
|
+
}>;
|
|
777
|
+
/** Name matching the bound connection. */
|
|
778
|
+
connectionName: string;
|
|
779
|
+
/** Box updated the file. */
|
|
780
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
781
|
+
/** Box did not find this file. */
|
|
782
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
783
|
+
/** Box definitively rejected the update. */
|
|
784
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
785
|
+
/** Box returned malformed or oversized JSON. */
|
|
786
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
787
|
+
/** Local input or credentials are invalid. */
|
|
788
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
789
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
790
|
+
maxSends?: number;
|
|
791
|
+
}
|
|
792
|
+
/** Build the updateFile Step from a named connection. */
|
|
793
|
+
declare function newUpdateFileStep<StepInput, OperationInput = UpdateBoxFileInput, OperationOutput = UpdatedBoxItem>(configuration: UpdateFileStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
794
|
+
/** Configuration for the updateFolder connector Step. */
|
|
795
|
+
interface UpdateFolderStepConfig<StepInput, OperationInput = UpdateBoxFolderInput, OperationOutput = UpdatedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
796
|
+
/** Named connection supplying this operation. */
|
|
797
|
+
connection: Connection<{
|
|
798
|
+
updateFolder(): Mutation<OperationInput, OperationOutput>;
|
|
799
|
+
}>;
|
|
800
|
+
/** Name matching the bound connection. */
|
|
801
|
+
connectionName: string;
|
|
802
|
+
/** Box updated the folder. */
|
|
803
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
804
|
+
/** Box did not find this folder. */
|
|
805
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
806
|
+
/** Box definitively rejected the update. */
|
|
807
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
808
|
+
/** Box returned malformed or oversized JSON. */
|
|
809
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
810
|
+
/** Local input or credentials are invalid. */
|
|
811
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
812
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
813
|
+
maxSends?: number;
|
|
814
|
+
}
|
|
815
|
+
/** Build the updateFolder Step from a named connection. */
|
|
816
|
+
declare function newUpdateFolderStep<StepInput, OperationInput = UpdateBoxFolderInput, OperationOutput = UpdatedBoxItem>(configuration: UpdateFolderStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
817
|
+
/** Configuration for the shareFile connector Step. */
|
|
818
|
+
interface ShareFileStepConfig<StepInput, OperationInput = ShareBoxFileInput, OperationOutput = UpdatedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
819
|
+
/** Named connection supplying this operation. */
|
|
820
|
+
connection: Connection<{
|
|
821
|
+
shareFile(): Mutation<OperationInput, OperationOutput>;
|
|
822
|
+
}>;
|
|
823
|
+
/** Name matching the bound connection. */
|
|
824
|
+
connectionName: string;
|
|
825
|
+
/** Box returned the shared file link. */
|
|
826
|
+
shared: StepTarget<MutationResult<OperationOutput>>;
|
|
827
|
+
/** Box did not find this file. */
|
|
828
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
829
|
+
/** Box definitively rejected sharing. */
|
|
830
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
831
|
+
/** Box returned malformed or oversized JSON. */
|
|
832
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
833
|
+
/** Local input or credentials are invalid. */
|
|
834
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
835
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
836
|
+
maxSends?: number;
|
|
837
|
+
}
|
|
838
|
+
/** Build the shareFile Step from a named connection. */
|
|
839
|
+
declare function newShareFileStep<StepInput, OperationInput = ShareBoxFileInput, OperationOutput = UpdatedBoxItem>(configuration: ShareFileStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
840
|
+
/** Configuration for the shareFolder connector Step. */
|
|
841
|
+
interface ShareFolderStepConfig<StepInput, OperationInput = ShareBoxFolderInput, OperationOutput = UpdatedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
842
|
+
/** Named connection supplying this operation. */
|
|
843
|
+
connection: Connection<{
|
|
844
|
+
shareFolder(): Mutation<OperationInput, OperationOutput>;
|
|
845
|
+
}>;
|
|
846
|
+
/** Name matching the bound connection. */
|
|
847
|
+
connectionName: string;
|
|
848
|
+
/** Box returned the shared folder link. */
|
|
849
|
+
shared: StepTarget<MutationResult<OperationOutput>>;
|
|
850
|
+
/** Box did not find this folder. */
|
|
851
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
852
|
+
/** Box definitively rejected sharing. */
|
|
853
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
854
|
+
/** Box returned malformed or oversized JSON. */
|
|
855
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
856
|
+
/** Local input or credentials are invalid. */
|
|
857
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
858
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
859
|
+
maxSends?: number;
|
|
860
|
+
}
|
|
861
|
+
/** Build the shareFolder Step from a named connection. */
|
|
862
|
+
declare function newShareFolderStep<StepInput, OperationInput = ShareBoxFolderInput, OperationOutput = UpdatedBoxItem>(configuration: ShareFolderStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
863
|
+
/** Configuration for the createFile connector Step. */
|
|
864
|
+
interface CreateFileStepConfig<StepInput, OperationInput = CreateBoxFileInput, OperationOutput = CreatedBoxFile> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
865
|
+
/** Named connection supplying this operation. */
|
|
866
|
+
connection: Connection<{
|
|
867
|
+
createFile(): Mutation<OperationInput, OperationOutput>;
|
|
868
|
+
}>;
|
|
869
|
+
/** Name matching the bound connection. */
|
|
870
|
+
connectionName: string;
|
|
871
|
+
/** Box created or confirmed the file. */
|
|
872
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
873
|
+
/** Box definitively rejected creation. */
|
|
874
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
875
|
+
/** Local input or credentials are invalid. */
|
|
876
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
877
|
+
/** The send cap was reached without confirming creation. */
|
|
878
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
879
|
+
}
|
|
880
|
+
/** Build the createFile Step from a named connection. */
|
|
881
|
+
declare function newCreateFileStep<StepInput, OperationInput = CreateBoxFileInput, OperationOutput = CreatedBoxFile>(configuration: CreateFileStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
134
882
|
/** Configuration for the downloadFile connector Step. */
|
|
135
883
|
interface DownloadFileStepConfig<StepInput, OperationInput = DownloadFileInput, OperationOutput = DownloadedFile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
136
884
|
/** Named connection supplying this operation. */
|
|
@@ -172,8 +920,157 @@ interface UploadFileStepConfig<StepInput, OperationInput = UploadFileInput, Oper
|
|
|
172
920
|
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
173
921
|
/** Local input or connection credentials are invalid. */
|
|
174
922
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
923
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
924
|
+
maxSends?: number;
|
|
175
925
|
}
|
|
176
926
|
/** Build the uploadFile Step from a named connection. */
|
|
177
927
|
declare function newUploadFileStep<StepInput, OperationInput = UploadFileInput, OperationOutput = UploadedFile>(configuration: UploadFileStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
928
|
+
/** Configuration for the getFile connector Step. */
|
|
929
|
+
interface GetFileStepConfig<StepInput, OperationInput = GetFileInput, OperationOutput = BoxFile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
930
|
+
/** Named connection supplying this operation. */
|
|
931
|
+
connection: Connection<{
|
|
932
|
+
getFile(): Query<OperationInput, OperationOutput>;
|
|
933
|
+
}>;
|
|
934
|
+
/** Name matching the bound connection. */
|
|
935
|
+
connectionName: string;
|
|
936
|
+
/** Box returned the requested result. */
|
|
937
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
938
|
+
/** Box did not find the requested item. */
|
|
939
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
940
|
+
/** Box definitively rejected the request. */
|
|
941
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
942
|
+
/** Box returned malformed or oversized JSON. */
|
|
943
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
944
|
+
/** Local input or connection credentials are invalid. */
|
|
945
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
946
|
+
}
|
|
947
|
+
/** Build the getFile Step from a named connection. */
|
|
948
|
+
declare function newGetFileStep<StepInput, OperationInput = GetFileInput, OperationOutput = BoxFile>(configuration: GetFileStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
949
|
+
/** Configuration for the getFolder connector Step. */
|
|
950
|
+
interface GetFolderStepConfig<StepInput, OperationInput = GetFolderInput, OperationOutput = BoxFolder> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
951
|
+
/** Named connection supplying this operation. */
|
|
952
|
+
connection: Connection<{
|
|
953
|
+
getFolder(): Query<OperationInput, OperationOutput>;
|
|
954
|
+
}>;
|
|
955
|
+
/** Name matching the bound connection. */
|
|
956
|
+
connectionName: string;
|
|
957
|
+
/** Box returned the requested result. */
|
|
958
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
959
|
+
/** Box did not find the requested item. */
|
|
960
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
961
|
+
/** Box definitively rejected the request. */
|
|
962
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
963
|
+
/** Box returned malformed or oversized JSON. */
|
|
964
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
965
|
+
/** Local input or connection credentials are invalid. */
|
|
966
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
967
|
+
}
|
|
968
|
+
/** Build the getFolder Step from a named connection. */
|
|
969
|
+
declare function newGetFolderStep<StepInput, OperationInput = GetFolderInput, OperationOutput = BoxFolder>(configuration: GetFolderStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
970
|
+
/** Configuration for the listFolderItems connector Step. */
|
|
971
|
+
interface ListFolderItemsStepConfig<StepInput, OperationInput = ListFolderItemsInput, OperationOutput = BoxItemPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
972
|
+
/** Named connection supplying this operation. */
|
|
973
|
+
connection: Connection<{
|
|
974
|
+
listFolderItems(): Query<OperationInput, OperationOutput>;
|
|
975
|
+
}>;
|
|
976
|
+
/** Name matching the bound connection. */
|
|
977
|
+
connectionName: string;
|
|
978
|
+
/** Box returned the requested result. */
|
|
979
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
980
|
+
/** Box did not find the requested item. */
|
|
981
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
982
|
+
/** Box definitively rejected the request. */
|
|
983
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
984
|
+
/** Box returned malformed or oversized JSON. */
|
|
985
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
986
|
+
/** Local input or connection credentials are invalid. */
|
|
987
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
988
|
+
}
|
|
989
|
+
/** Build the listFolderItems Step from a named connection. */
|
|
990
|
+
declare function newListFolderItemsStep<StepInput, OperationInput = ListFolderItemsInput, OperationOutput = BoxItemPage>(configuration: ListFolderItemsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
991
|
+
/** Configuration for the searchFiles connector Step. */
|
|
992
|
+
interface SearchFilesStepConfig<StepInput, OperationInput = SearchFilesInput, OperationOutput = BoxItemPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
993
|
+
/** Named connection supplying this operation. */
|
|
994
|
+
connection: Connection<{
|
|
995
|
+
searchFiles(): Query<OperationInput, OperationOutput>;
|
|
996
|
+
}>;
|
|
997
|
+
/** Name matching the bound connection. */
|
|
998
|
+
connectionName: string;
|
|
999
|
+
/** Box returned the requested result. */
|
|
1000
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
1001
|
+
/** Box definitively rejected the request. */
|
|
1002
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
1003
|
+
/** Box returned malformed or oversized JSON. */
|
|
1004
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
1005
|
+
/** Local input or connection credentials are invalid. */
|
|
1006
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
1007
|
+
}
|
|
1008
|
+
/** Build the searchFiles Step from a named connection. */
|
|
1009
|
+
declare function newSearchFilesStep<StepInput, OperationInput = SearchFilesInput, OperationOutput = BoxItemPage>(configuration: SearchFilesStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
1010
|
+
/** Configuration for the searchFolders connector Step. */
|
|
1011
|
+
interface SearchFoldersStepConfig<StepInput, OperationInput = SearchFoldersInput, OperationOutput = BoxItemPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
1012
|
+
/** Named connection supplying this operation. */
|
|
1013
|
+
connection: Connection<{
|
|
1014
|
+
searchFolders(): Query<OperationInput, OperationOutput>;
|
|
1015
|
+
}>;
|
|
1016
|
+
/** Name matching the bound connection. */
|
|
1017
|
+
connectionName: string;
|
|
1018
|
+
/** Box returned the requested result. */
|
|
1019
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
1020
|
+
/** Box definitively rejected the request. */
|
|
1021
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
1022
|
+
/** Box returned malformed or oversized JSON. */
|
|
1023
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
1024
|
+
/** Local input or connection credentials are invalid. */
|
|
1025
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
1026
|
+
}
|
|
1027
|
+
/** Build the searchFolders Step from a named connection. */
|
|
1028
|
+
declare function newSearchFoldersStep<StepInput, OperationInput = SearchFoldersInput, OperationOutput = BoxItemPage>(configuration: SearchFoldersStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
1029
|
+
/** Configuration for the deleteFile connector Step. */
|
|
1030
|
+
interface DeleteFileStepConfig<StepInput, OperationInput = DeleteFileInput, OperationOutput = DeletedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
1031
|
+
/** Named connection supplying this operation. */
|
|
1032
|
+
connection: Connection<{
|
|
1033
|
+
deleteFile(): Mutation<OperationInput, OperationOutput>;
|
|
1034
|
+
}>;
|
|
1035
|
+
/** Name matching the bound connection. */
|
|
1036
|
+
connectionName: string;
|
|
1037
|
+
/** Box returned the requested result. */
|
|
1038
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
1039
|
+
/** Box did not find the requested item. */
|
|
1040
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
1041
|
+
/** Box definitively rejected the request. */
|
|
1042
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
1043
|
+
/** Box returned malformed or oversized JSON. */
|
|
1044
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
1045
|
+
/** Local input or connection credentials are invalid. */
|
|
1046
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
1047
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
1048
|
+
maxSends?: number;
|
|
1049
|
+
}
|
|
1050
|
+
/** Build the deleteFile Step from a named connection. */
|
|
1051
|
+
declare function newDeleteFileStep<StepInput, OperationInput = DeleteFileInput, OperationOutput = DeletedBoxItem>(configuration: DeleteFileStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
1052
|
+
/** Configuration for the deleteFolder connector Step. */
|
|
1053
|
+
interface DeleteFolderStepConfig<StepInput, OperationInput = DeleteFolderInput, OperationOutput = DeletedBoxItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
1054
|
+
/** Named connection supplying this operation. */
|
|
1055
|
+
connection: Connection<{
|
|
1056
|
+
deleteFolder(): Mutation<OperationInput, OperationOutput>;
|
|
1057
|
+
}>;
|
|
1058
|
+
/** Name matching the bound connection. */
|
|
1059
|
+
connectionName: string;
|
|
1060
|
+
/** Box returned the requested result. */
|
|
1061
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
1062
|
+
/** Box did not find the requested item. */
|
|
1063
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
1064
|
+
/** Box definitively rejected the request. */
|
|
1065
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
1066
|
+
/** Box returned malformed or oversized JSON. */
|
|
1067
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
1068
|
+
/** Local input or connection credentials are invalid. */
|
|
1069
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
1070
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
1071
|
+
maxSends?: number;
|
|
1072
|
+
}
|
|
1073
|
+
/** Build the deleteFolder Step from a named connection. */
|
|
1074
|
+
declare function newDeleteFolderStep<StepInput, OperationInput = DeleteFolderInput, OperationOutput = DeletedBoxItem>(configuration: DeleteFolderStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
178
1075
|
|
|
179
|
-
export { BoxClient, type BoxClientOptions, type BoxExchange, Config, Connection, ConnectorID, Credentials, DownloadFileBranch, DownloadFileBranchDefect, DownloadFileBranchDownloaded, DownloadFileBranchInvalidResponse, DownloadFileBranchNotFound, DownloadFileBranchProviderRejected, DownloadFileBranchTooLarge, DownloadFileDefinition, DownloadFileInput, DownloadFileMetadata, DownloadFileOperation, type DownloadFileStepConfig, DownloadedFile, ProviderID, UploadFileBranch, UploadFileBranchDefect, UploadFileBranchInvalidResponse, UploadFileBranchNotFound, UploadFileBranchProviderRejected, UploadFileBranchUploaded, UploadFileDefinition, UploadFileInput, UploadFileMetadata, UploadFileOperation, type UploadFileStepConfig, UploadedFile, header, newDownloadFileStep, newProjectConnection, newUploadFileStep };
|
|
1076
|
+
export { BoxClient, type BoxClientOptions, type BoxExchange, BoxFile, BoxFolder, BoxItemPage, Config, Connection, ConnectorID, CopyBoxFileInput, CopyBoxFolderInput, CopyFileBranch, CopyFileBranchCopied, CopyFileBranchDefect, CopyFileBranchProviderRejected, CopyFileBranchUncertain, CopyFileDefinition, CopyFileMetadata, CopyFileOperation, type CopyFileStepConfig, CopyFolderBranch, CopyFolderBranchCopied, CopyFolderBranchDefect, CopyFolderBranchProviderRejected, CopyFolderBranchUncertain, CopyFolderDefinition, CopyFolderMetadata, CopyFolderOperation, type CopyFolderStepConfig, CreateBoxFileInput, CreateBoxFolderInput, CreateFileBranch, CreateFileBranchCreated, CreateFileBranchDefect, CreateFileBranchProviderRejected, CreateFileBranchUncertain, CreateFileDefinition, CreateFileMetadata, CreateFileOperation, type CreateFileStepConfig, CreateFolderBranch, CreateFolderBranchCreated, CreateFolderBranchDefect, CreateFolderBranchProviderRejected, CreateFolderBranchUncertain, CreateFolderDefinition, CreateFolderMetadata, CreateFolderOperation, type CreateFolderStepConfig, CreatedBoxFile, CreatedBoxItem, Credentials, DeleteFileBranch, DeleteFileBranchDefect, DeleteFileBranchDeleted, DeleteFileBranchInvalidResponse, DeleteFileBranchNotFound, DeleteFileBranchProviderRejected, DeleteFileDefinition, DeleteFileInput, DeleteFileMetadata, DeleteFileOperation, type DeleteFileStepConfig, DeleteFolderBranch, DeleteFolderBranchDefect, DeleteFolderBranchDeleted, DeleteFolderBranchInvalidResponse, DeleteFolderBranchNotFound, DeleteFolderBranchProviderRejected, DeleteFolderDefinition, DeleteFolderInput, DeleteFolderMetadata, DeleteFolderOperation, type DeleteFolderStepConfig, DeletedBoxItem, DownloadFileBranch, DownloadFileBranchDefect, DownloadFileBranchDownloaded, DownloadFileBranchInvalidResponse, DownloadFileBranchNotFound, DownloadFileBranchProviderRejected, DownloadFileBranchTooLarge, DownloadFileDefinition, DownloadFileInput, DownloadFileMetadata, DownloadFileOperation, type DownloadFileStepConfig, DownloadedFile, GetFileBranch, GetFileBranchDefect, GetFileBranchFound, GetFileBranchInvalidResponse, GetFileBranchNotFound, GetFileBranchProviderRejected, GetFileDefinition, GetFileInput, GetFileMetadata, GetFileOperation, type GetFileStepConfig, GetFolderBranch, GetFolderBranchDefect, GetFolderBranchFound, GetFolderBranchInvalidResponse, GetFolderBranchNotFound, GetFolderBranchProviderRejected, GetFolderDefinition, GetFolderInput, GetFolderMetadata, GetFolderOperation, type GetFolderStepConfig, ListFolderItemsBranch, ListFolderItemsBranchDefect, ListFolderItemsBranchInvalidResponse, ListFolderItemsBranchListed, ListFolderItemsBranchNotFound, ListFolderItemsBranchProviderRejected, ListFolderItemsDefinition, ListFolderItemsInput, ListFolderItemsMetadata, ListFolderItemsOperation, type ListFolderItemsStepConfig, ProviderID, SearchFilesBranch, SearchFilesBranchDefect, SearchFilesBranchFound, SearchFilesBranchInvalidResponse, SearchFilesBranchProviderRejected, SearchFilesDefinition, SearchFilesInput, SearchFilesMetadata, SearchFilesOperation, type SearchFilesStepConfig, SearchFoldersBranch, SearchFoldersBranchDefect, SearchFoldersBranchFound, SearchFoldersBranchInvalidResponse, SearchFoldersBranchProviderRejected, SearchFoldersDefinition, SearchFoldersInput, SearchFoldersMetadata, SearchFoldersOperation, type SearchFoldersStepConfig, ShareBoxFileInput, ShareBoxFolderInput, ShareFileBranch, ShareFileBranchDefect, ShareFileBranchInvalidResponse, ShareFileBranchNotFound, ShareFileBranchProviderRejected, ShareFileBranchShared, ShareFileDefinition, ShareFileMetadata, ShareFileOperation, type ShareFileStepConfig, ShareFolderBranch, ShareFolderBranchDefect, ShareFolderBranchInvalidResponse, ShareFolderBranchNotFound, ShareFolderBranchProviderRejected, ShareFolderBranchShared, ShareFolderDefinition, ShareFolderMetadata, ShareFolderOperation, type ShareFolderStepConfig, UpdateBoxFileInput, UpdateBoxFolderInput, UpdateFileBranch, UpdateFileBranchDefect, UpdateFileBranchInvalidResponse, UpdateFileBranchNotFound, UpdateFileBranchProviderRejected, UpdateFileBranchUpdated, UpdateFileDefinition, UpdateFileMetadata, UpdateFileOperation, type UpdateFileStepConfig, UpdateFolderBranch, UpdateFolderBranchDefect, UpdateFolderBranchInvalidResponse, UpdateFolderBranchNotFound, UpdateFolderBranchProviderRejected, UpdateFolderBranchUpdated, UpdateFolderDefinition, UpdateFolderMetadata, UpdateFolderOperation, type UpdateFolderStepConfig, UpdatedBoxItem, UploadFileBranch, UploadFileBranchDefect, UploadFileBranchInvalidResponse, UploadFileBranchNotFound, UploadFileBranchProviderRejected, UploadFileBranchUploaded, UploadFileDefinition, UploadFileInput, UploadFileMetadata, UploadFileOperation, type UploadFileStepConfig, UploadedFile, header, newCopyFileStep, newCopyFolderStep, newCreateFileStep, newCreateFolderStep, newDeleteFileStep, newDeleteFolderStep, newDownloadFileStep, newGetFileStep, newGetFolderStep, newListFolderItemsStep, newProjectConnection, newSearchFilesStep, newSearchFoldersStep, newShareFileStep, newShareFolderStep, newUpdateFileStep, newUpdateFolderStep, newUploadFileStep };
|