@contractspec/lib.files 1.57.0 → 1.59.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 (44) hide show
  1. package/dist/contracts/index.d.ts +1080 -1086
  2. package/dist/contracts/index.d.ts.map +1 -1
  3. package/dist/contracts/index.js +575 -854
  4. package/dist/docs/files.docblock.d.ts +2 -1
  5. package/dist/docs/files.docblock.d.ts.map +1 -0
  6. package/dist/docs/files.docblock.js +17 -22
  7. package/dist/docs/index.d.ts +2 -1
  8. package/dist/docs/index.d.ts.map +1 -0
  9. package/dist/docs/index.js +66 -1
  10. package/dist/entities/index.d.ts +134 -139
  11. package/dist/entities/index.d.ts.map +1 -1
  12. package/dist/entities/index.js +228 -257
  13. package/dist/events.d.ts +357 -363
  14. package/dist/events.d.ts.map +1 -1
  15. package/dist/events.js +217 -400
  16. package/dist/files.capability.d.ts +2 -7
  17. package/dist/files.capability.d.ts.map +1 -1
  18. package/dist/files.capability.js +29 -25
  19. package/dist/files.feature.d.ts +1 -6
  20. package/dist/files.feature.d.ts.map +1 -1
  21. package/dist/files.feature.js +50 -131
  22. package/dist/index.d.ts +7 -6
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +1411 -8
  25. package/dist/node/contracts/index.js +576 -0
  26. package/dist/node/docs/files.docblock.js +65 -0
  27. package/dist/node/docs/index.js +65 -0
  28. package/dist/node/entities/index.js +235 -0
  29. package/dist/node/events.js +219 -0
  30. package/dist/node/files.capability.js +28 -0
  31. package/dist/node/files.feature.js +51 -0
  32. package/dist/node/index.js +1410 -0
  33. package/dist/node/storage/index.js +268 -0
  34. package/dist/storage/index.d.ts +163 -166
  35. package/dist/storage/index.d.ts.map +1 -1
  36. package/dist/storage/index.js +266 -266
  37. package/package.json +104 -30
  38. package/dist/contracts/index.js.map +0 -1
  39. package/dist/docs/files.docblock.js.map +0 -1
  40. package/dist/entities/index.js.map +0 -1
  41. package/dist/events.js.map +0 -1
  42. package/dist/files.capability.js.map +0 -1
  43. package/dist/files.feature.js.map +0 -1
  44. package/dist/storage/index.js.map +0 -1
