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