@boatdev/sdk 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/dist/apis/BoatApi.d.ts +191 -14
  3. package/dist/apis/BoatApi.js +466 -14
  4. package/dist/esm/apis/BoatApi.d.ts +191 -14
  5. package/dist/esm/apis/BoatApi.js +466 -14
  6. package/dist/esm/models/CreateSandboxRequest.d.ts +35 -1
  7. package/dist/esm/models/CreateSandboxRequest.js +17 -0
  8. package/dist/esm/models/CreateSandboxRequestFilesInner.d.ts +52 -0
  9. package/dist/esm/models/CreateSandboxRequestFilesInner.js +56 -0
  10. package/dist/esm/models/CreateSandboxResponse.d.ts +7 -0
  11. package/dist/esm/models/CreateSandboxResponse.js +3 -0
  12. package/dist/esm/models/CreateSandboxResponseAllOfHostedPortsInner.d.ts +77 -0
  13. package/dist/esm/models/CreateSandboxResponseAllOfHostedPortsInner.js +64 -0
  14. package/dist/esm/models/FileDeleteResponse.d.ts +57 -0
  15. package/dist/esm/models/FileDeleteResponse.js +59 -0
  16. package/dist/esm/models/FileEntry.d.ts +68 -0
  17. package/dist/esm/models/FileEntry.js +67 -0
  18. package/dist/esm/models/FileFindResponse.d.ts +70 -0
  19. package/dist/esm/models/FileFindResponse.js +66 -0
  20. package/dist/esm/models/FileFindResponseAllOfMatches.d.ts +44 -0
  21. package/dist/esm/models/FileFindResponseAllOfMatches.js +51 -0
  22. package/dist/esm/models/FileFolderRequest.d.ts +38 -0
  23. package/dist/esm/models/FileFolderRequest.js +45 -0
  24. package/dist/esm/models/FileInfoResponse.d.ts +95 -0
  25. package/dist/esm/models/FileInfoResponse.js +85 -0
  26. package/dist/esm/models/FileListResponse.d.ts +70 -0
  27. package/dist/esm/models/FileListResponse.js +68 -0
  28. package/dist/esm/models/FileMoveRequest.d.ts +44 -0
  29. package/dist/esm/models/FileMoveRequest.js +49 -0
  30. package/dist/esm/models/FileMoveResponse.d.ts +63 -0
  31. package/dist/esm/models/FileMoveResponse.js +63 -0
  32. package/dist/esm/models/FilePermissionsRequest.d.ts +38 -0
  33. package/dist/esm/models/FilePermissionsRequest.js +47 -0
  34. package/dist/esm/models/FileReplaceRequest.d.ts +44 -0
  35. package/dist/esm/models/FileReplaceRequest.js +51 -0
  36. package/dist/esm/models/FileReplaceResponse.d.ts +58 -0
  37. package/dist/esm/models/FileReplaceResponse.js +60 -0
  38. package/dist/esm/models/FileReplaceResponseAllOfResults.d.ts +50 -0
  39. package/dist/esm/models/FileReplaceResponseAllOfResults.js +51 -0
  40. package/dist/esm/models/FileSearchResponse.d.ts +69 -0
  41. package/dist/esm/models/FileSearchResponse.js +65 -0
  42. package/dist/esm/models/LimitsFields.d.ts +54 -16
  43. package/dist/esm/models/LimitsFields.js +16 -2
  44. package/dist/esm/models/LimitsFieldsOveragePrices.d.ts +51 -0
  45. package/dist/esm/models/LimitsFieldsOveragePrices.js +48 -0
  46. package/dist/esm/models/LimitsFieldsOveragePricesStartBracketsInner.d.ts +44 -0
  47. package/dist/esm/models/LimitsFieldsOveragePricesStartBracketsInner.js +45 -0
  48. package/dist/esm/models/LimitsFieldsPlanIncluded.d.ts +44 -0
  49. package/dist/esm/models/LimitsFieldsPlanIncluded.js +45 -0
  50. package/dist/esm/models/LimitsFieldsStartLimitsWithWallet.d.ts +44 -0
  51. package/dist/esm/models/LimitsFieldsStartLimitsWithWallet.js +45 -0
  52. package/dist/esm/models/LimitsFieldsWallet.d.ts +32 -0
  53. package/dist/esm/models/LimitsFieldsWallet.js +41 -0
  54. package/dist/esm/models/LimitsResponse.d.ts +54 -16
  55. package/dist/esm/models/LimitsResponse.js +16 -2
  56. package/dist/esm/models/NamedSnapshotAllowance.d.ts +9 -3
  57. package/dist/esm/models/NamedSnapshotAllowance.js +2 -0
  58. package/dist/esm/models/SavedSnapshotAllowance.d.ts +9 -3
  59. package/dist/esm/models/SavedSnapshotAllowance.js +2 -0
  60. package/dist/esm/models/index.d.ts +21 -0
  61. package/dist/esm/models/index.js +21 -0
  62. package/dist/models/CreateSandboxRequest.d.ts +35 -1
  63. package/dist/models/CreateSandboxRequest.js +18 -1
  64. package/dist/models/CreateSandboxRequestFilesInner.d.ts +52 -0
  65. package/dist/models/CreateSandboxRequestFilesInner.js +64 -0
  66. package/dist/models/CreateSandboxResponse.d.ts +7 -0
  67. package/dist/models/CreateSandboxResponse.js +3 -0
  68. package/dist/models/CreateSandboxResponseAllOfHostedPortsInner.d.ts +77 -0
  69. package/dist/models/CreateSandboxResponseAllOfHostedPortsInner.js +72 -0
  70. package/dist/models/FileDeleteResponse.d.ts +57 -0
  71. package/dist/models/FileDeleteResponse.js +67 -0
  72. package/dist/models/FileEntry.d.ts +68 -0
  73. package/dist/models/FileEntry.js +74 -0
  74. package/dist/models/FileFindResponse.d.ts +70 -0
  75. package/dist/models/FileFindResponse.js +74 -0
  76. package/dist/models/FileFindResponseAllOfMatches.d.ts +44 -0
  77. package/dist/models/FileFindResponseAllOfMatches.js +58 -0
  78. package/dist/models/FileFolderRequest.d.ts +38 -0
  79. package/dist/models/FileFolderRequest.js +52 -0
  80. package/dist/models/FileInfoResponse.d.ts +95 -0
  81. package/dist/models/FileInfoResponse.js +93 -0
  82. package/dist/models/FileListResponse.d.ts +70 -0
  83. package/dist/models/FileListResponse.js +76 -0
  84. package/dist/models/FileMoveRequest.d.ts +44 -0
  85. package/dist/models/FileMoveRequest.js +56 -0
  86. package/dist/models/FileMoveResponse.d.ts +63 -0
  87. package/dist/models/FileMoveResponse.js +71 -0
  88. package/dist/models/FilePermissionsRequest.d.ts +38 -0
  89. package/dist/models/FilePermissionsRequest.js +54 -0
  90. package/dist/models/FileReplaceRequest.d.ts +44 -0
  91. package/dist/models/FileReplaceRequest.js +58 -0
  92. package/dist/models/FileReplaceResponse.d.ts +58 -0
  93. package/dist/models/FileReplaceResponse.js +68 -0
  94. package/dist/models/FileReplaceResponseAllOfResults.d.ts +50 -0
  95. package/dist/models/FileReplaceResponseAllOfResults.js +58 -0
  96. package/dist/models/FileSearchResponse.d.ts +69 -0
  97. package/dist/models/FileSearchResponse.js +73 -0
  98. package/dist/models/LimitsFields.d.ts +54 -16
  99. package/dist/models/LimitsFields.js +16 -2
  100. package/dist/models/LimitsFieldsOveragePrices.d.ts +51 -0
  101. package/dist/models/LimitsFieldsOveragePrices.js +55 -0
  102. package/dist/models/LimitsFieldsOveragePricesStartBracketsInner.d.ts +44 -0
  103. package/dist/models/LimitsFieldsOveragePricesStartBracketsInner.js +52 -0
  104. package/dist/models/LimitsFieldsPlanIncluded.d.ts +44 -0
  105. package/dist/models/LimitsFieldsPlanIncluded.js +52 -0
  106. package/dist/models/LimitsFieldsStartLimitsWithWallet.d.ts +44 -0
  107. package/dist/models/LimitsFieldsStartLimitsWithWallet.js +52 -0
  108. package/dist/models/LimitsFieldsWallet.d.ts +32 -0
  109. package/dist/models/LimitsFieldsWallet.js +48 -0
  110. package/dist/models/LimitsResponse.d.ts +54 -16
  111. package/dist/models/LimitsResponse.js +16 -2
  112. package/dist/models/NamedSnapshotAllowance.d.ts +9 -3
  113. package/dist/models/NamedSnapshotAllowance.js +2 -0
  114. package/dist/models/SavedSnapshotAllowance.d.ts +9 -3
  115. package/dist/models/SavedSnapshotAllowance.js +2 -0
  116. package/dist/models/index.d.ts +21 -0
  117. package/dist/models/index.js +21 -0
  118. package/docs/BoatApi.md +744 -48
  119. package/docs/CreateSandboxRequest.md +8 -0
  120. package/docs/CreateSandboxRequestFilesInner.md +36 -0
  121. package/docs/CreateSandboxResponse.md +2 -0
  122. package/docs/CreateSandboxResponseAllOfHostedPortsInner.md +44 -0
  123. package/docs/FileDeleteResponse.md +38 -0
  124. package/docs/FileEntry.md +44 -0
  125. package/docs/FileFindResponse.md +42 -0
  126. package/docs/FileFindResponseAllOfMatches.md +36 -0
  127. package/docs/FileFolderRequest.md +34 -0
  128. package/docs/FileInfoResponse.md +50 -0
  129. package/docs/FileListResponse.md +42 -0
  130. package/docs/FileMoveRequest.md +36 -0
  131. package/docs/FileMoveResponse.md +40 -0
  132. package/docs/FilePermissionsRequest.md +34 -0
  133. package/docs/FileReplaceRequest.md +36 -0
  134. package/docs/FileReplaceResponse.md +38 -0
  135. package/docs/FileReplaceResponseAllOfResults.md +38 -0
  136. package/docs/FileSearchResponse.md +42 -0
  137. package/docs/LimitsFields.md +12 -2
  138. package/docs/LimitsFieldsOveragePrices.md +39 -0
  139. package/docs/LimitsFieldsOveragePricesStartBracketsInner.md +36 -0
  140. package/docs/LimitsFieldsPlanIncluded.md +37 -0
  141. package/docs/LimitsFieldsStartLimitsWithWallet.md +37 -0
  142. package/docs/LimitsFieldsWallet.md +33 -0
  143. package/docs/LimitsResponse.md +12 -2
  144. package/docs/NamedSnapshotAllowance.md +3 -1
  145. package/docs/SavedSnapshotAllowance.md +3 -1
  146. package/package.json +1 -1
  147. package/src/apis/BoatApi.ts +721 -14
  148. package/src/models/CreateSandboxRequest.ts +57 -1
  149. package/src/models/CreateSandboxRequestFilesInner.ts +94 -0
  150. package/src/models/CreateSandboxResponse.ts +15 -0
  151. package/src/models/CreateSandboxResponseAllOfHostedPortsInner.ts +128 -0
  152. package/src/models/FileDeleteResponse.ts +102 -0
  153. package/src/models/FileEntry.ts +120 -0
  154. package/src/models/FileFindResponse.ts +127 -0
  155. package/src/models/FileFindResponseAllOfMatches.ts +84 -0
  156. package/src/models/FileFolderRequest.ts +74 -0
  157. package/src/models/FileInfoResponse.ts +158 -0
  158. package/src/models/FileListResponse.ts +128 -0
  159. package/src/models/FileMoveRequest.ts +83 -0
  160. package/src/models/FileMoveResponse.ts +111 -0
  161. package/src/models/FilePermissionsRequest.ts +75 -0
  162. package/src/models/FileReplaceRequest.ts +84 -0
  163. package/src/models/FileReplaceResponse.ts +110 -0
  164. package/src/models/FileReplaceResponseAllOfResults.ts +91 -0
  165. package/src/models/FileSearchResponse.ts +119 -0
  166. package/src/models/LimitsFields.ts +90 -16
  167. package/src/models/LimitsFieldsOveragePrices.ts +97 -0
  168. package/src/models/LimitsFieldsOveragePricesStartBracketsInner.ts +81 -0
  169. package/src/models/LimitsFieldsPlanIncluded.ts +81 -0
  170. package/src/models/LimitsFieldsStartLimitsWithWallet.ts +81 -0
  171. package/src/models/LimitsFieldsWallet.ts +65 -0
  172. package/src/models/LimitsResponse.ts +90 -16
  173. package/src/models/NamedSnapshotAllowance.ts +11 -3
  174. package/src/models/SavedSnapshotAllowance.ts +11 -3
  175. package/src/models/index.ts +21 -0
