rclone-openapi 1.0.0 → 1.0.1

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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/openapi.json +348 -13
  3. package/package.json +5 -3
  4. package/types.d.ts +134 -5
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 rclone-ui
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Rclone RC API",
5
- "version": "0.1.0",
5
+ "version": "0.1.1",
6
6
  "description": "Full OpenAPI specification for the Rclone RC API.",
7
7
  "contact": {
8
8
  "name": "GitHub Repository",
@@ -5045,9 +5045,18 @@
5045
5045
  "application/json": {
5046
5046
  "schema": {
5047
5047
  "type": "object",
5048
- "additionalProperties": {
5049
- "type": "string"
5050
- }
5048
+ "required": [
5049
+ "type"
5050
+ ],
5051
+ "properties": {
5052
+ "type": {
5053
+ "type": "string"
5054
+ },
5055
+ "provider": {
5056
+ "type": "string"
5057
+ }
5058
+ },
5059
+ "additionalProperties": true
5051
5060
  }
5052
5061
  }
5053
5062
  }
@@ -5109,14 +5118,11 @@
5109
5118
  "providers": {
5110
5119
  "type": "array",
5111
5120
  "items": {
5112
- "type": "object",
5113
- "additionalProperties": true
5121
+ "$ref": "#/components/schemas/ConfigProvider"
5114
5122
  }
5115
5123
  }
5116
5124
  },
5117
- "required": [
5118
- "providers"
5119
- ]
5125
+ "additionalProperties": true
5120
5126
  }
5121
5127
  }
5122
5128
  }
@@ -5664,10 +5670,86 @@
5664
5670
  "application/json": {
5665
5671
  "schema": {
5666
5672
  "type": "object",
5667
- "additionalProperties": {
5668
- "type": "object",
5669
- "additionalProperties": true
5670
- }
5673
+ "required": [
5674
+ "dlna",
5675
+ "filter",
5676
+ "ftp",
5677
+ "http",
5678
+ "log",
5679
+ "main",
5680
+ "mount",
5681
+ "nfs",
5682
+ "proxy",
5683
+ "rc",
5684
+ "restic",
5685
+ "s3",
5686
+ "sftp",
5687
+ "vfs",
5688
+ "webdav"
5689
+ ],
5690
+ "properties": {
5691
+ "dlna": {
5692
+ "type": "object",
5693
+ "additionalProperties": true
5694
+ },
5695
+ "filter": {
5696
+ "type": "object",
5697
+ "additionalProperties": true
5698
+ },
5699
+ "ftp": {
5700
+ "type": "object",
5701
+ "additionalProperties": true
5702
+ },
5703
+ "http": {
5704
+ "type": "object",
5705
+ "additionalProperties": true
5706
+ },
5707
+ "log": {
5708
+ "type": "object",
5709
+ "additionalProperties": true
5710
+ },
5711
+ "main": {
5712
+ "type": "object",
5713
+ "additionalProperties": true
5714
+ },
5715
+ "mount": {
5716
+ "type": "object",
5717
+ "additionalProperties": true
5718
+ },
5719
+ "nfs": {
5720
+ "type": "object",
5721
+ "additionalProperties": true
5722
+ },
5723
+ "proxy": {
5724
+ "type": "object",
5725
+ "additionalProperties": true
5726
+ },
5727
+ "rc": {
5728
+ "type": "object",
5729
+ "additionalProperties": true
5730
+ },
5731
+ "restic": {
5732
+ "type": "object",
5733
+ "additionalProperties": true
5734
+ },
5735
+ "s3": {
5736
+ "type": "object",
5737
+ "additionalProperties": true
5738
+ },
5739
+ "sftp": {
5740
+ "type": "object",
5741
+ "additionalProperties": true
5742
+ },
5743
+ "vfs": {
5744
+ "type": "object",
5745
+ "additionalProperties": true
5746
+ },
5747
+ "webdav": {
5748
+ "type": "object",
5749
+ "additionalProperties": true
5750
+ }
5751
+ },
5752
+ "additionalProperties": true
5671
5753
  }
5672
5754
  }
5673
5755
  }
@@ -6325,6 +6407,27 @@
6325
6407
  },
6326
6408
  "params": {
6327
6409
  "type": "object",
6410
+ "required": [
6411
+ "id",
6412
+ "fs",
6413
+ "type"
6414
+ ],
6415
+ "properties": {
6416
+ "fs": {
6417
+ "type": "string"
6418
+ },
6419
+ "type": {
6420
+ "type": "string"
6421
+ },
6422
+ "opt": {
6423
+ "type": "object",
6424
+ "additionalProperties": true
6425
+ },
6426
+ "vfsOpt": {
6427
+ "type": "object",
6428
+ "additionalProperties": true
6429
+ }
6430
+ },
6328
6431
  "additionalProperties": true,
6329
6432
  "description": "Serve configuration parameters supplied at startup."
6330
6433
  }
