@truvity/sdk 0.28.4 → 0.28.8

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 (545) hide show
  1. package/Client.d.ts +2 -0
  2. package/Client.d.ts.map +1 -1
  3. package/Client.js.map +1 -1
  4. package/ExtendedClient.d.ts.map +1 -1
  5. package/ExtendedClient.js +3 -6
  6. package/ExtendedClient.js.map +1 -1
  7. package/api/resources/apiKeys/client/Client.d.ts +39 -10
  8. package/api/resources/apiKeys/client/Client.d.ts.map +1 -1
  9. package/api/resources/apiKeys/client/Client.js +183 -30
  10. package/api/resources/apiKeys/client/Client.js.map +1 -1
  11. package/api/resources/{drafts/client/requests/DraftCreateRequest.d.ts → apiKeys/client/requests/ApiKeyInput.d.ts} +7 -9
  12. package/api/resources/apiKeys/client/requests/ApiKeyInput.d.ts.map +1 -0
  13. package/api/resources/apiKeys/client/requests/ApiKeyInput.js.map +1 -0
  14. package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts +55 -0
  15. package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts.map +1 -0
  16. package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js +6 -0
  17. package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js.map +1 -0
  18. package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts +55 -0
  19. package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts.map +1 -0
  20. package/api/resources/{drafts/client/requests/DraftUpdateRequest.js → apiKeys/client/requests/ApiKeyUpdateLabelsInput.js} +1 -1
  21. package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.js.map +1 -0
  22. package/api/resources/apiKeys/client/requests/index.d.ts +3 -2
  23. package/api/resources/apiKeys/client/requests/index.d.ts.map +1 -1
  24. package/api/resources/apiKeys/client/requests/index.js.map +1 -1
  25. package/api/resources/credentials/client/Client.d.ts +61 -17
  26. package/api/resources/credentials/client/Client.d.ts.map +1 -1
  27. package/api/resources/credentials/client/Client.js +303 -37
  28. package/api/resources/credentials/client/Client.js.map +1 -1
  29. package/api/resources/credentials/client/requests/CredentialDownloadRequest.d.ts +0 -6
  30. package/api/resources/credentials/client/requests/CredentialDownloadRequest.d.ts.map +1 -1
  31. package/api/resources/credentials/client/requests/CredentialDownloadRequest.js.map +1 -1
  32. package/api/resources/credentials/client/requests/CredentialInput.d.ts +1 -8
  33. package/api/resources/credentials/client/requests/CredentialInput.d.ts.map +1 -1
  34. package/api/resources/credentials/client/requests/CredentialInput.js.map +1 -1
  35. package/api/resources/credentials/client/requests/CredentialLatestRequest.d.ts +1 -3
  36. package/api/resources/credentials/client/requests/CredentialLatestRequest.d.ts.map +1 -1
  37. package/api/resources/credentials/client/requests/CredentialLatestRequest.js.map +1 -1
  38. package/api/resources/credentials/client/requests/CredentialRestoreRequest.d.ts +1 -2
  39. package/api/resources/credentials/client/requests/CredentialRestoreRequest.d.ts.map +1 -1
  40. package/api/resources/credentials/client/requests/CredentialRestoreRequest.js.map +1 -1
  41. package/api/resources/credentials/client/requests/CredentialRevisionRequest.d.ts +1 -3
  42. package/api/resources/credentials/client/requests/CredentialRevisionRequest.d.ts.map +1 -1
  43. package/api/resources/credentials/client/requests/CredentialRevisionRequest.js.map +1 -1
  44. package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts +55 -0
  45. package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts.map +1 -0
  46. package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js +6 -0
  47. package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js.map +1 -0
  48. package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts +55 -0
  49. package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts.map +1 -0
  50. package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.js +6 -0
  51. package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.js.map +1 -0
  52. package/api/resources/credentials/client/requests/index.d.ts +2 -0
  53. package/api/resources/credentials/client/requests/index.d.ts.map +1 -1
  54. package/api/resources/credentials/client/requests/index.js.map +1 -1
  55. package/api/resources/desk/client/Client.d.ts +2 -0
  56. package/api/resources/desk/client/Client.d.ts.map +1 -1
  57. package/api/resources/desk/client/Client.js +5 -5
  58. package/api/resources/desk/client/Client.js.map +1 -1
  59. package/api/resources/didcommMessages/client/Client.d.ts +56 -0
  60. package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
  61. package/api/resources/didcommMessages/client/Client.js +292 -14
  62. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  63. package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts +55 -0
  64. package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts.map +1 -0
  65. package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js +6 -0
  66. package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js.map +1 -0
  67. package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts +55 -0
  68. package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts.map +1 -0
  69. package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js +6 -0
  70. package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js.map +1 -0
  71. package/api/resources/didcommMessages/client/requests/index.d.ts +2 -0
  72. package/api/resources/didcommMessages/client/requests/index.d.ts.map +1 -1
  73. package/api/resources/didcommMessages/client/requests/index.js.map +1 -1
  74. package/api/resources/dids/client/Client.d.ts +2 -0
  75. package/api/resources/dids/client/Client.d.ts.map +1 -1
  76. package/api/resources/dids/client/Client.js +2 -2
  77. package/api/resources/dids/client/Client.js.map +1 -1
  78. package/api/resources/drafts/client/Client.d.ts +63 -15
  79. package/api/resources/drafts/client/Client.d.ts.map +1 -1
  80. package/api/resources/drafts/client/Client.js +321 -37
  81. package/api/resources/drafts/client/Client.js.map +1 -1
  82. package/api/resources/drafts/client/requests/DraftExport.d.ts +0 -8
  83. package/api/resources/drafts/client/requests/DraftExport.d.ts.map +1 -1
  84. package/api/resources/drafts/client/requests/DraftExport.js.map +1 -1
  85. package/api/resources/{apiKeys/client/requests/ApiKeyCreateRequest.d.ts → drafts/client/requests/DraftInput.d.ts} +8 -7
  86. package/api/resources/drafts/client/requests/DraftInput.d.ts.map +1 -0
  87. package/api/resources/drafts/client/requests/DraftInput.js.map +1 -0
  88. package/api/resources/drafts/client/requests/DraftIssue.d.ts +1 -5
  89. package/api/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
  90. package/api/resources/drafts/client/requests/DraftIssue.js.map +1 -1
  91. package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts +55 -0
  92. package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts.map +1 -0
  93. package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js +6 -0
  94. package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js.map +1 -0
  95. package/api/resources/{apiKeys/client/requests/ApiKeyUpdateRequest.d.ts → drafts/client/requests/DraftUpdateInput.d.ts} +5 -4
  96. package/api/resources/drafts/client/requests/DraftUpdateInput.d.ts.map +1 -0
  97. package/api/resources/drafts/client/requests/DraftUpdateInput.js +6 -0
  98. package/api/resources/drafts/client/requests/DraftUpdateInput.js.map +1 -0
  99. package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts +55 -0
  100. package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts.map +1 -0
  101. package/api/resources/{apiKeys/client/requests/ApiKeyCreateRequest.js → drafts/client/requests/DraftUpdateLabelsInput.js} +1 -1
  102. package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.js.map +1 -0
  103. package/api/resources/drafts/client/requests/index.d.ts +4 -2
  104. package/api/resources/drafts/client/requests/index.d.ts.map +1 -1
  105. package/api/resources/drafts/client/requests/index.js.map +1 -1
  106. package/api/resources/files/client/Client.d.ts +62 -9
  107. package/api/resources/files/client/Client.d.ts.map +1 -1
  108. package/api/resources/files/client/Client.js +327 -31
  109. package/api/resources/files/client/Client.js.map +1 -1
  110. package/api/resources/files/client/requests/FileDownloadRequest.d.ts +0 -6
  111. package/api/resources/files/client/requests/FileDownloadRequest.d.ts.map +1 -1
  112. package/api/resources/files/client/requests/FileDownloadRequest.js.map +1 -1
  113. package/api/resources/files/client/requests/{FileCreateRequest.d.ts → FileInput.d.ts} +8 -6
  114. package/api/resources/files/client/requests/FileInput.d.ts.map +1 -0
  115. package/api/resources/files/client/requests/FileInput.js.map +1 -0
  116. package/api/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts +55 -0
  117. package/api/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts.map +1 -0
  118. package/api/resources/files/client/requests/FileUpdateAnnotationsInput.js +6 -0
  119. package/api/resources/files/client/requests/FileUpdateAnnotationsInput.js.map +1 -0
  120. package/api/resources/files/client/requests/{FileUpdateRequest.d.ts → FileUpdateInput.d.ts} +5 -6
  121. package/api/resources/files/client/requests/FileUpdateInput.d.ts.map +1 -0
  122. package/api/resources/{keys/client/requests/KeyInput.js → files/client/requests/FileUpdateInput.js} +1 -1
  123. package/api/resources/files/client/requests/FileUpdateInput.js.map +1 -0
  124. package/api/resources/{keys/client/requests/KeyInput.d.ts → files/client/requests/FileUpdateLabelsInput.d.ts} +7 -6
  125. package/api/resources/files/client/requests/FileUpdateLabelsInput.d.ts.map +1 -0
  126. package/api/resources/{drafts/client/requests/DraftCreateRequest.js → files/client/requests/FileUpdateLabelsInput.js} +1 -1
  127. package/api/resources/files/client/requests/FileUpdateLabelsInput.js.map +1 -0
  128. package/api/resources/files/client/requests/index.d.ts +4 -2
  129. package/api/resources/files/client/requests/index.d.ts.map +1 -1
  130. package/api/resources/files/client/requests/index.js.map +1 -1
  131. package/api/resources/gdpr/client/Client.d.ts +3 -1
  132. package/api/resources/gdpr/client/Client.d.ts.map +1 -1
  133. package/api/resources/gdpr/client/Client.js +3 -3
  134. package/api/resources/gdpr/client/Client.js.map +1 -1
  135. package/api/resources/gdpr/client/requests/SupportRequest.d.ts +1 -1
  136. package/api/resources/gdpr/client/requests/SupportRequest.js.map +1 -1
  137. package/api/resources/keys/client/Client.d.ts +37 -5
  138. package/api/resources/keys/client/Client.d.ts.map +1 -1
  139. package/api/resources/keys/client/Client.js +176 -31
  140. package/api/resources/keys/client/Client.js.map +1 -1
  141. package/api/resources/keys/client/requests/CredentialSignRequest.d.ts +0 -7
  142. package/api/resources/keys/client/requests/CredentialSignRequest.d.ts.map +1 -1
  143. package/api/resources/keys/client/requests/CredentialSignRequest.js.map +1 -1
  144. package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts +0 -7
  145. package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts.map +1 -1
  146. package/api/resources/keys/client/requests/DidCommMessageSignRequest.js.map +1 -1
  147. package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts +55 -0
  148. package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts.map +1 -0
  149. package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.js +6 -0
  150. package/api/resources/keys/client/requests/{KeyInput.js.map → KeyUpdateAnnotationsInput.js.map} +1 -1
  151. package/api/resources/{drafts/client/requests/DraftUpdateRequest.d.ts → keys/client/requests/KeyUpdateLabelsInput.d.ts} +6 -6
  152. package/api/resources/keys/client/requests/KeyUpdateLabelsInput.d.ts.map +1 -0
  153. package/api/resources/{apiKeys/client/requests/ApiKeyUpdateRequest.js → keys/client/requests/KeyUpdateLabelsInput.js} +1 -1
  154. package/api/resources/keys/client/requests/KeyUpdateLabelsInput.js.map +1 -0
  155. package/api/resources/keys/client/requests/PresentationSignRequest.d.ts +0 -7
  156. package/api/resources/keys/client/requests/PresentationSignRequest.d.ts.map +1 -1
  157. package/api/resources/keys/client/requests/PresentationSignRequest.js.map +1 -1
  158. package/api/resources/keys/client/requests/index.d.ts +2 -1
  159. package/api/resources/keys/client/requests/index.d.ts.map +1 -1
  160. package/api/resources/keys/client/requests/index.js.map +1 -1
  161. package/api/resources/presentations/client/Client.d.ts +56 -0
  162. package/api/resources/presentations/client/Client.d.ts.map +1 -1
  163. package/api/resources/presentations/client/Client.js +302 -24
  164. package/api/resources/presentations/client/Client.js.map +1 -1
  165. package/api/resources/presentations/client/requests/PresentationDownloadRequest.d.ts +0 -6
  166. package/api/resources/presentations/client/requests/PresentationDownloadRequest.d.ts.map +1 -1
  167. package/api/resources/presentations/client/requests/PresentationDownloadRequest.js.map +1 -1
  168. package/api/resources/presentations/client/requests/PresentationExport.d.ts +1 -21
  169. package/api/resources/presentations/client/requests/PresentationExport.d.ts.map +1 -1
  170. package/api/resources/presentations/client/requests/PresentationExport.js.map +1 -1
  171. package/api/resources/presentations/client/requests/PresentationIssue.d.ts +1 -14
  172. package/api/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
  173. package/api/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
  174. package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts +55 -0
  175. package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts.map +1 -0
  176. package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js +6 -0
  177. package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js.map +1 -0
  178. package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts +55 -0
  179. package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts.map +1 -0
  180. package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.js +6 -0
  181. package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.js.map +1 -0
  182. package/api/resources/presentations/client/requests/index.d.ts +2 -0
  183. package/api/resources/presentations/client/requests/index.d.ts.map +1 -1
  184. package/api/resources/presentations/client/requests/index.js.map +1 -1
  185. package/api/types/Credential.d.ts +1 -8
  186. package/api/types/Credential.d.ts.map +1 -1
  187. package/api/types/Credential.js.map +1 -1
  188. package/api/types/Credential11.d.ts +1 -8
  189. package/api/types/Credential11.d.ts.map +1 -1
  190. package/api/types/Credential11.js.map +1 -1
  191. package/api/types/FileData.d.ts +2 -0
  192. package/api/types/FileData.d.ts.map +1 -1
  193. package/api/types/FileData.js.map +1 -1
  194. package/api/types/FileFilterData.d.ts +1 -0
  195. package/api/types/FileFilterData.d.ts.map +1 -1
  196. package/api/types/FileFilterData.js.map +1 -1
  197. package/api/types/FileFilterDataContentType.d.ts +1 -7
  198. package/api/types/FileFilterDataContentType.d.ts.map +1 -1
  199. package/api/types/FileFilterDataContentType.js.map +1 -1
  200. package/api/types/FileFilterDataFilename.d.ts +1 -7
  201. package/api/types/FileFilterDataFilename.d.ts.map +1 -1
  202. package/api/types/FileFilterDataFilename.js.map +1 -1
  203. package/api/types/FileFilterDataFilesize.d.ts +1 -7
  204. package/api/types/FileFilterDataFilesize.d.ts.map +1 -1
  205. package/api/types/FileFilterDataFilesize.js.map +1 -1
  206. package/api/types/FileFilterDataId.d.ts +20 -0
  207. package/api/types/FileFilterDataId.d.ts.map +1 -0
  208. package/api/types/FileFilterDataId.js +6 -0
  209. package/api/types/FileFilterDataId.js.map +1 -0
  210. package/api/types/FileFilterDataMultihash.d.ts +1 -7
  211. package/api/types/FileFilterDataMultihash.d.ts.map +1 -1
  212. package/api/types/FileFilterDataMultihash.js.map +1 -1
  213. package/api/types/FileSortField.d.ts +2 -1
  214. package/api/types/FileSortField.d.ts.map +1 -1
  215. package/api/types/FileSortField.js +1 -0
  216. package/api/types/FileSortField.js.map +1 -1
  217. package/api/types/File_.d.ts +7 -5
  218. package/api/types/File_.d.ts.map +1 -1
  219. package/api/types/File_.js.map +1 -1
  220. package/api/types/Presentation.d.ts +1 -8
  221. package/api/types/Presentation.d.ts.map +1 -1
  222. package/api/types/Presentation.js.map +1 -1
  223. package/api/types/ProblemPreconditionFailedResource.d.ts +1 -1
  224. package/api/types/ProblemPreconditionFailedResource.js.map +1 -1
  225. package/api/types/index.d.ts +1 -7
  226. package/api/types/index.d.ts.map +1 -1
  227. package/api/types/index.js +1 -7
  228. package/api/types/index.js.map +1 -1
  229. package/core/fetcher/Fetcher.d.ts +1 -1
  230. package/core/fetcher/Fetcher.d.ts.map +1 -1
  231. package/core/fetcher/Fetcher.js.map +1 -1
  232. package/core/fetcher/getResponseBody.d.ts.map +1 -1
  233. package/core/fetcher/getResponseBody.js +3 -0
  234. package/core/fetcher/getResponseBody.js.map +1 -1
  235. package/core/fetcher/requestWithRetries.d.ts.map +1 -1
  236. package/core/fetcher/requestWithRetries.js +13 -4
  237. package/core/fetcher/requestWithRetries.js.map +1 -1
  238. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
  239. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts.map +1 -1
  240. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
  241. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js.map +1 -1
  242. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -1
  243. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts.map +1 -1
  244. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js.map +1 -1
  245. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  246. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts.map +1 -1
  247. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
  248. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js.map +1 -1
  249. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  250. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js.map +1 -1
  251. package/core/schemas/Schema.d.ts +1 -0
  252. package/core/schemas/Schema.d.ts.map +1 -1
  253. package/core/schemas/Schema.js +1 -0
  254. package/core/schemas/Schema.js.map +1 -1
  255. package/core/schemas/builders/bigint/bigint.d.ts +3 -0
  256. package/core/schemas/builders/bigint/bigint.d.ts.map +1 -0
  257. package/core/schemas/builders/bigint/bigint.js +51 -0
  258. package/core/schemas/builders/bigint/bigint.js.map +1 -0
  259. package/core/schemas/builders/bigint/index.d.ts +2 -0
  260. package/core/schemas/builders/bigint/index.d.ts.map +1 -0
  261. package/core/schemas/builders/bigint/index.js +6 -0
  262. package/core/schemas/builders/bigint/index.js.map +1 -0
  263. package/core/schemas/builders/index.d.ts +1 -0
  264. package/core/schemas/builders/index.d.ts.map +1 -1
  265. package/core/schemas/builders/index.js +1 -0
  266. package/core/schemas/builders/index.js.map +1 -1
  267. package/core/schemas/builders/object/object.d.ts.map +1 -1
  268. package/core/schemas/builders/object/object.js +28 -0
  269. package/core/schemas/builders/object/object.js.map +1 -1
  270. package/core/schemas/builders/object/types.d.ts +5 -0
  271. package/core/schemas/builders/object/types.d.ts.map +1 -1
  272. package/core/schemas/builders/object/types.js.map +1 -1
  273. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  274. package/core/schemas/utils/getErrorMessageForIncorrectType.js.map +1 -1
  275. package/documents/credential/baseVerifiableCredential.d.ts +3 -1
  276. package/documents/credential/baseVerifiableCredential.d.ts.map +1 -1
  277. package/documents/credential/baseVerifiableCredential.js +32 -4
  278. package/documents/credential/baseVerifiableCredential.js.map +1 -1
  279. package/documents/credential/document.d.ts +1 -1
  280. package/documents/credential/document.d.ts.map +1 -1
  281. package/documents/credential/document.js +2 -2
  282. package/documents/credential/document.js.map +1 -1
  283. package/documents/credential/document.spec.d.ts +1 -1
  284. package/documents/credential/document.spec.d.ts.map +1 -1
  285. package/documents/credential/document.spec.js +4 -3
  286. package/documents/credential/document.spec.js.map +1 -1
  287. package/documents/credential/draft.d.ts +4 -2
  288. package/documents/credential/draft.d.ts.map +1 -1
  289. package/documents/credential/draft.js +42 -10
  290. package/documents/credential/draft.js.map +1 -1
  291. package/documents/credential/flavor.spec.js +3 -3
  292. package/documents/credential/flavor.spec.js.map +1 -1
  293. package/documents/credential/issued.d.ts +4 -2
  294. package/documents/credential/issued.d.ts.map +1 -1
  295. package/documents/credential/issued.js +28 -4
  296. package/documents/credential/issued.js.map +1 -1
  297. package/documents/credential/unknown.d.ts +2 -1
  298. package/documents/credential/unknown.d.ts.map +1 -1
  299. package/documents/credential/unknown.js +2 -2
  300. package/documents/credential/unknown.js.map +1 -1
  301. package/documents/credential.d.ts +4 -2
  302. package/documents/credential.d.ts.map +1 -1
  303. package/documents/credential.js +20 -17
  304. package/documents/credential.js.map +1 -1
  305. package/documents/models.d.ts +3 -1
  306. package/documents/models.d.ts.map +1 -1
  307. package/documents/models.js +86 -39
  308. package/documents/models.js.map +1 -1
  309. package/documents/presentation/issued.d.ts +1 -1
  310. package/documents/presentation/issued.d.ts.map +1 -1
  311. package/documents/presentation/issued.js +2 -2
  312. package/documents/presentation/issued.js.map +1 -1
  313. package/documents/presentation.d.ts +3 -1
  314. package/documents/presentation.d.ts.map +1 -1
  315. package/documents/presentation.js +2 -2
  316. package/documents/presentation.js.map +1 -1
  317. package/documents/types.d.ts +3 -0
  318. package/documents/types.d.ts.map +1 -1
  319. package/documents/types.js +3 -0
  320. package/documents/types.js.map +1 -1
  321. package/errors/TruvityTimeoutError.d.ts +1 -1
  322. package/errors/TruvityTimeoutError.d.ts.map +1 -1
  323. package/errors/TruvityTimeoutError.js +2 -2
  324. package/errors/TruvityTimeoutError.js.map +1 -1
  325. package/package.json +8 -4
  326. package/reference.md +740 -436
  327. package/serialization/resources/{keys/client/requests/KeyInput.d.ts → apiKeys/client/requests/ApiKeyInput.d.ts} +3 -3
  328. package/serialization/resources/apiKeys/client/requests/ApiKeyInput.d.ts.map +1 -0
  329. package/serialization/{types → resources/apiKeys/client/requests}/ApiKeyInput.js +1 -1
  330. package/serialization/resources/apiKeys/client/requests/ApiKeyInput.js.map +1 -0
  331. package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts +13 -0
  332. package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts.map +1 -0
  333. package/serialization/resources/{keys/client/requests/KeyInput.js → apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js} +4 -5
  334. package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js.map +1 -0
  335. package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts +13 -0
  336. package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts.map +1 -0
  337. package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.js +34 -0
  338. package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.js.map +1 -0
  339. package/serialization/resources/apiKeys/client/requests/index.d.ts +3 -0
  340. package/serialization/resources/apiKeys/client/requests/index.d.ts.map +1 -1
  341. package/serialization/resources/apiKeys/client/requests/index.js +7 -1
  342. package/serialization/resources/apiKeys/client/requests/index.js.map +1 -1
  343. package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts +13 -0
  344. package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts.map +1 -0
  345. package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js +34 -0
  346. package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js.map +1 -0
  347. package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts +13 -0
  348. package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts.map +1 -0
  349. package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.js +34 -0
  350. package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.js.map +1 -0
  351. package/serialization/resources/credentials/client/requests/index.d.ts +2 -0
  352. package/serialization/resources/credentials/client/requests/index.d.ts.map +1 -1
  353. package/serialization/resources/credentials/client/requests/index.js +5 -1
  354. package/serialization/resources/credentials/client/requests/index.js.map +1 -1
  355. package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts +13 -0
  356. package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts.map +1 -0
  357. package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js +34 -0
  358. package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js.map +1 -0
  359. package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts +13 -0
  360. package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts.map +1 -0
  361. package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js +34 -0
  362. package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js.map +1 -0
  363. package/serialization/resources/didcommMessages/client/requests/index.d.ts +2 -0
  364. package/serialization/resources/didcommMessages/client/requests/index.d.ts.map +1 -1
  365. package/serialization/resources/didcommMessages/client/requests/index.js +5 -1
  366. package/serialization/resources/didcommMessages/client/requests/index.js.map +1 -1
  367. package/serialization/resources/drafts/client/requests/DraftInput.d.ts +16 -0
  368. package/serialization/resources/drafts/client/requests/DraftInput.d.ts.map +1 -0
  369. package/serialization/{types → resources/drafts/client/requests}/DraftInput.js +2 -2
  370. package/serialization/resources/drafts/client/requests/DraftInput.js.map +1 -0
  371. package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts +13 -0
  372. package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts.map +1 -0
  373. package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js +34 -0
  374. package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js.map +1 -0
  375. package/serialization/resources/drafts/client/requests/DraftUpdateInput.d.ts +14 -0
  376. package/serialization/resources/drafts/client/requests/DraftUpdateInput.d.ts.map +1 -0
  377. package/serialization/{types/IsNotNullFilesize.js → resources/drafts/client/requests/DraftUpdateInput.js} +7 -4
  378. package/serialization/resources/drafts/client/requests/DraftUpdateInput.js.map +1 -0
  379. package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts +13 -0
  380. package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts.map +1 -0
  381. package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.js +34 -0
  382. package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.js.map +1 -0
  383. package/serialization/resources/drafts/client/requests/index.d.ts +4 -0
  384. package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
  385. package/serialization/resources/drafts/client/requests/index.js +9 -1
  386. package/serialization/resources/drafts/client/requests/index.js.map +1 -1
  387. package/serialization/resources/files/client/requests/FileInput.d.ts +16 -0
  388. package/serialization/resources/files/client/requests/FileInput.d.ts.map +1 -0
  389. package/serialization/{types → resources/files/client/requests}/FileInput.js +2 -2
  390. package/serialization/resources/files/client/requests/FileInput.js.map +1 -0
  391. package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts +13 -0
  392. package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts.map +1 -0
  393. package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.js +34 -0
  394. package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.js.map +1 -0
  395. package/serialization/resources/files/client/requests/FileUpdateInput.d.ts +14 -0
  396. package/serialization/resources/files/client/requests/FileUpdateInput.d.ts.map +1 -0
  397. package/serialization/{types/IsNullFilesize.js → resources/files/client/requests/FileUpdateInput.js} +7 -4
  398. package/serialization/resources/files/client/requests/FileUpdateInput.js.map +1 -0
  399. package/serialization/resources/files/client/requests/FileUpdateLabelsInput.d.ts +13 -0
  400. package/serialization/resources/files/client/requests/FileUpdateLabelsInput.d.ts.map +1 -0
  401. package/serialization/resources/files/client/requests/FileUpdateLabelsInput.js +34 -0
  402. package/serialization/resources/files/client/requests/FileUpdateLabelsInput.js.map +1 -0
  403. package/serialization/resources/files/client/requests/index.d.ts +4 -0
  404. package/serialization/resources/files/client/requests/index.d.ts.map +1 -1
  405. package/serialization/resources/files/client/requests/index.js +9 -1
  406. package/serialization/resources/files/client/requests/index.js.map +1 -1
  407. package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts +13 -0
  408. package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts.map +1 -0
  409. package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.js +34 -0
  410. package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.js.map +1 -0
  411. package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.d.ts +13 -0
  412. package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.d.ts.map +1 -0
  413. package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.js +34 -0
  414. package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.js.map +1 -0
  415. package/serialization/resources/keys/client/requests/index.d.ts +2 -1
  416. package/serialization/resources/keys/client/requests/index.d.ts.map +1 -1
  417. package/serialization/resources/keys/client/requests/index.js +5 -3
  418. package/serialization/resources/keys/client/requests/index.js.map +1 -1
  419. package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts +13 -0
  420. package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts.map +1 -0
  421. package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js +34 -0
  422. package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js.map +1 -0
  423. package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts +13 -0
  424. package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts.map +1 -0
  425. package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.js +34 -0
  426. package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.js.map +1 -0
  427. package/serialization/resources/presentations/client/requests/index.d.ts +2 -0
  428. package/serialization/resources/presentations/client/requests/index.d.ts.map +1 -1
  429. package/serialization/resources/presentations/client/requests/index.js +5 -1
  430. package/serialization/resources/presentations/client/requests/index.js.map +1 -1
  431. package/serialization/types/FileData.d.ts +1 -0
  432. package/serialization/types/FileData.d.ts.map +1 -1
  433. package/serialization/types/FileData.js +1 -0
  434. package/serialization/types/FileData.js.map +1 -1
  435. package/serialization/types/FileFilterData.d.ts +2 -0
  436. package/serialization/types/FileFilterData.d.ts.map +1 -1
  437. package/serialization/types/FileFilterData.js +2 -0
  438. package/serialization/types/FileFilterData.js.map +1 -1
  439. package/serialization/types/FileFilterDataContentType.d.ts +1 -9
  440. package/serialization/types/FileFilterDataContentType.d.ts.map +1 -1
  441. package/serialization/types/FileFilterDataContentType.js +0 -4
  442. package/serialization/types/FileFilterDataContentType.js.map +1 -1
  443. package/serialization/types/FileFilterDataFilename.d.ts +1 -9
  444. package/serialization/types/FileFilterDataFilename.d.ts.map +1 -1
  445. package/serialization/types/FileFilterDataFilename.js +0 -4
  446. package/serialization/types/FileFilterDataFilename.js.map +1 -1
  447. package/serialization/types/FileFilterDataFilesize.d.ts +1 -9
  448. package/serialization/types/FileFilterDataFilesize.d.ts.map +1 -1
  449. package/serialization/types/FileFilterDataFilesize.js +0 -4
  450. package/serialization/types/FileFilterDataFilesize.js.map +1 -1
  451. package/serialization/types/FileFilterDataId.d.ts +27 -0
  452. package/serialization/types/FileFilterDataId.d.ts.map +1 -0
  453. package/serialization/types/{NotModifiedProblems.js → FileFilterDataId.js} +12 -6
  454. package/serialization/types/FileFilterDataId.js.map +1 -0
  455. package/serialization/types/FileFilterDataMultihash.d.ts +1 -9
  456. package/serialization/types/FileFilterDataMultihash.d.ts.map +1 -1
  457. package/serialization/types/FileFilterDataMultihash.js +0 -4
  458. package/serialization/types/FileFilterDataMultihash.js.map +1 -1
  459. package/serialization/types/FileSortField.d.ts +1 -1
  460. package/serialization/types/FileSortField.d.ts.map +1 -1
  461. package/serialization/types/FileSortField.js +1 -0
  462. package/serialization/types/FileSortField.js.map +1 -1
  463. package/serialization/types/File_.d.ts +5 -4
  464. package/serialization/types/File_.d.ts.map +1 -1
  465. package/serialization/types/File_.js +5 -4
  466. package/serialization/types/File_.js.map +1 -1
  467. package/serialization/types/index.d.ts +1 -7
  468. package/serialization/types/index.d.ts.map +1 -1
  469. package/serialization/types/index.js +1 -7
  470. package/serialization/types/index.js.map +1 -1
  471. package/version.d.ts +2 -0
  472. package/version.d.ts.map +1 -0
  473. package/version.js +5 -0
  474. package/version.js.map +1 -0
  475. package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts.map +0 -1
  476. package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js.map +0 -1
  477. package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts.map +0 -1
  478. package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js.map +0 -1
  479. package/api/resources/drafts/client/requests/DraftCreateRequest.d.ts.map +0 -1
  480. package/api/resources/drafts/client/requests/DraftCreateRequest.js.map +0 -1
  481. package/api/resources/drafts/client/requests/DraftUpdateRequest.d.ts.map +0 -1
  482. package/api/resources/drafts/client/requests/DraftUpdateRequest.js.map +0 -1
  483. package/api/resources/files/client/requests/FileCreateRequest.d.ts.map +0 -1
  484. package/api/resources/files/client/requests/FileCreateRequest.js +0 -6
  485. package/api/resources/files/client/requests/FileCreateRequest.js.map +0 -1
  486. package/api/resources/files/client/requests/FileUpdateRequest.d.ts.map +0 -1
  487. package/api/resources/files/client/requests/FileUpdateRequest.js +0 -6
  488. package/api/resources/files/client/requests/FileUpdateRequest.js.map +0 -1
  489. package/api/resources/keys/client/requests/KeyInput.d.ts.map +0 -1
  490. package/api/types/ApiKeyInput.d.ts +0 -13
  491. package/api/types/ApiKeyInput.d.ts.map +0 -1
  492. package/api/types/ApiKeyInput.js.map +0 -1
  493. package/api/types/DraftInput.d.ts +0 -15
  494. package/api/types/DraftInput.d.ts.map +0 -1
  495. package/api/types/DraftInput.js.map +0 -1
  496. package/api/types/FileInput.d.ts +0 -15
  497. package/api/types/FileInput.d.ts.map +0 -1
  498. package/api/types/FileInput.js.map +0 -1
  499. package/api/types/IsNotNullFilesize.d.ts +0 -9
  500. package/api/types/IsNotNullFilesize.d.ts.map +0 -1
  501. package/api/types/IsNotNullFilesize.js +0 -6
  502. package/api/types/IsNotNullFilesize.js.map +0 -1
  503. package/api/types/IsNullFilesize.d.ts +0 -9
  504. package/api/types/IsNullFilesize.d.ts.map +0 -1
  505. package/api/types/IsNullFilesize.js +0 -6
  506. package/api/types/IsNullFilesize.js.map +0 -1
  507. package/api/types/NotModifiedProblems.d.ts +0 -14
  508. package/api/types/NotModifiedProblems.d.ts.map +0 -1
  509. package/api/types/NotModifiedProblems.js +0 -6
  510. package/api/types/NotModifiedProblems.js.map +0 -1
  511. package/api/types/ProblemNotModified.d.ts +0 -20
  512. package/api/types/ProblemNotModified.d.ts.map +0 -1
  513. package/api/types/ProblemNotModified.js +0 -6
  514. package/api/types/ProblemNotModified.js.map +0 -1
  515. package/documents/credential/index.d.ts +0 -7
  516. package/documents/credential/index.d.ts.map +0 -1
  517. package/documents/credential/index.js +0 -23
  518. package/documents/credential/index.js.map +0 -1
  519. package/serialization/resources/keys/client/requests/KeyInput.d.ts.map +0 -1
  520. package/serialization/resources/keys/client/requests/KeyInput.js.map +0 -1
  521. package/serialization/types/ApiKeyInput.d.ts +0 -14
  522. package/serialization/types/ApiKeyInput.d.ts.map +0 -1
  523. package/serialization/types/ApiKeyInput.js.map +0 -1
  524. package/serialization/types/DraftInput.d.ts +0 -16
  525. package/serialization/types/DraftInput.d.ts.map +0 -1
  526. package/serialization/types/DraftInput.js.map +0 -1
  527. package/serialization/types/FileInput.d.ts +0 -16
  528. package/serialization/types/FileInput.d.ts.map +0 -1
  529. package/serialization/types/FileInput.js.map +0 -1
  530. package/serialization/types/IsNotNullFilesize.d.ts +0 -12
  531. package/serialization/types/IsNotNullFilesize.d.ts.map +0 -1
  532. package/serialization/types/IsNotNullFilesize.js.map +0 -1
  533. package/serialization/types/IsNullFilesize.d.ts +0 -12
  534. package/serialization/types/IsNullFilesize.d.ts.map +0 -1
  535. package/serialization/types/IsNullFilesize.js.map +0 -1
  536. package/serialization/types/NotModifiedProblems.d.ts +0 -15
  537. package/serialization/types/NotModifiedProblems.d.ts.map +0 -1
  538. package/serialization/types/NotModifiedProblems.js.map +0 -1
  539. package/serialization/types/ProblemNotModified.d.ts +0 -18
  540. package/serialization/types/ProblemNotModified.d.ts.map +0 -1
  541. package/serialization/types/ProblemNotModified.js +0 -39
  542. package/serialization/types/ProblemNotModified.js.map +0 -1
  543. /package/api/{types → resources/apiKeys/client/requests}/ApiKeyInput.js +0 -0
  544. /package/api/{types → resources/drafts/client/requests}/DraftInput.js +0 -0
  545. /package/api/{types → resources/files/client/requests}/FileInput.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * idempotencyKey: \"string\",\n * blobId: \"string\",\n * annotations: {\n * \"string\": \"string\"\n * },\n * labels: {\n * \"string\": \"string\"\n * }\n * }\n */\nexport interface CredentialInput {\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][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /** The annotations of the resource. */\n annotations?: Record<string, string>;\n /** The labels of the resource. */\n labels?: Record<string, string>;\n}\n"]}