@@ -46,7 +46,18 @@ import { type DesktopRequest } from '../models/DesktopRequest';
46
46
  import { type DesktopResponse } from '../models/DesktopResponse';
47
47
  import { type EnvironmentItemChangeResponse } from '../models/EnvironmentItemChangeResponse';
48
48
  import { type EventsResponse } from '../models/EventsResponse';
49
+ import { type FileDeleteResponse } from '../models/FileDeleteResponse';
50
+ import { type FileFindResponse } from '../models/FileFindResponse';
51
+ import { type FileFolderRequest } from '../models/FileFolderRequest';
52
+ import { type FileInfoResponse } from '../models/FileInfoResponse';
53
+ import { type FileListResponse } from '../models/FileListResponse';
54
+ import { type FileMoveRequest } from '../models/FileMoveRequest';
55
+ import { type FileMoveResponse } from '../models/FileMoveResponse';
56
+ import { type FilePermissionsRequest } from '../models/FilePermissionsRequest';
49
57
  import { type FileReadResponse } from '../models/FileReadResponse';
58
+ import { type FileReplaceRequest } from '../models/FileReplaceRequest';
59
+ import { type FileReplaceResponse } from '../models/FileReplaceResponse';
60
+ import { type FileSearchResponse } from '../models/FileSearchResponse';
50
61
  import { type FileUrlRequest } from '../models/FileUrlRequest';
