@daocloud-proto/zestu 0.1.0-dev-b7c7594f → 0.1.0-dev-b05df5e5

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/zestu",
3
- "version":"v0.1.0-dev-b7c7594f",
3
+ "version":"v0.1.0-dev-b05df5e5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,6 +28,7 @@ export enum PowerType {
28
28
  type BasePushEventRequest = {
29
29
  type?: EventType
30
30
  resourceId?: string
31
+ occurredAt?: string
31
32
  }
32
33
 
33
34
  export type PushEventRequest = BasePushEventRequest
@@ -82,7 +82,7 @@ export class Image {
82
82
  return fm.fetchReq<ZestuIoApiImageV1alpha1Image.ListPublicImagesRequest, ZestuIoApiImageV1alpha1Image.ListPublicImagesResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/public-images?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
83
83
  }
84
84
  }
85
- export class Metering {
85
+ export class Agent {
86
86
  static PushEvent(req: ZestuIoApiMeteringV1alpha1Metering.PushEventRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
87
87
  return fm.fetchReq<ZestuIoApiMeteringV1alpha1Metering.PushEventRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/events/push`, {...initReq, method: "POST", body: JSON.stringify(req)})
88
88
  }