@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
package/README.md CHANGED
@@ -1,92 +1,26 @@
1
- # sdk-typescript-internal
1
+ # Truvity TypeScript SDK
2
2
 
3
- <!-- TOC tocDepth:1..6 -->
3
+ ## Overview
4
4
 
5
- - [sdk-typescript-internal](#sdk-typescript-internal)
6
- - [Release Management](#release-management)
7
- - [Work in Progress](#work-in-progress)
8
- - [Stable Releases](#stable-releases)
9
- - [Updating the `package.json` packages](#updating-the-packagejson-packages)
10
- - [User Defined Types usage](#user-defined-types-usage)
5
+ The Truvity TypeScript SDK is designed to work with SSI through the Truvity API with minimal complexity.
11
6
 
12
- <!-- /TOC -->
7
+ ## Getting started
13
8
 
14
- ## Release Management
9
+ ### Prerequisites
15
10
 
16
- Any manual changes to the sdk-typescript-internal are to be made trough `patches`. The release tag for the sdk-typescript-internal will be:
11
+ - Node.js version 16.16 or later. Download it from the official [Node.js website](https://nodejs.org/).
12
+ - Valid Truvity API credentials
17
13
 
18
- `v<major openapi>.<minor openapi>.<patch sdk>`
14
+ ### Installation
19
15
 
20
- Here’s an example in chronological order of how it will work:
21
-
22
- 1. New OAPI spec release:
23
- - truvity/api — 1.0.0
24
- - truvity/sdk-typescript-internal — 1.0.0
25
- 2. We created a patch for SDK (eg. fixed security vulnerability in one of the dependency):
26
- - truvity/api — 1.0.0
27
- - truvity/sdk-typescript-internal — 1.0.1
28
- 3. We created a patch for OAPI spec (eg. fixed typo in the description):
29
- - truvity/api — 1.0.1
30
- - truvity/sdk-typescript-internal — 1.0.2
31
- 4. We added a new feature to the OAPI spec (eg. new set of API calls):
32
- - truvity/api — 1.1.0
33
- - truvity/sdk-typescript-internal — 1.1.0
34
- 5. We added a new feature to the SDK (eg. a set of helpers to work with JSON-LD)
35
- - truvity/api — 1.1.0
36
- - truvity/sdk-typescript-internal — 1.1.1
37
- 6. We made a breaking change in the OAPI spec (eg. removed a set of API calls):
38
- - truvity/api — 2.0.0
39
- - truvity/sdk-typescript-internal — 2.0.0
40
- 7. We made a breaking change in the SDK:
41
- - truvity/api — 2.0.0
42
- - truvity/sdk-typescript-internal — 2.0.1 — we should avoid this, but if it happens it’s still will be a patch.
43
-
44
- ### Work in Progress
45
-
46
- To use changes in other repositories, you can use the autogenerated message available in your PR ([example](https://github.com/truvity/sdk-typescript-internal/pull/62#issuecomment-2206722741)) or in the `cd/publish` job ([example](https://github.com/truvity/sdk-typescript-internal/actions/runs/9790645034/job/27032815426#step:7:5683))
47
-
48
- ### Stable Releases
49
-
50
- After you merge your PR branch onto master, you will need to generate a new release tag. To do so, you'll need to follow the next steps:
51
-
52
- 1. go to `master` branch and make sure you have the latest local version:
53
-
54
- ```bash
55
- git checkout master
56
- git pull
57
- ```
58
-
59
- 2. check `openapi` version in `sdk.yaml` either via command
16
+ Use the `npm` command to install the Truvity SDK:
60
17
 
61
18
  ```bash
62
- cat sdk.yaml | yq -r .info.version
19
+ npm install @truvity/sdk
63
20
  ```
64
21
 
65
- or by checking directly the version mentioned in the `sdk.yaml`
66
-
67
- ```yaml
68
- ---
69
- openapi: 3.0.3
70
- info:
71
- title: truvity
72
- description: Truvity Platform API.
73
- version: 0.27.16-devel+7ecda6c08f04
74
- ...
75
- ```
76
-
77
- 3. Use the major and minor version from there in your new tag, along with the calculated patch version from git. For example:
78
-
79
- ```bash
80
- git tag v0.27.19
81
- git push --tags
82
- ```
83
-
84
- **_NOTE_:** When issuing a pre-release, you need to format the tag as per [these instructions](https://github.com/truvity/engineering/blob/master/teams/devops/rollout-process/README.md#for-sdk). In this case, the tag should be: `v<major openapi>.<minor openapi>.<patch sdk>-rc.x`
85
-
86
- ## Updating the `package.json` packages
87
-
88
- Whenever you update the list of packages used in the `package.json`, you need to update also the [api-bundle.ts](https://github.com/truvity/api/blob/771bc724750214ec311c4057ae69c07f5b546561/api-bundle.ts#L32) TypeScript configuration from `api` repo, in order to avoid Fern overriding the these changes during the next SDK generation.
22
+ Package link on [npm](https://www.npmjs.com/package/@truvity/sdk).
89
23
 
90
- ## User Defined Types usage
24
+ ## Documentation
91
25
 
92
- For information on User Defined Types ( UDT ) usage, please see this [documentation](src/documents/README.md).
26
+ Read full Truvity SDK and API documentation at [https://docs.truvity.cloud/sdk](https://docs.truvity.cloud/sdk).
@@ -45,7 +45,7 @@ export declare class ApiKeys {
45
45
  */
46
46
  apiKeyCreate(request: Truvity.ApiKeyCreateRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ResourceApiKeyFull>;
47
47
  /**
48
- * Search for apikeys with extended filters capabilities.
48
+ * Search for API Keys with extended filters capabilities.
49
49
  *
50
50
  * @param {Truvity.ApiKeySearchRequest} request
51
51
  * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
@@ -62,7 +62,7 @@ export declare class ApiKeys {
62
62
  */
63
63
  apiKeySearch(request?: Truvity.ApiKeySearchRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ListApiKey>;
64
64
  /**
65
- * Get the latest version of ApiKey.
65
+ * Get the latest version of API Key.
66
66
  *
67
67
  * @param {string} id - The ID of the resource.
68
68
  * @param {Truvity.ApiKeyLatestRequest} request
@@ -80,7 +80,7 @@ export declare class ApiKeys {
80
80
  */
81
81
  apiKeyLatest(id: string, request?: Truvity.ApiKeyLatestRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ResourceApiKey>;
82
82
  /**
83
- * Delete ApiKey's resource.
83
+ * Delete API Key's resource.
84
84
  *
85
85
  * @param {string} id - The primary and unique identifier of the resource (inside tenant)
86
86
  * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
@@ -103,7 +103,7 @@ export declare class ApiKeys {
103
103
  */
104
104
  apiKeyDelete(id: string, request: Truvity.ApiKeyDeleteRequest, requestOptions?: ApiKeys.RequestOptions): Promise<void>;
105
105
  /**
106
- * Update ApiKey's resource.
106
+ * Update API Key's resource.
107
107
  *
108
108
  * @param {string} id - The primary and unique identifier of the resource (inside tenant)
109
109
  * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
@@ -128,7 +128,7 @@ export declare class ApiKeys {
128
128
  */
129
129
  apiKeyUpdate(id: string, request: Truvity.ApiKeyUpdateRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ResourceApiKey>;
130
130
  /**
131
- * Restore ApiKey's resource.
131
+ * Restore API Key's resource.
132
132
  *
133
133
  * @param {string} id - The primary and unique identifier of the resource (inside tenant)
134
134
  * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
@@ -150,7 +150,7 @@ export declare class ApiKeys {
150
150
  */
151
151
  apiKeyRestore(id: string, request: Truvity.ApiKeyRestoreRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ResourceApiKey>;
152
152
  /**
153
- * History of the ApiKey's resources.
153
+ * History of the API Key's resources.
154
154
  *
155
155
  * @param {string} id - The ID of the resource.
156
156
  * @param {Truvity.ApiKeyHistoryRequest} request
@@ -168,7 +168,7 @@ export declare class ApiKeys {
168
168
  */
169
169
  apiKeyHistory(id: string, request?: Truvity.ApiKeyHistoryRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ListApiKey>;
170
170
  /**
171
- * Read the specific version of the ApiKey's resource.
171
+ * Read the specific version of the API Key's resource.
172
172
  *
173
173
  * @param {string} id - The ID of the resource.
174
174
  * @param {number} revision - The revision of the resource.
@@ -77,7 +77,7 @@ class ApiKeys {
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, 'api-keys'),
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, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (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, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: 'application/json',
82
82
  requestType: 'json',
83
83
  body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
@@ -160,7 +160,7 @@ class ApiKeys {
160
160
  });
161
161
  }
162
162
  /**
163
- * Search for apikeys with extended filters capabilities.
163
+ * Search for API Keys with extended filters capabilities.
164
164
  *
165
165
  * @param {Truvity.ApiKeySearchRequest} request
166
166
  * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
@@ -181,7 +181,7 @@ class ApiKeys {
181
181
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
182
182
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'api-keys/search'),
183
183
  method: 'POST',
184
- 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())),
184
+ 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())),
185
185
  contentType: 'application/json',
186
186
  requestType: 'json',
187
187
  body: serializers.ApiKeySearchRequest.jsonOrThrow(request, {
@@ -267,7 +267,7 @@ class ApiKeys {
267
267
  });
268
268
  }
269
269
  /**
270
- * Get the latest version of ApiKey.
270
+ * Get the latest version of API Key.
271
271
  *
272
272
  * @param {string} id - The ID of the resource.
273
273
  * @param {Truvity.ApiKeyLatestRequest} request
@@ -290,7 +290,7 @@ class ApiKeys {
290
290
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
291
291
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
292
292
  method: 'GET',
293
- 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())),
293
+ 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())),
294
294
  contentType: 'application/json',
295
295
  requestType: 'json',
296
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -372,7 +372,7 @@ class ApiKeys {
372
372
  });
373
373
  }
374
374
  /**
375
- * Delete ApiKey's resource.
375
+ * Delete API Key's resource.
376
376
  *
377
377
  * @param {string} id - The primary and unique identifier of the resource (inside tenant)
378
378
  * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
@@ -400,7 +400,7 @@ class ApiKeys {
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, `api-keys/${encodeURIComponent(id)}`),
402
402
  method: 'DELETE',
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, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (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, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
404
404
  contentType: 'application/json',
405
405
  requestType: 'json',
406
406
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -491,7 +491,7 @@ class ApiKeys {
491
491
  });
492
492
  }
493
493
  /**
494
- * Update ApiKey's resource.
494
+ * Update API Key's resource.
495
495
  *
496
496
  * @param {string} id - The primary and unique identifier of the resource (inside tenant)
497
497
  * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
@@ -521,7 +521,7 @@ class ApiKeys {
521
521
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
522
522
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
523
523
  method: 'PATCH',
524
- 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())),
524
+ 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())),
525
525
  contentType: 'application/json',
526
526
  requestType: 'json',
527
527
  body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
@@ -625,7 +625,7 @@ class ApiKeys {
625
625
  });
626
626
  }
627
627
  /**
628
- * Restore ApiKey's resource.
628
+ * Restore API Key's resource.
629
629
  *
630
630
  * @param {string} id - The primary and unique identifier of the resource (inside tenant)
631
631
  * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
@@ -652,7 +652,7 @@ class ApiKeys {
652
652
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
653
653
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/restore`),
654
654
  method: 'POST',
655
- 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())),
655
+ 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())),
656
656
  contentType: 'application/json',
657
657
  requestType: 'json',
658
658
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -741,7 +741,7 @@ class ApiKeys {
741
741
  });
742
742
  }
743
743
  /**
744
- * History of the ApiKey's resources.
744
+ * History of the API Key's resources.
745
745
  *
746
746
  * @param {string} id - The ID of the resource.
747
747
  * @param {Truvity.ApiKeyHistoryRequest} request
@@ -764,7 +764,7 @@ class ApiKeys {
764
764
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
765
765
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions`),
766
766
  method: 'GET',
767
- 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())),
767
+ 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())),
768
768
  contentType: 'application/json',
769
769
  requestType: 'json',
770
770
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -846,7 +846,7 @@ class ApiKeys {
846
846
  });
847
847
  }
848
848
  /**
849
- * Read the specific version of the ApiKey's resource.
849
+ * Read the specific version of the API Key's resource.
850
850
  *
851
851
  * @param {string} id - The ID of the resource.
852
852
  * @param {number} revision - The revision of the resource.
@@ -870,7 +870,7 @@ class ApiKeys {
870
870
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
871
871
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
872
872
  method: 'GET',
873
- 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())),
873
+ 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())),
874
874
  contentType: 'application/json',
875
875
  requestType: 'json',
876
876
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,