@digdir/dialogporten-schema 1.124.0 → 1.124.2-2561a85

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/swagger.verified.json +186 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/dialogporten-schema",
3
- "version": "1.124.0",
3
+ "version": "1.124.2-2561a85",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "24"
@@ -195,6 +195,20 @@
195
195
  "Excluded"
196
196
  ]
197
197
  },
198
+ "DialogsEntitiesAuthorizationContexts_DialogPartyCheckAccessRestriction": {
199
+ "description": "",
200
+ "enum": [
201
+ "None",
202
+ "DirectAndHierarchy",
203
+ "ClientDelegation"
204
+ ],
205
+ "type": "string",
206
+ "x-enumNames": [
207
+ "None",
208
+ "DirectAndHierarchy",
209
+ "ClientDelegation"
210
+ ]
211
+ },
198
212
  "DialogsEntitiesTransmissions_DialogTransmissionType": {
199
213
  "description": "",
200
214
  "enum": [
@@ -573,12 +587,17 @@
573
587
  "nullable": true,
574
588
  "type": "string"
575
589
  },
576
- "includeDialogParty": {
577
- "description": "Whether the dialog\u0027s own party is included in the evaluation in addition to \u0022parties\u0022.",
578
- "type": "boolean"
590
+ "dialogPartyChecks": {
591
+ "description": "**Experimental:** This is part of an experimental feature that may change or be removed without a major version bump. See https://github.com/Altinn/dialogporten/issues/3978 for details.\n\nChecks evaluated on behalf of the dialog\u0027s own party. Access is granted if any check, or any entry in\n\u0022parties\u0022, permits. An empty list means the dialog\u0027s party is not evaluated. Together with \u0022parties\u0022,\nat least 1 and at most 4 entries.",
592
+ "items": {
593
+ "$ref": "#/components/schemas/V1CommonAuthorizationContexts_DialogPartyCheck"
594
+ },
595
+ "nullable": true,
596
+ "type": "array",
597
+ "x-experimental": true
579
598
  },
580
599
  "parties": {
581
- "description": "The parties to evaluate access on behalf of. Access is granted if the end user has access to the\neffective resource for at least one of the parties. Must contain at least one party unless\n\u0022includeDialogParty\u0022 is true.",
600
+ "description": "Other parties than the dialog\u0027s to evaluate access on behalf of, each at its own party and without access\nrestriction. Access is granted if the end user has access to the effective resource for at least one of\nthe parties, or if any of \u0022dialogPartyChecks\u0022 permits. Cannot contain the dialog\u0027s own party; use a\n\u0022dialogPartyChecks\u0022 entry with access restriction \u0022None\u0022 for that. Together with \u0022dialogPartyChecks\u0022, at\nleast 1 and at most 4 entries.",
582
601
  "example": "urn:altinn:organization:identifier-no:912345678",
583
602
  "items": {
584
603
  "type": "string"
@@ -610,6 +629,40 @@
610
629
  "type": "object",
611
630
  "x-experimental": true
612
631
  },
632
+ "V1CommonAuthorizationContexts_DialogPartyCheck": {
633
+ "additionalProperties": false,
634
+ "description": "**Experimental:** This is part of an experimental feature that may change or be removed without a major version bump. See https://github.com/Altinn/dialogporten/issues/3978 for details.",
635
+ "properties": {
636
+ "accessRestriction": {
637
+ "description": "Required. Restricts how the end user\u0027s access at the dialog\u0027s party must have been obtained for this\ncheck to grant access: \u0022none\u0022 accepts all access, \u0022directAndHierarchy\u0022 only access that does not pass\nthrough another organization (direct grants, ER roles and their role mappings at the dialog party, and\ninheritance from its main unit), and \u0022clientDelegation\u0022 only client delegations made through the\norganization given in \u0022viaParty\u0022.",
638
+ "oneOf": [
639
+ {
640
+ "$ref": "#/components/schemas/DialogsEntitiesAuthorizationContexts_DialogPartyCheckAccessRestriction"
641
+ }
642
+ ]
643
+ },
644
+ "action": {
645
+ "description": "The XACML action to evaluate for this check instead of the context\u0027s. If omitted, the context\u0027s \u0022action\u0022\nis used, or \u0022read\u0022 if the context sets none.",
646
+ "example": "readall",
647
+ "nullable": true,
648
+ "type": "string"
649
+ },
650
+ "serviceResource": {
651
+ "description": "A service resource to evaluate for this check instead of the context\u0027s. If omitted, the context\u0027s\n\u0022serviceResource\u0022 is used, or the dialog\u0027s own service resource if the context sets none. The same rules\napply as for the context\u0027s \u0022serviceResource\u0022, including that the service owner must have access to it.\nThe context\u0027s \u0022additionalResourceAttribute\u0022, if any, is layered on the resulting resource.",
652
+ "example": "urn:altinn:resource:some-other-service-identifier",
653
+ "nullable": true,
654
+ "type": "string"
655
+ },
656
+ "viaParty": {
657
+ "description": "The organization the end user\u0027s access must have been client delegated through. Required when\n\u0022accessRestriction\u0022 is \u0022clientDelegation\u0022, and not allowed otherwise. Cannot be the dialog\u0027s own party.",
658
+ "example": "urn:altinn:organization:identifier-no:912345678",
659
+ "nullable": true,
660
+ "type": "string"
661
+ }
662
+ },
663
+ "type": "object",
664
+ "x-experimental": true
665
+ },
613
666
  "V1CommonContent_ContentValue": {
614
667
  "additionalProperties": false,
615
668
  "properties": {
@@ -5489,12 +5542,17 @@
5489
5542
  "nullable": true,
5490
5543
  "type": "string"
5491
5544
  },
5492
- "includeDialogParty": {
5493
- "description": "Whether the dialog\u0027s own party is included in the evaluation in addition to \u0022parties\u0022.",
5494
- "type": "boolean"
5545
+ "dialogPartyChecks": {
5546
+ "description": "**Experimental:** This is part of an experimental feature that may change or be removed without a major version bump. See https://github.com/Altinn/dialogporten/issues/3978 for details.\n\nChecks evaluated on behalf of the dialog\u0027s own party. Access is granted if any check, or any entry in\n\u0022parties\u0022, permits. Empty when the dialog\u0027s party is not evaluated.",
5547
+ "items": {
5548
+ "$ref": "#/components/schemas/V1ServiceOwnerDialogsQueriesGet_DialogPartyCheck"
5549
+ },
5550
+ "nullable": true,
5551
+ "type": "array",
5552
+ "x-experimental": true
5495
5553
  },
5496
5554
  "parties": {
5497
- "description": "The parties access is evaluated on behalf of. Access is granted if the end user has access to the\neffective resource for at least one of the parties.",
5555
+ "description": "Other parties than the dialog\u0027s that access is evaluated on behalf of, each at its own party and without\naccess restriction. Access is granted if the end user has access to the effective resource for at least\none of the parties, or if any of \u0022dialogPartyChecks\u0022 permits.",
5498
5556
  "example": "urn:altinn:organization:identifier-no:912345678",
5499
5557
  "items": {
5500
5558
  "type": "string"
@@ -6196,6 +6254,40 @@
6196
6254
  },
6197
6255
  "type": "object"
6198
6256
  },
6257
+ "V1ServiceOwnerDialogsQueriesGet_DialogPartyCheck": {
6258
+ "additionalProperties": false,
6259
+ "description": "**Experimental:** This is part of an experimental feature that may change or be removed without a major version bump. See https://github.com/Altinn/dialogporten/issues/3978 for details.",
6260
+ "properties": {
6261
+ "accessRestriction": {
6262
+ "description": "Restricts how the end user\u0027s access at the dialog\u0027s party must have been obtained for this check to grant\naccess: \u0022none\u0022 accepts all access, \u0022directAndHierarchy\u0022 only access that does not pass through another\norganization, and \u0022clientDelegation\u0022 only client delegations made through the organization in \u0022viaParty\u0022.",
6263
+ "oneOf": [
6264
+ {
6265
+ "$ref": "#/components/schemas/DialogsEntitiesAuthorizationContexts_DialogPartyCheckAccessRestriction"
6266
+ }
6267
+ ]
6268
+ },
6269
+ "action": {
6270
+ "description": "The XACML action evaluated for this check instead of the context\u0027s. Null when not overridden.",
6271
+ "example": "readall",
6272
+ "nullable": true,
6273
+ "type": "string"
6274
+ },
6275
+ "serviceResource": {
6276
+ "description": "The service resource evaluated for this check instead of the context\u0027s. Null when not overridden.",
6277
+ "example": "urn:altinn:resource:some-other-service-identifier",
6278
+ "nullable": true,
6279
+ "type": "string"
6280
+ },
6281
+ "viaParty": {
6282
+ "description": "The organization the end user\u0027s access must have been client delegated through. Only set when\n\u0022accessRestriction\u0022 is \u0022clientDelegation\u0022.",
6283
+ "example": "urn:altinn:organization:identifier-no:912345678",
6284
+ "nullable": true,
6285
+ "type": "string"
6286
+ }
6287
+ },
6288
+ "type": "object",
6289
+ "x-experimental": true
6290
+ },
6199
6291
  "V1ServiceOwnerDialogsQueriesGet_DialogSeenLog": {
6200
6292
  "additionalProperties": false,
6201
6293
  "properties": {
@@ -6692,12 +6784,17 @@
6692
6784
  "nullable": true,
6693
6785
  "type": "string"
6694
6786
  },
6695
- "includeDialogParty": {
6696
- "description": "Whether the dialog\u0027s own party is included in the evaluation in addition to \u0022parties\u0022.",
6697
- "type": "boolean"
6787
+ "dialogPartyChecks": {
6788
+ "description": "**Experimental:** This is part of an experimental feature that may change or be removed without a major version bump. See https://github.com/Altinn/dialogporten/issues/3978 for details.\n\nChecks evaluated on behalf of the dialog\u0027s own party. Access is granted if any check, or any entry in\n\u0022parties\u0022, permits. Empty when the dialog\u0027s party is not evaluated.",
6789
+ "items": {
6790
+ "$ref": "#/components/schemas/V1ServiceOwnerDialogsQueriesGetTransmission_DialogPartyCheck"
6791
+ },
6792
+ "nullable": true,
6793
+ "type": "array",
6794
+ "x-experimental": true
6698
6795
  },
6699
6796
  "parties": {
6700
- "description": "The parties access is evaluated on behalf of. Access is granted if the end user has access to the\neffective resource for at least one of the parties.",
6797
+ "description": "Other parties than the dialog\u0027s that access is evaluated on behalf of, each at its own party and without\naccess restriction. Access is granted if the end user has access to the effective resource for at least\none of the parties, or if any of \u0022dialogPartyChecks\u0022 permits.",
6701
6798
  "example": "urn:altinn:organization:identifier-no:912345678",
6702
6799
  "items": {
6703
6800
  "type": "string"
@@ -6761,6 +6858,40 @@
6761
6858
  },
6762
6859
  "type": "object"
6763
6860
  },
6861
+ "V1ServiceOwnerDialogsQueriesGetTransmission_DialogPartyCheck": {
6862
+ "additionalProperties": false,
6863
+ "description": "**Experimental:** This is part of an experimental feature that may change or be removed without a major version bump. See https://github.com/Altinn/dialogporten/issues/3978 for details.",
6864
+ "properties": {
6865
+ "accessRestriction": {
6866
+ "description": "Restricts how the end user\u0027s access at the dialog\u0027s party must have been obtained for this check to grant\naccess: \u0022none\u0022 accepts all access, \u0022directAndHierarchy\u0022 only access that does not pass through another\norganization, and \u0022clientDelegation\u0022 only client delegations made through the organization in \u0022viaParty\u0022.",
6867
+ "oneOf": [
6868
+ {
6869
+ "$ref": "#/components/schemas/DialogsEntitiesAuthorizationContexts_DialogPartyCheckAccessRestriction"
6870
+ }
6871
+ ]
6872
+ },
6873
+ "action": {
6874
+ "description": "The XACML action evaluated for this check instead of the context\u0027s. Null when not overridden.",
6875
+ "example": "readall",
6876
+ "nullable": true,
6877
+ "type": "string"
6878
+ },
6879
+ "serviceResource": {
6880
+ "description": "The service resource evaluated for this check instead of the context\u0027s. Null when not overridden.",
6881
+ "example": "urn:altinn:resource:some-other-service-identifier",
6882
+ "nullable": true,
6883
+ "type": "string"
6884
+ },
6885
+ "viaParty": {
6886
+ "description": "The organization the end user\u0027s access must have been client delegated through. Only set when\n\u0022accessRestriction\u0022 is \u0022clientDelegation\u0022.",
6887
+ "example": "urn:altinn:organization:identifier-no:912345678",
6888
+ "nullable": true,
6889
+ "type": "string"
6890
+ }
6891
+ },
6892
+ "type": "object",
6893
+ "x-experimental": true
6894
+ },
6764
6895
  "V1ServiceOwnerDialogsQueriesGetTransmission_NavigationalAction": {
6765
6896
  "additionalProperties": false,
6766
6897
  "properties": {
@@ -7474,12 +7605,17 @@
7474
7605
  "nullable": true,
7475
7606
  "type": "string"
7476
7607
  },
7477
- "includeDialogParty": {
7478
- "description": "Whether the dialog\u0027s own party is included in the evaluation in addition to \u0022parties\u0022.",
7479
- "type": "boolean"
7608
+ "dialogPartyChecks": {
7609
+ "description": "**Experimental:** This is part of an experimental feature that may change or be removed without a major version bump. See https://github.com/Altinn/dialogporten/issues/3978 for details.\n\nChecks evaluated on behalf of the dialog\u0027s own party. Access is granted if any check, or any entry in\n\u0022parties\u0022, permits. Empty when the dialog\u0027s party is not evaluated.",
7610
+ "items": {
7611
+ "$ref": "#/components/schemas/V1ServiceOwnerDialogsQueriesSearchTransmissions_DialogPartyCheck"
7612
+ },
7613
+ "nullable": true,
7614
+ "type": "array",
7615
+ "x-experimental": true
7480
7616
  },
7481
7617
  "parties": {
7482
- "description": "The parties access is evaluated on behalf of. Access is granted if the end user has access to the\neffective resource for at least one of the parties.",
7618
+ "description": "Other parties than the dialog\u0027s that access is evaluated on behalf of, each at its own party and without\naccess restriction. Access is granted if the end user has access to the effective resource for at least\none of the parties, or if any of \u0022dialogPartyChecks\u0022 permits.",
7483
7619
  "example": "urn:altinn:organization:identifier-no:912345678",
7484
7620
  "items": {
7485
7621
  "type": "string"
@@ -7543,6 +7679,40 @@
7543
7679
  },
7544
7680
  "type": "object"
7545
7681
  },
7682
+ "V1ServiceOwnerDialogsQueriesSearchTransmissions_DialogPartyCheck": {
7683
+ "additionalProperties": false,
7684
+ "description": "**Experimental:** This is part of an experimental feature that may change or be removed without a major version bump. See https://github.com/Altinn/dialogporten/issues/3978 for details.",
7685
+ "properties": {
7686
+ "accessRestriction": {
7687
+ "description": "Restricts how the end user\u0027s access at the dialog\u0027s party must have been obtained for this check to grant\naccess: \u0022none\u0022 accepts all access, \u0022directAndHierarchy\u0022 only access that does not pass through another\norganization, and \u0022clientDelegation\u0022 only client delegations made through the organization in \u0022viaParty\u0022.",
7688
+ "oneOf": [
7689
+ {
7690
+ "$ref": "#/components/schemas/DialogsEntitiesAuthorizationContexts_DialogPartyCheckAccessRestriction"
7691
+ }
7692
+ ]
7693
+ },
7694
+ "action": {
7695
+ "description": "The XACML action evaluated for this check instead of the context\u0027s. Null when not overridden.",
7696
+ "example": "readall",
7697
+ "nullable": true,
7698
+ "type": "string"
7699
+ },
7700
+ "serviceResource": {
7701
+ "description": "The service resource evaluated for this check instead of the context\u0027s. Null when not overridden.",
7702
+ "example": "urn:altinn:resource:some-other-service-identifier",
7703
+ "nullable": true,
7704
+ "type": "string"
7705
+ },
7706
+ "viaParty": {
7707
+ "description": "The organization the end user\u0027s access must have been client delegated through. Only set when\n\u0022accessRestriction\u0022 is \u0022clientDelegation\u0022.",
7708
+ "example": "urn:altinn:organization:identifier-no:912345678",
7709
+ "nullable": true,
7710
+ "type": "string"
7711
+ }
7712
+ },
7713
+ "type": "object",
7714
+ "x-experimental": true
7715
+ },
7546
7716
  "V1ServiceOwnerDialogsQueriesSearchTransmissions_NavigationalAction": {
7547
7717
  "additionalProperties": false,
7548
7718
  "properties": {