1
+ {"version":3,"file":"CredentialInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * blobId: \"blob_id\"\n * }\n */\nexport interface CredentialInput {\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][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /** The annotations of the resource. */\n annotations?: Record<string, string>;\n /** The labels of the resource. */\n labels?: Record<string, string>;\n}\n"]}
@@ -3,9 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * ifNoneMatch: "string"
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface CredentialLatestRequest {
11
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialLatestRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialLatestRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"CredentialLatestRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialLatestRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialLatestRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialLatestRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * ifNoneMatch: \"string\"\n * }\n */\nexport interface CredentialLatestRequest {\n /**\n * The ETag of the latest version of the resource.\n */\n ifNoneMatch?: string;\n}\n"]}
1
+ {"version":3,"file":"CredentialLatestRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialLatestRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {}\n */\nexport interface CredentialLatestRequest {\n /**\n * The ETag of the latest version of the resource.\n */\n ifNoneMatch?: string;\n}\n"]}
@@ -4,8 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * idempotencyKey: "string",
8
- * ifMatch: "string"
7
+ * ifMatch: "If-Match"
9
8
  * }
10
9
  */
11
10
  export interface CredentialRestoreRequest {
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialRestoreRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRestoreRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"CredentialRestoreRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRestoreRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialRestoreRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRestoreRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * idempotencyKey: \"string\",\n * ifMatch: \"string\"\n * }\n */\nexport interface CredentialRestoreRequest {\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][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: 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 **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n}\n"]}
1
+ {"version":3,"file":"CredentialRestoreRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRestoreRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * ifMatch: \"If-Match\"\n * }\n */\nexport interface CredentialRestoreRequest {\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][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: 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 **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n}\n"]}
@@ -3,9 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * ifNoneMatch: "string"
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface CredentialRevisionRequest {
11
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialRevisionRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRevisionRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"CredentialRevisionRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRevisionRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialRevisionRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRevisionRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * ifNoneMatch: \"string\"\n * }\n */\nexport interface CredentialRevisionRequest {\n /**\n * The ETag of the latest version of the resource.\n */\n ifNoneMatch?: string;\n}\n"]}
1
+ {"version":3,"file":"CredentialRevisionRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRevisionRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {}\n */\nexport interface CredentialRevisionRequest {\n /**\n * The ETag of the latest version of the resource.\n */\n ifNoneMatch?: string;\n}\n"]}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * ifMatch: "If-Match",
8
+ * annotations: {
9
+ * "key": "value"
10
+ * }
11
+ * }
12
+ */
13
+ export interface CredentialUpdateAnnotationsInput {
14
+ /**
15
+ * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
16
+ * The **Idempotency-Key** is a free identifier created by the client to
17
+ * identify a request. It is used by the service to identify repeated request
18
+ * to ensure idempotent behavior by sending the same (or a similar) response
19
+ * without executing the request a second time.
20
+ *
21
+ * Clients should be careful as any subsequent requests with the same key may
22
+ * return the same response without further check. Thus, it is recommended to
23
+ * use a UUID version 4 (random) or any other random string with enough
24
+ * entropy to avoid collisions.
25
+ *
26
+ * Keys expire after 24 hours. Clients are responsible to stay within this
27
+ * limit, if they require idempotent behavior.
28
+ *
29
+ * See [API Guideline Rule #181][api-230] for further details.
30
+ *
31
+ * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
32
+ */
33
+ idempotencyKey?: string;
34
+ /**
35
+ * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
36
+ * The **If-Match** header field is used to declare a list of identifiers that
37
+ * are required to match the current resource version identifier in at least
38
+ * one position as a pre-condition for executing the request on the server
39
+ * side. This behavior is used to validate and reject optimistic updates, by
40
+ * checking if the resource version a consumer has based his changes on is
41
+ * outdated on arrival of the change request to prevent lost updates.
42
+ *
43
+ * If the pre-condition fails the server will respond with status code **412**
44
+ * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as
45
+ * well as [API Guideline Rule #182][api-182] for further details.
46
+ *
47
+ * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1
48
+ *
49
+ * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.
50
+ */
51
+ ifMatch: string;
52
+ /** The annotations of the resource. */
53
+ annotations: Record<string, string>;
54
+ }
55
+ //# sourceMappingURL=CredentialUpdateAnnotationsInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialUpdateAnnotationsInput.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=CredentialUpdateAnnotationsInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialUpdateAnnotationsInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * ifMatch: \"If-Match\",\n * annotations: {\n * \"key\": \"value\"\n * }\n * }\n */\nexport interface CredentialUpdateAnnotationsInput {\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][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: 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 **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n /** The annotations of the resource. */\n annotations: Record<string, string>;\n}\n"]}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * ifMatch: "If-Match",
8
+ * labels: {
9
+ * "key": "value"
10
+ * }
11
+ * }
12
+ */
13
+ export interface CredentialUpdateLabelsInput {
14
+ /**
15
+ * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
16
+ * The **Idempotency-Key** is a free identifier created by the client to
17
+ * identify a request. It is used by the service to identify repeated request
18
+ * to ensure idempotent behavior by sending the same (or a similar) response
19
+ * without executing the request a second time.
20
+ *
21
+ * Clients should be careful as any subsequent requests with the same key may
22
+ * return the same response without further check. Thus, it is recommended to
23
+ * use a UUID version 4 (random) or any other random string with enough
24
+ * entropy to avoid collisions.
25
+ *
26
+ * Keys expire after 24 hours. Clients are responsible to stay within this
27
+ * limit, if they require idempotent behavior.
28
+ *
29
+ * See [API Guideline Rule #181][api-230] for further details.
30
+ *
31
+ * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
32
+ */
33
+ idempotencyKey?: string;
34
+ /**
35
+ * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
36
+ * The **If-Match** header field is used to declare a list of identifiers that
37
+ * are required to match the current resource version identifier in at least
38
+ * one position as a pre-condition for executing the request on the server
39
+ * side. This behavior is used to validate and reject optimistic updates, by
40
+ * checking if the resource version a consumer has based his changes on is
41
+ * outdated on arrival of the change request to prevent lost updates.
42
+ *
43
+ * If the pre-condition fails the server will respond with status code **412**
44
+ * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as
45
+ * well as [API Guideline Rule #182][api-182] for further details.
46
+ *
47
+ * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1
48
+ *
49
+ * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.
50
+ */
51
+ ifMatch: string;
52
+ /** The labels of the resource. */
53
+ labels: Record<string, string>;
54
+ }
55
+ //# sourceMappingURL=CredentialUpdateLabelsInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialUpdateLabelsInput.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=CredentialUpdateLabelsInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialUpdateLabelsInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * ifMatch: \"If-Match\",\n * labels: {\n * \"key\": \"value\"\n * }\n * }\n */\nexport interface CredentialUpdateLabelsInput {\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][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: 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 **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n /** The labels of the resource. */\n labels: Record<string, string>;\n}\n"]}
@@ -3,6 +3,8 @@ export { type CredentialSearchRequest } from './CredentialSearchRequest';
3
3
  export { type CredentialUploadRequest } from './CredentialUploadRequest';
