rclone-openapi 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/openapi.json CHANGED
@@ -1835,6 +1835,36 @@
1835
1835
  "operationId": "coreStats"
1836
1836
  }
1837
1837
  },
1838
+ "/job/batch": {
1839
+ "post": {
1840
+ "summary": "Run batch of commands",
1841
+ "description": "Run a batch of rclone rc commands concurrently.",
1842
+ "tags": [],
1843
+ "parameters": [
1844
+ {
1845
+ "$ref": "#/components/parameters/Job_BatchPostConcurrencyParam"
1846
+ },
1847
+ {
1848
+ "$ref": "#/components/parameters/Job_BatchPostInputsParam"
1849
+ },
1850
+ {
1851
+ "$ref": "#/components/parameters/GlobalAsyncParam"
1852
+ }
1853
+ ],
1854
+ "responses": {
1855
+ "200": {
1856
+ "$ref": "#/components/responses/JobBatchResponse"
1857
+ },
1858
+ "4XX": {
1859
+ "$ref": "#/components/responses/RcError"
1860
+ },
1861
+ "5XX": {
1862
+ "$ref": "#/components/responses/RcError"
1863
+ }
1864
+ },
1865
+ "operationId": "jobBatch"
1866
+ }
1867
+ },
1838
1868
  "/job/list": {
1839
1869
  "post": {
1840
1870
  "summary": "List jobs",
@@ -3301,6 +3331,35 @@
3301
3331
  "style": "form",
3302
3332
  "explode": true
3303
3333
  },
3334
+ "Job_BatchPostConcurrencyParam": {
3335
+ "name": "concurrency",
3336
+ "in": "query",
3337
+ "description": "Do this many commands concurrently. Defaults to --transfers if not set.",
3338
+ "schema": {
3339
+ "type": "integer"
3340
+ }
3341
+ },
3342
+ "Job_BatchPostInputsParam": {
3343
+ "name": "inputs",
3344
+ "in": "query",
3345
+ "description": "List of inputs to the commands with an extra _path parameter.",
3346
+ "schema": {
3347
+ "type": "array",
3348
+ "items": {
3349
+ "type": "object",
3350
+ "required": [
3351
+ "_path"
3352
+ ],
3353
+ "properties": {
3354
+ "_path": {
3355
+ "type": "string",
3356
+ "description": "rc/path"
3357
+ }
3358
+ },
3359
+ "additionalProperties": true
3360
+ }
3361
+ }
3362
+ },
3304
3363
  "Operations_CleanupPostFsParam": {
3305
3364
  "name": "fs",
3306
3365
  "in": "query",
@@ -3956,7 +4015,7 @@
3956
4015
  "required": true
3957
4016
  },
3958
4017
  "Config_UnlockPostConfigPasswordParam": {
3959
- "name": "config_password",
4018
+ "name": "configPassword",
3960
4019
  "in": "query",
3961
4020
  "description": "Password used to unlock an encrypted config file.",
3962
4021
  "schema": {
@@ -5326,6 +5385,30 @@
5326
5385
  }
5327
5386
  }
5328
5387
  },
5388
+ "JobBatchResponse": {
5389
+ "description": "Results of the batch job execution.",
5390
+ "content": {
5391
+ "application/json": {
5392
+ "schema": {
5393
+ "type": "object",
5394
+ "properties": {
5395
+ "executeId": {
5396
+ "type": "string",
5397
+ "description": "Identifier for this rclone process."
5398
+ },
5399
+ "jobid": {
5400
+ "type": "integer",
5401
+ "description": "ID of the async job."
5402
+ }
5403
+ },
5404
+ "required": [
5405
+ "executeId",
5406
+ "jobid"
5407
+ ]
5408
+ }
5409
+ }
5410
+ }
5411
+ },
5329
5412
  "EmptyResponse": {
5330
5413
  "description": "Request succeeded with no response body."
5331
5414
  },
@@ -5973,6 +6056,18 @@
5973
6056
  "type": "string",
5974
6057
  "description": "Go toolchain version used to build rclone."
5975
6058
  },
6059
+ "osVersion": {
6060
+ "type": "string",
6061
+ "description": "OS Version (e.g. ubuntu 24.04 (64 bit))."
6062
+ },
6063
+ "osKernel": {
6064
+ "type": "string",
6065
+ "description": "OS Kernel version (e.g. 6.8.0-86-generic (x86_64))."
6066
+ },
6067
+ "osArch": {
6068
+ "type": "string",
6069
+ "description": "CPU architecture in use (e.g. arm64 (ARMv8 compatible))."
6070
+ },
5976
6071
  "linking": {
5977
6072
  "type": "string",
5978
6073
  "description": "Linking mode for the binary (static or dynamic)."
@@ -6126,11 +6221,27 @@
6126
6221
  "type": "number"
6127
6222
  },
