@truvity/sdk 0.36.8 → 0.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/api/resources/apiKeys/client/Client.d.ts.map +1 -1
  2. package/api/resources/apiKeys/client/Client.js +9 -19
  3. package/api/resources/apiKeys/client/Client.js.map +1 -1
  4. package/api/resources/credentials/client/Client.d.ts.map +1 -1
  5. package/api/resources/credentials/client/Client.js +12 -28
  6. package/api/resources/credentials/client/Client.js.map +1 -1
  7. package/api/resources/desk/client/Client.d.ts.map +1 -1
  8. package/api/resources/desk/client/Client.js +2 -4
  9. package/api/resources/desk/client/Client.js.map +1 -1
  10. package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
  11. package/api/resources/didcommMessages/client/Client.js +9 -19
  12. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  13. package/api/resources/dids/client/Client.d.ts.map +1 -1
  14. package/api/resources/dids/client/Client.js +1 -3
  15. package/api/resources/dids/client/Client.js.map +1 -1
  16. package/api/resources/drafts/client/Client.d.ts +0 -49
  17. package/api/resources/drafts/client/Client.d.ts.map +1 -1
  18. package/api/resources/drafts/client/Client.js +12 -191
  19. package/api/resources/drafts/client/Client.js.map +1 -1
  20. package/api/resources/drafts/client/requests/index.d.ts +0 -1
  21. package/api/resources/drafts/client/requests/index.d.ts.map +1 -1
  22. package/api/resources/drafts/client/requests/index.js.map +1 -1
  23. package/api/resources/drafts/types/index.d.ts +0 -1
  24. package/api/resources/drafts/types/index.d.ts.map +1 -1
  25. package/api/resources/drafts/types/index.js +0 -1
  26. package/api/resources/drafts/types/index.js.map +1 -1
  27. package/api/resources/files/client/Client.d.ts.map +1 -1
  28. package/api/resources/files/client/Client.js +11 -25
  29. package/api/resources/files/client/Client.js.map +1 -1
  30. package/api/resources/gdpr/client/Client.js +1 -1
  31. package/api/resources/gdpr/client/Client.js.map +1 -1
  32. package/api/resources/keys/client/Client.d.ts.map +1 -1
  33. package/api/resources/keys/client/Client.js +13 -23
  34. package/api/resources/keys/client/Client.js.map +1 -1
  35. package/api/resources/presentations/client/Client.d.ts.map +1 -1
  36. package/api/resources/presentations/client/Client.js +14 -30
  37. package/api/resources/presentations/client/Client.js.map +1 -1
  38. package/api/types/Credential.d.ts +0 -4
  39. package/api/types/Credential.d.ts.map +1 -1
  40. package/api/types/Credential.js.map +1 -1
  41. package/api/types/CredentialFilterData.d.ts +0 -2
  42. package/api/types/CredentialFilterData.d.ts.map +1 -1
  43. package/api/types/CredentialFilterData.js.map +1 -1
  44. package/api/types/CredentialSortField.d.ts +1 -3
  45. package/api/types/CredentialSortField.d.ts.map +1 -1
  46. package/api/types/CredentialSortField.js +0 -2
  47. package/api/types/CredentialSortField.js.map +1 -1
  48. package/api/types/Draft.d.ts +0 -4
  49. package/api/types/Draft.d.ts.map +1 -1
  50. package/api/types/Draft.js.map +1 -1
  51. package/api/types/DraftFilterData.d.ts +0 -2
  52. package/api/types/DraftFilterData.d.ts.map +1 -1
  53. package/api/types/DraftFilterData.js.map +1 -1
  54. package/api/types/DraftSortField.d.ts +1 -3
  55. package/api/types/DraftSortField.d.ts.map +1 -1
  56. package/api/types/DraftSortField.js +0 -2
  57. package/api/types/DraftSortField.js.map +1 -1
  58. package/api/types/Presentation.d.ts +0 -2
  59. package/api/types/Presentation.d.ts.map +1 -1
  60. package/api/types/Presentation.js.map +1 -1
  61. package/api/types/PresentationFilterData.d.ts +0 -1
  62. package/api/types/PresentationFilterData.d.ts.map +1 -1
  63. package/api/types/PresentationFilterData.js.map +1 -1
  64. package/api/types/PresentationSortField.d.ts +1 -2
  65. package/api/types/PresentationSortField.d.ts.map +1 -1
  66. package/api/types/PresentationSortField.js +0 -1
  67. package/api/types/PresentationSortField.js.map +1 -1
  68. package/api/types/index.d.ts +0 -7
  69. package/api/types/index.d.ts.map +1 -1
  70. package/api/types/index.js +0 -7
  71. package/api/types/index.js.map +1 -1
  72. package/documents/credential/claims.js +1 -1
  73. package/documents/credential/claims.js.map +1 -1
  74. package/documents/credential/draft/draft.d.ts.map +1 -1
  75. package/documents/credential/draft/draft.js +1 -1
  76. package/documents/credential/draft/draft.js.map +1 -1
  77. package/documents/credential.d.ts.map +1 -1
  78. package/documents/credential.js +2 -2
  79. package/documents/credential.js.map +1 -1
  80. package/documents/models.d.ts +5 -2
  81. package/documents/models.d.ts.map +1 -1
  82. package/documents/models.js +4 -2
  83. package/documents/models.js.map +1 -1
  84. package/documents/presentation.d.ts +1 -0
  85. package/documents/presentation.d.ts.map +1 -1
  86. package/documents/presentation.js +6 -3
  87. package/documents/presentation.js.map +1 -1
  88. package/documents/utils/error.d.ts +2 -0
  89. package/documents/utils/error.d.ts.map +1 -1
  90. package/documents/utils/error.js +3 -1
  91. package/documents/utils/error.js.map +1 -1
  92. package/documents/utils/error.spec.js +1 -1
  93. package/documents/utils/error.spec.js.map +1 -1
  94. package/package.json +4 -3
  95. package/reference.md +0 -105
  96. package/scripts/rename-to-esm-files.js +10 -2
  97. package/serialization/resources/drafts/client/requests/index.d.ts +0 -1
  98. package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
  99. package/serialization/resources/drafts/client/requests/index.js +1 -3
  100. package/serialization/resources/drafts/client/requests/index.js.map +1 -1
  101. package/serialization/resources/drafts/types/index.d.ts +0 -1
  102. package/serialization/resources/drafts/types/index.d.ts.map +1 -1
  103. package/serialization/resources/drafts/types/index.js +0 -1
  104. package/serialization/resources/drafts/types/index.js.map +1 -1
  105. package/serialization/types/Credential.d.ts +0 -2
  106. package/serialization/types/Credential.d.ts.map +1 -1
  107. package/serialization/types/Credential.js +0 -2
  108. package/serialization/types/Credential.js.map +1 -1
  109. package/serialization/types/CredentialFilterData.d.ts +0 -4
  110. package/serialization/types/CredentialFilterData.d.ts.map +1 -1
  111. package/serialization/types/CredentialFilterData.js +0 -4
  112. package/serialization/types/CredentialFilterData.js.map +1 -1
  113. package/serialization/types/CredentialSortField.d.ts +1 -1
  114. package/serialization/types/CredentialSortField.d.ts.map +1 -1
  115. package/serialization/types/CredentialSortField.js +0 -2
  116. package/serialization/types/CredentialSortField.js.map +1 -1
  117. package/serialization/types/Draft.d.ts +0 -2
  118. package/serialization/types/Draft.d.ts.map +1 -1
  119. package/serialization/types/Draft.js +0 -2
  120. package/serialization/types/Draft.js.map +1 -1
  121. package/serialization/types/DraftFilterData.d.ts +0 -4
  122. package/serialization/types/DraftFilterData.d.ts.map +1 -1
  123. package/serialization/types/DraftFilterData.js +0 -4
  124. package/serialization/types/DraftFilterData.js.map +1 -1
  125. package/serialization/types/DraftSortField.d.ts +1 -1
  126. package/serialization/types/DraftSortField.d.ts.map +1 -1
  127. package/serialization/types/DraftSortField.js +0 -2
  128. package/serialization/types/DraftSortField.js.map +1 -1
  129. package/serialization/types/Presentation.d.ts +0 -1
  130. package/serialization/types/Presentation.d.ts.map +1 -1
  131. package/serialization/types/Presentation.js +0 -1
  132. package/serialization/types/Presentation.js.map +1 -1
  133. package/serialization/types/PresentationFilterData.d.ts +0 -2
  134. package/serialization/types/PresentationFilterData.d.ts.map +1 -1
  135. package/serialization/types/PresentationFilterData.js +0 -2
  136. package/serialization/types/PresentationFilterData.js.map +1 -1
  137. package/serialization/types/PresentationSortField.d.ts +1 -1
  138. package/serialization/types/PresentationSortField.d.ts.map +1 -1
  139. package/serialization/types/PresentationSortField.js +0 -1
  140. package/serialization/types/PresentationSortField.js.map +1 -1
  141. package/serialization/types/index.d.ts +0 -7
  142. package/serialization/types/index.d.ts.map +1 -1
  143. package/serialization/types/index.js +0 -7
  144. package/serialization/types/index.js.map +1 -1
  145. package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts +0 -44
  146. package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +0 -1
  147. package/api/resources/drafts/client/requests/DraftIssueRequest.js +0 -6
  148. package/api/resources/drafts/client/requests/DraftIssueRequest.js.map +0 -1
  149. package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +0 -12
  150. package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +0 -1
  151. package/api/resources/drafts/types/DraftIssueRequestDidMethod.js +0 -11
  152. package/api/resources/drafts/types/DraftIssueRequestDidMethod.js.map +0 -1
  153. package/api/types/CredentialFilterDataLinkedCredentials.d.ts +0 -20
  154. package/api/types/CredentialFilterDataLinkedCredentials.d.ts.map +0 -1
  155. package/api/types/CredentialFilterDataLinkedCredentials.js +0 -6
  156. package/api/types/CredentialFilterDataLinkedCredentials.js.map +0 -1
  157. package/api/types/CredentialFilterDataLinkedFiles.d.ts +0 -20
  158. package/api/types/CredentialFilterDataLinkedFiles.d.ts.map +0 -1
  159. package/api/types/CredentialFilterDataLinkedFiles.js +0 -6
  160. package/api/types/CredentialFilterDataLinkedFiles.js.map +0 -1
  161. package/api/types/DraftFilterDataLinkedCredentials.d.ts +0 -20
  162. package/api/types/DraftFilterDataLinkedCredentials.d.ts.map +0 -1
  163. package/api/types/DraftFilterDataLinkedCredentials.js +0 -6
  164. package/api/types/DraftFilterDataLinkedCredentials.js.map +0 -1
  165. package/api/types/DraftFilterDataLinkedDrafts.d.ts +0 -20
  166. package/api/types/DraftFilterDataLinkedDrafts.d.ts.map +0 -1
  167. package/api/types/DraftFilterDataLinkedDrafts.js +0 -6
  168. package/api/types/DraftFilterDataLinkedDrafts.js.map +0 -1
  169. package/api/types/NestedInUri.d.ts +0 -11
  170. package/api/types/NestedInUri.d.ts.map +0 -1
  171. package/api/types/NestedInUri.js +0 -6
  172. package/api/types/NestedInUri.js.map +0 -1
  173. package/api/types/NestedNotInUri.d.ts +0 -11
  174. package/api/types/NestedNotInUri.d.ts.map +0 -1
  175. package/api/types/NestedNotInUri.js +0 -6
  176. package/api/types/NestedNotInUri.js.map +0 -1
  177. package/api/types/PresentationFilterDataLinkedCredentials.d.ts +0 -14
  178. package/api/types/PresentationFilterDataLinkedCredentials.d.ts.map +0 -1
  179. package/api/types/PresentationFilterDataLinkedCredentials.js +0 -6
  180. package/api/types/PresentationFilterDataLinkedCredentials.js.map +0 -1
  181. package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts +0 -20
  182. package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +0 -1
  183. package/serialization/resources/drafts/client/requests/DraftIssueRequest.js +0 -51
  184. package/serialization/resources/drafts/client/requests/DraftIssueRequest.js.map +0 -1
  185. package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +0 -11
  186. package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +0 -1
  187. package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js +0 -42
  188. package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js.map +0 -1
  189. package/serialization/types/CredentialFilterDataLinkedCredentials.d.ts +0 -27
  190. package/serialization/types/CredentialFilterDataLinkedCredentials.d.ts.map +0 -1
  191. package/serialization/types/CredentialFilterDataLinkedCredentials.js +0 -56
  192. package/serialization/types/CredentialFilterDataLinkedCredentials.js.map +0 -1
  193. package/serialization/types/CredentialFilterDataLinkedFiles.d.ts +0 -27
  194. package/serialization/types/CredentialFilterDataLinkedFiles.d.ts.map +0 -1
  195. package/serialization/types/CredentialFilterDataLinkedFiles.js +0 -56
  196. package/serialization/types/CredentialFilterDataLinkedFiles.js.map +0 -1
  197. package/serialization/types/DraftFilterDataLinkedCredentials.d.ts +0 -27
  198. package/serialization/types/DraftFilterDataLinkedCredentials.d.ts.map +0 -1
  199. package/serialization/types/DraftFilterDataLinkedCredentials.js +0 -56
  200. package/serialization/types/DraftFilterDataLinkedCredentials.js.map +0 -1
  201. package/serialization/types/DraftFilterDataLinkedDrafts.d.ts +0 -27
  202. package/serialization/types/DraftFilterDataLinkedDrafts.d.ts.map +0 -1
  203. package/serialization/types/DraftFilterDataLinkedDrafts.js +0 -56
  204. package/serialization/types/DraftFilterDataLinkedDrafts.js.map +0 -1
  205. package/serialization/types/NestedInUri.d.ts +0 -13
  206. package/serialization/types/NestedInUri.d.ts.map +0 -1
  207. package/serialization/types/NestedInUri.js +0 -44
  208. package/serialization/types/NestedInUri.js.map +0 -1
  209. package/serialization/types/NestedNotInUri.d.ts +0 -13
  210. package/serialization/types/NestedNotInUri.d.ts.map +0 -1
  211. package/serialization/types/NestedNotInUri.js +0 -44
  212. package/serialization/types/NestedNotInUri.js.map +0 -1
  213. package/serialization/types/PresentationFilterDataLinkedCredentials.d.ts +0 -19
  214. package/serialization/types/PresentationFilterDataLinkedCredentials.d.ts.map +0 -1
  215. package/serialization/types/PresentationFilterDataLinkedCredentials.js +0 -52
  216. package/serialization/types/PresentationFilterDataLinkedCredentials.js.map +0 -1
