casedev 0.72.0 → 0.74.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 (108) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/connectors/connectors.d.mts +2 -2
  4. package/resources/connectors/connectors.d.mts.map +1 -1
  5. package/resources/connectors/connectors.d.ts +2 -2
  6. package/resources/connectors/connectors.d.ts.map +1 -1
  7. package/resources/connectors/connectors.js.map +1 -1
  8. package/resources/connectors/connectors.mjs.map +1 -1
  9. package/resources/connectors/index.d.mts +1 -1
  10. package/resources/connectors/index.d.mts.map +1 -1
  11. package/resources/connectors/index.d.ts +1 -1
  12. package/resources/connectors/index.d.ts.map +1 -1
  13. package/resources/connectors/index.js.map +1 -1
  14. package/resources/connectors/index.mjs.map +1 -1
  15. package/resources/connectors/v1/connections.d.mts +343 -9
  16. package/resources/connectors/v1/connections.d.mts.map +1 -1
  17. package/resources/connectors/v1/connections.d.ts +343 -9
  18. package/resources/connectors/v1/connections.d.ts.map +1 -1
  19. package/resources/connectors/v1/connections.js +124 -1
  20. package/resources/connectors/v1/connections.js.map +1 -1
  21. package/resources/connectors/v1/connections.mjs +124 -1
  22. package/resources/connectors/v1/connections.mjs.map +1 -1
  23. package/resources/connectors/v1/index.d.mts +2 -2
  24. package/resources/connectors/v1/index.d.mts.map +1 -1
  25. package/resources/connectors/v1/index.d.ts +2 -2
  26. package/resources/connectors/v1/index.d.ts.map +1 -1
  27. package/resources/connectors/v1/index.js.map +1 -1
  28. package/resources/connectors/v1/index.mjs.map +1 -1
  29. package/resources/connectors/v1/v1.d.mts +139 -8
  30. package/resources/connectors/v1/v1.d.mts.map +1 -1
  31. package/resources/connectors/v1/v1.d.ts +139 -8
  32. package/resources/connectors/v1/v1.d.ts.map +1 -1
  33. package/resources/connectors/v1/v1.js +29 -5
  34. package/resources/connectors/v1/v1.js.map +1 -1
  35. package/resources/connectors/v1/v1.mjs +29 -5
  36. package/resources/connectors/v1/v1.mjs.map +1 -1
  37. package/resources/linc/v1/sessions.d.mts +31 -8
  38. package/resources/linc/v1/sessions.d.mts.map +1 -1
  39. package/resources/linc/v1/sessions.d.ts +31 -8
  40. package/resources/linc/v1/sessions.d.ts.map +1 -1
  41. package/resources/linc/v1/sessions.js +3 -3
  42. package/resources/linc/v1/sessions.mjs +3 -3
  43. package/resources/ocr/v1.d.mts +2 -1
  44. package/resources/ocr/v1.d.mts.map +1 -1
  45. package/resources/ocr/v1.d.ts +2 -1
  46. package/resources/ocr/v1.d.ts.map +1 -1
  47. package/resources/vault/assemblies.d.mts +313 -0
  48. package/resources/vault/assemblies.d.mts.map +1 -0
  49. package/resources/vault/assemblies.d.ts +313 -0
  50. package/resources/vault/assemblies.d.ts.map +1 -0
  51. package/resources/vault/assemblies.js +70 -0
  52. package/resources/vault/assemblies.js.map +1 -0
  53. package/resources/vault/assemblies.mjs +66 -0
  54. package/resources/vault/assemblies.mjs.map +1 -0
  55. package/resources/vault/index.d.mts +2 -1
  56. package/resources/vault/index.d.mts.map +1 -1
  57. package/resources/vault/index.d.ts +2 -1
  58. package/resources/vault/index.d.ts.map +1 -1
  59. package/resources/vault/index.js +3 -1
  60. package/resources/vault/index.js.map +1 -1
  61. package/resources/vault/index.mjs +1 -0
  62. package/resources/vault/index.mjs.map +1 -1
  63. package/resources/vault/objects.d.mts +50 -6
  64. package/resources/vault/objects.d.mts.map +1 -1
  65. package/resources/vault/objects.d.ts +50 -6
  66. package/resources/vault/objects.d.ts.map +1 -1
  67. package/resources/vault/objects.js +29 -5
  68. package/resources/vault/objects.js.map +1 -1
  69. package/resources/vault/objects.mjs +29 -5
  70. package/resources/vault/objects.mjs.map +1 -1
  71. package/resources/vault/vault.d.mts +11 -2
  72. package/resources/vault/vault.d.mts.map +1 -1
  73. package/resources/vault/vault.d.ts +11 -2
  74. package/resources/vault/vault.d.ts.map +1 -1
  75. package/resources/vault/vault.js +4 -0
  76. package/resources/vault/vault.js.map +1 -1
  77. package/resources/vault/vault.mjs +4 -0
  78. package/resources/vault/vault.mjs.map +1 -1
  79. package/resources/voice/boost-list.d.mts +5 -4
  80. package/resources/voice/boost-list.d.mts.map +1 -1
  81. package/resources/voice/boost-list.d.ts +5 -4
  82. package/resources/voice/boost-list.d.ts.map +1 -1
  83. package/resources/voice/boost-list.js +5 -4
  84. package/resources/voice/boost-list.js.map +1 -1
  85. package/resources/voice/boost-list.mjs +5 -4
  86. package/resources/voice/boost-list.mjs.map +1 -1
  87. package/resources/voice/transcription.d.mts +9 -2
  88. package/resources/voice/transcription.d.mts.map +1 -1
  89. package/resources/voice/transcription.d.ts +9 -2
  90. package/resources/voice/transcription.d.ts.map +1 -1
  91. package/src/resources/connectors/connectors.ts +2 -0
  92. package/src/resources/connectors/index.ts +1 -0
  93. package/src/resources/connectors/v1/connections.ts +534 -9
  94. package/src/resources/connectors/v1/index.ts +11 -0
  95. package/src/resources/connectors/v1/v1.ts +185 -5
  96. package/src/resources/linc/v1/sessions.ts +35 -9
  97. package/src/resources/ocr/v1.ts +2 -1
  98. package/src/resources/vault/assemblies.ts +432 -0
  99. package/src/resources/vault/index.ts +8 -0
  100. package/src/resources/vault/objects.ts +65 -6
  101. package/src/resources/vault/vault.ts +26 -0
  102. package/src/resources/voice/boost-list.ts +5 -4
  103. package/src/resources/voice/transcription.ts +10 -2
  104. package/src/version.ts +1 -1
  105. package/version.d.mts +1 -1
  106. package/version.d.ts +1 -1
  107. package/version.js +1 -1
  108. package/version.mjs +1 -1