6128
6223
  "description": "Job IDs suitable for use with `job/status` and `job/stop`."
6224
+ },
6225
+ "runningIds": {
6226
+ "type": "array",
6227
+ "items": {
6228
+ "type": "integer"
6229
+ },
6230
+ "description": "Array of integer job ids that are running."
6231
+ },
6232
+ "finishedIds": {
6233
+ "type": "array",
6234
+ "items": {
6235
+ "type": "integer"
6236
+ },
6237
+ "description": "Array of integer job ids that are finished."
6129
6238
  }
6130
6239
  },
6131
6240
  "required": [
6132
6241
  "executeId",
6133
- "jobids"
6242
+ "jobids",
6243
+ "runningIds",
6244
+ "finishedIds"
6134
6245
  ]
6135
6246
  }
6136
6247
  }
@@ -6153,7 +6264,7 @@
6153
6264
  },
6154
6265
  "endTime": {
6155
6266
  "type": "string",
6156
- "description": "Timestamp when the job finished."
6267
+ "description": "Timestamp when the job finished. (e.g. '2025-12-26T18:50:20.528746884+01:00')"
6157
6268
  },
6158
6269
  "error": {
6159
6270
  "type": "string",
@@ -6165,7 +6276,7 @@
6165
6276
  },
6166
6277
  "startTime": {
6167
6278
  "type": "string",
6168
- "description": "Timestamp when the job started."
6279
+ "description": "Timestamp when the job started. (e.g. '2025-12-24T18:50:20.5281314+01:00')"
6169
6280
  },
