@truvity/sdk 0.28.1 → 0.28.3

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 (299) hide show
  1. package/README.md +13 -79
  2. package/api/resources/apiKeys/client/Client.d.ts +7 -7
  3. package/api/resources/apiKeys/client/Client.js +15 -15
  4. package/api/resources/apiKeys/client/Client.js.map +1 -1
  5. package/api/resources/credentials/client/Client.d.ts +3 -3
  6. package/api/resources/credentials/client/Client.js +13 -13
  7. package/api/resources/credentials/client/Client.js.map +1 -1
  8. package/api/resources/desk/client/Client.js +2 -2
  9. package/api/resources/desk/client/Client.js.map +1 -1
  10. package/api/resources/didcommMessages/client/Client.d.ts +7 -7
  11. package/api/resources/didcommMessages/client/Client.js +14 -14
  12. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  13. package/api/resources/dids/client/Client.js +1 -1
  14. package/api/resources/dids/client/Client.js.map +1 -1
  15. package/api/resources/drafts/client/Client.d.ts +3 -3
  16. package/api/resources/drafts/client/Client.js +13 -13
  17. package/api/resources/drafts/client/Client.js.map +1 -1
  18. package/api/resources/drafts/client/requests/DraftExport.d.ts +2 -2
  19. package/api/resources/drafts/client/requests/DraftExport.d.ts.map +1 -1
  20. package/api/resources/drafts/client/requests/DraftExport.js.map +1 -1
  21. package/api/resources/drafts/client/requests/DraftIssue.d.ts +5 -4
  22. package/api/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
  23. package/api/resources/drafts/client/requests/DraftIssue.js.map +1 -1
  24. package/api/resources/drafts/index.d.ts +1 -0
  25. package/api/resources/drafts/index.d.ts.map +1 -1
  26. package/api/resources/drafts/index.js +1 -0
  27. package/api/resources/drafts/index.js.map +1 -1
  28. package/api/resources/drafts/types/DraftIssueDidMethod.d.ts +12 -0
  29. package/api/resources/drafts/types/DraftIssueDidMethod.d.ts.map +1 -0
  30. package/api/resources/drafts/types/DraftIssueDidMethod.js +11 -0
  31. package/api/resources/drafts/types/DraftIssueDidMethod.js.map +1 -0
  32. package/api/resources/drafts/types/index.d.ts +2 -0
  33. package/api/resources/drafts/types/index.d.ts.map +1 -0
  34. package/api/resources/drafts/types/index.js +18 -0
  35. package/api/resources/drafts/types/index.js.map +1 -0
  36. package/api/resources/files/client/Client.d.ts +1 -1
  37. package/api/resources/files/client/Client.js +11 -11
  38. package/api/resources/files/client/Client.js.map +1 -1
  39. package/api/resources/gdpr/client/Client.js +1 -1
  40. package/api/resources/gdpr/client/Client.js.map +1 -1
  41. package/api/resources/index.d.ts +6 -3
  42. package/api/resources/index.d.ts.map +1 -1
  43. package/api/resources/index.js +7 -4
  44. package/api/resources/index.js.map +1 -1
  45. package/api/resources/keys/client/Client.d.ts +4 -4
  46. package/api/resources/keys/client/Client.js +16 -16
  47. package/api/resources/keys/client/Client.js.map +1 -1
  48. package/api/resources/keys/client/requests/CredentialSignRequest.d.ts +3 -2
  49. package/api/resources/keys/client/requests/CredentialSignRequest.d.ts.map +1 -1
  50. package/api/resources/keys/client/requests/CredentialSignRequest.js.map +1 -1
  51. package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts +3 -2
  52. package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts.map +1 -1
  53. package/api/resources/keys/client/requests/DidCommMessageSignRequest.js.map +1 -1
  54. package/api/resources/keys/client/requests/PresentationSignRequest.d.ts +3 -2
  55. package/api/resources/keys/client/requests/PresentationSignRequest.d.ts.map +1 -1
  56. package/api/resources/keys/client/requests/PresentationSignRequest.js.map +1 -1
  57. package/api/resources/keys/index.d.ts +1 -0
  58. package/api/resources/keys/index.d.ts.map +1 -1
  59. package/api/resources/keys/index.js +1 -0
  60. package/api/resources/keys/index.js.map +1 -1
  61. package/api/resources/keys/types/CredentialSignRequestDidMethod.d.ts +12 -0
  62. package/api/resources/keys/types/CredentialSignRequestDidMethod.d.ts.map +1 -0
  63. package/api/resources/keys/types/CredentialSignRequestDidMethod.js +11 -0
  64. package/api/resources/keys/types/CredentialSignRequestDidMethod.js.map +1 -0
  65. package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts +12 -0
  66. package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts.map +1 -0
  67. package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.js +11 -0
  68. package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.js.map +1 -0
  69. package/api/resources/keys/types/PresentationSignRequestDidMethod.d.ts +12 -0
  70. package/api/resources/keys/types/PresentationSignRequestDidMethod.d.ts.map +1 -0
  71. package/api/resources/keys/types/PresentationSignRequestDidMethod.js +11 -0
  72. package/api/resources/keys/types/PresentationSignRequestDidMethod.js.map +1 -0
  73. package/api/resources/keys/types/index.d.ts +4 -0
  74. package/api/resources/keys/types/index.d.ts.map +1 -0
  75. package/api/resources/keys/types/index.js +20 -0
  76. package/api/resources/keys/types/index.js.map +1 -0
  77. package/api/resources/presentations/client/Client.d.ts +6 -6
  78. package/api/resources/presentations/client/Client.js +18 -18
  79. package/api/resources/presentations/client/Client.js.map +1 -1
  80. package/api/resources/presentations/client/requests/PresentationIssue.d.ts +2 -1
  81. package/api/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
  82. package/api/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
  83. package/api/resources/presentations/index.d.ts +1 -0
  84. package/api/resources/presentations/index.d.ts.map +1 -1
  85. package/api/resources/presentations/index.js +1 -0
  86. package/api/resources/presentations/index.js.map +1 -1
  87. package/api/resources/presentations/types/PresentationIssueDidMethod.d.ts +12 -0
  88. package/api/resources/presentations/types/PresentationIssueDidMethod.d.ts.map +1 -0
  89. package/api/resources/presentations/types/PresentationIssueDidMethod.js +11 -0
  90. package/api/resources/presentations/types/PresentationIssueDidMethod.js.map +1 -0
  91. package/api/resources/presentations/types/index.d.ts +2 -0
  92. package/api/resources/presentations/types/index.d.ts.map +1 -0
  93. package/api/resources/presentations/types/index.js +18 -0
  94. package/api/resources/presentations/types/index.js.map +1 -0
  95. package/api/types/Credential.d.ts +2 -2
  96. package/api/types/Credential.d.ts.map +1 -1
  97. package/api/types/Credential.js.map +1 -1
  98. package/api/types/Credential11.d.ts +1 -1
  99. package/api/types/Credential11.d.ts.map +1 -1
  100. package/api/types/Credential11.js.map +1 -1
  101. package/api/types/Draft.d.ts +5 -1
  102. package/api/types/Draft.d.ts.map +1 -1
  103. package/api/types/Draft.js.map +1 -1
  104. package/api/types/DraftCreate.d.ts +3 -0
  105. package/api/types/DraftCreate.d.ts.map +1 -1
  106. package/api/types/DraftCreate.js.map +1 -1
  107. package/api/types/DraftFieldBooleanValue.d.ts +1 -1
  108. package/api/types/DraftFieldBooleanValue.d.ts.map +1 -1
  109. package/api/types/DraftFieldBooleanValue.js.map +1 -1
  110. package/api/types/DraftFieldDateTimeValue.d.ts +1 -1
  111. package/api/types/DraftFieldDateTimeValue.d.ts.map +1 -1
  112. package/api/types/DraftFieldDateTimeValue.js.map +1 -1
  113. package/api/types/DraftFieldDateValue.d.ts +1 -1
  114. package/api/types/DraftFieldDateValue.d.ts.map +1 -1
  115. package/api/types/DraftFieldDateValue.js.map +1 -1
  116. package/api/types/DraftFieldFileValue.d.ts +1 -1
  117. package/api/types/DraftFieldFileValue.d.ts.map +1 -1
  118. package/api/types/DraftFieldFileValue.js.map +1 -1
  119. package/api/types/DraftFieldLinkValue.d.ts +1 -1
  120. package/api/types/DraftFieldLinkValue.d.ts.map +1 -1
  121. package/api/types/DraftFieldLinkValue.js.map +1 -1
  122. package/api/types/DraftFieldNumberValue.d.ts +1 -1
  123. package/api/types/DraftFieldNumberValue.d.ts.map +1 -1
  124. package/api/types/DraftFieldNumberValue.js.map +1 -1
  125. package/api/types/DraftFieldStringValue.d.ts +1 -1
  126. package/api/types/DraftFieldStringValue.d.ts.map +1 -1
  127. package/api/types/DraftFieldStringValue.js.map +1 -1
  128. package/api/types/DraftFieldStructValue.d.ts +2 -1
  129. package/api/types/DraftFieldStructValue.d.ts.map +1 -1
  130. package/api/types/DraftFieldStructValue.js.map +1 -1
  131. package/api/types/DraftFieldStructValueFieldsItem.d.ts +1 -1
  132. package/api/types/DraftFieldStructValueFieldsItem.js.map +1 -1
  133. package/api/types/DraftMeta.d.ts +3 -3
  134. package/api/types/DraftMeta.d.ts.map +1 -1
  135. package/api/types/DraftMeta.js.map +1 -1
  136. package/api/types/DraftSchema.d.ts +1 -0
  137. package/api/types/DraftSchema.d.ts.map +1 -1
  138. package/api/types/DraftSchema.js.map +1 -1
  139. package/api/types/DraftSchemaFieldsItem.d.ts +1 -1
  140. package/api/types/DraftSchemaFieldsItem.js.map +1 -1
  141. package/api/types/EqualKeyType.d.ts +2 -1
  142. package/api/types/EqualKeyType.d.ts.map +1 -1
  143. package/api/types/EqualKeyType.js.map +1 -1
  144. package/api/types/EqualKeyTypeValue.d.ts +14 -0
  145. package/api/types/EqualKeyTypeValue.d.ts.map +1 -0
  146. package/api/types/EqualKeyTypeValue.js +13 -0
  147. package/api/types/EqualKeyTypeValue.js.map +1 -0
  148. package/api/types/InKeyType.d.ts +2 -1
  149. package/api/types/InKeyType.d.ts.map +1 -1
  150. package/api/types/InKeyType.js.map +1 -1
  151. package/api/types/InKeyTypeValuesItem.d.ts +33 -0
  152. package/api/types/InKeyTypeValuesItem.d.ts.map +1 -0
  153. package/api/types/InKeyTypeValuesItem.js +13 -0
  154. package/api/types/InKeyTypeValuesItem.js.map +1 -0
  155. package/api/types/KeyGenerate.d.ts +3 -2
  156. package/api/types/KeyGenerate.d.ts.map +1 -1
  157. package/api/types/KeyGenerate.js.map +1 -1
  158. package/api/types/KeyGenerateType.d.ts +33 -0
  159. package/api/types/KeyGenerateType.d.ts.map +1 -0
  160. package/api/types/KeyGenerateType.js +13 -0
  161. package/api/types/KeyGenerateType.js.map +1 -0
  162. package/api/types/KeyPublic.d.ts +2 -1
  163. package/api/types/KeyPublic.d.ts.map +1 -1
  164. package/api/types/KeyPublic.js.map +1 -1
  165. package/api/types/KeyPublicType.d.ts +33 -0
  166. package/api/types/KeyPublicType.d.ts.map +1 -0
  167. package/api/types/KeyPublicType.js +13 -0
  168. package/api/types/KeyPublicType.js.map +1 -0
  169. package/api/types/NotEqualKeyType.d.ts +2 -1
  170. package/api/types/NotEqualKeyType.d.ts.map +1 -1
  171. package/api/types/NotEqualKeyType.js.map +1 -1
  172. package/api/types/NotEqualKeyTypeValue.d.ts +14 -0
  173. package/api/types/NotEqualKeyTypeValue.d.ts.map +1 -0
  174. package/api/types/NotEqualKeyTypeValue.js +13 -0
  175. package/api/types/NotEqualKeyTypeValue.js.map +1 -0
  176. package/api/types/NotInKeyType.d.ts +2 -1
  177. package/api/types/NotInKeyType.d.ts.map +1 -1
  178. package/api/types/NotInKeyType.js.map +1 -1
  179. package/api/types/NotInKeyTypeValuesItem.d.ts +33 -0
  180. package/api/types/NotInKeyTypeValuesItem.d.ts.map +1 -0
  181. package/api/types/NotInKeyTypeValuesItem.js +13 -0
  182. package/api/types/NotInKeyTypeValuesItem.js.map +1 -0
  183. package/api/types/index.d.ts +6 -0
  184. package/api/types/index.d.ts.map +1 -1
  185. package/api/types/index.js +6 -0
  186. package/api/types/index.js.map +1 -1
  187. package/package.json +4 -22
  188. package/reference.md +34 -34
  189. package/serialization/resources/drafts/client/requests/DraftIssue.d.ts +2 -1
  190. package/serialization/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
  191. package/serialization/resources/drafts/client/requests/DraftIssue.js +2 -1
  192. package/serialization/resources/drafts/client/requests/DraftIssue.js.map +1 -1
  193. package/serialization/resources/drafts/index.d.ts +1 -0
  194. package/serialization/resources/drafts/index.d.ts.map +1 -1
  195. package/serialization/resources/drafts/index.js +1 -0
  196. package/serialization/resources/drafts/index.js.map +1 -1
  197. package/serialization/resources/drafts/types/DraftIssueDidMethod.d.ts +11 -0
  198. package/serialization/resources/drafts/types/DraftIssueDidMethod.d.ts.map +1 -0
  199. package/serialization/resources/drafts/types/DraftIssueDidMethod.js +32 -0
  200. package/serialization/resources/drafts/types/DraftIssueDidMethod.js.map +1 -0
  201. package/serialization/resources/drafts/types/index.d.ts +2 -0
  202. package/serialization/resources/drafts/types/index.d.ts.map +1 -0
  203. package/serialization/resources/drafts/types/index.js +18 -0
  204. package/serialization/resources/drafts/types/index.js.map +1 -0
  205. package/serialization/resources/index.d.ts +6 -3
  206. package/serialization/resources/index.d.ts.map +1 -1
  207. package/serialization/resources/index.js +7 -4
  208. package/serialization/resources/index.js.map +1 -1
  209. package/serialization/resources/keys/index.d.ts +1 -0
  210. package/serialization/resources/keys/index.d.ts.map +1 -1
  211. package/serialization/resources/keys/index.js +1 -0
  212. package/serialization/resources/keys/index.js.map +1 -1
  213. package/serialization/resources/keys/types/CredentialSignRequestDidMethod.d.ts +11 -0
  214. package/serialization/resources/keys/types/CredentialSignRequestDidMethod.d.ts.map +1 -0
  215. package/serialization/resources/keys/types/CredentialSignRequestDidMethod.js +32 -0
  216. package/serialization/resources/keys/types/CredentialSignRequestDidMethod.js.map +1 -0
  217. package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts +11 -0
  218. package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts.map +1 -0
  219. package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.js +32 -0
  220. package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.js.map +1 -0
  221. package/serialization/resources/keys/types/PresentationSignRequestDidMethod.d.ts +11 -0
  222. package/serialization/resources/keys/types/PresentationSignRequestDidMethod.d.ts.map +1 -0
  223. package/serialization/resources/keys/types/PresentationSignRequestDidMethod.js +32 -0
  224. package/serialization/resources/keys/types/PresentationSignRequestDidMethod.js.map +1 -0
  225. package/serialization/resources/keys/types/index.d.ts +4 -0
  226. package/serialization/resources/keys/types/index.d.ts.map +1 -0
  227. package/serialization/resources/keys/types/index.js +20 -0
  228. package/serialization/resources/keys/types/index.js.map +1 -0
  229. package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts +2 -1
  230. package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
  231. package/serialization/resources/presentations/client/requests/PresentationIssue.js +2 -1
  232. package/serialization/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
  233. package/serialization/resources/presentations/index.d.ts +1 -0
  234. package/serialization/resources/presentations/index.d.ts.map +1 -1
  235. package/serialization/resources/presentations/index.js +1 -0
  236. package/serialization/resources/presentations/index.js.map +1 -1
  237. package/serialization/resources/presentations/types/PresentationIssueDidMethod.d.ts +11 -0
  238. package/serialization/resources/presentations/types/PresentationIssueDidMethod.d.ts.map +1 -0
  239. package/serialization/resources/presentations/types/PresentationIssueDidMethod.js +32 -0
  240. package/serialization/resources/presentations/types/PresentationIssueDidMethod.js.map +1 -0
  241. package/serialization/resources/presentations/types/index.d.ts +2 -0
  242. package/serialization/resources/presentations/types/index.d.ts.map +1 -0
  243. package/serialization/resources/presentations/types/index.js +18 -0
  244. package/serialization/resources/presentations/types/index.js.map +1 -0
  245. package/serialization/types/EqualKeyType.d.ts +2 -1
  246. package/serialization/types/EqualKeyType.d.ts.map +1 -1
  247. package/serialization/types/EqualKeyType.js +2 -1
  248. package/serialization/types/EqualKeyType.js.map +1 -1
  249. package/serialization/types/EqualKeyTypeValue.d.ts +11 -0
  250. package/serialization/types/EqualKeyTypeValue.d.ts.map +1 -0
  251. package/serialization/types/EqualKeyTypeValue.js +32 -0
  252. package/serialization/types/EqualKeyTypeValue.js.map +1 -0
  253. package/serialization/types/InKeyType.d.ts +2 -1
  254. package/serialization/types/InKeyType.d.ts.map +1 -1
  255. package/serialization/types/InKeyType.js +2 -1
  256. package/serialization/types/InKeyType.js.map +1 -1
  257. package/serialization/types/InKeyTypeValuesItem.d.ts +11 -0
  258. package/serialization/types/InKeyTypeValuesItem.d.ts.map +1 -0
  259. package/serialization/types/InKeyTypeValuesItem.js +32 -0
  260. package/serialization/types/InKeyTypeValuesItem.js.map +1 -0
  261. package/serialization/types/KeyGenerate.d.ts +2 -1
  262. package/serialization/types/KeyGenerate.d.ts.map +1 -1
  263. package/serialization/types/KeyGenerate.js +2 -1
  264. package/serialization/types/KeyGenerate.js.map +1 -1
  265. package/serialization/types/KeyGenerateType.d.ts +11 -0
  266. package/serialization/types/KeyGenerateType.d.ts.map +1 -0
  267. package/serialization/types/KeyGenerateType.js +32 -0
  268. package/serialization/types/KeyGenerateType.js.map +1 -0
  269. package/serialization/types/KeyPublic.d.ts +2 -1
  270. package/serialization/types/KeyPublic.d.ts.map +1 -1
  271. package/serialization/types/KeyPublic.js +2 -1
  272. package/serialization/types/KeyPublic.js.map +1 -1
  273. package/serialization/types/KeyPublicType.d.ts +11 -0
  274. package/serialization/types/KeyPublicType.d.ts.map +1 -0
  275. package/serialization/types/KeyPublicType.js +32 -0
  276. package/serialization/types/KeyPublicType.js.map +1 -0
  277. package/serialization/types/NotEqualKeyType.d.ts +2 -1
  278. package/serialization/types/NotEqualKeyType.d.ts.map +1 -1
  279. package/serialization/types/NotEqualKeyType.js +2 -1
  280. package/serialization/types/NotEqualKeyType.js.map +1 -1
  281. package/serialization/types/NotEqualKeyTypeValue.d.ts +11 -0
  282. package/serialization/types/NotEqualKeyTypeValue.d.ts.map +1 -0
  283. package/serialization/types/NotEqualKeyTypeValue.js +32 -0
  284. package/serialization/types/NotEqualKeyTypeValue.js.map +1 -0
  285. package/serialization/types/NotInKeyType.d.ts +2 -1
  286. package/serialization/types/NotInKeyType.d.ts.map +1 -1
  287. package/serialization/types/NotInKeyType.js +2 -1
  288. package/serialization/types/NotInKeyType.js.map +1 -1
  289. package/serialization/types/NotInKeyTypeValuesItem.d.ts +11 -0
  290. package/serialization/types/NotInKeyTypeValuesItem.d.ts.map +1 -0
  291. package/serialization/types/NotInKeyTypeValuesItem.js +32 -0
  292. package/serialization/types/NotInKeyTypeValuesItem.js.map +1 -0
  293. package/serialization/types/index.d.ts +6 -0
  294. package/serialization/types/index.d.ts.map +1 -1
  295. package/serialization/types/index.js +6 -0
  296. package/serialization/types/index.js.map +1 -1
  297. package/devbox.lock +0 -118
  298. package/jest.config.ts +0 -38
  299. package/yarn.lock.checksum +0 -1
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Truvity from '../../../../index';
4
5
  /**
5
6
  * @example
6
7
  * {
7
- * didMethod: "string",
8
+ * didMethod: Truvity.CredentialSignRequestDidMethod.Key,
8
9
  * body: "string"
9
10
  * }
10
11
  */
