@digdir/dialogporten-schema 1.106.2 → 1.107.0-7971e5b
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 +1 -1
- package/schema.verified.graphql +66 -1
- package/src/index.js +65 -0
- package/swagger.verified.json +382 -3
package/package.json
CHANGED
package/schema.verified.graphql
CHANGED
|
@@ -12,6 +12,10 @@ interface DialogByIdError {
|
|
|
12
12
|
message: String!
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
interface DialogLookupError {
|
|
16
|
+
message: String!
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
interface SearchDialogError {
|
|
16
20
|
message: String!
|
|
17
21
|
}
|
|
@@ -169,6 +173,7 @@ type Content {
|
|
|
169
173
|
type ContentValue {
|
|
170
174
|
value: [Localization!]!
|
|
171
175
|
mediaType: String!
|
|
176
|
+
isAuthorized: Boolean
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
type Dialog {
|
|
@@ -267,6 +272,58 @@ type DialogEventPayload {
|
|
|
267
272
|
type: DialogEventType!
|
|
268
273
|
}
|
|
269
274
|
|
|
275
|
+
type DialogLookup {
|
|
276
|
+
dialogId: UUID!
|
|
277
|
+
instanceRef: String!
|
|
278
|
+
serviceResource: DialogLookupServiceResource!
|
|
279
|
+
serviceOwner: DialogLookupServiceOwner!
|
|
280
|
+
authorizationEvidence: DialogLookupAuthorizationEvidence!
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
type DialogLookupAuthorizationEvidence {
|
|
284
|
+
minimumAuthenticationLevel: Int!
|
|
285
|
+
currentAuthenticationLevel: Int!
|
|
286
|
+
viaRole: Boolean!
|
|
287
|
+
viaAccessPackage: Boolean!
|
|
288
|
+
viaResourceDelegation: Boolean!
|
|
289
|
+
viaInstanceDelegation: Boolean!
|
|
290
|
+
evidence: [DialogLookupAuthorizationEvidenceItem!]!
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
type DialogLookupAuthorizationEvidenceItem {
|
|
294
|
+
grantType: DialogLookupGrantType!
|
|
295
|
+
subject: String!
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
type DialogLookupForbidden implements DialogLookupError {
|
|
299
|
+
message: String!
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
type DialogLookupNotFound implements DialogLookupError {
|
|
303
|
+
message: String!
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
type DialogLookupPayload {
|
|
307
|
+
lookup: DialogLookup
|
|
308
|
+
errors: [DialogLookupError!]!
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
type DialogLookupServiceOwner {
|
|
312
|
+
orgNumber: String!
|
|
313
|
+
code: String!
|
|
314
|
+
name: [Localization!]!
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
type DialogLookupServiceResource {
|
|
318
|
+
id: String!
|
|
319
|
+
isDelegable: Boolean!
|
|
320
|
+
name: [Localization!]!
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
type DialogLookupValidationError implements DialogLookupError {
|
|
324
|
+
message: String!
|
|
325
|
+
}
|
|
326
|
+
|
|
270
327
|
type EndUserContext {
|
|
271
328
|
revision: UUID!
|
|
272
329
|
systemLabels: [SystemLabel!]!
|
|
@@ -318,6 +375,7 @@ type Mutations {
|
|
|
318
375
|
}
|
|
319
376
|
|
|
320
377
|
type Queries @authorize(policy: "enduser") {
|
|
378
|
+
dialogLookup(instanceRef: String!): DialogLookupPayload!
|
|
321
379
|
dialogById(dialogId: UUID!): DialogByIdPayload!
|
|
322
380
|
searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
|
|
323
381
|
limits: Limits!
|
|
@@ -658,6 +716,13 @@ enum DialogEventType {
|
|
|
658
716
|
DIALOG_DELETED
|
|
659
717
|
}
|
|
660
718
|
|
|
719
|
+
enum DialogLookupGrantType {
|
|
720
|
+
ROLE
|
|
721
|
+
ACCESS_PACKAGE
|
|
722
|
+
RESOURCE_DELEGATION
|
|
723
|
+
INSTANCE_DELEGATION
|
|
724
|
+
}
|
|
725
|
+
|
|
661
726
|
enum DialogStatus {
|
|
662
727
|
"Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
|
|
663
728
|
IN_PROGRESS
|
|
@@ -734,4 +799,4 @@ scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time"
|
|
|
734
799
|
|
|
735
800
|
scalar URL @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc3986")
|
|
736
801
|
|
|
737
|
-
scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
|
|
802
|
+
scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
|
package/src/index.js
CHANGED
|
@@ -12,6 +12,10 @@ interface DialogByIdError {
|
|
|
12
12
|
message: String!
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
interface DialogLookupError {
|
|
16
|
+
message: String!
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
interface SearchDialogError {
|
|
16
20
|
message: String!
|
|
17
21
|
}
|
|
@@ -169,6 +173,7 @@ type Content {
|
|
|
169
173
|
type ContentValue {
|
|
170
174
|
value: [Localization!]!
|
|
171
175
|
mediaType: String!
|
|
176
|
+
isAuthorized: Boolean
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
type Dialog {
|
|
@@ -267,6 +272,58 @@ type DialogEventPayload {
|
|
|
267
272
|
type: DialogEventType!
|
|
268
273
|
}
|
|
269
274
|
|
|
275
|
+
type DialogLookup {
|
|
276
|
+
dialogId: UUID!
|
|
277
|
+
instanceRef: String!
|
|
278
|
+
serviceResource: DialogLookupServiceResource!
|
|
279
|
+
serviceOwner: DialogLookupServiceOwner!
|
|
280
|
+
authorizationEvidence: DialogLookupAuthorizationEvidence!
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
type DialogLookupAuthorizationEvidence {
|
|
284
|
+
minimumAuthenticationLevel: Int!
|
|
285
|
+
currentAuthenticationLevel: Int!
|
|
286
|
+
viaRole: Boolean!
|
|
287
|
+
viaAccessPackage: Boolean!
|
|
288
|
+
viaResourceDelegation: Boolean!
|
|
289
|
+
viaInstanceDelegation: Boolean!
|
|
290
|
+
evidence: [DialogLookupAuthorizationEvidenceItem!]!
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
type DialogLookupAuthorizationEvidenceItem {
|
|
294
|
+
grantType: DialogLookupGrantType!
|
|
295
|
+
subject: String!
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
type DialogLookupForbidden implements DialogLookupError {
|
|
299
|
+
message: String!
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
type DialogLookupNotFound implements DialogLookupError {
|
|
303
|
+
message: String!
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
type DialogLookupPayload {
|
|
307
|
+
lookup: DialogLookup
|
|
308
|
+
errors: [DialogLookupError!]!
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
type DialogLookupServiceOwner {
|
|
312
|
+
orgNumber: String!
|
|
313
|
+
code: String!
|
|
314
|
+
name: [Localization!]!
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
type DialogLookupServiceResource {
|
|
318
|
+
id: String!
|
|
319
|
+
isDelegable: Boolean!
|
|
320
|
+
name: [Localization!]!
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
type DialogLookupValidationError implements DialogLookupError {
|
|
324
|
+
message: String!
|
|
325
|
+
}
|
|
326
|
+
|
|
270
327
|
type EndUserContext {
|
|
271
328
|
revision: UUID!
|
|
272
329
|
systemLabels: [SystemLabel!]!
|
|
@@ -318,6 +375,7 @@ type Mutations {
|
|
|
318
375
|
}
|
|
319
376
|
|
|
320
377
|
type Queries @authorize(policy: "enduser") {
|
|
378
|
+
dialogLookup(instanceRef: String!): DialogLookupPayload!
|
|
321
379
|
dialogById(dialogId: UUID!): DialogByIdPayload!
|
|
322
380
|
searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
|
|
323
381
|
limits: Limits!
|
|
@@ -658,6 +716,13 @@ enum DialogEventType {
|
|
|
658
716
|
DIALOG_DELETED
|
|
659
717
|
}
|
|
660
718
|
|
|
719
|
+
enum DialogLookupGrantType {
|
|
720
|
+
ROLE
|
|
721
|
+
ACCESS_PACKAGE
|
|
722
|
+
RESOURCE_DELEGATION
|
|
723
|
+
INSTANCE_DELEGATION
|
|
724
|
+
}
|
|
725
|
+
|
|
661
726
|
enum DialogStatus {
|
|
662
727
|
"Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
|
|
663
728
|
IN_PROGRESS
|
package/swagger.verified.json
CHANGED
|
@@ -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"
|
|
@@ -479,6 +484,160 @@
|
|
|
479
484
|
},
|
|
480
485
|
"type": "object"
|
|
481
486
|
},
|
|
487
|
+
"V1CommonIdentifierLookup_EndUserIdentifierLookup": {
|
|
488
|
+
"additionalProperties": false,
|
|
489
|
+
"properties": {
|
|
490
|
+
"authorizationEvidence": {
|
|
491
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupAuthorizationEvidence"
|
|
492
|
+
},
|
|
493
|
+
"dialogId": {
|
|
494
|
+
"format": "guid",
|
|
495
|
+
"type": "string"
|
|
496
|
+
},
|
|
497
|
+
"instanceRef": {
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
500
|
+
"serviceOwner": {
|
|
501
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupServiceOwner"
|
|
502
|
+
},
|
|
503
|
+
"serviceResource": {
|
|
504
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupServiceResource"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"type": "object"
|
|
508
|
+
},
|
|
509
|
+
"V1CommonIdentifierLookup_IdentifierLookupAuthorizationEvidence": {
|
|
510
|
+
"additionalProperties": false,
|
|
511
|
+
"properties": {
|
|
512
|
+
"currentAuthenticationLevel": {
|
|
513
|
+
"format": "int32",
|
|
514
|
+
"type": "integer"
|
|
515
|
+
},
|
|
516
|
+
"evidence": {
|
|
517
|
+
"items": {
|
|
518
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupAuthorizationEvidenceItem"
|
|
519
|
+
},
|
|
520
|
+
"nullable": true,
|
|
521
|
+
"type": "array"
|
|
522
|
+
},
|
|
523
|
+
"minimumAuthenticationLevel": {
|
|
524
|
+
"format": "int32",
|
|
525
|
+
"type": "integer"
|
|
526
|
+
},
|
|
527
|
+
"viaAccessPackage": {
|
|
528
|
+
"type": "boolean"
|
|
529
|
+
},
|
|
530
|
+
"viaInstanceDelegation": {
|
|
531
|
+
"type": "boolean"
|
|
532
|
+
},
|
|
533
|
+
"viaResourceDelegation": {
|
|
534
|
+
"type": "boolean"
|
|
535
|
+
},
|
|
536
|
+
"viaRole": {
|
|
537
|
+
"type": "boolean"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"type": "object"
|
|
541
|
+
},
|
|
542
|
+
"V1CommonIdentifierLookup_IdentifierLookupAuthorizationEvidenceItem": {
|
|
543
|
+
"additionalProperties": false,
|
|
544
|
+
"properties": {
|
|
545
|
+
"grantType": {
|
|
546
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupGrantType"
|
|
547
|
+
},
|
|
548
|
+
"subject": {
|
|
549
|
+
"type": "string"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"type": "object"
|
|
553
|
+
},
|
|
554
|
+
"V1CommonIdentifierLookup_IdentifierLookupGrantType": {
|
|
555
|
+
"description": "",
|
|
556
|
+
"enum": [
|
|
557
|
+
"Role",
|
|
558
|
+
"AccessPackage",
|
|
559
|
+
"ResourceDelegation",
|
|
560
|
+
"InstanceDelegation"
|
|
561
|
+
],
|
|
562
|
+
"type": "string",
|
|
563
|
+
"x-enumNames": [
|
|
564
|
+
"Role",
|
|
565
|
+
"AccessPackage",
|
|
566
|
+
"ResourceDelegation",
|
|
567
|
+
"InstanceDelegation"
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"V1CommonIdentifierLookup_IdentifierLookupServiceOwner": {
|
|
571
|
+
"additionalProperties": false,
|
|
572
|
+
"properties": {
|
|
573
|
+
"code": {
|
|
574
|
+
"type": "string"
|
|
575
|
+
},
|
|
576
|
+
"name": {
|
|
577
|
+
"items": {
|
|
578
|
+
"$ref": "#/components/schemas/V1CommonLocalizations_Localization"
|
|
579
|
+
},
|
|
580
|
+
"nullable": true,
|
|
581
|
+
"type": "array"
|
|
582
|
+
},
|
|
583
|
+
"orgNumber": {
|
|
584
|
+
"type": "string"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"type": "object"
|
|
588
|
+
},
|
|
589
|
+
"V1CommonIdentifierLookup_IdentifierLookupServiceResource": {
|
|
590
|
+
"additionalProperties": false,
|
|
591
|
+
"properties": {
|
|
592
|
+
"id": {
|
|
593
|
+
"type": "string"
|
|
594
|
+
},
|
|
595
|
+
"isDelegable": {
|
|
596
|
+
"type": "boolean"
|
|
597
|
+
},
|
|
598
|
+
"name": {
|
|
599
|
+
"items": {
|
|
600
|
+
"$ref": "#/components/schemas/V1CommonLocalizations_Localization"
|
|
601
|
+
},
|
|
602
|
+
"nullable": true,
|
|
603
|
+
"type": "array"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"type": "object"
|
|
607
|
+
},
|
|
608
|
+
"V1CommonIdentifierLookup_ServiceOwnerIdentifierLookup": {
|
|
609
|
+
"additionalProperties": false,
|
|
610
|
+
"properties": {
|
|
611
|
+
"dialogId": {
|
|
612
|
+
"format": "guid",
|
|
613
|
+
"type": "string"
|
|
614
|
+
},
|
|
615
|
+
"instanceRef": {
|
|
616
|
+
"type": "string"
|
|
617
|
+
},
|
|
618
|
+
"nonSensitiveTitle": {
|
|
619
|
+
"items": {
|
|
620
|
+
"$ref": "#/components/schemas/V1CommonLocalizations_Localization"
|
|
621
|
+
},
|
|
622
|
+
"nullable": true,
|
|
623
|
+
"type": "array"
|
|
624
|
+
},
|
|
625
|
+
"serviceOwner": {
|
|
626
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupServiceOwner"
|
|
627
|
+
},
|
|
628
|
+
"serviceResource": {
|
|
629
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_IdentifierLookupServiceResource"
|
|
630
|
+
},
|
|
631
|
+
"title": {
|
|
632
|
+
"items": {
|
|
633
|
+
"$ref": "#/components/schemas/V1CommonLocalizations_Localization"
|
|
634
|
+
},
|
|
635
|
+
"nullable": true,
|
|
636
|
+
"type": "array"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"type": "object"
|
|
640
|
+
},
|
|
482
641
|
"V1CommonLocalizations_Localization": {
|
|
483
642
|
"additionalProperties": false,
|
|
484
643
|
"properties": {
|
|
@@ -546,6 +705,20 @@
|
|
|
546
705
|
},
|
|
547
706
|
"type": "object"
|
|
548
707
|
},
|
|
708
|
+
"V1EndUserDialogLookupQueriesGet_DialogLookupRequest": {
|
|
709
|
+
"additionalProperties": false,
|
|
710
|
+
"properties": {
|
|
711
|
+
"acceptedLanguages": {
|
|
712
|
+
"nullable": true,
|
|
713
|
+
"oneOf": [
|
|
714
|
+
{
|
|
715
|
+
"$ref": "#/components/schemas/V1EndUserCommon_AcceptedLanguages"
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"type": "object"
|
|
721
|
+
},
|
|
549
722
|
"V1EndUserDialogsQueriesGet_Content": {
|
|
550
723
|
"additionalProperties": false,
|
|
551
724
|
"properties": {
|
|
@@ -568,7 +741,7 @@
|
|
|
568
741
|
]
|
|
569
742
|
},
|
|
570
743
|
"mainContentReference": {
|
|
571
|
-
"description": "Front-channel embedded content. Used to dynamically embed content in the frontend from an external URL.",
|
|
744
|
+
"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.",
|
|
572
745
|
"nullable": true,
|
|
573
746
|
"oneOf": [
|
|
574
747
|
{
|
|
@@ -2531,6 +2704,20 @@
|
|
|
2531
2704
|
"Awaiting"
|
|
2532
2705
|
]
|
|
2533
2706
|
},
|
|
2707
|
+
"V1ServiceOwnerDialogLookupQueriesGet_DialogLookupRequest": {
|
|
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
|
+
},
|
|
2534
2721
|
"V1ServiceOwnerDialogsCommandsCreate_Activity": {
|
|
2535
2722
|
"additionalProperties": false,
|
|
2536
2723
|
"properties": {
|
|
@@ -4320,7 +4507,7 @@
|
|
|
4320
4507
|
]
|
|
4321
4508
|
},
|
|
4322
4509
|
"mainContentReference": {
|
|
4323
|
-
"description": "Front-channel embedded content. Used to dynamically embed content in the frontend from an external URL. Must be HTTPS.",
|
|
4510
|
+
"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.",
|
|
4324
4511
|
"nullable": true,
|
|
4325
4512
|
"oneOf": [
|
|
4326
4513
|
{
|
|
@@ -6477,6 +6664,102 @@
|
|
|
6477
6664
|
]
|
|
6478
6665
|
}
|
|
6479
6666
|
},
|
|
6667
|
+
"/api/v1/enduser/dialoglookup": {
|
|
6668
|
+
"get": {
|
|
6669
|
+
"description": "Resolves dialog metadata and authorization evidence for a supported instance reference.",
|
|
6670
|
+
"operationId": "V1EndUserDialogLookupQueriesGet_DialogLookup",
|
|
6671
|
+
"parameters": [
|
|
6672
|
+
{
|
|
6673
|
+
"in": "query",
|
|
6674
|
+
"name": "instanceRef",
|
|
6675
|
+
"required": true,
|
|
6676
|
+
"schema": {
|
|
6677
|
+
"type": "string"
|
|
6678
|
+
}
|
|
6679
|
+
},
|
|
6680
|
+
{
|
|
6681
|
+
"in": "header",
|
|
6682
|
+
"name": "accept-Language",
|
|
6683
|
+
"schema": {
|
|
6684
|
+
"nullable": true,
|
|
6685
|
+
"oneOf": [
|
|
6686
|
+
{
|
|
6687
|
+
"$ref": "#/components/schemas/V1EndUserCommon_AcceptedLanguages"
|
|
6688
|
+
}
|
|
6689
|
+
]
|
|
6690
|
+
}
|
|
6691
|
+
}
|
|
6692
|
+
],
|
|
6693
|
+
"responses": {
|
|
6694
|
+
"200": {
|
|
6695
|
+
"content": {
|
|
6696
|
+
"application/json": {
|
|
6697
|
+
"schema": {
|
|
6698
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_EndUserIdentifierLookup"
|
|
6699
|
+
}
|
|
6700
|
+
}
|
|
6701
|
+
},
|
|
6702
|
+
"description": "Successfully resolved dialog lookup metadata."
|
|
6703
|
+
},
|
|
6704
|
+
"400": {
|
|
6705
|
+
"content": {
|
|
6706
|
+
"application/problem\u002Bjson": {
|
|
6707
|
+
"schema": {
|
|
6708
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
6709
|
+
}
|
|
6710
|
+
}
|
|
6711
|
+
},
|
|
6712
|
+
"description": "Validation error occurred. See problem details for a list of errors."
|
|
6713
|
+
},
|
|
6714
|
+
"401": {
|
|
6715
|
+
"description": "Missing or invalid authentication token. Requires a Maskinporten-token with the scope \u0022digdir:dialogporten\u0022."
|
|
6716
|
+
},
|
|
6717
|
+
"403": {
|
|
6718
|
+
"description": "Authenticated end user is not authorized for the supplied instance reference."
|
|
6719
|
+
},
|
|
6720
|
+
"404": {
|
|
6721
|
+
"content": {
|
|
6722
|
+
"application/problem\u002Bjson": {
|
|
6723
|
+
"schema": {
|
|
6724
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
6725
|
+
}
|
|
6726
|
+
}
|
|
6727
|
+
},
|
|
6728
|
+
"description": "No dialog match was found for the supplied instance reference."
|
|
6729
|
+
},
|
|
6730
|
+
"503": {
|
|
6731
|
+
"content": {
|
|
6732
|
+
"text/plain": {
|
|
6733
|
+
"schema": {
|
|
6734
|
+
"example": "Service Unavailable",
|
|
6735
|
+
"type": "string"
|
|
6736
|
+
}
|
|
6737
|
+
}
|
|
6738
|
+
},
|
|
6739
|
+
"description": "Service Unavailable, used when Dialogporten is in maintenance mode",
|
|
6740
|
+
"headers": {
|
|
6741
|
+
"Retry-After": {
|
|
6742
|
+
"description": "Delay before retrying the request. Datetime format RFC1123",
|
|
6743
|
+
"schema": {
|
|
6744
|
+
"type": "string"
|
|
6745
|
+
}
|
|
6746
|
+
}
|
|
6747
|
+
}
|
|
6748
|
+
}
|
|
6749
|
+
},
|
|
6750
|
+
"security": [
|
|
6751
|
+
{
|
|
6752
|
+
"JWTBearerAuth": [
|
|
6753
|
+
"digdir:dialogporten"
|
|
6754
|
+
]
|
|
6755
|
+
}
|
|
6756
|
+
],
|
|
6757
|
+
"summary": "Looks up a dialog by instance reference",
|
|
6758
|
+
"tags": [
|
|
6759
|
+
"Enduser"
|
|
6760
|
+
]
|
|
6761
|
+
}
|
|
6762
|
+
},
|
|
6480
6763
|
"/api/v1/enduser/dialogs": {
|
|
6481
6764
|
"get": {
|
|
6482
6765
|
"description": "Performs a search for dialogs, returning a paginated list of dialogs. \n\n* All date parameters must contain explicit time zone. Example: 2023-10-27T10:00:00Z or 2023-10-27T10:00:00\u002B01:00\n* See \u0022continuationToken\u0022 in the response for how to get the next page of results.\n* hasNextPage will be set to true if there are more items to get.",
|
|
@@ -7815,6 +8098,102 @@
|
|
|
7815
8098
|
]
|
|
7816
8099
|
}
|
|
7817
8100
|
},
|
|
8101
|
+
"/api/v1/serviceowner/dialoglookup": {
|
|
8102
|
+
"get": {
|
|
8103
|
+
"description": "Resolves dialog metadata for a supported instance reference in service owner context.",
|
|
8104
|
+
"operationId": "V1ServiceOwnerDialogLookupQueriesGet_DialogLookup",
|
|
8105
|
+
"parameters": [
|
|
8106
|
+
{
|
|
8107
|
+
"in": "query",
|
|
8108
|
+
"name": "instanceRef",
|
|
8109
|
+
"required": true,
|
|
8110
|
+
"schema": {
|
|
8111
|
+
"type": "string"
|
|
8112
|
+
}
|
|
8113
|
+
},
|
|
8114
|
+
{
|
|
8115
|
+
"in": "header",
|
|
8116
|
+
"name": "accept-Language",
|
|
8117
|
+
"schema": {
|
|
8118
|
+
"nullable": true,
|
|
8119
|
+
"oneOf": [
|
|
8120
|
+
{
|
|
8121
|
+
"$ref": "#/components/schemas/V1EndUserCommon_AcceptedLanguages"
|
|
8122
|
+
}
|
|
8123
|
+
]
|
|
8124
|
+
}
|
|
8125
|
+
}
|
|
8126
|
+
],
|
|
8127
|
+
"responses": {
|
|
8128
|
+
"200": {
|
|
8129
|
+
"content": {
|
|
8130
|
+
"application/json": {
|
|
8131
|
+
"schema": {
|
|
8132
|
+
"$ref": "#/components/schemas/V1CommonIdentifierLookup_ServiceOwnerIdentifierLookup"
|
|
8133
|
+
}
|
|
8134
|
+
}
|
|
8135
|
+
},
|
|
8136
|
+
"description": "Successfully resolved instance reference lookup metadata."
|
|
8137
|
+
},
|
|
8138
|
+
"400": {
|
|
8139
|
+
"content": {
|
|
8140
|
+
"application/problem\u002Bjson": {
|
|
8141
|
+
"schema": {
|
|
8142
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8145
|
+
},
|
|
8146
|
+
"description": "Validation error occurred. See problem details for a list of errors."
|
|
8147
|
+
},
|
|
8148
|
+
"401": {
|
|
8149
|
+
"description": "Missing or invalid authentication token. Requires a Maskinporten-token with the scope \u0022digdir:dialogporten.serviceprovider\u0022."
|
|
8150
|
+
},
|
|
8151
|
+
"403": {
|
|
8152
|
+
"description": "Authenticated service owner does not own the resolved dialog."
|
|
8153
|
+
},
|
|
8154
|
+
"404": {
|
|
8155
|
+
"content": {
|
|
8156
|
+
"application/problem\u002Bjson": {
|
|
8157
|
+
"schema": {
|
|
8158
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
8159
|
+
}
|
|
8160
|
+
}
|
|
8161
|
+
},
|
|
8162
|
+
"description": "No dialog match was found for the supplied instance reference."
|
|
8163
|
+
},
|
|
8164
|
+
"503": {
|
|
8165
|
+
"content": {
|
|
8166
|
+
"text/plain": {
|
|
8167
|
+
"schema": {
|
|
8168
|
+
"example": "Service Unavailable",
|
|
8169
|
+
"type": "string"
|
|
8170
|
+
}
|
|
8171
|
+
}
|
|
8172
|
+
},
|
|
8173
|
+
"description": "Service Unavailable, used when Dialogporten is in maintenance mode",
|
|
8174
|
+
"headers": {
|
|
8175
|
+
"Retry-After": {
|
|
8176
|
+
"description": "Delay before retrying the request. Datetime format RFC1123",
|
|
8177
|
+
"schema": {
|
|
8178
|
+
"type": "string"
|
|
8179
|
+
}
|
|
8180
|
+
}
|
|
8181
|
+
}
|
|
8182
|
+
}
|
|
8183
|
+
},
|
|
8184
|
+
"security": [
|
|
8185
|
+
{
|
|
8186
|
+
"JWTBearerAuth": [
|
|
8187
|
+
"digdir:dialogporten.serviceprovider"
|
|
8188
|
+
]
|
|
8189
|
+
}
|
|
8190
|
+
],
|
|
8191
|
+
"summary": "Looks up a dialog by instance reference",
|
|
8192
|
+
"tags": [
|
|
8193
|
+
"Serviceowner"
|
|
8194
|
+
]
|
|
8195
|
+
}
|
|
8196
|
+
},
|
|
7818
8197
|
"/api/v1/serviceowner/dialogs": {
|
|
7819
8198
|
"get": {
|
|
7820
8199
|
"description": "Performs a search for dialogs, returning a paginated list of dialogs.\n\n* All date parameters must contain explicit time zone. Example: 2023-10-27T10:00:00Z or 2023-10-27T10:00:00\u002B01:00\n* See \u0022continuationToken\u0022 in the response for how to get the next page of results.\n* hasNextPage will be set to true if there are more items to get.",
|
|
@@ -10564,4 +10943,4 @@
|
|
|
10564
10943
|
}
|
|
10565
10944
|
}
|
|
10566
10945
|
}
|
|
10567
|
-
}
|
|
10946
|
+
}
|