4
4
  export { type CredentialLatestRequest } from './CredentialLatestRequest';
5
5
  export { type CredentialDeleteRequest } from './CredentialDeleteRequest';
6
+ export { type CredentialUpdateAnnotationsInput } from './CredentialUpdateAnnotationsInput';
7
+ export { type CredentialUpdateLabelsInput } from './CredentialUpdateLabelsInput';
6
8
  export { type CredentialRestoreRequest } from './CredentialRestoreRequest';
7
9
  export { type CredentialHistoryRequest } from './CredentialHistoryRequest';
8
10
  export { type CredentialRevisionRequest } from './CredentialRevisionRequest';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type CredentialInput } from './CredentialInput';\nexport { type CredentialSearchRequest } from './CredentialSearchRequest';\nexport { type CredentialUploadRequest } from './CredentialUploadRequest';\nexport { type CredentialLatestRequest } from './CredentialLatestRequest';\nexport { type CredentialDeleteRequest } from './CredentialDeleteRequest';\nexport { type CredentialRestoreRequest } from './CredentialRestoreRequest';\nexport { type CredentialHistoryRequest } from './CredentialHistoryRequest';\nexport { type CredentialRevisionRequest } from './CredentialRevisionRequest';\nexport { type CredentialDownloadRequest } from './CredentialDownloadRequest';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type CredentialInput } from './CredentialInput';\nexport { type CredentialSearchRequest } from './CredentialSearchRequest';\nexport { type CredentialUploadRequest } from './CredentialUploadRequest';\nexport { type CredentialLatestRequest } from './CredentialLatestRequest';\nexport { type CredentialDeleteRequest } from './CredentialDeleteRequest';\nexport { type CredentialUpdateAnnotationsInput } from './CredentialUpdateAnnotationsInput';\nexport { type CredentialUpdateLabelsInput } from './CredentialUpdateLabelsInput';\nexport { type CredentialRestoreRequest } from './CredentialRestoreRequest';\nexport { type CredentialHistoryRequest } from './CredentialHistoryRequest';\nexport { type CredentialRevisionRequest } from './CredentialRevisionRequest';\nexport { type CredentialDownloadRequest } from './CredentialDownloadRequest';\n"]}
