@nmshd/runtime 7.0.0-alpha.39 → 7.0.0-alpha.40

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",
@@ -19865,652 +19865,551 @@ exports.RegisterPushNotificationTokenRequest = {
19865
19865
  }
19866
19866
  }
19867
19867
  };
19868
- exports.GetIdentityDeletionProcessRequest = {
19868
+ exports.CreateTokenForFileRequest = {
19869
19869
  "$schema": "http://json-schema.org/draft-07/schema#",
19870
- "$ref": "#/definitions/GetIdentityDeletionProcessRequest",
19870
+ "$ref": "#/definitions/CreateTokenForFileRequest",
19871
19871
  "definitions": {
19872
- "GetIdentityDeletionProcessRequest": {
19872
+ "CreateTokenForFileRequest": {
19873
19873
  "type": "object",
19874
19874
  "properties": {
19875
- "id": {
19876
- "$ref": "#/definitions/IdentityDeletionProcessIdString"
19875
+ "fileId": {
19876
+ "$ref": "#/definitions/FileIdString"
19877
+ },
19878
+ "expiresAt": {
19879
+ "$ref": "#/definitions/ISO8601DateTimeString"
19880
+ },
19881
+ "ephemeral": {
19882
+ "type": "boolean"
19883
+ },
19884
+ "forIdentity": {
19885
+ "$ref": "#/definitions/AddressString"
19886
+ },
19887
+ "passwordProtection": {
19888
+ "type": "object",
19889
+ "properties": {
19890
+ "password": {
19891
+ "type": "string",
19892
+ "minLength": 1
19893
+ },
19894
+ "passwordIsPin": {
19895
+ "type": "boolean",
19896
+ "const": true
19897
+ },
19898
+ "passwordLocationIndicator": {}
19899
+ },
19900
+ "required": [
19901
+ "password"
19902
+ ],
19903
+ "additionalProperties": false
19877
19904
  }
19878
19905
  },
19879
19906
  "required": [
19880
- "id"
19907
+ "fileId"
19881
19908
  ],
19882
19909
  "additionalProperties": false
19883
19910
  },
19884
- "IdentityDeletionProcessIdString": {
19911
+ "FileIdString": {
19885
19912
  "type": "string",
19886
- "pattern": "IDP[A-Za-z0-9]{17}"
19913
+ "pattern": "FIL[A-Za-z0-9]{17}"
19914
+ },
19915
+ "ISO8601DateTimeString": {
19916
+ "type": "string",
19917
+ "errorMessage": "must match ISO8601 datetime format",
19918
+ "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)?)?)?)?$"
19919
+ },
19920
+ "AddressString": {
19921
+ "type": "string",
19922
+ "pattern": "did:e:((([A-Za-z0-9]+(-[A-Za-z0-9]+)*)\\.)+[a-z]{2,}|localhost):dids:[0-9a-f]{22}"
19887
19923
  }
19888
19924
  }
19889
19925
  };
19890
- exports.InitiateIdentityDeletionProcessRequest = {
19926
+ exports.DeleteFileRequest = {
19891
19927
  "$schema": "http://json-schema.org/draft-07/schema#",
19892
- "$ref": "#/definitions/InitiateIdentityDeletionProcessRequest",
19928
+ "$ref": "#/definitions/DeleteFileRequest",
19893
19929
  "definitions": {
19894
- "InitiateIdentityDeletionProcessRequest": {
19930
+ "DeleteFileRequest": {
19895
19931
  "type": "object",
19896
19932
  "properties": {
19897
- "lengthOfGracePeriodInDays": {
19898
- "type": "number"
19933
+ "fileId": {
19934
+ "$ref": "#/definitions/FileIdString"
19899
19935
  }
19900
19936
  },
19937
+ "required": [
19938
+ "fileId"
19939
+ ],
19901
19940
  "additionalProperties": false
19941
+ },
19942
+ "FileIdString": {
19943
+ "type": "string",
19944
+ "pattern": "FIL[A-Za-z0-9]{17}"
19902
19945
  }
19903
19946
  }
19904
19947
  };
19905
- exports.DownloadAttachmentRequest = {
19948
+ exports.GetFileRequest = {
19906
19949
  "$schema": "http://json-schema.org/draft-07/schema#",
19907
- "$ref": "#/definitions/DownloadAttachmentRequest",
19950
+ "$ref": "#/definitions/GetFileRequest",
19908
19951
  "definitions": {
19909
- "DownloadAttachmentRequest": {
19952
+ "GetFileRequest": {
19910
19953
  "type": "object",
19911
19954
  "properties": {
19912
19955
  "id": {
19913
- "$ref": "#/definitions/MessageIdString"
19914
- },
19915
- "attachmentId": {
19916
19956
  "$ref": "#/definitions/FileIdString"
19917
19957
  }
19918
19958
  },
19919
19959
  "required": [
19920
- "id",
19921
- "attachmentId"
19960
+ "id"
19922
19961
  ],
19923
19962
  "additionalProperties": false
19924
19963
  },
19925
- "MessageIdString": {
19926
- "type": "string",
19927
- "pattern": "MSG[A-Za-z0-9]{17}"
19928
- },
19929
19964
  "FileIdString": {
19930
19965
  "type": "string",
19931
19966
  "pattern": "FIL[A-Za-z0-9]{17}"
19932
19967
  }
19933
19968
  }
19934
19969
  };
19935
- exports.GetAnnouncementsRequest = {
19970
+ exports.GetFilesRequest = {
19936
19971
  "$schema": "http://json-schema.org/draft-07/schema#",
19937
- "$ref": "#/definitions/GetAnnouncementsRequest",
19972
+ "$ref": "#/definitions/GetFilesRequest",
19938
19973
  "definitions": {
19939
- "GetAnnouncementsRequest": {
19974
+ "GetFilesRequest": {
19940
19975
  "type": "object",
19941
19976
  "properties": {
19942
- "language": {
19943
- "$ref": "#/definitions/LanguageISO639"
19977
+ "query": {
19978
+ "$ref": "#/definitions/GetFilesQuery"
19979
+ },
19980
+ "ownerRestriction": {
19981
+ "$ref": "#/definitions/OwnerRestriction"
19944
19982
  }
19945
19983
  },
19946
- "required": [
19947
- "language"
19948
- ],
19949
19984
  "additionalProperties": false
19950
19985
  },
19951
- "LanguageISO639": {
19986
+ "GetFilesQuery": {
19987
+ "type": "object",
19988
+ "properties": {
19989
+ "createdAt": {
19990
+ "anyOf": [
19991
+ {
19992
+ "type": "string"
19993
+ },
19994
+ {
19995
+ "type": "array",
19996
+ "items": {
19997
+ "type": "string"
19998
+ }
19999
+ }
20000
+ ]
20001
+ },
20002
+ "createdBy": {
20003
+ "anyOf": [
20004
+ {
20005
+ "type": "string"
20006
+ },
20007
+ {
20008
+ "type": "array",
20009
+ "items": {
20010
+ "type": "string"
20011
+ }
20012
+ }
20013
+ ]
20014
+ },
20015
+ "createdByDevice": {
20016
+ "anyOf": [
20017
+ {
20018
+ "type": "string"
20019
+ },
20020
+ {
20021
+ "type": "array",
20022
+ "items": {
20023
+ "type": "string"
20024
+ }
20025
+ }
20026
+ ]
20027
+ },
20028
+ "description": {
20029
+ "anyOf": [
20030
+ {
20031
+ "type": "string"
20032
+ },
20033
+ {
20034
+ "type": "array",
20035
+ "items": {
20036
+ "type": "string"
20037
+ }
20038
+ }
20039
+ ]
20040
+ },
20041
+ "expiresAt": {
20042
+ "anyOf": [
20043
+ {
20044
+ "type": "string"
20045
+ },
20046
+ {
20047
+ "type": "array",
20048
+ "items": {
20049
+ "type": "string"
20050
+ }
20051
+ }
20052
+ ]
20053
+ },
20054
+ "filename": {
20055
+ "anyOf": [
20056
+ {
20057
+ "type": "string"
20058
+ },
20059
+ {
20060
+ "type": "array",
20061
+ "items": {
20062
+ "type": "string"
20063
+ }
20064
+ }
20065
+ ]
20066
+ },
20067
+ "filesize": {
20068
+ "anyOf": [
20069
+ {
20070
+ "type": "string"
20071
+ },
20072
+ {
20073
+ "type": "array",
20074
+ "items": {
20075
+ "type": "string"
20076
+ }
20077
+ }
20078
+ ]
20079
+ },
20080
+ "mimetype": {
20081
+ "anyOf": [
20082
+ {
20083
+ "type": "string"
20084
+ },
20085
+ {
20086
+ "type": "array",
20087
+ "items": {
20088
+ "type": "string"
20089
+ }
20090
+ }
20091
+ ]
20092
+ },
20093
+ "title": {
20094
+ "anyOf": [
20095
+ {
20096
+ "type": "string"
20097
+ },
20098
+ {
20099
+ "type": "array",
20100
+ "items": {
20101
+ "type": "string"
20102
+ }
20103
+ }
20104
+ ]
20105
+ },
20106
+ "isOwn": {
20107
+ "anyOf": [
20108
+ {
20109
+ "type": "string"
20110
+ },
20111
+ {
20112
+ "type": "array",
20113
+ "items": {
20114
+ "type": "string"
20115
+ }
20116
+ }
20117
+ ]
20118
+ },
20119
+ "tags": {
20120
+ "anyOf": [
20121
+ {
20122
+ "type": "string"
20123
+ },
20124
+ {
20125
+ "type": "array",
20126
+ "items": {
20127
+ "type": "string"
20128
+ }
20129
+ }
20130
+ ]
20131
+ }
20132
+ },
20133
+ "additionalProperties": false
20134
+ },
20135
+ "OwnerRestriction": {
19952
20136
  "type": "string",
19953
20137
  "enum": [
19954
- "aa",
19955
- "ab",
19956
- "ae",
19957
- "af",
19958
- "ak",
19959
- "am",
19960
- "an",
19961
- "ar",
19962
- "as",
19963
- "av",
19964
- "ay",
19965
- "az",
19966
- "ba",
19967
- "be",
19968
- "bg",
19969
- "bi",
19970
- "bm",
19971
- "bn",
19972
- "bo",
19973
- "br",
19974
- "bs",
19975
- "ca",
19976
- "ce",
19977
- "ch",
19978
- "co",
19979
- "cr",
19980
- "cs",
19981
- "cu",
19982
- "cv",
19983
- "cy",
19984
- "da",
19985
- "de",
19986
- "dv",
19987
- "dz",
19988
- "ee",
19989
- "el",
19990
- "en",
19991
- "eo",
19992
- "es",
19993
- "et",
19994
- "eu",
19995
- "fa",
19996
- "ff",
19997
- "fi",
19998
- "fj",
19999
- "fo",
20000
- "fr",
20001
- "fy",
20002
- "ga",
20003
- "gd",
20004
- "gl",
20005
- "gn",
20006
- "gu",
20007
- "gv",
20008
- "ha",
20009
- "he",
20010
- "hi",
20011
- "ho",
20012
- "hr",
20013
- "ht",
20014
- "hu",
20015
- "hy",
20016
- "hz",
20017
- "ia",
20018
- "id",
20019
- "ie",
20020
- "ig",
20021
- "ii",
20022
- "ik",
20023
- "io",
20024
- "is",
20025
- "it",
20026
- "iu",
20027
- "ja",
20028
- "jv",
20029
- "ka",
20030
- "kg",
20031
- "ki",
20032
- "kj",
20033
- "kk",
20034
- "kl",
20035
- "km",
20036
- "kn",
20037
- "ko",
20038
- "kr",
20039
- "ks",
20040
- "ku",
20041
- "kv",
20042
- "kw",
20043
- "ky",
20044
- "la",
20045
- "lb",
20046
- "lg",
20047
- "li",
20048
- "ln",
20049
- "lo",
20050
- "lt",
20051
- "lu",
20052
- "lv",
20053
- "mg",
20054
- "mh",
20055
- "mi",
20056
- "mk",
20057
- "ml",
20058
- "mn",
20059
- "mr",
20060
- "ms",
20061
- "mt",
20062
- "my",
20063
- "na",
20064
- "nb",
20065
- "nd",
20066
- "ne",
20067
- "ng",
20068
- "nl",
20069
- "nn",
20070
- "no",
20071
- "nr",
20072
- "nv",
20073
- "ny",
20074
- "oc",
20075
- "oj",
20076
- "om",
20077
- "or",
20078
- "os",
20079
- "pa",
20080
- "pi",
20081
- "pl",
20082
- "ps",
20083
- "pt",
20084
- "qu",
20085
- "rm",
20086
- "rn",
20087
- "ro",
20088
- "ru",
20089
- "rw",
20090
- "sa",
20091
- "sc",
20092
- "sd",
20093
- "se",
20094
- "sg",
20095
- "si",
20096
- "sk",
20097
- "sl",
20098
- "sm",
20099
- "sn",
20100
- "so",
20101
- "sq",
20102
- "sr",
20103
- "ss",
20104
- "st",
20105
- "su",
20106
- "sv",
20107
- "sw",
20108
- "ta",
20109
- "te",
20110
- "tg",
20111
- "th",
20112
- "ti",
20113
- "tk",
20114
- "tl",
20115
- "tn",
20116
- "to",
20117
- "tr",
20118
- "ts",
20119
- "tt",
20120
- "tw",
20121
- "ty",
20122
- "ug",
20123
- "uk",
20124
- "ur",
20125
- "uz",
20126
- "ve",
20127
- "vi",
20128
- "vo",
20129
- "wa",
20130
- "wo",
20131
- "xh",
20132
- "yi",
20133
- "yo",
20134
- "za",
20135
- "zh",
20136
- "zu"
20138
+ "o",
20139
+ "p"
20137
20140
  ]
20138
20141
  }
20139
20142
  }
20140
20143
  };
20141
- exports.CreateRelationshipChallengeRequest = {
20144
+ exports.GetOrLoadFileRequest = {
20142
20145
  "$schema": "http://json-schema.org/draft-07/schema#",
20143
- "$ref": "#/definitions/CreateRelationshipChallengeRequest",
20146
+ "$ref": "#/definitions/GetOrLoadFileRequest",
20144
20147
  "definitions": {
20145
- "CreateRelationshipChallengeRequest": {
20148
+ "GetOrLoadFileRequest": {
20146
20149
  "type": "object",
20147
20150
  "properties": {
20148
- "challengeType": {
20149
- "type": "string",
20150
- "const": "Relationship"
20151
+ "reference": {
20152
+ "anyOf": [
20153
+ {
20154
+ "$ref": "#/definitions/TokenReferenceString"
20155
+ },
20156
+ {
20157
+ "$ref": "#/definitions/FileReferenceString"
20158
+ }
20159
+ ]
20151
20160
  },
20152
- "relationship": {
20153
- "$ref": "#/definitions/RelationshipIdString"
20161
+ "password": {
20162
+ "type": "string"
20154
20163
  }
20155
20164
  },
20156
20165
  "required": [
20157
- "challengeType",
20158
- "relationship"
20166
+ "reference"
20159
20167
  ],
20160
- "additionalProperties": false
20168
+ "additionalProperties": false,
20169
+ "errorMessage": "token / file reference invalid"
20161
20170
  },
20162
- "RelationshipIdString": {
20171
+ "TokenReferenceString": {
20163
20172
  "type": "string",
20164
- "pattern": "REL[A-Za-z0-9]{17}"
20165
- }
20166
- }
20167
- };
20168
- exports.isCreateRelationshipChallengeRequest = {
20169
- "$schema": "http://json-schema.org/draft-07/schema#",
20170
- "$ref": "#/definitions/isCreateRelationshipChallengeRequest",
20171
- "definitions": {
20172
- "isCreateRelationshipChallengeRequest": {
20173
- "$comment": "(value: any) => value is CreateRelationshipChallengeRequest",
20174
- "type": "object",
20175
- "properties": {
20176
- "namedArgs": {
20177
- "type": "object",
20178
- "properties": {
20179
- "value": {}
20180
- },
20181
- "required": [
20182
- "value"
20183
- ],
20184
- "additionalProperties": false
20185
- }
20186
- }
20173
+ "pattern": "VE9L.{84}"
20174
+ },
20175
+ "FileReferenceString": {
20176
+ "type": "string",
20177
+ "pattern": "RklM.{84}"
20187
20178
  }
20188
20179
  }
20189
20180
  };
20190
- exports.CreateIdentityChallengeRequest = {
20181
+ exports.RegenerateFileOwnershipTokenRequest = {
20191
20182
  "$schema": "http://json-schema.org/draft-07/schema#",
20192
- "$ref": "#/definitions/CreateIdentityChallengeRequest",
20183
+ "$ref": "#/definitions/RegenerateFileOwnershipTokenRequest",
20193
20184
  "definitions": {
20194
- "CreateIdentityChallengeRequest": {
20185
+ "RegenerateFileOwnershipTokenRequest": {
20195
20186
  "type": "object",
20196
20187
  "properties": {
20197
- "challengeType": {
20198
- "type": "string",
20199
- "const": "Identity"
20188
+ "id": {
20189
+ "$ref": "#/definitions/FileIdString"
20200
20190
  }
20201
20191
  },
20202
20192
  "required": [
20203
- "challengeType"
20193
+ "id"
20204
20194
  ],
20205
20195
  "additionalProperties": false
20196
+ },
20197
+ "FileIdString": {
20198
+ "type": "string",
20199
+ "pattern": "FIL[A-Za-z0-9]{17}"
20206
20200
  }
20207
20201
  }
20208
20202
  };
20209
- exports.isCreateIdentityChallengeRequest = {
20203
+ exports.UploadOwnFileRequest = {
20210
20204
  "$schema": "http://json-schema.org/draft-07/schema#",
20211
- "$ref": "#/definitions/isCreateIdentityChallengeRequest",
20205
+ "$ref": "#/definitions/UploadOwnFileRequest",
20212
20206
  "definitions": {
20213
- "isCreateIdentityChallengeRequest": {
20214
- "$comment": "(value: any) => value is CreateIdentityChallengeRequest",
20207
+ "UploadOwnFileRequest": {
20215
20208
  "type": "object",
20216
20209
  "properties": {
20217
- "namedArgs": {
20210
+ "content": {
20218
20211
  "type": "object",
20219
20212
  "properties": {
20220
- "value": {}
20213
+ "BYTES_PER_ELEMENT": {
20214
+ "type": "number"
20215
+ },
20216
+ "buffer": {
20217
+ "type": "object",
20218
+ "properties": {
20219
+ "byteLength": {
20220
+ "type": "number"
20221
+ }
20222
+ },
20223
+ "required": [
20224
+ "byteLength"
20225
+ ],
20226
+ "additionalProperties": false
20227
+ },
20228
+ "byteLength": {
20229
+ "type": "number"
20230
+ },
20231
+ "byteOffset": {
20232
+ "type": "number"
20233
+ },
20234
+ "length": {
20235
+ "type": "number"
20236
+ }
20221
20237
  },
20222
20238
  "required": [
20223
- "value"
20239
+ "BYTES_PER_ELEMENT",
20240
+ "buffer",
20241
+ "byteLength",
20242
+ "byteOffset",
20243
+ "length"
20224
20244
  ],
20225
- "additionalProperties": false
20226
- }
20227
- }
20228
- }
20229
- }
20230
- };
20231
- exports.CreateDeviceChallengeRequest = {
20232
- "$schema": "http://json-schema.org/draft-07/schema#",
20233
- "$ref": "#/definitions/CreateDeviceChallengeRequest",
20234
- "definitions": {
20235
- "CreateDeviceChallengeRequest": {
20236
- "type": "object",
20237
- "properties": {
20238
- "challengeType": {
20239
- "type": "string",
20240
- "const": "Device"
20245
+ "additionalProperties": {
20246
+ "type": "number"
20247
+ }
20248
+ },
20249
+ "filename": {
20250
+ "type": "string"
20251
+ },
20252
+ "mimetype": {
20253
+ "type": "string"
20254
+ },
20255
+ "expiresAt": {
20256
+ "$ref": "#/definitions/ISO8601DateTimeString"
20257
+ },
20258
+ "title": {
20259
+ "type": "string"
20260
+ },
20261
+ "description": {
20262
+ "type": "string"
20263
+ },
20264
+ "tags": {
20265
+ "type": "array",
20266
+ "items": {
20267
+ "type": "string"
20268
+ },
20269
+ "uniqueItems": true
20241
20270
  }
20242
20271
  },
20243
20272
  "required": [
20244
- "challengeType"
20273
+ "content",
20274
+ "filename",
20275
+ "mimetype"
20245
20276
  ],
20246
20277
  "additionalProperties": false
20278
+ },
20279
+ "ISO8601DateTimeString": {
20280
+ "type": "string",
20281
+ "errorMessage": "must match ISO8601 datetime format",
20282
+ "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)?)?)?)?$"
20247
20283
  }
20248
20284
  }
20249
20285
  };
20250
- exports.isCreateDeviceChallengeRequest = {
20286
+ exports.UploadOwnFileValidatableRequest = {
20251
20287
  "$schema": "http://json-schema.org/draft-07/schema#",
20252
- "$ref": "#/definitions/isCreateDeviceChallengeRequest",
20288
+ "$ref": "#/definitions/UploadOwnFileValidatableRequest",
20253
20289
  "definitions": {
20254
- "isCreateDeviceChallengeRequest": {
20255
- "$comment": "(value: any) => value is CreateDeviceChallengeRequest",
20290
+ "UploadOwnFileValidatableRequest": {
20256
20291
  "type": "object",
20257
20292
  "properties": {
20258
- "namedArgs": {
20259
- "type": "object",
20260
- "properties": {
20261
- "value": {}
20262
- },
20263
- "required": [
20264
- "value"
20265
- ],
20266
- "additionalProperties": false
20267
- }
20268
- }
20269
- }
20270
- }
20271
- };
20272
- exports.CreateChallengeRequest = {
20273
- "$schema": "http://json-schema.org/draft-07/schema#",
20274
- "$ref": "#/definitions/CreateChallengeRequest",
20275
- "definitions": {
20276
- "CreateChallengeRequest": {
20277
- "anyOf": [
20278
- {
20279
- "$ref": "#/definitions/CreateRelationshipChallengeRequest"
20293
+ "filename": {
20294
+ "type": "string"
20280
20295
  },
20281
- {
20282
- "$ref": "#/definitions/CreateIdentityChallengeRequest"
20296
+ "mimetype": {
20297
+ "type": "string"
20283
20298
  },
20284
- {
20285
- "$ref": "#/definitions/CreateDeviceChallengeRequest"
20286
- }
20287
- ]
20288
- },
20289
- "CreateRelationshipChallengeRequest": {
20290
- "type": "object",
20291
- "properties": {
20292
- "challengeType": {
20293
- "type": "string",
20294
- "const": "Relationship"
20299
+ "expiresAt": {
20300
+ "$ref": "#/definitions/ISO8601DateTimeString"
20295
20301
  },
20296
- "relationship": {
20297
- "$ref": "#/definitions/RelationshipIdString"
20302
+ "title": {
20303
+ "type": "string"
20304
+ },
20305
+ "description": {
20306
+ "type": "string"
20307
+ },
20308
+ "tags": {
20309
+ "type": "array",
20310
+ "items": {
20311
+ "type": "string"
20312
+ },
20313
+ "uniqueItems": true
20314
+ },
20315
+ "content": {
20316
+ "type": "object"
20298
20317
  }
20299
20318
  },
20300
20319
  "required": [
20301
- "challengeType",
20302
- "relationship"
20320
+ "content",
20321
+ "filename",
20322
+ "mimetype"
20303
20323
  ],
20304
20324
  "additionalProperties": false
20305
20325
  },
20306
- "RelationshipIdString": {
20326
+ "ISO8601DateTimeString": {
20307
20327
  "type": "string",
20308
- "pattern": "REL[A-Za-z0-9]{17}"
20309
- },
20310
- "CreateIdentityChallengeRequest": {
20328
+ "errorMessage": "must match ISO8601 datetime format",
20329
+ "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)?)?)?)?$"
20330
+ }
20331
+ }
20332
+ };
20333
+ exports.GetIdentityDeletionProcessRequest = {
20334
+ "$schema": "http://json-schema.org/draft-07/schema#",
20335
+ "$ref": "#/definitions/GetIdentityDeletionProcessRequest",
20336
+ "definitions": {
20337
+ "GetIdentityDeletionProcessRequest": {
20311
20338
  "type": "object",
20312
20339
  "properties": {
20313
- "challengeType": {
20314
- "type": "string",
20315
- "const": "Identity"
20340
+ "id": {
20341
+ "$ref": "#/definitions/IdentityDeletionProcessIdString"
20316
20342
  }
20317
20343
  },
20318
20344
  "required": [
20319
- "challengeType"
20345
+ "id"
20320
20346
  ],
20321
20347
  "additionalProperties": false
20322
20348
  },
20323
- "CreateDeviceChallengeRequest": {
20324
- "type": "object",
20325
- "properties": {
20326
- "challengeType": {
20327
- "type": "string",
20328
- "const": "Device"
20329
- }
20330
- },
20331
- "required": [
20332
- "challengeType"
20333
- ],
20334
- "additionalProperties": false
20349
+ "IdentityDeletionProcessIdString": {
20350
+ "type": "string",
20351
+ "pattern": "IDP[A-Za-z0-9]{17}"
20335
20352
  }
20336
20353
  }
20337
20354
  };
20338
- exports.ValidateChallengeRequest = {
20355
+ exports.InitiateIdentityDeletionProcessRequest = {
20339
20356
  "$schema": "http://json-schema.org/draft-07/schema#",
20340
- "$ref": "#/definitions/ValidateChallengeRequest",
20357
+ "$ref": "#/definitions/InitiateIdentityDeletionProcessRequest",
20341
20358
  "definitions": {
20342
- "ValidateChallengeRequest": {
20359
+ "InitiateIdentityDeletionProcessRequest": {
20343
20360
  "type": "object",
20344
20361
  "properties": {
20345
- "challengeString": {
20346
- "type": "string"
20347
- },
20348
- "signature": {
20349
- "type": "string"
20362
+ "lengthOfGracePeriodInDays": {
20363
+ "type": "number"
20350
20364
  }
20351
20365
  },
20352
- "required": [
20353
- "challengeString",
20354
- "signature"
20355
- ],
20356
20366
  "additionalProperties": false
20357
20367
  }
20358
20368
  }
20359
20369
  };
20360
- exports.CreateDeviceRequest = {
20370
+ exports.DownloadAttachmentRequest = {
20361
20371
  "$schema": "http://json-schema.org/draft-07/schema#",
20362
- "$ref": "#/definitions/CreateDeviceRequest",
20372
+ "$ref": "#/definitions/DownloadAttachmentRequest",
20363
20373
  "definitions": {
20364
- "CreateDeviceRequest": {
20374
+ "DownloadAttachmentRequest": {
20365
20375
  "type": "object",
20366
20376
  "properties": {
20367
- "name": {
20368
- "type": "string"
20369
- },
20370
- "description": {
20371
- "type": "string"
20377
+ "id": {
20378
+ "$ref": "#/definitions/MessageIdString"
20372
20379
  },
20373
- "isAdmin": {
20374
- "type": "boolean"
20380
+ "attachmentId": {
20381
+ "$ref": "#/definitions/FileIdString"
20375
20382
  }
20376
20383
  },
20384
+ "required": [
20385
+ "id",
20386
+ "attachmentId"
20387
+ ],
20377
20388
  "additionalProperties": false
20389
+ },
20390
+ "MessageIdString": {
20391
+ "type": "string",
20392
+ "pattern": "MSG[A-Za-z0-9]{17}"
20393
+ },
20394
+ "FileIdString": {
20395
+ "type": "string",
20396
+ "pattern": "FIL[A-Za-z0-9]{17}"
20378
20397
  }
20379
20398
  }
20380
20399
  };
20381
- exports.CreateDeviceOnboardingTokenRequest = {
20400
+ exports.GetAnnouncementsRequest = {
20382
20401
  "$schema": "http://json-schema.org/draft-07/schema#",
20383
- "$ref": "#/definitions/CreateDeviceOnboardingTokenRequest",
20402
+ "$ref": "#/definitions/GetAnnouncementsRequest",
20384
20403
  "definitions": {
20385
- "CreateDeviceOnboardingTokenRequest": {
20404
+ "GetAnnouncementsRequest": {
20386
20405
  "type": "object",
20387
20406
  "properties": {
20388
- "id": {
20389
- "$ref": "#/definitions/DeviceIdString"
20390
- },
20391
- "expiresAt": {
20392
- "$ref": "#/definitions/ISO8601DateTimeString"
20393
- },
20394
- "profileName": {
20395
- "type": "string"
20396
- },
20397
- "passwordProtection": {
20398
- "type": "object",
20399
- "properties": {
20400
- "password": {
20401
- "type": "string",
20402
- "minLength": 1
20403
- },
20404
- "passwordIsPin": {
20405
- "type": "boolean",
20406
- "const": true
20407
- },
20408
- "passwordLocationIndicator": {}
20409
- },
20410
- "required": [
20411
- "password"
20412
- ],
20413
- "additionalProperties": false
20414
- }
20415
- },
20416
- "required": [
20417
- "id"
20418
- ],
20419
- "additionalProperties": false
20420
- },
20421
- "DeviceIdString": {
20422
- "type": "string",
20423
- "pattern": "DVC[A-Za-z0-9]{17}"
20424
- },
20425
- "ISO8601DateTimeString": {
20426
- "type": "string",
20427
- "errorMessage": "must match ISO8601 datetime format",
20428
- "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)?)?)?)?$"
20429
- }
20430
- }
20431
- };
20432
- exports.DeleteDeviceRequest = {
20433
- "$schema": "http://json-schema.org/draft-07/schema#",
20434
- "$ref": "#/definitions/DeleteDeviceRequest",
20435
- "definitions": {
20436
- "DeleteDeviceRequest": {
20437
- "type": "object",
20438
- "properties": {
20439
- "id": {
20440
- "$ref": "#/definitions/DeviceIdString"
20441
- }
20442
- },
20443
- "required": [
20444
- "id"
20445
- ],
20446
- "additionalProperties": false
20447
- },
20448
- "DeviceIdString": {
20449
- "type": "string",
20450
- "pattern": "DVC[A-Za-z0-9]{17}"
20451
- }
20452
- }
20453
- };
20454
- exports.GetDeviceRequest = {
20455
- "$schema": "http://json-schema.org/draft-07/schema#",
20456
- "$ref": "#/definitions/GetDeviceRequest",
20457
- "definitions": {
20458
- "GetDeviceRequest": {
20459
- "type": "object",
20460
- "properties": {
20461
- "id": {
20462
- "$ref": "#/definitions/DeviceIdString"
20463
- }
20464
- },
20465
- "required": [
20466
- "id"
20467
- ],
20468
- "additionalProperties": false
20469
- },
20470
- "DeviceIdString": {
20471
- "type": "string",
20472
- "pattern": "DVC[A-Za-z0-9]{17}"
20473
- }
20474
- }
20475
- };
20476
- exports.GetDeviceOnboardingInfoRequest = {
20477
- "$schema": "http://json-schema.org/draft-07/schema#",
20478
- "$ref": "#/definitions/GetDeviceOnboardingInfoRequest",
20479
- "definitions": {
20480
- "GetDeviceOnboardingInfoRequest": {
20481
- "type": "object",
20482
- "properties": {
20483
- "id": {
20484
- "$ref": "#/definitions/GenericIdString"
20485
- },
20486
- "profileName": {
20487
- "type": "string"
20488
- }
20489
- },
20490
- "required": [
20491
- "id"
20492
- ],
20493
- "additionalProperties": false
20494
- },
20495
- "GenericIdString": {
20496
- "type": "string",
20497
- "pattern": "[A-Za-z0-9]{20}"
20498
- }
20499
- }
20500
- };
20501
- exports.SetCommunicationLanguageRequest = {
20502
- "$schema": "http://json-schema.org/draft-07/schema#",
20503
- "$ref": "#/definitions/SetCommunicationLanguageRequest",
20504
- "definitions": {
20505
- "SetCommunicationLanguageRequest": {
20506
- "type": "object",
20507
- "properties": {
20508
- "communicationLanguage": {
20407
+ "language": {
20509
20408
  "$ref": "#/definitions/LanguageISO639"
20510
20409
  }
20511
20410
  },
20512
20411
  "required": [
20513
- "communicationLanguage"
20412
+ "language"
20514
20413
  ],
20515
20414
  "additionalProperties": false
20516
20415
  },
@@ -20704,423 +20603,290 @@ exports.SetCommunicationLanguageRequest = {
20704
20603
  }
20705
20604
  }
20706
20605
  };
20707
- exports.UpdateDeviceRequest = {
20606
+ exports.CreateRelationshipChallengeRequest = {
20708
20607
  "$schema": "http://json-schema.org/draft-07/schema#",
20709
- "$ref": "#/definitions/UpdateDeviceRequest",
20608
+ "$ref": "#/definitions/CreateRelationshipChallengeRequest",
20710
20609
  "definitions": {
20711
- "UpdateDeviceRequest": {
20610
+ "CreateRelationshipChallengeRequest": {
20712
20611
  "type": "object",
20713
20612
  "properties": {
20714
- "id": {
20715
- "$ref": "#/definitions/DeviceIdString"
20716
- },
20717
- "name": {
20718
- "type": "string"
20613
+ "challengeType": {
20614
+ "type": "string",
20615
+ "const": "Relationship"
20719
20616
  },
20720
- "description": {
20721
- "type": "string"
20617
+ "relationship": {
20618
+ "$ref": "#/definitions/RelationshipIdString"
20722
20619
  }
20723
20620
  },
20724
20621
  "required": [
20725
- "id"
20622
+ "challengeType",
20623
+ "relationship"
20726
20624
  ],
20727
20625
  "additionalProperties": false
20728
20626
  },
20729
- "DeviceIdString": {
20627
+ "RelationshipIdString": {
20730
20628
  "type": "string",
20731
- "pattern": "DVC[A-Za-z0-9]{17}"
20629
+ "pattern": "REL[A-Za-z0-9]{17}"
20732
20630
  }
20733
20631
  }
20734
20632
  };
20735
- exports.CreateTokenForFileRequest = {
20633
+ exports.isCreateRelationshipChallengeRequest = {
20736
20634
  "$schema": "http://json-schema.org/draft-07/schema#",
20737
- "$ref": "#/definitions/CreateTokenForFileRequest",
20635
+ "$ref": "#/definitions/isCreateRelationshipChallengeRequest",
20738
20636
  "definitions": {
20739
- "CreateTokenForFileRequest": {
20637
+ "isCreateRelationshipChallengeRequest": {
20638
+ "$comment": "(value: any) => value is CreateRelationshipChallengeRequest",
20740
20639
  "type": "object",
20741
20640
  "properties": {
20742
- "fileId": {
20743
- "$ref": "#/definitions/FileIdString"
20744
- },
20745
- "expiresAt": {
20746
- "$ref": "#/definitions/ISO8601DateTimeString"
20747
- },
20748
- "ephemeral": {
20749
- "type": "boolean"
20750
- },
20751
- "forIdentity": {
20752
- "$ref": "#/definitions/AddressString"
20753
- },
20754
- "passwordProtection": {
20641
+ "namedArgs": {
20755
20642
  "type": "object",
20756
20643
  "properties": {
20757
- "password": {
20758
- "type": "string",
20759
- "minLength": 1
20760
- },
20761
- "passwordIsPin": {
20762
- "type": "boolean",
20763
- "const": true
20764
- },
20765
- "passwordLocationIndicator": {}
20644
+ "value": {}
20766
20645
  },
20767
20646
  "required": [
20768
- "password"
20647
+ "value"
20769
20648
  ],
20770
20649
  "additionalProperties": false
20771
20650
  }
20772
- },
20773
- "required": [
20774
- "fileId"
20775
- ],
20776
- "additionalProperties": false
20777
- },
20778
- "FileIdString": {
20779
- "type": "string",
20780
- "pattern": "FIL[A-Za-z0-9]{17}"
20781
- },
20782
- "ISO8601DateTimeString": {
20783
- "type": "string",
20784
- "errorMessage": "must match ISO8601 datetime format",
20785
- "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)?)?)?)?$"
20786
- },
20787
- "AddressString": {
20788
- "type": "string",
20789
- "pattern": "did:e:((([A-Za-z0-9]+(-[A-Za-z0-9]+)*)\\.)+[a-z]{2,}|localhost):dids:[0-9a-f]{22}"
20651
+ }
20790
20652
  }
20791
20653
  }
20792
20654
  };
20793
- exports.DeleteFileRequest = {
20655
+ exports.CreateIdentityChallengeRequest = {
20794
20656
  "$schema": "http://json-schema.org/draft-07/schema#",
20795
- "$ref": "#/definitions/DeleteFileRequest",
20657
+ "$ref": "#/definitions/CreateIdentityChallengeRequest",
20796
20658
  "definitions": {
20797
- "DeleteFileRequest": {
20659
+ "CreateIdentityChallengeRequest": {
20798
20660
  "type": "object",
20799
20661
  "properties": {
20800
- "fileId": {
20801
- "$ref": "#/definitions/FileIdString"
20662
+ "challengeType": {
20663
+ "type": "string",
20664
+ "const": "Identity"
20802
20665
  }
20803
20666
  },
20804
20667
  "required": [
20805
- "fileId"
20668
+ "challengeType"
20806
20669
  ],
20807
20670
  "additionalProperties": false
20808
- },
20809
- "FileIdString": {
20810
- "type": "string",
20811
- "pattern": "FIL[A-Za-z0-9]{17}"
20812
20671
  }
20813
20672
  }
20814
20673
  };
20815
- exports.GetFileRequest = {
20674
+ exports.isCreateIdentityChallengeRequest = {
20816
20675
  "$schema": "http://json-schema.org/draft-07/schema#",
20817
- "$ref": "#/definitions/GetFileRequest",
20676
+ "$ref": "#/definitions/isCreateIdentityChallengeRequest",
20818
20677
  "definitions": {
20819
- "GetFileRequest": {
20678
+ "isCreateIdentityChallengeRequest": {
20679
+ "$comment": "(value: any) => value is CreateIdentityChallengeRequest",
20820
20680
  "type": "object",
20821
20681
  "properties": {
20822
- "id": {
20823
- "$ref": "#/definitions/FileIdString"
20682
+ "namedArgs": {
20683
+ "type": "object",
20684
+ "properties": {
20685
+ "value": {}
20686
+ },
20687
+ "required": [
20688
+ "value"
20689
+ ],
20690
+ "additionalProperties": false
20691
+ }
20692
+ }
20693
+ }
20694
+ }
20695
+ };
20696
+ exports.CreateDeviceChallengeRequest = {
20697
+ "$schema": "http://json-schema.org/draft-07/schema#",
20698
+ "$ref": "#/definitions/CreateDeviceChallengeRequest",
20699
+ "definitions": {
20700
+ "CreateDeviceChallengeRequest": {
20701
+ "type": "object",
20702
+ "properties": {
20703
+ "challengeType": {
20704
+ "type": "string",
20705
+ "const": "Device"
20824
20706
  }
20825
20707
  },
20826
20708
  "required": [
20827
- "id"
20709
+ "challengeType"
20828
20710
  ],
20829
20711
  "additionalProperties": false
20830
- },
20831
- "FileIdString": {
20832
- "type": "string",
20833
- "pattern": "FIL[A-Za-z0-9]{17}"
20834
20712
  }
20835
20713
  }
20836
20714
  };
20837
- exports.GetFilesRequest = {
20715
+ exports.isCreateDeviceChallengeRequest = {
20838
20716
  "$schema": "http://json-schema.org/draft-07/schema#",
20839
- "$ref": "#/definitions/GetFilesRequest",
20717
+ "$ref": "#/definitions/isCreateDeviceChallengeRequest",
20840
20718
  "definitions": {
20841
- "GetFilesRequest": {
20719
+ "isCreateDeviceChallengeRequest": {
20720
+ "$comment": "(value: any) => value is CreateDeviceChallengeRequest",
20842
20721
  "type": "object",
20843
20722
  "properties": {
20844
- "query": {
20845
- "$ref": "#/definitions/GetFilesQuery"
20723
+ "namedArgs": {
20724
+ "type": "object",
20725
+ "properties": {
20726
+ "value": {}
20727
+ },
20728
+ "required": [
20729
+ "value"
20730
+ ],
20731
+ "additionalProperties": false
20732
+ }
20733
+ }
20734
+ }
20735
+ }
20736
+ };
20737
+ exports.CreateChallengeRequest = {
20738
+ "$schema": "http://json-schema.org/draft-07/schema#",
20739
+ "$ref": "#/definitions/CreateChallengeRequest",
20740
+ "definitions": {
20741
+ "CreateChallengeRequest": {
20742
+ "anyOf": [
20743
+ {
20744
+ "$ref": "#/definitions/CreateRelationshipChallengeRequest"
20846
20745
  },
20847
- "ownerRestriction": {
20848
- "$ref": "#/definitions/OwnerRestriction"
20746
+ {
20747
+ "$ref": "#/definitions/CreateIdentityChallengeRequest"
20748
+ },
20749
+ {
20750
+ "$ref": "#/definitions/CreateDeviceChallengeRequest"
20849
20751
  }
20850
- },
20851
- "additionalProperties": false
20752
+ ]
20852
20753
  },
20853
- "GetFilesQuery": {
20754
+ "CreateRelationshipChallengeRequest": {
20854
20755
  "type": "object",
20855
20756
  "properties": {
20856
- "createdAt": {
20857
- "anyOf": [
20858
- {
20859
- "type": "string"
20860
- },
20861
- {
20862
- "type": "array",
20863
- "items": {
20864
- "type": "string"
20865
- }
20866
- }
20867
- ]
20868
- },
20869
- "createdBy": {
20870
- "anyOf": [
20871
- {
20872
- "type": "string"
20873
- },
20874
- {
20875
- "type": "array",
20876
- "items": {
20877
- "type": "string"
20878
- }
20879
- }
20880
- ]
20881
- },
20882
- "createdByDevice": {
20883
- "anyOf": [
20884
- {
20885
- "type": "string"
20886
- },
20887
- {
20888
- "type": "array",
20889
- "items": {
20890
- "type": "string"
20891
- }
20892
- }
20893
- ]
20894
- },
20895
- "description": {
20896
- "anyOf": [
20897
- {
20898
- "type": "string"
20899
- },
20900
- {
20901
- "type": "array",
20902
- "items": {
20903
- "type": "string"
20904
- }
20905
- }
20906
- ]
20907
- },
20908
- "expiresAt": {
20909
- "anyOf": [
20910
- {
20911
- "type": "string"
20912
- },
20913
- {
20914
- "type": "array",
20915
- "items": {
20916
- "type": "string"
20917
- }
20918
- }
20919
- ]
20920
- },
20921
- "filename": {
20922
- "anyOf": [
20923
- {
20924
- "type": "string"
20925
- },
20926
- {
20927
- "type": "array",
20928
- "items": {
20929
- "type": "string"
20930
- }
20931
- }
20932
- ]
20933
- },
20934
- "filesize": {
20935
- "anyOf": [
20936
- {
20937
- "type": "string"
20938
- },
20939
- {
20940
- "type": "array",
20941
- "items": {
20942
- "type": "string"
20943
- }
20944
- }
20945
- ]
20946
- },
20947
- "mimetype": {
20948
- "anyOf": [
20949
- {
20950
- "type": "string"
20951
- },
20952
- {
20953
- "type": "array",
20954
- "items": {
20955
- "type": "string"
20956
- }
20957
- }
20958
- ]
20959
- },
20960
- "title": {
20961
- "anyOf": [
20962
- {
20963
- "type": "string"
20964
- },
20965
- {
20966
- "type": "array",
20967
- "items": {
20968
- "type": "string"
20969
- }
20970
- }
20971
- ]
20972
- },
20973
- "isOwn": {
20974
- "anyOf": [
20975
- {
20976
- "type": "string"
20977
- },
20978
- {
20979
- "type": "array",
20980
- "items": {
20981
- "type": "string"
20982
- }
20983
- }
20984
- ]
20757
+ "challengeType": {
20758
+ "type": "string",
20759
+ "const": "Relationship"
20985
20760
  },
20986
- "tags": {
20987
- "anyOf": [
20988
- {
20989
- "type": "string"
20990
- },
20991
- {
20992
- "type": "array",
20993
- "items": {
20994
- "type": "string"
20995
- }
20996
- }
20997
- ]
20761
+ "relationship": {
20762
+ "$ref": "#/definitions/RelationshipIdString"
20998
20763
  }
20999
20764
  },
20765
+ "required": [
20766
+ "challengeType",
20767
+ "relationship"
20768
+ ],
21000
20769
  "additionalProperties": false
21001
20770
  },
21002
- "OwnerRestriction": {
20771
+ "RelationshipIdString": {
21003
20772
  "type": "string",
21004
- "enum": [
21005
- "o",
21006
- "p"
21007
- ]
20773
+ "pattern": "REL[A-Za-z0-9]{17}"
20774
+ },
20775
+ "CreateIdentityChallengeRequest": {
20776
+ "type": "object",
20777
+ "properties": {
20778
+ "challengeType": {
20779
+ "type": "string",
20780
+ "const": "Identity"
20781
+ }
20782
+ },
20783
+ "required": [
20784
+ "challengeType"
20785
+ ],
20786
+ "additionalProperties": false
20787
+ },
20788
+ "CreateDeviceChallengeRequest": {
20789
+ "type": "object",
20790
+ "properties": {
20791
+ "challengeType": {
20792
+ "type": "string",
20793
+ "const": "Device"
20794
+ }
20795
+ },
20796
+ "required": [
20797
+ "challengeType"
20798
+ ],
20799
+ "additionalProperties": false
21008
20800
  }
21009
20801
  }
21010
20802
  };
21011
- exports.GetOrLoadFileRequest = {
20803
+ exports.ValidateChallengeRequest = {
21012
20804
  "$schema": "http://json-schema.org/draft-07/schema#",
21013
- "$ref": "#/definitions/GetOrLoadFileRequest",
20805
+ "$ref": "#/definitions/ValidateChallengeRequest",
21014
20806
  "definitions": {
21015
- "GetOrLoadFileRequest": {
20807
+ "ValidateChallengeRequest": {
21016
20808
  "type": "object",
21017
20809
  "properties": {
21018
- "reference": {
21019
- "anyOf": [
21020
- {
21021
- "$ref": "#/definitions/TokenReferenceString"
21022
- },
21023
- {
21024
- "$ref": "#/definitions/FileReferenceString"
21025
- }
21026
- ]
20810
+ "challengeString": {
20811
+ "type": "string"
21027
20812
  },
21028
- "password": {
20813
+ "signature": {
21029
20814
  "type": "string"
21030
20815
  }
21031
20816
  },
21032
20817
  "required": [
21033
- "reference"
20818
+ "challengeString",
20819
+ "signature"
21034
20820
  ],
21035
- "additionalProperties": false,
21036
- "errorMessage": "token / file reference invalid"
21037
- },
21038
- "TokenReferenceString": {
21039
- "type": "string",
21040
- "pattern": "VE9L.{84}"
21041
- },
21042
- "FileReferenceString": {
21043
- "type": "string",
21044
- "pattern": "RklM.{84}"
20821
+ "additionalProperties": false
21045
20822
  }
21046
20823
  }
21047
20824
  };
21048
- exports.UploadOwnFileRequest = {
20825
+ exports.CreateDeviceRequest = {
21049
20826
  "$schema": "http://json-schema.org/draft-07/schema#",
21050
- "$ref": "#/definitions/UploadOwnFileRequest",
20827
+ "$ref": "#/definitions/CreateDeviceRequest",
21051
20828
  "definitions": {
21052
- "UploadOwnFileRequest": {
20829
+ "CreateDeviceRequest": {
21053
20830
  "type": "object",
21054
20831
  "properties": {
21055
- "content": {
21056
- "type": "object",
21057
- "properties": {
21058
- "BYTES_PER_ELEMENT": {
21059
- "type": "number"
21060
- },
21061
- "buffer": {
21062
- "type": "object",
21063
- "properties": {
21064
- "byteLength": {
21065
- "type": "number"
21066
- }
21067
- },
21068
- "required": [
21069
- "byteLength"
21070
- ],
21071
- "additionalProperties": false
21072
- },
21073
- "byteLength": {
21074
- "type": "number"
21075
- },
21076
- "byteOffset": {
21077
- "type": "number"
21078
- },
21079
- "length": {
21080
- "type": "number"
21081
- }
21082
- },
21083
- "required": [
21084
- "BYTES_PER_ELEMENT",
21085
- "buffer",
21086
- "byteLength",
21087
- "byteOffset",
21088
- "length"
21089
- ],
21090
- "additionalProperties": {
21091
- "type": "number"
21092
- }
21093
- },
21094
- "filename": {
20832
+ "name": {
21095
20833
  "type": "string"
21096
20834
  },
21097
- "mimetype": {
20835
+ "description": {
21098
20836
  "type": "string"
21099
20837
  },
20838
+ "isAdmin": {
20839
+ "type": "boolean"
20840
+ }
20841
+ },
20842
+ "additionalProperties": false
20843
+ }
20844
+ }
20845
+ };
20846
+ exports.CreateDeviceOnboardingTokenRequest = {
20847
+ "$schema": "http://json-schema.org/draft-07/schema#",
20848
+ "$ref": "#/definitions/CreateDeviceOnboardingTokenRequest",
20849
+ "definitions": {
20850
+ "CreateDeviceOnboardingTokenRequest": {
20851
+ "type": "object",
20852
+ "properties": {
20853
+ "id": {
20854
+ "$ref": "#/definitions/DeviceIdString"
20855
+ },
21100
20856
  "expiresAt": {
21101
20857
  "$ref": "#/definitions/ISO8601DateTimeString"
21102
20858
  },
21103
- "title": {
21104
- "type": "string"
21105
- },
21106
- "description": {
20859
+ "profileName": {
21107
20860
  "type": "string"
21108
20861
  },
21109
- "tags": {
21110
- "type": "array",
21111
- "items": {
21112
- "type": "string"
20862
+ "passwordProtection": {
20863
+ "type": "object",
20864
+ "properties": {
20865
+ "password": {
20866
+ "type": "string",
20867
+ "minLength": 1
20868
+ },
20869
+ "passwordIsPin": {
20870
+ "type": "boolean",
20871
+ "const": true
20872
+ },
20873
+ "passwordLocationIndicator": {}
21113
20874
  },
21114
- "uniqueItems": true
20875
+ "required": [
20876
+ "password"
20877
+ ],
20878
+ "additionalProperties": false
21115
20879
  }
21116
20880
  },
21117
20881
  "required": [
21118
- "content",
21119
- "filename",
21120
- "mimetype"
20882
+ "id"
21121
20883
  ],
21122
20884
  "additionalProperties": false
21123
20885
  },
20886
+ "DeviceIdString": {
20887
+ "type": "string",
20888
+ "pattern": "DVC[A-Za-z0-9]{17}"
20889
+ },
21124
20890
  "ISO8601DateTimeString": {
21125
20891
  "type": "string",
21126
20892
  "errorMessage": "must match ISO8601 datetime format",
@@ -21128,50 +20894,306 @@ exports.UploadOwnFileRequest = {
21128
20894
  }
21129
20895
  }
21130
20896
  };
21131
- exports.UploadOwnFileValidatableRequest = {
20897
+ exports.DeleteDeviceRequest = {
21132
20898
  "$schema": "http://json-schema.org/draft-07/schema#",
21133
- "$ref": "#/definitions/UploadOwnFileValidatableRequest",
20899
+ "$ref": "#/definitions/DeleteDeviceRequest",
21134
20900
  "definitions": {
21135
- "UploadOwnFileValidatableRequest": {
20901
+ "DeleteDeviceRequest": {
21136
20902
  "type": "object",
21137
20903
  "properties": {
21138
- "filename": {
21139
- "type": "string"
20904
+ "id": {
20905
+ "$ref": "#/definitions/DeviceIdString"
20906
+ }
20907
+ },
20908
+ "required": [
20909
+ "id"
20910
+ ],
20911
+ "additionalProperties": false
20912
+ },
20913
+ "DeviceIdString": {
20914
+ "type": "string",
20915
+ "pattern": "DVC[A-Za-z0-9]{17}"
20916
+ }
20917
+ }
20918
+ };
20919
+ exports.GetDeviceRequest = {
20920
+ "$schema": "http://json-schema.org/draft-07/schema#",
20921
+ "$ref": "#/definitions/GetDeviceRequest",
20922
+ "definitions": {
20923
+ "GetDeviceRequest": {
20924
+ "type": "object",
20925
+ "properties": {
20926
+ "id": {
20927
+ "$ref": "#/definitions/DeviceIdString"
20928
+ }
20929
+ },
20930
+ "required": [
20931
+ "id"
20932
+ ],
20933
+ "additionalProperties": false
20934
+ },
20935
+ "DeviceIdString": {
20936
+ "type": "string",
20937
+ "pattern": "DVC[A-Za-z0-9]{17}"
20938
+ }
20939
+ }
20940
+ };
20941
+ exports.GetDeviceOnboardingInfoRequest = {
20942
+ "$schema": "http://json-schema.org/draft-07/schema#",
20943
+ "$ref": "#/definitions/GetDeviceOnboardingInfoRequest",
20944
+ "definitions": {
20945
+ "GetDeviceOnboardingInfoRequest": {
20946
+ "type": "object",
20947
+ "properties": {
20948
+ "id": {
20949
+ "$ref": "#/definitions/GenericIdString"
21140
20950
  },
21141
- "mimetype": {
20951
+ "profileName": {
21142
20952
  "type": "string"
20953
+ }
20954
+ },
20955
+ "required": [
20956
+ "id"
20957
+ ],
20958
+ "additionalProperties": false
20959
+ },
20960
+ "GenericIdString": {
20961
+ "type": "string",
20962
+ "pattern": "[A-Za-z0-9]{20}"
20963
+ }
20964
+ }
20965
+ };
20966
+ exports.SetCommunicationLanguageRequest = {
20967
+ "$schema": "http://json-schema.org/draft-07/schema#",
20968
+ "$ref": "#/definitions/SetCommunicationLanguageRequest",
20969
+ "definitions": {
20970
+ "SetCommunicationLanguageRequest": {
20971
+ "type": "object",
20972
+ "properties": {
20973
+ "communicationLanguage": {
20974
+ "$ref": "#/definitions/LanguageISO639"
20975
+ }
20976
+ },
20977
+ "required": [
20978
+ "communicationLanguage"
20979
+ ],
20980
+ "additionalProperties": false
20981
+ },
20982
+ "LanguageISO639": {
20983
+ "type": "string",
20984
+ "enum": [
20985
+ "aa",
20986
+ "ab",
20987
+ "ae",
20988
+ "af",
20989
+ "ak",
20990
+ "am",
20991
+ "an",
20992
+ "ar",
20993
+ "as",
20994
+ "av",
20995
+ "ay",
20996
+ "az",
20997
+ "ba",
20998
+ "be",
20999
+ "bg",
21000
+ "bi",
21001
+ "bm",
21002
+ "bn",
21003
+ "bo",
21004
+ "br",
21005
+ "bs",
21006
+ "ca",
21007
+ "ce",
21008
+ "ch",
21009
+ "co",
21010
+ "cr",
21011
+ "cs",
21012
+ "cu",
21013
+ "cv",
21014
+ "cy",
21015
+ "da",
21016
+ "de",
21017
+ "dv",
21018
+ "dz",
21019
+ "ee",
21020
+ "el",
21021
+ "en",
21022
+ "eo",
21023
+ "es",
21024
+ "et",
21025
+ "eu",
21026
+ "fa",
21027
+ "ff",
21028
+ "fi",
21029
+ "fj",
21030
+ "fo",
21031
+ "fr",
21032
+ "fy",
21033
+ "ga",
21034
+ "gd",
21035
+ "gl",
21036
+ "gn",
21037
+ "gu",
21038
+ "gv",
21039
+ "ha",
21040
+ "he",
21041
+ "hi",
21042
+ "ho",
21043
+ "hr",
21044
+ "ht",
21045
+ "hu",
21046
+ "hy",
21047
+ "hz",
21048
+ "ia",
21049
+ "id",
21050
+ "ie",
21051
+ "ig",
21052
+ "ii",
21053
+ "ik",
21054
+ "io",
21055
+ "is",
21056
+ "it",
21057
+ "iu",
21058
+ "ja",
21059
+ "jv",
21060
+ "ka",
21061
+ "kg",
21062
+ "ki",
21063
+ "kj",
21064
+ "kk",
21065
+ "kl",
21066
+ "km",
21067
+ "kn",
21068
+ "ko",
21069
+ "kr",
21070
+ "ks",
21071
+ "ku",
21072
+ "kv",
21073
+ "kw",
21074
+ "ky",
21075
+ "la",
21076
+ "lb",
21077
+ "lg",
21078
+ "li",
21079
+ "ln",
21080
+ "lo",
21081
+ "lt",
21082
+ "lu",
21083
+ "lv",
21084
+ "mg",
21085
+ "mh",
21086
+ "mi",
21087
+ "mk",
21088
+ "ml",
21089
+ "mn",
21090
+ "mr",
21091
+ "ms",
21092
+ "mt",
21093
+ "my",
21094
+ "na",
21095
+ "nb",
21096
+ "nd",
21097
+ "ne",
21098
+ "ng",
21099
+ "nl",
21100
+ "nn",
21101
+ "no",
21102
+ "nr",
21103
+ "nv",
21104
+ "ny",
21105
+ "oc",
21106
+ "oj",
21107
+ "om",
21108
+ "or",
21109
+ "os",
21110
+ "pa",
21111
+ "pi",
21112
+ "pl",
21113
+ "ps",
21114
+ "pt",
21115
+ "qu",
21116
+ "rm",
21117
+ "rn",
21118
+ "ro",
21119
+ "ru",
21120
+ "rw",
21121
+ "sa",
21122
+ "sc",
21123
+ "sd",
21124
+ "se",
21125
+ "sg",
21126
+ "si",
21127
+ "sk",
21128
+ "sl",
21129
+ "sm",
21130
+ "sn",
21131
+ "so",
21132
+ "sq",
21133
+ "sr",
21134
+ "ss",
21135
+ "st",
21136
+ "su",
21137
+ "sv",
21138
+ "sw",
21139
+ "ta",
21140
+ "te",
21141
+ "tg",
21142
+ "th",
21143
+ "ti",
21144
+ "tk",
21145
+ "tl",
21146
+ "tn",
21147
+ "to",
21148
+ "tr",
21149
+ "ts",
21150
+ "tt",
21151
+ "tw",
21152
+ "ty",
21153
+ "ug",
21154
+ "uk",
21155
+ "ur",
21156
+ "uz",
21157
+ "ve",
21158
+ "vi",
21159
+ "vo",
21160
+ "wa",
21161
+ "wo",
21162
+ "xh",
21163
+ "yi",
21164
+ "yo",
21165
+ "za",
21166
+ "zh",
21167
+ "zu"
21168
+ ]
21169
+ }
21170
+ }
21171
+ };
21172
+ exports.UpdateDeviceRequest = {
21173
+ "$schema": "http://json-schema.org/draft-07/schema#",
21174
+ "$ref": "#/definitions/UpdateDeviceRequest",
21175
+ "definitions": {
21176
+ "UpdateDeviceRequest": {
21177
+ "type": "object",
21178
+ "properties": {
21179
+ "id": {
21180
+ "$ref": "#/definitions/DeviceIdString"
21143
21181
  },
21144
- "expiresAt": {
21145
- "$ref": "#/definitions/ISO8601DateTimeString"
21146
- },
21147
- "title": {
21182
+ "name": {
21148
21183
  "type": "string"
21149
21184
  },
21150
21185
  "description": {
21151
21186
  "type": "string"
21152
- },
21153
- "tags": {
21154
- "type": "array",
21155
- "items": {
21156
- "type": "string"
21157
- },
21158
- "uniqueItems": true
21159
- },
21160
- "content": {
21161
- "type": "object"
21162
21187
  }
21163
21188
  },
21164
21189
  "required": [
21165
- "content",
21166
- "filename",
21167
- "mimetype"
21190
+ "id"
21168
21191
  ],
21169
21192
  "additionalProperties": false
21170
21193
  },
21171
- "ISO8601DateTimeString": {
21194
+ "DeviceIdString": {
21172
21195
  "type": "string",
21173
- "errorMessage": "must match ISO8601 datetime format",
21174
- "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)?)?)?)?$"
21196
+ "pattern": "DVC[A-Za-z0-9]{17}"
21175
21197
  }
21176
21198
  }
21177
21199
  };