@@ -12,7 +13,7 @@ export interface CredentialSignRequest {
12
13
  /**
13
14
  * All supported DID methods. Default is "web".
14
15
  */
15
- didMethod?: string;
16
+ didMethod?: Truvity.CredentialSignRequestDidMethod;
16
17
  /**
17
18
  * The unsigned credential to sign.
18
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/CredentialSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"CredentialSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/CredentialSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,8BAA8B,CAAC;IACnD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/CredentialSignRequest.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 * didMethod: \"string\",\n * body: \"string\"\n * }\n */\nexport interface CredentialSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: string;\n /**\n * The unsigned credential to sign.\n */\n body: string;\n}\n"]}
1
+ {"version":3,"file":"CredentialSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/CredentialSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * didMethod: Truvity.CredentialSignRequestDidMethod.Key,\n * body: \"string\"\n * }\n */\nexport interface CredentialSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: Truvity.CredentialSignRequestDidMethod;\n /**\n * The unsigned credential to sign.\n */\n body: string;\n}\n"]}
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Truvity from '../../../../index';
4
5
  /**
5
6
  * @example
6
7
  * {
7
- * didMethod: "string",
8
+ * didMethod: Truvity.DidCommMessageSignRequestDidMethod.Key,
8
9
  * body: "string"
9
10
  * }
10
11
  */