@@ -17,6 +17,8 @@ export declare namespace Desk {
17
17
  maxRetries?: number;
18
18
  /** A hook to abort the request. */
19
19
  abortSignal?: AbortSignal;
20
+ /** Additional headers to include in the request. */
21
+ headers?: Record<string, string>;
20
22
  }
21
23
  }
22
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/desk/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,MAAM,CAAC,OAA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,CAAC;IAC1B,UAAU,OAAO;QACb,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC;QACtE,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC;KAChC;IAED,UAAU,cAAc;QACpB,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED;;GAEG;AACH,qBAAa,IAAI;IACD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO;gBAAtB,QAAQ,GAAE,IAAI,CAAC,OAAY;IAE1D;;;;;;;;;;;;;OAaG;IACU,cAAc,CACvB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,qBAA0B,EAC3C,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;IAsF/B;;;;;;;;;;;;;OAaG;IACU,kBAAkB,CAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,OAAO,CAAC,IAAI,CAAC;cAqFA,8BAA8B;;;CAIjD"}
@@ -73,7 +73,7 @@ class Desk {
73
73
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
74
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `${encodeURIComponent(tenantId)}/did.json`),
75
75
  method: 'GET',
76
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.28.8', 'User-Agent': '@truvity/sdk/0.28.8', '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),
77
77
  contentType: 'application/json',
