@digdir/dialogporten-schema 1.107.0 → 1.108.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/README.md CHANGED
@@ -5,7 +5,7 @@ This npm package contains both the Swagger and GraphQL schema definitions for th
5
5
  ## Description
6
6
  This package includes:
7
7
  - **GraphQL Schema (schema.verified.graphql)**: Defines the types, queries, and mutations available in the Dialogporten GraphQL API.
8
- - **OpenAPI Specification ((swagger.verified.json))**: Provides a detailed description of the RESTful endpoints, parameters, and models used in the Dialogporten API.
8
+ - **OpenAPI Specification (swagger.verified.json)**: Provides a detailed description of the RESTful endpoints, parameters, and models used in the Dialogporten API.
9
9
 
10
10
  ## Usage
11
11
  To use this package, include it in your project dependencies using npm:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/dialogporten-schema",
3
- "version": "1.107.0",
3
+ "version": "1.108.0",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "24"
@@ -173,6 +173,7 @@ type Content {
173
173
  type ContentValue {
174
174
  value: [Localization!]!
175
175
  mediaType: String!
176
+ isAuthorized: Boolean
176
177
  }
177
178
 
178
179
  type Dialog {
@@ -274,6 +275,7 @@ type DialogEventPayload {
274
275
  type DialogLookup {
275
276
  dialogId: UUID!
276
277
  instanceRef: String!
278
+ party: String!
277
279
  serviceResource: DialogLookupServiceResource!
278
280
  serviceOwner: DialogLookupServiceOwner!
279
281
  authorizationEvidence: DialogLookupAuthorizationEvidence!
@@ -798,4 +800,4 @@ scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time"
798
800
 
799
801
  scalar URL @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc3986")
800
802
 
801
- scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
803
+ scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
package/src/index.js CHANGED
@@ -173,6 +173,7 @@ type Content {
173
173
  type ContentValue {
174
174
  value: [Localization!]!
175
175
  mediaType: String!
176
+ isAuthorized: Boolean
176
177
  }
177
178
 
178
179
  type Dialog {
@@ -274,6 +275,7 @@ type DialogEventPayload {
274
275
  type DialogLookup {
275
276
  dialogId: UUID!
276
277
  instanceRef: String!
278
+ party: String!
277
279
  serviceResource: DialogLookupServiceResource!
278
280
  serviceOwner: DialogLookupServiceOwner!
279
281
  authorizationEvidence: DialogLookupAuthorizationEvidence!
@@ -464,6 +464,11 @@
464
464
  "V1CommonContent_ContentValue": {
465
465
  "additionalProperties": false,
466
466
  "properties": {
467
+ "isAuthorized": {
468
+ "description": "True if the authenticated user is authorized for this content. If not, the endpoints will\nbe replaced with a fixed placeholder. Can be null if not applicable.\n ",
469
+ "nullable": true,
470
+ "type": "boolean"
471
+ },
467
472
  "mediaType": {
468
473
  "description": "Media type of the content, this can also indicate that the content is embeddable.",
469
474
  "type": "string"
@@ -492,6 +497,9 @@
492
497
  "instanceRef": {
493
498
  "type": "string"
494
499
  },
500
+ "party": {
501
+ "type": "string"
502
+ },
495
503
  "serviceOwner": {
496
504
  "$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupServiceOwner"
497
505
  },
@@ -617,6 +625,9 @@
617
625
  "nullable": true,
618
626
  "type": "array"
619
627
  },
628
+ "party": {
629
+ "type": "string"
630
+ },
620
631
  "serviceOwner": {
621
632
  "$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupServiceOwner"
622
633
  },
@@ -736,7 +747,7 @@
736
747
  ]
737
748
  },
738
749
  "mainContentReference": {
739
- "description": "Front-channel embedded content. Used to dynamically embed content in the frontend from an external URL.",
750
+ "description": "Front-channel embedded content. Used to dynamically embed content in the frontend from an external URL.\nContent value will be masked if the user is not authorized to read main content.",
740
751
  "nullable": true,
741
752
  "oneOf": [
742
753
  {
@@ -4502,7 +4513,7 @@
4502
4513
  ]
4503
4514
  },
4504
4515
  "mainContentReference": {
4505
- "description": "Front-channel embedded content. Used to dynamically embed content in the frontend from an external URL. Must be HTTPS.",
4516
+ "description": "Front-channel embedded content. Used to dynamically embed content in the frontend from an external URL. Must be HTTPS.\nIsAuthorized is evaluated only when you use the EndUserId query-parameter, otherwise it is null.",
4506
4517
  "nullable": true,
4507
4518
  "oneOf": [
4508
4519
  {
@@ -10938,4 +10949,4 @@
10938
10949
  }
10939
10950
  }
10940
10951
  }
10941
- }
10952
+ }