IDNKFAS
parent: tbd commit: 472f76c
1 | use ; |
2 | |
3 | use crate RepositoryVisibility; |
4 | use crate |
5 | , |
6 | , | User
7 | ; |
8 | |
9 | /// A request to create a repository. |
10 | /// |
11 | /// # Authentication |
12 | /// - Instance Authentication |
13 | /// - Used to validate User token `issued_for` |
14 | /// - User Authentication |
15 | /// - Used to source owning user |
16 | /// - Used to authorize user token against user's instance |
17 | /// # Authorization |
18 | /// - Instance Authorization |
19 | /// - Used to authorize action using User token requiring a correct `issued_for` and valid issuance from user's instance |
20 | /// - User Authorization |
21 | /// - Potential User permissions checks |
22 | |
23 | |
24 | pub name: String, |
25 | pub description: , |
26 | pub visibility: RepositoryVisibility, |
27 | pub default_branch: String, |
28 | pub owner: User, |
29 | |
30 | |
31 | |
32 | ; |
33 | |
34 | /// A request to inspect the tree of a repository. |
35 | /// |
36 | /// # Authentication |
37 | /// - Instance Authentication |
38 | /// - Validate request against the `issued_for` public key |
39 | /// - Validate User token against the user's instance's public key |
40 | /// # Authorization |
41 | /// - User Authorization |
42 | /// - Potential User permissions checks |
43 | |
44 | |
45 | pub path: RepositoryTreeEntry, |
46 | |
47 | |
48 | |
49 | |
50 | File |
51 | commit_metadata: Commit, |
52 | , |
53 | Folder |
54 | commit_metadata: Commit, |
55 | members: , |
56 | , |
57 | Invalid |
58 | path: RepositoryTreeEntry, |
59 | , |
60 | |
61 | |
62 | /// A request to get a repository's information. |
63 | /// |
64 | /// # Authentication |
65 | /// - Instance Authentication |
66 | /// - Validate request against the `issued_for` public key |
67 | /// - Validate User token against the user's instance's public key |
68 | /// # Authorization |
69 | /// - User Authorization |
70 | /// - Potential User permissions checks |
71 | |
72 | ; |
73 | |
74 | |
75 | |
76 | pub count: u64, |
77 | |
78 | |
79 | /// A request to get a repository's issues count. |
80 | /// |
81 | /// # Authentication |
82 | /// - Instance Authentication |
83 | /// - Validate request against the `issued_for` public key |
84 | /// - Validate User token against the user's instance's public key |
85 | /// # Authorization |
86 | /// - User Authorization |
87 | /// - Potential User permissions checks |
88 | |
89 | ; |
90 | |
91 | |
92 | |
93 | pub labels: , |
94 | |
95 | |
96 | |
97 | |
98 | pub name: String, |
99 | pub color: String, |
100 | |
101 | |
102 | /// A request to get a repository's issue labels. |
103 | /// |
104 | /// # Authentication |
105 | /// - Instance Authentication |
106 | /// - Validate request against the `issued_for` public key |
107 | /// - Validate User token against the user's instance's public key |
108 | /// # Authorization |
109 | /// - User Authorization |
110 | /// - Potential User permissions checks |
111 | |
112 | ; |
113 | |
114 | |
115 | |
116 | pub issues: , |
117 | |
118 | |
119 | /// A request to get a repository's issues. |
120 | /// |
121 | /// # Authentication |
122 | /// - Instance Authentication |
123 | /// - Validate request against the `issued_for` public key |
124 | /// - Validate User token against the user's instance's public key |
125 | /// # Authorization |
126 | /// - User Authorization |
127 | /// - Potential User permissions checks |
128 | |
129 | |
130 | pub author: User, |
131 | pub id: u64, |
132 | pub title: String, |
133 | pub contents: String, |
134 | pub labels: , |
135 | |
136 | |
137 | |
138 | |
139 | pub repository: Repository, |
140 | /// Whether to fetch extra metadata like the last commit made to file or size |
141 | pub extra_metadata: bool, |
142 | /// Rev (branch) being requested |
143 | pub rev: , |
144 | /// Tree path being requested |
145 | pub path: , |
146 | |
147 |