@nmshd/runtime 6.50.3 → 6.51.0

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 (42) hide show
  1. package/dist/buildInformation.js +4 -4
  2. package/dist/events/EventProxy.d.ts.map +1 -1
  3. package/dist/events/EventProxy.js +3 -0
  4. package/dist/events/EventProxy.js.map +1 -1
  5. package/dist/events/transport/FileOwnershipLockedEvent.d.ts +7 -0
  6. package/dist/events/transport/FileOwnershipLockedEvent.d.ts.map +1 -0
  7. package/dist/events/transport/FileOwnershipLockedEvent.js +12 -0
  8. package/dist/events/transport/FileOwnershipLockedEvent.js.map +1 -0
  9. package/dist/events/transport/index.d.ts +1 -0
  10. package/dist/events/transport/index.d.ts.map +1 -1
  11. package/dist/events/transport/index.js +1 -0
  12. package/dist/events/transport/index.js.map +1 -1
  13. package/dist/extensibility/facades/transport/FilesFacade.d.ts +4 -2
  14. package/dist/extensibility/facades/transport/FilesFacade.d.ts.map +1 -1
  15. package/dist/extensibility/facades/transport/FilesFacade.js +8 -2
  16. package/dist/extensibility/facades/transport/FilesFacade.js.map +1 -1
  17. package/dist/types/transport/FileDTO.d.ts +2 -0
  18. package/dist/types/transport/FileDTO.d.ts.map +1 -1
  19. package/dist/useCases/common/RuntimeErrors.d.ts +1 -0
  20. package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
  21. package/dist/useCases/common/RuntimeErrors.js +3 -0
  22. package/dist/useCases/common/RuntimeErrors.js.map +1 -1
  23. package/dist/useCases/common/Schemas.d.ts +8 -7
  24. package/dist/useCases/common/Schemas.d.ts.map +1 -1
  25. package/dist/useCases/common/Schemas.js +857 -835
  26. package/dist/useCases/common/Schemas.js.map +1 -1
  27. package/dist/useCases/transport/account/SyncEverything.d.ts +2 -1
  28. package/dist/useCases/transport/account/SyncEverything.d.ts.map +1 -1
  29. package/dist/useCases/transport/account/SyncEverything.js +4 -1
  30. package/dist/useCases/transport/account/SyncEverything.js.map +1 -1
  31. package/dist/useCases/transport/files/FileMapper.d.ts.map +1 -1
  32. package/dist/useCases/transport/files/FileMapper.js +3 -1
  33. package/dist/useCases/transport/files/FileMapper.js.map +1 -1
  34. package/dist/useCases/transport/files/RegenerateFileOwnershipToken.d.ts +18 -0
  35. package/dist/useCases/transport/files/RegenerateFileOwnershipToken.d.ts.map +1 -0
  36. package/dist/useCases/transport/files/RegenerateFileOwnershipToken.js +57 -0
  37. package/dist/useCases/transport/files/RegenerateFileOwnershipToken.js.map +1 -0
  38. package/dist/useCases/transport/files/index.d.ts +1 -0
  39. package/dist/useCases/transport/files/index.d.ts.map +1 -1
  40. package/dist/useCases/transport/files/index.js +1 -0
  41. package/dist/useCases/transport/files/index.js.map +1 -1
  42. package/package.json +5 -5
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.ValidateIQLQueryRequest = exports.SucceedRepositoryAttributeRequest = exports.SucceedRelationshipAttributeAndNotifyPeerRequest = exports.ShareRepositoryAttributeRequest = exports.SetAttributeDeletionInfoOfDeletionProposedRelationshipRequest = exports.NotifyPeerAboutRepositoryAttributeSuccessionRequest = exports.GetVersionsOfAttributeRequest = exports.GetSharedVersionsOfAttributeRequest = exports.GetRepositoryAttributesRequest = exports.GetPeerSharedAttributesRequest = exports.GetOwnSharedAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIQLQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.DeleteThirdPartyRelationshipAttributeAndNotifyPeerRequest = exports.DeleteSharedAttributesForRejectedOrRevokedRelationshipRequest = exports.DeleteRepositoryAttributeRequest = exports.DeletePeerSharedAttributeAndNotifyOwnerRequest = exports.DeleteOwnSharedAttributeAndNotifyPeerRequest = exports.CreateRepositoryAttributeRequest = exports.CreateAndShareRelationshipAttributeRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.DiscardOutgoingRequestRequest = exports.DeleteIncomingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.ChangeDefaultRepositoryAttributeRequest = exports.CanCreateRepositoryAttributeRequest = exports.GetAttributeListenerRequest = exports.LoadPeerTokenAnonymousRequest = void 0;
4
- exports.MarkMessageAsUnreadRequest = exports.MarkMessageAsReadRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CreateIdentityRecoveryKitRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.GetOrLoadFileRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.DeleteFileRequest = exports.CreateTokenForFileRequest = exports.UpdateDeviceRequest = exports.SetCommunicationLanguageRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.isCreateDeviceChallengeRequest = exports.CreateDeviceChallengeRequest = exports.isCreateIdentityChallengeRequest = exports.CreateIdentityChallengeRequest = exports.isCreateRelationshipChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.GetAnnouncementsRequest = exports.DownloadAttachmentRequest = exports.InitiateIdentityDeletionProcessRequest = exports.GetIdentityDeletionProcessRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromReferenceRequest = exports.DownloadFileRequest = exports.UpsertSettingByKeyRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingByKeyRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentNotificationRequest = exports.ReceivedNotificationRequest = exports.ProcessNotificationByIdRequest = exports.GetNotificationsRequest = exports.GetNotificationRequest = exports.UpsertIdentityMetadataRequest = exports.GetIdentityMetadataRequest = exports.DeleteIdentityMetadataRequest = void 0;
5
- exports.BirthYear = exports.BirthMonth = exports.BirthDay = exports.BirthCountry = exports.BirthCity = exports.Affiliation = exports.AffiliationUnit = exports.AffiliationRole = exports.AffiliationOrganization = exports.StreetAddress = exports.Street = exports.PostOfficeBoxAddress = exports.HouseNumber = exports.DeliveryBoxAddress = exports.ZipCode = exports.State = exports.Website = exports.PhoneNumber = exports.FaxNumber = exports.EMailAddress = exports.CommunicationLanguage = exports.Country = exports.City = exports.LoadPeerTokenRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.DeleteTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.DeleteRelationshipTemplateRequest = exports.CreateTokenForOwnRelationshipTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.TerminateRelationshipRequest = exports.RevokeRelationshipReactivationRequest = exports.RevokeRelationshipRequest = exports.RequestRelationshipReactivationRequest = exports.RejectRelationshipReactivationRequest = exports.RejectRelationshipRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.DecomposeRelationshipRequest = exports.CreateRelationshipRequest = exports.CanCreateRelationshipRequest = exports.AcceptRelationshipReactivationRequest = exports.AcceptRelationshipRequest = exports.SendMessageRequest = void 0;
6
- exports.Sex = exports.Nationality = exports.JobTitle = exports.Citizenship = exports.Pseudonym = exports.PersonName = exports.Surname = exports.MiddleName = exports.HonorificSuffix = exports.HonorificPrefix = exports.GivenName = exports.BirthName = exports.SchematizedXML = exports.IdentityFileReference = exports.DisplayName = exports.BirthPlace = exports.BirthState = exports.BirthDate = void 0;
4
+ exports.MarkMessageAsReadRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CreateIdentityRecoveryKitRequest = exports.UpdateDeviceRequest = exports.SetCommunicationLanguageRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.isCreateDeviceChallengeRequest = exports.CreateDeviceChallengeRequest = exports.isCreateIdentityChallengeRequest = exports.CreateIdentityChallengeRequest = exports.isCreateRelationshipChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.GetAnnouncementsRequest = exports.DownloadAttachmentRequest = exports.InitiateIdentityDeletionProcessRequest = exports.GetIdentityDeletionProcessRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.RegenerateFileOwnershipTokenRequest = exports.GetOrLoadFileRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.DeleteFileRequest = exports.CreateTokenForFileRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromReferenceRequest = exports.DownloadFileRequest = exports.UpsertSettingByKeyRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingByKeyRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentNotificationRequest = exports.ReceivedNotificationRequest = exports.ProcessNotificationByIdRequest = exports.GetNotificationsRequest = exports.GetNotificationRequest = exports.UpsertIdentityMetadataRequest = exports.GetIdentityMetadataRequest = exports.DeleteIdentityMetadataRequest = void 0;
5
+ exports.BirthMonth = exports.BirthDay = exports.BirthCountry = exports.BirthCity = exports.Affiliation = exports.AffiliationUnit = exports.AffiliationRole = exports.AffiliationOrganization = exports.StreetAddress = exports.Street = exports.PostOfficeBoxAddress = exports.HouseNumber = exports.DeliveryBoxAddress = exports.ZipCode = exports.State = exports.Website = exports.PhoneNumber = exports.FaxNumber = exports.EMailAddress = exports.CommunicationLanguage = exports.Country = exports.City = exports.LoadPeerTokenRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.DeleteTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.DeleteRelationshipTemplateRequest = exports.CreateTokenForOwnRelationshipTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.TerminateRelationshipRequest = exports.RevokeRelationshipReactivationRequest = exports.RevokeRelationshipRequest = exports.RequestRelationshipReactivationRequest = exports.RejectRelationshipReactivationRequest = exports.RejectRelationshipRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.DecomposeRelationshipRequest = exports.CreateRelationshipRequest = exports.CanCreateRelationshipRequest = exports.AcceptRelationshipReactivationRequest = exports.AcceptRelationshipRequest = exports.SendMessageRequest = exports.MarkMessageAsUnreadRequest = void 0;
6
+ exports.Sex = exports.Nationality = exports.JobTitle = exports.Citizenship = exports.Pseudonym = exports.PersonName = exports.Surname = exports.MiddleName = exports.HonorificSuffix = exports.HonorificPrefix = exports.GivenName = exports.BirthName = exports.SchematizedXML = exports.IdentityFileReference = exports.DisplayName = exports.BirthPlace = exports.BirthState = exports.BirthDate = exports.BirthYear = void 0;
7
7
  exports.LoadPeerTokenAnonymousRequest = {
8
8
  "$schema": "http://json-schema.org/draft-07/schema#",
9
9
  "$ref": "#/definitions/LoadPeerTokenAnonymousRequest",
@@ -20480,652 +20480,551 @@ exports.RegisterPushNotificationTokenRequest = {
20480
20480
  }
20481
20481
  }
