events.go 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. package storage
  2. // Code generated by cdproto-gen. DO NOT EDIT.
  3. import (
  4. "github.com/chromedp/cdproto/cdp"
  5. "github.com/chromedp/cdproto/network"
  6. "github.com/mailru/easyjson"
  7. )
  8. // EventCacheStorageContentUpdated a cache's contents have been modified.
  9. //
  10. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-cacheStorageContentUpdated
  11. type EventCacheStorageContentUpdated struct {
  12. Origin string `json:"origin"` // Origin to update.
  13. StorageKey string `json:"storageKey"` // Storage key to update.
  14. BucketID string `json:"bucketId"` // Storage bucket to update.
  15. CacheName string `json:"cacheName"` // Name of cache in origin.
  16. }
  17. // EventCacheStorageListUpdated a cache has been added/deleted.
  18. //
  19. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-cacheStorageListUpdated
  20. type EventCacheStorageListUpdated struct {
  21. Origin string `json:"origin"` // Origin to update.
  22. StorageKey string `json:"storageKey"` // Storage key to update.
  23. BucketID string `json:"bucketId"` // Storage bucket to update.
  24. }
  25. // EventIndexedDBContentUpdated the origin's IndexedDB object store has been
  26. // modified.
  27. //
  28. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-indexedDBContentUpdated
  29. type EventIndexedDBContentUpdated struct {
  30. Origin string `json:"origin"` // Origin to update.
  31. StorageKey string `json:"storageKey"` // Storage key to update.
  32. BucketID string `json:"bucketId"` // Storage bucket to update.
  33. DatabaseName string `json:"databaseName"` // Database to update.
  34. ObjectStoreName string `json:"objectStoreName"` // ObjectStore to update.
  35. }
  36. // EventIndexedDBListUpdated the origin's IndexedDB database list has been
  37. // modified.
  38. //
  39. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-indexedDBListUpdated
  40. type EventIndexedDBListUpdated struct {
  41. Origin string `json:"origin"` // Origin to update.
  42. StorageKey string `json:"storageKey"` // Storage key to update.
  43. BucketID string `json:"bucketId"` // Storage bucket to update.
  44. }
  45. // EventInterestGroupAccessed one of the interest groups was accessed. Note
  46. // that these events are global to all targets sharing an interest group store.
  47. //
  48. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-interestGroupAccessed
  49. type EventInterestGroupAccessed struct {
  50. AccessTime *cdp.TimeSinceEpoch `json:"accessTime"`
  51. Type InterestGroupAccessType `json:"type"`
  52. OwnerOrigin string `json:"ownerOrigin"`
  53. Name string `json:"name"`
  54. ComponentSellerOrigin string `json:"componentSellerOrigin,omitempty"` // For topLevelBid/topLevelAdditionalBid, and when appropriate, win and additionalBidWin
  55. Bid float64 `json:"bid,omitempty"` // For bid or somethingBid event, if done locally and not on a server.
  56. BidCurrency string `json:"bidCurrency,omitempty"`
  57. UniqueAuctionID InterestGroupAuctionID `json:"uniqueAuctionId,omitempty"` // For non-global events --- links to interestGroupAuctionEvent
  58. }
  59. // EventInterestGroupAuctionEventOccurred an auction involving interest
  60. // groups is taking place. These events are target-specific.
  61. //
  62. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-interestGroupAuctionEventOccurred
  63. type EventInterestGroupAuctionEventOccurred struct {
  64. EventTime *cdp.TimeSinceEpoch `json:"eventTime"`
  65. Type InterestGroupAuctionEventType `json:"type"`
  66. UniqueAuctionID InterestGroupAuctionID `json:"uniqueAuctionId"`
  67. ParentAuctionID InterestGroupAuctionID `json:"parentAuctionId,omitempty"` // Set for child auctions.
  68. AuctionConfig easyjson.RawMessage `json:"auctionConfig,omitempty"`
  69. }
  70. // EventInterestGroupAuctionNetworkRequestCreated specifies which auctions a
  71. // particular network fetch may be related to, and in what role. Note that it is
  72. // not ordered with respect to Network.requestWillBeSent (but will happen before
  73. // loadingFinished loadingFailed).
  74. //
  75. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-interestGroupAuctionNetworkRequestCreated
  76. type EventInterestGroupAuctionNetworkRequestCreated struct {
  77. Type InterestGroupAuctionFetchType `json:"type"`
  78. RequestID network.RequestID `json:"requestId"`
  79. Auctions []InterestGroupAuctionID `json:"auctions"` // This is the set of the auctions using the worklet that issued this request. In the case of trusted signals, it's possible that only some of them actually care about the keys being queried.
  80. }
  81. // EventSharedStorageAccessed shared storage was accessed by the associated
  82. // page. The following parameters are included in all events.
  83. //
  84. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-sharedStorageAccessed
  85. type EventSharedStorageAccessed struct {
  86. AccessTime *cdp.TimeSinceEpoch `json:"accessTime"` // Time of the access.
  87. Type SharedStorageAccessType `json:"type"` // Enum value indicating the Shared Storage API method invoked.
  88. MainFrameID cdp.FrameID `json:"mainFrameId"` // DevTools Frame Token for the primary frame tree's root.
  89. OwnerOrigin string `json:"ownerOrigin"` // Serialized origin for the context that invoked the Shared Storage API.
  90. Params *SharedStorageAccessParams `json:"params"` // The sub-parameters wrapped by params are all optional and their presence/absence depends on type.
  91. }
  92. // EventStorageBucketCreatedOrUpdated [no description].
  93. //
  94. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-storageBucketCreatedOrUpdated
  95. type EventStorageBucketCreatedOrUpdated struct {
  96. BucketInfo *BucketInfo `json:"bucketInfo"`
  97. }
  98. // EventStorageBucketDeleted [no description].
  99. //
  100. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-storageBucketDeleted
  101. type EventStorageBucketDeleted struct {
  102. BucketID string `json:"bucketId"`
  103. }
  104. // EventAttributionReportingSourceRegistered [no description].
  105. //
  106. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-attributionReportingSourceRegistered
  107. type EventAttributionReportingSourceRegistered struct {
  108. Registration *AttributionReportingSourceRegistration `json:"registration"`
  109. Result AttributionReportingSourceRegistrationResult `json:"result"`
  110. }
  111. // EventAttributionReportingTriggerRegistered [no description].
  112. //
  113. // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-attributionReportingTriggerRegistered
  114. type EventAttributionReportingTriggerRegistered struct {
  115. Registration *AttributionReportingTriggerRegistration `json:"registration"`
  116. EventLevel AttributionReportingEventLevelResult `json:"eventLevel"`
  117. Aggregatable AttributionReportingAggregatableResult `json:"aggregatable"`
  118. }