78
78
  requestType: 'json',
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -125,7 +125,7 @@ class Desk {
125
125
  body: _response.error.rawBody,
126
126
  });
127
127
  case 'timeout':
128
- throw new errors.TruvityTimeoutError();
128
+ throw new errors.TruvityTimeoutError('Timeout exceeded when calling GET /{tenant_id}/did.json.');
129
129
  case 'unknown':
130
130
  throw new errors.TruvityError({
131
131
  message: _response.error.errorMessage,
@@ -153,8 +153,8 @@ class Desk {
153
153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
154
154
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `${encodeURIComponent(tenantId)}/didcomm-messages/recv`),
155
155
  method: 'POST',
156
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
- contentType: 'application/json',
156
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.28.8', 'User-Agent': '@truvity/sdk/0.28.8', '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),
157
+ contentType: 'application/didcomm-signed+json',
158
158
  requestType: 'json',
159
159
  body: serializers.desk.didCommMessageRecv.Request.jsonOrThrow(request, {
160
160
  unrecognizedObjectKeys: 'strip',
@@ -204,7 +204,7 @@ class Desk {
204
204
  body: _response.error.rawBody,
205
205
  });
206
206
  case 'timeout':
207
- throw new errors.TruvityTimeoutError();
207
+ throw new errors.TruvityTimeoutError('Timeout exceeded when calling POST /{tenant_id}/didcomm-messages/recv.');
208
208
  case 'unknown':
209
209
  throw new errors.TruvityError({
210
210
  message: _response.error.errorMessage,
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/desk/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,wDAA+B;AAC/B,6EAA+D;AAC/D,iEAAmD;AAmBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAE9D;;;;;;;;;;;;;OAaG;IACU,cAAc,CACvB,QAAgB,EAChB,UAAyC,EAAE,EAC3C,cAAoC;;;YAEpC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;YAChC,MAAM,SAAS,GAAG,MAAM,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AS,CAAC,KAAK,CAAC,IAAI,EAAE;4BACtE,sBAAsB,EAAE,aAAa;4BACrC,6BAA6B,EAAE,IAAI;4BACnC,2BAA2B,EAAE,IAAI;4BACjC,iBAAiB,EAAE,CAAC,UAAU,CAAC;yBAClC,CAAC,CACL,CAAC;oBACN;wBACI,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;4BAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;4BACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;yBAC7B,CAAC,CAAC;iBACV;aACJ;YAED,QAAQ,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE;gBAC5B,KAAK,UAAU;oBACX,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;qBAChC,CAAC,CAAC;gBACP,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;gBAC3C,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY;qBACxC,CAAC,CAAC;aACV;;KACJ;IAEe,8BAA8B;;YAC1C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AAhND,oBAgNC","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 urlJoin from 'url-join';\nimport * as serializers from '../../../../serialization/index';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace Desk {\n interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n 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 }\n}\n\n/**\n * The API to manage DID Documents and to receive DIDComm messages.\n */\nexport class Desk {\n constructor(protected readonly _options: Desk.Options = {}) {}\n\n /**\n * Get DID-Document for [did:web Method Specification](https://w3c-ccg.github.io/did-method-web/).\n *\n * @param {string} tenantId - The ID of the tenant.\n * @param {Truvity.DidDocumentGetRequest} request\n * @param {Desk.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.desk.didDocumentGet(\"tenant_id\")\n */\n public async didDocumentGet(\n tenantId: string,\n request: Truvity.DidDocumentGetRequest = {},\n requestOptions?: Desk.RequestOptions,\n ): Promise<Truvity.DidDocument> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `${encodeURIComponent(tenantId)}/did.json`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.DidDocument.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\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 );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\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 );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\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 });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Receive DIDComm Message.\n *\n * @param {string} tenantId - The ID of the tenant.\n * @param {string} request\n * @param {Desk.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.desk.didCommMessageRecv(\"tenant_id\", \"string\")\n */\n public async didCommMessageRecv(\n tenantId: string,\n request: string,\n requestOptions?: Desk.RequestOptions,\n ): Promise<void> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `${encodeURIComponent(tenantId)}/didcomm-messages/recv`,\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.desk.didCommMessageRecv.Request.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;\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 );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\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 );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\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 });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\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/desk/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,wDAA+B;AAC/B,6EAA+D;AAC/D,iEAAmD;AAqBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAE9D;;;;;;;;;;;;;OAaG;IACU,cAAc,CACvB,QAAgB,EAChB,UAAyC,EAAE,EAC3C,cAAoC;;;YAEpC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;YAChC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,mCAAI,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC5D,GAAG,EAAE,IAAA,kBAAO,EACR,MAAA,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,mCAAI,YAAY,CAAC,kBAAkB,CAAC,OAAO,EAC/F,GAAG,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAC7C;gBACD,MAAM,EAAE,KAAK;gBACb,OAAO,gCACH,iBAAiB,EAAE,YAAY,EAC/B,iBAAiB,EAAE,cAAc,EACjC,oBAAoB,E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AE,SAAS,CAAC,KAAK,CAAC,UAAU;4BACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;yBAC7B,CAAC,CAAC;iBACV;aACJ;YAED,QAAQ,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE;gBAC5B,KAAK,UAAU;oBACX,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;qBAChC,CAAC,CAAC;gBACP,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,mBAAmB,CAChC,wEAAwE,CAC3E,CAAC;gBACN,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY;qBACxC,CAAC,CAAC;aACV;;KACJ;IAEe,8BAA8B;;YAC1C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AAtND,oBAsNC","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 urlJoin from 'url-join';\nimport * as serializers from '../../../../serialization/index';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace Desk {\n interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n 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 API to manage DID Documents and to receive DIDComm messages.\n */\nexport class Desk {\n constructor(protected readonly _options: Desk.Options = {}) {}\n\n /**\n * Get DID-Document for [did:web Method Specification](https://w3c-ccg.github.io/did-method-web/).\n *\n * @param {string} tenantId - The ID of the tenant.\n * @param {Truvity.DidDocumentGetRequest} request\n * @param {Desk.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.desk.didDocumentGet(\"tenant_id\")\n */\n public async didDocumentGet(\n tenantId: string,\n request: Truvity.DidDocumentGetRequest = {},\n requestOptions?: Desk.RequestOptions,\n ): Promise<Truvity.DidDocument> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `${encodeURIComponent(tenantId)}/did.json`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': '0.28.8',\n 'User-Agent': '@truvity/sdk/0.28.8',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n ...requestOptions?.headers,\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.DidDocument.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\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 );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\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 );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\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 });\n case 'timeout':\n throw new errors.TruvityTimeoutError('Timeout exceeded when calling GET /{tenant_id}/did.json.');\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Receive DIDComm Message.\n *\n * @param {string} tenantId - The ID of the tenant.\n * @param {string} request\n * @param {Desk.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.desk.didCommMessageRecv(\"tenant_id\", \"string\")\n */\n public async didCommMessageRecv(\n tenantId: string,\n request: string,\n requestOptions?: Desk.RequestOptions,\n ): Promise<void> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `${encodeURIComponent(tenantId)}/didcomm-messages/recv`,\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': '0.28.8',\n 'User-Agent': '@truvity/sdk/0.28.8',\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/didcomm-signed+json',\n requestType: 'json',\n body: serializers.desk.didCommMessageRecv.Request.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;\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 );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\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 );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\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 });\n case 'timeout':\n throw new errors.TruvityTimeoutError(\n 'Timeout exceeded when calling POST /{tenant_id}/didcomm-messages/recv.',\n );\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\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"]}
@@ -17,6 +17,8 @@ export declare namespace DidcommMessages {
17
17
  maxRetries?: number;
18
18
  /** A hook to abort the request. */
19
19
  abortSignal?: AbortSignal;
20
+ /** Additional headers to include in the request. */
21
+ headers?: Record<string, string>;
20
22
  }
