@truvity/sdk 0.33.1 → 0.36.2

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 (681) hide show
  1. package/ExtendedClient.d.ts +7 -1
  2. package/ExtendedClient.d.ts.map +1 -1
  3. package/ExtendedClient.js +19 -0
  4. package/ExtendedClient.js.map +1 -1
  5. package/api/errors/ServiceUnavailableError.d.ts +10 -0
  6. package/api/errors/ServiceUnavailableError.d.ts.map +1 -0
  7. package/api/errors/ServiceUnavailableError.js +53 -0
  8. package/api/errors/ServiceUnavailableError.js.map +1 -0
  9. package/api/errors/index.d.ts +1 -0
  10. package/api/errors/index.d.ts.map +1 -1
  11. package/api/errors/index.js +1 -0
  12. package/api/errors/index.js.map +1 -1
  13. package/api/resources/apiKeys/client/Client.js +9 -9
  14. package/api/resources/apiKeys/client/Client.js.map +1 -1
  15. package/api/resources/credentials/client/Client.js +12 -12
  16. package/api/resources/credentials/client/Client.js.map +1 -1
  17. package/api/resources/credentials/client/requests/CredentialInput.d.ts +1 -2
  18. package/api/resources/credentials/client/requests/CredentialInput.d.ts.map +1 -1
  19. package/api/resources/credentials/client/requests/CredentialInput.js.map +1 -1
  20. package/api/resources/desk/client/Client.js +2 -2
  21. package/api/resources/desk/client/Client.js.map +1 -1
  22. package/api/resources/didcommMessages/client/Client.d.ts +2 -2
  23. package/api/resources/didcommMessages/client/Client.js +11 -11
  24. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  25. package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts +3 -3
  26. package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts.map +1 -1
  27. package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.js.map +1 -1
  28. package/api/resources/dids/client/Client.js +1 -1
  29. package/api/resources/dids/client/Client.js.map +1 -1
  30. package/api/resources/drafts/client/Client.d.ts +75 -7
  31. package/api/resources/drafts/client/Client.d.ts.map +1 -1
  32. package/api/resources/drafts/client/Client.js +214 -19
  33. package/api/resources/drafts/client/Client.js.map +1 -1
  34. package/api/resources/drafts/client/requests/DraftInput.d.ts +3 -3
  35. package/api/resources/drafts/client/requests/DraftInput.d.ts.map +1 -1
  36. package/api/resources/drafts/client/requests/DraftInput.js.map +1 -1
  37. package/api/resources/drafts/client/requests/DraftIssue.d.ts +6 -2
  38. package/api/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
  39. package/api/resources/drafts/client/requests/DraftIssue.js.map +1 -1
  40. package/api/resources/drafts/client/requests/DraftLatestIssueRequest.d.ts +44 -0
  41. package/api/resources/drafts/client/requests/DraftLatestIssueRequest.d.ts.map +1 -0
  42. package/api/resources/drafts/client/requests/DraftLatestIssueRequest.js +6 -0
  43. package/api/resources/drafts/client/requests/DraftLatestIssueRequest.js.map +1 -0
  44. package/api/resources/drafts/client/requests/index.d.ts +1 -0
  45. package/api/resources/drafts/client/requests/index.d.ts.map +1 -1
  46. package/api/resources/drafts/client/requests/index.js.map +1 -1
  47. package/api/resources/drafts/types/DraftLatestIssueRequestDidMethod.d.ts +12 -0
  48. package/api/resources/drafts/types/DraftLatestIssueRequestDidMethod.d.ts.map +1 -0
  49. package/api/resources/drafts/types/DraftLatestIssueRequestDidMethod.js +11 -0
  50. package/api/resources/drafts/types/DraftLatestIssueRequestDidMethod.js.map +1 -0
  51. package/api/resources/drafts/types/index.d.ts +1 -0
  52. package/api/resources/drafts/types/index.d.ts.map +1 -1
  53. package/api/resources/drafts/types/index.js +1 -0
  54. package/api/resources/drafts/types/index.js.map +1 -1
  55. package/api/resources/files/client/Client.js +11 -11
  56. package/api/resources/files/client/Client.js.map +1 -1
  57. package/api/resources/files/client/requests/FileInput.d.ts +1 -2
  58. package/api/resources/files/client/requests/FileInput.d.ts.map +1 -1
  59. package/api/resources/files/client/requests/FileInput.js.map +1 -1
  60. package/api/resources/gdpr/client/Client.js +1 -1
  61. package/api/resources/gdpr/client/Client.js.map +1 -1
  62. package/api/resources/keys/client/Client.js +13 -13
  63. package/api/resources/keys/client/Client.js.map +1 -1
  64. package/api/resources/keys/client/requests/KeyGenerateInput.d.ts +1 -1
  65. package/api/resources/keys/client/requests/KeyGenerateInput.d.ts.map +1 -1
  66. package/api/resources/keys/client/requests/KeyGenerateInput.js.map +1 -1
  67. package/api/resources/keys/client/requests/KeyImportSecretInput.d.ts +2 -2
  68. package/api/resources/keys/client/requests/KeyImportSecretInput.d.ts.map +1 -1
  69. package/api/resources/keys/client/requests/KeyImportSecretInput.js.map +1 -1
  70. package/api/resources/presentations/client/Client.d.ts +2 -2
  71. package/api/resources/presentations/client/Client.js +16 -16
  72. package/api/resources/presentations/client/Client.js.map +1 -1
  73. package/api/resources/presentations/client/requests/PresentationExport.d.ts +1 -1
  74. package/api/resources/presentations/client/requests/PresentationExport.d.ts.map +1 -1
  75. package/api/resources/presentations/client/requests/PresentationExport.js.map +1 -1
  76. package/api/resources/presentations/client/requests/PresentationInput.d.ts +1 -2
  77. package/api/resources/presentations/client/requests/PresentationInput.d.ts.map +1 -1
  78. package/api/resources/presentations/client/requests/PresentationInput.js.map +1 -1
  79. package/api/resources/presentations/client/requests/PresentationIssue.d.ts +4 -4
  80. package/api/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
  81. package/api/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
  82. package/api/types/ApiKeyFull.d.ts +2 -2
  83. package/api/types/ApiKeyFull.d.ts.map +1 -1
  84. package/api/types/ApiKeyFull.js.map +1 -1
  85. package/api/types/Credential.d.ts +12 -8
  86. package/api/types/Credential.d.ts.map +1 -1
  87. package/api/types/Credential.js.map +1 -1
  88. package/api/types/Credential11.d.ts +7 -7
  89. package/api/types/Credential11.d.ts.map +1 -1
  90. package/api/types/Credential11.js.map +1 -1
  91. package/api/types/CredentialFilter.d.ts +4 -1
  92. package/api/types/CredentialFilter.d.ts.map +1 -1
  93. package/api/types/CredentialFilter.js.map +1 -1
  94. package/api/types/CredentialFilterData.d.ts +1 -1
  95. package/api/types/CredentialFilterData.d.ts.map +1 -1
  96. package/api/types/CredentialFilterData.js.map +1 -1
  97. package/api/types/CredentialProof.d.ts +2 -2
  98. package/api/types/CredentialProof.d.ts.map +1 -1
  99. package/api/types/CredentialProof.js.map +1 -1
  100. package/api/types/DidCommMessage.d.ts +3 -3
  101. package/api/types/DidCommMessage.d.ts.map +1 -1
  102. package/api/types/DidCommMessage.js.map +1 -1
  103. package/api/types/DidCommMessageSend.d.ts +7 -7
  104. package/api/types/DidCommMessageSend.d.ts.map +1 -1
  105. package/api/types/DidCommMessageSend.js.map +1 -1
  106. package/api/types/DidDocument.d.ts +6 -6
  107. package/api/types/DidDocument.d.ts.map +1 -1
  108. package/api/types/DidDocument.js.map +1 -1
  109. package/api/types/Draft.d.ts +8 -4
  110. package/api/types/Draft.d.ts.map +1 -1
  111. package/api/types/Draft.js.map +1 -1
  112. package/api/types/DraftCreate.d.ts +2 -2
  113. package/api/types/DraftCreate.d.ts.map +1 -1
  114. package/api/types/DraftCreate.js.map +1 -1
  115. package/api/types/DraftEnumValue.d.ts +2 -2
  116. package/api/types/DraftEnumValue.d.ts.map +1 -1
  117. package/api/types/DraftEnumValue.js.map +1 -1
  118. package/api/types/DraftFieldBooleanValue.d.ts +2 -2
  119. package/api/types/DraftFieldBooleanValue.d.ts.map +1 -1
  120. package/api/types/DraftFieldBooleanValue.js.map +1 -1
  121. package/api/types/DraftFieldDateTimeValue.d.ts +2 -2
  122. package/api/types/DraftFieldDateTimeValue.d.ts.map +1 -1
  123. package/api/types/DraftFieldDateTimeValue.js.map +1 -1
  124. package/api/types/DraftFieldDateValue.d.ts +2 -2
  125. package/api/types/DraftFieldDateValue.d.ts.map +1 -1
  126. package/api/types/DraftFieldDateValue.js.map +1 -1
  127. package/api/types/DraftFieldFileValue.d.ts +2 -2
  128. package/api/types/DraftFieldFileValue.d.ts.map +1 -1
  129. package/api/types/DraftFieldFileValue.js.map +1 -1
  130. package/api/types/DraftFieldLinkValue.d.ts +2 -2
  131. package/api/types/DraftFieldLinkValue.d.ts.map +1 -1
  132. package/api/types/DraftFieldLinkValue.js.map +1 -1
  133. package/api/types/DraftFieldNumberValue.d.ts +2 -2
  134. package/api/types/DraftFieldNumberValue.d.ts.map +1 -1
  135. package/api/types/DraftFieldNumberValue.js.map +1 -1
  136. package/api/types/DraftFieldStringValue.d.ts +2 -2
  137. package/api/types/DraftFieldStringValue.d.ts.map +1 -1
  138. package/api/types/DraftFieldStringValue.js.map +1 -1
  139. package/api/types/DraftFieldStructValue.d.ts +6 -6
  140. package/api/types/DraftFieldStructValue.d.ts.map +1 -1
  141. package/api/types/DraftFieldStructValue.js.map +1 -1
  142. package/api/types/DraftFilter.d.ts +4 -1
  143. package/api/types/DraftFilter.d.ts.map +1 -1
  144. package/api/types/DraftFilter.js.map +1 -1
  145. package/api/types/DraftFilterData.d.ts +1 -1
  146. package/api/types/DraftFilterData.d.ts.map +1 -1
  147. package/api/types/DraftFilterData.js.map +1 -1
  148. package/api/types/DraftSchema.d.ts +11 -11
  149. package/api/types/DraftSchema.d.ts.map +1 -1
  150. package/api/types/DraftSchema.js.map +1 -1
  151. package/api/types/DraftUpdate.d.ts +0 -2
  152. package/api/types/DraftUpdate.d.ts.map +1 -1
  153. package/api/types/DraftUpdate.js.map +1 -1
  154. package/api/types/EcdsaSecp256K1VerificationKey2019.d.ts +6 -6
  155. package/api/types/EcdsaSecp256K1VerificationKey2019.d.ts.map +1 -1
  156. package/api/types/EcdsaSecp256K1VerificationKey2019.js.map +1 -1
  157. package/api/types/ErrorModel.d.ts +4 -4
  158. package/api/types/ErrorModel.d.ts.map +1 -1
  159. package/api/types/ErrorModel.js.map +1 -1
  160. package/api/types/File_.d.ts +4 -4
  161. package/api/types/File_.d.ts.map +1 -1
  162. package/api/types/File_.js.map +1 -1
  163. package/api/types/KeyFilterData.d.ts +1 -1
  164. package/api/types/KeyFilterData.d.ts.map +1 -1
  165. package/api/types/KeyFilterData.js.map +1 -1
  166. package/api/types/KeyPublic.d.ts +20 -20
  167. package/api/types/KeyPublic.d.ts.map +1 -1
  168. package/api/types/KeyPublic.js.map +1 -1
  169. package/api/types/LinkedRef.d.ts +22 -0
  170. package/api/types/LinkedRef.d.ts.map +1 -0
  171. package/api/types/LinkedRef.js +6 -0
  172. package/api/types/LinkedRef.js.map +1 -0
  173. package/api/types/LinkedResourceRef.d.ts +14 -0
  174. package/api/types/LinkedResourceRef.d.ts.map +1 -0
  175. package/api/types/LinkedResourceRef.js +6 -0
  176. package/api/types/LinkedResourceRef.js.map +1 -0
  177. package/api/types/Presentation.d.ts +9 -6
  178. package/api/types/Presentation.d.ts.map +1 -1
  179. package/api/types/Presentation.js.map +1 -1
  180. package/api/types/PresentationFilter.d.ts +3 -1
  181. package/api/types/PresentationFilter.d.ts.map +1 -1
  182. package/api/types/PresentationFilter.js.map +1 -1
  183. package/api/types/PresentationFilterData.d.ts +1 -1
  184. package/api/types/PresentationFilterData.d.ts.map +1 -1
  185. package/api/types/PresentationFilterData.js.map +1 -1
  186. package/api/types/ProblemBadRequest.d.ts +4 -4
  187. package/api/types/ProblemBadRequest.d.ts.map +1 -1
  188. package/api/types/ProblemBadRequest.js.map +1 -1
  189. package/api/types/ProblemBadRequestBlobEmptyData.d.ts +4 -4
  190. package/api/types/ProblemBadRequestBlobEmptyData.d.ts.map +1 -1
  191. package/api/types/ProblemBadRequestBlobEmptyData.js.map +1 -1
  192. package/api/types/ProblemBadRequestBlobInvalidJson.d.ts +4 -4
  193. package/api/types/ProblemBadRequestBlobInvalidJson.d.ts.map +1 -1
  194. package/api/types/ProblemBadRequestBlobInvalidJson.js.map +1 -1
  195. package/api/types/ProblemBadRequestHasNullUnicodeCharacter.d.ts +4 -4
  196. package/api/types/ProblemBadRequestHasNullUnicodeCharacter.d.ts.map +1 -1
  197. package/api/types/ProblemBadRequestHasNullUnicodeCharacter.js.map +1 -1
  198. package/api/types/ProblemBlobNotFound.d.ts +9 -9
  199. package/api/types/ProblemBlobNotFound.d.ts.map +1 -1
  200. package/api/types/ProblemBlobNotFound.js.map +1 -1
  201. package/api/types/ProblemConflict.d.ts +4 -4
  202. package/api/types/ProblemConflict.d.ts.map +1 -1
  203. package/api/types/ProblemConflict.js.map +1 -1
  204. package/api/types/ProblemConflictBlobRestoreInProgress.d.ts +4 -4
  205. package/api/types/ProblemConflictBlobRestoreInProgress.d.ts.map +1 -1
  206. package/api/types/ProblemConflictBlobRestoreInProgress.js.map +1 -1
  207. package/api/types/ProblemConflictResource.d.ts +4 -4
  208. package/api/types/ProblemConflictResource.d.ts.map +1 -1
  209. package/api/types/ProblemConflictResource.js.map +1 -1
  210. package/api/types/ProblemForbidden.d.ts +4 -4
  211. package/api/types/ProblemForbidden.d.ts.map +1 -1
  212. package/api/types/ProblemForbidden.js.map +1 -1
  213. package/api/types/ProblemInternalServerError.d.ts +6 -6
  214. package/api/types/ProblemInternalServerError.d.ts.map +1 -1
  215. package/api/types/ProblemInternalServerError.js.map +1 -1
  216. package/api/types/ProblemMethodNotAllowed.d.ts +4 -4
  217. package/api/types/ProblemMethodNotAllowed.d.ts.map +1 -1
  218. package/api/types/ProblemMethodNotAllowed.js.map +1 -1
  219. package/api/types/ProblemMethodNotAllowedAlive.d.ts +4 -4
  220. package/api/types/ProblemMethodNotAllowedAlive.d.ts.map +1 -1
  221. package/api/types/ProblemMethodNotAllowedAlive.js.map +1 -1
  222. package/api/types/ProblemMethodNotAllowedDeleted.d.ts +4 -4
  223. package/api/types/ProblemMethodNotAllowedDeleted.d.ts.map +1 -1
  224. package/api/types/ProblemMethodNotAllowedDeleted.js.map +1 -1
  225. package/api/types/ProblemMethodNotAllowedRoute.d.ts +4 -4
  226. package/api/types/ProblemMethodNotAllowedRoute.d.ts.map +1 -1
  227. package/api/types/ProblemMethodNotAllowedRoute.js.map +1 -1
  228. package/api/types/ProblemNotFound.d.ts +4 -4
  229. package/api/types/ProblemNotFound.d.ts.map +1 -1
  230. package/api/types/ProblemNotFound.js.map +1 -1
  231. package/api/types/ProblemPreconditionFailed.d.ts +4 -4
  232. package/api/types/ProblemPreconditionFailed.d.ts.map +1 -1
  233. package/api/types/ProblemPreconditionFailed.js.map +1 -1
  234. package/api/types/ProblemPreconditionFailedBlob.d.ts +9 -9
  235. package/api/types/ProblemPreconditionFailedBlob.d.ts.map +1 -1
  236. package/api/types/ProblemPreconditionFailedBlob.js.map +1 -1
  237. package/api/types/ProblemPreconditionFailedResource.d.ts +5 -5
  238. package/api/types/ProblemPreconditionFailedResource.d.ts.map +1 -1
  239. package/api/types/ProblemPreconditionFailedResource.js.map +1 -1
  240. package/api/types/ProblemResourceNotFound.d.ts +9 -9
  241. package/api/types/ProblemResourceNotFound.d.ts.map +1 -1
  242. package/api/types/ProblemResourceNotFound.js.map +1 -1
  243. package/api/types/ProblemResourceRevisionNotFound.d.ts +5 -5
  244. package/api/types/ProblemResourceRevisionNotFound.d.ts.map +1 -1
  245. package/api/types/ProblemResourceRevisionNotFound.js.map +1 -1
  246. package/api/types/ProblemServiceUnavailable.d.ts +20 -0
  247. package/api/types/ProblemServiceUnavailable.d.ts.map +1 -0
  248. package/api/types/ProblemServiceUnavailable.js +6 -0
  249. package/api/types/ProblemServiceUnavailable.js.map +1 -0
  250. package/api/types/ProblemTooManyRequests.d.ts +4 -4
  251. package/api/types/ProblemTooManyRequests.d.ts.map +1 -1
  252. package/api/types/ProblemTooManyRequests.js.map +1 -1
  253. package/api/types/ProblemUnauthorized.d.ts +4 -4
  254. package/api/types/ProblemUnauthorized.d.ts.map +1 -1
  255. package/api/types/ProblemUnauthorized.js.map +1 -1
  256. package/api/types/ProblemUnsupportedMediaType.d.ts +4 -4
  257. package/api/types/ProblemUnsupportedMediaType.d.ts.map +1 -1
  258. package/api/types/ProblemUnsupportedMediaType.js.map +1 -1
  259. package/api/types/Resource.d.ts +11 -11
  260. package/api/types/Resource.d.ts.map +1 -1
  261. package/api/types/Resource.js.map +1 -1
  262. package/api/types/ResourceApiKey.d.ts +14 -14
  263. package/api/types/ResourceApiKey.d.ts.map +1 -1
  264. package/api/types/ResourceApiKey.js.map +1 -1
  265. package/api/types/ResourceApiKeyFull.d.ts +14 -14
  266. package/api/types/ResourceApiKeyFull.d.ts.map +1 -1
  267. package/api/types/ResourceApiKeyFull.js.map +1 -1
  268. package/api/types/ResourceCredential.d.ts +14 -14
  269. package/api/types/ResourceCredential.d.ts.map +1 -1
  270. package/api/types/ResourceCredential.js.map +1 -1
  271. package/api/types/ResourceDidCommMessage.d.ts +14 -14
  272. package/api/types/ResourceDidCommMessage.d.ts.map +1 -1
  273. package/api/types/ResourceDidCommMessage.js.map +1 -1
  274. package/api/types/ResourceDraft.d.ts +14 -14
  275. package/api/types/ResourceDraft.d.ts.map +1 -1
  276. package/api/types/ResourceDraft.js.map +1 -1
  277. package/api/types/ResourceFile.d.ts +14 -14
  278. package/api/types/ResourceFile.d.ts.map +1 -1
  279. package/api/types/ResourceFile.js.map +1 -1
  280. package/api/types/ResourceKeyPublic.d.ts +14 -14
  281. package/api/types/ResourceKeyPublic.d.ts.map +1 -1
  282. package/api/types/ResourceKeyPublic.js.map +1 -1
  283. package/api/types/ResourcePresentation.d.ts +14 -14
  284. package/api/types/ResourcePresentation.d.ts.map +1 -1
  285. package/api/types/ResourcePresentation.js.map +1 -1
  286. package/api/types/Service.d.ts +2 -2
  287. package/api/types/Service.d.ts.map +1 -1
  288. package/api/types/Service.js.map +1 -1
  289. package/api/types/ServiceUnavailableProblems.d.ts +14 -0
  290. package/api/types/ServiceUnavailableProblems.d.ts.map +1 -0
  291. package/api/types/ServiceUnavailableProblems.js +6 -0
  292. package/api/types/ServiceUnavailableProblems.js.map +1 -0
  293. package/api/types/UploadResponse.d.ts +1 -4
  294. package/api/types/UploadResponse.d.ts.map +1 -1
  295. package/api/types/UploadResponse.js.map +1 -1
  296. package/api/types/VerificationMethodMultikey.d.ts +6 -6
  297. package/api/types/VerificationMethodMultikey.d.ts.map +1 -1
  298. package/api/types/VerificationMethodMultikey.js.map +1 -1
  299. package/api/types/index.d.ts +8 -4
  300. package/api/types/index.d.ts.map +1 -1
  301. package/api/types/index.js +8 -4
  302. package/api/types/index.js.map +1 -1
  303. package/core/fetcher/Headers.d.ts +3 -0
  304. package/core/fetcher/Headers.d.ts.map +1 -0
  305. package/core/fetcher/Headers.js +85 -0
  306. package/core/fetcher/Headers.js.map +1 -0
  307. package/core/fetcher/RawResponse.d.ts.map +1 -1
  308. package/core/fetcher/RawResponse.js +3 -2
  309. package/core/fetcher/RawResponse.js.map +1 -1
  310. package/documents/credential/claims.d.ts.map +1 -1
  311. package/documents/credential/claims.js +10 -9
  312. package/documents/credential/claims.js.map +1 -1
  313. package/documents/credential.d.ts.map +1 -1
  314. package/documents/credential.js +3 -2
  315. package/documents/credential.js.map +1 -1
  316. package/documents/utils/error.d.ts +9 -0
  317. package/documents/utils/error.d.ts.map +1 -0
  318. package/documents/utils/error.js +14 -0
  319. package/documents/utils/error.js.map +1 -0
  320. package/documents/utils/error.spec.d.ts +2 -0
  321. package/documents/utils/error.spec.d.ts.map +1 -0
  322. package/documents/utils/error.spec.js +9 -0
  323. package/documents/utils/error.spec.js.map +1 -0
  324. package/index.d.ts +1 -0
  325. package/index.d.ts.map +1 -1
  326. package/index.js +1 -0
  327. package/index.js.map +1 -1
  328. package/middlewares/csrf/csrf.d.ts +27 -0
  329. package/middlewares/csrf/csrf.d.ts.map +1 -0
  330. package/middlewares/csrf/csrf.js +88 -0
  331. package/middlewares/csrf/csrf.js.map +1 -0
  332. package/middlewares/csrf/csrf.spec.d.ts +2 -0
  333. package/middlewares/csrf/csrf.spec.d.ts.map +1 -0
  334. package/middlewares/csrf/csrf.spec.js +136 -0
  335. package/middlewares/csrf/csrf.spec.js.map +1 -0
  336. package/middlewares/csrf/index.d.ts +2 -0
  337. package/middlewares/csrf/index.d.ts.map +1 -0
  338. package/middlewares/csrf/index.js +18 -0
  339. package/middlewares/csrf/index.js.map +1 -0
  340. package/middlewares/index.d.ts +3 -0
  341. package/middlewares/index.d.ts.map +1 -0
  342. package/middlewares/index.js +19 -0
  343. package/middlewares/index.js.map +1 -0
  344. package/middlewares/middleware.d.ts +6 -0
  345. package/middlewares/middleware.d.ts.map +1 -0
  346. package/middlewares/middleware.js +17 -0
  347. package/middlewares/middleware.js.map +1 -0
  348. package/middlewares/middleware.spec.d.ts +9 -0
  349. package/middlewares/middleware.spec.d.ts.map +1 -0
  350. package/middlewares/middleware.spec.js +121 -0
  351. package/middlewares/middleware.spec.js.map +1 -0
  352. package/package.json +1 -1
  353. package/reference.md +127 -11
  354. package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts +1 -1
  355. package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts.map +1 -1
  356. package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.js +1 -1
  357. package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.js.map +1 -1
  358. package/serialization/resources/drafts/client/requests/DraftInput.d.ts +1 -1
  359. package/serialization/resources/drafts/client/requests/DraftInput.d.ts.map +1 -1
  360. package/serialization/resources/drafts/client/requests/DraftInput.js +1 -1
  361. package/serialization/resources/drafts/client/requests/DraftInput.js.map +1 -1
  362. package/serialization/resources/drafts/client/requests/DraftIssue.d.ts +3 -1
  363. package/serialization/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
  364. package/serialization/resources/drafts/client/requests/DraftIssue.js +3 -1
  365. package/serialization/resources/drafts/client/requests/DraftIssue.js.map +1 -1
  366. package/serialization/resources/drafts/client/requests/DraftLatestIssueRequest.d.ts +20 -0
  367. package/serialization/resources/drafts/client/requests/DraftLatestIssueRequest.d.ts.map +1 -0
  368. package/serialization/resources/drafts/client/requests/DraftLatestIssueRequest.js +51 -0
  369. package/serialization/resources/drafts/client/requests/DraftLatestIssueRequest.js.map +1 -0
  370. package/serialization/resources/drafts/client/requests/index.d.ts +1 -0
  371. package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
  372. package/serialization/resources/drafts/client/requests/index.js +3 -1
  373. package/serialization/resources/drafts/client/requests/index.js.map +1 -1
  374. package/serialization/resources/drafts/types/DraftLatestIssueRequestDidMethod.d.ts +11 -0
  375. package/serialization/resources/drafts/types/DraftLatestIssueRequestDidMethod.d.ts.map +1 -0
  376. package/serialization/resources/drafts/types/DraftLatestIssueRequestDidMethod.js +42 -0
  377. package/serialization/resources/drafts/types/DraftLatestIssueRequestDidMethod.js.map +1 -0
  378. package/serialization/resources/drafts/types/index.d.ts +1 -0
  379. package/serialization/resources/drafts/types/index.d.ts.map +1 -1
  380. package/serialization/resources/drafts/types/index.js +1 -0
  381. package/serialization/resources/drafts/types/index.js.map +1 -1
  382. package/serialization/resources/keys/client/requests/KeyGenerateInput.d.ts +1 -1
  383. package/serialization/resources/keys/client/requests/KeyGenerateInput.d.ts.map +1 -1
  384. package/serialization/resources/keys/client/requests/KeyGenerateInput.js +1 -1
  385. package/serialization/resources/keys/client/requests/KeyGenerateInput.js.map +1 -1
  386. package/serialization/resources/keys/client/requests/KeyImportSecretInput.d.ts +1 -1
  387. package/serialization/resources/keys/client/requests/KeyImportSecretInput.d.ts.map +1 -1
  388. package/serialization/resources/keys/client/requests/KeyImportSecretInput.js +1 -1
  389. package/serialization/resources/keys/client/requests/KeyImportSecretInput.js.map +1 -1
  390. package/serialization/resources/presentations/client/requests/PresentationExport.d.ts +1 -1
  391. package/serialization/resources/presentations/client/requests/PresentationExport.d.ts.map +1 -1
  392. package/serialization/resources/presentations/client/requests/PresentationExport.js +1 -1
  393. package/serialization/resources/presentations/client/requests/PresentationExport.js.map +1 -1
  394. package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts +1 -1
  395. package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
  396. package/serialization/resources/presentations/client/requests/PresentationIssue.js +1 -1
  397. package/serialization/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
  398. package/serialization/types/ApiKeyFull.d.ts +1 -1
  399. package/serialization/types/ApiKeyFull.d.ts.map +1 -1
  400. package/serialization/types/ApiKeyFull.js +1 -1
  401. package/serialization/types/ApiKeyFull.js.map +1 -1
  402. package/serialization/types/Credential.d.ts +7 -4
  403. package/serialization/types/Credential.d.ts.map +1 -1
  404. package/serialization/types/Credential.js +7 -4
  405. package/serialization/types/Credential.js.map +1 -1
  406. package/serialization/types/Credential11.d.ts +4 -4
  407. package/serialization/types/Credential11.d.ts.map +1 -1
  408. package/serialization/types/Credential11.js +4 -4
  409. package/serialization/types/Credential11.js.map +1 -1
  410. package/serialization/types/CredentialFilter.d.ts +5 -1
  411. package/serialization/types/CredentialFilter.d.ts.map +1 -1
  412. package/serialization/types/CredentialFilter.js +41 -1
  413. package/serialization/types/CredentialFilter.js.map +1 -1
  414. package/serialization/types/CredentialFilterData.d.ts +2 -2
  415. package/serialization/types/CredentialFilterData.d.ts.map +1 -1
  416. package/serialization/types/CredentialFilterData.js +2 -2
  417. package/serialization/types/CredentialFilterData.js.map +1 -1
  418. package/serialization/types/CredentialProof.d.ts +1 -1
  419. package/serialization/types/CredentialProof.d.ts.map +1 -1
  420. package/serialization/types/CredentialProof.js +1 -1
  421. package/serialization/types/CredentialProof.js.map +1 -1
  422. package/serialization/types/DidCommMessage.d.ts +2 -2
  423. package/serialization/types/DidCommMessage.d.ts.map +1 -1
  424. package/serialization/types/DidCommMessage.js +2 -2
  425. package/serialization/types/DidCommMessage.js.map +1 -1
  426. package/serialization/types/DidCommMessageSend.d.ts +2 -2
  427. package/serialization/types/DidCommMessageSend.d.ts.map +1 -1
  428. package/serialization/types/DidCommMessageSend.js +2 -2
  429. package/serialization/types/DidCommMessageSend.js.map +1 -1
  430. package/serialization/types/DidDocument.d.ts +4 -4
  431. package/serialization/types/DidDocument.d.ts.map +1 -1
  432. package/serialization/types/DidDocument.js +4 -4
  433. package/serialization/types/DidDocument.js.map +1 -1
  434. package/serialization/types/Draft.d.ts +7 -3
  435. package/serialization/types/Draft.d.ts.map +1 -1
  436. package/serialization/types/Draft.js +7 -3
  437. package/serialization/types/Draft.js.map +1 -1
  438. package/serialization/types/DraftCreate.d.ts +2 -2
  439. package/serialization/types/DraftCreate.d.ts.map +1 -1
  440. package/serialization/types/DraftCreate.js +2 -2
  441. package/serialization/types/DraftCreate.js.map +1 -1
  442. package/serialization/types/DraftEnumValue.d.ts +1 -1
  443. package/serialization/types/DraftEnumValue.d.ts.map +1 -1
  444. package/serialization/types/DraftEnumValue.js +1 -1
  445. package/serialization/types/DraftEnumValue.js.map +1 -1
  446. package/serialization/types/DraftFieldBooleanValue.d.ts +1 -1
  447. package/serialization/types/DraftFieldBooleanValue.d.ts.map +1 -1
  448. package/serialization/types/DraftFieldBooleanValue.js +1 -1
  449. package/serialization/types/DraftFieldBooleanValue.js.map +1 -1
  450. package/serialization/types/DraftFieldDateTimeValue.d.ts +1 -1
  451. package/serialization/types/DraftFieldDateTimeValue.d.ts.map +1 -1
  452. package/serialization/types/DraftFieldDateTimeValue.js +1 -1
  453. package/serialization/types/DraftFieldDateTimeValue.js.map +1 -1
  454. package/serialization/types/DraftFieldDateValue.d.ts +1 -1
  455. package/serialization/types/DraftFieldDateValue.d.ts.map +1 -1
  456. package/serialization/types/DraftFieldDateValue.js +1 -1
  457. package/serialization/types/DraftFieldDateValue.js.map +1 -1
  458. package/serialization/types/DraftFieldFileValue.d.ts +1 -1
  459. package/serialization/types/DraftFieldFileValue.d.ts.map +1 -1
  460. package/serialization/types/DraftFieldFileValue.js +1 -1
  461. package/serialization/types/DraftFieldFileValue.js.map +1 -1
  462. package/serialization/types/DraftFieldLinkValue.d.ts +1 -1
  463. package/serialization/types/DraftFieldLinkValue.d.ts.map +1 -1
  464. package/serialization/types/DraftFieldLinkValue.js +1 -1
  465. package/serialization/types/DraftFieldLinkValue.js.map +1 -1
  466. package/serialization/types/DraftFieldNumberValue.d.ts +1 -1
  467. package/serialization/types/DraftFieldNumberValue.d.ts.map +1 -1
  468. package/serialization/types/DraftFieldNumberValue.js +1 -1
  469. package/serialization/types/DraftFieldNumberValue.js.map +1 -1
  470. package/serialization/types/DraftFieldStringValue.d.ts +1 -1
  471. package/serialization/types/DraftFieldStringValue.d.ts.map +1 -1
  472. package/serialization/types/DraftFieldStringValue.js +1 -1
  473. package/serialization/types/DraftFieldStringValue.js.map +1 -1
  474. package/serialization/types/DraftFieldStructValue.d.ts +3 -3
  475. package/serialization/types/DraftFieldStructValue.d.ts.map +1 -1
  476. package/serialization/types/DraftFieldStructValue.js +3 -3
  477. package/serialization/types/DraftFieldStructValue.js.map +1 -1
  478. package/serialization/types/DraftFilter.d.ts +5 -1
  479. package/serialization/types/DraftFilter.d.ts.map +1 -1
  480. package/serialization/types/DraftFilter.js +41 -1
  481. package/serialization/types/DraftFilter.js.map +1 -1
  482. package/serialization/types/DraftFilterData.d.ts +2 -2
  483. package/serialization/types/DraftFilterData.d.ts.map +1 -1
  484. package/serialization/types/DraftFilterData.js +2 -2
  485. package/serialization/types/DraftFilterData.js.map +1 -1
  486. package/serialization/types/DraftSchema.d.ts +2 -2
  487. package/serialization/types/DraftSchema.d.ts.map +1 -1
  488. package/serialization/types/DraftSchema.js +2 -2
  489. package/serialization/types/DraftSchema.js.map +1 -1
  490. package/serialization/types/DraftUpdate.d.ts +0 -2
  491. package/serialization/types/DraftUpdate.d.ts.map +1 -1
  492. package/serialization/types/DraftUpdate.js +0 -2
  493. package/serialization/types/DraftUpdate.js.map +1 -1
  494. package/serialization/types/EcdsaSecp256K1VerificationKey2019.d.ts +3 -3
  495. package/serialization/types/EcdsaSecp256K1VerificationKey2019.d.ts.map +1 -1
  496. package/serialization/types/EcdsaSecp256K1VerificationKey2019.js +3 -3
  497. package/serialization/types/EcdsaSecp256K1VerificationKey2019.js.map +1 -1
  498. package/serialization/types/ErrorModel.d.ts +2 -2
  499. package/serialization/types/ErrorModel.d.ts.map +1 -1
  500. package/serialization/types/ErrorModel.js +2 -2
  501. package/serialization/types/ErrorModel.js.map +1 -1
  502. package/serialization/types/File_.d.ts +2 -2
  503. package/serialization/types/File_.d.ts.map +1 -1
  504. package/serialization/types/File_.js +2 -2
  505. package/serialization/types/File_.js.map +1 -1
  506. package/serialization/types/KeyFilterData.d.ts +2 -2
  507. package/serialization/types/KeyFilterData.d.ts.map +1 -1
  508. package/serialization/types/KeyFilterData.js +2 -2
  509. package/serialization/types/KeyFilterData.js.map +1 -1
  510. package/serialization/types/KeyPublic.d.ts +3 -3
  511. package/serialization/types/KeyPublic.d.ts.map +1 -1
  512. package/serialization/types/KeyPublic.js +3 -3
  513. package/serialization/types/KeyPublic.js.map +1 -1
  514. package/serialization/types/LinkedRef.d.ts +15 -0
  515. package/serialization/types/LinkedRef.d.ts.map +1 -0
  516. package/serialization/types/LinkedRef.js +46 -0
  517. package/serialization/types/LinkedRef.js.map +1 -0
  518. package/serialization/types/LinkedResourceRef.d.ts +13 -0
  519. package/serialization/types/LinkedResourceRef.d.ts.map +1 -0
  520. package/serialization/types/LinkedResourceRef.js +44 -0
  521. package/serialization/types/LinkedResourceRef.js.map +1 -0
  522. package/serialization/types/Presentation.d.ts +4 -2
  523. package/serialization/types/Presentation.d.ts.map +1 -1
  524. package/serialization/types/Presentation.js +4 -2
  525. package/serialization/types/Presentation.js.map +1 -1
  526. package/serialization/types/PresentationFilter.d.ts +4 -1
  527. package/serialization/types/PresentationFilter.d.ts.map +1 -1
  528. package/serialization/types/PresentationFilter.js +40 -1
  529. package/serialization/types/PresentationFilter.js.map +1 -1
  530. package/serialization/types/PresentationFilterData.d.ts +2 -2
  531. package/serialization/types/PresentationFilterData.d.ts.map +1 -1
  532. package/serialization/types/PresentationFilterData.js +2 -2
  533. package/serialization/types/PresentationFilterData.js.map +1 -1
  534. package/serialization/types/ProblemBadRequest.d.ts +2 -2
  535. package/serialization/types/ProblemBadRequest.d.ts.map +1 -1
  536. package/serialization/types/ProblemBadRequest.js +2 -2
  537. package/serialization/types/ProblemBadRequest.js.map +1 -1
  538. package/serialization/types/ProblemBadRequestBlobEmptyData.d.ts +2 -2
  539. package/serialization/types/ProblemBadRequestBlobEmptyData.d.ts.map +1 -1
  540. package/serialization/types/ProblemBadRequestBlobEmptyData.js +2 -2
  541. package/serialization/types/ProblemBadRequestBlobEmptyData.js.map +1 -1
  542. package/serialization/types/ProblemBadRequestBlobInvalidJson.d.ts +2 -2
  543. package/serialization/types/ProblemBadRequestBlobInvalidJson.d.ts.map +1 -1
  544. package/serialization/types/ProblemBadRequestBlobInvalidJson.js +2 -2
  545. package/serialization/types/ProblemBadRequestBlobInvalidJson.js.map +1 -1
  546. package/serialization/types/ProblemBadRequestHasNullUnicodeCharacter.d.ts +2 -2
  547. package/serialization/types/ProblemBadRequestHasNullUnicodeCharacter.d.ts.map +1 -1
  548. package/serialization/types/ProblemBadRequestHasNullUnicodeCharacter.js +2 -2
  549. package/serialization/types/ProblemBadRequestHasNullUnicodeCharacter.js.map +1 -1
  550. package/serialization/types/ProblemBlobNotFound.d.ts +4 -4
  551. package/serialization/types/ProblemBlobNotFound.d.ts.map +1 -1
  552. package/serialization/types/ProblemBlobNotFound.js +4 -4
  553. package/serialization/types/ProblemBlobNotFound.js.map +1 -1
  554. package/serialization/types/ProblemConflict.d.ts +2 -2
  555. package/serialization/types/ProblemConflict.d.ts.map +1 -1
  556. package/serialization/types/ProblemConflict.js +2 -2
  557. package/serialization/types/ProblemConflict.js.map +1 -1
  558. package/serialization/types/ProblemConflictBlobRestoreInProgress.d.ts +2 -2
  559. package/serialization/types/ProblemConflictBlobRestoreInProgress.d.ts.map +1 -1
  560. package/serialization/types/ProblemConflictBlobRestoreInProgress.js +2 -2
  561. package/serialization/types/ProblemConflictBlobRestoreInProgress.js.map +1 -1
  562. package/serialization/types/ProblemConflictResource.d.ts +2 -2
  563. package/serialization/types/ProblemConflictResource.d.ts.map +1 -1
  564. package/serialization/types/ProblemConflictResource.js +2 -2
  565. package/serialization/types/ProblemConflictResource.js.map +1 -1
  566. package/serialization/types/ProblemForbidden.d.ts +2 -2
  567. package/serialization/types/ProblemForbidden.d.ts.map +1 -1
  568. package/serialization/types/ProblemForbidden.js +2 -2
  569. package/serialization/types/ProblemForbidden.js.map +1 -1
  570. package/serialization/types/ProblemInternalServerError.d.ts +3 -3
  571. package/serialization/types/ProblemInternalServerError.d.ts.map +1 -1
  572. package/serialization/types/ProblemInternalServerError.js +3 -3
  573. package/serialization/types/ProblemInternalServerError.js.map +1 -1
  574. package/serialization/types/ProblemMethodNotAllowed.d.ts +2 -2
  575. package/serialization/types/ProblemMethodNotAllowed.d.ts.map +1 -1
  576. package/serialization/types/ProblemMethodNotAllowed.js +2 -2
  577. package/serialization/types/ProblemMethodNotAllowed.js.map +1 -1
  578. package/serialization/types/ProblemMethodNotAllowedAlive.d.ts +2 -2
  579. package/serialization/types/ProblemMethodNotAllowedAlive.d.ts.map +1 -1
  580. package/serialization/types/ProblemMethodNotAllowedAlive.js +2 -2
  581. package/serialization/types/ProblemMethodNotAllowedAlive.js.map +1 -1
  582. package/serialization/types/ProblemMethodNotAllowedDeleted.d.ts +2 -2
  583. package/serialization/types/ProblemMethodNotAllowedDeleted.d.ts.map +1 -1
  584. package/serialization/types/ProblemMethodNotAllowedDeleted.js +2 -2
  585. package/serialization/types/ProblemMethodNotAllowedDeleted.js.map +1 -1
  586. package/serialization/types/ProblemMethodNotAllowedRoute.d.ts +2 -2
  587. package/serialization/types/ProblemMethodNotAllowedRoute.d.ts.map +1 -1
  588. package/serialization/types/ProblemMethodNotAllowedRoute.js +2 -2
  589. package/serialization/types/ProblemMethodNotAllowedRoute.js.map +1 -1
  590. package/serialization/types/ProblemNotFound.d.ts +2 -2
  591. package/serialization/types/ProblemNotFound.d.ts.map +1 -1
  592. package/serialization/types/ProblemNotFound.js +2 -2
  593. package/serialization/types/ProblemNotFound.js.map +1 -1
  594. package/serialization/types/ProblemPreconditionFailed.d.ts +2 -2
  595. package/serialization/types/ProblemPreconditionFailed.d.ts.map +1 -1
  596. package/serialization/types/ProblemPreconditionFailed.js +2 -2
  597. package/serialization/types/ProblemPreconditionFailed.js.map +1 -1
  598. package/serialization/types/ProblemPreconditionFailedBlob.d.ts +4 -4
  599. package/serialization/types/ProblemPreconditionFailedBlob.d.ts.map +1 -1
  600. package/serialization/types/ProblemPreconditionFailedBlob.js +4 -4
  601. package/serialization/types/ProblemPreconditionFailedBlob.js.map +1 -1
  602. package/serialization/types/ProblemPreconditionFailedResource.d.ts +4 -4
  603. package/serialization/types/ProblemPreconditionFailedResource.d.ts.map +1 -1
  604. package/serialization/types/ProblemPreconditionFailedResource.js +4 -4
  605. package/serialization/types/ProblemPreconditionFailedResource.js.map +1 -1
  606. package/serialization/types/ProblemResourceNotFound.d.ts +4 -4
  607. package/serialization/types/ProblemResourceNotFound.d.ts.map +1 -1
  608. package/serialization/types/ProblemResourceNotFound.js +4 -4
  609. package/serialization/types/ProblemResourceNotFound.js.map +1 -1
  610. package/serialization/types/ProblemResourceRevisionNotFound.d.ts +4 -4
  611. package/serialization/types/ProblemResourceRevisionNotFound.d.ts.map +1 -1
  612. package/serialization/types/ProblemResourceRevisionNotFound.js +4 -4
  613. package/serialization/types/ProblemResourceRevisionNotFound.js.map +1 -1
  614. package/serialization/types/ProblemServiceUnavailable.d.ts +18 -0
  615. package/serialization/types/ProblemServiceUnavailable.d.ts.map +1 -0
  616. package/serialization/types/ProblemServiceUnavailable.js +49 -0
  617. package/serialization/types/ProblemServiceUnavailable.js.map +1 -0
  618. package/serialization/types/ProblemTooManyRequests.d.ts +2 -2
  619. package/serialization/types/ProblemTooManyRequests.d.ts.map +1 -1
  620. package/serialization/types/ProblemTooManyRequests.js +2 -2
  621. package/serialization/types/ProblemTooManyRequests.js.map +1 -1
  622. package/serialization/types/ProblemUnauthorized.d.ts +2 -2
  623. package/serialization/types/ProblemUnauthorized.d.ts.map +1 -1
  624. package/serialization/types/ProblemUnauthorized.js +2 -2
  625. package/serialization/types/ProblemUnauthorized.js.map +1 -1
  626. package/serialization/types/ProblemUnsupportedMediaType.d.ts +2 -2
  627. package/serialization/types/ProblemUnsupportedMediaType.d.ts.map +1 -1
  628. package/serialization/types/ProblemUnsupportedMediaType.js +2 -2
  629. package/serialization/types/ProblemUnsupportedMediaType.js.map +1 -1
  630. package/serialization/types/Resource.d.ts +6 -6
  631. package/serialization/types/Resource.d.ts.map +1 -1
  632. package/serialization/types/Resource.js +6 -6
  633. package/serialization/types/Resource.js.map +1 -1
  634. package/serialization/types/ResourceApiKey.d.ts +8 -8
  635. package/serialization/types/ResourceApiKey.d.ts.map +1 -1
  636. package/serialization/types/ResourceApiKey.js +8 -8
  637. package/serialization/types/ResourceApiKey.js.map +1 -1
  638. package/serialization/types/ResourceApiKeyFull.d.ts +8 -8
  639. package/serialization/types/ResourceApiKeyFull.d.ts.map +1 -1
  640. package/serialization/types/ResourceApiKeyFull.js +8 -8
  641. package/serialization/types/ResourceApiKeyFull.js.map +1 -1
  642. package/serialization/types/ResourceCredential.d.ts +8 -8
  643. package/serialization/types/ResourceCredential.d.ts.map +1 -1
  644. package/serialization/types/ResourceCredential.js +8 -8
  645. package/serialization/types/ResourceCredential.js.map +1 -1
  646. package/serialization/types/ResourceDidCommMessage.d.ts +8 -8
  647. package/serialization/types/ResourceDidCommMessage.d.ts.map +1 -1
  648. package/serialization/types/ResourceDidCommMessage.js +8 -8
  649. package/serialization/types/ResourceDidCommMessage.js.map +1 -1
  650. package/serialization/types/ResourceDraft.d.ts +8 -8
  651. package/serialization/types/ResourceDraft.d.ts.map +1 -1
  652. package/serialization/types/ResourceDraft.js +8 -8
  653. package/serialization/types/ResourceDraft.js.map +1 -1
  654. package/serialization/types/ResourceFile.d.ts +8 -8
  655. package/serialization/types/ResourceFile.d.ts.map +1 -1
  656. package/serialization/types/ResourceFile.js +8 -8
  657. package/serialization/types/ResourceFile.js.map +1 -1
  658. package/serialization/types/ResourceKeyPublic.d.ts +8 -8
  659. package/serialization/types/ResourceKeyPublic.d.ts.map +1 -1
  660. package/serialization/types/ResourceKeyPublic.js +8 -8
  661. package/serialization/types/ResourceKeyPublic.js.map +1 -1
  662. package/serialization/types/ResourcePresentation.d.ts +8 -8
  663. package/serialization/types/ResourcePresentation.d.ts.map +1 -1
  664. package/serialization/types/ResourcePresentation.js +8 -8
  665. package/serialization/types/ResourcePresentation.js.map +1 -1
  666. package/serialization/types/Service.d.ts +1 -1
  667. package/serialization/types/Service.d.ts.map +1 -1
  668. package/serialization/types/Service.js +1 -1
  669. package/serialization/types/Service.js.map +1 -1
  670. package/serialization/types/ServiceUnavailableProblems.d.ts +15 -0
  671. package/serialization/types/ServiceUnavailableProblems.d.ts.map +1 -0
  672. package/serialization/types/ServiceUnavailableProblems.js +50 -0
  673. package/serialization/types/ServiceUnavailableProblems.js.map +1 -0
  674. package/serialization/types/VerificationMethodMultikey.d.ts +3 -3
  675. package/serialization/types/VerificationMethodMultikey.d.ts.map +1 -1
  676. package/serialization/types/VerificationMethodMultikey.js +3 -3
  677. package/serialization/types/VerificationMethodMultikey.js.map +1 -1
  678. package/serialization/types/index.d.ts +8 -4
  679. package/serialization/types/index.d.ts.map +1 -1
  680. package/serialization/types/index.js +8 -4
  681. package/serialization/types/index.js.map +1 -1
