@daocloud-proto/hydra 0.0.0-dev-32076ffc → 0.0.0-dev-d87e43f9
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.
|
@@ -17,6 +17,13 @@ type OneOf<T> =
|
|
|
17
17
|
: never)
|
|
18
18
|
: never);
|
|
19
19
|
|
|
20
|
+
export enum APIKeyStatus {
|
|
21
|
+
API_KEY_STATUS_UNSPECIFIED = "API_KEY_STATUS_UNSPECIFIED",
|
|
22
|
+
API_KEY_STATUS_ACTIVE = "API_KEY_STATUS_ACTIVE",
|
|
23
|
+
API_KEY_STATUS_DISABLED = "API_KEY_STATUS_DISABLED",
|
|
24
|
+
API_KEY_STATUS_EXPIRED = "API_KEY_STATUS_EXPIRED",
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
export enum TimePeriod {
|
|
21
28
|
TIME_PERIOD_UNSPECIFIED = "TIME_PERIOD_UNSPECIFIED",
|
|
22
29
|
TIME_PERIOD_HOUR = "TIME_PERIOD_HOUR",
|
|
@@ -58,11 +65,9 @@ export type APIKey = {
|
|
|
58
65
|
expireTime?: GoogleProtobufTimestamp.Timestamp
|
|
59
66
|
remainingQuota?: string
|
|
60
67
|
remainingQuotaSyncedAt?: GoogleProtobufTimestamp.Timestamp
|
|
68
|
+
status?: APIKeyStatus
|
|
61
69
|
unlimitedQuota?: boolean
|
|
62
70
|
usedQuota?: string
|
|
63
|
-
lastUsedTime?: GoogleProtobufTimestamp.Timestamp
|
|
64
|
-
expired?: boolean
|
|
65
|
-
disabled?: boolean
|
|
66
71
|
}
|
|
67
72
|
|
|
68
73
|
export type ListWSAPIKeyRequest = {
|
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/*
|
|
4
|
-
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as HydraCommonCommon from "../../../common/common.pb"
|
|
8
|
-
import * as fm from "../../../fetch.pb"
|
|
9
|
-
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
10
|
-
|
|
11
|
-
export enum RefreshCycle {
|
|
12
|
-
REFRESH_CYCLE_UNSPECIFIED = "REFRESH_CYCLE_UNSPECIFIED",
|
|
13
|
-
REFRESH_CYCLE_DAY = "REFRESH_CYCLE_DAY",
|
|
14
|
-
REFRESH_CYCLE_WEEK = "REFRESH_CYCLE_WEEK",
|
|
15
|
-
REFRESH_CYCLE_MONTH = "REFRESH_CYCLE_MONTH",
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type WorkspaceQuota = {
|
|
19
|
-
workspace?: number
|
|
20
|
-
quota?: string
|
|
21
|
-
nextRefreshTime?: GoogleProtobufTimestamp.Timestamp
|
|
22
|
-
refreshCycle?: RefreshCycle
|
|
23
|
-
remainingQuota?: string
|
|
24
|
-
allocatedQuota?: string
|
|
25
|
-
updateTime?: GoogleProtobufTimestamp.Timestamp
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type ListWorkspaceQuotasRequest = {
|
|
29
|
-
page?: HydraCommonCommon.Pagination
|
|
30
|
-
workspace?: number
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type ListWorkspaceQuotasResponse = {
|
|
34
|
-
items?: WorkspaceQuota[]
|
|
35
|
-
page?: HydraCommonCommon.Pagination
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export class WorkspaceQuotaService {
|
|
39
|
-
static ListWorkspaceQuotas(req: ListWorkspaceQuotasRequest, initReq?: fm.InitReq): Promise<ListWorkspaceQuotasResponse> {
|
|
40
|
-
return fm.fetchReq<ListWorkspaceQuotasRequest, ListWorkspaceQuotasResponse>(`/apis/admin.hydra.io/v1alpha1/workspace-quotas?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
41
|
-
}
|
|
42
|
-
}
|