21
23
  }
22
24
  /**
@@ -106,6 +108,60 @@ export declare class DidcommMessages {
106
108
  * })
107
109
  */
108
110
  didcommMessageDelete(id: string, request: Truvity.DidcommMessageDeleteRequest, requestOptions?: DidcommMessages.RequestOptions): Promise<void>;
111
+ /**
112
+ * Update annotations of DIDComm Message's resource.
113
+ *
114
+ * @param {string} id - The primary and unique identifier of the resource (inside tenant)
115
+ * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
116
+ * @param {Truvity.DidcommMessageUpdateAnnotationsInput} request
117
+ * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration.
118
+ *
119
+ * @throws {@link Truvity.BadRequestError}
120
+ * @throws {@link Truvity.UnauthorizedError}
121
+ * @throws {@link Truvity.ForbiddenError}
122
+ * @throws {@link Truvity.NotFoundError}
123
+ * @throws {@link Truvity.MethodNotAllowedError}
124
+ * @throws {@link Truvity.PreconditionFailedError}
125
+ * @throws {@link Truvity.UnsupportedMediaTypeError}
126
+ * @throws {@link Truvity.TooManyRequestsError}
127
+ * @throws {@link Truvity.InternalServerError}
128
+ *
129
+ * @example
130
+ * await client.didcommMessages.didcommMessageUpdateAnnotations("id", {
131
+ * ifMatch: "If-Match",
132
+ * annotations: {
133
+ * "key": "value"
134
+ * }
135
+ * })
136
+ */
137
+ didcommMessageUpdateAnnotations(id: string, request: Truvity.DidcommMessageUpdateAnnotationsInput, requestOptions?: DidcommMessages.RequestOptions): Promise<Truvity.ResourceDidCommMessage>;
138
+ /**
139
+ * Update labels of DIDComm Message's resource.
140
+ *
141
+ * @param {string} id - The primary and unique identifier of the resource (inside tenant)
142
+ * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
143
+ * @param {Truvity.DidcommMessageUpdateLabelsInput} request
144
+ * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration.
145
+ *
146
+ * @throws {@link Truvity.BadRequestError}
147
+ * @throws {@link Truvity.UnauthorizedError}
148
+ * @throws {@link Truvity.ForbiddenError}
149
+ * @throws {@link Truvity.NotFoundError}
150
+ * @throws {@link Truvity.MethodNotAllowedError}
151
+ * @throws {@link Truvity.PreconditionFailedError}
152
+ * @throws {@link Truvity.UnsupportedMediaTypeError}
153
+ * @throws {@link Truvity.TooManyRequestsError}
154
+ * @throws {@link Truvity.InternalServerError}
155
+ *
156
+ * @example
157
+ * await client.didcommMessages.didcommMessageUpdateLabels("id", {
158
+ * ifMatch: "If-Match",
159
+ * labels: {
160
+ * "key": "value"
161
+ * }
162
+ * })
163
+ */
164
+ didcommMessageUpdateLabels(id: string, request: Truvity.DidcommMessageUpdateLabelsInput, requestOptions?: DidcommMessages.RequestOptions): Promise<Truvity.ResourceDidCommMessage>;
109
165
  /**
110
166
  * Restore DIDComm Message's resource.
111
167
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/didcommMessages/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACrC,UAAU,OAAO;Q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