@@ -1,1140 +1,1134 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
3
-
4
- //#region src/contracts/index.d.ts
5
- declare const FileModel: _contractspec_lib_schema0.SchemaModel<{
6
- id: {
7
- type: _contractspec_lib_schema0.FieldType<string, string>;
8
- isOptional: false;
9
- };
10
- name: {
11
- type: _contractspec_lib_schema0.FieldType<string, string>;
12
- isOptional: false;
13
- };
14
- mimeType: {
15
- type: _contractspec_lib_schema0.FieldType<string, string>;
16
- isOptional: false;
17
- };
18
- size: {
19
- type: _contractspec_lib_schema0.FieldType<number, number>;
20
- isOptional: false;
21
- };
22
- storageProvider: {
23
- type: _contractspec_lib_schema0.FieldType<string, string>;
24
- isOptional: false;
25
- };
26
- storagePath: {
27
- type: _contractspec_lib_schema0.FieldType<string, string>;
28
- isOptional: false;
29
- };
30
- checksum: {
31
- type: _contractspec_lib_schema0.FieldType<string, string>;
32
- isOptional: true;
33
- };
34
- status: {
35
- type: _contractspec_lib_schema0.FieldType<string, string>;
36
- isOptional: false;
37
- };
38
- isPublic: {
39
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
40
- isOptional: false;
41
- };
42
- ownerId: {
43
- type: _contractspec_lib_schema0.FieldType<string, string>;
44
- isOptional: false;
45
- };
46
- orgId: {
47
- type: _contractspec_lib_schema0.FieldType<string, string>;
48
- isOptional: true;
49
- };
50
- metadata: {
51
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
52
- isOptional: true;
53
- };
54
- width: {
55
- type: _contractspec_lib_schema0.FieldType<number, number>;
56
- isOptional: true;
57
- };
58
- height: {
59
- type: _contractspec_lib_schema0.FieldType<number, number>;
60
- isOptional: true;
61
- };
62
- createdAt: {
63
- type: _contractspec_lib_schema0.FieldType<Date, string>;
64
- isOptional: false;
65
- };
66
- updatedAt: {
67
- type: _contractspec_lib_schema0.FieldType<Date, string>;
68
- isOptional: false;
69
- };
1
+ export declare const FileModel: import("@contractspec/lib.schema").SchemaModel<{
2
+ id: {
3
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
4
+ isOptional: false;
5
+ };
6
+ name: {
7
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ mimeType: {
11
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ size: {
15
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
16
+ isOptional: false;
17
+ };
18
+ storageProvider: {
19
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
20
+ isOptional: false;
21
+ };
22
+ storagePath: {
23
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
24
+ isOptional: false;
25
+ };
26
+ checksum: {
27
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
28
+ isOptional: true;
29
+ };
30
+ status: {
31
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ isPublic: {
35
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
36
+ isOptional: false;
37
+ };
38
+ ownerId: {
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ orgId: {
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: true;
45
+ };
46
+ metadata: {
47
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
48
+ isOptional: true;
49
+ };
50
+ width: {
51
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
52
+ isOptional: true;
53
+ };
54
+ height: {
55
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
56
+ isOptional: true;
57
+ };
58
+ createdAt: {
59
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
60
+ isOptional: false;
61
+ };
62
+ updatedAt: {
63
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
64
+ isOptional: false;
65
+ };
70
66
  }>;
71
- declare const FileVersionModel: _contractspec_lib_schema0.SchemaModel<{
72
- id: {
73
- type: _contractspec_lib_schema0.FieldType<string, string>;
74
- isOptional: false;
75
- };
76
- fileId: {
77
- type: _contractspec_lib_schema0.FieldType<string, string>;
78
- isOptional: false;
79
- };
80
- version: {
81
- type: _contractspec_lib_schema0.FieldType<string, string>;
82
- isOptional: false;
83
- };
84
- size: {
85
- type: _contractspec_lib_schema0.FieldType<number, number>;
86
- isOptional: false;
87
- };
88
- storagePath: {
89
- type: _contractspec_lib_schema0.FieldType<string, string>;
90
- isOptional: false;
91
- };
92
- checksum: {
93
- type: _contractspec_lib_schema0.FieldType<string, string>;
94
- isOptional: true;
95
- };
96
- comment: {
97
- type: _contractspec_lib_schema0.FieldType<string, string>;
98
- isOptional: true;
99
- };
100
- createdBy: {
101
- type: _contractspec_lib_schema0.FieldType<string, string>;
102
- isOptional: false;
103
- };
104
- createdAt: {
105
- type: _contractspec_lib_schema0.FieldType<Date, string>;
106
- isOptional: false;
107
- };
67
+ export declare const FileVersionModel: import("@contractspec/lib.schema").SchemaModel<{
68
+ id: {
69
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
70
+ isOptional: false;
71
+ };
72
+ fileId: {
73
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
74
+ isOptional: false;
75
+ };
76
+ version: {
77
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
78
+ isOptional: false;
79
+ };
80
+ size: {
81
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
82
+ isOptional: false;
83
+ };
84
+ storagePath: {
85
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
86
+ isOptional: false;
87
+ };
88
+ checksum: {
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: true;
91
+ };
92
+ comment: {
93
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
94
+ isOptional: true;
95
+ };
96
+ createdBy: {
97
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
98
+ isOptional: false;
99
+ };
100
+ createdAt: {
101
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
102
+ isOptional: false;
103
+ };
108
104
  }>;
109
- declare const AttachmentModel: _contractspec_lib_schema0.SchemaModel<{
110
- id: {
111
- type: _contractspec_lib_schema0.FieldType<string, string>;
112
- isOptional: false;
113
- };
114
- fileId: {
115
- type: _contractspec_lib_schema0.FieldType<string, string>;
116
- isOptional: false;
117
- };
118
- entityType: {
119
- type: _contractspec_lib_schema0.FieldType<string, string>;
120
- isOptional: false;
121
- };
122
- entityId: {
123
- type: _contractspec_lib_schema0.FieldType<string, string>;
124
- isOptional: false;
125
- };
126
- attachmentType: {
127
- type: _contractspec_lib_schema0.FieldType<string, string>;
128
- isOptional: true;
129
- };
130
- name: {
131
- type: _contractspec_lib_schema0.FieldType<string, string>;
132
- isOptional: true;
133
- };
134
- description: {
135
- type: _contractspec_lib_schema0.FieldType<string, string>;
136
- isOptional: true;
137
- };
138
- order: {
139
- type: _contractspec_lib_schema0.FieldType<number, number>;
140
- isOptional: false;
141
- };
142
- metadata: {
143
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
144
- isOptional: true;
145
- };
146
- createdBy: {
147
- type: _contractspec_lib_schema0.FieldType<string, string>;
148
- isOptional: false;
149
- };
150
- createdAt: {
151
- type: _contractspec_lib_schema0.FieldType<Date, string>;
152
- isOptional: false;
153
- };
154
- file: {
155
- type: _contractspec_lib_schema0.SchemaModel<{
156
- id: {
157
- type: _contractspec_lib_schema0.FieldType<string, string>;
158
- isOptional: false;
159
- };
160
- name: {
161
- type: _contractspec_lib_schema0.FieldType<string, string>;
162
- isOptional: false;
163
- };
164
- mimeType: {
165
- type: _contractspec_lib_schema0.FieldType<string, string>;
166
- isOptional: false;
167
- };
168
- size: {
169
- type: _contractspec_lib_schema0.FieldType<number, number>;
170
- isOptional: false;
171
- };
172
- storageProvider: {
173
- type: _contractspec_lib_schema0.FieldType<string, string>;
174
- isOptional: false;
175
- };
176
- storagePath: {
177
- type: _contractspec_lib_schema0.FieldType<string, string>;
178
- isOptional: false;
179
- };
180
- checksum: {
181
- type: _contractspec_lib_schema0.FieldType<string, string>;
182
- isOptional: true;
183
- };
184
- status: {
185
- type: _contractspec_lib_schema0.FieldType<string, string>;
186
- isOptional: false;
187
- };
188
- isPublic: {
189
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
190
- isOptional: false;
191
- };
192
- ownerId: {
193
- type: _contractspec_lib_schema0.FieldType<string, string>;
194
- isOptional: false;
195
- };
196
- orgId: {
197
- type: _contractspec_lib_schema0.FieldType<string, string>;
198
- isOptional: true;
199
- };
200
- metadata: {
201
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
202
- isOptional: true;
203
- };
204
- width: {
205
- type: _contractspec_lib_schema0.FieldType<number, number>;
206
- isOptional: true;
207
- };
208
- height: {
209
- type: _contractspec_lib_schema0.FieldType<number, number>;
210
- isOptional: true;
211
- };
212
- createdAt: {
213
- type: _contractspec_lib_schema0.FieldType<Date, string>;
214
- isOptional: false;
215
- };
216
- updatedAt: {
217
- type: _contractspec_lib_schema0.FieldType<Date, string>;
218
- isOptional: false;
219
- };
220
- }>;
221
- isOptional: true;
222
- };
105
+ export declare const AttachmentModel: import("@contractspec/lib.schema").SchemaModel<{
106
+ id: {
107
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
108
+ isOptional: false;
109
+ };
110
+ fileId: {
111
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
112
+ isOptional: false;
113
+ };
114
+ entityType: {
115
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
116
+ isOptional: false;
117
+ };
118
+ entityId: {
119
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
120
+ isOptional: false;
121
+ };
122
+ attachmentType: {
123
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
124
+ isOptional: true;
125
+ };
126
+ name: {
127
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
128
+ isOptional: true;
129
+ };
130
+ description: {
131
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
132
+ isOptional: true;
133
+ };
134
+ order: {
135
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
136
+ isOptional: false;
137
+ };
138
+ metadata: {
139
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
140
+ isOptional: true;
141
+ };
142
+ createdBy: {
143
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
144
+ isOptional: false;
145
+ };
146
+ createdAt: {
147
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
148
+ isOptional: false;
149
+ };
150
+ file: {
151
+ type: import("@contractspec/lib.schema").SchemaModel<{
152
+ id: {
153
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
154
+ isOptional: false;
155
+ };
156
+ name: {
157
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
158
+ isOptional: false;
159
+ };
160
+ mimeType: {
161
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
162
+ isOptional: false;
163
+ };
164
+ size: {
165
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
166
+ isOptional: false;
167
+ };
168
+ storageProvider: {
169
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
170
+ isOptional: false;
171
+ };
172
+ storagePath: {
173
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
174
+ isOptional: false;
175
+ };
176
+ checksum: {
177
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
178
+ isOptional: true;
179
+ };
180
+ status: {
181
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
182
+ isOptional: false;
183
+ };
184
+ isPublic: {
185
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
186
+ isOptional: false;
187
+ };
188
+ ownerId: {
189
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
190
+ isOptional: false;
191
+ };
192
+ orgId: {
193
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
194
+ isOptional: true;
195
+ };
196
+ metadata: {
197
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
198
+ isOptional: true;
199
+ };
200
+ width: {
201
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
202
+ isOptional: true;
203
+ };
204
+ height: {
205
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
206
+ isOptional: true;
207
+ };
208
+ createdAt: {
209
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
210
+ isOptional: false;
211
+ };
212
+ updatedAt: {
213
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
214
+ isOptional: false;
215
+ };
216
+ }>;
217
+ isOptional: true;
218
+ };
223
219
  }>;
224
- declare const PresignedUrlModel: _contractspec_lib_schema0.SchemaModel<{
225
- url: {
226
- type: _contractspec_lib_schema0.FieldType<string, string>;
227
- isOptional: false;
228
- };
229
- fields: {
230
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
231
- isOptional: true;
232
- };
233
- expiresAt: {
234
- type: _contractspec_lib_schema0.FieldType<Date, string>;
235
- isOptional: false;
236
- };
237
- fileId: {
238
- type: _contractspec_lib_schema0.FieldType<string, string>;
239
- isOptional: true;
240
- };
241
- sessionId: {
242
- type: _contractspec_lib_schema0.FieldType<string, string>;
243
- isOptional: true;
244
- };
220
+ export declare const PresignedUrlModel: import("@contractspec/lib.schema").SchemaModel<{
221
+ url: {
222
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
223
+ isOptional: false;
224
+ };
225
+ fields: {
226
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
227
+ isOptional: true;
228
+ };
229
+ expiresAt: {
230
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
231
+ isOptional: false;
232
+ };
233
+ fileId: {
234
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
235
+ isOptional: true;
236
+ };
237
+ sessionId: {
238
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
239
+ isOptional: true;
240
+ };
245
241
  }>;
246
242
  /**
247
243
  * Upload a file.
248
244
  */
249
- declare const UploadFileContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
250
- name: {
251
- type: _contractspec_lib_schema0.FieldType<string, string>;
252
- isOptional: false;
253
- };
254
- mimeType: {
255
- type: _contractspec_lib_schema0.FieldType<string, string>;
256
- isOptional: false;
257
- };
258
- size: {
259
- type: _contractspec_lib_schema0.FieldType<number, number>;
260
- isOptional: false;
261
- };
262
- content: {
263
- type: _contractspec_lib_schema0.FieldType<string, string>;
264
- isOptional: false;
265
- };
266
- orgId: {
267
- type: _contractspec_lib_schema0.FieldType<string, string>;
268
- isOptional: true;
269
- };
270
- isPublic: {
271
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
272
- isOptional: true;
273
- };
274
- metadata: {
275
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
276
- isOptional: true;
277
- };
278
- tags: {
279
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
280
- isOptional: true;
281
- };
282
- }>, _contractspec_lib_schema0.SchemaModel<{
283
- id: {
284
- type: _contractspec_lib_schema0.FieldType<string, string>;
285
- isOptional: false;
286
- };
287
- name: {
288
- type: _contractspec_lib_schema0.FieldType<string, string>;
289
- isOptional: false;
290
- };
291
- mimeType: {
292
- type: _contractspec_lib_schema0.FieldType<string, string>;
293
- isOptional: false;
294
- };
295
- size: {
296
- type: _contractspec_lib_schema0.FieldType<number, number>;
297
- isOptional: false;
298
- };
299
- storageProvider: {
300
- type: _contractspec_lib_schema0.FieldType<string, string>;
301
- isOptional: false;
302
- };
303
- storagePath: {
304
- type: _contractspec_lib_schema0.FieldType<string, string>;
305
- isOptional: false;
306
- };
307
- checksum: {
308
- type: _contractspec_lib_schema0.FieldType<string, string>;
309
- isOptional: true;
310
- };
311
- status: {
312
- type: _contractspec_lib_schema0.FieldType<string, string>;
313
- isOptional: false;
314
- };
315
- isPublic: {
316
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
317
- isOptional: false;
318
- };
319
- ownerId: {
320
- type: _contractspec_lib_schema0.FieldType<string, string>;
321
- isOptional: false;
322
- };
323
- orgId: {
324
- type: _contractspec_lib_schema0.FieldType<string, string>;
325
- isOptional: true;
326
- };
327
- metadata: {
328
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
329
- isOptional: true;
330
- };
331
- width: {
332
- type: _contractspec_lib_schema0.FieldType<number, number>;
333
- isOptional: true;
334
- };
335
- height: {
336
- type: _contractspec_lib_schema0.FieldType<number, number>;
337
- isOptional: true;
338
- };
339
- createdAt: {
340
- type: _contractspec_lib_schema0.FieldType<Date, string>;
341
- isOptional: false;
342
- };
343
- updatedAt: {
344
- type: _contractspec_lib_schema0.FieldType<Date, string>;
345
- isOptional: false;
346
- };
245
+ export declare const UploadFileContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
246
+ name: {
247
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
248
+ isOptional: false;
249
+ };
250
+ mimeType: {
251
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
252
+ isOptional: false;
253
+ };
254
+ size: {
255
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
256
+ isOptional: false;
257
+ };
258
+ content: {
259
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
260
+ isOptional: false;
261
+ };
262
+ orgId: {
263
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
264
+ isOptional: true;
265
+ };
266
+ isPublic: {
267
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
268
+ isOptional: true;
269
+ };
270
+ metadata: {
271
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
272
+ isOptional: true;
273
+ };
274
+ tags: {
275
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
276
+ isOptional: true;
277
+ };
278
+ }>, import("@contractspec/lib.schema").SchemaModel<{
279
+ id: {
280
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
281
+ isOptional: false;
282
+ };
283
+ name: {
284
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
285
+ isOptional: false;
286
+ };
287
+ mimeType: {
288
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
289
+ isOptional: false;
290
+ };
291
+ size: {
292
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
293
+ isOptional: false;
294
+ };
295
+ storageProvider: {
296
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
297
+ isOptional: false;
298
+ };
299
+ storagePath: {
300
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
301
+ isOptional: false;
302
+ };
303
+ checksum: {
304
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
305
+ isOptional: true;
306
+ };
307
+ status: {
308
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
309
+ isOptional: false;
310
+ };
311
+ isPublic: {
312
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
313
+ isOptional: false;
314
+ };
315
+ ownerId: {
316
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
317
+ isOptional: false;
318
+ };
319
+ orgId: {
320
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
321
+ isOptional: true;
322
+ };
323
+ metadata: {
324
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
325
+ isOptional: true;
326
+ };
327
+ width: {
328
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
329
+ isOptional: true;
330
+ };
331
+ height: {
332
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
333
+ isOptional: true;
334
+ };
335
+ createdAt: {
336
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
337
+ isOptional: false;
338
+ };
339
+ updatedAt: {
340
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
341
+ isOptional: false;
342
+ };
347
343
  }>, undefined>;
348
344
  /**
349
345
  * Update a file.
350
346
  */
351
- declare const UpdateFileContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
352
- fileId: {
353
- type: _contractspec_lib_schema0.FieldType<string, string>;
354
- isOptional: false;
355
- };
356
- name: {
357
- type: _contractspec_lib_schema0.FieldType<string, string>;
358
- isOptional: true;
359
- };
360
- isPublic: {
361
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
362
- isOptional: true;
363
- };
364
- metadata: {
365
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
366
- isOptional: true;
367
- };
368
- tags: {
369
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
370
- isOptional: true;
371
- };
372
- }>, _contractspec_lib_schema0.SchemaModel<{
373
- id: {
374
- type: _contractspec_lib_schema0.FieldType<string, string>;
375
- isOptional: false;
376
- };
377
- name: {
378
- type: _contractspec_lib_schema0.FieldType<string, string>;
379
- isOptional: false;
380
- };
381
- mimeType: {
382
- type: _contractspec_lib_schema0.FieldType<string, string>;
383
- isOptional: false;
384
- };
385
- size: {
386
- type: _contractspec_lib_schema0.FieldType<number, number>;
387
- isOptional: false;
388
- };
389
- storageProvider: {
390
- type: _contractspec_lib_schema0.FieldType<string, string>;
391
- isOptional: false;
392
- };
393
- storagePath: {
394
- type: _contractspec_lib_schema0.FieldType<string, string>;
395
- isOptional: false;
396
- };
397
- checksum: {
398
- type: _contractspec_lib_schema0.FieldType<string, string>;
399
- isOptional: true;
400
- };
401
- status: {
402
- type: _contractspec_lib_schema0.FieldType<string, string>;
403
- isOptional: false;
404
- };
405
- isPublic: {
406
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
407
- isOptional: false;
408
- };
409
- ownerId: {
410
- type: _contractspec_lib_schema0.FieldType<string, string>;
411
- isOptional: false;
412
- };
413
- orgId: {
414
- type: _contractspec_lib_schema0.FieldType<string, string>;
415
- isOptional: true;
416
- };
417
- metadata: {
418
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
419
- isOptional: true;
420
- };
421
- width: {
422
- type: _contractspec_lib_schema0.FieldType<number, number>;
423
- isOptional: true;
424
- };
425
- height: {
426
- type: _contractspec_lib_schema0.FieldType<number, number>;
427
- isOptional: true;
428
- };
429
- createdAt: {
430
- type: _contractspec_lib_schema0.FieldType<Date, string>;
431
- isOptional: false;
432
- };
433
- updatedAt: {
434
- type: _contractspec_lib_schema0.FieldType<Date, string>;
435
- isOptional: false;
436
- };
347
+ export declare const UpdateFileContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
348
+ fileId: {
349
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
350
+ isOptional: false;
351
+ };
352
+ name: {
353
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
354
+ isOptional: true;
355
+ };
356
+ isPublic: {
357
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
358
+ isOptional: true;
359
+ };
360
+ metadata: {
361
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
362
+ isOptional: true;
363
+ };
364
+ tags: {
365
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
366
+ isOptional: true;
367
+ };
368
+ }>, import("@contractspec/lib.schema").SchemaModel<{
369
+ id: {
370
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
371
+ isOptional: false;
372
+ };
373
+ name: {
374
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
375
+ isOptional: false;
376
+ };
377
+ mimeType: {
378
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
379
+ isOptional: false;
380
+ };
381
+ size: {
382
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
383
+ isOptional: false;
384
+ };
385
+ storageProvider: {
386
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
387
+ isOptional: false;
388
+ };
389
+ storagePath: {
390
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
391
+ isOptional: false;
392
+ };
393
+ checksum: {
394
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
395
+ isOptional: true;
396
+ };
397
+ status: {
398
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
399
+ isOptional: false;
400
+ };
401
+ isPublic: {
402
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
403
+ isOptional: false;
404
+ };
405
+ ownerId: {
406
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
407
+ isOptional: false;
408
+ };
409
+ orgId: {
410
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
411
+ isOptional: true;
412
+ };
413
+ metadata: {
414
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
415
+ isOptional: true;
416
+ };
417
+ width: {
418
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
419
+ isOptional: true;
420
+ };
421
+ height: {
422
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
423
+ isOptional: true;
424
+ };
425
+ createdAt: {
426
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
427
+ isOptional: false;
428
+ };
429
+ updatedAt: {
430
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
431
+ isOptional: false;
432
+ };
437
433
  }>, undefined>;
438
434
  /**
439
435
  * Delete a file.
440
436
  */
441
- declare const DeleteFileContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
442
- fileId: {
443
- type: _contractspec_lib_schema0.FieldType<string, string>;
444
- isOptional: false;
445
- };
446
- }>, _contractspec_lib_schema0.SchemaModel<{
447
- success: {
448
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
449
- isOptional: false;
450
- };
437
+ export declare const DeleteFileContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
438
+ fileId: {
439
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
440
+ isOptional: false;
441
+ };
442
+ }>, import("@contractspec/lib.schema").SchemaModel<{
443
+ success: {
444
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
445
+ isOptional: false;
446
+ };
451
447
  }>, undefined>;
452
448
  /**
453
449
  * Get a file by ID.
454
450
  */
455
- declare const GetFileContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
456
- fileId: {
457
- type: _contractspec_lib_schema0.FieldType<string, string>;
458
- isOptional: false;
459
- };
460
- }>, _contractspec_lib_schema0.SchemaModel<{
461
- id: {
462
- type: _contractspec_lib_schema0.FieldType<string, string>;
463
- isOptional: false;
464
- };
465
- name: {
466
- type: _contractspec_lib_schema0.FieldType<string, string>;
467
- isOptional: false;
468
- };
469
- mimeType: {
470
- type: _contractspec_lib_schema0.FieldType<string, string>;
471
- isOptional: false;
472
- };
473
- size: {
474
- type: _contractspec_lib_schema0.FieldType<number, number>;
475
- isOptional: false;
476
- };
477
- storageProvider: {
478
- type: _contractspec_lib_schema0.FieldType<string, string>;
479
- isOptional: false;
480
- };
481
- storagePath: {
482
- type: _contractspec_lib_schema0.FieldType<string, string>;
483
- isOptional: false;
484
- };
485
- checksum: {
486
- type: _contractspec_lib_schema0.FieldType<string, string>;
487
- isOptional: true;
488
- };
489
- status: {
490
- type: _contractspec_lib_schema0.FieldType<string, string>;
491
- isOptional: false;
492
- };
493
- isPublic: {
494
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
495
- isOptional: false;
496
- };
497
- ownerId: {
498
- type: _contractspec_lib_schema0.FieldType<string, string>;
499
- isOptional: false;
500
- };
501
- orgId: {
502
- type: _contractspec_lib_schema0.FieldType<string, string>;
503
- isOptional: true;
504
- };
505
- metadata: {
506
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
507
- isOptional: true;
508
- };
509
- width: {
510
- type: _contractspec_lib_schema0.FieldType<number, number>;
511
- isOptional: true;
512
- };
513
- height: {
514
- type: _contractspec_lib_schema0.FieldType<number, number>;
515
- isOptional: true;
516
- };
517
- createdAt: {
518
- type: _contractspec_lib_schema0.FieldType<Date, string>;
519
- isOptional: false;
520
- };
521
- updatedAt: {
522
- type: _contractspec_lib_schema0.FieldType<Date, string>;
523
- isOptional: false;
524
- };
451
+ export declare const GetFileContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
452
+ fileId: {
453
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
454
+ isOptional: false;
455
+ };
456
+ }>, import("@contractspec/lib.schema").SchemaModel<{
457
+ id: {
458
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
459
+ isOptional: false;
460
+ };
461
+ name: {
462
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
463
+ isOptional: false;
464
+ };
465
+ mimeType: {
466
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
467
+ isOptional: false;
468
+ };
469
+ size: {
470
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
471
+ isOptional: false;
472
+ };
473
+ storageProvider: {
474
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
475
+ isOptional: false;
476
+ };
477
+ storagePath: {
478
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
479
+ isOptional: false;
480
+ };
481
+ checksum: {
482
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
483
+ isOptional: true;
484
+ };
485
+ status: {
486
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
487
+ isOptional: false;
488
+ };
489
+ isPublic: {
490
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
491
+ isOptional: false;
492
+ };
493
+ ownerId: {
494
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
495
+ isOptional: false;
496
+ };
497
+ orgId: {
498
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
499
+ isOptional: true;
500
+ };
501
+ metadata: {
502
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
503
+ isOptional: true;
504
+ };
505
+ width: {
506
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
507
+ isOptional: true;
508
+ };
509
+ height: {
510
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
511
+ isOptional: true;
512
+ };
513
+ createdAt: {
514
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
515
+ isOptional: false;
516
+ };
517
+ updatedAt: {
518
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
519
+ isOptional: false;
520
+ };
525
521
  }>, undefined>;
526
522
  /**
527
523
  * List files.
528
524
  */
529
- declare const ListFilesContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
530
- orgId: {
531
- type: _contractspec_lib_schema0.FieldType<string, string>;
532
- isOptional: true;
533
- };
534
- ownerId: {
535
- type: _contractspec_lib_schema0.FieldType<string, string>;
536
- isOptional: true;
537
- };
538
- mimeType: {
539
- type: _contractspec_lib_schema0.FieldType<string, string>;
540
- isOptional: true;
541
- };
542
- status: {
543
- type: _contractspec_lib_schema0.FieldType<string, string>;
544
- isOptional: true;
545
- };
546
- tags: {
547
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
548
- isOptional: true;
549
- };
550
- limit: {
551
- type: _contractspec_lib_schema0.FieldType<number, number>;
552
- isOptional: true;
553
- };
554
- offset: {
555
- type: _contractspec_lib_schema0.FieldType<number, number>;
556
- isOptional: true;
557
- };
558
- }>, _contractspec_lib_schema0.SchemaModel<{
559
- files: {
560
- type: _contractspec_lib_schema0.SchemaModel<{
561
- id: {
562
- type: _contractspec_lib_schema0.FieldType<string, string>;
563
- isOptional: false;
564
- };
565
- name: {
566
- type: _contractspec_lib_schema0.FieldType<string, string>;
567
- isOptional: false;
568
- };
569
- mimeType: {
570
- type: _contractspec_lib_schema0.FieldType<string, string>;
571
- isOptional: false;
572
- };
573
- size: {
574
- type: _contractspec_lib_schema0.FieldType<number, number>;
575
- isOptional: false;
576
- };
577
- storageProvider: {
578
- type: _contractspec_lib_schema0.FieldType<string, string>;
579
- isOptional: false;
580
- };
581
- storagePath: {
582
- type: _contractspec_lib_schema0.FieldType<string, string>;
583
- isOptional: false;
584
- };
585
- checksum: {
586
- type: _contractspec_lib_schema0.FieldType<string, string>;
587
- isOptional: true;
588
- };
589
- status: {
590
- type: _contractspec_lib_schema0.FieldType<string, string>;
591
- isOptional: false;
592
- };
593
- isPublic: {
594
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
595
- isOptional: false;
596
- };
597
- ownerId: {
598
- type: _contractspec_lib_schema0.FieldType<string, string>;
599
- isOptional: false;
600
- };
601
- orgId: {
602
- type: _contractspec_lib_schema0.FieldType<string, string>;
603
- isOptional: true;
604
- };
605
- metadata: {
606
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
607
- isOptional: true;
608
- };
609
- width: {
610
- type: _contractspec_lib_schema0.FieldType<number, number>;
611
- isOptional: true;
612
- };
613
- height: {
614
- type: _contractspec_lib_schema0.FieldType<number, number>;
615
- isOptional: true;
616
- };
617
- createdAt: {
618
- type: _contractspec_lib_schema0.FieldType<Date, string>;
619
- isOptional: false;
620
- };
621
- updatedAt: {
622
- type: _contractspec_lib_schema0.FieldType<Date, string>;
623
- isOptional: false;
624
- };
625
- }>;
626
- isArray: true;
627
- isOptional: false;
628
- };
629
- total: {
630
- type: _contractspec_lib_schema0.FieldType<number, number>;
631
- isOptional: false;
632
- };
525
+ export declare const ListFilesContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
526
+ orgId: {
527
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
528
+ isOptional: true;
529
+ };
530
+ ownerId: {
531
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
532
+ isOptional: true;
533
+ };
534
+ mimeType: {
535
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
536
+ isOptional: true;
537
+ };
538
+ status: {
539
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
540
+ isOptional: true;
541
+ };
542
+ tags: {
543
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
544
+ isOptional: true;
545
+ };
546
+ limit: {
547
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
548
+ isOptional: true;
549
+ };
550
+ offset: {
551
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
552
+ isOptional: true;
553
+ };
554
+ }>, import("@contractspec/lib.schema").SchemaModel<{
555
+ files: {
556
+ type: import("@contractspec/lib.schema").SchemaModel<{
557
+ id: {
558
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
559
+ isOptional: false;
560
+ };
561
+ name: {
562
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
563
+ isOptional: false;
564
+ };
565
+ mimeType: {
566
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
567
+ isOptional: false;
568
+ };
569
+ size: {
570
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
571
+ isOptional: false;
572
+ };
573
+ storageProvider: {
574
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
575
+ isOptional: false;
576
+ };
577
+ storagePath: {
578
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
579
+ isOptional: false;
580
+ };
581
+ checksum: {
582
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
583
+ isOptional: true;
584
+ };
585
+ status: {
586
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
587
+ isOptional: false;
588
+ };
589
+ isPublic: {
590
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
591
+ isOptional: false;
592
+ };
593
+ ownerId: {
594
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
595
+ isOptional: false;
596
+ };
597
+ orgId: {
598
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
599
+ isOptional: true;
600
+ };
601
+ metadata: {
602
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
603
+ isOptional: true;
604
+ };
605
+ width: {
606
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
607
+ isOptional: true;
608
+ };
609
+ height: {
610
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
611
+ isOptional: true;
612
+ };
613
+ createdAt: {
614
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
615
+ isOptional: false;
616
+ };
617
+ updatedAt: {
618
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
619
+ isOptional: false;
620
+ };
621
+ }>;
622
+ isArray: true;
623
+ isOptional: false;
624
+ };
625
+ total: {
626
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
627
+ isOptional: false;
628
+ };
633
629
  }>, undefined>;
634
630
  /**
635
631
  * Get download URL.
636
632
  */
637
- declare const GetDownloadUrlContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
638
- fileId: {
639
- type: _contractspec_lib_schema0.FieldType<string, string>;
640
- isOptional: false;
641
- };
642
- expiresInSeconds: {
643
- type: _contractspec_lib_schema0.FieldType<number, number>;
644
- isOptional: true;
645
- };
646
- }>, _contractspec_lib_schema0.SchemaModel<{
647
- url: {
648
- type: _contractspec_lib_schema0.FieldType<string, string>;
649
- isOptional: false;
650
- };
651
- fields: {
652
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
653
- isOptional: true;
654
- };
655
- expiresAt: {
656
- type: _contractspec_lib_schema0.FieldType<Date, string>;
657
- isOptional: false;
658
- };
659
- fileId: {
660
- type: _contractspec_lib_schema0.FieldType<string, string>;
661
- isOptional: true;
662
- };
663
- sessionId: {
664
- type: _contractspec_lib_schema0.FieldType<string, string>;
665
- isOptional: true;
666
- };
633
+ export declare const GetDownloadUrlContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
634
+ fileId: {
635
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
636
+ isOptional: false;
637
+ };
638
+ expiresInSeconds: {
639
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
640
+ isOptional: true;
641
+ };
642
+ }>, import("@contractspec/lib.schema").SchemaModel<{
643
+ url: {
644
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
645
+ isOptional: false;
646
+ };
647
+ fields: {
648
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
649
+ isOptional: true;
650
+ };
651
+ expiresAt: {
652
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
653
+ isOptional: false;
654
+ };
655
+ fileId: {
656
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
657
+ isOptional: true;
658
+ };
659
+ sessionId: {
660
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
661
+ isOptional: true;
662
+ };
667
663
  }>, undefined>;
668
664
  /**
669
665
  * Create a file version.
670
666
  */
671
- declare const CreateVersionContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
672
- fileId: {
673
- type: _contractspec_lib_schema0.FieldType<string, string>;
674
- isOptional: false;
675
- };
676
- content: {
677
- type: _contractspec_lib_schema0.FieldType<string, string>;
678
- isOptional: false;
679
- };
680
- comment: {
681
- type: _contractspec_lib_schema0.FieldType<string, string>;
682
- isOptional: true;
683
- };
684
- }>, _contractspec_lib_schema0.SchemaModel<{
685
- id: {
686
- type: _contractspec_lib_schema0.FieldType<string, string>;
687
- isOptional: false;
688
- };
689
- fileId: {
690
- type: _contractspec_lib_schema0.FieldType<string, string>;
691
- isOptional: false;
692
- };
693
- version: {
694
- type: _contractspec_lib_schema0.FieldType<string, string>;
695
- isOptional: false;
696
- };
697
- size: {
698
- type: _contractspec_lib_schema0.FieldType<number, number>;
699
- isOptional: false;
700
- };
701
- storagePath: {
702
- type: _contractspec_lib_schema0.FieldType<string, string>;
703
- isOptional: false;
704
- };
705
- checksum: {
706
- type: _contractspec_lib_schema0.FieldType<string, string>;
707
- isOptional: true;
708
- };
709
- comment: {
710
- type: _contractspec_lib_schema0.FieldType<string, string>;
711
- isOptional: true;
712
- };
713
- createdBy: {
714
- type: _contractspec_lib_schema0.FieldType<string, string>;
715
- isOptional: false;
716
- };
717
- createdAt: {
718
- type: _contractspec_lib_schema0.FieldType<Date, string>;
719
- isOptional: false;
720
- };
667
+ export declare const CreateVersionContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
668
+ fileId: {
669
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
670
+ isOptional: false;
671
+ };
672
+ content: {
673
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
674
+ isOptional: false;
675
+ };
676
+ comment: {
677
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
678
+ isOptional: true;
679
+ };
680
+ }>, import("@contractspec/lib.schema").SchemaModel<{
681
+ id: {
682
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
683
+ isOptional: false;
684
+ };
685
+ fileId: {
686
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
687
+ isOptional: false;
688
+ };
689
+ version: {
690
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
691
+ isOptional: false;
692
+ };
693
+ size: {
694
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
695
+ isOptional: false;
696
+ };
697
+ storagePath: {
698
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
699
+ isOptional: false;
700
+ };
701
+ checksum: {
702
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
703
+ isOptional: true;
704
+ };
705
+ comment: {
706
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
707
+ isOptional: true;
708
+ };
709
+ createdBy: {
710
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
711
+ isOptional: false;
712
+ };
713
+ createdAt: {
714
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
715
+ isOptional: false;
716
+ };
721
717
  }>, undefined>;
722
718
  /**
723
719
  * Get file versions.
724
720
  */
725
- declare const GetVersionsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
726
- fileId: {
727
- type: _contractspec_lib_schema0.FieldType<string, string>;
728
- isOptional: false;
729
- };
730
- limit: {
731
- type: _contractspec_lib_schema0.FieldType<number, number>;
732
- isOptional: true;
733
- };
734
- offset: {
735
- type: _contractspec_lib_schema0.FieldType<number, number>;
736
- isOptional: true;
737
- };
738
- }>, _contractspec_lib_schema0.SchemaModel<{
739
- versions: {
740
- type: _contractspec_lib_schema0.SchemaModel<{
741
- id: {
742
- type: _contractspec_lib_schema0.FieldType<string, string>;
743
- isOptional: false;
744
- };
745
- fileId: {
746
- type: _contractspec_lib_schema0.FieldType<string, string>;
747
- isOptional: false;
748
- };
749
- version: {
750
- type: _contractspec_lib_schema0.FieldType<string, string>;
751
- isOptional: false;
752
- };
753
- size: {
754
- type: _contractspec_lib_schema0.FieldType<number, number>;
755
- isOptional: false;
756
- };
757
- storagePath: {
758
- type: _contractspec_lib_schema0.FieldType<string, string>;
759
- isOptional: false;
760
- };
761
- checksum: {
762
- type: _contractspec_lib_schema0.FieldType<string, string>;
763
- isOptional: true;
764
- };
765
- comment: {
766
- type: _contractspec_lib_schema0.FieldType<string, string>;
767
- isOptional: true;
768
- };
769
- createdBy: {
770
- type: _contractspec_lib_schema0.FieldType<string, string>;
771
- isOptional: false;
772
- };
773
- createdAt: {
774
- type: _contractspec_lib_schema0.FieldType<Date, string>;
775
- isOptional: false;
776
- };
777
- }>;
778
- isArray: true;
779
- isOptional: false;
780
- };
781
- total: {
782
- type: _contractspec_lib_schema0.FieldType<number, number>;
783
- isOptional: false;
784
- };
721
+ export declare const GetVersionsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
722
+ fileId: {
723
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
724
+ isOptional: false;
725
+ };
726
+ limit: {
727
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
728
+ isOptional: true;
729
+ };
730
+ offset: {
731
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
732
+ isOptional: true;
733
+ };
734
+ }>, import("@contractspec/lib.schema").SchemaModel<{
735
+ versions: {
736
+ type: import("@contractspec/lib.schema").SchemaModel<{
737
+ id: {
738
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
739
+ isOptional: false;
740
+ };
741
+ fileId: {
742
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
743
+ isOptional: false;
744
+ };
745
+ version: {
746
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
747
+ isOptional: false;
748
+ };
749
+ size: {
750
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
751
+ isOptional: false;
752
+ };
753
+ storagePath: {
754
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
755
+ isOptional: false;
756
+ };
757
+ checksum: {
758
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
759
+ isOptional: true;
760
+ };
761
+ comment: {
762
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
763
+ isOptional: true;
764
+ };
765
+ createdBy: {
766
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
767
+ isOptional: false;
768
+ };
769
+ createdAt: {
770
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
771
+ isOptional: false;
772
+ };
773
+ }>;
774
+ isArray: true;
775
+ isOptional: false;
776
+ };
777
+ total: {
778
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
779
+ isOptional: false;
780
+ };
785
781
  }>, undefined>;