20482
20482
  };
20483
- exports.GetIdentityDeletionProcessRequest = {
20483
+ exports.CreateTokenForFileRequest = {
20484
20484
  "$schema": "http://json-schema.org/draft-07/schema#",
20485
- "$ref": "#/definitions/GetIdentityDeletionProcessRequest",
20485
+ "$ref": "#/definitions/CreateTokenForFileRequest",
20486
20486
  "definitions": {
20487
- "GetIdentityDeletionProcessRequest": {
20487
+ "CreateTokenForFileRequest": {
20488
20488
  "type": "object",
20489
20489
  "properties": {
20490
- "id": {
20491
- "$ref": "#/definitions/IdentityDeletionProcessIdString"
20490
+ "fileId": {
20491
+ "$ref": "#/definitions/FileIdString"
20492
+ },
20493
+ "expiresAt": {
20494
+ "$ref": "#/definitions/ISO8601DateTimeString"
20495
+ },
20496
+ "ephemeral": {
20497
+ "type": "boolean"
20498
+ },
20499
+ "forIdentity": {
20500
+ "$ref": "#/definitions/AddressString"
20501
+ },
20502
+ "passwordProtection": {
20503
+ "type": "object",
20504
+ "properties": {
20505
+ "password": {
20506
+ "type": "string",
20507
+ "minLength": 1
20508
+ },
20509
+ "passwordIsPin": {
20510
+ "type": "boolean",
20511
+ "const": true
20512
+ },
20513
+ "passwordLocationIndicator": {}
20514
+ },
20515
+ "required": [
20516
+ "password"
20517
+ ],
20518
+ "additionalProperties": false
20492
20519
  }
20493
20520
  },
20494
20521
  "required": [
20495
- "id"
20522
+ "fileId"
20496
20523
  ],
20497
20524
  "additionalProperties": false
20498
20525
  },
20499
- "IdentityDeletionProcessIdString": {
20526
+ "FileIdString": {
20500
20527
  "type": "string",
20501
- "pattern": "IDP[A-Za-z0-9]{17}"
20528
+ "pattern": "FIL[A-Za-z0-9]{17}"
20529
+ },
20530
+ "ISO8601DateTimeString": {
20531
+ "type": "string",
20532
+ "errorMessage": "must match ISO8601 datetime format",
20533
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
20534
+ },
20535
+ "AddressString": {
20536
+ "type": "string",
20537
+ "pattern": "did:e:((([A-Za-z0-9]+(-[A-Za-z0-9]+)*)\\.)+[a-z]{2,}|localhost):dids:[0-9a-f]{22}"
20502
20538
  }
20503
20539
  }
20504
20540
  };
20505
- exports.InitiateIdentityDeletionProcessRequest = {
20541
+ exports.DeleteFileRequest = {
20506
20542
  "$schema": "http://json-schema.org/draft-07/schema#",
20507
- "$ref": "#/definitions/InitiateIdentityDeletionProcessRequest",
20543
+ "$ref": "#/definitions/DeleteFileRequest",
20508
20544
  "definitions": {
20509
- "InitiateIdentityDeletionProcessRequest": {
20545
+ "DeleteFileRequest": {
20510
20546
  "type": "object",
20511
20547
  "properties": {
20512
- "lengthOfGracePeriodInDays": {
20513
- "type": "number"
20548
+ "fileId": {
20549
+ "$ref": "#/definitions/FileIdString"
20514
20550
  }
20515
20551
  },
20552
+ "required": [
20553
+ "fileId"
20554
+ ],
20516
20555
  "additionalProperties": false
20556
+ },
20557
+ "FileIdString": {
20558
+ "type": "string",
20559
+ "pattern": "FIL[A-Za-z0-9]{17}"
20517
20560
  }
20518
20561
  }
20519
20562
  };
20520
- exports.DownloadAttachmentRequest = {
20563
+ exports.GetFileRequest = {
20521
20564
  "$schema": "http://json-schema.org/draft-07/schema#",
20522
- "$ref": "#/definitions/DownloadAttachmentRequest",
20565
+ "$ref": "#/definitions/GetFileRequest",
20523
20566
  "definitions": {
20524
- "DownloadAttachmentRequest": {
20567
+ "GetFileRequest": {
20525
20568
  "type": "object",
20526
20569
  "properties": {
20527
20570
  "id": {
20528
- "$ref": "#/definitions/MessageIdString"
20529
- },
20530
- "attachmentId": {
20531
20571
  "$ref": "#/definitions/FileIdString"
20532
20572
  }
20533
20573
  },
20534
20574
  "required": [
20535
- "id",
20536
- "attachmentId"
20575
+ "id"
20537
20576
  ],
20538
20577
  "additionalProperties": false
20539
20578
  },
20540
- "MessageIdString": {
20541
- "type": "string",
20542
- "pattern": "MSG[A-Za-z0-9]{17}"
20543
- },
20544
20579
  "FileIdString": {
20545
20580
  "type": "string",
20546
20581
  "pattern": "FIL[A-Za-z0-9]{17}"
20547
20582
  }
20548
20583
  }
20549
20584
  };
20550
- exports.GetAnnouncementsRequest = {
20585
+ exports.GetFilesRequest = {
20551
20586
  "$schema": "http://json-schema.org/draft-07/schema#",
20552
- "$ref": "#/definitions/GetAnnouncementsRequest",
20587
+ "$ref": "#/definitions/GetFilesRequest",
20553
20588
  "definitions": {
20554
- "GetAnnouncementsRequest": {
20589
+ "GetFilesRequest": {
20555
20590
  "type": "object",
20556
20591
  "properties": {
20557
- "language": {
20558
- "$ref": "#/definitions/LanguageISO639"
20592
+ "query": {
20593
+ "$ref": "#/definitions/GetFilesQuery"
20594
+ },
20595
+ "ownerRestriction": {
20596
+ "$ref": "#/definitions/OwnerRestriction"
20559
20597
  }
20560
20598
  },
20561
- "required": [
20562
- "language"
20563
- ],
20564
20599
  "additionalProperties": false
20565
20600
  },
20566
- "LanguageISO639": {
20601
+ "GetFilesQuery": {
20602
+ "type": "object",
20603
+ "properties": {
20604
+ "createdAt": {
20605
+ "anyOf": [
20606
+ {
20607
+ "type": "string"
20608
+ },
20609
+ {
20610
+ "type": "array",
20611
+ "items": {
20612
+ "type": "string"
20613
+ }
20614
+ }
20615
+ ]
20616
+ },
20617
+ "createdBy": {
20618
+ "anyOf": [
20619
+ {
20620
+ "type": "string"
20621
+ },
20622
+ {
20623
+ "type": "array",
20624
+ "items": {
20625
+ "type": "string"
20626
+ }
20627
+ }
20628
+ ]
20629
+ },
20630
+ "createdByDevice": {
20631
+ "anyOf": [
20632
+ {
20633
+ "type": "string"
20634
+ },
20635
+ {
20636
+ "type": "array",
20637
+ "items": {
20638
+ "type": "string"
20639
+ }
20640
+ }
20641
+ ]
20642
+ },
20643
+ "description": {
20644
+ "anyOf": [
20645
+ {
20646
+ "type": "string"
20647
+ },
20648
+ {
20649
+ "type": "array",
20650
+ "items": {
20651
+ "type": "string"
20652
+ }
20653
+ }
20654
+ ]
20655
+ },
20656
+ "expiresAt": {
20657
+ "anyOf": [
20658
+ {
20659
+ "type": "string"
20660
+ },
20661
+ {
20662
+ "type": "array",
20663
+ "items": {
20664
+ "type": "string"
20665
+ }
20666
+ }
20667
+ ]
20668
+ },
20669
+ "filename": {
20670
+ "anyOf": [
20671
+ {
20672
+ "type": "string"
20673
+ },
20674
+ {
20675
+ "type": "array",
20676
+ "items": {
20677
+ "type": "string"
20678
+ }
20679
+ }
20680
+ ]
20681
+ },
20682
+ "filesize": {
20683
+ "anyOf": [
20684
+ {
20685
+ "type": "string"
20686
+ },
20687
+ {
20688
+ "type": "array",
20689
+ "items": {
20690
+ "type": "string"
20691
+ }
20692
+ }
20693
+ ]
20694
+ },
20695
+ "mimetype": {
20696
+ "anyOf": [
20697
+ {
20698
+ "type": "string"
20699
+ },
20700
+ {
20701
+ "type": "array",
20702
+ "items": {
20703
+ "type": "string"
20704
+ }
20705
+ }
20706
+ ]
20707
+ },
20708
+ "title": {
20709
+ "anyOf": [
20710
+ {
20711
+ "type": "string"
20712
+ },
20713
+ {
20714
+ "type": "array",
20715
+ "items": {
20716
+ "type": "string"
20717
+ }
20718
+ }
20719
+ ]
20720
+ },
20721
+ "isOwn": {
20722
+ "anyOf": [
20723
+ {
20724
+ "type": "string"
20725
+ },
20726
+ {
20727
+ "type": "array",
20728
+ "items": {
20729
+ "type": "string"
20730
+ }
20731
+ }
20732
+ ]
20733
+ },
20734
+ "tags": {
20735
+ "anyOf": [
20736
+ {
20737
+ "type": "string"
20738
+ },
20739
+ {
20740
+ "type": "array",
20741
+ "items": {
20742
+ "type": "string"
20743
+ }
20744
+ }
20745
+ ]
20746
+ }
20747
+ },
20748
+ "additionalProperties": false
20749
+ },
20750
+ "OwnerRestriction": {
20567
20751
  "type": "string",
20568
20752
  "enum": [
20569
- "aa",
20570
- "ab",
20571
- "ae",
20572
- "af",
20573
- "ak",
20574
- "am",
20575
- "an",
20576
- "ar",
20577
- "as",
20578
- "av",
20579
- "ay",
20580
- "az",
20581
- "ba",
20582
- "be",
20583
- "bg",
20584
- "bi",
20585
- "bm",
20586
- "bn",
20587
- "bo",
20588
- "br",
20589
- "bs",
20590
- "ca",
20591
- "ce",
20592
- "ch",
20593
- "co",
20594
- "cr",
20595
- "cs",
20596
- "cu",
20597
- "cv",
20598
- "cy",
20599
- "da",
20600
- "de",
20601
- "dv",
20602
- "dz",
20603
- "ee",
20604
- "el",
20605
- "en",
20606
- "eo",
20607
- "es",
20608
- "et",
20609
- "eu",
20610
- "fa",
20611
- "ff",
20612
- "fi",
20613
- "fj",
20614
- "fo",
20615
- "fr",
20616
- "fy",
20617
- "ga",
20618
- "gd",
20619
- "gl",
20620
- "gn",
20621
- "gu",
20622
- "gv",
20623
- "ha",
20624
- "he",
20625
- "hi",
20626
- "ho",
20627
- "hr",
20628
- "ht",
20629
- "hu",
20630
- "hy",
20631
- "hz",
20632
- "ia",
20633
- "id",
20634
- "ie",
20635
- "ig",
20636
- "ii",
20637
- "ik",
20638
- "io",
20639
- "is",
20640
- "it",
20641
- "iu",
20642
- "ja",
20643
- "jv",
20644
- "ka",
20645
- "kg",
20646
- "ki",
20647
- "kj",
20648
- "kk",
20649
- "kl",
20650
- "km",
20651
- "kn",
20652
- "ko",
20653
- "kr",
20654
- "ks",
20655
- "ku",
20656
- "kv",
20657
- "kw",
20658
- "ky",
20659
- "la",
20660
- "lb",
20661
- "lg",
20662
- "li",
20663
- "ln",
20664
- "lo",
20665
- "lt",
20666
- "lu",
20667
- "lv",
20668
- "mg",
20669
- "mh",
20670
- "mi",
20671
- "mk",
20672
- "ml",
20673
- "mn",
20674
- "mr",
20675
- "ms",
20676
- "mt",
20677
- "my",
20678
- "na",
20679
- "nb",
20680
- "nd",
20681
- "ne",
20682
- "ng",
20683
- "nl",
20684
- "nn",
20685
- "no",
20686
- "nr",
20687
- "nv",
20688
- "ny",
20689
- "oc",
20690
- "oj",
20691
- "om",
20692
- "or",
20693
- "os",
20694
- "pa",
20695
- "pi",
20696
- "pl",
20697
- "ps",
20698
- "pt",
20699
- "qu",
20700
- "rm",
20701
- "rn",
20702
- "ro",
20703
- "ru",
20704
- "rw",
20705
- "sa",
20706
- "sc",
20707
- "sd",
20708
- "se",
20709
- "sg",
20710
- "si",
20711
- "sk",
20712
- "sl",
20713
- "sm",
20714
- "sn",
20715
- "so",
20716
- "sq",
20717
- "sr",
20718
- "ss",
20719
- "st",
20720
- "su",
20721
- "sv",
20722
- "sw",
20723
- "ta",
20724
- "te",
20725
- "tg",
20726
- "th",
20727
- "ti",
20728
- "tk",
20729
- "tl",
20730
- "tn",
20731
- "to",
20732
- "tr",
20733
- "ts",
20734
- "tt",
20735
- "tw",
20736
- "ty",
20737
- "ug",
20738
- "uk",
20739
- "ur",
20740
- "uz",
20741
- "ve",
20742
- "vi",
20743
- "vo",
20744
- "wa",
20745
- "wo",
20746
- "xh",
20747
- "yi",
20748
- "yo",
20749
- "za",
20750
- "zh",
20751
- "zu"
20753
+ "o",
20754
+ "p"
20752
20755
  ]
20753
20756
  }
20754
20757
  }
20755
20758
  };
20756
- exports.CreateRelationshipChallengeRequest = {
20759
+ exports.GetOrLoadFileRequest = {
20757
20760
  "$schema": "http://json-schema.org/draft-07/schema#",
20758
- "$ref": "#/definitions/CreateRelationshipChallengeRequest",
20761
+ "$ref": "#/definitions/GetOrLoadFileRequest",
20759
20762
  "definitions": {
20760
- "CreateRelationshipChallengeRequest": {
20763
+ "GetOrLoadFileRequest": {
20761
20764
  "type": "object",
20762
20765
  "properties": {
20763
- "challengeType": {
20764
- "type": "string",
20765
- "const": "Relationship"
20766
+ "reference": {
20767
+ "anyOf": [
20768
+ {
20769
+ "$ref": "#/definitions/TokenReferenceString"
20770
+ },
20771
+ {
20772
+ "$ref": "#/definitions/FileReferenceString"
20773
+ }
20774
+ ]
20766
20775
  },
20767
- "relationship": {
20768
- "$ref": "#/definitions/RelationshipIdString"
20776
+ "password": {
20777
+ "type": "string"
20769
20778
  }
20770
20779
  },
20771
20780
  "required": [
20772
- "challengeType",
20773
- "relationship"
20781
+ "reference"
20774
20782
  ],
20775
- "additionalProperties": false
20783
+ "additionalProperties": false,
20784
+ "errorMessage": "token / file reference invalid"
20776
20785
  },
20777
- "RelationshipIdString": {
20786
+ "TokenReferenceString": {
20778
20787
  "type": "string",
20779
- "pattern": "REL[A-Za-z0-9]{17}"
20780
- }
20781
- }
20782
- };
20783
- exports.isCreateRelationshipChallengeRequest = {
20784
- "$schema": "http://json-schema.org/draft-07/schema#",
20785
- "$ref": "#/definitions/isCreateRelationshipChallengeRequest",
20786
- "definitions": {
20787
- "isCreateRelationshipChallengeRequest": {
20788
- "$comment": "(value: any) => value is CreateRelationshipChallengeRequest",
20789
- "type": "object",
20790
- "properties": {
20791
- "namedArgs": {
20792
- "type": "object",
20793
- "properties": {
20794
- "value": {}
20795
- },
20796
- "required": [
20797
- "value"
20798
- ],
20799
- "additionalProperties": false
20800
- }
20801
- }
20788
+ "pattern": "VE9L.{84}"
20789
+ },
20790
+ "FileReferenceString": {
20791
+ "type": "string",
20792
+ "pattern": "RklM.{84}"
20802
20793
  }
20803
20794
  }
20804
20795
  };
20805
- exports.CreateIdentityChallengeRequest = {
20796
+ exports.RegenerateFileOwnershipTokenRequest = {
20806
20797
  "$schema": "http://json-schema.org/draft-07/schema#",
20807
- "$ref": "#/definitions/CreateIdentityChallengeRequest",
20798
+ "$ref": "#/definitions/RegenerateFileOwnershipTokenRequest",
20808
20799
  "definitions": {
20809
- "CreateIdentityChallengeRequest": {
20800
+ "RegenerateFileOwnershipTokenRequest": {
20810
20801
  "type": "object",
20811
20802
  "properties": {
20812
- "challengeType": {
20813
- "type": "string",
20814
- "const": "Identity"
20803
+ "id": {
20804
+ "$ref": "#/definitions/FileIdString"
20815
20805
  }
20816
20806
  },
20817
20807
  "required": [
20818
- "challengeType"
20808
+ "id"
20819
20809
  ],
20820
20810
  "additionalProperties": false
20811
+ },
20812
+ "FileIdString": {
20813
+ "type": "string",
20814
+ "pattern": "FIL[A-Za-z0-9]{17}"
20821
20815
  }
20822
20816
  }
20823
20817
  };
20824
- exports.isCreateIdentityChallengeRequest = {
20818
+ exports.UploadOwnFileRequest = {
20825
20819
  "$schema": "http://json-schema.org/draft-07/schema#",
20826
- "$ref": "#/definitions/isCreateIdentityChallengeRequest",
20820
+ "$ref": "#/definitions/UploadOwnFileRequest",
20827
20821
  "definitions": {
20828
- "isCreateIdentityChallengeRequest": {
20829
- "$comment": "(value: any) => value is CreateIdentityChallengeRequest",
20822
+ "UploadOwnFileRequest": {
20830
20823
  "type": "object",
20831
20824
  "properties": {
20832
- "namedArgs": {
20825
+ "content": {
20833
20826
  "type": "object",
20834
20827
  "properties": {
20835
- "value": {}
20828
+ "BYTES_PER_ELEMENT": {
20829
+ "type": "number"
20830
+ },
20831
+ "buffer": {
20832
+ "type": "object",
20833
+ "properties": {
20834
+ "byteLength": {
20835
+ "type": "number"
20836
+ }
20837
+ },
20838
+ "required": [
20839
+ "byteLength"
20840
+ ],
20841
+ "additionalProperties": false
20842
+ },
20843
+ "byteLength": {
20844
+ "type": "number"
20845
+ },
20846
+ "byteOffset": {
20847
+ "type": "number"
20848
+ },
20849
+ "length": {
20850
+ "type": "number"
20851
+ }
20836
20852
  },
20837
20853
  "required": [
20838
- "value"
20854
+ "BYTES_PER_ELEMENT",
20855
+ "buffer",
20856
+ "byteLength",
20857
+ "byteOffset",
20858
+ "length"
20839
20859
  ],
20840
- "additionalProperties": false
20841
- }
20842
- }
20843
- }
20844
- }
20845
- };
20846
- exports.CreateDeviceChallengeRequest = {
20847
- "$schema": "http://json-schema.org/draft-07/schema#",
20848
- "$ref": "#/definitions/CreateDeviceChallengeRequest",
20849
- "definitions": {
20850
- "CreateDeviceChallengeRequest": {
20851
- "type": "object",
20852
- "properties": {
20853
- "challengeType": {
20854
- "type": "string",
20855
- "const": "Device"
20860
+ "additionalProperties": {
20861
+ "type": "number"
20862
+ }
20863
+ },
20864
+ "filename": {
20865
+ "type": "string"
20866
+ },
20867
+ "mimetype": {
20868
+ "type": "string"
20869
+ },
20870
+ "expiresAt": {
20871
+ "$ref": "#/definitions/ISO8601DateTimeString"
20872
+ },
20873
+ "title": {
20874
+ "type": "string"
20875
+ },
20876
+ "description": {
20877
+ "type": "string"
20878
+ },
20879
+ "tags": {
20880
+ "type": "array",
20881
+ "items": {
20882
+ "type": "string"
20883
+ },
20884
+ "uniqueItems": true
20856
20885
  }
20857
20886
  },
20858
20887
  "required": [
20859
- "challengeType"
20888
+ "content",
20889
+ "filename",
20890
+ "mimetype"
20860
20891
  ],
20861
20892
  "additionalProperties": false
20893
+ },
20894
+ "ISO8601DateTimeString": {
20895
+ "type": "string",
20896
+ "errorMessage": "must match ISO8601 datetime format",
20897
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
20862
20898
  }
20863
20899
  }
20864
20900
  };
20865
- exports.isCreateDeviceChallengeRequest = {
20901
+ exports.UploadOwnFileValidatableRequest = {
20866
20902
  "$schema": "http://json-schema.org/draft-07/schema#",
20867
- "$ref": "#/definitions/isCreateDeviceChallengeRequest",
20903
+ "$ref": "#/definitions/UploadOwnFileValidatableRequest",
20868
20904
  "definitions": {
20869
- "isCreateDeviceChallengeRequest": {
20870
- "$comment": "(value: any) => value is CreateDeviceChallengeRequest",
20905
+ "UploadOwnFileValidatableRequest": {
20871
20906
  "type": "object",
20872
20907
  "properties": {
20873
- "namedArgs": {
20874
- "type": "object",
20875
- "properties": {
20876
- "value": {}
20877
- },
20878
- "required": [
20879
- "value"
20880
- ],
20881
- "additionalProperties": false
20882
- }
20883
- }
20884
- }
20885
- }
20886
- };
20887
- exports.CreateChallengeRequest = {
20888
- "$schema": "http://json-schema.org/draft-07/schema#",
20889
- "$ref": "#/definitions/CreateChallengeRequest",
20890
- "definitions": {
20891
- "CreateChallengeRequest": {
20892
- "anyOf": [
20893
- {
20894
- "$ref": "#/definitions/CreateRelationshipChallengeRequest"
20908
+ "filename": {
20909
+ "type": "string"
20895
20910
  },
20896
- {
20897
- "$ref": "#/definitions/CreateIdentityChallengeRequest"
20911
+ "mimetype": {
20912
+ "type": "string"
20898
20913
  },
20899
- {
20900
- "$ref": "#/definitions/CreateDeviceChallengeRequest"
20901
- }
20902
- ]
20903
- },
20904
- "CreateRelationshipChallengeRequest": {
20905
- "type": "object",
20906
- "properties": {
20907
- "challengeType": {
20908
- "type": "string",
20909
- "const": "Relationship"
20914
+ "expiresAt": {
20915
+ "$ref": "#/definitions/ISO8601DateTimeString"
20910
20916
  },
20911
- "relationship": {
20912
- "$ref": "#/definitions/RelationshipIdString"
20917
+ "title": {
20918
+ "type": "string"
20919
+ },
20920
+ "description": {
20921
+ "type": "string"
20922
+ },
20923
+ "tags": {
20924
+ "type": "array",
20925
+ "items": {
20926
+ "type": "string"
20927
+ },
20928
+ "uniqueItems": true
20929
+ },
20930
+ "content": {
20931
+ "type": "object"
20913
20932
  }
20914
20933
  },
20915
20934
  "required": [
20916
- "challengeType",
20917
- "relationship"
20935
+ "content",
20936
+ "filename",
20937
+ "mimetype"
20918
20938
  ],
20919
20939
  "additionalProperties": false
20920
20940
  },
20921
- "RelationshipIdString": {
20941
+ "ISO8601DateTimeString": {
20922
20942
  "type": "string",
20923
- "pattern": "REL[A-Za-z0-9]{17}"
20924
- },
20925
- "CreateIdentityChallengeRequest": {
20943
+ "errorMessage": "must match ISO8601 datetime format",
20944
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
20945
+ }
20946
+ }
20947
+ };
20948
+ exports.GetIdentityDeletionProcessRequest = {
20949
+ "$schema": "http://json-schema.org/draft-07/schema#",
20950
+ "$ref": "#/definitions/GetIdentityDeletionProcessRequest",
20951
+ "definitions": {
20952
+ "GetIdentityDeletionProcessRequest": {
20926
20953
  "type": "object",
20927
20954
  "properties": {
20928
- "challengeType": {
20929
- "type": "string",
20930
- "const": "Identity"
20955
+ "id": {
20956
+ "$ref": "#/definitions/IdentityDeletionProcessIdString"
20931
20957
  }
20932
20958
  },
20933
20959
  "required": [
20934
- "challengeType"
20960
+ "id"
20935
20961
  ],
20936
20962
  "additionalProperties": false
20937
20963
  },
20938
- "CreateDeviceChallengeRequest": {
20939
- "type": "object",
20940
- "properties": {
20941
- "challengeType": {
20942
- "type": "string",
20943
- "const": "Device"
20944
- }
20945
- },
20946
- "required": [
20947
- "challengeType"
20948
- ],
20949
- "additionalProperties": false
20964
+ "IdentityDeletionProcessIdString": {
20965
+ "type": "string",
20966
+ "pattern": "IDP[A-Za-z0-9]{17}"
20950
20967
  }
20951
20968
  }
20952
20969
  };
20953
- exports.ValidateChallengeRequest = {
20970
+ exports.InitiateIdentityDeletionProcessRequest = {
20954
20971
  "$schema": "http://json-schema.org/draft-07/schema#",
20955
- "$ref": "#/definitions/ValidateChallengeRequest",
20972
+ "$ref": "#/definitions/InitiateIdentityDeletionProcessRequest",
20956
20973
  "definitions": {
20957
- "ValidateChallengeRequest": {
20974
+ "InitiateIdentityDeletionProcessRequest": {
20958
20975
  "type": "object",
20959
20976
  "properties": {
20960
- "challengeString": {
20961
- "type": "string"
20962
- },
20963
- "signature": {
20964
- "type": "string"
20977
+ "lengthOfGracePeriodInDays": {
20978
+ "type": "number"
20965
20979
  }
20966
20980
  },
20967
- "required": [
20968
- "challengeString",
20969
- "signature"
20970
- ],
20971
20981
  "additionalProperties": false
20972
20982
  }
20973
20983
  }
20974
20984
  };
20975
- exports.CreateDeviceRequest = {
20985
+ exports.DownloadAttachmentRequest = {
20976
20986
  "$schema": "http://json-schema.org/draft-07/schema#",
20977
- "$ref": "#/definitions/CreateDeviceRequest",
20987
+ "$ref": "#/definitions/DownloadAttachmentRequest",
20978
20988
  "definitions": {
20979
- "CreateDeviceRequest": {
20989
+ "DownloadAttachmentRequest": {
20980
20990
  "type": "object",
20981
20991
  "properties": {
20982
- "name": {
20983
- "type": "string"
20984
- },
20985
- "description": {
20986
- "type": "string"
20992
+ "id": {
20993
+ "$ref": "#/definitions/MessageIdString"
20987
20994
  },
20988
- "isAdmin": {
20989
- "type": "boolean"
20995
+ "attachmentId": {
20996
+ "$ref": "#/definitions/FileIdString"
20990
20997
  }
20991
20998
  },
20999
+ "required": [
21000
+ "id",
21001
+ "attachmentId"
21002
+ ],
20992
21003
  "additionalProperties": false
21004
+ },
21005
+ "MessageIdString": {
21006
+ "type": "string",
21007
+ "pattern": "MSG[A-Za-z0-9]{17}"
21008
+ },
21009
+ "FileIdString": {
21010
+ "type": "string",
21011
+ "pattern": "FIL[A-Za-z0-9]{17}"
20993
21012
  }
20994
21013
  }
20995
21014
  };
20996
- exports.CreateDeviceOnboardingTokenRequest = {
21015
+ exports.GetAnnouncementsRequest = {
20997
21016
  "$schema": "http://json-schema.org/draft-07/schema#",
20998
- "$ref": "#/definitions/CreateDeviceOnboardingTokenRequest",
21017
+ "$ref": "#/definitions/GetAnnouncementsRequest",
20999
21018
  "definitions": {
21000
- "CreateDeviceOnboardingTokenRequest": {
21019
+ "GetAnnouncementsRequest": {
21001
21020
  "type": "object",
21002
21021
  "properties": {
21003
- "id": {
21004
- "$ref": "#/definitions/DeviceIdString"
21005
- },
21006
- "expiresAt": {
21007
- "$ref": "#/definitions/ISO8601DateTimeString"
21008
- },
21009
- "profileName": {
21010
- "type": "string"
21011
- },
21012
- "passwordProtection": {
21013
- "type": "object",
21014
- "properties": {
21015
- "password": {
21016
- "type": "string",
21017
- "minLength": 1
21018
- },
21019
- "passwordIsPin": {
21020
- "type": "boolean",
21021
- "const": true
21022
- },
21023
- "passwordLocationIndicator": {}
21024
- },
21025
- "required": [
21026
- "password"
21027
- ],
21028
- "additionalProperties": false
21029
- }
21030
- },
21031
- "required": [
21032
- "id"
21033
- ],
21034
- "additionalProperties": false
21035
- },
21036
- "DeviceIdString": {
21037
- "type": "string",
21038
- "pattern": "DVC[A-Za-z0-9]{17}"
21039
- },
21040
- "ISO8601DateTimeString": {
21041
- "type": "string",
21042
- "errorMessage": "must match ISO8601 datetime format",
21043
- "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
21044
- }
21045
- }
21046
- };
21047
- exports.DeleteDeviceRequest = {
21048
- "$schema": "http://json-schema.org/draft-07/schema#",
21049
- "$ref": "#/definitions/DeleteDeviceRequest",
21050
- "definitions": {
21051
- "DeleteDeviceRequest": {
21052
- "type": "object",
21053
- "properties": {
21054
- "id": {
21055
- "$ref": "#/definitions/DeviceIdString"
21056
- }
21057
- },
21058
- "required": [
21059
- "id"
21060
- ],
21061
- "additionalProperties": false
21062
- },
21063
- "DeviceIdString": {
21064
- "type": "string",
21065
- "pattern": "DVC[A-Za-z0-9]{17}"
21066
- }
21067
- }
21068
- };
21069
- exports.GetDeviceRequest = {
21070
- "$schema": "http://json-schema.org/draft-07/schema#",
21071
- "$ref": "#/definitions/GetDeviceRequest",
21072
- "definitions": {
21073
- "GetDeviceRequest": {
21074
- "type": "object",
21075
- "properties": {
21076
- "id": {
21077
- "$ref": "#/definitions/DeviceIdString"
21078
- }
21079
- },
21080
- "required": [
21081
- "id"
21082
- ],
21083
- "additionalProperties": false
21084
- },
21085
- "DeviceIdString": {
21086
- "type": "string",
21087
- "pattern": "DVC[A-Za-z0-9]{17}"
21088
- }
21089
- }
21090
- };
21091
- exports.GetDeviceOnboardingInfoRequest = {
21092
- "$schema": "http://json-schema.org/draft-07/schema#",
21093
- "$ref": "#/definitions/GetDeviceOnboardingInfoRequest",
21094
- "definitions": {
21095
- "GetDeviceOnboardingInfoRequest": {
21096
- "type": "object",
21097
- "properties": {
21098
- "id": {
21099
- "$ref": "#/definitions/GenericIdString"
21100
- },
21101
- "profileName": {
21102
- "type": "string"
21103
- }
21104
- },
21105
- "required": [
21106
- "id"
21107
- ],
21108
- "additionalProperties": false
21109
- },
21110
- "GenericIdString": {
21111
- "type": "string",
21112
- "pattern": "[A-Za-z0-9]{20}"
21113
- }
21114
- }
21115
- };
21116
- exports.SetCommunicationLanguageRequest = {
21117
- "$schema": "http://json-schema.org/draft-07/schema#",
21118
- "$ref": "#/definitions/SetCommunicationLanguageRequest",
21119
- "definitions": {
21120
- "SetCommunicationLanguageRequest": {
21121
- "type": "object",
21122
- "properties": {
21123
- "communicationLanguage": {
21022
+ "language": {
21124
21023
  "$ref": "#/definitions/LanguageISO639"
21125
21024
  }
21126
21025
  },
21127
21026
  "required": [
21128
- "communicationLanguage"
21027
+ "language"
21129
21028
  ],
21130
21029
  "additionalProperties": false
21131
21030
  },
@@ -21319,423 +21218,290 @@ exports.SetCommunicationLanguageRequest = {
21319
21218
  }
21320
21219
  }
21321
21220
  };
21322
- exports.UpdateDeviceRequest = {
21221
+ exports.CreateRelationshipChallengeRequest = {
21323
21222
  "$schema": "http://json-schema.org/draft-07/schema#",
21324
- "$ref": "#/definitions/UpdateDeviceRequest",
21223
+ "$ref": "#/definitions/CreateRelationshipChallengeRequest",
21325
21224
  "definitions": {
21326
- "UpdateDeviceRequest": {
21225
+ "CreateRelationshipChallengeRequest": {
21327
21226
  "type": "object",
21328
21227
  "properties": {
21329
- "id": {
21330
- "$ref": "#/definitions/DeviceIdString"
21331
- },
21332
- "name": {
21333
- "type": "string"
21228
+ "challengeType": {
21229
+ "type": "string",
21230
+ "const": "Relationship"
21334
21231
  },
21335
- "description": {
21336
- "type": "string"
21232
+ "relationship": {
21233
+ "$ref": "#/definitions/RelationshipIdString"
21337
21234
  }
21338
21235
  },
21339
21236
  "required": [
21340
- "id"
21237
+ "challengeType",
21238
+ "relationship"
21341
21239
  ],
21342
21240
  "additionalProperties": false
21343
21241
  },
21344
- "DeviceIdString": {
21242
+ "RelationshipIdString": {
21345
21243
  "type": "string",
21346
- "pattern": "DVC[A-Za-z0-9]{17}"
21244
+ "pattern": "REL[A-Za-z0-9]{17}"
21347
21245
  }
21348
21246
  }
21349
21247
  };
21350
- exports.CreateTokenForFileRequest = {
21248
+ exports.isCreateRelationshipChallengeRequest = {
21351
21249
  "$schema": "http://json-schema.org/draft-07/schema#",
21352
- "$ref": "#/definitions/CreateTokenForFileRequest",
21250
+ "$ref": "#/definitions/isCreateRelationshipChallengeRequest",
21353
21251
  "definitions": {
21354
- "CreateTokenForFileRequest": {
21252
+ "isCreateRelationshipChallengeRequest": {
21253
+ "$comment": "(value: any) => value is CreateRelationshipChallengeRequest",
21355
21254
  "type": "object",
21356
21255
  "properties": {
21357
- "fileId": {
21358
- "$ref": "#/definitions/FileIdString"
21359
- },
21360
- "expiresAt": {
21361
- "$ref": "#/definitions/ISO8601DateTimeString"
21362
- },
21363
- "ephemeral": {
21364
- "type": "boolean"
21365
- },
21366
- "forIdentity": {
21367
- "$ref": "#/definitions/AddressString"
21368
- },
21369
- "passwordProtection": {
21256
+ "namedArgs": {
21370
21257
  "type": "object",
21371
21258
  "properties": {
21372
- "password": {
21373
- "type": "string",
21374
- "minLength": 1
21375
- },
21376
- "passwordIsPin": {
21377
- "type": "boolean",
21378
- "const": true
21379
- },
21380
- "passwordLocationIndicator": {}
21259
+ "value": {}
21381
21260
  },
21382
21261
  "required": [
21383
- "password"
21262
+ "value"
21384
21263
  ],
21385
21264
  "additionalProperties": false
21386
21265
  }
21387
- },
21388
- "required": [
21389
- "fileId"
21390
- ],
21391
- "additionalProperties": false
21392
- },
21393
- "FileIdString": {
21394
- "type": "string",
21395
- "pattern": "FIL[A-Za-z0-9]{17}"
21396
- },
21397
- "ISO8601DateTimeString": {
21398
- "type": "string",
21399
- "errorMessage": "must match ISO8601 datetime format",
21400
- "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
21401
- },
21402
- "AddressString": {
21403
- "type": "string",
21404
- "pattern": "did:e:((([A-Za-z0-9]+(-[A-Za-z0-9]+)*)\\.)+[a-z]{2,}|localhost):dids:[0-9a-f]{22}"
21266
+ }
21405
21267
  }
21406
21268
  }
21407
21269
  };
21408
- exports.DeleteFileRequest = {
21270
+ exports.CreateIdentityChallengeRequest = {
21409
21271
  "$schema": "http://json-schema.org/draft-07/schema#",
21410
- "$ref": "#/definitions/DeleteFileRequest",
21272
+ "$ref": "#/definitions/CreateIdentityChallengeRequest",
21411
21273
  "definitions": {
21412
- "DeleteFileRequest": {
21274
+ "CreateIdentityChallengeRequest": {
21413
21275
  "type": "object",
21414
21276
  "properties": {
21415
- "fileId": {
21416
- "$ref": "#/definitions/FileIdString"
21277
+ "challengeType": {
21278
+ "type": "string",
21279
+ "const": "Identity"
21417
21280
  }
21418
21281
  },
21419
21282
  "required": [
21420
- "fileId"
21283
+ "challengeType"
21421
21284
  ],
21422
21285
  "additionalProperties": false
21423
- },
21424
- "FileIdString": {
21425
- "type": "string",
21426
- "pattern": "FIL[A-Za-z0-9]{17}"
21427
21286
  }
21428
21287
  }
21429
21288
  };
21430
- exports.GetFileRequest = {
21289
+ exports.isCreateIdentityChallengeRequest = {
21431
21290
  "$schema": "http://json-schema.org/draft-07/schema#",
21432
- "$ref": "#/definitions/GetFileRequest",
21291
+ "$ref": "#/definitions/isCreateIdentityChallengeRequest",
21433
21292
  "definitions": {
21434
- "GetFileRequest": {
21293
+ "isCreateIdentityChallengeRequest": {
21294
+ "$comment": "(value: any) => value is CreateIdentityChallengeRequest",
21435
21295
  "type": "object",
21436
21296
  "properties": {
21437
- "id": {
21438
- "$ref": "#/definitions/FileIdString"
21297
+ "namedArgs": {
21298
+ "type": "object",
21299
+ "properties": {
21300
+ "value": {}
21301
+ },
21302
+ "required": [
21303
+ "value"
21304
+ ],
21305
+ "additionalProperties": false
21306
+ }
21307
+ }
21308
+ }
21309
+ }
21310
+ };
21311
+ exports.CreateDeviceChallengeRequest = {
21312
+ "$schema": "http://json-schema.org/draft-07/schema#",
21313
+ "$ref": "#/definitions/CreateDeviceChallengeRequest",
21314
+ "definitions": {
21315
+ "CreateDeviceChallengeRequest": {
21316
+ "type": "object",
21317
+ "properties": {
21318
+ "challengeType": {
21319
+ "type": "string",
21320
+ "const": "Device"
21439
21321
  }
21440
21322
  },
21441
21323
  "required": [
21442
- "id"
21324
+ "challengeType"
21443
21325
  ],
21444
21326
  "additionalProperties": false
21445
- },
21446
- "FileIdString": {
21447
- "type": "string",
21448
- "pattern": "FIL[A-Za-z0-9]{17}"
21449
21327
  }
21450
21328
  }
21451
21329
  };
21452
- exports.GetFilesRequest = {
21330
+ exports.isCreateDeviceChallengeRequest = {
21453
21331
  "$schema": "http://json-schema.org/draft-07/schema#",
21454
- "$ref": "#/definitions/GetFilesRequest",
21332
+ "$ref": "#/definitions/isCreateDeviceChallengeRequest",
21455
21333
  "definitions": {
21456
- "GetFilesRequest": {
21334
+ "isCreateDeviceChallengeRequest": {
21335
+ "$comment": "(value: any) => value is CreateDeviceChallengeRequest",
21457
21336
  "type": "object",
21458
21337
  "properties": {
21459
- "query": {
21460
- "$ref": "#/definitions/GetFilesQuery"
21338
+ "namedArgs": {
21339
+ "type": "object",
21340
+ "properties": {
21341
+ "value": {}
21342
+ },
21343
+ "required": [
21344
+ "value"
21345
+ ],
21346
+ "additionalProperties": false
21347
+ }
21348
+ }
21349
+ }
21350
+ }
21351
+ };
21352
+ exports.CreateChallengeRequest = {
21353
+ "$schema": "http://json-schema.org/draft-07/schema#",
21354
+ "$ref": "#/definitions/CreateChallengeRequest",
21355
+ "definitions": {
21356
+ "CreateChallengeRequest": {
21357
+ "anyOf": [
21358
+ {
21359
+ "$ref": "#/definitions/CreateRelationshipChallengeRequest"
21461
21360
  },
21462
- "ownerRestriction": {
21463
- "$ref": "#/definitions/OwnerRestriction"
21361
+ {
21362
+ "$ref": "#/definitions/CreateIdentityChallengeRequest"
21363
+ },
21364
+ {
21365
+ "$ref": "#/definitions/CreateDeviceChallengeRequest"
21464
21366
  }
21465
- },
21466
- "additionalProperties": false
21367
+ ]
21467
21368
  },
21468
- "GetFilesQuery": {
21369
+ "CreateRelationshipChallengeRequest": {
21469
21370
  "type": "object",
21470
21371
  "properties": {
21471
- "createdAt": {
21472
- "anyOf": [
21473
- {
21474
- "type": "string"
21475
- },
21476
- {
21477
- "type": "array",
21478
- "items": {
21479
- "type": "string"
21480
- }
21481
- }
21482
- ]
21483
- },
21484
- "createdBy": {
21485
- "anyOf": [
21486
- {
21487
- "type": "string"
21488
- },
21489
- {
21490
- "type": "array",
21491
- "items": {
21492
- "type": "string"
21493
- }
21494
- }
21495
- ]
21496
- },
21497
- "createdByDevice": {
21498
- "anyOf": [
21499
- {
21500
- "type": "string"
21501
- },
21502
- {
21503
- "type": "array",
21504
- "items": {
21505
- "type": "string"
21506
- }
21507
- }
21508
- ]
21509
- },
21510
- "description": {
21511
- "anyOf": [
21512
- {
21513
- "type": "string"
21514
- },
21515
- {
21516
- "type": "array",
21517
- "items": {
21518
- "type": "string"
21519
- }
21520
- }
21521
- ]
21522
- },
21523
- "expiresAt": {
21524
- "anyOf": [
21525
- {
21526
- "type": "string"
21527
- },
21528
- {
21529
- "type": "array",
21530
- "items": {
21531
- "type": "string"
21532
- }
21533
- }
21534
- ]
21535
- },
21536
- "filename": {
21537
- "anyOf": [
21538
- {
21539
- "type": "string"
21540
- },
21541
- {
21542
- "type": "array",
21543
- "items": {
21544
- "type": "string"
21545
- }
21546
- }
21547
- ]
21548
- },
21549
- "filesize": {
21550
- "anyOf": [
21551
- {
21552
- "type": "string"
21553
- },
21554
- {
21555
- "type": "array",
21556
- "items": {
21557
- "type": "string"
21558
- }
21559
- }
21560
- ]
21561
- },
21562
- "mimetype": {
21563
- "anyOf": [
21564
- {
21565
- "type": "string"
21566
- },
21567
- {
21568
- "type": "array",
21569
- "items": {
21570
- "type": "string"
21571
- }
21572
- }
21573
- ]
21574
- },
21575
- "title": {
21576
- "anyOf": [
21577
- {
21578
- "type": "string"
21579
- },
21580
- {
21581
- "type": "array",
21582
- "items": {
21583
- "type": "string"
21584
- }
21585
- }
21586
- ]
21587
- },
21588
- "isOwn": {
21589
- "anyOf": [
21590
- {
21591
- "type": "string"
21592
- },
21593
- {
21594
- "type": "array",
21595
- "items": {
21596
- "type": "string"
21597
- }
21598
- }
21599
- ]
21372
+ "challengeType": {
21373
+ "type": "string",
21374
+ "const": "Relationship"
21600
21375
  },
21601
- "tags": {
21602
- "anyOf": [
21603
- {
21604
- "type": "string"
21605
- },
21606
- {
21607
- "type": "array",
21608
- "items": {
21609
- "type": "string"
21610
- }
21611
- }
21612
- ]
21376
+ "relationship": {
21377
+ "$ref": "#/definitions/RelationshipIdString"
21613
21378
  }
21614
21379
  },
21380
+ "required": [
21381
+ "challengeType",
21382
+ "relationship"
21383
+ ],
21615
21384
  "additionalProperties": false
21616
21385
  },
21617
- "OwnerRestriction": {
21386
+ "RelationshipIdString": {
21618
21387
  "type": "string",
21619
- "enum": [
21620
- "o",
21621
- "p"
21622
- ]
21388
+ "pattern": "REL[A-Za-z0-9]{17}"
21389
+ },
21390
+ "CreateIdentityChallengeRequest": {
21391
+ "type": "object",
21392
+ "properties": {
21393
+ "challengeType": {
21394
+ "type": "string",
21395
+ "const": "Identity"
21396
+ }
21397
+ },
21398
+ "required": [
21399
+ "challengeType"
21400
+ ],
21401
+ "additionalProperties": false
21402
+ },
21403
+ "CreateDeviceChallengeRequest": {
21404
+ "type": "object",
21405
+ "properties": {
21406
+ "challengeType": {
21407
+ "type": "string",
21408
+ "const": "Device"
21409
+ }
21410
+ },
21411
+ "required": [
21412
+ "challengeType"
21413
+ ],
21414
+ "additionalProperties": false
21623
21415
  }
21624
21416
  }
21625
21417
  };
21626
- exports.GetOrLoadFileRequest = {
21418
+ exports.ValidateChallengeRequest = {
21627
21419
  "$schema": "http://json-schema.org/draft-07/schema#",
21628
- "$ref": "#/definitions/GetOrLoadFileRequest",
21420
+ "$ref": "#/definitions/ValidateChallengeRequest",
21629
21421
  "definitions": {
21630
- "GetOrLoadFileRequest": {
21422
+ "ValidateChallengeRequest": {
21631
21423
  "type": "object",
21632
21424
  "properties": {
21633
- "reference": {
21634
- "anyOf": [
21635
- {
21636
- "$ref": "#/definitions/TokenReferenceString"
21637
- },
21638
- {
21639
- "$ref": "#/definitions/FileReferenceString"
21640
- }
21641
- ]
21425
+ "challengeString": {
21426
+ "type": "string"
21642
21427
  },
21643
- "password": {
21428
+ "signature": {
21644
21429
  "type": "string"
21645
21430
  }
21646
21431
  },
21647
21432
  "required": [
21648
- "reference"
21433
+ "challengeString",
21434
+ "signature"
21649
21435
  ],
21650
- "additionalProperties": false,
21651
- "errorMessage": "token / file reference invalid"
21652
- },
21653
- "TokenReferenceString": {
21654
- "type": "string",
21655
- "pattern": "VE9L.{84}"
21656
- },
21657
- "FileReferenceString": {
21658
- "type": "string",
21659
- "pattern": "RklM.{84}"
21436
+ "additionalProperties": false
21660
21437
  }
21661
21438
  }
21662
21439
  };
21663
- exports.UploadOwnFileRequest = {
21440
+ exports.CreateDeviceRequest = {
21664
21441
  "$schema": "http://json-schema.org/draft-07/schema#",
21665
- "$ref": "#/definitions/UploadOwnFileRequest",
21442
+ "$ref": "#/definitions/CreateDeviceRequest",
21666
21443
  "definitions": {
21667
- "UploadOwnFileRequest": {
21444
+ "CreateDeviceRequest": {
21668
21445
  "type": "object",
21669
21446
  "properties": {
21670
- "content": {
21671
- "type": "object",
21672
- "properties": {
21673
- "BYTES_PER_ELEMENT": {
21674
- "type": "number"
21675
- },
21676
- "buffer": {
21677
- "type": "object",
21678
- "properties": {
21679
- "byteLength": {
21680
- "type": "number"
21681
- }
21682
- },
21683
- "required": [
21684
- "byteLength"
21685
- ],
21686
- "additionalProperties": false
21687
- },
21688
- "byteLength": {
21689
- "type": "number"
21690
- },
21691
- "byteOffset": {
21692
- "type": "number"
21693
- },
21694
- "length": {
21695
- "type": "number"
21696
- }
21697
- },
21698
- "required": [
21699
- "BYTES_PER_ELEMENT",
21700
- "buffer",
21701
- "byteLength",
21702
- "byteOffset",
21703
- "length"
21704
- ],
21705
- "additionalProperties": {
21706
- "type": "number"
21707
- }
21708
- },
21709
- "filename": {
21447
+ "name": {
21710
21448
  "type": "string"
21711
21449
  },
21712
- "mimetype": {
21450
+ "description": {
21713
21451
  "type": "string"
21714
21452
  },
21453
+ "isAdmin": {
21454
+ "type": "boolean"
21455
+ }
21456
+ },
21457
+ "additionalProperties": false
21458
+ }
21459
+ }
21460
+ };
21461
+ exports.CreateDeviceOnboardingTokenRequest = {
21462
+ "$schema": "http://json-schema.org/draft-07/schema#",
21463
+ "$ref": "#/definitions/CreateDeviceOnboardingTokenRequest",
21464
+ "definitions": {
21465
+ "CreateDeviceOnboardingTokenRequest": {
21466
+ "type": "object",
21467
+ "properties": {
21468
+ "id": {
21469
+ "$ref": "#/definitions/DeviceIdString"
21470
+ },
21715
21471
  "expiresAt": {
21716
21472
  "$ref": "#/definitions/ISO8601DateTimeString"
21717
21473
  },
21718
- "title": {
21719
- "type": "string"
21720
- },
21721
- "description": {
21474
+ "profileName": {
21722
21475
  "type": "string"
21723
21476
  },
21724
- "tags": {
21725
- "type": "array",
21726
- "items": {
21727
- "type": "string"
21477
+ "passwordProtection": {
21478
+ "type": "object",
21479
+ "properties": {
21480
+ "password": {
21481
+ "type": "string",
21482
+ "minLength": 1
21483
+ },
21484
+ "passwordIsPin": {
21485
+ "type": "boolean",
21486
+ "const": true
21487
+ },
21488
+ "passwordLocationIndicator": {}
21728
21489
  },
21729
- "uniqueItems": true
21490
+ "required": [
21491
+ "password"
21492
+ ],
21493
+ "additionalProperties": false
21730
21494
  }
21731
21495
  },
21732
21496
  "required": [
21733
- "content",
21734
- "filename",
21735
- "mimetype"
21497
+ "id"
21736
21498
  ],
21737
21499
  "additionalProperties": false
21738
21500
  },
21501
+ "DeviceIdString": {
21502
+ "type": "string",
21503
+ "pattern": "DVC[A-Za-z0-9]{17}"
21504
+ },
21739
21505
  "ISO8601DateTimeString": {
21740
21506
  "type": "string",
21741
21507
  "errorMessage": "must match ISO8601 datetime format",
@@ -21743,50 +21509,306 @@ exports.UploadOwnFileRequest = {
21743
21509
  }
21744
21510
  }
21745
21511
  };
21746
- exports.UploadOwnFileValidatableRequest = {
21512
+ exports.DeleteDeviceRequest = {
21747
21513
  "$schema": "http://json-schema.org/draft-07/schema#",
21748
- "$ref": "#/definitions/UploadOwnFileValidatableRequest",
21514
+ "$ref": "#/definitions/DeleteDeviceRequest",
21749
21515
  "definitions": {
21750
- "UploadOwnFileValidatableRequest": {
21516
+ "DeleteDeviceRequest": {
21751
21517
  "type": "object",
21752
21518
  "properties": {
21753
- "filename": {
21754
- "type": "string"
21519
+ "id": {
21520
+ "$ref": "#/definitions/DeviceIdString"
21521
+ }
21522
+ },
21523
+ "required": [
21524
+ "id"
21525
+ ],
21526
+ "additionalProperties": false
21527
+ },
21528
+ "DeviceIdString": {
21529
+ "type": "string",
21530
+ "pattern": "DVC[A-Za-z0-9]{17}"
21531
+ }
21532
+ }
21533
+ };
21534
+ exports.GetDeviceRequest = {
21535
+ "$schema": "http://json-schema.org/draft-07/schema#",
21536
+ "$ref": "#/definitions/GetDeviceRequest",
21537
+ "definitions": {
21538
+ "GetDeviceRequest": {
21539
+ "type": "object",
21540
+ "properties": {
21541
+ "id": {
21542
+ "$ref": "#/definitions/DeviceIdString"
21543
+ }
21544
+ },
21545
+ "required": [
21546
+ "id"
21547
+ ],
21548
+ "additionalProperties": false
21549
+ },
21550
+ "DeviceIdString": {
21551
+ "type": "string",
21552
+ "pattern": "DVC[A-Za-z0-9]{17}"
21553
+ }
21554
+ }
21555
+ };
21556
+ exports.GetDeviceOnboardingInfoRequest = {
21557
+ "$schema": "http://json-schema.org/draft-07/schema#",
21558
+ "$ref": "#/definitions/GetDeviceOnboardingInfoRequest",
21559
+ "definitions": {
21560
+ "GetDeviceOnboardingInfoRequest": {
21561
+ "type": "object",
21562
+ "properties": {
21563
+ "id": {
21564
+ "$ref": "#/definitions/GenericIdString"
21755
21565
  },
21756
- "mimetype": {
21566
+ "profileName": {
21757
21567
  "type": "string"
21568
+ }
21569
+ },
21570
+ "required": [
21571
+ "id"
21572
+ ],
21573
+ "additionalProperties": false
21574
+ },
21575
+ "GenericIdString": {
21576
+ "type": "string",
21577
+ "pattern": "[A-Za-z0-9]{20}"
21578
+ }
21579
+ }
21580
+ };
21581
+ exports.SetCommunicationLanguageRequest = {
21582
+ "$schema": "http://json-schema.org/draft-07/schema#",
21583
+ "$ref": "#/definitions/SetCommunicationLanguageRequest",
21584
+ "definitions": {
21585
+ "SetCommunicationLanguageRequest": {
21586
+ "type": "object",
21587
+ "properties": {
21588
+ "communicationLanguage": {
21589
+ "$ref": "#/definitions/LanguageISO639"
21590
+ }
21591
+ },
21592
+ "required": [
21593
+ "communicationLanguage"
21594
+ ],
21595
+ "additionalProperties": false
21596
+ },
21597
+ "LanguageISO639": {
21598
+ "type": "string",
21599
+ "enum": [
21600
+ "aa",
21601
+ "ab",
21602
+ "ae",
21603
+ "af",
21604
+ "ak",
21605
+ "am",
21606
+ "an",
21607
+ "ar",
21608
+ "as",
21609
+ "av",
21610
+ "ay",
21611
+ "az",
21612
+ "ba",
21613
+ "be",
21614
+ "bg",
21615
+ "bi",
21616
+ "bm",
21617
+ "bn",
21618
+ "bo",
21619
+ "br",
21620
+ "bs",
21621
+ "ca",
21622
+ "ce",
21623
+ "ch",
21624
+ "co",
21625
+ "cr",
21626
+ "cs",
21627
+ "cu",
21628
+ "cv",
21629
+ "cy",
21630
+ "da",
21631
+ "de",
21632
+ "dv",
21633
+ "dz",
21634
+ "ee",
21635
+ "el",
21636
+ "en",
21637
+ "eo",
21638
+ "es",
21639
+ "et",
21640
+ "eu",
21641
+ "fa",
21642
+ "ff",
21643
+ "fi",
21644
+ "fj",
21645
+ "fo",
21646
+ "fr",
21647
+ "fy",
21648
+ "ga",
21649
+ "gd",
21650
+ "gl",
21651
+ "gn",
21652
+ "gu",
21653
+ "gv",
21654
+ "ha",
21655
+ "he",
21656
+ "hi",
21657
+ "ho",
21658
+ "hr",
21659
+ "ht",
21660
+ "hu",
21661
+ "hy",
21662
+ "hz",
21663
+ "ia",
21664
+ "id",
21665
+ "ie",
21666
+ "ig",
21667
+ "ii",
21668
+ "ik",
21669
+ "io",
21670
+ "is",
21671
+ "it",
21672
+ "iu",
21673
+ "ja",
21674
+ "jv",
21675
+ "ka",
21676
+ "kg",
21677
+ "ki",
21678
+ "kj",
21679
+ "kk",
21680
+ "kl",
21681
+ "km",
21682
+ "kn",
21683
+ "ko",
21684
+ "kr",
21685
+ "ks",
21686
+ "ku",
21687
+ "kv",
21688
+ "kw",
21689
+ "ky",
21690
+ "la",
21691
+ "lb",
21692
+ "lg",
21693
+ "li",
21694
+ "ln",
21695
+ "lo",
21696
+ "lt",
21697
+ "lu",
21698
+ "lv",
21699
+ "mg",
21700
+ "mh",
21701
+ "mi",
21702
+ "mk",
21703
+ "ml",
21704
+ "mn",
21705
+ "mr",
21706
+ "ms",
21707
+ "mt",
21708
+ "my",
21709
+ "na",
21710
+ "nb",
21711
+ "nd",
21712
+ "ne",
21713
+ "ng",
21714
+ "nl",
21715
+ "nn",
21716
+ "no",
21717
+ "nr",
21718
+ "nv",
21719
+ "ny",
21720
+ "oc",
21721
+ "oj",
21722
+ "om",
21723
+ "or",
21724
+ "os",
21725
+ "pa",
21726
+ "pi",
21727
+ "pl",
21728
+ "ps",
21729
+ "pt",
21730
+ "qu",
21731
+ "rm",
21732
+ "rn",
21733
+ "ro",
21734
+ "ru",
21735
+ "rw",
21736
+ "sa",
21737
+ "sc",
21738
+ "sd",
21739
+ "se",
21740
+ "sg",
21741
+ "si",
21742
+ "sk",
21743
+ "sl",
21744
+ "sm",
21745
+ "sn",
21746
+ "so",
21747
+ "sq",
21748
+ "sr",
21749
+ "ss",
21750
+ "st",
21751
+ "su",
21752
+ "sv",
21753
+ "sw",
21754
+ "ta",
21755
+ "te",
21756
+ "tg",
21757
+ "th",
21758
+ "ti",
21759
+ "tk",
21760
+ "tl",
21761
+ "tn",
21762
+ "to",
21763
+ "tr",
21764
+ "ts",
21765
+ "tt",
21766
+ "tw",
21767
+ "ty",
21768
+ "ug",
21769
+ "uk",
21770
+ "ur",
21771
+ "uz",
21772
+ "ve",
21773
+ "vi",
21774
+ "vo",
21775
+ "wa",
21776
+ "wo",
21777
+ "xh",
21778
+ "yi",
21779
+ "yo",
21780
+ "za",
21781
+ "zh",
21782
+ "zu"
21783
+ ]
21784
+ }
21785
+ }
21786
+ };
21787
+ exports.UpdateDeviceRequest = {
21788
+ "$schema": "http://json-schema.org/draft-07/schema#",
21789
+ "$ref": "#/definitions/UpdateDeviceRequest",
21790
+ "definitions": {
21791
+ "UpdateDeviceRequest": {
21792
+ "type": "object",
21793
+ "properties": {
21794
+ "id": {
21795
+ "$ref": "#/definitions/DeviceIdString"
21758
21796
  },
21759
- "expiresAt": {
21760
- "$ref": "#/definitions/ISO8601DateTimeString"
21761
- },
21762
- "title": {
21797
+ "name": {
21763
21798
  "type": "string"
21764
21799
  },
21765
21800
  "description": {
21766
21801
  "type": "string"
21767
- },
21768
- "tags": {
21769
- "type": "array",
21770
- "items": {
21771
- "type": "string"
21772
- },
21773
- "uniqueItems": true
21774
- },
21775
- "content": {
21776
- "type": "object"
21777
21802
  }
21778
21803
  },
21779
21804
  "required": [
21780
- "content",
21781
- "filename",
21782
- "mimetype"
21805
+ "id"
21783
21806
  ],
21784
21807
  "additionalProperties": false
21785
21808
  },
21786
- "ISO8601DateTimeString": {
21809
+ "DeviceIdString": {
21787
21810
  "type": "string",
21788
- "errorMessage": "must match ISO8601 datetime format",
21789
- "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
21811
+ "pattern": "DVC[A-Za-z0-9]{17}"
21790
21812
  }
21791
21813
  }
21792
21814
  };