@@ -6621,6 +6724,238 @@
6621
6724
  "description": "Original request parameters echoed for debugging."
6622
6725
  }
6623
6726
  }
6727
+ },
6728
+ "ConfigProvider": {
6729
+ "type": "object",
6730
+ "properties": {
6731
+ "Aliases": {
6732
+ "type": "array",
6733
+ "nullable": true,
6734
+ "items": {
6735
+ "type": "string"
6736
+ }
6737
+ },
6738
+ "CommandHelp": {
6739
+ "type": "array",
6740
+ "nullable": true,
6741
+ "items": {
6742
+ "$ref": "#/components/schemas/ConfigProviderCommandHelp"
6743
+ }
6744
+ },
6745
+ "Description": {
6746
+ "type": "string"
6747
+ },
6748
+ "Hide": {
6749
+ "type": "boolean"
6750
+ },
6751
+ "MetadataInfo": {
6752
+ "anyOf": [
6753
+ {
6754
+ "$ref": "#/components/schemas/ConfigProviderMetadataInfo"
6755
+ },
6756
+ {
6757
+ "type": "null"
6758
+ }
6759
+ ]
6760
+ },
6761
+ "Name": {
6762
+ "type": "string"
6763
+ },
6764
+ "Options": {
6765
+ "type": "array",
6766
+ "items": {
6767
+ "$ref": "#/components/schemas/ConfigProviderOption"
6768
+ }
6769
+ },
6770
+ "Prefix": {
6771
+ "type": "string"
6772
+ }
6773
+ },
6774
+ "additionalProperties": true
6775
+ },
6776
+ "ConfigProviderCommandHelp": {
6777
+ "type": "object",
6778
+ "properties": {
6779
+ "Long": {
6780
+ "type": "string"
6781
+ },
6782
+ "Name": {
6783
+ "type": "string"
6784
+ },
6785
+ "Opts": {
6786
+ "type": "object",
6787
+ "nullable": true,
6788
+ "additionalProperties": true
6789
+ },
6790
+ "Short": {
6791
+ "type": "string"
6792
+ }
6793
+ },
6794
+ "additionalProperties": true
6795
+ },
6796
+ "ConfigProviderMetadataInfo": {
6797
+ "type": "object",
6798
+ "properties": {
6799
+ "Help": {
6800
+ "type": "string"
6801
+ },
6802
+ "System": {
6803
+ "type": "object",
6804
+ "nullable": true,
6805
+ "additionalProperties": {
6806
+ "$ref": "#/components/schemas/ConfigProviderMetadataSystemEntry"
6807
+ }
6808
+ }
6809
+ },
6810
+ "additionalProperties": true
6811
+ },
6812
+ "ConfigProviderMetadataSystemEntry": {
6813
+ "type": "object",
6814
+ "properties": {
6815
+ "Example": {
6816
+ "type": "string"
6817
+ },
6818
+ "Help": {
6819
+ "type": "string"
6820
+ },
6821
+ "ReadOnly": {
6822
+ "type": "boolean"
6823
+ },
6824
+ "Type": {
6825
+ "type": "string"
6826
+ }
6827
+ },
6828
+ "additionalProperties": true
6829
+ },
6830
+ "ConfigProviderOption": {
6831
+ "type": "object",
6832
+ "properties": {
6833
+ "Advanced": {
6834
+ "type": "boolean"
6835
+ },
6836
+ "Default": {
6837
+ "oneOf": [
6838
+ {
6839
+ "type": "array",
6840
+ "items": {
6841
+ "type": "string"
6842
+ }
6843
+ },
6844
+ {
6845
+ "type": "boolean"
6846
+ },
6847
+ {
6848
+ "type": "number"
6849
+ },
6850
+ {
6851
+ "type": "string"
6852
+ },
6853
+ {
6854
+ "$ref": "#/components/schemas/ConfigProviderOptionDefaultObject"
6855
+ },
6856
+ {
6857
+ "type": "null"
6858
+ }
6859
+ ]
6860
+ },
6861
+ "DefaultStr": {
6862
+ "type": "string"
6863
+ },
6864
+ "Exclusive": {
6865
+ "type": "boolean"
6866
+ },
6867
+ "FieldName": {
6868
+ "type": "string"
6869
+ },
6870
+ "Help": {
6871
+ "type": "string"
6872
+ },
6873
+ "Hide": {
6874
+ "type": "number"
6875
+ },
6876
+ "IsPassword": {
6877
+ "type": "boolean"
6878
+ },
6879
+ "Name": {
6880
+ "type": "string"
6881
+ },
6882
+ "NoPrefix": {
6883
+ "type": "boolean"
6884
+ },
6885
+ "Required": {
6886
+ "type": "boolean"
6887
+ },
6888
+ "Sensitive": {
6889
+ "type": "boolean"
6890
+ },
6891
+ "Type": {
6892
+ "$ref": "#/components/schemas/ConfigProviderOptionType"
6893
+ },
6894
+ "Value": {
6895
+ "type": "null"
6896
+ },
6897
+ "ValueStr": {
6898
+ "type": "string"
6899
+ },
6900
+ "Examples": {
6901
+ "type": "array",
6902
+ "items": {
6903
+ "$ref": "#/components/schemas/ConfigProviderOptionExample"
6904
+ }
6905
+ },
6906
+ "ShortOpt": {
6907
+ "type": "string"
6908
+ },
6909
+ "Provider": {
6910
+ "type": "string"
6911
+ }
6912
+ },
6913
+ "additionalProperties": true
6914
+ },
6915
+ "ConfigProviderOptionDefaultObject": {
6916
+ "type": "object",
6917
+ "properties": {
6918
+ "Valid": {
6919
+ "type": "boolean"
6920
+ },
6921
+ "Value": {
6922
+ "type": "boolean"
6923
+ }
6924
+ },
6925
+ "additionalProperties": false
6926
+ },
6927
+ "ConfigProviderOptionExample": {
6928
+ "type": "object",
6929
+ "properties": {
6930
+ "Help": {
6931
+ "type": "string"
6932
+ },
6933
+ "Value": {
6934
+ "type": "string"
6935
+ },
6936
+ "Provider": {
6937
+ "type": "string"
6938
+ }
6939
+ },
6940
+ "additionalProperties": true
6941
+ },
6942
+ "ConfigProviderOptionType": {
6943
+ "type": "string",
6944
+ "enum": [
6945
+ "Bits",
6946
+ "bool",
6947
+ "CommaSepList",
6948
+ "Duration",
6949
+ "Encoding",
6950
+ "int",
6951
+ "mtime|atime|btime|ctime",
6952
+ "SizeSuffix",
6953
+ "SpaceSepList",
6954
+ "string",
6955
+ "stringArray",
6956
+ "Time",
6957
+ "Tristate"
6958
+ ]
6624
6959
  }