@@ -109,7 +109,7 @@ class Credentials {
109
109
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
110
110
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'credentials/import'),
111
111
  method: 'POST',
112
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
113
113
  contentType: 'application/json',
114
114
  queryParameters: _queryParams,
115
115
  requestType: 'json',
@@ -233,7 +233,7 @@ class Credentials {
233
233
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
234
234
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'credentials/search'),
235
235
  method: 'POST',
236
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
236
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
237
237
  contentType: 'application/json',
238
238
  requestType: 'json',
239
239
  body: serializers.CredentialSearchRequest.jsonOrThrow(request, {
@@ -355,9 +355,7 @@ class Credentials {
355
355
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
356
356
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'credentials/upload'),
357
357
  method: 'POST',
358
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
- contentType: 'application/json',
360
- requestType: 'json',
358
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
361
359
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
362
360
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
363
361
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -462,9 +460,7 @@ class Credentials {
462
460
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
463
461
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}`),
464
462
  method: 'GET',
465
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
466
- contentType: 'application/json',
467
- requestType: 'json',
463
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
468
464
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
469
465
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
470
466
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -581,9 +577,7 @@ class Credentials {
581
577
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
582
578
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}`),
583
579
  method: 'DELETE',
584
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
585
- contentType: 'application/json',
586
- requestType: 'json',
580
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
587
581
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
588
582
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
589
583
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -710,7 +704,7 @@ class Credentials {
710
704
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
711
705
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/annotations`),
712
706
  method: 'PATCH',
713
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
707
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
714
708
  contentType: 'application/json',
715
709
  requestType: 'json',
716
710
  body: serializers.CredentialUpdateAnnotationsRequest.jsonOrThrow(_body, {
@@ -858,7 +852,7 @@ class Credentials {
858
852
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
859
853
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/labels`),
860
854
  method: 'PATCH',
861
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
855
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
862
856
  contentType: 'application/json',
863
857
  requestType: 'json',
864
858
  body: serializers.CredentialUpdateLabelsRequest.jsonOrThrow(_body, {
@@ -1002,9 +996,7 @@ class Credentials {
1002
996
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1003
997
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/restore`),
1004
998
  method: 'POST',
1005
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1006
- contentType: 'application/json',
1007
- requestType: 'json',
999
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1008
1000
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1009
1001
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1010
1002
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1130,9 +1122,7 @@ class Credentials {
1130
1122
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1131
1123
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions`),
1132
1124
  method: 'GET',
1133
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1134
- contentType: 'application/json',
1135
- requestType: 'json',
1125
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1136
1126
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1137
1127
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1138
1128
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1245,9 +1235,7 @@ class Credentials {
1245
1235
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1246
1236
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
1247
1237
  method: 'GET',
1248
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1249
- contentType: 'application/json',
1250
- requestType: 'json',
1238
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1251
1239
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1252
1240
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1253
1241
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1351,9 +1339,7 @@ class Credentials {
1351
1339
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1352
1340
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/download`),
1353
1341
  method: 'GET',
1354
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1355
- contentType: 'application/json',
1356
- requestType: 'json',
1342
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1357
1343
  responseType: 'streaming',
1358
1344
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1359
1345
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1455,9 +1441,7 @@ class Credentials {
1455
1441
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1456
1442
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/verify`),
1457
1443
  method: 'GET',
1458
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.8', 'User-Agent': '@truvity/sdk/0.36.8', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1459
- contentType: 'application/json',
1460
- requestType: 'json',
1444
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1461
1445
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1462
1446
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1463
1447
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,