@digdir/dialogporten-schema 1.19.0 → 1.20.0

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": "@digdir/dialogporten-schema",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "20"
@@ -211,8 +211,9 @@ type SeenLog {
211
211
  isCurrentEndUser: Boolean!
212
212
  }
213
213
 
214
- type Subscriptions @authorize(policy: "enduser") {
215
- dialogEvents(dialogId: UUID!): DialogEventPayload!
214
+ type Subscriptions {
215
+ "Requires a dialog token in the 'DigDir-Dialog-Token' header."
216
+ dialogEvents(dialogId: UUID!): DialogEventPayload! @authorize(policy: "enduserSubscription", apply: VALIDATION)
216
217
  }
217
218
 
218
219
  type Transmission {
@@ -361,4 +362,4 @@ scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time"
361
362
 
362
363
  scalar URL @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc3986")
363
364
 
364
- scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
365
+ scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
package/src/index.js CHANGED
@@ -211,8 +211,9 @@ type SeenLog {
211
211
  isCurrentEndUser: Boolean!
212
212
  }
213
213
 
214
- type Subscriptions @authorize(policy: "enduser") {
215
- dialogEvents(dialogId: UUID!): DialogEventPayload!
214
+ type Subscriptions {
215
+ "Requires a dialog token in the 'DigDir-Dialog-Token' header."
216
+ dialogEvents(dialogId: UUID!): DialogEventPayload! @authorize(policy: "enduserSubscription", apply: VALIDATION)
216
217
  }
217
218
 
218
219
  type Transmission {