rclone-openapi 1.0.19 → 1.0.21

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
@@ -1851,6 +1851,15 @@
1851
1851
  "$ref": "#/components/parameters/GlobalAsyncParam"
1852
1852
  }
1853
1853
  ],
1854
+ "requestBody": {
1855
+ "content": {
1856
+ "application/json": {
1857
+ "schema": {
1858
+ "$ref": "#/components/schemas/JobBatchRequest"
1859
+ }
1860
+ }
1861
+ }
1862
+ },
1854
1863
  "responses": {
1855
1864
  "200": {
1856
1865
  "$ref": "#/components/responses/JobBatchResponse"
@@ -2346,7 +2355,7 @@
2346
2355
  ],
2347
2356
  "responses": {
2348
2357
  "200": {
2349
- "$ref": "#/components/responses/EmptyObjectResponse"
2358
+ "$ref": "#/components/responses/SyncJobResponse"
2350
2359
  },
2351
2360
  "4XX": {
2352
2361
  "$ref": "#/components/responses/RcError"
@@ -2388,7 +2397,7 @@
2388
2397
  ],
2389
2398
  "responses": {
2390
2399
  "200": {
2391
- "$ref": "#/components/responses/EmptyObjectResponse"
2400
+ "$ref": "#/components/responses/SyncJobResponse"
2392
2401
  },
2393
2402
  "4XX": {
2394
2403
  "$ref": "#/components/responses/RcError"
@@ -2433,7 +2442,7 @@
2433
2442
  ],
2434
2443
  "responses": {
2435
2444
  "200": {
2436
- "$ref": "#/components/responses/EmptyObjectResponse"
2445
+ "$ref": "#/components/responses/SyncJobResponse"
2437
2446
  },
2438
2447
  "4XX": {
2439
2448
  "$ref": "#/components/responses/RcError"
@@ -2520,7 +2529,7 @@
2520
2529
  ],
2521
2530
  "responses": {
2522
2531
  "200": {
2523
- "$ref": "#/components/responses/EmptyObjectResponse"
2532
+ "$ref": "#/components/responses/SyncJobResponse"
2524
2533
  },
2525
2534
  "4XX": {
2526
2535
  "$ref": "#/components/responses/RcError"
@@ -5423,6 +5432,22 @@
5423
5432
  }
5424
5433
  }
5425
5434
  },
5435
+ "SyncJobResponse": {
5436
+ "description": "Response for sync operations, containing job ID if async.",
5437
+ "content": {
5438
+ "application/json": {
5439
+ "schema": {
5440
+ "type": "object",
5441
+ "properties": {
5442
+ "jobid": {
5443
+ "type": "integer",
5444
+ "description": "Job ID of the operation."
5445
+ }
5446
+ }
5447
+ }
5448
+ }
5449
+ }
5450
+ },
5426
5451
  "RcNoopResponse": {
5427
5452
  "description": "Echoes any supplied parameters, useful for testing RC connectivity.",
5428
5453
  "content": {
@@ -5696,6 +5721,14 @@
5696
5721
  "what": {
5697
5722
  "type": "string"
5698
5723
  },
5724
+ "started_at": {
5725
+ "type": "string",
5726
+ "description": "ISO8601 timestamp when the transfer started."
5727
+ },
5728
+ "completed_at": {
5729
+ "type": "string",
5730
+ "description": "ISO8601 timestamp when the transfer completed."
5731
+ },
5699
5732
  "timestamp": {
5700
5733
  "type": "integer"
5701
5734
  },
@@ -7748,6 +7781,36 @@
7748
7781
  }
7749
7782
  },
7750
7783
  "schemas": {
7784
+ "JobBatchRequest": {
7785
+ "type": "object",
7786
+ "properties": {
7787
+ "concurrency": {
7788
+ "type": "integer",
7789
+ "description": "Do this many commands concurrently. Defaults to --transfers if not set."
7790
+ },
7791
+ "inputs": {
7792
+ "type": "array",
7793
+ "description": "List of inputs to the commands with an extra _path parameter.",
7794
+ "items": {
7795
+ "type": "object",
7796
+ "required": [
7797
+ "_path"
7798
+ ],
7799
+ "properties": {
7800
+ "_path": {
7801
+ "type": "string",
7802
+ "description": "rc/path"
7803
+ }
7804
+ },
7805
+ "additionalProperties": true
7806
+ }
7807
+ },
7808
+ "_async": {
7809
+ "type": "boolean",
7810
+ "description": "Run the command asynchronously. Returns a job id immediately."
7811
+ }
7812
+ }
7813
+ },
7751
7814
  "RcError": {
7752
7815
  "type": "object",
7753
7816
  "required": [
package/openapi.yaml CHANGED
@@ -1027,6 +1027,11 @@ paths:
1027
1027
  - $ref: "#/components/parameters/Job_BatchPostConcurrencyParam"
1028
1028
  - $ref: "#/components/parameters/Job_BatchPostInputsParam"
1029
1029
  - $ref: "#/components/parameters/GlobalAsyncParam"
1030
+ requestBody:
1031
+ content:
1032
+ application/json:
1033
+ schema:
1034
+ $ref: "#/components/schemas/JobBatchRequest"
1030
1035
  responses:
1031
1036
  "200":
1032
1037
  $ref: "#/components/responses/JobBatchResponse"
@@ -1287,7 +1292,7 @@ paths:
1287
1292
  - $ref: "#/components/parameters/GlobalAsyncParam"
1288
1293
  responses:
1289
1294
  "200":
1290
- $ref: "#/components/responses/EmptyObjectResponse"
1295
+ $ref: "#/components/responses/SyncJobResponse"
1291
1296
  "4XX":
1292
1297
  $ref: "#/components/responses/RcError"
1293
1298
  "5XX":
@@ -1308,7 +1313,7 @@ paths:
1308
1313
  - $ref: "#/components/parameters/GlobalAsyncParam"
1309
1314
  responses:
1310
1315
  "200":
1311
- $ref: "#/components/responses/EmptyObjectResponse"
1316
+ $ref: "#/components/responses/SyncJobResponse"
1312
1317
  "4XX":
1313
1318
  $ref: "#/components/responses/RcError"
1314
1319
  "5XX":
@@ -1330,7 +1335,7 @@ paths:
1330
1335
  - $ref: "#/components/parameters/GlobalAsyncParam"
1331
1336
  responses:
1332
1337
  "200":
1333
- $ref: "#/components/responses/EmptyObjectResponse"
1338
+ $ref: "#/components/responses/SyncJobResponse"
1334
1339
  "4XX":
1335
1340
  $ref: "#/components/responses/RcError"
1336
1341
  "5XX":
@@ -1366,7 +1371,7 @@ paths:
1366
1371
  - $ref: "#/components/parameters/GlobalAsyncParam"
1367
1372
  responses:
1368
1373
  "200":
1369
- $ref: "#/components/responses/EmptyObjectResponse"
1374
+ $ref: "#/components/responses/SyncJobResponse"
1370
1375
  "4XX":
1371
1376
  $ref: "#/components/responses/RcError"
1372
1377
  "5XX":
@@ -3141,6 +3146,16 @@ components:
3141
3146
  schema:
3142
3147
  type: object
3143
3148
  properties: {}
3149
+ SyncJobResponse:
3150
+ description: "Response for sync operations, containing job ID if async."
3151
+ content:
3152
+ application/json:
3153
+ schema:
3154
+ type: object
3155
+ properties:
3156
+ jobid:
3157
+ type: integer
3158
+ description: "Job ID of the operation."
3144
3159
  RcNoopResponse:
3145
3160
  description: "Echoes any supplied parameters, useful for testing RC connectivity."
3146
3161
  content:
@@ -3327,6 +3342,12 @@ components:
3327
3342
  type: boolean
3328
3343
  what:
3329
3344
  type: string
3345
+ started_at:
3346
+ type: string
3347
+ description: "ISO8601 timestamp when the transfer started."
3348
+ completed_at:
3349
+ type: string
3350
+ description: "ISO8601 timestamp when the transfer completed."
3330
3351
  timestamp:
3331
3352
  type: integer
3332
3353
  error:
@@ -4723,6 +4744,27 @@ components:
4723
4744
  required:
4724
4745
  - loadedTestPlugins
4725
4746
  schemas:
4747
+ JobBatchRequest:
4748
+ type: object
4749
+ properties:
4750
+ concurrency:
4751
+ type: integer
4752
+ description: "Do this many commands concurrently. Defaults to --transfers if not set."
4753
+ inputs:
4754
+ type: array
4755
+ description: "List of inputs to the commands with an extra _path parameter."
4756
+ items:
4757
+ type: object
4758
+ required:
4759
+ - _path
4760
+ properties:
4761
+ _path:
4762
+ type: string
4763
+ description: "rc/path"
4764
+ additionalProperties: true
4765
+ _async:
4766
+ type: boolean
4767
+ description: "Run the command asynchronously. Returns a job id immediately."
4726
4768
  RcError:
4727
4769
  type: object
4728
4770
  required:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rclone-openapi",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "keywords": [
5
5
  "rclone",
6
6
  "openapi",
package/types.d.ts CHANGED
@@ -1904,6 +1904,19 @@ export interface paths {
1904
1904
  export type webhooks = Record<string, never>;
1905
1905
  export interface components {
1906
1906
  schemas: {
1907
+ JobBatchRequest: {
1908
+ /** @description Do this many commands concurrently. Defaults to --transfers if not set. */
1909
+ concurrency?: number;
1910
+ /** @description List of inputs to the commands with an extra _path parameter. */
1911
+ inputs?: ({
1912
+ /** @description rc/path */
1913
+ _path: string;
1914
+ } & {
1915
+ [key: string]: unknown;
1916
+ })[];
1917
+ /** @description Run the command asynchronously. Returns a job id immediately. */
1918
+ _async?: boolean;
1919
+ };
1907
1920
  RcError: {
1908
1921
  error: string;
1909
1922
  status: number;
@@ -2089,6 +2102,18 @@ export interface components {
2089
2102
  "application/json": Record<string, never>;
2090
2103
  };
2091
2104
  };
2105
+ /** @description Response for sync operations, containing job ID if async. */
2106
+ SyncJobResponse: {
2107
+ headers: {
2108
+ [name: string]: unknown;
2109
+ };
2110
+ content: {
2111
+ "application/json": {
2112
+ /** @description Job ID of the operation. */
2113
+ jobid?: number;
2114
+ };
2115
+ };
2116
+ };
2092
2117
  /** @description Echoes any supplied parameters, useful for testing RC connectivity. */
2093
2118
  RcNoopResponse: {
2094
2119
  headers: {
@@ -2224,6 +2249,10 @@ export interface components {
2224
2249
  bytes?: number;
2225
2250
  checked?: boolean;
2226
2251
  what?: string;
2252
+ /** @description ISO8601 timestamp when the transfer started. */
2253
+ started_at?: string;
2254
+ /** @description ISO8601 timestamp when the transfer completed. */
2255
+ completed_at?: string;
2227
2256
  timestamp?: number;
2228
2257
  error?: string;
2229
2258
  jobid?: number;
@@ -4843,7 +4872,11 @@ export interface operations {
4843
4872
  path?: never;
4844
4873
  cookie?: never;
4845
4874
  };
4846
- requestBody?: never;
4875
+ requestBody?: {
4876
+ content: {
4877
+ "application/json": components["schemas"]["JobBatchRequest"];
4878
+ };
4879
+ };
4847
4880
  responses: {
4848
4881
  200: components["responses"]["JobBatchResponse"];
4849
4882
  "4XX": components["responses"]["RcError"];
@@ -5185,7 +5218,7 @@ export interface operations {
5185
5218
  };
5186
5219
  requestBody?: never;
5187
5220
  responses: {
5188
- 200: components["responses"]["EmptyObjectResponse"];
5221
+ 200: components["responses"]["SyncJobResponse"];
5189
5222
  "4XX": components["responses"]["RcError"];
5190
5223
  "5XX": components["responses"]["RcError"];
5191
5224
  };
@@ -5214,7 +5247,7 @@ export interface operations {
5214
5247
  };
5215
5248
  requestBody?: never;
5216
5249
  responses: {
5217
- 200: components["responses"]["EmptyObjectResponse"];
5250
+ 200: components["responses"]["SyncJobResponse"];
5218
5251
  "4XX": components["responses"]["RcError"];
5219
5252
  "5XX": components["responses"]["RcError"];
5220
5253
  };
@@ -5245,7 +5278,7 @@ export interface operations {
5245
5278
  };
5246
5279
  requestBody?: never;
5247
5280
  responses: {
5248
- 200: components["responses"]["EmptyObjectResponse"];
5281
+ 200: components["responses"]["SyncJobResponse"];
5249
5282
  "4XX": components["responses"]["RcError"];
5250
5283
  "5XX": components["responses"]["RcError"];
5251
5284
  };
@@ -5304,7 +5337,7 @@ export interface operations {
5304
5337
  };
5305
5338
  requestBody?: never;
5306
5339
  responses: {
5307
- 200: components["responses"]["EmptyObjectResponse"];
5340
+ 200: components["responses"]["SyncJobResponse"];
5308
5341
  "4XX": components["responses"]["RcError"];
5309
5342
  "5XX": components["responses"]["RcError"];
5310
5343
  };