@digdir/dialogporten-schema 1.115.5 → 1.115.6-61fcf9a

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.115.5",
3
+ "version": "1.115.6-61fcf9a",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "24"
@@ -301,12 +301,18 @@ type DialogLookupAuthorizationEvidence {
301
301
  type DialogLookupAuthorizationEvidenceItem {
302
302
  grantType: DialogLookupGrantType!
303
303
  subject: String!
304
+ name: [Localization!]!
305
+ links: DialogLookupLinks
304
306
  }
305
307
 
306
308
  type DialogLookupForbidden implements DialogLookupError {
307
309
  message: String!
308
310
  }
309
311
 
312
+ type DialogLookupLinks {
313
+ metadata: String!
314
+ }
315
+
310
316
  type DialogLookupNotFound implements DialogLookupError {
311
317
  message: String!
312
318
  }
@@ -378,7 +384,7 @@ type Localization {
378
384
  languageCode: String!
379
385
  }
380
386
 
381
- type Mutations {
387
+ type Mutations @authorize(policy: "enduser") {
382
388
  setSystemLabel(input: SetSystemLabelInput!): SetSystemLabelPayload!
383
389
  bulkSetSystemLabels(input: BulkSetSystemLabelInput!): BulkSetSystemLabelPayload!
384
390
  }
@@ -389,6 +395,7 @@ type Queries @authorize(policy: "enduser") {
389
395
  searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
390
396
  limits: Limits!
391
397
  parties: [AuthorizedParty!]!
398
+ serviceResources: ServiceResourceMetadata!
392
399
  }
393
400
 
394
401
  type SearchContent {
@@ -504,6 +511,47 @@ type ServiceOwnerSearchLimits {
504
511
  maxExtendedStatusFilterValues: Int!
505
512
  }
506
513
 
514
+ type ServiceResourceMetadata {
515
+ items: [ServiceResourceMetadataItem!]!
516
+ }
517
+
518
+ type ServiceResourceMetadataAccessPackage {
519
+ urn: String!
520
+ name: [Localization!]!
521
+ links: ServiceResourceMetadataLinks!
522
+ }
523
+
524
+ type ServiceResourceMetadataItem {
525
+ serviceResource: ServiceResourceMetadataServiceResource!
526
+ roles: [ServiceResourceMetadataRole!]!
527
+ accessPackages: [ServiceResourceMetadataAccessPackage!]!
528
+ serviceOwner: ServiceResourceMetadataServiceOwner!
529
+ }
530
+
531
+ type ServiceResourceMetadataLinks {
532
+ metadata: String!
533
+ }
534
+
535
+ type ServiceResourceMetadataRole {
536
+ urn: String!
537
+ name: [Localization!]!
538
+ links: ServiceResourceMetadataLinks!
539
+ }
540
+
541
+ type ServiceResourceMetadataServiceOwner {
542
+ orgNumber: String!
543
+ code: String!
544
+ name: [Localization!]!
545
+ }
546
+
547
+ type ServiceResourceMetadataServiceResource {
548
+ id: String!
549
+ isDelegable: Boolean!
550
+ minimumAuthenticationLevel: Int!
551
+ name: [Localization!]!
552
+ links: ServiceResourceMetadataLinks!
553
+ }
554
+
507
555
  type SetSystemLabelConcurrencyError implements SetSystemLabelError {
508
556
  message: String!
509
557
  }
package/src/index.js CHANGED
@@ -301,12 +301,18 @@ type DialogLookupAuthorizationEvidence {
301
301
  type DialogLookupAuthorizationEvidenceItem {
302
302
  grantType: DialogLookupGrantType!
303
303
  subject: String!
304
+ name: [Localization!]!
305
+ links: DialogLookupLinks
304
306
  }
305
307
 
306
308
  type DialogLookupForbidden implements DialogLookupError {
307
309
  message: String!
308
310
  }
309
311
 
312
+ type DialogLookupLinks {
313
+ metadata: String!
314
+ }
315
+
310
316
  type DialogLookupNotFound implements DialogLookupError {
311
317
  message: String!
312
318
  }
@@ -378,7 +384,7 @@ type Localization {
378
384
  languageCode: String!
379
385
  }
380
386
 
381
- type Mutations {
387
+ type Mutations @authorize(policy: "enduser") {
382
388
  setSystemLabel(input: SetSystemLabelInput!): SetSystemLabelPayload!
383
389
  bulkSetSystemLabels(input: BulkSetSystemLabelInput!): BulkSetSystemLabelPayload!
384
390
  }
@@ -389,6 +395,7 @@ type Queries @authorize(policy: "enduser") {
389
395
  searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
390
396
  limits: Limits!
391
397
  parties: [AuthorizedParty!]!
398
+ serviceResources: ServiceResourceMetadata!
392
399
  }
393
400
 
394
401
  type SearchContent {
@@ -504,6 +511,47 @@ type ServiceOwnerSearchLimits {
504
511
  maxExtendedStatusFilterValues: Int!
505
512
  }
506
513
 
514
+ type ServiceResourceMetadata {
515
+ items: [ServiceResourceMetadataItem!]!
516
+ }
517
+
518
+ type ServiceResourceMetadataAccessPackage {
519
+ urn: String!
520
+ name: [Localization!]!
521
+ links: ServiceResourceMetadataLinks!
522
+ }
523
+
524
+ type ServiceResourceMetadataItem {
525
+ serviceResource: ServiceResourceMetadataServiceResource!
526
+ roles: [ServiceResourceMetadataRole!]!
527
+ accessPackages: [ServiceResourceMetadataAccessPackage!]!
528
+ serviceOwner: ServiceResourceMetadataServiceOwner!
529
+ }
530
+
531
+ type ServiceResourceMetadataLinks {
532
+ metadata: String!
533
+ }
534
+
535
+ type ServiceResourceMetadataRole {
536
+ urn: String!
537
+ name: [Localization!]!
538
+ links: ServiceResourceMetadataLinks!
539
+ }
540
+
541
+ type ServiceResourceMetadataServiceOwner {
542
+ orgNumber: String!
543
+ code: String!
544
+ name: [Localization!]!
545
+ }
546
+
547
+ type ServiceResourceMetadataServiceResource {
548
+ id: String!
549
+ isDelegable: Boolean!
550
+ minimumAuthenticationLevel: Int!
551
+ name: [Localization!]!
552
+ links: ServiceResourceMetadataLinks!
553
+ }
554
+
507
555
  type SetSystemLabelConcurrencyError implements SetSystemLabelError {
508
556
  message: String!
509
557
  }
@@ -143,6 +143,15 @@
143
143
  "Correction"
144
144
  ]
145
145
  },
146
+ "DigdirDomainDialogportenApplicationCommon_Link": {
147
+ "additionalProperties": false,
148
+ "properties": {
149
+ "metadata": {
150
+ "type": "string"
151
+ }
152
+ },
153
+ "type": "object"
154
+ },
146
155
  "Http_HttpVerb": {
147
156
  "description": "",
148
157
  "enum": [
@@ -549,6 +558,21 @@
549
558
  "grantType": {
550
559
  "$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupGrantType"
551
560
  },
561
+ "links": {
562
+ "nullable": true,
563
+ "oneOf": [
564
+ {
565
+ "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
566
+ }
567
+ ]
568
+ },
569
+ "name": {
570
+ "items": {
571
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
572
+ },
573
+ "nullable": true,
574
+ "type": "array"
575
+ },
552
576
  "subject": {
553
577
  "type": "string"
554
578
  }
@@ -2680,6 +2704,142 @@
2680
2704
  },
2681
2705
  "type": "object"
2682
2706
  },
2707
+ "V1MetadataServiceResourcesGet_ServiceResourceMetadataRequest": {
2708
+ "additionalProperties": false,
2709
+ "properties": {
2710
+ "acceptedLanguages": {
2711
+ "nullable": true,
2712
+ "oneOf": [
2713
+ {
2714
+ "$ref": "#/components/schemas/V1EndUserCommon_AcceptedLanguages"
2715
+ }
2716
+ ]
2717
+ }
2718
+ },
2719
+ "type": "object"
2720
+ },
2721
+ "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadata": {
2722
+ "additionalProperties": false,
2723
+ "properties": {
2724
+ "items": {
2725
+ "items": {
2726
+ "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataItem"
2727
+ },
2728
+ "nullable": true,
2729
+ "type": "array"
2730
+ }
2731
+ },
2732
+ "type": "object"
2733
+ },
2734
+ "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataAccessPackage": {
2735
+ "additionalProperties": false,
2736
+ "properties": {
2737
+ "links": {
2738
+ "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
2739
+ },
2740
+ "name": {
2741
+ "items": {
2742
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
2743
+ },
2744
+ "nullable": true,
2745
+ "type": "array"
2746
+ },
2747
+ "urn": {
2748
+ "type": "string"
2749
+ }
2750
+ },
2751
+ "type": "object"
2752
+ },
2753
+ "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataItem": {
2754
+ "additionalProperties": false,
2755
+ "properties": {
2756
+ "accessPackages": {
2757
+ "items": {
2758
+ "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataAccessPackage"
2759
+ },
2760
+ "nullable": true,
2761
+ "type": "array"
2762
+ },
2763
+ "roles": {
2764
+ "items": {
2765
+ "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataRole"
2766
+ },
2767
+ "nullable": true,
2768
+ "type": "array"
2769
+ },
2770
+ "serviceOwner": {
2771
+ "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataServiceOwner"
2772
+ },
2773
+ "serviceResource": {
2774
+ "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataServiceResource"
2775
+ }
2776
+ },
2777
+ "type": "object"
2778
+ },
2779
+ "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataRole": {
2780
+ "additionalProperties": false,
2781
+ "properties": {
2782
+ "links": {
2783
+ "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
2784
+ },
2785
+ "name": {
2786
+ "items": {
2787
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
2788
+ },
2789
+ "nullable": true,
2790
+ "type": "array"
2791
+ },
2792
+ "urn": {
2793
+ "type": "string"
2794
+ }
2795
+ },
2796
+ "type": "object"
2797
+ },
2798
+ "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataServiceOwner": {
2799
+ "additionalProperties": false,
2800
+ "properties": {
2801
+ "code": {
2802
+ "type": "string"
2803
+ },
2804
+ "name": {
2805
+ "items": {
2806
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
2807
+ },
2808
+ "nullable": true,
2809
+ "type": "array"
2810
+ },
2811
+ "orgNumber": {
2812
+ "type": "string"
2813
+ }
2814
+ },
2815
+ "type": "object"
2816
+ },
2817
+ "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataServiceResource": {
2818
+ "additionalProperties": false,
2819
+ "properties": {
2820
+ "id": {
2821
+ "type": "string"
2822
+ },
2823
+ "isDelegable": {
2824
+ "type": "boolean"
2825
+ },
2826
+ "links": {
2827
+ "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
2828
+ },
2829
+ "minimumAuthenticationLevel": {
2830
+ "format": "int32",
2831
+ "type": "integer"
2832
+ },
2833
+ "name": {
2834
+ "items": {
2835
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
2836
+ },
2837
+ "nullable": true,
2838
+ "type": "array"
2839
+ }
2840
+ },
2841
+ "type": "object"
2842
+ },
2683
2843
  "V1ServiceOwnerCommonActors_Actor": {
2684
2844
  "additionalProperties": false,
2685
2845
  "properties": {
@@ -8339,6 +8499,61 @@
8339
8499
  ]
8340
8500
  }
8341
8501
  },
8502
+ "/api/v1/metadata/serviceresources": {
8503
+ "get": {
8504
+ "description": "Returns public service resource metadata with related service owner, role, and access package metadata.",
8505
+ "operationId": "V1MetadataServiceResourcesGet_ServiceResourceMetadata",
8506
+ "parameters": [
8507
+ {
8508
+ "in": "header",
8509
+ "name": "accept-Language",
8510
+ "schema": {
8511
+ "nullable": true,
8512
+ "oneOf": [
8513
+ {
8514
+ "$ref": "#/components/schemas/V1EndUserCommon_AcceptedLanguages"
8515
+ }
8516
+ ]
8517
+ }
8518
+ }
8519
+ ],
8520
+ "responses": {
8521
+ "200": {
8522
+ "content": {
8523
+ "application/json": {
8524
+ "schema": {
8525
+ "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadata"
8526
+ }
8527
+ }
8528
+ },
8529
+ "description": "Service resource metadata."
8530
+ },
8531
+ "503": {
8532
+ "content": {
8533
+ "text/plain": {
8534
+ "schema": {
8535
+ "example": "Service Unavailable",
8536
+ "type": "string"
8537
+ }
8538
+ }
8539
+ },
8540
+ "description": "Service Unavailable, used when Dialogporten is in maintenance mode",
8541
+ "headers": {
8542
+ "Retry-After": {
8543
+ "description": "Delay before retrying the request. Datetime format RFC1123",
8544
+ "schema": {
8545
+ "type": "string"
8546
+ }
8547
+ }
8548
+ }
8549
+ }
8550
+ },
8551
+ "summary": "Gets service resources currently in use in Dialogporten.",
8552
+ "tags": [
8553
+ "Metadata"
8554
+ ]
8555
+ }
8556
+ },
8342
8557
  "/api/v1/serviceowner/dialoglookup": {
8343
8558
  "get": {
8344
8559
  "description": "Resolves dialog metadata for a supported instance reference in service owner context.",