@@ -10,8 +10,7 @@ import * as Truvity from '../../../../index';
10
10
  */
11
11
  export interface FileInput {
12
12
  /**
13
- * The primary and unique identifier of the resource (inside tenant)
14
- * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
13
+ * The ID that returned on Upload operation in blob_id field.
15
14
  */
16
15
  blobId: string;
17
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileInput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACtB;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IACxB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC"}
1
+ {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileInput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IACxB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * blobId: \"blob_id\"\n * }\n */\nexport interface FileInput {\n /**\n * The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n */\n blobId: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181](https://opensource.zalando.com/restful-api-guidelines/#230) for further details.\n */\n idempotencyKey?: string;\n /** The annotations of the resource. */\n annotations?: Record<string, string>;\n data?: Truvity.FileData;\n /** The labels of the resource. */\n labels?: Record<string, string>;\n}\n"]}
1
+ {"version":3,"file":"FileInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * blobId: \"blob_id\"\n * }\n */\nexport interface FileInput {\n /**\n * The ID that returned on Upload operation in blob_id field.\n */\n blobId: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181](https://opensource.zalando.com/restful-api-guidelines/#230) for further details.\n */\n idempotencyKey?: string;\n /** The annotations of the resource. */\n annotations?: Record<string, string>;\n data?: Truvity.FileData;\n /** The labels of the resource. */\n labels?: Record<string, string>;\n}\n"]}
@@ -88,7 +88,7 @@ class Gdpr {
88
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
89
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'support-requests'),
90
90
  method: 'POST',
