@daocloud-proto/insight 0.7.8-4 → 0.7.8-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.
|
@@ -42,6 +42,11 @@ export type GlobalConfig = {
|
|
|
42
42
|
traceApdexThreshold?: string
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
export type userinfo = {
|
|
46
|
+
name?: string
|
|
47
|
+
isAdmin?: boolean
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
export class Insight {
|
|
46
51
|
static GetVersion(req: empty, initReq?: fm.InitReq): Promise<VersionInfo> {
|
|
47
52
|
return fm.fetchReq<empty, VersionInfo>(`/apis/insight.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -49,6 +54,9 @@ export class Insight {
|
|
|
49
54
|
static GetGlobalConfig(req: empty, initReq?: fm.InitReq): Promise<GlobalConfig> {
|
|
50
55
|
return fm.fetchReq<empty, GlobalConfig>(`/apis/insight.io/v1alpha1/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
51
56
|
}
|
|
57
|
+
static GetUserinfo(req: empty, initReq?: fm.InitReq): Promise<userinfo> {
|
|
58
|
+
return fm.fetchReq<empty, userinfo>(`/apis/insight.io/v1alpha1/userinfo?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
59
|
+
}
|
|
52
60
|
}
|
|
53
61
|
export class FeatureGatesService {
|
|
54
62
|
static GetFeatureGates(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiFeature_gateV1alpha1Feature_gate.FeatureGatesResp> {
|