@digdir/dialogporten-schema 1.117.3-64f0e23 → 1.117.3-c3248af

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.117.3-64f0e23",
3
+ "version": "1.117.3-c3248af",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "24"
@@ -10,7 +10,7 @@ type Queries @authorize(policy: "enduser") {
10
10
  searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
11
11
  limits: Limits!
12
12
  parties: [AuthorizedParty!]!
13
- serviceResources: ServiceResourceMetadata!
13
+ serviceResources(parties: [String!], includeUnauthorized: Boolean! = false): ServiceResourceMetadata!
14
14
  }
15
15
 
16
16
  type Mutations @authorize(policy: "enduser") {
@@ -566,6 +566,8 @@ type ServiceResourceMetadataServiceOwner {
566
566
 
567
567
  type ServiceResourceMetadataServiceResource {
568
568
  id: String!
569
+ resourceType: String!
570
+ status: String!
569
571
  isDelegable: Boolean!
570
572
  minimumAuthenticationLevel: Int!
571
573
  name: [Localization!]!
package/src/index.js CHANGED
@@ -10,7 +10,7 @@ type Queries @authorize(policy: "enduser") {
10
10
  searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
11
11
  limits: Limits!
12
12
  parties: [AuthorizedParty!]!
13
- serviceResources: ServiceResourceMetadata!
13
+ serviceResources(parties: [String!], includeUnauthorized: Boolean! = false): ServiceResourceMetadata!
14
14
  }
15
15
 
16
16
  type Mutations @authorize(policy: "enduser") {
@@ -566,6 +566,8 @@ type ServiceResourceMetadataServiceOwner {
566
566
 
567
567
  type ServiceResourceMetadataServiceResource {
568
568
  id: String!
569
+ resourceType: String!
570
+ status: String!
569
571
  isDelegable: Boolean!
570
572
  minimumAuthenticationLevel: Int!
571
573
  name: [Localization!]!
@@ -712,6 +712,121 @@
712
712
  },
713
713
  "type": "object"
714
714
  },
715
+ "V1CommonServiceResourceMetadata_ServiceResourceMetadataAccessPackage": {
716
+ "additionalProperties": false,
717
+ "properties": {
718
+ "links": {
719
+ "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
720
+ },
721
+ "name": {
722
+ "items": {
723
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
724
+ },
725
+ "nullable": true,
726
+ "type": "array"
727
+ },
728
+ "urn": {
729
+ "type": "string"
730
+ }
731
+ },
732
+ "type": "object"
733
+ },
734
+ "V1CommonServiceResourceMetadata_ServiceResourceMetadataItem": {
735
+ "additionalProperties": false,
736
+ "properties": {
737
+ "accessPackages": {
738
+ "items": {
739
+ "$ref": "#/components/schemas/V1CommonServiceResourceMetadata_ServiceResourceMetadataAccessPackage"
740
+ },
741
+ "nullable": true,
742
+ "type": "array"
743
+ },
744
+ "roles": {
745
+ "items": {
746
+ "$ref": "#/components/schemas/V1CommonServiceResourceMetadata_ServiceResourceMetadataRole"
747
+ },
748
+ "nullable": true,
749
+ "type": "array"
750
+ },
751
+ "serviceOwner": {
752
+ "$ref": "#/components/schemas/V1CommonServiceResourceMetadata_ServiceResourceMetadataServiceOwner"
753
+ },
754
+ "serviceResource": {
755
+ "$ref": "#/components/schemas/V1CommonServiceResourceMetadata_ServiceResourceMetadataServiceResource"
756
+ }
757
+ },
758
+ "type": "object"
759
+ },
760
+ "V1CommonServiceResourceMetadata_ServiceResourceMetadataRole": {
761
+ "additionalProperties": false,
762
+ "properties": {
763
+ "links": {
764
+ "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
765
+ },
766
+ "name": {
767
+ "items": {
768
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
769
+ },
770
+ "nullable": true,
771
+ "type": "array"
772
+ },
773
+ "urn": {
774
+ "type": "string"
775
+ }
776
+ },
777
+ "type": "object"
778
+ },
779
+ "V1CommonServiceResourceMetadata_ServiceResourceMetadataServiceOwner": {
780
+ "additionalProperties": false,
781
+ "properties": {
782
+ "code": {
783
+ "type": "string"
784
+ },
785
+ "name": {
786
+ "items": {
787
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
788
+ },
789
+ "nullable": true,
790
+ "type": "array"
791
+ },
792
+ "orgNumber": {
793
+ "type": "string"
794
+ }
795
+ },
796
+ "type": "object"
797
+ },
798
+ "V1CommonServiceResourceMetadata_ServiceResourceMetadataServiceResource": {
799
+ "additionalProperties": false,
800
+ "properties": {
801
+ "id": {
802
+ "type": "string"
803
+ },
804
+ "isDelegable": {
805
+ "type": "boolean"
806
+ },
807
+ "links": {
808
+ "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
809
+ },
810
+ "minimumAuthenticationLevel": {
811
+ "format": "int32",
812
+ "type": "integer"
813
+ },
814
+ "name": {
815
+ "items": {
816
+ "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
817
+ },
818
+ "nullable": true,
819
+ "type": "array"
820
+ },
821
+ "resourceType": {
822
+ "type": "string"
823
+ },
824
+ "status": {
825
+ "type": "string"
826
+ }
827
+ },
828
+ "type": "object"
829
+ },
715
830
  "V1EndUserCommon_AcceptedLanguage": {
716
831
  "additionalProperties": false,
717
832
  "properties": {
@@ -2673,6 +2788,33 @@
2673
2788
  },
2674
2789
  "type": "object"
2675
2790
  },
2791
+ "V1EndUserServiceResourcesQueriesSearch_AuthorizedServiceResources": {
2792
+ "additionalProperties": false,
2793
+ "properties": {
2794
+ "items": {
2795
+ "items": {
2796
+ "$ref": "#/components/schemas/V1CommonServiceResourceMetadata_ServiceResourceMetadataItem"
2797
+ },
2798
+ "nullable": true,
2799
+ "type": "array"
2800
+ }
2801
+ },
2802
+ "type": "object"
2803
+ },
2804
+ "V1EndUserServiceResourcesSearch_AuthorizedServiceResourcesRequest": {
2805
+ "additionalProperties": false,
2806
+ "properties": {
2807
+ "acceptedLanguages": {
2808
+ "nullable": true,
2809
+ "oneOf": [
2810
+ {
2811
+ "$ref": "#/components/schemas/V1EndUserCommon_AcceptedLanguages"
2812
+ }
2813
+ ]
2814
+ }
2815
+ },
2816
+ "type": "object"
2817
+ },
2676
2818
  "V1MetadataLimitsQueriesGet_EndUserSearchLimits": {
2677
2819
  "additionalProperties": false,
2678
2820
  "properties": {
@@ -2744,116 +2886,7 @@
2744
2886
  "properties": {
2745
2887
  "items": {
2746
2888
  "items": {
2747
- "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataItem"
2748
- },
2749
- "nullable": true,
2750
- "type": "array"
2751
- }
2752
- },
2753
- "type": "object"
2754
- },
2755
- "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataAccessPackage": {
2756
- "additionalProperties": false,
2757
- "properties": {
2758
- "links": {
2759
- "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
2760
- },
2761
- "name": {
2762
- "items": {
2763
- "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
2764
- },
2765
- "nullable": true,
2766
- "type": "array"
2767
- },
2768
- "urn": {
2769
- "type": "string"
2770
- }
2771
- },
2772
- "type": "object"
2773
- },
2774
- "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataItem": {
2775
- "additionalProperties": false,
2776
- "properties": {
2777
- "accessPackages": {
2778
- "items": {
2779
- "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataAccessPackage"
2780
- },
2781
- "nullable": true,
2782
- "type": "array"
2783
- },
2784
- "roles": {
2785
- "items": {
2786
- "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataRole"
2787
- },
2788
- "nullable": true,
2789
- "type": "array"
2790
- },
2791
- "serviceOwner": {
2792
- "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataServiceOwner"
2793
- },
2794
- "serviceResource": {
2795
- "$ref": "#/components/schemas/V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataServiceResource"
2796
- }
2797
- },
2798
- "type": "object"
2799
- },
2800
- "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataRole": {
2801
- "additionalProperties": false,
2802
- "properties": {
2803
- "links": {
2804
- "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
2805
- },
2806
- "name": {
2807
- "items": {
2808
- "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
2809
- },
2810
- "nullable": true,
2811
- "type": "array"
2812
- },
2813
- "urn": {
2814
- "type": "string"
2815
- }
2816
- },
2817
- "type": "object"
2818
- },
2819
- "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataServiceOwner": {
2820
- "additionalProperties": false,
2821
- "properties": {
2822
- "code": {
2823
- "type": "string"
2824
- },
2825
- "name": {
2826
- "items": {
2827
- "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
2828
- },
2829
- "nullable": true,
2830
- "type": "array"
2831
- },
2832
- "orgNumber": {
2833
- "type": "string"
2834
- }
2835
- },
2836
- "type": "object"
2837
- },
2838
- "V1MetadataServiceResourcesQueriesGet_ServiceResourceMetadataServiceResource": {
2839
- "additionalProperties": false,
2840
- "properties": {
2841
- "id": {
2842
- "type": "string"
2843
- },
2844
- "isDelegable": {
2845
- "type": "boolean"
2846
- },
2847
- "links": {
2848
- "$ref": "#/components/schemas/DigdirDomainDialogportenApplicationCommon_Link"
2849
- },
2850
- "minimumAuthenticationLevel": {
2851
- "format": "int32",
2852
- "type": "integer"
2853
- },
2854
- "name": {
2855
- "items": {
2856
- "$ref": "#/components/schemas/V1CommonLocalizations_Localization"
2889
+ "$ref": "#/components/schemas/V1CommonServiceResourceMetadata_ServiceResourceMetadataItem"
2857
2890
  },
2858
2891
  "nullable": true,
2859
2892
  "type": "array"
@@ -8475,6 +8508,88 @@
8475
8508
  ]
8476
8509
  }
8477
8510
  },
8511
+ "/api/v1/enduser/serviceresources": {
8512
+ "get": {
8513
+ "description": "Returns the same service resource metadata as the public metadata endpoint, filtered to the resources the calling end user is authorized to use. Optionally narrowed by one or more party URNs.",
8514
+ "operationId": "V1EndUserServiceResourcesSearch_AuthorizedServiceResources",
8515
+ "parameters": [
8516
+ {
8517
+ "description": "Filter by one or more party URNs. Parties the caller is not authorized for are silently ignored.",
8518
+ "explode": true,
8519
+ "in": "query",
8520
+ "name": "party",
8521
+ "schema": {
8522
+ "items": {
8523
+ "type": "string"
8524
+ },
8525
+ "nullable": true,
8526
+ "type": "array"
8527
+ },
8528
+ "style": "form"
8529
+ },
8530
+ {
8531
+ "in": "header",
8532
+ "name": "accept-Language",
8533
+ "schema": {
8534
+ "nullable": true,
8535
+ "oneOf": [
8536
+ {
8537
+ "$ref": "#/components/schemas/V1EndUserCommon_AcceptedLanguages"
8538
+ }
8539
+ ]
8540
+ }
8541
+ }
8542
+ ],
8543
+ "responses": {
8544
+ "200": {
8545
+ "content": {
8546
+ "application/json": {
8547
+ "schema": {
8548
+ "$ref": "#/components/schemas/V1EndUserServiceResourcesQueriesSearch_AuthorizedServiceResources"
8549
+ }
8550
+ }
8551
+ },
8552
+ "description": "Authorized service resource metadata."
8553
+ },
8554
+ "401": {
8555
+ "description": "Unauthorized"
8556
+ },
8557
+ "403": {
8558
+ "description": "Forbidden"
8559
+ },
8560
+ "503": {
8561
+ "content": {
8562
+ "text/plain": {
8563
+ "schema": {
8564
+ "example": "Service Unavailable",
8565
+ "type": "string"
8566
+ }
8567
+ }
8568
+ },
8569
+ "description": "Service Unavailable, used when Dialogporten is in maintenance mode",
8570
+ "headers": {
8571
+ "Retry-After": {
8572
+ "description": "Delay before retrying the request. Datetime format RFC1123",
8573
+ "schema": {
8574
+ "type": "string"
8575
+ }
8576
+ }
8577
+ }
8578
+ }
8579
+ },
8580
+ "security": [
8581
+ {
8582
+ "JWTBearerAuth": [
8583
+ "digdir:dialogporten"
8584
+ ]
8585
+ }
8586
+ ],
8587
+ "summary": "Gets the service resources the authenticated end user is authorized to use.",
8588
+ "tags": [
8589
+ "Enduser"
8590
+ ]
8591
+ }
8592
+ },
8478
8593
  "/api/v1/metadata/limits": {
8479
8594
  "get": {
8480
8595
  "description": "Returns the active limits for EndUser and ServiceOwner search filters.",