51
62
  import { type FileUrlResponse } from '../models/FileUrlResponse';
52
63
  import { type FileWriteRequest } from '../models/FileWriteRequest';
@@ -192,6 +203,10 @@ export interface CreateEnvironmentRequest {
192
203
  createSandboxEnvironmentRequest: CreateSandboxEnvironmentRequest;
193
204
  org?: string;
194
205
  }
206
+ export interface CreateFolderRequest {
207
+ sandboxId: string;
208
+ fileFolderRequest: FileFolderRequest;
209
+ }
195
210
  export interface CreateScopedApiKeyOperationRequest {
196
211
  createScopedApiKeyRequest: CreateScopedApiKeyRequest;
197
212
  }
@@ -240,6 +255,11 @@ export interface DeleteEnvironmentVarRequest {
240
255
  key: string;
241
256
  org?: string;
242
257
  }
258
+ export interface DeleteFileRequest {
259
+ sandboxId: string;
260
+ path: string;
261
+ recursive?: boolean;
262
+ }
243
263
  export interface DeleteNamedSnapshotRequest {
244
264
  name: string;
245
265
  }
@@ -278,6 +298,12 @@ export interface EventsRequest {
278
298
  type?: string;
279
299
  conversation?: string;
280
300
  }
301
+ export interface FindInFilesRequest {
302
+ sandboxId: string;
303
+ pattern: string;
304
+ path?: string;
305
+ regex?: boolean;
306
+ }
281
307
  export interface ForkOperationRequest {
282
308
  sandboxId: string;
283
309
  idempotencyKey?: string;
@@ -303,6 +329,10 @@ export interface GetCommandRequest {
303
329
  export interface GetDeletionOperationRequest {
304
330
  operationId: string;
305
331
  }
332
+ export interface GetFileInfoRequest {
333
+ sandboxId: string;
334
+ path: string;
335
+ }
306
336
  export interface GetLatestSandboxSnapshotRequest {
307
337
  sandboxId: string;
308
338
  }
@@ -350,6 +380,10 @@ export interface ListCredentialAccountsRequest {
350
380
  profile: string;
351
381
  credential: CredentialId;
352
382
  }
383
+ export interface ListFilesRequest {
384
+ sandboxId: string;
385
+ path?: string;
386
+ }
353
387
  export interface ListSandboxSnapshotsRequest {
354
388
  sandboxId: string;
355
389
  limit?: number;
@@ -364,6 +398,10 @@ export interface ListSnapshotsRequest {
364
398
  cursor?: string | null;
365
399
  sort?: ListSnapshotsSortEnum;
366
400
  }
401
+ export interface MoveFileRequest {
402
+ sandboxId: string;
403
+ fileMoveRequest: FileMoveRequest;
404
+ }
367
405
  export interface ProcessesRequest {
368
406
  sandboxId: string;
369
407
  }
@@ -383,6 +421,10 @@ export interface ReadFileRequest {
383
421
  export interface RecoverRequest {
384
422
  sandboxId: string;
385
423
  }
424
+ export interface ReplaceInFilesRequest {
425
+ sandboxId: string;
426
+ fileReplaceRequest: FileReplaceRequest;
427
+ }
386
428
  export interface ReposRequest {
387
429
  sync?: boolean;
388
430
  limit?: number;
@@ -423,6 +465,11 @@ export interface SaveNamedSnapshotRequest {
423
465
  export interface SaveSavedSnapshotRequest {
424
466
  savedSnapshotSaveRequest: SavedSnapshotSaveRequest;
425
467
  }
468
+ export interface SearchFilesRequest {
469
+ sandboxId: string;
470
+ pattern: string;
471
+ path?: string;
472
+ }
426
473
  export interface SelectRepoRequest {
427
474
  repoSelectionRequest: RepoSelectionRequest;
428
475
  }
@@ -450,6 +497,10 @@ export interface SetEnvironmentVarOperationRequest {
450
497
  setEnvironmentVarRequest: SetEnvironmentVarRequest;
451
498
  org?: string;
452
499
  }
500
+ export interface SetFilePermissionsRequest {
501
+ sandboxId: string;
502
+ filePermissionsRequest: FilePermissionsRequest;
503
+ }
453
504
  export interface SetSandboxAiAccessOperationRequest {
454
505
  sandboxId: string;
455
506
  setSandboxAiAccessRequest: SetSandboxAiAccessRequest;
@@ -745,17 +796,31 @@ export declare class BoatApi extends runtime.BaseAPI {
745
796
  * Create a sandbox environment
746
797
  */
747
798
  createEnvironment(requestParameters: CreateEnvironmentRequest | runtime.FlatBody<CreateEnvironmentRequest, 'createSandboxEnvironmentRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxEnvironmentListResponse>;
799
+ /**
800
+ * Creates request options for createFolder without sending the request
801
+ */
802
+ createFolderRequestOpts(input: CreateFolderRequest | runtime.FlatBody<CreateFolderRequest, 'fileFolderRequest'>): Promise<runtime.RequestOpts>;
803
+ /**
804
+ * Missing parent directories are created. An existing directory is not an error. Needs `file.write`.
805
+ * Create a directory in a sandbox
806
+ */
807
+ createFolderRaw(requestParameters: CreateFolderRequest | runtime.FlatBody<CreateFolderRequest, 'fileFolderRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileInfoResponse>>;
808
+ /**
809
+ * Missing parent directories are created. An existing directory is not an error. Needs `file.write`.
810
+ * Create a directory in a sandbox
811
+ */
812
+ createFolder(requestParameters: CreateFolderRequest | runtime.FlatBody<CreateFolderRequest, 'fileFolderRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileInfoResponse>;
748
813
  /**
749
814
  * Creates request options for createScopedApiKey without sending the request
750
815
  */
751
816
  createScopedApiKeyRequestOpts(input: CreateScopedApiKeyOperationRequest | runtime.FlatBody<CreateScopedApiKeyOperationRequest, 'createScopedApiKeyRequest'>): Promise<runtime.RequestOpts>;
752
817
  /**
753
- * Creates a scoped, expiring API key. Requires a dashboard/CLI session or an admin-scoped token. The secret is returned once. This dedicated path returns a typed 503 until scoped credential creation is activated.
818
+ * Creates a scoped, expiring API key. Requires a dashboard/CLI session or an admin-scoped token. The secret is returned once. An unknown field is a 400, so a misspelled scope never creates a full-access key. environmentIds takes your own environments and the org environments you can use. This dedicated path returns a typed 503 until scoped credential creation is activated.
754
819
  * Create a scoped API key
755
820
  */
756
821
  createScopedApiKeyRaw(requestParameters: CreateScopedApiKeyOperationRequest | runtime.FlatBody<CreateScopedApiKeyOperationRequest, 'createScopedApiKeyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeySecretResponse>>;
757
822
  /**
758
- * Creates a scoped, expiring API key. Requires a dashboard/CLI session or an admin-scoped token. The secret is returned once. This dedicated path returns a typed 503 until scoped credential creation is activated.
823
+ * Creates a scoped, expiring API key. Requires a dashboard/CLI session or an admin-scoped token. The secret is returned once. An unknown field is a 400, so a misspelled scope never creates a full-access key. environmentIds takes your own environments and the org environments you can use. This dedicated path returns a typed 503 until scoped credential creation is activated.
759
824
  * Create a scoped API key
760
825
  */
761
826
  createScopedApiKey(requestParameters: CreateScopedApiKeyOperationRequest | runtime.FlatBody<CreateScopedApiKeyOperationRequest, 'createScopedApiKeyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeySecretResponse>;
@@ -913,6 +978,20 @@ export declare class BoatApi extends runtime.BaseAPI {
913
978
  * Remove one environment variable
914
979
  */
915
980
  deleteEnvironmentVar(requestParameters: DeleteEnvironmentVarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnvironmentItemChangeResponse>;
981
+ /**
982
+ * Creates request options for deleteFile without sending the request
983
+ */
984
+ deleteFileRequestOpts(requestParameters: DeleteFileRequest): Promise<runtime.RequestOpts>;
985
+ /**
986
+ * A directory needs `recursive=true`. A symlink is deleted itself, never its target. /home/user and /tmp themselves cannot be deleted. Needs `file.write`.
987
+ * Delete a file or directory in a sandbox
988
+ */
989
+ deleteFileRaw(requestParameters: DeleteFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileDeleteResponse>>;
990
+ /**
991
+ * A directory needs `recursive=true`. A symlink is deleted itself, never its target. /home/user and /tmp themselves cannot be deleted. Needs `file.write`.
992
+ * Delete a file or directory in a sandbox
993
+ */
994
+ deleteFile(requestParameters: DeleteFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileDeleteResponse>;
916
995
  /**
917
996
  * Creates request options for deleteNamedSnapshot without sending the request
918
997
  * @deprecated
@@ -1056,6 +1135,20 @@ export declare class BoatApi extends runtime.BaseAPI {
1056
1135
  * List boat events
1057
1136
  */
1058
1137
  events(requestParameters: EventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EventsResponse>;
1138
+ /**
1139
+ * Creates request options for findInFiles without sending the request
1140
+ */
1141
+ findInFilesRequestOpts(requestParameters: FindInFilesRequest): Promise<runtime.RequestOpts>;
1142
+ /**
1143
+ * Every line under `path` that contains `pattern`. `pattern` is plain text; with `regex=true` it is an extended regular expression. Binary files are skipped and symlinks are not followed. Needs `file.read`.
1144
+ * Find text in sandbox files
1145
+ */
1146
+ findInFilesRaw(requestParameters: FindInFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileFindResponse>>;
1147
+ /**
1148
+ * Every line under `path` that contains `pattern`. `pattern` is plain text; with `regex=true` it is an extended regular expression. Binary files are skipped and symlinks are not followed. Needs `file.read`.
1149
+ * Find text in sandbox files
1150
+ */
1151
+ findInFiles(requestParameters: FindInFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileFindResponse>;
1059
1152
  /**
1060
1153
  * Creates request options for fork without sending the request
1061
1154
  */
@@ -1152,6 +1245,20 @@ export declare class BoatApi extends runtime.BaseAPI {
1152
1245
  * Get deletion operation
1153
1246
  */
1154
1247
  getDeletionOperation(requestParameters: GetDeletionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeletionOperationResponse>;
1248
+ /**
1249
+ * Creates request options for getFileInfo without sending the request
1250
+ */
1251
+ getFileInfoRequestOpts(requestParameters: GetFileInfoRequest): Promise<runtime.RequestOpts>;
1252
+ /**
1253
+ * Size, permission bits, type and modification time. Needs `file.read`.
1254
+ * Get file or directory details in a sandbox
1255
+ */
1256
+ getFileInfoRaw(requestParameters: GetFileInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileInfoResponse>>;
1257
+ /**
1258
+ * Size, permission bits, type and modification time. Needs `file.read`.
1259
+ * Get file or directory details in a sandbox
1260
+ */
1261
+ getFileInfo(requestParameters: GetFileInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileInfoResponse>;
1155
1262
  /**
1156
1263
  * Creates request options for getLatestSandboxSnapshot without sending the request
1157
1264
  */
@@ -1324,12 +1431,12 @@ export declare class BoatApi extends runtime.BaseAPI {
1324
1431
  */
1325
1432
  limitsRequestOpts(requestParameters: LimitsRequest): Promise<runtime.RequestOpts>;
1326
1433
  /**
1327
- * Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
1434
+ * Check remaining machine starts, included VM time, the wallet, overage prices, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
1328
1435
  * Get Boat limits
1329
1436
  */
1330
1437
  limitsRaw(requestParameters: LimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LimitsResponse>>;
1331
1438
  /**
1332
- * Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
1439
+ * Check remaining machine starts, included VM time, the wallet, overage prices, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
1333
1440
  * Get Boat limits
1334
1441
  */
1335
1442
  limits(requestParameters?: LimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LimitsResponse>;
@@ -1361,6 +1468,20 @@ export declare class BoatApi extends runtime.BaseAPI {
1361
1468
  * List credential profiles
1362
1469
  */
1363
1470
  listCredentialProfiles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileListResponse>;
1471
+ /**
1472
+ * Creates request options for listFiles without sending the request
1473
+ */
1474
+ listFilesRequestOpts(requestParameters: ListFilesRequest): Promise<runtime.RequestOpts>;
1475
+ /**
1476
+ * One level, sorted by name. A symlink is listed as a symlink, not followed. Defaults to /home/user. Needs `file.read`.
1477
+ * List a directory in a sandbox
1478
+ */
1479
+ listFilesRaw(requestParameters: ListFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileListResponse>>;
1480
+ /**
1481
+ * One level, sorted by name. A symlink is listed as a symlink, not followed. Defaults to /home/user. Needs `file.read`.
1482
+ * List a directory in a sandbox
1483
+ */
1484
+ listFiles(requestParameters: ListFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileListResponse>;
1364
1485
  /**
1365
1486
  * Creates request options for listNamedSnapshots without sending the request
1366
1487
  * @deprecated
@@ -1476,6 +1597,20 @@ export declare class BoatApi extends runtime.BaseAPI {
1476
1597
  * Get current Boat user
1477
1598
  */
1478
1599
  me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeResponse>;
1600
+ /**
1601
+ * Creates request options for moveFile without sending the request
1602
+ */
1603
+ moveFileRequestOpts(input: MoveFileRequest | runtime.FlatBody<MoveFileRequest, 'fileMoveRequest'>): Promise<runtime.RequestOpts>;
1604
+ /**
1605
+ * Works across /home/user and /tmp. A symlink is moved itself, never its target. Needs `file.write`.
1606
+ * Move or rename a file or directory in a sandbox
1607
+ */
1608
+ moveFileRaw(requestParameters: MoveFileRequest | runtime.FlatBody<MoveFileRequest, 'fileMoveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileMoveResponse>>;
1609
+ /**
1610
+ * Works across /home/user and /tmp. A symlink is moved itself, never its target. Needs `file.write`.
1611
+ * Move or rename a file or directory in a sandbox
1612
+ */
1613
+ moveFile(requestParameters: MoveFileRequest | runtime.FlatBody<MoveFileRequest, 'fileMoveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileMoveResponse>;
1479
1614
  /**
1480
1615
  * Creates request options for processes without sending the request
1481
1616
  */
@@ -1523,12 +1658,12 @@ export declare class BoatApi extends runtime.BaseAPI {
1523
1658
  */
1524
1659
  readFileRequestOpts(requestParameters: ReadFileRequest): Promise<runtime.RequestOpts>;
1525
1660
  /**
1526
- * Files up to 5 MiB. For a larger file, use `POST /sandboxes/{sandboxId}/files/download-url`.
1661
+ * Files up to 5 MiB. For a larger file, use `POST /sandboxes/{sandboxId}/files/download-url`. On a sandbox that is still starting, the call waits until it is ready (up to 60 s, like a command), so it reads the sandbox\'s own disk and never the machine\'s stock one.
1527
1662
  * Read a file from a sandbox
1528
1663
  */
1529
1664
  readFileRaw(requestParameters: ReadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileReadResponse>>;
1530
1665
  /**
1531
- * Files up to 5 MiB. For a larger file, use `POST /sandboxes/{sandboxId}/files/download-url`.
1666
+ * Files up to 5 MiB. For a larger file, use `POST /sandboxes/{sandboxId}/files/download-url`. On a sandbox that is still starting, the call waits until it is ready (up to 60 s, like a command), so it reads the sandbox\'s own disk and never the machine\'s stock one.
1532
1667
  * Read a file from a sandbox
1533
1668
  */
1534
1669
  readFile(requestParameters: ReadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileReadResponse>;
@@ -1546,6 +1681,20 @@ export declare class BoatApi extends runtime.BaseAPI {
1546
1681
  * Recover a sandbox that stopped responding
1547
1682
  */
1548
1683
  recover(requestParameters: RecoverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Recover200Response>;
1684
+ /**
1685
+ * Creates request options for replaceInFiles without sending the request
1686
+ */
1687
+ replaceInFilesRequestOpts(input: ReplaceInFilesRequest | runtime.FlatBody<ReplaceInFilesRequest, 'fileReplaceRequest'>): Promise<runtime.RequestOpts>;
1688
+ /**
1689
+ * Replaces every occurrence of `pattern` with `newValue` in each file. Needs `file.write`.
1690
+ * Replace text in sandbox files
1691
+ */
1692
+ replaceInFilesRaw(requestParameters: ReplaceInFilesRequest | runtime.FlatBody<ReplaceInFilesRequest, 'fileReplaceRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileReplaceResponse>>;
1693
+ /**
1694
+ * Replaces every occurrence of `pattern` with `newValue` in each file. Needs `file.write`.
1695
+ * Replace text in sandbox files
1696
+ */
1697
+ replaceInFiles(requestParameters: ReplaceInFilesRequest | runtime.FlatBody<ReplaceInFilesRequest, 'fileReplaceRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileReplaceResponse>;
1549
1698
  /**
1550
1699
  * Creates request options for repos without sending the request
1551
1700
  */
@@ -1577,12 +1726,12 @@ export declare class BoatApi extends runtime.BaseAPI {
1577
1726
  */
1578
1727
  revokeApiKeyRequestOpts(requestParameters: RevokeApiKeyRequest): Promise<runtime.RequestOpts>;
1579
1728
  /**
1580
- * Revokes the key immediately. Requires a dashboard or CLI session.
1729
+ * Revokes the key immediately. Requires a dashboard or CLI session, or an admin-scoped key. A key revokes itself or a key it could create (same or fewer actions, sandboxes and environments, no later expiry).
1581
1730
  * Revoke an API key
1582
1731
  */
1583
1732
  revokeApiKeyRaw(requestParameters: RevokeApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyRevokeResponse>>;
1584
1733
  /**
1585
- * Revokes the key immediately. Requires a dashboard or CLI session.
1734
+ * Revokes the key immediately. Requires a dashboard or CLI session, or an admin-scoped key. A key revokes itself or a key it could create (same or fewer actions, sandboxes and environments, no later expiry).
1586
1735
  * Revoke an API key
1587
1736
  */
1588
1737
  revokeApiKey(requestParameters: RevokeApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyRevokeResponse>;
@@ -1605,12 +1754,12 @@ export declare class BoatApi extends runtime.BaseAPI {
1605
1754
  */
1606
1755
  rotateApiKeyRequestOpts(requestParameters: RotateApiKeyRequest): Promise<runtime.RequestOpts>;
1607
1756
  /**
1608
- * Replaces the raw secret without changing expiry or scope. Requires a dashboard or CLI session.
1757
+ * Replaces the raw secret without changing expiry or scope. Requires a dashboard or CLI session, or an admin-scoped key. A key rotates itself or a key it could create.
1609
1758
  * Rotate an API key
1610
1759
  */
1611
1760
  rotateApiKeyRaw(requestParameters: RotateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeySecretResponse>>;
1612
1761
  /**
1613
- * Replaces the raw secret without changing expiry or scope. Requires a dashboard or CLI session.
1762
+ * Replaces the raw secret without changing expiry or scope. Requires a dashboard or CLI session, or an admin-scoped key. A key rotates itself or a key it could create.
1614
1763
  * Rotate an API key
1615
1764
  */
1616
1765
  rotateApiKey(requestParameters: RotateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeySecretResponse>;
@@ -1673,6 +1822,20 @@ export declare class BoatApi extends runtime.BaseAPI {
1673
1822
  * Save a saved snapshot
1674
1823
  */
1675
1824
  saveSavedSnapshot(requestParameters: SaveSavedSnapshotRequest | runtime.FlatBody<SaveSavedSnapshotRequest, 'savedSnapshotSaveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavedSnapshotSavingResponse>;
1825
+ /**
1826
+ * Creates request options for searchFiles without sending the request
1827
+ */
1828
+ searchFilesRequestOpts(requestParameters: SearchFilesRequest): Promise<runtime.RequestOpts>;
1829
+ /**
1830
+ * Every file and directory under `path` whose name matches the glob `pattern` (for example `*.py`). Symlinks are not followed. Needs `file.read`.
1831
+ * Search files by name in a sandbox
1832
+ */
1833
+ searchFilesRaw(requestParameters: SearchFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileSearchResponse>>;
1834
+ /**
1835
+ * Every file and directory under `path` whose name matches the glob `pattern` (for example `*.py`). Symlinks are not followed. Needs `file.read`.
1836
+ * Search files by name in a sandbox
1837
+ */
1838
+ searchFiles(requestParameters: SearchFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileSearchResponse>;
1676
1839
  /**
1677
1840
  * Creates request options for secrets without sending the request
1678
1841
  */
@@ -1771,6 +1934,20 @@ export declare class BoatApi extends runtime.BaseAPI {
1771
1934
  * Set one environment variable
1772
1935
  */
1773
1936
  setEnvironmentVar(requestParameters: SetEnvironmentVarOperationRequest | runtime.FlatBody<SetEnvironmentVarOperationRequest, 'setEnvironmentVarRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnvironmentItemChangeResponse>;
1937
+ /**
1938
+ * Creates request options for setFilePermissions without sending the request
1939
+ */
1940
+ setFilePermissionsRequestOpts(input: SetFilePermissionsRequest | runtime.FlatBody<SetFilePermissionsRequest, 'filePermissionsRequest'>): Promise<runtime.RequestOpts>;
1941
+ /**
1942
+ * Sets the permission bits. Files belong to the sandbox user; the owner and group do not change. Needs `file.write`.
1943
+ * Set file permissions in a sandbox
1944
+ */
1945
+ setFilePermissionsRaw(requestParameters: SetFilePermissionsRequest | runtime.FlatBody<SetFilePermissionsRequest, 'filePermissionsRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileInfoResponse>>;
1946
+ /**
1947
+ * Sets the permission bits. Files belong to the sandbox user; the owner and group do not change. Needs `file.write`.
1948
+ * Set file permissions in a sandbox
1949
+ */
1950
+ setFilePermissions(requestParameters: SetFilePermissionsRequest | runtime.FlatBody<SetFilePermissionsRequest, 'filePermissionsRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileInfoResponse>;
1774
1951
  /**
1775
1952
  * Creates request options for setSandboxAiAccess without sending the request
1776
1953
  */
@@ -1914,12 +2091,12 @@ export declare class BoatApi extends runtime.BaseAPI {
1914
2091
  */
1915
2092
  updateAiProxyRequestOpts(input: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>): Promise<runtime.RequestOpts>;
1916
2093
  /**
1917
- * With the proxy on, sandboxes get placeholder keys and base URLs that point at Boat. Boat swaps in the real key on each request. Real keys never enter the sandbox. Running sandboxes switch at their next start. While on, the account pays $1 of Boat time for each UTC day, plus $1 per 1,000 proxied requests, charged to the wallet each sandbox bills. For an organization, only its owner can change the switch. Needs an API key with `account.admin`.
2094
+ * With the proxy on, sandboxes get placeholder keys and base URLs that point at Boat. Boat swaps in the real key on each request. Real keys never enter the sandbox. Running sandboxes switch at their next start. While on, the wallet of the account pays $1 for each UTC day, plus $1 per 1,000 proxied requests, charged to the wallet each sandbox bills. For an organization, only its owner can change the switch. Needs an API key with `account.admin`.
1918
2095
  * Turn the AI credentials proxy on or off
1919
2096
  */
1920
2097
  updateAiProxyRaw(requestParameters: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiProxySettings>>;
1921
2098
  /**
1922
- * With the proxy on, sandboxes get placeholder keys and base URLs that point at Boat. Boat swaps in the real key on each request. Real keys never enter the sandbox. Running sandboxes switch at their next start. While on, the account pays $1 of Boat time for each UTC day, plus $1 per 1,000 proxied requests, charged to the wallet each sandbox bills. For an organization, only its owner can change the switch. Needs an API key with `account.admin`.
2099
+ * With the proxy on, sandboxes get placeholder keys and base URLs that point at Boat. Boat swaps in the real key on each request. Real keys never enter the sandbox. Running sandboxes switch at their next start. While on, the wallet of the account pays $1 for each UTC day, plus $1 per 1,000 proxied requests, charged to the wallet each sandbox bills. For an organization, only its owner can change the switch. Needs an API key with `account.admin`.
1923
2100
  * Turn the AI credentials proxy on or off
1924
2101
  */
1925
2102
  updateAiProxy(requestParameters: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiProxySettings>;
@@ -2038,12 +2215,12 @@ export declare class BoatApi extends runtime.BaseAPI {
2038
2215
  */
2039
2216
  writeFileRequestOpts(input: WriteFileRequest | runtime.FlatBody<WriteFileRequest, 'fileWriteRequest'>): Promise<runtime.RequestOpts>;
2040
2217
  /**
2041
- * Files up to 5 MiB after decoding. For a larger file, use `POST /sandboxes/{sandboxId}/files/upload-url`.
2218
+ * Files up to 5 MiB after decoding. For a larger file, use `POST /sandboxes/{sandboxId}/files/upload-url`. On a sandbox that is still starting, the call waits until it is ready (up to 60 s, like a command): a sandbox\'s files are in place only once it is ready, so a write any earlier would not stay. A `200` always means the file is on the sandbox\'s disk.
2042
2219
  * Write a file in a sandbox
2043
2220
  */
2044
2221
  writeFileRaw(requestParameters: WriteFileRequest | runtime.FlatBody<WriteFileRequest, 'fileWriteRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileWriteResponse>>;
2045
2222
  /**
2046
- * Files up to 5 MiB after decoding. For a larger file, use `POST /sandboxes/{sandboxId}/files/upload-url`.
2223
+ * Files up to 5 MiB after decoding. For a larger file, use `POST /sandboxes/{sandboxId}/files/upload-url`. On a sandbox that is still starting, the call waits until it is ready (up to 60 s, like a command): a sandbox\'s files are in place only once it is ready, so a write any earlier would not stay. A `200` always means the file is on the sandbox\'s disk.
2047
2224
  * Write a file in a sandbox
2048
2225
  */
2049
2226
  writeFile(requestParameters: WriteFileRequest | runtime.FlatBody<WriteFileRequest, 'fileWriteRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileWriteResponse>;