rclone-openapi 1.0.2 → 1.0.4

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 +141 -38
  2. package/package.json +3 -2
  3. package/types.d.ts +63 -21
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",
@@ -5262,6 +5284,20 @@
5262
5284
  },
5263
5285
  "transfers": {
5264
5286
  "type": "number"
5287
+ },
5288
+ "transferring": {
5289
+ "type": "array",
5290
+ "description": "Active transfers currently in progress grouped by stats group.",
5291
+ "items": {
5292
+ "$ref": "#/components/schemas/CoreStatsTransfer"
5293
+ }
5294
+ },
5295
+ "checking": {
5296
+ "type": "array",
5297
+ "description": "Objects currently undergoing verification operations.",
5298
+ "items": {
5299
+ "$ref": "#/components/schemas/CoreStatsChecking"
5300
+ }
5265
5301
  }
5266
5302
  },
5267
5303
  "required": [
@@ -6843,29 +6879,7 @@
6843
6879
  "type": "boolean"
6844
6880
  },
6845
6881
  "Default": {
6846
- "oneOf": [
6847
- {
6848
- "type": "array",
6849
- "items": {
6850
- "type": "string"
6851
- }
6852
- },
6853
- {
6854
- "type": "boolean"
6855
- },
6856
- {
6857
- "type": "number"
6858
- },
6859
- {
6860
- "type": "string"
6861
- },
6862
- {
6863
- "$ref": "#/components/schemas/ConfigProviderOptionDefaultObject"
6864
- },
6865
- {
6866
- "type": "null"
6867
- }
6868
- ]
6882
+ "$ref": "#/components/schemas/ConfigProviderOptionAny"
6869
6883
  },
6870
6884
  "DefaultStr": {
6871
6885
  "type": "string"
@@ -6901,7 +6915,7 @@
6901
6915
  "$ref": "#/components/schemas/ConfigProviderOptionType"
6902
6916
  },
6903
6917
  "Value": {
6904
- "type": "null"
6918
+ "$ref": "#/components/schemas/ConfigProviderOptionAny"
6905
6919
  },
6906
6920
  "ValueStr": {
6907
6921
  "type": "string"
@@ -6919,19 +6933,24 @@
6919
6933
  "type": "string"
6920
6934
  }
6921
6935
  },
6922
- "additionalProperties": true
6923
- },
6924
- "ConfigProviderOptionDefaultObject": {
6925
- "type": "object",
6926
- "properties": {
6927
- "Valid": {
6928
- "type": "boolean"
6929
- },
6930
- "Value": {
6931
- "type": "boolean"
6932
- }
6933
- },
6934
- "additionalProperties": false
6936
+ "additionalProperties": true,
6937
+ "required": [
6938
+ "Name",
6939
+ "FieldName",
6940
+ "Help",
6941
+ "Default",
6942
+ "Value",
6943
+ "Hide",
6944
+ "Required",
6945
+ "IsPassword",
6946
+ "NoPrefix",
6947
+ "Advanced",
6948
+ "Exclusive",
6949
+ "Sensitive",
6950
+ "DefaultStr",
6951
+ "ValueStr",
6952
+ "Type"
6953
+ ]
6935
6954
  },
6936
6955
  "ConfigProviderOptionExample": {
6937
6956
  "type": "object",
@@ -6946,7 +6965,36 @@
6946
6965
  "type": "string"
6947
6966
  }
6948
6967
  },
6949
- "additionalProperties": true
6968
+ "additionalProperties": true,
6969
+ "required": [
6970
+ "Help",
6971
+ "Value"
6972
+ ]
6973
+ },
6974
+ "ConfigProviderOptionAny": {
6975
+ "description": "Arbitrary JSON value.",
6976
+ "anyOf": [
6977
+ {
6978
+ "type": "string"
6979
+ },
6980
+ {
6981
+ "type": "number"
6982
+ },
6983
+ {
6984
+ "type": "boolean"
6985
+ },
6986
+ {
6987
+ "type": "array",
6988
+ "items": {}
6989
+ },
6990
+ {
6991
+ "type": "object",
6992
+ "additionalProperties": true
6993
+ },
6994
+ {
6995
+ "type": "null"
6996
+ }
6997
+ ]
6950
6998
  },
6951
6999
  "ConfigProviderOptionType": {
6952
7000
  "type": "string",
@@ -6965,6 +7013,61 @@
6965
7013
  "Time",
6966
7014
  "Tristate"
6967
7015
  ]
