@daocloud-proto/hydra 0.0.0-dev-3c60a063 → 0.0.0-dev-aad1ae12

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.
@@ -24,6 +24,11 @@ export enum AdminPermission {
24
24
  FILES_STORAGE_DELETE = "FILES_STORAGE_DELETE",
25
25
  }
26
26
 
27
+ export enum ExportModule {
28
+ EXPORT_MODULE_UNSPECIFIED = "EXPORT_MODULE_UNSPECIFIED",
29
+ EXPORT_MODULE_AI_AUDIT_LOG = "EXPORT_MODULE_AI_AUDIT_LOG",
30
+ }
31
+
27
32
  export type ListClusterRequest = {
28
33
  page?: HydraCommonCommon.Pagination
29
34
  }
@@ -42,6 +47,15 @@ export type ListPlatformRolePermissionsForCurrentUserResponse = {
42
47
  permissions?: AdminPermission[]
43
48
  }
44
49
 
50
+ export type GetExportURIRequest = {
51
+ module?: ExportModule
52
+ }
53
+
54
+ export type GetExportURIResponse = {
55
+ uri?: string
56
+ method?: string
57
+ }
58
+
45
59
  export class CoreService {
46
60
  static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
47
61
  return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -52,4 +66,7 @@ export class CoreService {
52
66
  static ListPlatformRolePermissionsForCurrentUser(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<ListPlatformRolePermissionsForCurrentUserResponse> {
53
67
  return fm.fetchReq<GoogleProtobufEmpty.Empty, ListPlatformRolePermissionsForCurrentUserResponse>(`/apis/admin.hydra.io/v1alpha1/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
54
68
  }
69
+ static GetExportURI(req: GetExportURIRequest, initReq?: fm.InitReq): Promise<GetExportURIResponse> {
70
+ return fm.fetchReq<GetExportURIRequest, GetExportURIResponse>(`/apis/admin.hydra.io/v1alpha1/export-uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
71
+ }
55
72
  }
@@ -175,6 +175,6 @@ export class AIGuardrailsService {
175
175
  return fm.fetchReq<QueryAIAuditLogRequest, QueryAIAuditLogResponse>(`/apis/admin.hydra.io/v1alpha1/ai-guardrails-logs?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
176
176
  }
177
177
  static ExportAIAuditLog(req: ExportAIAuditLogRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
178
- return fm.fetchReq<ExportAIAuditLogRequest, GoogleApiHttpbody.HttpBody>(`/apis/admin.hydra.io/v1alpha1/ai-guardrails-logs/export`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
178
+ return fm.fetchReq<ExportAIAuditLogRequest, GoogleApiHttpbody.HttpBody>(`/apis/admin.hydra.io/v1alpha1/ai-guardrails-logs/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
179
179
  }
180
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.0.0-dev-3c60a063",
3
+ "version": "v0.0.0-dev-aad1ae12",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"