786
782
  /**
787
783
  * Attach a file to an entity.
788
784
  */
789
- declare const AttachFileContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
790
- fileId: {
791
- type: _contractspec_lib_schema0.FieldType<string, string>;
792
- isOptional: false;
793
- };
794
- entityType: {
795
- type: _contractspec_lib_schema0.FieldType<string, string>;
796
- isOptional: false;
797
- };
798
- entityId: {
799
- type: _contractspec_lib_schema0.FieldType<string, string>;
800
- isOptional: false;
801
- };
802
- attachmentType: {
803
- type: _contractspec_lib_schema0.FieldType<string, string>;
804
- isOptional: true;
805
- };
806
- name: {
807
- type: _contractspec_lib_schema0.FieldType<string, string>;
808
- isOptional: true;
809
- };
810
- description: {
811
- type: _contractspec_lib_schema0.FieldType<string, string>;
812
- isOptional: true;
813
- };
814
- order: {
815
- type: _contractspec_lib_schema0.FieldType<number, number>;
816
- isOptional: true;
817
- };
818
- metadata: {
819
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
820
- isOptional: true;
821
- };
822
- }>, _contractspec_lib_schema0.SchemaModel<{
823
- id: {
824
- type: _contractspec_lib_schema0.FieldType<string, string>;
825
- isOptional: false;
826
- };
827
- fileId: {
828
- type: _contractspec_lib_schema0.FieldType<string, string>;
829
- isOptional: false;
830
- };
831
- entityType: {
832
- type: _contractspec_lib_schema0.FieldType<string, string>;
833
- isOptional: false;
834
- };
835
- entityId: {
836
- type: _contractspec_lib_schema0.FieldType<string, string>;
837
- isOptional: false;
838
- };
839
- attachmentType: {
840
- type: _contractspec_lib_schema0.FieldType<string, string>;
841
- isOptional: true;
842
- };
843
- name: {
844
- type: _contractspec_lib_schema0.FieldType<string, string>;
845
- isOptional: true;
846
- };
847
- description: {
848
- type: _contractspec_lib_schema0.FieldType<string, string>;
849
- isOptional: true;
850
- };
851
- order: {
852
- type: _contractspec_lib_schema0.FieldType<number, number>;
853
- isOptional: false;
854
- };
855
- metadata: {
856
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
857
- isOptional: true;
858
- };
859
- createdBy: {
860
- type: _contractspec_lib_schema0.FieldType<string, string>;
861
- isOptional: false;
862
- };
863
- createdAt: {
864
- type: _contractspec_lib_schema0.FieldType<Date, string>;
865
- isOptional: false;
866
- };
867
- file: {
868
- type: _contractspec_lib_schema0.SchemaModel<{
869
- id: {
870
- type: _contractspec_lib_schema0.FieldType<string, string>;
871
- isOptional: false;
872
- };
873
- name: {
874
- type: _contractspec_lib_schema0.FieldType<string, string>;
875
- isOptional: false;
876
- };
877
- mimeType: {
878
- type: _contractspec_lib_schema0.FieldType<string, string>;
879
- isOptional: false;
880
- };
881
- size: {
882
- type: _contractspec_lib_schema0.FieldType<number, number>;
883
- isOptional: false;
884
- };
885
- storageProvider: {
886
- type: _contractspec_lib_schema0.FieldType<string, string>;
887
- isOptional: false;
888
- };
889
- storagePath: {
890
- type: _contractspec_lib_schema0.FieldType<string, string>;
891
- isOptional: false;
892
- };
893
- checksum: {
894
- type: _contractspec_lib_schema0.FieldType<string, string>;
895
- isOptional: true;
896
- };
897
- status: {
898
- type: _contractspec_lib_schema0.FieldType<string, string>;
899
- isOptional: false;
900
- };
901
- isPublic: {
902
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
903
- isOptional: false;
904
- };
905
- ownerId: {
906
- type: _contractspec_lib_schema0.FieldType<string, string>;
907
- isOptional: false;
908
- };
909
- orgId: {
910
- type: _contractspec_lib_schema0.FieldType<string, string>;
911
- isOptional: true;
912
- };
913
- metadata: {
914
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
915
- isOptional: true;
916
- };
917
- width: {
918
- type: _contractspec_lib_schema0.FieldType<number, number>;
919
- isOptional: true;
920
- };
921
- height: {
922
- type: _contractspec_lib_schema0.FieldType<number, number>;
923
- isOptional: true;
924
- };
925
- createdAt: {
926
- type: _contractspec_lib_schema0.FieldType<Date, string>;
927
- isOptional: false;
928
- };
929
- updatedAt: {
930
- type: _contractspec_lib_schema0.FieldType<Date, string>;
931
- isOptional: false;
932
- };
933
- }>;
934
- isOptional: true;
935
- };
785
+ export declare const AttachFileContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
786
+ fileId: {
787
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
788
+ isOptional: false;
789
+ };
790
+ entityType: {
791
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
792
+ isOptional: false;
793
+ };
794
+ entityId: {
795
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
796
+ isOptional: false;
797
+ };
798
+ attachmentType: {
799
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
800
+ isOptional: true;
801
+ };
802
+ name: {
803
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
804
+ isOptional: true;
805
+ };
806
+ description: {
807
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
808
+ isOptional: true;
809
+ };
810
+ order: {
811
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
812
+ isOptional: true;
813
+ };
814
+ metadata: {
815
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
816
+ isOptional: true;
817
+ };
818
+ }>, import("@contractspec/lib.schema").SchemaModel<{
819
+ id: {
820
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
821
+ isOptional: false;
822
+ };
823
+ fileId: {
824
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
825
+ isOptional: false;
826
+ };
827
+ entityType: {
828
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
829
+ isOptional: false;
830
+ };
831
+ entityId: {
832
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
833
+ isOptional: false;
834
+ };
835
+ attachmentType: {
836
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
837
+ isOptional: true;
838
+ };
839
+ name: {
840
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
841
+ isOptional: true;
842
+ };
843
+ description: {
844
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
845
+ isOptional: true;
846
+ };
847
+ order: {
848
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
849
+ isOptional: false;
850
+ };
851
+ metadata: {
852
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
853
+ isOptional: true;
854
+ };
855
+ createdBy: {
856
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
857
+ isOptional: false;
858
+ };
859
+ createdAt: {
860
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
861
+ isOptional: false;
862
+ };
863
+ file: {
864
+ type: import("@contractspec/lib.schema").SchemaModel<{
865
+ id: {
866
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
867
+ isOptional: false;
868
+ };
869
+ name: {
870
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
871
+ isOptional: false;
872
+ };
873
+ mimeType: {
874
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
875
+ isOptional: false;
876
+ };
877
+ size: {
878
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
879
+ isOptional: false;
880
+ };
881
+ storageProvider: {
882
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
883
+ isOptional: false;
884
+ };
885
+ storagePath: {
886
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
887
+ isOptional: false;
888
+ };
889
+ checksum: {
890
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
891
+ isOptional: true;
892
+ };
893
+ status: {
894
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
895
+ isOptional: false;
896
+ };
897
+ isPublic: {
898
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
899
+ isOptional: false;
900
+ };
901
+ ownerId: {
902
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
903
+ isOptional: false;
904
+ };
905
+ orgId: {
906
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
907
+ isOptional: true;
908
+ };
909
+ metadata: {
910
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
911
+ isOptional: true;
912
+ };
913
+ width: {
914
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
915
+ isOptional: true;
916
+ };
917
+ height: {
918
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
919
+ isOptional: true;
920
+ };
921
+ createdAt: {
922
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
923
+ isOptional: false;
924
+ };
925
+ updatedAt: {
926
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
927
+ isOptional: false;
928
+ };
929
+ }>;
930
+ isOptional: true;
931
+ };
936
932
  }>, undefined>;