@@ -12,7 +13,7 @@ export interface DidCommMessageSignRequest {
12
13
  /**
13
14
  * All supported DID methods. Default is "web".
14
15
  */
15
- didMethod?: string;
16
+ didMethod?: Truvity.DidCommMessageSignRequestDidMethod;
16
17
  /**
17
18
  * The DIDCOMMMessage to sign.
18
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommMessageSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/DidCommMessageSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"DidCommMessageSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/DidCommMessageSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,kCAAkC,CAAC;IACvD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommMessageSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/DidCommMessageSignRequest.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 * didMethod: \"string\",\n * body: \"string\"\n * }\n */\nexport interface DidCommMessageSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: string;\n /**\n * The DIDCOMMMessage to sign.\n */\n body: string;\n}\n"]}
1
+ {"version":3,"file":"DidCommMessageSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/DidCommMessageSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * didMethod: Truvity.DidCommMessageSignRequestDidMethod.Key,\n * body: \"string\"\n * }\n */\nexport interface DidCommMessageSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: Truvity.DidCommMessageSignRequestDidMethod;\n /**\n * The DIDCOMMMessage to sign.\n */\n body: string;\n}\n"]}
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Truvity from '../../../../index';
4
5
  /**
5
6
  * @example
6
7
  * {
7
- * didMethod: "string",
8
+ * didMethod: Truvity.PresentationSignRequestDidMethod.Key,
8
9
  * body: "string"
9
10
  * }
10
11
  */