91
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
92
  contentType: 'application/json',
93
93
  requestType: 'json',
94
94
  body: serializers.SupportRequest.jsonOrThrow(request, {
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/gdpr/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,6EAA+D;AAC/D,wDAA+B;AAC/B,iEAAmD;AAuBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAE9D;;;;;;;;;;;;;;;;OAgBG;IACI,oBAAoB,CACvB,OAA+B,EAC/B,cAAoC;QAEpC,OAAO,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IACtG,CA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AAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AAvID,oBAuIC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as environments from '../../../../environments';\nimport * as core from '../../../../core';\nimport * as Truvity from '../../../index';\nimport * as serializers from '../../../../serialization/index';\nimport urlJoin from 'url-join';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace Gdpr {\n export interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n /** Specify a custom URL to connect the client to. */\n baseUrl?: core.Supplier<string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n export interface RequestOptions {\n /** The maximum time to wait for a response in seconds. */\n timeoutInSeconds?: number;\n /** The number of times to retry the request. Defaults to 2. */\n maxRetries?: number;\n /** A hook to abort the request. */\n abortSignal?: AbortSignal;\n /** Additional headers to include in the request. */\n headers?: Record<string, string>;\n }\n}\n\n/**\n * The Truvity's Admin Panel API.\n */\nexport class Gdpr {\n constructor(protected readonly _options: Gdpr.Options = {}) {}\n\n /**\n * Create a request to support.\n *\n * @param {Truvity.SupportRequest} request\n * @param {Gdpr.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.gdpr.supportRequestCreate({\n * message: \"message\",\n * type: \"DATA_DUMP\"\n * })\n */\n public supportRequestCreate(\n request: Truvity.SupportRequest,\n requestOptions?: Gdpr.RequestOptions,\n ): core.HttpResponsePromise<void> {\n return core.HttpResponsePromise.fromPromise(this.__supportRequestCreate(request, requestOptions));\n }\n\n private async __supportRequestCreate(\n request: Truvity.SupportRequest,\n requestOptions?: Gdpr.RequestOptions,\n ): Promise<core.WithRawResponse<void>> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.TruvityEnvironment.Default,\n 'support-requests',\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': '0.33.1',\n 'User-Agent': '@truvity/sdk/0.33.1',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n ...(await this._getCustomAuthorizationHeaders()),\n ...requestOptions?.headers,\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.SupportRequest.jsonOrThrow(request, {\n unrecognizedObjectKeys: 'strip',\n omitUndefined: true,\n }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return { data: undefined, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n rawResponse: _response.rawResponse,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError('Timeout exceeded when calling POST /support-requests.');\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n protected async _getCustomAuthorizationHeaders() {\n const apiKeyValue = await core.Supplier.get(this._options.apiKey);\n return { 'X-API-KEY': apiKeyValue };\n }\n}\n"]}
1
+ {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/gdpr/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,6EAA+D;AAC/D,wDAA+B;AAC/B,iEAAmD;AAuBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAE9D;;;;;;;;;;;;;;;;OAgBG;IACI,oBAAoB,CACvB,OAA+B,EAC/B,cAAoC;QAEpC,OAAO,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IACtG,CAAC;IAEa,sBAAsB,CAChC,OAA+B,EAC/B,cAAoC;;;YAEpC,MAAM,SAAS,GAAG,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xC,CAAC;KAAA;CACJ;AAvID,oBAuIC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as environments from '../../../../environments';\nimport * as core from '../../../../core';\nimport * as Truvity from '../../../index';\nimport * as serializers from '../../../../serialization/index';\nimport urlJoin from 'url-join';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace Gdpr {\n export interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n /** Specify a custom URL to connect the client to. */\n baseUrl?: core.Supplier<string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n export interface RequestOptions {\n /** The maximum time to wait for a response in seconds. */\n timeoutInSeconds?: number;\n /** The number of times to retry the request. Defaults to 2. */\n maxRetries?: number;\n /** A hook to abort the request. */\n abortSignal?: AbortSignal;\n /** Additional headers to include in the request. */\n headers?: Record<string, string>;\n }\n}\n\n/**\n * The Truvity's Admin Panel API.\n */\nexport class Gdpr {\n constructor(protected readonly _options: Gdpr.Options = {}) {}\n\n /**\n * Create a request to support.\n *\n * @param {Truvity.SupportRequest} request\n * @param {Gdpr.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.gdpr.supportRequestCreate({\n * message: \"message\",\n * type: \"DATA_DUMP\"\n * })\n */\n public supportRequestCreate(\n request: Truvity.SupportRequest,\n requestOptions?: Gdpr.RequestOptions,\n ): core.HttpResponsePromise<void> {\n return core.HttpResponsePromise.fromPromise(this.__supportRequestCreate(request, requestOptions));\n }\n\n private async __supportRequestCreate(\n request: Truvity.SupportRequest,\n requestOptions?: Gdpr.RequestOptions,\n ): Promise<core.WithRawResponse<void>> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.TruvityEnvironment.Default,\n 'support-requests',\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': '0.36.2',\n 'User-Agent': '@truvity/sdk/0.36.2',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n ...(await this._getCustomAuthorizationHeaders()),\n ...requestOptions?.headers,\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.SupportRequest.jsonOrThrow(request, {\n unrecognizedObjectKeys: 'strip',\n omitUndefined: true,\n }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return { data: undefined, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n rawResponse: _response.rawResponse,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError('Timeout exceeded when calling POST /support-requests.');\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n protected async _getCustomAuthorizationHeaders() {\n const apiKeyValue = await core.Supplier.get(this._options.apiKey);\n return { 'X-API-KEY': apiKeyValue };\n }\n}\n"]}
@@ -103,7 +103,7 @@ class Keys {
103
103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
104
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'keys/generate'),
105
105
  method: 'POST',
106
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
107
  contentType: 'application/json',
108
108
  requestType: 'json',
109
109
  body: serializers.KeyGenerateInput.jsonOrThrow(_body, {
@@ -299,7 +299,7 @@ class Keys {
299
299
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
300
300
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'keys/import'),
301
301
  method: 'POST',
302
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
303
  contentType: 'application/json',
304
304
  requestType: 'json',
305
305
  body: serializers.KeyImportSecretInput.jsonOrThrow(_body, {
@@ -415,7 +415,7 @@ class Keys {
415
415
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
416
416
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'keys/search'),
417
417
  method: 'POST',
418
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
418
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
419
419
  contentType: 'application/json',
420
420
  requestType: 'json',
421
421
  body: serializers.KeySearchRequest.jsonOrThrow(request, {
@@ -533,7 +533,7 @@ class Keys {
533
533
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
534
534
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}`),
535
535
  method: 'GET',
536
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
536
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
537
537
  contentType: 'application/json',
538
538
  requestType: 'json',
539
539
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -652,7 +652,7 @@ class Keys {
652
652
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
653
653
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}`),
654
654
  method: 'DELETE',
655
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
655
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
656
656
  contentType: 'application/json',
657
657
  requestType: 'json',
658
658
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -781,7 +781,7 @@ class Keys {
781
781
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
782
782
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/annotations`),
783
783
  method: 'PATCH',
784
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
784
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
785
785
  contentType: 'application/json',
786
786
  requestType: 'json',
787
787
  body: serializers.KeyUpdateAnnotationsInput.jsonOrThrow(_body, {
@@ -920,7 +920,7 @@ class Keys {
920
920
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
921
921
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/credentials/sign`),
922
922
  method: 'POST',
923
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
923
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
924
924
  contentType: 'application/json',
925
925
  queryParameters: _queryParams,
926
926
  requestType: 'json',
@@ -1039,7 +1039,7 @@ class Keys {
1039
1039
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1040
1040
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/didcomm-messages/sign`),
1041
1041
  method: 'POST',
1042
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1042
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1043
1043
  contentType: 'application/json',
1044
1044
  queryParameters: _queryParams,
1045
1045
  requestType: 'json',
@@ -1167,7 +1167,7 @@ class Keys {
1167
1167
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1168
1168
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/labels`),
1169
1169
  method: 'PATCH',
1170
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1170
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1171
1171
  contentType: 'application/json',
1172
1172
  requestType: 'json',
1173
1173
  body: serializers.KeyUpdateLabelsInput.jsonOrThrow(_body, {
@@ -1306,7 +1306,7 @@ class Keys {
1306
1306
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1307
1307
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/presentations/sign`),
1308
1308
  method: 'POST',
1309
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1309
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1310
1310
  contentType: 'application/json',
1311
1311
  queryParameters: _queryParams,
1312
1312
  requestType: 'json',
@@ -1430,7 +1430,7 @@ class Keys {
1430
1430
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1431
1431
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/restore`),
1432
1432
  method: 'POST',
1433
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1433
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1434
1434
  contentType: 'application/json',
1435
1435
  requestType: 'json',
1436
1436
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1558,7 +1558,7 @@ class Keys {
1558
1558
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1559
1559
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/revisions`),
1560
1560
  method: 'GET',
1561
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1561
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1562
1562
  contentType: 'application/json',
1563
1563
  requestType: 'json',
1564
1564
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1673,7 +1673,7 @@ class Keys {
1673
1673
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1674
1674
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
1675
1675
  method: 'GET',
1676
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.33.1', 'User-Agent': '@truvity/sdk/0.33.1', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1676
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1677
1677
  contentType: 'application/json',
1678
1678
  requestType: 'json',
1679
1679
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,