@@ -38,13 +38,12 @@ export class Connections extends APIResource {
38
38
  id: string,
39
39
  params: ConnectionRetrieveParams | null | undefined = {},
40
40
  options?: RequestOptions,
41
- ): APIPromise<void> {
41
+ ): APIPromise<ConnectionRetrieveResponse> {
42
42
  const { 'x-case-connector-subject': xCaseConnectorSubject } = params ?? {};
43
43
  return this._client.get(path`/connectors/v1/connections/${id}`, {
44
44
  ...options,
45
45
  headers: buildHeaders([
46
46
  {
47
- Accept: '*/*',
48
47
  ...(xCaseConnectorSubject != null ?
49
48
  { 'x-case-connector-subject': xCaseConnectorSubject }
50
49
  : undefined),
@@ -133,6 +132,151 @@ export class Connections extends APIResource {
133
132
  });
134
133
  }
135
134
 
135
+ /**
136
+ * Create one folder at the provider directly under a browse location, then export
137
+ * into it with POST /connectors/v1/transfer. Name the parent with the same site,
138
+ * container, and parent fields browse accepts (for Clio and Smokeball, a matter
139
+ * root is the browse_ref the matter returned). A folder of the same name already
140
+ * under the parent is returned with 200 instead of a duplicate; a new folder
141
+ * returns 201. Smokeball creates folders asynchronously: when the new folder is
142
+ * not listed yet the response is 202 with code folder_creation_pending and no
143
+ * folder. Repeat the request after a short wait to get it with 200; a repeat sent
144
+ * while it is still not listed asks Smokeball again and can leave two folders with
145
+ * that name, so space repeats out. Returns 403 provider_scope_insufficient when
146
+ * the connection was granted read access only; reconnect with write access.
147
+ */
148
+ createFolder(id: string, params: ConnectionCreateFolderParams, options?: RequestOptions): APIPromise<void> {
149
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...body } = params;
150
+ return this._client.post(path`/connectors/v1/connections/${id}/folders`, {
151
+ body,
152
+ ...options,
153
+ headers: buildHeaders([
154
+ {
155
+ Accept: '*/*',
156
+ ...(xCaseConnectorSubject != null ?
157
+ { 'x-case-connector-subject': xCaseConnectorSubject }
158
+ : undefined),
159
+ },
160
+ options?.headers,
161
+ ]),
162
+ });
163
+ }
164
+
165
+ /**
166
+ * Create a seven-day, replaceable IT approval link for a pending Microsoft
167
+ * connection. Approval does not connect an account. Only delegated document read
168
+ * scopes are requested.
169
+ */
170
+ createMicrosoftAdminApproval(
171
+ id: string,
172
+ params: ConnectionCreateMicrosoftAdminApprovalParams | null | undefined = {},
173
+ options?: RequestOptions,
174
+ ): APIPromise<ConnectionCreateMicrosoftAdminApprovalResponse> {
175
+ const { 'x-case-connector-subject': xCaseConnectorSubject } = params ?? {};
176
+ return this._client.post(path`/connectors/v1/connections/${id}/microsoft-admin-approval`, {
177
+ ...options,
178
+ headers: buildHeaders([
179
+ {
180
+ ...(xCaseConnectorSubject != null ?
181
+ { 'x-case-connector-subject': xCaseConnectorSubject }
182
+ : undefined),
183
+ },
184
+ options?.headers,
185
+ ]),
186
+ });
187
+ }
188
+
189
+ /**
190
+ * List every file under one folder, at any depth, as a flat paginated list, to
191
+ * preview what importing that folder would bring in. Pass the browse_ref fields of
192
+ * a folder or container. Each file carries its path relative to that folder. A
193
+ * page returns as soon as it holds files, so it may be shorter than page_size
194
+ * while cursor is still set; keep requesting until cursor is null. The listing
195
+ * stops after 10,000 files and sets truncated. Returns 422 contents_not_supported
196
+ * when the provider cannot list folder contents, and shares the provider request
197
+ * budget with browsing and background runs.
198
+ */
199
+ listContents(
200
+ id: string,
201
+ params: ConnectionListContentsParams | null | undefined = {},
202
+ options?: RequestOptions,
203
+ ): APIPromise<ConnectionListContentsResponse> {
204
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...query } = params ?? {};
205
+ return this._client.get(path`/connectors/v1/connections/${id}/contents`, {
206
+ query,
207
+ ...options,
208
+ headers: buildHeaders([
209
+ {
210
+ ...(xCaseConnectorSubject != null ?
211
+ { 'x-case-connector-subject': xCaseConnectorSubject }
212
+ : undefined),
213
+ },
214
+ options?.headers,
215
+ ]),
216
+ });
217
+ }
218
+
219
+ /**
220
+ * Resolve a pasted provider folder link to that folder's browse item, including
221
+ * its browse_ref, name, and path when the provider reports it cheaply. Supports
222
+ * Google Drive folder and open?id= links, Box folder and shared links, Dropbox
223
+ * shared links, and OneDrive/SharePoint sharing links. Returns 400
224
+ * link_not_recognized for links of another provider or form, 422 link_not_folder
225
+ * for file links, 422 link_not_in_account when a Dropbox or Box shared folder is
226
+ * not in the connected account, 404 link_not_accessible when the account cannot
227
+ * see it, and 422 link_resolve_not_supported for providers without folder links.
228
+ * Shares the provider request budget with browsing.
229
+ */
230
+ resolveLink(
231
+ id: string,
232
+ params: ConnectionResolveLinkParams,
233
+ options?: RequestOptions,
234
+ ): APIPromise<ConnectionResolveLinkResponse> {
235
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...query } = params;
236
+ return this._client.get(path`/connectors/v1/connections/${id}/resolve`, {
237
+ query,
238
+ ...options,
239
+ headers: buildHeaders([
240
+ {
241
+ ...(xCaseConnectorSubject != null ?
242
+ { 'x-case-connector-subject': xCaseConnectorSubject }
243
+ : undefined),
244
+ },
245
+ options?.headers,
246
+ ]),
247
+ });
248
+ }
249
+
250
+ /**
251
+ * Search the provider's files by name, and by content where the provider supports
252
+ * it; with kind=folder, search folders by name. Without a scope, searches
253
+ * everything the connection can see; pass the browse_ref fields of a folder or
254
+ * container to search inside it. Folder results carry a browse_ref to open them
255
+ * with browse. Each response states whether its folder scope covers the whole
256
+ * subtree. Returns 422 search_not_supported when the provider has no search and
257
+ * search_kind_not_supported when it cannot search folders, and shares the provider
258
+ * request budget with browsing and background runs.
259
+ */
260
+ search(
261
+ id: string,
262
+ params: ConnectionSearchParams,
263
+ options?: RequestOptions,
264
+ ): APIPromise<ConnectionSearchResponse> {
265
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...query } = params;
266
+ return this._client.get(path`/connectors/v1/connections/${id}/search`, {
267
+ query,
268
+ ...options,
269
+ headers: buildHeaders([
270
+ {
271
+ ...(xCaseConnectorSubject != null ?
272
+ { 'x-case-connector-subject': xCaseConnectorSubject }
273
+ : undefined),
274
+ },
275
+ options?.headers,
276
+ ]),
277
+ });
278
+ }
279
+
136
280
  /**
137
281
  * Enable or disable new runs and scheduled syncs for one provider across the
138
282
  * authenticated organization or installation. This organization-wide operation
@@ -156,10 +300,20 @@ export interface ConnectionCreateResponse {
156
300
  expires_at?: string;
157
301
  }
158
302
 
303
+ export interface ConnectionRetrieveResponse {
304
+ /**
305
+ * Authenticated organization owning this connection; server-side approval binding
306
+ * uses this identifier.
307
+ */
308
+ organization_id?: string;
309
+
310
+ [k: string]: unknown;
311
+ }
312
+
159
313
  export interface ConnectionListResponse {
160
314
  capabilities?: ConnectionListResponse.Capabilities;
161
315
 
162
- connections?: Array<unknown>;
316
+ connections?: Array<ConnectionListResponse.Connection>;
163
317
 
164
318
  /**
165
319
  * @deprecated Mirror of `pagination.next_cursor`. Prefer `pagination`.
@@ -179,6 +333,16 @@ export namespace ConnectionListResponse {
179
333
  google_drive_folder_mirroring?: boolean;
180
334
  }
181
335
 
336
+ export interface Connection {
337
+ /**
338
+ * Authenticated organization owning this connection; server-side approval binding
339
+ * uses this identifier.
340
+ */
341
+ organization_id?: string;
342
+
343
+ [k: string]: unknown;
344
+ }
345
+
182
346
  export interface Pagination {
183
347
  has_more?: boolean;
184
348
 
@@ -190,12 +354,65 @@ export namespace ConnectionListResponse {
190
354
  export interface Provider {
191
355
  id?: string;
192
356
 
357
+ /**
358
+ * Adapter-declared consent choices, filtered by deployment and organization
359
+ * policy.
360
+ */
361
+ authorization_options?: Array<Provider.AuthorizationOption>;
362
+
363
+ /**
364
+ * Exact enabled tiers accepted by the adapter browse policy.
365
+ */
366
+ browse_scope_tiers?: Array<string>;
367
+
193
368
  resource_types?: Array<string>;
194
369
 
195
370
  scope_tier?: string;
196
371
 
372
+ /**
373
+ * Present when GET /connections/{id}/search works for this provider.
374
+ */
375
+ search?: Provider.Search | null;
376
+
377
+ /**
378
+ * True when POST /connections/{id}/folders can create folders for this provider.
379
+ */
380
+ supports_create_folder?: boolean;
381
+
197
382
  supports_export?: boolean;
198
383
  }
384
+
385
+ export namespace Provider {
386
+ export interface AuthorizationOption {
387
+ label?: string;
388
+
389
+ scope_tier?: string;
390
+
391
+ /**
392
+ * Explicit write-authorization upgrade for this account choice. Null means
393
+ * unavailable by policy; omitted when no upgrade is required.
394
+ */
395
+ write_scope_tier?: string | null;
396
+ }
397
+
398
+ /**
399
+ * Present when GET /connections/{id}/search works for this provider.
400
+ */
401
+ export interface Search {
402
+ folder_scope_recursive?: boolean;
403
+
404
+ full_text?: boolean;
405
+
406
+ /**
407
+ * Values the search kind parameter accepts.
408
+ */
409
+ kinds?: Array<'file' | 'folder'>;
410
+
411
+ max_page_size?: number;
412
+
413
+ scopes?: Array<'account' | 'folder'>;
414
+ }
415
+ }
199
416
  }
200
417
 
201
418
  export interface ConnectionBrowseResponse {
@@ -227,6 +444,12 @@ export namespace ConnectionBrowseResponse {
227
444
 
228
445
  name?: string;
229
446
 
447
+ /**
448
+ * Signed reference to this file for POST /connectors/v1/fetch. Null for folders
449
+ * and providers without single-file fetch. Pass it back exactly as received.
450
+ */
451
+ open_ref?: string | null;
452
+
230
453
  parent_ids?: Array<string>;
231
454
 
232
455
  path?: string | null;
@@ -235,11 +458,167 @@ export namespace ConnectionBrowseResponse {
235
458
  }
236
459
  }
237
460
 
461
+ export interface ConnectionCreateMicrosoftAdminApprovalResponse {
462
+ approval_url: string;
463
+
464
+ expires_at: string;
465
+ }
466
+
467
+ export interface ConnectionListContentsResponse {
468
+ cursor?: string | null;
469
+
470
+ items?: Array<ConnectionListContentsResponse.Item>;
471
+
472
+ /**
473
+ * The listed folder, as a browse_ref
474
+ */
475
+ scope_ref?: unknown;
476
+
477
+ /**
478
+ * True when the listing stopped before every file was listed, at the 10,000-file
479
+ * limit or because the folder tree was too wide to page through
480
+ */
481
+ truncated?: boolean;
482
+ }
483
+
484
+ export namespace ConnectionListContentsResponse {
485
+ export interface Item {
486
+ id?: string;
487
+
488
+ container_id?: string | null;
489
+
490
+ kind?: 'file';
491
+
492
+ mime_type?: string | null;
493
+
494
+ modified_at?: string | null;
495
+
496
+ name?: string;
497
+
498
+ /**
499
+ * Signed reference to this file for POST /connectors/v1/fetch. Null for providers
500
+ * without single-file fetch. Pass it back exactly as received.
501
+ */
502
+ open_ref?: string | null;
503
+
504
+ parent_ids?: Array<string>;
505
+
506
+ /**
507
+ * Path relative to the listed folder, ending in the file's name
508
+ */
509
+ path?: string;
510
+
511
+ size_bytes?: number | null;
512
+
513
+ /**
514
+ * Set when an import would skip the file (for example a Box note)
515
+ */
516
+ unsupported_reason?: string | null;
517
+ }
518
+ }
519
+
520
+ export interface ConnectionResolveLinkResponse {
521
+ id?: string;
522
+
523
+ /**
524
+ * Pass these fields to browse to open the folder
525
+ */
526
+ browse_ref?: unknown;
527
+
528
+ container_id?: string | null;
529
+
530
+ description?: string | null;
531
+
532
+ import_ref?: unknown | null;
533
+
534
+ kind?: 'folder';
535
+
536
+ mime_type?: string | null;
537
+
538
+ modified_at?: string | null;
539
+
540
+ name?: string;
541
+
542
+ /**
543
+ * Always null for folders
544
+ */
545
+ open_ref?: string | null;
546
+
547
+ parent_ids?: Array<string>;
548
+
549
+ /**
550
+ * Display path in the account, when the provider reports it
551
+ */
552
+ path?: string | null;
553
+
554
+ size_bytes?: number | null;
555
+ }
556
+
557
+ export interface ConnectionSearchResponse {
558
+ cursor?: string | null;
559
+
560
+ /**
561
+ * False when a folder scope covers its direct children only
562
+ */
563
+ folder_scope_recursive?: boolean;
564
+
565
+ /**
566
+ * Whether the provider matches file contents, not only names. Always false for
567
+ * kind=folder.
568
+ */
569
+ full_text?: boolean;
570
+
571
+ items?: Array<ConnectionSearchResponse.Item>;
572
+
573
+ scope?: 'account' | 'folder';
574
+
575
+ scope_ref?: unknown | null;
576
+ }
577
+
578
+ export namespace ConnectionSearchResponse {
579
+ export interface Item {
580
+ id?: string;
581
+
582
+ /**
583
+ * Reference for GET /connectors/v1/connections/{id}/browse that opens this folder.
584
+ * Null for files.
585
+ */
586
+ browse_ref?: unknown | null;
587
+
588
+ container_id?: string | null;
589
+
590
+ kind?: 'file' | 'folder';
591
+
592
+ mime_type?: string | null;
593
+
594
+ modified_at?: string | null;
595
+
596
+ name?: string;
597
+
598
+ /**
599
+ * Signed reference to this file for POST /connectors/v1/fetch. Null for providers
600
+ * without single-file fetch. Pass it back exactly as received.
601
+ */
602
+ open_ref?: string | null;
603
+
604
+ parent_ids?: Array<string>;
605
+
606
+ path?: string | null;
607
+
608
+ size_bytes?: number | null;
609
+
610
+ /**
611
+ * Set when the file cannot be imported (for example a Box note)
612
+ */
613
+ unsupported_reason?: string | null;
614
+ }
615
+ }
616
+
238
617
  export interface ConnectionCreateParams {
239
618
  /**
240
619
  * Body param
241
620
  */
242
- provider: 'box' | 'clio' | 'dropbox' | 'gdrive' | 'microsoft' | 'smokeball';
621
+ provider: 'box' | 'clio' | 'dropbox' | 'gdrive' | 'microsoft' | 'sharefile' | 'smokeball';
243
622
 
244
623
  /**
245
624
  * Body param: HTTPS URL the user is sent back to after consent.
@@ -248,10 +627,11 @@ export interface ConnectionCreateParams {
248
627
 
249
628
  /**
250
629
  * Body param: Provider-specific OAuth permission tier. Omit to use the provider's
251
- * default. Microsoft defaults to organizational OneDrive/SharePoint; use
252
- * microsoft.personal.read for a personal Microsoft account's own OneDrive.
253
- * Microsoft write tiers are a separately gated private pilot; exports and paired
254
- * sync are not yet available.
630
+ * default. Use microsoft.account.read to let Microsoft choose a personal or
631
+ * work/school account. Existing explicit microsoft.read and
632
+ * microsoft.personal.read tiers remain supported. Microsoft write tiers require
633
+ * the separate write switch and explicit authorization for bounded exports and
634
+ * paired sync.
255
635
  */
256
636
  scope_tier?:
257
637
  | 'box.readwrite'
@@ -259,12 +639,16 @@ export interface ConnectionCreateParams {
259
639
  | 'clio.us'
260
640
  | 'dropbox.readwrite'
261
641
  | 'drive'
642
+ | 'microsoft.account.read'
262
643
  | 'microsoft.read'
263
644
  | 'microsoft.personal.read'
264
645
  | 'microsoft.write'
265
646
  | 'microsoft.personal.write'
647
+ | 'sharefile'
266
648
  | 'smokeball.us'
267
- | 'smokeball.us.staging';
649
+ | 'smokeball.us.staging'
650
+ | 'smokeball.us.staging.write'
651
+ | 'smokeball.us.write';
268
652
 
269
653
  /**
270
654
  * Header param: Trusted server-to-server application-user assertion. Derive it
@@ -367,6 +751,137 @@ export interface ConnectionBrowseParams {
367
751
  'x-case-connector-subject'?: string;
368
752
  }
369
753
 
754
+ export interface ConnectionCreateFolderParams {
755
+ /**
756
+ * Body param: Folder name. Trimmed; 1-255 characters; no '/', '\', or control
757
+ * characters; not '.' or '..'. Providers may refuse further characters.
758
+ */
759
+ name: string;
760
+
761
+ /**
762
+ * Body param: Container id of the parent, from its browse_ref
763
+ */
764
+ container?: string;
765
+
766
+ /**
767
+ * Body param: Folder id of the parent, from its browse_ref. Omit for a container
768
+ * root.
769
+ */
770
+ parent?: string;
771
+
772
+ /**
773
+ * Body param: Site id of the parent, from its browse_ref
774
+ */
775
+ site?: string;
776
+
777
+ /**
778
+ * Header param: Trusted server-to-server application-user assertion. Derive it
779
+ * from the authenticated application session, never browser input. Omit only for
780
+ * the legacy organization-scoped namespace.
781
+ */
782
+ 'x-case-connector-subject'?: string;
783
+ }
784
+
785
+ export interface ConnectionCreateMicrosoftAdminApprovalParams {
786
+ /**
787
+ * Trusted application-user assertion derived from the authenticated application
788
+ * session.
789
+ */
790
+ 'x-case-connector-subject'?: string;
791
+ }
792
+
793
+ export interface ConnectionListContentsParams {
794
+ /**
795
+ * Query param: Container to list, or the container holding parent
796
+ */
797
+ container?: string;
798
+
799
+ /**
800
+ * Query param
801
+ */
802
+ cursor?: string;
803
+
804
+ /**
805
+ * Query param
806
+ */
807
+ page_size?: number;
808
+
809
+ /**
810
+ * Query param: Folder to list
811
+ */
812
+ parent?: string;
813
+
814
+ /**
815
+ * Query param: Site of the folder
816
+ */
817
+ site?: string;
818
+
819
+ /**
820
+ * Header param: Trusted server-to-server application-user assertion. Derive it
821
+ * from the authenticated application session, never browser input. Omit only for
822
+ * the legacy organization-scoped namespace.
823
+ */
824
+ 'x-case-connector-subject'?: string;
825
+ }
826
+
827
+ export interface ConnectionResolveLinkParams {
828
+ /**
829
+ * Query param: Folder link copied from the provider, including any query string
830
+ */
831
+ url: string;
832
+
833
+ /**
834
+ * Header param: Trusted server-to-server application-user assertion. Derive it
835
+ * from the authenticated application session, never browser input. Omit only for
836
+ * the legacy organization-scoped namespace.
837
+ */
838
+ 'x-case-connector-subject'?: string;
839
+ }
840
+
841
+ export interface ConnectionSearchParams {
842
+ /**
843
+ * Query param: Search text
844
+ */
845
+ query: string;
846
+
847
+ /**
848
+ * Query param: Container to search in, or the container holding parent
849
+ */
850
+ container?: string;
851
+
852
+ /**
853
+ * Query param
854
+ */
855
+ cursor?: string;
856
+
857
+ /**
858
+ * Query param: What to search for: files, or folders by name
859
+ */
860
+ kind?: 'file' | 'folder';
861
+
862
+ /**
863
+ * Query param
864
+ */
865
+ page_size?: number;
866
+
867
+ /**
868
+ * Query param: Folder to search in
869
+ */
870
+ parent?: string;
871
+
872
+ /**
873
+ * Query param: Site to search in
874
+ */
875
+ site?: string;
876
+
877
+ /**
878
+ * Header param: Trusted server-to-server application-user assertion. Derive it
879
+ * from the authenticated application session, never browser input. Omit only for
880
+ * the legacy organization-scoped namespace.
881
+ */
882
+ 'x-case-connector-subject'?: string;
883
+ }
884
+
370
885
  export interface ConnectionUpdateAllParams {
371
886
  /**
372
887
  * Confirms that this change applies to every user connection in scope.
@@ -381,13 +896,23 @@ export interface ConnectionUpdateAllParams {
381
896
  export declare namespace Connections {
382
897
  export {
383
898
  type ConnectionCreateResponse as ConnectionCreateResponse,
899
+ type ConnectionRetrieveResponse as ConnectionRetrieveResponse,
384
900
  type ConnectionListResponse as ConnectionListResponse,
385
901
  type ConnectionBrowseResponse as ConnectionBrowseResponse,
902
+ type ConnectionCreateMicrosoftAdminApprovalResponse as ConnectionCreateMicrosoftAdminApprovalResponse,
903
+ type ConnectionListContentsResponse as ConnectionListContentsResponse,
904
+ type ConnectionResolveLinkResponse as ConnectionResolveLinkResponse,
905
+ type ConnectionSearchResponse as ConnectionSearchResponse,
386
906
  type ConnectionCreateParams as ConnectionCreateParams,
387
907
  type ConnectionRetrieveParams as ConnectionRetrieveParams,
388
908
  type ConnectionListParams as ConnectionListParams,
389
909
  type ConnectionDeleteParams as ConnectionDeleteParams,
390
910
  type ConnectionBrowseParams as ConnectionBrowseParams,
911
+ type ConnectionCreateFolderParams as ConnectionCreateFolderParams,
912
+ type ConnectionCreateMicrosoftAdminApprovalParams as ConnectionCreateMicrosoftAdminApprovalParams,
913
+ type ConnectionListContentsParams as ConnectionListContentsParams,
914
+ type ConnectionResolveLinkParams as ConnectionResolveLinkParams,
915
+ type ConnectionSearchParams as ConnectionSearchParams,
391
916
  type ConnectionUpdateAllParams as ConnectionUpdateAllParams,
392
917
  };
393
918
  }
@@ -4,13 +4,23 @@ export { Applications } from './applications/index';
4
4
  export {
5
5
  Connections,
6
6
  type ConnectionCreateResponse,
7
+ type ConnectionRetrieveResponse,
7
8
  type ConnectionListResponse,
8
9
  type ConnectionBrowseResponse,
10
+ type ConnectionCreateMicrosoftAdminApprovalResponse,
11
+ type ConnectionListContentsResponse,
12
+ type ConnectionResolveLinkResponse,
13
+ type ConnectionSearchResponse,
9
14
  type ConnectionCreateParams,
10
15
  type ConnectionRetrieveParams,
11
16
  type ConnectionListParams,
12
17
  type ConnectionDeleteParams,
13
18
  type ConnectionBrowseParams,
19
+ type ConnectionCreateFolderParams,
20
+ type ConnectionCreateMicrosoftAdminApprovalParams,
21
+ type ConnectionListContentsParams,
22
+ type ConnectionResolveLinkParams,
23
+ type ConnectionSearchParams,
14
24
  type ConnectionUpdateAllParams,
15
25
  } from './connections';
16
26
  export {
@@ -36,6 +46,7 @@ export {
36
46
  type TransferRun,
37
47
  type V1SyncLinkResponse,
38
48
  type V1TransferResponse,
49
+ type V1FetchParams,
39
50
  type V1SyncLinkParams,
40
51
  type V1TransferParams,
41
52
  } from './v1';