937
933
  /**
938
934
  * Detach a file from an entity.
939
935
  */
940
- declare const DetachFileContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
941
- attachmentId: {
942
- type: _contractspec_lib_schema0.FieldType<string, string>;
943
- isOptional: false;
944
- };
945
- }>, _contractspec_lib_schema0.SchemaModel<{
946
- success: {
947
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
948
- isOptional: false;
949
- };
936
+ export declare const DetachFileContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
937
+ attachmentId: {
938
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
939
+ isOptional: false;
940
+ };
941
+ }>, import("@contractspec/lib.schema").SchemaModel<{
942
+ success: {
943
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
944
+ isOptional: false;
945
+ };
950
946
  }>, undefined>;
951
947
  /**
952
948
  * List attachments for an entity.
953
949
  */
954
- declare const ListAttachmentsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
955
- entityType: {
956
- type: _contractspec_lib_schema0.FieldType<string, string>;
957
- isOptional: false;
958
- };
959
- entityId: {
960
- type: _contractspec_lib_schema0.FieldType<string, string>;
961
- isOptional: false;
962
- };
963
- attachmentType: {
964
- type: _contractspec_lib_schema0.FieldType<string, string>;
965
- isOptional: true;
966
- };
967
- }>, _contractspec_lib_schema0.SchemaModel<{
968
- attachments: {
969
- type: _contractspec_lib_schema0.SchemaModel<{
970
- id: {
971
- type: _contractspec_lib_schema0.FieldType<string, string>;
972
- isOptional: false;
973
- };
974
- fileId: {
975
- type: _contractspec_lib_schema0.FieldType<string, string>;
976
- isOptional: false;
977
- };
978
- entityType: {
979
- type: _contractspec_lib_schema0.FieldType<string, string>;
980
- isOptional: false;
981
- };
982
- entityId: {
983
- type: _contractspec_lib_schema0.FieldType<string, string>;
984
- isOptional: false;
985
- };
986
- attachmentType: {
987
- type: _contractspec_lib_schema0.FieldType<string, string>;
988
- isOptional: true;
989
- };
990
- name: {
991
- type: _contractspec_lib_schema0.FieldType<string, string>;
992
- isOptional: true;
993
- };
994
- description: {
995
- type: _contractspec_lib_schema0.FieldType<string, string>;
996
- isOptional: true;
997
- };
998
- order: {
999
- type: _contractspec_lib_schema0.FieldType<number, number>;
1000
- isOptional: false;
1001
- };
1002
- metadata: {
1003
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
1004
- isOptional: true;
1005
- };
1006
- createdBy: {
1007
- type: _contractspec_lib_schema0.FieldType<string, string>;
1008
- isOptional: false;
1009
- };
1010
- createdAt: {
1011
- type: _contractspec_lib_schema0.FieldType<Date, string>;
1012
- isOptional: false;
1013
- };
1014
- file: {
1015
- type: _contractspec_lib_schema0.SchemaModel<{
1016
- id: {
1017
- type: _contractspec_lib_schema0.FieldType<string, string>;
1018
- isOptional: false;
1019
- };
1020
- name: {
1021
- type: _contractspec_lib_schema0.FieldType<string, string>;
1022
- isOptional: false;
1023
- };
1024
- mimeType: {
1025
- type: _contractspec_lib_schema0.FieldType<string, string>;
1026
- isOptional: false;
1027
- };
1028
- size: {
1029
- type: _contractspec_lib_schema0.FieldType<number, number>;
1030
- isOptional: false;
1031
- };
1032
- storageProvider: {
1033
- type: _contractspec_lib_schema0.FieldType<string, string>;
1034
- isOptional: false;
1035
- };
1036
- storagePath: {
1037
- type: _contractspec_lib_schema0.FieldType<string, string>;
1038
- isOptional: false;
1039
- };
1040
- checksum: {
1041
- type: _contractspec_lib_schema0.FieldType<string, string>;
1042
- isOptional: true;
1043
- };
1044
- status: {
1045
- type: _contractspec_lib_schema0.FieldType<string, string>;
1046
- isOptional: false;
1047
- };
1048
- isPublic: {
1049
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
1050
- isOptional: false;
1051
- };
1052
- ownerId: {
1053
- type: _contractspec_lib_schema0.FieldType<string, string>;
1054
- isOptional: false;
1055
- };
1056
- orgId: {
1057
- type: _contractspec_lib_schema0.FieldType<string, string>;
1058
- isOptional: true;
1059
- };
1060
- metadata: {
1061
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
1062
- isOptional: true;
1063
- };
1064
- width: {
1065
- type: _contractspec_lib_schema0.FieldType<number, number>;
1066
- isOptional: true;
1067
- };
1068
- height: {
1069
- type: _contractspec_lib_schema0.FieldType<number, number>;
1070
- isOptional: true;
1071
- };
1072
- createdAt: {
1073
- type: _contractspec_lib_schema0.FieldType<Date, string>;
1074
- isOptional: false;
1075
- };
1076
- updatedAt: {
1077
- type: _contractspec_lib_schema0.FieldType<Date, string>;
1078
- isOptional: false;
1079
- };
1080
- }>;
950
+ export declare const ListAttachmentsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
951
+ entityType: {
952
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
953
+ isOptional: false;
954
+ };
955
+ entityId: {
956
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
957
+ isOptional: false;
958
+ };
959
+ attachmentType: {
960
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1081
961
  isOptional: true;
1082
- };
1083
- }>;
1084
- isArray: true;
1085
- isOptional: false;
1086
- };
1087
- total: {
1088
- type: _contractspec_lib_schema0.FieldType<number, number>;
1089
- isOptional: false;
1090
- };
962
+ };
963
+ }>, import("@contractspec/lib.schema").SchemaModel<{
964
+ attachments: {
965
+ type: import("@contractspec/lib.schema").SchemaModel<{
966
+ id: {
967
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
968
+ isOptional: false;
969
+ };
970
+ fileId: {
971
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
972
+ isOptional: false;
973
+ };
974
+ entityType: {
975
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
976
+ isOptional: false;
977
+ };
978
+ entityId: {
979
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
980
+ isOptional: false;
981
+ };
982
+ attachmentType: {
983
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
984
+ isOptional: true;
985
+ };
986
+ name: {
987
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
988
+ isOptional: true;
989
+ };
990
+ description: {
991
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
992
+ isOptional: true;
993
+ };
994
+ order: {
995
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
996
+ isOptional: false;
997
+ };
998
+ metadata: {
999
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
1000
+ isOptional: true;
1001
+ };
1002
+ createdBy: {
1003
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1004
+ isOptional: false;
1005
+ };
1006
+ createdAt: {
1007
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
1008
+ isOptional: false;
1009
+ };
1010
+ file: {
1011
+ type: import("@contractspec/lib.schema").SchemaModel<{
1012
+ id: {
1013
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1014
+ isOptional: false;
1015
+ };
1016
+ name: {
1017
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1018
+ isOptional: false;
1019
+ };
1020
+ mimeType: {
1021
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1022
+ isOptional: false;
1023
+ };
1024
+ size: {
1025
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
1026
+ isOptional: false;
1027
+ };
1028
+ storageProvider: {
1029
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1030
+ isOptional: false;
1031
+ };
1032
+ storagePath: {
1033
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1034
+ isOptional: false;
1035
+ };
1036
+ checksum: {
1037
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1038
+ isOptional: true;
1039
+ };
1040
+ status: {
1041
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1042
+ isOptional: false;
1043
+ };
1044
+ isPublic: {
1045
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
1046
+ isOptional: false;
1047
+ };
1048
+ ownerId: {
1049
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1050
+ isOptional: false;
1051
+ };
1052
+ orgId: {
1053
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1054
+ isOptional: true;
1055
+ };
1056
+ metadata: {
1057
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
1058
+ isOptional: true;
1059
+ };
1060
+ width: {
1061
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
1062
+ isOptional: true;
1063
+ };
1064
+ height: {
1065
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
1066
+ isOptional: true;
1067
+ };
1068
+ createdAt: {
1069
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
1070
+ isOptional: false;
1071
+ };
1072
+ updatedAt: {
1073
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
1074
+ isOptional: false;
1075
+ };
1076
+ }>;
1077
+ isOptional: true;
1078
+ };
1079
+ }>;
1080
+ isArray: true;
1081
+ isOptional: false;
1082
+ };
1083
+ total: {
1084
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
1085
+ isOptional: false;
1086
+ };
1091
1087
  }>, undefined>;
