@daocloud-proto/hydra 0.17.0-rc1-dev-21 → 0.17.0-rc1-dev-23
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.
|
@@ -48,6 +48,7 @@ export enum APIKeyUsageQueryStatus {
|
|
|
48
48
|
|
|
49
49
|
export type CreateWSAPIKeyRequest = BaseCreateWSAPIKeyRequest
|
|
50
50
|
& OneOf<{ expireTime: GoogleProtobufTimestamp.Timestamp }>
|
|
51
|
+
& OneOf<{ userId: string }>
|
|
51
52
|
|
|
52
53
|
|
|
53
54
|
/* hydra modified */ export type BaseCreateAPIKeyRequest = {
|
|
@@ -96,6 +97,13 @@ export type ListAllWSAPIKeysStatusResponse = {
|
|
|
96
97
|
items?: AllAPIKeyStatus[]
|
|
97
98
|
}
|
|
98
99
|
|
|
100
|
+
export type ListAllAPIKeysStatusResponse = {
|
|
101
|
+
items?: AllAPIKeyStatus[]
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type ListAllAPIKeysStatusRequest = {
|
|
105
|
+
}
|
|
106
|
+
|
|
99
107
|
export type ListWSAPIKeyRequest = {
|
|
100
108
|
workspace?: number
|
|
101
109
|
page?: HydraCommonCommon.Pagination
|
|
@@ -231,6 +239,9 @@ export class APIKeyManagement {
|
|
|
231
239
|
static ListAPIKeyMasked(req: ListAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
|
|
232
240
|
return fm.fetchReq<ListAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/masked-apikeys?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
233
241
|
}
|
|
242
|
+
static ListAllAPIKeysStatus(req: ListAllAPIKeysStatusRequest, initReq?: fm.InitReq): Promise<ListAllAPIKeysStatusResponse> {
|
|
243
|
+
return fm.fetchReq<ListAllAPIKeysStatusRequest, ListAllAPIKeysStatusResponse>(`/apis/hydra.io/v1alpha1/all-apikey-statuses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
244
|
+
}
|
|
234
245
|
static GetAPIKeySecret(req: GetAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
235
246
|
return fm.fetchReq<GetAPIKeySecretRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/secret?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
236
247
|
}
|
|
@@ -87,6 +87,25 @@ export type ListConfigMapsResponse = {
|
|
|
87
87
|
page?: HydraCommonCommon.Pagination
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export type ListWorkspaceMembersRequest = {
|
|
91
|
+
workspace?: number
|
|
92
|
+
page?: HydraCommonCommon.Pagination
|
|
93
|
+
memberName?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type WorkspaceMember = {
|
|
97
|
+
userId?: string
|
|
98
|
+
memberName?: string
|
|
99
|
+
firstname?: string
|
|
100
|
+
lastname?: string
|
|
101
|
+
roleNames?: string[]
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type ListWorkspaceMembersResponse = {
|
|
105
|
+
items?: WorkspaceMember[]
|
|
106
|
+
page?: HydraCommonCommon.Pagination
|
|
107
|
+
}
|
|
108
|
+
|
|
90
109
|
export class WorkspaceService {
|
|
91
110
|
static ListWorkspaces(req: ListWorkspaceRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
92
111
|
return fm.fetchReq<ListWorkspaceRequest, ListWorkspacesResponse>(`/apis/hydra.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -100,4 +119,7 @@ export class WorkspaceService {
|
|
|
100
119
|
static ListConfigMaps(req: ListConfigMapsRequest, initReq?: fm.InitReq): Promise<ListConfigMapsResponse> {
|
|
101
120
|
return fm.fetchReq<ListConfigMapsRequest, ListConfigMapsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/configmaps?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
102
121
|
}
|
|
122
|
+
static ListWorkspaceMembers(req: ListWorkspaceMembersRequest, initReq?: fm.InitReq): Promise<ListWorkspaceMembersResponse> {
|
|
123
|
+
return fm.fetchReq<ListWorkspaceMembersRequest, ListWorkspaceMembersResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/workspace-members?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
124
|
+
}
|
|
103
125
|
}
|