rclone-openapi 1.0.3 → 1.0.5

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 (3) hide show
  1. package/openapi.json +115 -1
  2. package/package.json +3 -2
  3. package/types.d.ts +56 -2
package/openapi.json CHANGED
@@ -1746,6 +1746,12 @@
1746
1746
  "description": "Returns active transfer statistics including bytes transferred, speed, and error counts.",
1747
1747
  "tags": [],
1748
1748
  "parameters": [
1749
+ {
1750
+ "$ref": "#/components/parameters/Core_StatsPostGroupParam"
1751
+ },
1752
+ {
1753
+ "$ref": "#/components/parameters/Core_StatsPostShortParam"
1754
+ },
1749
1755
  {
1750
1756
  "$ref": "#/components/parameters/GlobalGroupParam"
1751
1757
  },
@@ -3482,6 +3488,22 @@
3482
3488
  },
3483
3489
  "required": true
3484
3490
  },
3491
+ "Core_StatsPostGroupParam": {
3492
+ "name": "group",
3493
+ "in": "query",
3494
+ "description": "Stats group identifier to return a snapshot for. Leave unset to include all groups.",
3495
+ "schema": {
3496
+ "type": "string"
3497
+ }
3498
+ },
3499
+ "Core_StatsPostShortParam": {
3500
+ "name": "short",
3501
+ "in": "query",
3502
+ "description": "When true, omit the `transferring` and `checking` arrays from the response.",
3503
+ "schema": {
3504
+ "type": "boolean"
3505
+ }
3506
+ },
3485
3507
  "Core_StatsResetPostGroupParam": {
3486
3508
  "name": "group",
3487
3509
  "in": "query",
@@ -4796,6 +4818,26 @@
4796
4818
  "items": {
4797
4819
  "type": "object",
4798
4820
  "properties": {
4821
+ "group": {
4822
+ "type": "string",
4823
+ "description": "Stats group identifier this transfer belonged to."
4824
+ },
4825
+ "srcFs": {
4826
+ "type": "string",
4827
+ "description": "Source remote or filesystem used for the transfer."
4828
+ },
4829
+ "dstFs": {
4830
+ "type": "string",
4831
+ "description": "Destination remote or filesystem used for the transfer."
4832
+ },
4833
+ "srcRemote": {
4834
+ "type": "string",
4835
+ "description": "Source path within `srcFs`, when provided."
4836
+ },
4837
+ "dstRemote": {
4838
+ "type": "string",
4839
+ "description": "Destination path within `dstFs`, when provided."
4840
+ },
4799
4841
  "name": {
4800
4842
  "type": "string"
4801
4843
  },
@@ -4821,7 +4863,10 @@
4821
4863
  "type": "integer"
4822
4864
  }
4823
4865
  },
4824
- "additionalProperties": false
4866
+ "additionalProperties": true,
4867
+ "required": [
4868
+ "group"
4869
+ ]
4825
4870
  }
4826
4871
  }
4827
4872
  },
@@ -5262,6 +5307,20 @@
5262
5307
  },
5263
5308
  "transfers": {
5264
5309
  "type": "number"
5310
+ },
5311
+ "transferring": {
5312
+ "type": "array",
5313
+ "description": "Active transfers currently in progress grouped by stats group.",
5314
+ "items": {
5315
+ "$ref": "#/components/schemas/CoreStatsTransfer"
5316
+ }
5317
+ },
5318
+ "checking": {
5319
+ "type": "array",
5320
+ "description": "Objects currently undergoing verification operations.",
5321
+ "items": {
5322
+ "$ref": "#/components/schemas/CoreStatsChecking"
5323
+ }
5265
5324
  }
5266
5325
  },
5267
5326
  "required": [
@@ -6977,6 +7036,61 @@
6977
7036
  "Time",
6978
7037
  "Tristate"
6979
7038
  ]
7039
+ },
7040
+ "CoreStatsTransfer": {
7041
+ "type": "object",
7042
+ "description": "Progress metrics for an in-flight transfer.",
7043
+ "properties": {
7044
+ "bytes": {
7045
+ "type": "number",
7046
+ "description": "Bytes transferred so far for this object."
7047
+ },
7048
+ "eta": {
7049
+ "type": "number",
7050
+ "nullable": true,
7051
+ "description": "Estimated seconds remaining, when available."
7052
+ },
7053
+ "group": {
7054
+ "type": "string",
7055
+ "description": "Stats group name associated with this transfer."
7056
+ },
7057
+ "name": {
7058
+ "type": "string",
7059
+ "description": "Remote path of the object being transferred."
7060
+ },
7061
+ "percentage": {
7062
+ "type": "number",
7063
+ "description": "Completion percentage from 0-100."
7064
+ },
7065
+ "size": {
7066
+ "type": "number",
7067
+ "description": "Total size in bytes of the object."
7068
+ },
7069
+ "speed": {
7070
+ "type": "number",
7071
+ "description": "Current transfer speed in bytes per second."
7072
+ }
7073
+ },
7074
+ "additionalProperties": true
7075
+ },
7076
+ "CoreStatsChecking": {
7077
+ "type": "object",
7078
+ "description": "Metadata for an item currently undergoing verification.",
7079
+ "properties": {
7080
+ "group": {
7081
+ "type": "string",
7082
+ "description": "Stats group name associated with this verification."
7083
+ },
7084
+ "name": {
7085
+ "type": "string",
7086
+ "description": "Remote path of the object being verified."
7087
+ },
7088
+ "size": {
7089
+ "type": "number",
7090
+ "description": "Total size in bytes of the object."
7091
+ }
7092
+ },
7093
+ "additionalProperties": true
6980
7094
  }
6981
7095
  }