6625
6960
  }
6626
6961
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rclone-openapi",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "keywords": [
5
5
  "rclone",
6
6
  "openapi",
@@ -31,10 +31,12 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "gen:json": "npx @redocly/cli bundle openapi.yaml -o openapi.json --ext json",
34
- "gen:types": "openapi-typescript openapi.yaml -o types.d.ts"
34
+ "gen:types": "openapi-typescript openapi.yaml -o types.d.ts",
35
+ "gen": "npm run gen:json && npm run gen:types"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@redocly/cli": "^1.34.5",
38
- "openapi-typescript": "^7.10.1"
39
+ "openapi-typescript": "^7.10.1",
40
+ "yaml": "^2.8.1"
39
41
  }
40
42
  }
package/types.d.ts CHANGED
@@ -4012,6 +4012,79 @@ export interface components {
4012
4012
  [key: string]: unknown;
4013
4013
  } | null;
4014
4014
  };
4015
+ ConfigProvider: {
4016
+ Aliases?: string[] | null;
4017
+ CommandHelp?: components["schemas"]["ConfigProviderCommandHelp"][] | null;
4018
+ Description?: string;
4019
+ Hide?: boolean;
4020
+ MetadataInfo?: components["schemas"]["ConfigProviderMetadataInfo"] | null;
4021
+ Name?: string;
4022
+ Options?: components["schemas"]["ConfigProviderOption"][];
4023
+ Prefix?: string;
4024
+ } & {
4025
+ [key: string]: unknown;
4026
+ };
4027
+ ConfigProviderCommandHelp: {
4028
+ Long?: string;
4029
+ Name?: string;
4030
+ Opts?: {
4031
+ [key: string]: unknown;
4032
+ } | null;
4033
+ Short?: string;
4034
+ } & {
4035
+ [key: string]: unknown;
4036
+ };
4037
+ ConfigProviderMetadataInfo: {
4038
+ Help?: string;
4039
+ System?: {
4040
+ [key: string]: components["schemas"]["ConfigProviderMetadataSystemEntry"];
4041
+ } | null;
4042
+ } & {
4043
+ [key: string]: unknown;
4044
+ };
4045
+ ConfigProviderMetadataSystemEntry: {
4046
+ Example?: string;
4047
+ Help?: string;
4048
+ ReadOnly?: boolean;
4049
+ Type?: string;
4050
+ } & {
4051
+ [key: string]: unknown;
4052
+ };
4053
+ 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;
4069
+ Examples?: components["schemas"]["ConfigProviderOptionExample"][];
4070
+ ShortOpt?: string;
4071
+ Provider?: string;
4072
+ } & {
4073
+ [key: string]: unknown;
4074
+ };
4075
+ ConfigProviderOptionDefaultObject: {
4076
+ Valid?: boolean;
4077
+ Value?: boolean;
4078
+ };
4079
+ ConfigProviderOptionExample: {
4080
+ Help?: string;
4081
+ Value?: string;
4082
+ Provider?: string;
4083
+ } & {
4084
+ [key: string]: unknown;
4085
+ };
4086
+ /** @enum {string} */
4087
+ ConfigProviderOptionType: "Bits" | "bool" | "CommaSepList" | "Duration" | "Encoding" | "int" | "mtime|atime|btime|ctime" | "SizeSuffix" | "SpaceSepList" | "string" | "stringArray" | "Time" | "Tristate";
4015
4088
  };
