@chill-institute/contracts 0.1.0 → 0.1.6
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/LICENSE +21 -201
- package/README.md +7 -63
- package/gen/ts/chill/v4/api_pb.d.ts +171 -0
- package/gen/ts/chill/v4/api_pb.js +29 -8
- package/package.json +6 -2
- package/proto/chill/v4/api.proto +59 -0
package/LICENSE
CHANGED
|
@@ -1,201 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 chill-institute
|
|
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/README.md
CHANGED
|
@@ -1,73 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# chill-institute/contracts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Public API contracts for [chill.institute](https://chill.institute), your favorite [put.io](https://put.io) extension since 2018.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Docs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- `proto/` contains the protobuf source files.
|
|
12
|
-
- `gen/go/` contains generated Go protobuf and Connect RPC artifacts.
|
|
13
|
-
- `gen/ts/` contains generated JavaScript and TypeScript artifacts for web and mobile clients.
|
|
14
|
-
- `gen/openapi/` contains generated OpenAPI output derived from the protobuf schema.
|
|
15
|
-
|
|
16
|
-
## Versioning
|
|
17
|
-
|
|
18
|
-
- The API contract version is encoded in the protobuf package path, for example `chill.v4`.
|
|
19
|
-
- Repository releases use normal semver tags such as `v0.1.0`.
|
|
20
|
-
- Consumers should depend on tagged releases, not `main`.
|
|
21
|
-
|
|
22
|
-
## Go Usage
|
|
23
|
-
|
|
24
|
-
Generated Go artifacts live in this module and are intended to be imported directly:
|
|
25
|
-
|
|
26
|
-
```go
|
|
27
|
-
import chillv4 "github.com/chill-institute/contracts/gen/go/chill/v4"
|
|
28
|
-
import chillv4connect "github.com/chill-institute/contracts/gen/go/chill/v4/chillv4connect"
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## TypeScript Usage
|
|
32
|
-
|
|
33
|
-
The TypeScript package is published as `@chill-institute/contracts`.
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
npm install @chill-institute/contracts
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Then import generated artifacts directly:
|
|
40
|
-
|
|
41
|
-
```ts
|
|
42
|
-
import { UserService } from "@chill-institute/contracts/chill/v4/api_pb";
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Development
|
|
46
|
-
|
|
47
|
-
This repository uses [`mise`](https://mise.jdx.dev/) for local tool management and task execution.
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
mise install
|
|
51
|
-
mise run generate
|
|
52
|
-
mise run verify
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Generation is centralized in this repository. Downstream clients should consume the generated artifacts from tagged releases instead of regenerating from copied schema files.
|
|
56
|
-
|
|
57
|
-
## Release Flow
|
|
58
|
-
|
|
59
|
-
1. Update `proto/` sources.
|
|
60
|
-
2. Run `mise run generate`.
|
|
61
|
-
3. Commit both the schema changes and generated artifacts.
|
|
62
|
-
4. Tag a release.
|
|
63
|
-
5. Publish the TypeScript package from the release workflow.
|
|
9
|
+
- [Architecture](./docs/ARCHITECTURE.md)
|
|
64
10
|
|
|
65
11
|
## Contributing
|
|
66
12
|
|
|
67
|
-
|
|
68
|
-
- Keep schema changes backward compatible unless you are intentionally shipping a breaking change.
|
|
69
|
-
- Run `mise run verify` before opening a pull request.
|
|
13
|
+
Please read the [contributing guide](./CONTRIBUTING.md).
|
|
70
14
|
|
|
71
15
|
## License
|
|
72
16
|
|
|
73
|
-
|
|
17
|
+
Licensed under the [MIT License](./LICENSE).
|
|
@@ -398,6 +398,11 @@ export declare type UserGetTopMoviesResponse = Message<"chill.v4.UserGetTopMovie
|
|
|
398
398
|
* @generated from field: repeated chill.v4.TopMovie movies = 2;
|
|
399
399
|
*/
|
|
400
400
|
movies: TopMovie[];
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @generated from field: string rss_feed_url = 3;
|
|
404
|
+
*/
|
|
405
|
+
rssFeedUrl: string;
|
|
401
406
|
};
|
|
402
407
|
|
|
403
408
|
/**
|
|
@@ -549,6 +554,11 @@ export declare type AddTransferResponse = Message<"chill.v4.AddTransferResponse"
|
|
|
549
554
|
* @generated from field: string status = 1;
|
|
550
555
|
*/
|
|
551
556
|
status: string;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* @generated from field: chill.v4.Transfer transfer = 2;
|
|
560
|
+
*/
|
|
561
|
+
transfer?: Transfer;
|
|
552
562
|
};
|
|
553
563
|
|
|
554
564
|
/**
|
|
@@ -557,6 +567,159 @@ export declare type AddTransferResponse = Message<"chill.v4.AddTransferResponse"
|
|
|
557
567
|
*/
|
|
558
568
|
export declare const AddTransferResponseSchema: GenMessage<AddTransferResponse>;
|
|
559
569
|
|
|
570
|
+
/**
|
|
571
|
+
* @generated from message chill.v4.GetTransferRequest
|
|
572
|
+
*/
|
|
573
|
+
export declare type GetTransferRequest = Message<"chill.v4.GetTransferRequest"> & {
|
|
574
|
+
/**
|
|
575
|
+
* @generated from field: int64 id = 1;
|
|
576
|
+
*/
|
|
577
|
+
id: bigint;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Describes the message chill.v4.GetTransferRequest.
|
|
582
|
+
* Use `create(GetTransferRequestSchema)` to create a new message.
|
|
583
|
+
*/
|
|
584
|
+
export declare const GetTransferRequestSchema: GenMessage<GetTransferRequest>;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* @generated from message chill.v4.GetTransferResponse
|
|
588
|
+
*/
|
|
589
|
+
export declare type GetTransferResponse = Message<"chill.v4.GetTransferResponse"> & {
|
|
590
|
+
/**
|
|
591
|
+
* @generated from field: chill.v4.Transfer transfer = 1;
|
|
592
|
+
*/
|
|
593
|
+
transfer?: Transfer;
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Describes the message chill.v4.GetTransferResponse.
|
|
598
|
+
* Use `create(GetTransferResponseSchema)` to create a new message.
|
|
599
|
+
*/
|
|
600
|
+
export declare const GetTransferResponseSchema: GenMessage<GetTransferResponse>;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* @generated from message chill.v4.Transfer
|
|
604
|
+
*/
|
|
605
|
+
export declare type Transfer = Message<"chill.v4.Transfer"> & {
|
|
606
|
+
/**
|
|
607
|
+
* @generated from field: int64 id = 1;
|
|
608
|
+
*/
|
|
609
|
+
id: bigint;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* @generated from field: string name = 2;
|
|
613
|
+
*/
|
|
614
|
+
name: string;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* @generated from field: string status = 3;
|
|
618
|
+
*/
|
|
619
|
+
status: string;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @generated from field: int32 percent_done = 4;
|
|
623
|
+
*/
|
|
624
|
+
percentDone: number;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* @generated from field: string status_message = 5;
|
|
628
|
+
*/
|
|
629
|
+
statusMessage: string;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* @generated from field: string error_message = 6;
|
|
633
|
+
*/
|
|
634
|
+
errorMessage: string;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* @generated from field: int64 size = 7;
|
|
638
|
+
*/
|
|
639
|
+
size: bigint;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* @generated from field: int64 downloaded = 8;
|
|
643
|
+
*/
|
|
644
|
+
downloaded: bigint;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* @generated from field: int64 uploaded = 9;
|
|
648
|
+
*/
|
|
649
|
+
uploaded: bigint;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* @generated from field: int32 download_speed = 10;
|
|
653
|
+
*/
|
|
654
|
+
downloadSpeed: number;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* @generated from field: int32 upload_speed = 11;
|
|
658
|
+
*/
|
|
659
|
+
uploadSpeed: number;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @generated from field: int32 peers_connected = 12;
|
|
663
|
+
*/
|
|
664
|
+
peersConnected: number;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* @generated from field: int32 peers_sending_to_us = 13;
|
|
668
|
+
*/
|
|
669
|
+
peersSendingToUs: number;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* @generated from field: int32 peers_getting_from_us = 14;
|
|
673
|
+
*/
|
|
674
|
+
peersGettingFromUs: number;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* @generated from field: int64 estimated_time_seconds = 15;
|
|
678
|
+
*/
|
|
679
|
+
estimatedTimeSeconds: bigint;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* @generated from field: optional int64 file_id = 16;
|
|
683
|
+
*/
|
|
684
|
+
fileId?: bigint;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* @generated from field: optional string file_url = 17;
|
|
688
|
+
*/
|
|
689
|
+
fileUrl?: string;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* @generated from field: optional int64 save_parent_id = 18;
|
|
693
|
+
*/
|
|
694
|
+
saveParentId?: bigint;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* @generated from field: string source = 19;
|
|
698
|
+
*/
|
|
699
|
+
source: string;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* @generated from field: optional string created_at = 20;
|
|
703
|
+
*/
|
|
704
|
+
createdAt?: string;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* @generated from field: optional string finished_at = 21;
|
|
708
|
+
*/
|
|
709
|
+
finishedAt?: string;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* @generated from field: bool is_finished = 22;
|
|
713
|
+
*/
|
|
714
|
+
isFinished: boolean;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Describes the message chill.v4.Transfer.
|
|
719
|
+
* Use `create(TransferSchema)` to create a new message.
|
|
720
|
+
*/
|
|
721
|
+
export declare const TransferSchema: GenMessage<Transfer>;
|
|
722
|
+
|
|
560
723
|
/**
|
|
561
724
|
* @generated from message chill.v4.GetDownloadFolderRequest
|
|
562
725
|
*/
|
|
@@ -1046,6 +1209,14 @@ export declare const UserService: GenService<{
|
|
|
1046
1209
|
input: typeof AddTransferRequestSchema;
|
|
1047
1210
|
output: typeof AddTransferResponseSchema;
|
|
1048
1211
|
},
|
|
1212
|
+
/**
|
|
1213
|
+
* @generated from rpc chill.v4.UserService.GetTransfer
|
|
1214
|
+
*/
|
|
1215
|
+
getTransfer: {
|
|
1216
|
+
methodKind: "unary";
|
|
1217
|
+
input: typeof GetTransferRequestSchema;
|
|
1218
|
+
output: typeof GetTransferResponseSchema;
|
|
1219
|
+
},
|
|
1049
1220
|
/**
|
|
1050
1221
|
* @generated from rpc chill.v4.UserService.GetDownloadFolder
|
|
1051
1222
|
*/
|
|
@@ -9,7 +9,7 @@ import { file_protoc_gen_openapiv2_options_annotations } from "../../protoc-gen-
|
|
|
9
9
|
* Describes the file chill/v4/api.proto.
|
|
10
10
|
*/
|
|
11
11
|
export const file_chill_v4_api = /*@__PURE__*/
|
|
12
|
-
fileDesc("
|
|
12
|
+
fileDesc("ChJjaGlsbC92NC9hcGkucHJvdG8SCGNoaWxsLnY0IhQKEkhlYWx0aENoZWNrUmVxdWVzdCIgCg5IZWFsdGhSZXNwb25zZRIOCgZzdGF0dXMYASABKAkiGAoWQ29yZUdldEluZGV4ZXJzUmVxdWVzdCIjCgdJbmRleGVyEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkiPgoXQ29yZUdldEluZGV4ZXJzUmVzcG9uc2USIwoIaW5kZXhlcnMYASADKAsyES5jaGlsbC52NC5JbmRleGVyIhgKFlVzZXJHZXRJbmRleGVyc1JlcXVlc3QiQgoXVXNlckdldEluZGV4ZXJzUmVzcG9uc2USJwoIaW5kZXhlcnMYASADKAsyFS5jaGlsbC52NC5Vc2VySW5kZXhlciI4CgtVc2VySW5kZXhlchIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEg8KB2VuYWJsZWQYAyABKAgiIgoRQ29yZVNlYXJjaFJlcXVlc3QSDQoFcXVlcnkYASABKAkivQEKDFNlYXJjaFJlc3VsdBIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRIPCgdpbmRleGVyGAMgASgJEgwKBGxpbmsYBCABKAkSFAoHaW1kYl9pZBgFIAEoCUgAiAEBEg0KBXBlZXJzGAYgASgDEg8KB3NlZWRlcnMYByABKAMSDAoEc2l6ZRgIIAEoAxIOC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5jb20vY2hpbGwtaW5zdGl0dXRlL2NvbnRyYWN0cy9nZW4vZ28vY2hpbGwvdjQ7Y2hpbGx2NKICA0NYWKoCCENoaWxsLlY0ygIIQ2hpbGxcVjTiAhRDaGlsbFxWNFxHUEJNZXRhZGF0YeoCCUNoaWxsOjpWNJJBYBIVChBDaGlsbCBBUEkgdjQgUlBDMgE0IgMvdjRaQgodCgpBcGlLZXlBdXRoEg8IAhoJWC1BUEktS2V5IAIKIQoKQmVhcmVyQXV0aBITCAIaDUF1dGhvcml6YXRpb24gAmIGcHJvdG8z", [file_protoc_gen_openapiv2_options_annotations]);
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Describes the message chill.v4.HealthCheckRequest.
|
|
@@ -165,54 +165,75 @@ export const AddTransferRequestSchema = /*@__PURE__*/
|
|
|
165
165
|
export const AddTransferResponseSchema = /*@__PURE__*/
|
|
166
166
|
messageDesc(file_chill_v4_api, 21);
|
|
167
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Describes the message chill.v4.GetTransferRequest.
|
|
170
|
+
* Use `create(GetTransferRequestSchema)` to create a new message.
|
|
171
|
+
*/
|
|
172
|
+
export const GetTransferRequestSchema = /*@__PURE__*/
|
|
173
|
+
messageDesc(file_chill_v4_api, 22);
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Describes the message chill.v4.GetTransferResponse.
|
|
177
|
+
* Use `create(GetTransferResponseSchema)` to create a new message.
|
|
178
|
+
*/
|
|
179
|
+
export const GetTransferResponseSchema = /*@__PURE__*/
|
|
180
|
+
messageDesc(file_chill_v4_api, 23);
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Describes the message chill.v4.Transfer.
|
|
184
|
+
* Use `create(TransferSchema)` to create a new message.
|
|
185
|
+
*/
|
|
186
|
+
export const TransferSchema = /*@__PURE__*/
|
|
187
|
+
messageDesc(file_chill_v4_api, 24);
|
|
188
|
+
|
|
168
189
|
/**
|
|
169
190
|
* Describes the message chill.v4.GetDownloadFolderRequest.
|
|
170
191
|
* Use `create(GetDownloadFolderRequestSchema)` to create a new message.
|
|
171
192
|
*/
|
|
172
193
|
export const GetDownloadFolderRequestSchema = /*@__PURE__*/
|
|
173
|
-
messageDesc(file_chill_v4_api,
|
|
194
|
+
messageDesc(file_chill_v4_api, 25);
|
|
174
195
|
|
|
175
196
|
/**
|
|
176
197
|
* Describes the message chill.v4.GetDownloadFolderResponse.
|
|
177
198
|
* Use `create(GetDownloadFolderResponseSchema)` to create a new message.
|
|
178
199
|
*/
|
|
179
200
|
export const GetDownloadFolderResponseSchema = /*@__PURE__*/
|
|
180
|
-
messageDesc(file_chill_v4_api,
|
|
201
|
+
messageDesc(file_chill_v4_api, 26);
|
|
181
202
|
|
|
182
203
|
/**
|
|
183
204
|
* Describes the message chill.v4.GetFolderRequest.
|
|
184
205
|
* Use `create(GetFolderRequestSchema)` to create a new message.
|
|
185
206
|
*/
|
|
186
207
|
export const GetFolderRequestSchema = /*@__PURE__*/
|
|
187
|
-
messageDesc(file_chill_v4_api,
|
|
208
|
+
messageDesc(file_chill_v4_api, 27);
|
|
188
209
|
|
|
189
210
|
/**
|
|
190
211
|
* Describes the message chill.v4.UserFile.
|
|
191
212
|
* Use `create(UserFileSchema)` to create a new message.
|
|
192
213
|
*/
|
|
193
214
|
export const UserFileSchema = /*@__PURE__*/
|
|
194
|
-
messageDesc(file_chill_v4_api,
|
|
215
|
+
messageDesc(file_chill_v4_api, 28);
|
|
195
216
|
|
|
196
217
|
/**
|
|
197
218
|
* Describes the message chill.v4.GetFolderResponse.
|
|
198
219
|
* Use `create(GetFolderResponseSchema)` to create a new message.
|
|
199
220
|
*/
|
|
200
221
|
export const GetFolderResponseSchema = /*@__PURE__*/
|
|
201
|
-
messageDesc(file_chill_v4_api,
|
|
222
|
+
messageDesc(file_chill_v4_api, 29);
|
|
202
223
|
|
|
203
224
|
/**
|
|
204
225
|
* Describes the message chill.v4.GetUserProfileRequest.
|
|
205
226
|
* Use `create(GetUserProfileRequestSchema)` to create a new message.
|
|
206
227
|
*/
|
|
207
228
|
export const GetUserProfileRequestSchema = /*@__PURE__*/
|
|
208
|
-
messageDesc(file_chill_v4_api,
|
|
229
|
+
messageDesc(file_chill_v4_api, 30);
|
|
209
230
|
|
|
210
231
|
/**
|
|
211
232
|
* Describes the message chill.v4.UserProfile.
|
|
212
233
|
* Use `create(UserProfileSchema)` to create a new message.
|
|
213
234
|
*/
|
|
214
235
|
export const UserProfileSchema = /*@__PURE__*/
|
|
215
|
-
messageDesc(file_chill_v4_api,
|
|
236
|
+
messageDesc(file_chill_v4_api, 31);
|
|
216
237
|
|
|
217
238
|
/**
|
|
218
239
|
* Describes the enum chill.v4.TopMoviesSource.
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chill-institute/contracts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Canonical protobuf API contracts and generated client artifacts for Chill",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"packageManager": "pnpm@10.15.1",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"sideEffects": false,
|
|
8
9
|
"files": [
|
|
@@ -21,6 +22,9 @@
|
|
|
21
22
|
"type": "git",
|
|
22
23
|
"url": "https://github.com/chill-institute/contracts.git"
|
|
23
24
|
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
24
28
|
"dependencies": {
|
|
25
29
|
"@bufbuild/protobuf": "^2.11.0"
|
|
26
30
|
}
|
package/proto/chill/v4/api.proto
CHANGED
|
@@ -214,6 +214,24 @@ service UserService {
|
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
+
rpc GetTransfer(GetTransferRequest) returns (GetTransferResponse) {
|
|
218
|
+
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
|
219
|
+
security: {
|
|
220
|
+
security_requirement: {
|
|
221
|
+
key: "BearerAuth";
|
|
222
|
+
value: {};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
parameters: {
|
|
226
|
+
headers: {
|
|
227
|
+
name: "Authorization";
|
|
228
|
+
description: "Bearer auth token. Format: Bearer <token>";
|
|
229
|
+
type: STRING;
|
|
230
|
+
required: true;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
}
|
|
217
235
|
rpc GetDownloadFolder(GetDownloadFolderRequest) returns (GetDownloadFolderResponse) {
|
|
218
236
|
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
|
219
237
|
security: {
|
|
@@ -340,6 +358,12 @@ message GetTopMoviesBySourceRequest {
|
|
|
340
358
|
}
|
|
341
359
|
|
|
342
360
|
message TopMovie {
|
|
361
|
+
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
|
|
362
|
+
json_schema: {
|
|
363
|
+
required: ["poster_url"]
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
|
|
343
367
|
string id = 1;
|
|
344
368
|
string title = 2;
|
|
345
369
|
int32 year = 3;
|
|
@@ -365,6 +389,7 @@ message UserGetTopMoviesRequest {}
|
|
|
365
389
|
message UserGetTopMoviesResponse {
|
|
366
390
|
TopMoviesSource source = 1;
|
|
367
391
|
repeated TopMovie movies = 2;
|
|
392
|
+
string rss_feed_url = 3;
|
|
368
393
|
}
|
|
369
394
|
|
|
370
395
|
message GetUserSettingsRequest {}
|
|
@@ -449,6 +474,40 @@ message AddTransferRequest {
|
|
|
449
474
|
|
|
450
475
|
message AddTransferResponse {
|
|
451
476
|
string status = 1;
|
|
477
|
+
Transfer transfer = 2;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
message GetTransferRequest {
|
|
481
|
+
int64 id = 1;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
message GetTransferResponse {
|
|
485
|
+
Transfer transfer = 1;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
message Transfer {
|
|
489
|
+
int64 id = 1;
|
|
490
|
+
string name = 2;
|
|
491
|
+
string status = 3;
|
|
492
|
+
int32 percent_done = 4;
|
|
493
|
+
string status_message = 5;
|
|
494
|
+
string error_message = 6;
|
|
495
|
+
int64 size = 7;
|
|
496
|
+
int64 downloaded = 8;
|
|
497
|
+
int64 uploaded = 9;
|
|
498
|
+
int32 download_speed = 10;
|
|
499
|
+
int32 upload_speed = 11;
|
|
500
|
+
int32 peers_connected = 12;
|
|
501
|
+
int32 peers_sending_to_us = 13;
|
|
502
|
+
int32 peers_getting_from_us = 14;
|
|
503
|
+
int64 estimated_time_seconds = 15;
|
|
504
|
+
optional int64 file_id = 16;
|
|
505
|
+
optional string file_url = 17;
|
|
506
|
+
optional int64 save_parent_id = 18;
|
|
507
|
+
string source = 19;
|
|
508
|
+
optional string created_at = 20;
|
|
509
|
+
optional string finished_at = 21;
|
|
510
|
+
bool is_finished = 22;
|
|
452
511
|
}
|
|
453
512
|
|
|
454
513
|
message GetDownloadFolderRequest {}
|