6982
7096
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rclone-openapi",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "keywords": [
5
5
  "rclone",
6
6
  "openapi",
@@ -32,7 +32,8 @@
32
32
  "scripts": {
33
33
  "gen:json": "npx @redocly/cli bundle openapi.yaml -o openapi.json --ext json",
34
34
  "gen:types": "openapi-typescript openapi.yaml -o types.d.ts",
35
- "gen": "npm run gen:json && npm run gen:types"
35
+ "gen": "npm run gen:json && npm run gen:types",
36
+ "pub": "npm run gen && npm publish"
36
37
  },
37
38
  "devDependencies": {
38
39
  "@redocly/cli": "^1.34.5",
package/types.d.ts CHANGED
@@ -2300,6 +2300,10 @@ export interface paths {
2300
2300
  post: {
2301
2301
  parameters: {
2302
2302
  query?: {
2303
+ /** @description Stats group identifier to return a snapshot for. Leave unset to include all groups. */
2304
+ group?: components["parameters"]["Core_StatsPostGroupParam"];
2305
+ /** @description When true, omit the `transferring` and `checking` arrays from the response. */
2306
+ short?: components["parameters"]["Core_StatsPostShortParam"];
2303
2307
  /** @description Assign the request to a custom stats group. */
2304
2308
  _group?: components["parameters"]["GlobalGroupParam"];
2305
2309
  /** @description Run the command asynchronously. Returns a job id immediately. */
@@ -4085,6 +4089,36 @@ export interface components {
4085
4089
  } | null;
4086
4090
  /** @enum {string} */
4087
4091
  ConfigProviderOptionType: "Bits" | "bool" | "CommaSepList" | "Duration" | "Encoding" | "int" | "mtime|atime|btime|ctime" | "SizeSuffix" | "SpaceSepList" | "string" | "stringArray" | "Time" | "Tristate";
4092
+ /** @description Progress metrics for an in-flight transfer. */
4093
+ CoreStatsTransfer: {
4094
+ /** @description Bytes transferred so far for this object. */
4095
+ bytes?: number;
4096
+ /** @description Estimated seconds remaining, when available. */
4097
+ eta?: number | null;
4098
+ /** @description Stats group name associated with this transfer. */
4099
+ group?: string;
4100
+ /** @description Remote path of the object being transferred. */
4101
+ name?: string;
4102
+ /** @description Completion percentage from 0-100. */
4103
+ percentage?: number;
4104
+ /** @description Total size in bytes of the object. */
4105
+ size?: number;
4106
+ /** @description Current transfer speed in bytes per second. */
4107
+ speed?: number;
4108
+ } & {
4109
+ [key: string]: unknown;
4110
+ };
4111
+ /** @description Metadata for an item currently undergoing verification. */
4112
+ CoreStatsChecking: {
4113
+ /** @description Stats group name associated with this verification. */
4114
+ group?: string;
4115
+ /** @description Remote path of the object being verified. */
4116
+ name?: string;
4117
+ /** @description Total size in bytes of the object. */
4118
+ size?: number;
4119
+ } & {
4120
+ [key: string]: unknown;
4121
+ };
4088
4122
  };
4089
4123
  responses: {
4090
4124
  /** @description Any error response (HTTP 4xx/5xx) */
@@ -4231,7 +4265,17 @@ export interface components {
4231
4265
  };
4232
4266
  content: {
4233
4267
  "application/json": {
4234
- transferred: {
4268
+ transferred: ({
4269
+ /** @description Stats group identifier this transfer belonged to. */
4270
+ group: string;
4271
+ /** @description Source remote or filesystem used for the transfer. */
4272
+ srcFs?: string;
4273
+ /** @description Destination remote or filesystem used for the transfer. */
4274
+ dstFs?: string;
4275
+ /** @description Source path within `srcFs`, when provided. */
4276
+ srcRemote?: string;
4277
+ /** @description Destination path within `dstFs`, when provided. */
4278
+ dstRemote?: string;
4235
4279
  name?: string;
4236
4280
  size?: number;
4237
4281
  bytes?: number;
@@ -4240,7 +4284,9 @@ export interface components {
4240
4284
  timestamp?: number;
4241
4285
  error?: string;
4242
4286
  jobid?: number;
4243
- }[];
4287
+ } & {
4288
+ [key: string]: unknown;
4289
+ })[];
4244
4290
  };
4245
4291
  };
4246
4292
  };
@@ -4469,6 +4515,10 @@ export interface components {
4469
4515
  totalTransfers: number;
4470
4516
  transferTime: number;
4471
4517
  transfers: number;
4518
+ /** @description Active transfers currently in progress grouped by stats group. */
4519
+ transferring?: components["schemas"]["CoreStatsTransfer"][];
4520
+ /** @description Objects currently undergoing verification operations. */
4521
+ checking?: components["schemas"]["CoreStatsChecking"][];
4472
4522
  };
4473
4523
  };
4474
4524
  };
@@ -5156,6 +5206,10 @@ export interface components {
5156
5206
  Core_QuitPostExitCodeParam: number;
5157
5207
  /** @description Stats group identifier to remove. */
5158
5208
  Core_StatsDeletePostGroupParam: string;
5209
+ /** @description Stats group identifier to return a snapshot for. Leave unset to include all groups. */
5210
+ Core_StatsPostGroupParam: string;
5211
+ /** @description When true, omit the `transferring` and `checking` arrays from the response. */
5212
+ Core_StatsPostShortParam: boolean;
5159
5213
  /** @description Stats group identifier whose counters should be reset. Leave unset to reset all groups. */
5160
5214
  Core_StatsResetPostGroupParam: string;
5161
5215
  /** @description Stats group identifier to filter the completed transfer list. Leave unset for all groups. */