7016
+ },
7017
+ "CoreStatsTransfer": {
7018
+ "type": "object",
7019
+ "description": "Progress metrics for an in-flight transfer.",
7020
+ "properties": {
7021
+ "bytes": {
7022
+ "type": "number",
7023
+ "description": "Bytes transferred so far for this object."
7024
+ },
7025
+ "eta": {
7026
+ "type": "number",
7027
+ "nullable": true,
7028
+ "description": "Estimated seconds remaining, when available."
7029
+ },
7030
+ "group": {
7031
+ "type": "string",
7032
+ "description": "Stats group name associated with this transfer."
7033
+ },
7034
+ "name": {
7035
+ "type": "string",
7036
+ "description": "Remote path of the object being transferred."
7037
+ },
7038
+ "percentage": {
7039
+ "type": "number",
7040
+ "description": "Completion percentage from 0-100."
7041
+ },
7042
+ "size": {
7043
+ "type": "number",
7044
+ "description": "Total size in bytes of the object."
7045
+ },
7046
+ "speed": {
7047
+ "type": "number",
7048
+ "description": "Current transfer speed in bytes per second."
7049
+ }
7050
+ },
7051
+ "additionalProperties": true
7052
+ },
7053
+ "CoreStatsChecking": {
7054
+ "type": "object",
7055
+ "description": "Metadata for an item currently undergoing verification.",
7056
+ "properties": {
7057
+ "group": {
7058
+ "type": "string",
7059
+ "description": "Stats group name associated with this verification."
7060
+ },
7061
+ "name": {
7062
+ "type": "string",
7063
+ "description": "Remote path of the object being verified."
7064
+ },
7065
+ "size": {
7066
+ "type": "number",
7067
+ "description": "Total size in bytes of the object."
7068
+ }
7069
+ },
7070
+ "additionalProperties": true
6968
7071
  }
6969
7072
  }
6970
7073
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rclone-openapi",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
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. */
@@ -4051,40 +4055,70 @@ export interface components {
4051
4055
  [key: string]: unknown;
4052
4056
  };
4053
4057
  ConfigProviderOption: {
4054
- Advanced?: boolean;
4055
- Default?: string[] | boolean | number | string | components["schemas"]["ConfigProviderOptionDefaultObject"] | null;
4056
- DefaultStr?: string;
4057
- Exclusive?: boolean;
4058
- FieldName?: string;
4059
- Help?: string;
4060
- Hide?: number;
4061
- IsPassword?: boolean;
4062
- Name?: string;
4063
- NoPrefix?: boolean;
4064
- Required?: boolean;
4065
- Sensitive?: boolean;
4066
- Type?: components["schemas"]["ConfigProviderOptionType"];
4067
- Value?: null;
4068
- ValueStr?: string;
4058
+ Advanced: boolean;
4059
+ Default: components["schemas"]["ConfigProviderOptionAny"];
4060
+ DefaultStr: string;
4061
+ Exclusive: boolean;
4062
+ FieldName: string;
4063
+ Help: string;
4064
+ Hide: number;
4065
+ IsPassword: boolean;
4066
+ Name: string;
4067
+ NoPrefix: boolean;
4068
+ Required: boolean;
4069
+ Sensitive: boolean;
4070
+ Type: components["schemas"]["ConfigProviderOptionType"];
4071
+ Value: components["schemas"]["ConfigProviderOptionAny"];
4072
+ ValueStr: string;
4069
4073
  Examples?: components["schemas"]["ConfigProviderOptionExample"][];
4070
4074
  ShortOpt?: string;
4071
4075
  Provider?: string;
4072
4076
  } & {
4073
4077
  [key: string]: unknown;
4074
4078
  };
4075
- ConfigProviderOptionDefaultObject: {
4076
- Valid?: boolean;
4077
- Value?: boolean;
4078
- };
4079
4079
  ConfigProviderOptionExample: {
4080
- Help?: string;
4081
- Value?: string;
4080
+ Help: string;
4081
+ Value: string;
4082
4082
  Provider?: string;
4083
4083
  } & {
4084
4084
  [key: string]: unknown;
4085
4085
  };
4086
+ /** @description Arbitrary JSON value. */
4087
+ ConfigProviderOptionAny: string | number | boolean | unknown[] | {
4088
+ [key: string]: unknown;
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) */
@@ -4469,6 +4503,10 @@ export interface components {
4469
4503
  totalTransfers: number;
4470
4504
  transferTime: number;
4471
4505
  transfers: number;
4506
+ /** @description Active transfers currently in progress grouped by stats group. */
4507
+ transferring?: components["schemas"]["CoreStatsTransfer"][];
4508
+ /** @description Objects currently undergoing verification operations. */
4509
+ checking?: components["schemas"]["CoreStatsChecking"][];
4472
4510
  };
4473
4511
  };
4474
4512
  };
@@ -5156,6 +5194,10 @@ export interface components {
5156
5194
  Core_QuitPostExitCodeParam: number;
5157
5195
  /** @description Stats group identifier to remove. */
5158
5196
  Core_StatsDeletePostGroupParam: string;
5197
+ /** @description Stats group identifier to return a snapshot for. Leave unset to include all groups. */
5198
+ Core_StatsPostGroupParam: string;
5199
+ /** @description When true, omit the `transferring` and `checking` arrays from the response. */
5200
+ Core_StatsPostShortParam: boolean;
5159
5201
  /** @description Stats group identifier whose counters should be reset. Leave unset to reset all groups. */
5160
5202
  Core_StatsResetPostGroupParam: string;
5161
5203
  /** @description Stats group identifier to filter the completed transfer list. Leave unset for all groups. */