rclone-openapi 1.0.18 → 1.0.20

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"
@@ -5392,14 +5401,19 @@
5392
5401
  "schema": {
5393
5402
  "type": "object",
5394
5403
  "properties": {
5395
- "results": {
5396
- "type": "array",
5397
- "items": {
5398
- "type": "object",
5399
- "additionalProperties": true
5400
- }
5404
+ "executeId": {
5405
+ "type": "string",
5406
+ "description": "Identifier for this rclone process."
5407
+ },
5408
+ "jobid": {
5409
+ "type": "integer",
5410
+ "description": "ID of the async job."
5401
5411
  }
5402
- }
5412
+ },
5413
+ "required": [
5414
+ "executeId",
5415
+ "jobid"
5416
+ ]
5403
5417
  }
5404
5418
  }
5405
5419
  }
@@ -7743,6 +7757,36 @@
7743
7757
  }
7744
7758
  },
7745
7759
  "schemas": {
7760
+ "JobBatchRequest": {
7761
+ "type": "object",
7762
+ "properties": {
7763
+ "concurrency": {
7764
+ "type": "integer",
7765
+ "description": "Do this many commands concurrently. Defaults to --transfers if not set."
7766
+ },
7767
+ "inputs": {
7768
+ "type": "array",
7769
+ "description": "List of inputs to the commands with an extra _path parameter.",
7770
+ "items": {
7771
+ "type": "object",
7772
+ "required": [
7773
+ "_path"
7774
+ ],
7775
+ "properties": {
7776
+ "_path": {
7777
+ "type": "string",
7778
+ "description": "rc/path"
7779
+ }
7780
+ },
7781
+ "additionalProperties": true
7782
+ }
7783
+ },
7784
+ "_async": {
7785
+ "type": "boolean",
7786
+ "description": "Run the command asynchronously. Returns a job id immediately."
7787
+ }
7788
+ }
7789
+ },
7746
7790
  "RcError": {
7747
7791
  "type": "object",
7748
7792
  "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"
@@ -3123,11 +3128,15 @@ components:
3123
3128
  schema:
3124
3129
  type: object
3125
3130
  properties:
3126
- results:
3127
- type: array
3128
- items:
3129
- type: object
3130
- additionalProperties: true
3131
+ executeId:
3132
+ type: string
3133
+ description: "Identifier for this rclone process."
3134
+ jobid:
3135
+ type: integer
3136
+ description: "ID of the async job."
3137
+ required:
3138
+ - executeId
3139
+ - jobid
3131
3140
  EmptyResponse:
3132
3141
  description: "Request succeeded with no response body."
3133
3142
  EmptyObjectResponse:
@@ -4719,6 +4728,27 @@ components:
4719
4728
  required:
4720
4729
  - loadedTestPlugins
4721
4730
  schemas:
4731
+ JobBatchRequest:
4732
+ type: object
4733
+ properties:
4734
+ concurrency:
4735
+ type: integer
4736
+ description: "Do this many commands concurrently. Defaults to --transfers if not set."
4737
+ inputs:
4738
+ type: array
4739
+ description: "List of inputs to the commands with an extra _path parameter."
4740
+ items:
4741
+ type: object
4742
+ required:
4743
+ - _path
4744
+ properties:
4745
+ _path:
4746
+ type: string
4747
+ description: "rc/path"
4748
+ additionalProperties: true
4749
+ _async:
4750
+ type: boolean
4751
+ description: "Run the command asynchronously. Returns a job id immediately."
4722
4752
  RcError:
4723
4753
  type: object
4724
4754
  required:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rclone-openapi",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
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;
@@ -2066,9 +2079,10 @@ export interface components {
2066
2079
  };
2067
2080
  content: {
2068
2081
  "application/json": {
2069
- results?: {
2070
- [key: string]: unknown;
2071
- }[];
2082
+ /** @description Identifier for this rclone process. */
2083
+ executeId: string;
2084
+ /** @description ID of the async job. */
2085
+ jobid: number;
2072
2086
  };
2073
2087
  };
2074
2088
  };
@@ -4842,7 +4856,11 @@ export interface operations {
4842
4856
  path?: never;
4843
4857
  cookie?: never;
4844
4858
  };
4845
- requestBody?: never;
4859
+ requestBody?: {
4860
+ content: {
4861
+ "application/json": components["schemas"]["JobBatchRequest"];
4862
+ };
4863
+ };
4846
4864
  responses: {
4847
4865
  200: components["responses"]["JobBatchResponse"];
4848
4866
  "4XX": components["responses"]["RcError"];