4016
4089
  responses: {
4017
4090
  /** @description Any error response (HTTP 4xx/5xx) */
@@ -4296,7 +4369,10 @@ export interface components {
4296
4369
  };
4297
4370
  content: {
4298
4371
  "application/json": {
4299
- [key: string]: string;
4372
+ type: string;
4373
+ provider?: string;
4374
+ } & {
4375
+ [key: string]: unknown;
4300
4376
  };
4301
4377
  };
4302
4378
  };
@@ -4331,9 +4407,9 @@ export interface components {
4331
4407
  };
4332
4408
  content: {
4333
4409
  "application/json": {
4334
- providers: {
4335
- [key: string]: unknown;
4336
- }[];
4410
+ providers?: components["schemas"]["ConfigProvider"][];
4411
+ } & {
4412
+ [key: string]: unknown;
4337
4413
  };
4338
4414
  };
4339
4415
  };
@@ -4586,9 +4662,53 @@ export interface components {
4586
4662
  };
4587
4663
  content: {
4588
4664
  "application/json": {
4589
- [key: string]: {
4665
+ dlna: {
4666
+ [key: string]: unknown;
4667
+ };
4668
+ filter: {
4669
+ [key: string]: unknown;
4670
+ };
4671
+ ftp: {
4672
+ [key: string]: unknown;
4673
+ };
4674
+ http: {
4675
+ [key: string]: unknown;
4676
+ };
4677
+ log: {
4678
+ [key: string]: unknown;
4679
+ };
4680
+ main: {
4590
4681
  [key: string]: unknown;
4591
4682
  };
4683
+ mount: {
4684
+ [key: string]: unknown;
4685
+ };
4686
+ nfs: {
4687
+ [key: string]: unknown;
4688
+ };
4689
+ proxy: {
4690
+ [key: string]: unknown;
4691
+ };
4692
+ rc: {
4693
+ [key: string]: unknown;
4694
+ };
4695
+ restic: {
4696
+ [key: string]: unknown;
4697
+ };
4698
+ s3: {
4699
+ [key: string]: unknown;
4700
+ };
4701
+ sftp: {
4702
+ [key: string]: unknown;
4703
+ };
4704
+ vfs: {
4705
+ [key: string]: unknown;
4706
+ };
4707
+ webdav: {
4708
+ [key: string]: unknown;
4709
+ };
4710
+ } & {
4711
+ [key: string]: unknown;
4592
4712
  };
4593
4713
  };
4594
4714
  };
@@ -4769,6 +4889,15 @@ export interface components {
4769
4889
  addr?: string;
4770
4890
  /** @description Serve configuration parameters supplied at startup. */
4771
4891
  params?: {
4892
+ fs: string;
4893
+ type: string;
4894
+ opt?: {
4895
+ [key: string]: unknown;
4896
+ };
4897
+ vfsOpt?: {
4898
+ [key: string]: unknown;
4899
+ };
4900
+ } & {
4772
4901
  [key: string]: unknown;
4773
4902
  };
4774
4903
  }[];