6170
6281
  "success": {
6171
6282
  "type": "boolean",
package/openapi.yaml CHANGED
@@ -1018,6 +1018,23 @@ paths:
1018
1018
  "5XX":
1019
1019
  $ref: "#/components/responses/RcError"
1020
1020
  operationId: coreStats
1021
+ /job/batch:
1022
+ post:
1023
+ summary: "Run batch of commands"
1024
+ description: "Run a batch of rclone rc commands concurrently."
1025
+ tags: []
1026
+ parameters:
1027
+ - $ref: "#/components/parameters/Job_BatchPostConcurrencyParam"
1028
+ - $ref: "#/components/parameters/Job_BatchPostInputsParam"
1029
+ - $ref: "#/components/parameters/GlobalAsyncParam"
1030
+ responses:
1031
+ "200":
1032
+ $ref: "#/components/responses/JobBatchResponse"
1033
+ "4XX":
1034
+ $ref: "#/components/responses/RcError"
1035
+ "5XX":
1036
+ $ref: "#/components/responses/RcError"
1037
+ operationId: jobBatch
1021
1038
  /job/list:
1022
1039
  post:
1023
1040
  summary: "List jobs"
@@ -1803,6 +1820,27 @@ components:
1803
1820
  type: object
1804
1821
  style: form
1805
1822
  explode: true
1823
+ Job_BatchPostConcurrencyParam:
1824
+ name: concurrency
1825
+ in: query
1826
+ description: "Do this many commands concurrently. Defaults to --transfers if not set."
1827
+ schema:
1828
+ type: integer
1829
+ Job_BatchPostInputsParam:
1830
+ name: inputs
1831
+ in: query
1832
+ description: "List of inputs to the commands with an extra _path parameter."
1833
+ schema:
1834
+ type: array
1835
+ items:
1836
+ type: object
1837
+ required:
1838
+ - _path
1839
+ properties:
1840
+ _path:
1841
+ type: string
1842
+ description: "rc/path"
1843
+ additionalProperties: true
1806
1844
  Operations_CleanupPostFsParam:
1807
1845
  name: fs
1808
1846
  in: query
@@ -2308,7 +2346,7 @@ components:
2308
2346
  type: string
2309
2347
  required: true
2310
2348
  Config_UnlockPostConfigPasswordParam:
2311
- name: config_password
2349
+ name: configPassword
2312
2350
  in: query
2313
2351
  description: "Password used to unlock an encrypted config file."
2314
2352
  schema:
@@ -3078,6 +3116,22 @@ components:
3078
3116
  application/json:
3079
3117
  schema:
3080
3118
  $ref: "#/components/schemas/RcError"
3119
+ JobBatchResponse:
3120
+ description: "Results of the batch job execution."
3121
+ content:
3122
+ application/json:
3123
+ schema:
3124
+ type: object
3125
+ properties:
3126
+ executeId:
3127
+ type: string
3128
+ description: "Identifier for this rclone process."
3129
+ jobid:
3130
+ type: integer
3131
+ description: "ID of the async job."
3132
+ required:
3133
+ - executeId
3134
+ - jobid
3081
3135
  EmptyResponse:
3082
3136
  description: "Request succeeded with no response body."
3083
3137
  EmptyObjectResponse:
@@ -3503,6 +3557,15 @@ components:
3503
3557
  goVersion:
3504
3558
  type: string
3505
3559
  description: "Go toolchain version used to build rclone."
3560
+ osVersion:
3561
+ type: string
3562
+ description: "OS Version (e.g. ubuntu 24.04 (64 bit))."
3563
+ osKernel:
3564
+ type: string
3565
+ description: "OS Kernel version (e.g. 6.8.0-86-generic (x86_64))."
3566
+ osArch:
3567
+ type: string
3568
+ description: "CPU architecture in use (e.g. arm64 (ARMv8 compatible))."
3506
3569
  linking:
3507
3570
  type: string
3508
3571
  description: "Linking mode for the binary (static or dynamic)."
@@ -3615,9 +3678,21 @@ components:
3615
3678
  items:
3616
3679
  type: number
3617
3680
  description: "Job IDs suitable for use with `job/status` and `job/stop`."
3681
+ runningIds:
3682
+ type: array
3683
+ items:
3684
+ type: integer
3685
+ description: "Array of integer job ids that are running."
3686
+ finishedIds:
3687
+ type: array
3688
+ items:
3689
+ type: integer
3690
+ description: "Array of integer job ids that are finished."
3618
3691
  required:
3619
3692
  - executeId
3620
3693
  - jobids
3694
+ - runningIds
3695
+ - finishedIds
3621
3696
  JobStatusResponse:
3622
3697
  description: "Detailed status for a background job, including timing, success flag, and optional output."
3623
3698
  content:
@@ -3633,7 +3708,7 @@ components:
3633
3708
  description: "Execution time in seconds."
3634
3709
  endTime:
3635
3710
  type: string
3636
- description: "Timestamp when the job finished."
3711
+ description: "Timestamp when the job finished. (e.g. '2025-12-26T18:50:20.528746884+01:00')"
3637
3712
  error:
3638
3713
  type: string
3639
3714
  description: "Error message, or empty string on success."
@@ -3642,7 +3717,7 @@ components:
3642
3717
  description: "Job identifier."
3643
3718
  startTime:
3644
3719
  type: string
3645
- description: "Timestamp when the job started."
3720
+ description: "Timestamp when the job started. (e.g. '2025-12-24T18:50:20.5281314+01:00')"
3646
3721
  success:
3647
3722
  type: boolean
3648
3723
  description: "True if the job completed successfully."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rclone-openapi",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "keywords": [
5
5
  "rclone",
6
6
  "openapi",
package/types.d.ts CHANGED
@@ -1100,6 +1100,26 @@ export interface paths {
1100
1100
  patch?: never;
1101
1101
  trace?: never;
1102
1102
  };
1103
+ "/job/batch": {
1104
+ parameters: {
1105
+ query?: never;
1106
+ header?: never;
1107
+ path?: never;
1108
+ cookie?: never;
1109
+ };
1110
+ get?: never;
1111
+ put?: never;
1112
+ /**
1113
+ * Run batch of commands
1114
+ * @description Run a batch of rclone rc commands concurrently.
1115
+ */
1116
+ post: operations["jobBatch"];
1117
+ delete?: never;
1118
+ options?: never;
1119
+ head?: never;
1120
+ patch?: never;
1121
+ trace?: never;
1122
+ };
1103
1123
  "/job/list": {
1104
1124
  parameters: {
1105
1125
  query?: never;
@@ -2039,6 +2059,20 @@ export interface components {
2039
2059
  "application/json": components["schemas"]["RcError"];
2040
2060
  };
2041
2061
  };
2062
+ /** @description Results of the batch job execution. */
2063
+ JobBatchResponse: {
2064
+ headers: {
2065
+ [name: string]: unknown;
2066
+ };
2067
+ content: {
2068
+ "application/json": {
2069
+ /** @description Identifier for this rclone process. */
2070
+ executeId: string;
2071
+ /** @description ID of the async job. */
2072
+ jobid: number;
2073
+ };
2074
+ };
2075
+ };
2042
2076
  /** @description Request succeeded with no response body. */
2043
2077
  EmptyResponse: {
2044
2078
  headers: {
@@ -2389,6 +2423,12 @@ export interface components {
2389
2423
  isBeta: boolean;
2390
2424
  /** @description Go toolchain version used to build rclone. */
2391
2425
  goVersion: string;
2426
+ /** @description OS Version (e.g. ubuntu 24.04 (64 bit)). */
2427
+ osVersion?: string;
2428
+ /** @description OS Kernel version (e.g. 6.8.0-86-generic (x86_64)). */
2429
+ osKernel?: string;
2430
+ /** @description CPU architecture in use (e.g. arm64 (ARMv8 compatible)). */
2431
+ osArch?: string;
2392
2432
  /** @description Linking mode for the binary (static or dynamic). */
2393
2433
  linking: string;
2394
2434
  /** @description Space separated Go build tags, if any. */
@@ -2442,6 +2482,10 @@ export interface components {
2442
2482
  executeId: string;
2443
2483
  /** @description Job IDs suitable for use with `job/status` and `job/stop`. */
2444
2484
  jobids: number[];
2485
+ /** @description Array of integer job ids that are running. */
2486
+ runningIds: number[];
2487
+ /** @description Array of integer job ids that are finished. */
2488
+ finishedIds: number[];
2445
2489
  };
2446
2490
  };
2447
2491
  };
@@ -2456,13 +2500,13 @@ export interface components {
2456
2500
  finished: boolean;
2457
2501
  /** @description Execution time in seconds. */
2458
2502
  duration: number;
2459
- /** @description Timestamp when the job finished. */
2503
+ /** @description Timestamp when the job finished. (e.g. '2025-12-26T18:50:20.528746884+01:00') */
2460
2504
  endTime: string;
2461
2505
  /** @description Error message, or empty string on success. */
2462
2506
  error: string;
2463
2507
  /** @description Job identifier. */
2464
2508
  id: number;
2465
- /** @description Timestamp when the job started. */
2509
+ /** @description Timestamp when the job started. (e.g. '2025-12-24T18:50:20.5281314+01:00') */
2466
2510
  startTime: string;
2467
2511
  /** @description True if the job completed successfully. */
2468
2512
  success: boolean;
@@ -3048,6 +3092,15 @@ export interface components {
3048
3092
  GlobalGroupParam: string;
3049
3093
  /** @description Additional arbitrary parameters allowed. */
3050
3094
  Rc_NoopPostAdditionalParam: Record<string, never>;
3095
+ /** @description Do this many commands concurrently. Defaults to --transfers if not set. */
3096
+ Job_BatchPostConcurrencyParam: number;
3097
+ /** @description List of inputs to the commands with an extra _path parameter. */
3098
+ Job_BatchPostInputsParam: ({
3099
+ /** @description rc/path */
3100
+ _path: string;
3101
+ } & {
3102
+ [key: string]: unknown;
3103
+ })[];
3051
3104
  /** @description Remote name or path to clean up, for example `drive:`. */
3052
3105
  Operations_CleanupPostFsParam: string;
3053
3106
  /** @description Source remote name or path, such as `drive:` or `/` for the local filesystem. */
@@ -4692,7 +4745,7 @@ export interface operations {
4692
4745
  parameters: {
4693
4746
  query: {
4694
4747
  /** @description Password used to unlock an encrypted config file. */
4695
- config_password: components["parameters"]["Config_UnlockPostConfigPasswordParam"];
4748
+ configPassword: components["parameters"]["Config_UnlockPostConfigPasswordParam"];
4696
4749
  /** @description Assign the request to a custom stats group. */
4697
4750
  _group?: components["parameters"]["GlobalGroupParam"];
4698
4751
  /** @description Run the command asynchronously. Returns a job id immediately. */
@@ -4776,6 +4829,27 @@ export interface operations {
4776
4829
  "5XX": components["responses"]["RcError"];
4777
4830
  };
4778
4831
  };
4832
+ jobBatch: {
4833
+ parameters: {
4834
+ query?: {
4835
+ /** @description Do this many commands concurrently. Defaults to --transfers if not set. */
4836
+ concurrency?: components["parameters"]["Job_BatchPostConcurrencyParam"];
4837
+ /** @description List of inputs to the commands with an extra _path parameter. */
4838
+ inputs?: components["parameters"]["Job_BatchPostInputsParam"];
4839
+ /** @description Run the command asynchronously. Returns a job id immediately. */
4840
+ _async?: components["parameters"]["GlobalAsyncParam"];
4841
+ };
4842
+ header?: never;
4843
+ path?: never;
4844
+ cookie?: never;
4845
+ };
4846
+ requestBody?: never;
4847
+ responses: {
4848
+ 200: components["responses"]["JobBatchResponse"];
4849
+ "4XX": components["responses"]["RcError"];
4850
+ "5XX": components["responses"]["RcError"];
4851
+ };
4852
+ };
4779
4853
  jobList: {
4780
4854
  parameters: {
4781
4855
  query?: {