@@ -12,7 +13,7 @@ export interface PresentationSignRequest {
12
13
  /**
13
14
  * All supported DID methods. Default is "web".
14
15
  */
15
- didMethod?: string;
16
+ didMethod?: Truvity.PresentationSignRequestDidMethod;
16
17
  /**
17
18
  * The unsigned presentation to sign.
18
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PresentationSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/PresentationSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"PresentationSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/PresentationSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC;IACrD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"PresentationSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/PresentationSignRequest.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 * didMethod: \"string\",\n * body: \"string\"\n * }\n */\nexport interface PresentationSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: string;\n /**\n * The unsigned presentation to sign.\n */\n body: string;\n}\n"]}
1
+ {"version":3,"file":"PresentationSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/PresentationSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * didMethod: Truvity.PresentationSignRequestDidMethod.Key,\n * body: \"string\"\n * }\n */\nexport interface PresentationSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: Truvity.PresentationSignRequestDidMethod;\n /**\n * The unsigned presentation to sign.\n */\n body: string;\n}\n"]}
@@ -1,2 +1,3 @@
1
+ export * from './types';
1
2
  export * from './client';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/resources/keys/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB","sourcesContent":["export * from './client';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/resources/keys/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB","sourcesContent":["export * from './types';\nexport * from './client';\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * All supported DID methods. Default is "web".
