@daocloud-proto/ghippo 0.6.8 → 0.6.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.6.8",
3
+ "version":"0.6.9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -17,8 +17,24 @@ export type Developer = {
17
17
  message?: string
18
18
  }
19
19
 
20
+ export type ListOpenSourcesRequest = {
21
+ }
22
+
23
+ export type ListOpenSourcesResponse = {
24
+ data?: OpenSource[]
25
+ }
26
+
27
+ export type OpenSource = {
28
+ name?: string
29
+ license?: string
30
+ second?: boolean
31
+ }
32
+
20
33
  export class About {
21
34
  static ListDevelopers(req: ListDevelopersRequest, initReq?: fm.InitReq): Promise<ListDevelopersResponse> {
22
35
  return fm.fetchReq<ListDevelopersRequest, ListDevelopersResponse>(`/apis/ghippo.io/v1alpha1/about/developers?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
23
36
  }
37
+ static ListOpenSources(req: ListOpenSourcesRequest, initReq?: fm.InitReq): Promise<ListOpenSourcesResponse> {
38
+ return fm.fetchReq<ListOpenSourcesRequest, ListOpenSourcesResponse>(`/apis/ghippo.io/v1alpha1/about/opensources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
39
+ }
24
40
  }