1092
1088
  /**
1093
1089
  * Create a presigned upload URL.
1094
1090
  */
1095
- declare const CreatePresignedUrlContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
1096
- fileName: {
1097
- type: _contractspec_lib_schema0.FieldType<string, string>;
1098
- isOptional: false;
1099
- };
1100
- mimeType: {
1101
- type: _contractspec_lib_schema0.FieldType<string, string>;
1102
- isOptional: false;
1103
- };
1104
- size: {
1105
- type: _contractspec_lib_schema0.FieldType<number, number>;
1106
- isOptional: false;
1107
- };
1108
- orgId: {
1109
- type: _contractspec_lib_schema0.FieldType<string, string>;
1110
- isOptional: true;
1111
- };
1112
- expiresInSeconds: {
1113
- type: _contractspec_lib_schema0.FieldType<number, number>;
1114
- isOptional: true;
1115
- };
1116
- }>, _contractspec_lib_schema0.SchemaModel<{
1117
- url: {
1118
- type: _contractspec_lib_schema0.FieldType<string, string>;
1119
- isOptional: false;
1120
- };
1121
- fields: {
1122
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
1123
- isOptional: true;
1124
- };
1125
- expiresAt: {
1126
- type: _contractspec_lib_schema0.FieldType<Date, string>;
1127
- isOptional: false;
1128
- };
1129
- fileId: {
1130
- type: _contractspec_lib_schema0.FieldType<string, string>;
1131
- isOptional: true;
1132
- };
1133
- sessionId: {
1134
- type: _contractspec_lib_schema0.FieldType<string, string>;
1135
- isOptional: true;
1136
- };
1091
+ export declare const CreatePresignedUrlContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
1092
+ fileName: {
1093
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1094
+ isOptional: false;
1095
+ };
1096
+ mimeType: {
1097
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1098
+ isOptional: false;
1099
+ };
1100
+ size: {
1101
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
1102
+ isOptional: false;
1103
+ };
1104
+ orgId: {
1105
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1106
+ isOptional: true;
1107
+ };
1108
+ expiresInSeconds: {
1109
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
1110
+ isOptional: true;
1111
+ };
1112
+ }>, import("@contractspec/lib.schema").SchemaModel<{
1113
+ url: {
1114
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1115
+ isOptional: false;
1116
+ };
1117
+ fields: {
1118
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
1119
+ isOptional: true;
1120
+ };
1121
+ expiresAt: {
1122
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
1123
+ isOptional: false;
1124
+ };
1125
+ fileId: {
1126
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1127
+ isOptional: true;
1128
+ };
1129
+ sessionId: {
1130
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1131
+ isOptional: true;
1132
+ };
1137
1133
  }>, undefined>;
1138
- //#endregion
1139
- export { AttachFileContract, AttachmentModel, CreatePresignedUrlContract, CreateVersionContract, DeleteFileContract, DetachFileContract, FileModel, FileVersionModel, GetDownloadUrlContract, GetFileContract, GetVersionsContract, ListAttachmentsContract, ListFilesContract, PresignedUrlModel, UpdateFileContract, UploadFileContract };
1140
1134
  //# sourceMappingURL=index.d.ts.map