6
+ */
7
+ export declare type CredentialSignRequestDidMethod = 'key' | 'web';
8
+ export declare const CredentialSignRequestDidMethod: {
9
+ readonly Key: "key";
10
+ readonly Web: "web";
11
+ };
12
+ //# sourceMappingURL=CredentialSignRequestDidMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialSignRequestDidMethod.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/CredentialSignRequestDidMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,8BAA8B,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3D,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC"}
@@ -0,0 +1,11 @@
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
+ exports.CredentialSignRequestDidMethod = void 0;
7
+ exports.CredentialSignRequestDidMethod = {
8
+ Key: 'key',
9
+ Web: 'web',
10
+ };
11
+ //# sourceMappingURL=CredentialSignRequestDidMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialSignRequestDidMethod.js","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/CredentialSignRequestDidMethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAOU,QAAA,8BAA8B,GAAG;IAC1C,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * All supported DID methods. Default is \"web\".\n */\nexport type CredentialSignRequestDidMethod = 'key' | 'web';\n\nexport const CredentialSignRequestDidMethod = {\n Key: 'key',\n Web: 'web',\n} as const;\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * All supported DID methods. Default is "web".
6
+ */
7
+ export declare type DidCommMessageSignRequestDidMethod = 'key' | 'web';
8
+ export declare const DidCommMessageSignRequestDidMethod: {
9
+ readonly Key: "key";
10
+ readonly Web: "web";
11
+ };
12
+ //# sourceMappingURL=DidCommMessageSignRequestDidMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DidCommMessageSignRequestDidMethod.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/DidCommMessageSignRequestDidMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,kCAAkC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE/D,eAAO,MAAM,kCAAkC;;;CAGrC,CAAC"}
@@ -0,0 +1,11 @@
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
+ exports.DidCommMessageSignRequestDidMethod = void 0;
7
+ exports.DidCommMessageSignRequestDidMethod = {
8
+ Key: 'key',
9
+ Web: 'web',
10
+ };
11
+ //# sourceMappingURL=DidCommMessageSignRequestDidMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DidCommMessageSignRequestDidMethod.js","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/DidCommMessageSignRequestDidMethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAOU,QAAA,kCAAkC,GAAG;IAC9C,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * All supported DID methods. Default is \"web\".\n */\nexport type DidCommMessageSignRequestDidMethod = 'key' | 'web';\n\nexport const DidCommMessageSignRequestDidMethod = {\n Key: 'key',\n Web: 'web',\n} as const;\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * All supported DID methods. Default is "web".
6
+ */
7
+ export declare type PresentationSignRequestDidMethod = 'key' | 'web';
8
+ export declare const PresentationSignRequestDidMethod: {
9
+ readonly Key: "key";
10
+ readonly Web: "web";
11
+ };
12
+ //# sourceMappingURL=PresentationSignRequestDidMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresentationSignRequestDidMethod.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/PresentationSignRequestDidMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,gCAAgC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE7D,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC"}
@@ -0,0 +1,11 @@
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
+ exports.PresentationSignRequestDidMethod = void 0;
7
+ exports.PresentationSignRequestDidMethod = {
8
+ Key: 'key',
9
+ Web: 'web',
10
+ };
11
+ //# sourceMappingURL=PresentationSignRequestDidMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresentationSignRequestDidMethod.js","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/PresentationSignRequestDidMethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAOU,QAAA,gCAAgC,GAAG;IAC5C,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * All supported DID methods. Default is \"web\".\n */\nexport type PresentationSignRequestDidMethod = 'key' | 'web';\n\nexport const PresentationSignRequestDidMethod = {\n Key: 'key',\n Web: 'web',\n} as const;\n"]}
@@ -0,0 +1,4 @@
1
+ export * from './CredentialSignRequestDidMethod';
2
+ export * from './DidCommMessageSignRequestDidMethod';
3
+ export * from './PresentationSignRequestDidMethod';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CredentialSignRequestDidMethod"), exports);
18
+ __exportStar(require("./DidCommMessageSignRequestDidMethod"), exports);
19
+ __exportStar(require("./PresentationSignRequestDidMethod"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,uEAAqD;AACrD,qEAAmD","sourcesContent":["export * from './CredentialSignRequestDidMethod';\nexport * from './DidCommMessageSignRequestDidMethod';\nexport * from './PresentationSignRequestDidMethod';\n"]}
@@ -37,7 +37,7 @@ export declare class Presentations {
37
37
  */
38
38
  presentationExport(request: Truvity.PresentationExport, requestOptions?: Presentations.RequestOptions): Promise<stream.Readable>;
39
39
  /**
40
- * Import a verifiable presentation.
40
+ * Import a Verifiable Presentation.
41
41
  *
42
42
  * @param {Truvity.PresentationInput} request
43
43
  * @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
@@ -59,9 +59,9 @@ export declare class Presentations {
59
59
  /**
60
60
  * It's a handy call that wraps the following:
61
61
  *
62
- * 1. [Exporting](#tag/presentations/operation/PresentationExport) an unsigned JSON-LD representation of a verifiable presentation.
63
- * 2. [Signing](#tag/keys/operation/PresentationSign) the created unsigned presentation.
64
- * 3. [Importing](#tag/presentations/operation/PresentationImport) the signed presentation.
62
+ * 1. [Exporting](#tag/presentations/operation/PresentationExport) an unsigned JSON-LD representation of a Verifiable Presentation.
63
+ * 2. [Signing](#tag/keys/operation/PresentationSign) the created unsigned Presentation.
64
+ * 3. [Importing](#tag/presentations/operation/PresentationImport) the signed Presentation.
65
65
  *
66
66
  * @param {Truvity.PresentationIssue} request
67
67
  * @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
@@ -80,7 +80,7 @@ export declare class Presentations {
80
80
  */
81
81
  presentationIssue(request: Truvity.PresentationIssue, requestOptions?: Presentations.RequestOptions): Promise<Truvity.ResourcePresentation>;
82
82
  /**
83
- * Search for presentations with extended filters capabilities.
83
+ * Search for Presentations with extended filters capabilities.
84
84
  *
85
85
  * @param {Truvity.PresentationSearchRequest} request
86
86
  * @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
@@ -222,7 +222,7 @@ export declare class Presentations {
222
222
  */
223
223
  presentationDownload(id: string, revision: number, request?: Truvity.PresentationDownloadRequest, requestOptions?: Presentations.RequestOptions): Promise<stream.Readable>;
224
224
  /**
225
- * Verify a verifiable presentation.
225
+ * Verify a Verifiable Presentation.
226
226
  *
227
227
  * @param {string} id - The ID of the resource.
228
228
  * @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
@@ -77,7 +77,7 @@ class Presentations {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/export'),
79
79
  method: 'POST',
80
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: 'application/json',
82
82
  requestType: 'json',
83
83
  body: Object.assign(Object.assign({}, serializers.PresentationExport.jsonOrThrow(request, {
@@ -152,7 +152,7 @@ class Presentations {
152
152
  });
153
153
  }
154
154
  /**
155
- * Import a verifiable presentation.
155
+ * Import a Verifiable Presentation.
156
156
  *
157
157
  * @param {Truvity.PresentationInput} request
158
158
  * @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
@@ -179,7 +179,7 @@ class Presentations {
179
179
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
180
180
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/import'),
181
181
  method: 'POST',
182
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
182
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
183
183
  contentType: 'application/json',
184
184
  queryParameters: _queryParams,
185
185
  requestType: 'json',
@@ -275,9 +275,9 @@ class Presentations {
275
275
  /**
276
276
  * It's a handy call that wraps the following:
277
277
  *
278
- * 1. [Exporting](#tag/presentations/operation/PresentationExport) an unsigned JSON-LD representation of a verifiable presentation.
279
- * 2. [Signing](#tag/keys/operation/PresentationSign) the created unsigned presentation.
280
- * 3. [Importing](#tag/presentations/operation/PresentationImport) the signed presentation.
278
+ * 1. [Exporting](#tag/presentations/operation/PresentationExport) an unsigned JSON-LD representation of a Verifiable Presentation.
279
+ * 2. [Signing](#tag/keys/operation/PresentationSign) the created unsigned Presentation.
280
+ * 3. [Importing](#tag/presentations/operation/PresentationImport) the signed Presentation.
281
281
  *
282
282
  * @param {Truvity.PresentationIssue} request
283
283
  * @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
@@ -300,7 +300,7 @@ class Presentations {
300
300
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
301
301
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/issue'),
302
302
  method: 'POST',
303
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
303
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
304
304
  contentType: 'application/json',
305
305
  requestType: 'json',
306
306
  body: Object.assign(Object.assign({}, serializers.PresentationIssue.jsonOrThrow(request, {
@@ -379,7 +379,7 @@ class Presentations {
379
379
  });
380
380
  }
381
381
  /**
382
- * Search for presentations with extended filters capabilities.
382
+ * Search for Presentations with extended filters capabilities.
383
383
  *
384
384
  * @param {Truvity.PresentationSearchRequest} request
385
385
  * @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
@@ -400,7 +400,7 @@ class Presentations {
400
400
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
401
401
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/search'),
402
402
  method: 'POST',
403
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
403
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
404
404
  contentType: 'application/json',
405
405
  requestType: 'json',
406
406
  body: serializers.PresentationSearchRequest.jsonOrThrow(request, {
@@ -507,7 +507,7 @@ class Presentations {
507
507
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
508
508
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/upload'),
509
509
  method: 'POST',
510
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
510
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
511
511
  contentType: 'application/json',
512
512
  requestType: 'json',
513
513
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -605,7 +605,7 @@ class Presentations {
605
605
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
606
606
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}`),
607
607
  method: 'GET',
608
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
608
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
609
609
  contentType: 'application/json',
610
610
  requestType: 'json',
611
611
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -715,7 +715,7 @@ class Presentations {
715
715
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
716
716
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}`),
717
717
  method: 'DELETE',
718
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
718
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
719
719
  contentType: 'application/json',
720
720
  requestType: 'json',
721
721
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -833,7 +833,7 @@ class Presentations {
833
833
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
834
834
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/restore`),
835
835
  method: 'POST',
836
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
836
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
837
837
  contentType: 'application/json',
838
838
  requestType: 'json',
839
839
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -945,7 +945,7 @@ class Presentations {
945
945
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
946
946
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/revisions`),
947
947
  method: 'GET',
948
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
948
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
949
949
  contentType: 'application/json',
950
950
  requestType: 'json',
951
951
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1051,7 +1051,7 @@ class Presentations {
1051
1051
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1052
1052
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
1053
1053
  method: 'GET',
1054
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
1054
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
1055
1055
  contentType: 'application/json',
1056
1056
  requestType: 'json',
1057
1057
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1147,7 +1147,7 @@ class Presentations {
1147
1147
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1148
1148
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/download`),
1149
1149
  method: 'GET',
1150
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
1150
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
1151
1151
  contentType: 'application/json',
1152
1152
  requestType: 'json',
1153
1153
  responseType: 'streaming',
@@ -1218,7 +1218,7 @@ class Presentations {
1218
1218
  });
1219
1219
  }
1220
1220
  /**
1221
- * Verify a verifiable presentation.
1221
+ * Verify a Verifiable Presentation.
1222
1222
  *
1223
1223
  * @param {string} id - The ID of the resource.
1224
1224
  * @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
@@ -1238,7 +1238,7 @@ class Presentations {
1238
1238
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1239
1239
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/verify`),
1240
1240
  method: 'GET',
1241
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.0.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1241
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1242
1242
  contentType: 'application/json',
1243
1243
  requestType: 'json',
1244
1244
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,