@digdir/dialogporten-schema 1.118.0 → 1.118.2-0cd65dd

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.118.0",
3
+ "version": "1.118.2-0cd65dd",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "24"
@@ -488,6 +488,10 @@ type SearchDialogContinuationTokenParsingError implements SearchDialogError {
488
488
  message: String!
489
489
  }
490
490
 
491
+ type SearchDialogDomainError implements SearchDialogError {
492
+ message: String!
493
+ }
494
+
491
495
  type SearchDialogForbidden implements SearchDialogError {
492
496
  message: String!
493
497
  }
@@ -706,19 +710,19 @@ input SearchDialogInput {
706
710
  systemLabel: [SystemLabel!]
707
711
  "Whether to exclude API-only dialogs from the results. Defaults to false."
708
712
  excludeApiOnly: Boolean
709
- "Only return dialogs created after this date"
713
+ "Only return dialogs created after this date. For free text search this does not limit how much the search has to scan; use contentUpdatedAfter to narrow a broad search and avoid a 422 timeout."
710
714
  createdAfter: DateTime
711
- "Only return dialogs created before this date"
715
+ "Only return dialogs created before this date. For free text search this does not limit how much the search has to scan; use contentUpdatedAfter to narrow a broad search and avoid a 422 timeout."
712
716
  createdBefore: DateTime
713
- "Only return dialogs with content updated after this date"
717
+ "Only return dialogs with content updated after this date. Recommended for free text search: this is the only date filter that limits how much a broad search has to scan. A broad search term without a contentUpdatedAfter bound may exceed the server-side time limit and return 422 - narrow it with this filter (and/or fewer parties or a service resource)."
714
718
  contentUpdatedAfter: DateTime
715
- "Only return dialogs with content updated before this date"
719
+ "Only return dialogs with content updated before this date. Unlike contentUpdatedAfter, this upper bound does not by itself limit how much a free text search has to scan."
716
720
  contentUpdatedBefore: DateTime
717
721
  "Only return dialogs that have content that has/hasn't been seen by the user. A dialog is considered seen if it has been retrieved by a user, since it's last content update, and there is no SystemLabel MarkedAsUnopened."
718
722
  isContentSeen: Boolean
719
- "Only return dialogs updated after this date"
723
+ "Only return dialogs updated after this date. For free text search this does not limit how much the search has to scan; use contentUpdatedAfter to narrow a broad search and avoid a 422 timeout."
720
724
  updatedAfter: DateTime
721
- "Only return dialogs updated before this date"
725
+ "Only return dialogs updated before this date. For free text search this does not limit how much the search has to scan; use contentUpdatedAfter to narrow a broad search and avoid a 422 timeout."
722
726
  updatedBefore: DateTime
723
727
  "Only return dialogs with due date after this date"
724
728
  dueAfter: DateTime
@@ -732,7 +736,7 @@ input SearchDialogInput {
732
736
  limit: Int
733
737
  "Continuation token for pagination"
734
738
  continuationToken: String
735
- "Sort the results by one or more fields"
739
+ "Sort the results by one or more fields. Defaults to contentUpdatedAt descending. For free text search, keeping the default contentUpdatedAt ordering together with contentUpdatedAfter gives the fastest results."
736
740
  orderBy: [SearchDialogSortTypeInput!]
737
741
  }
738
742
 
package/src/index.js CHANGED
@@ -488,6 +488,10 @@ type SearchDialogContinuationTokenParsingError implements SearchDialogError {
488
488
  message: String!
489
489
  }
490
490
 
491
+ type SearchDialogDomainError implements SearchDialogError {
492
+ message: String!
493
+ }
494
+
491
495
  type SearchDialogForbidden implements SearchDialogError {
492
496
  message: String!
493
497
  }
@@ -706,19 +710,19 @@ input SearchDialogInput {
706
710
  systemLabel: [SystemLabel!]
707
711
  "Whether to exclude API-only dialogs from the results. Defaults to false."
708
712
  excludeApiOnly: Boolean
709
- "Only return dialogs created after this date"
713
+ "Only return dialogs created after this date. For free text search this does not limit how much the search has to scan; use contentUpdatedAfter to narrow a broad search and avoid a 422 timeout."
710
714
  createdAfter: DateTime
711
- "Only return dialogs created before this date"
715
+ "Only return dialogs created before this date. For free text search this does not limit how much the search has to scan; use contentUpdatedAfter to narrow a broad search and avoid a 422 timeout."
712
716
  createdBefore: DateTime
713
- "Only return dialogs with content updated after this date"
717
+ "Only return dialogs with content updated after this date. Recommended for free text search: this is the only date filter that limits how much a broad search has to scan. A broad search term without a contentUpdatedAfter bound may exceed the server-side time limit and return 422 - narrow it with this filter (and/or fewer parties or a service resource)."
714
718
  contentUpdatedAfter: DateTime
715
- "Only return dialogs with content updated before this date"
719
+ "Only return dialogs with content updated before this date. Unlike contentUpdatedAfter, this upper bound does not by itself limit how much a free text search has to scan."
716
720
  contentUpdatedBefore: DateTime
717
721
  "Only return dialogs that have content that has/hasn't been seen by the user. A dialog is considered seen if it has been retrieved by a user, since it's last content update, and there is no SystemLabel MarkedAsUnopened."
718
722
  isContentSeen: Boolean
719
- "Only return dialogs updated after this date"
723
+ "Only return dialogs updated after this date. For free text search this does not limit how much the search has to scan; use contentUpdatedAfter to narrow a broad search and avoid a 422 timeout."
720
724
  updatedAfter: DateTime
721
- "Only return dialogs updated before this date"
725
+ "Only return dialogs updated before this date. For free text search this does not limit how much the search has to scan; use contentUpdatedAfter to narrow a broad search and avoid a 422 timeout."
722
726
  updatedBefore: DateTime
723
727
  "Only return dialogs with due date after this date"
724
728
  dueAfter: DateTime
@@ -732,7 +736,7 @@ input SearchDialogInput {
732
736
  limit: Int
733
737
  "Continuation token for pagination"
734
738
  continuationToken: String
735
- "Sort the results by one or more fields"
739
+ "Sort the results by one or more fields. Defaults to contentUpdatedAt descending. For free text search, keeping the default contentUpdatedAt ordering together with contentUpdatedAfter gives the fastest results."
736
740
  orderBy: [SearchDialogSortTypeInput!]
737
741
  }
738
742
 
@@ -7295,7 +7295,7 @@
7295
7295
  "style": "form"
7296
7296
  },
7297
7297
  {
7298
- "description": "Only return dialogs created after this date",
7298
+ "description": "Only return dialogs created after this date. For free text search this does not limit how much the search has to scan; use \u0027contentUpdatedAfter\u0027 to narrow a broad search and avoid a 422 timeout.",
7299
7299
  "in": "query",
7300
7300
  "name": "createdAfter",
7301
7301
  "schema": {
@@ -7305,7 +7305,7 @@
7305
7305
  }
7306
7306
  },
7307
7307
  {
7308
- "description": "Only return dialogs created before this date",
7308
+ "description": "Only return dialogs created before this date. For free text search this does not limit how much the search has to scan; use \u0027contentUpdatedAfter\u0027 to narrow a broad search and avoid a 422 timeout.",
7309
7309
  "in": "query",
7310
7310
  "name": "createdBefore",
7311
7311
  "schema": {
@@ -7315,7 +7315,7 @@
7315
7315
  }
7316
7316
  },
7317
7317
  {
7318
- "description": "Only return dialogs updated after this date",
7318
+ "description": "Only return dialogs updated after this date. For free text search this does not limit how much the search has to scan; use \u0027contentUpdatedAfter\u0027 to narrow a broad search and avoid a 422 timeout.",
7319
7319
  "in": "query",
7320
7320
  "name": "updatedAfter",
7321
7321
  "schema": {
@@ -7325,7 +7325,7 @@
7325
7325
  }
7326
7326
  },
7327
7327
  {
7328
- "description": "Only return dialogs updated before this date",
7328
+ "description": "Only return dialogs updated before this date. For free text search this does not limit how much the search has to scan; use \u0027contentUpdatedAfter\u0027 to narrow a broad search and avoid a 422 timeout.",
7329
7329
  "in": "query",
7330
7330
  "name": "updatedBefore",
7331
7331
  "schema": {
@@ -7335,7 +7335,7 @@
7335
7335
  }
7336
7336
  },
7337
7337
  {
7338
- "description": "Only return dialogs with content updated after this date",
7338
+ "description": "Only return dialogs with content updated after this date. Recommended for free text search: this is the only date filter that limits how much a broad search has to scan. A broad search term without a \u0027contentUpdatedAfter\u0027 bound may exceed the server-side time limit and return 422 - narrow it with this filter (and/or fewer parties or a service resource).",
7339
7339
  "in": "query",
7340
7340
  "name": "contentUpdatedAfter",
7341
7341
  "schema": {
@@ -7345,7 +7345,7 @@
7345
7345
  }
7346
7346
  },
7347
7347
  {
7348
- "description": "Only return dialogs with content updated before this date",
7348
+ "description": "Only return dialogs with content updated before this date. Unlike \u0027contentUpdatedAfter\u0027, this upper bound does not by itself limit how much a free text search has to scan.",
7349
7349
  "in": "query",
7350
7350
  "name": "contentUpdatedBefore",
7351
7351
  "schema": {
@@ -7434,6 +7434,7 @@
7434
7434
  }
7435
7435
  },
7436
7436
  {
7437
+ "description": "Order the results by one or more fields. Defaults to \u0022contentUpdatedAt\u0022 descending. For free text search, keeping the default \u0022contentUpdatedAt\u0022 ordering together with \u0022contentUpdatedAfter\u0022 gives the fastest results.",
7437
7438
  "in": "query",
7438
7439
  "name": "orderBy",
7439
7440
  "schema": {
@@ -7487,6 +7488,19 @@
7487
7488
  "401": {
7488
7489
  "description": "Missing or invalid authentication token. Requires a Maskinporten-token with the scope \u0022digdir:dialogporten\u0022."
7489
7490
  },
7491
+ "403": {
7492
+ "description": "Forbidden"
7493
+ },
7494
+ "422": {
7495
+ "content": {
7496
+ "application/problem\u002Bjson": {
7497
+ "schema": {
7498
+ "$ref": "#/components/schemas/ProblemDetails"
7499
+ }
7500
+ }
7501
+ },
7502
+ "description": "Domain error occurred. See problem details for a list of errors."
7503
+ },
7490
7504
  "503": {
7491
7505
  "content": {
7492
7506
  "text/plain": {
@@ -11670,5 +11684,19 @@
11670
11684
  ]
11671
11685
  }
11672
11686
  }
11673
- }
11674
- }
11687
+ },
11688
+ "tags": [
11689
+ {
11690
+ "description": "Endpoints for service owners to create and manage dialogs. Requires a Maskinporten token with the relevant \u0060digdir:dialogporten.serviceprovider\u0060 scope. The search endpoint additionally requires the \u0060digdir:dialogporten.serviceprovider.search\u0060 scope.\n\nA .NET client SDK is available: [Altinn.ApiClients.Dialogporten.ServiceOwner](https://www.nuget.org/packages/Altinn.ApiClients.Dialogporten.ServiceOwner/).",
11691
+ "name": "Serviceowner"
11692
+ },
11693
+ {
11694
+ "description": "Endpoints for end users to read and act on dialogs they are authorized to access. Used both by persons logged in via ID-porten and by Altinn system users authenticated via Maskinporten. Requires a token with the \u0060digdir:dialogporten\u0060 scope (or \u0060digdir:dialogporten.noconsent\u0060).\n\nA .NET client SDK is available: [Altinn.ApiClients.Dialogporten.EndUser](https://www.nuget.org/packages/Altinn.ApiClients.Dialogporten.EndUser/).",
11695
+ "name": "Enduser"
11696
+ },
11697
+ {
11698
+ "description": "Public, unauthenticated metadata endpoints such as health and configuration information.",
11699
+ "name": "Metadata"
11700
+ }
11701
+ ]
11702
+ }