@truvity/sdk 0.36.8 → 0.37.0

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 (170) hide show
  1. package/api/resources/apiKeys/client/Client.js +9 -9
  2. package/api/resources/apiKeys/client/Client.js.map +1 -1
  3. package/api/resources/credentials/client/Client.js +12 -12
  4. package/api/resources/credentials/client/Client.js.map +1 -1
  5. package/api/resources/desk/client/Client.js +2 -2
  6. package/api/resources/desk/client/Client.js.map +1 -1
  7. package/api/resources/didcommMessages/client/Client.js +9 -9
  8. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  9. package/api/resources/dids/client/Client.js +1 -1
  10. package/api/resources/dids/client/Client.js.map +1 -1
  11. package/api/resources/drafts/client/Client.js +13 -13
  12. package/api/resources/drafts/client/Client.js.map +1 -1
  13. package/api/resources/files/client/Client.js +11 -11
  14. package/api/resources/files/client/Client.js.map +1 -1
  15. package/api/resources/gdpr/client/Client.js +1 -1
  16. package/api/resources/gdpr/client/Client.js.map +1 -1
  17. package/api/resources/keys/client/Client.js +13 -13
  18. package/api/resources/keys/client/Client.js.map +1 -1
  19. package/api/resources/presentations/client/Client.js +14 -14
  20. package/api/resources/presentations/client/Client.js.map +1 -1
  21. package/api/types/Credential.d.ts +0 -4
  22. package/api/types/Credential.d.ts.map +1 -1
  23. package/api/types/Credential.js.map +1 -1
  24. package/api/types/CredentialFilterData.d.ts +0 -2
  25. package/api/types/CredentialFilterData.d.ts.map +1 -1
  26. package/api/types/CredentialFilterData.js.map +1 -1
  27. package/api/types/CredentialSortField.d.ts +1 -3
  28. package/api/types/CredentialSortField.d.ts.map +1 -1
  29. package/api/types/CredentialSortField.js +0 -2
  30. package/api/types/CredentialSortField.js.map +1 -1
  31. package/api/types/Draft.d.ts +0 -4
  32. package/api/types/Draft.d.ts.map +1 -1
  33. package/api/types/Draft.js.map +1 -1
  34. package/api/types/DraftFilterData.d.ts +0 -2
  35. package/api/types/DraftFilterData.d.ts.map +1 -1
  36. package/api/types/DraftFilterData.js.map +1 -1
  37. package/api/types/DraftSortField.d.ts +1 -3
  38. package/api/types/DraftSortField.d.ts.map +1 -1
  39. package/api/types/DraftSortField.js +0 -2
  40. package/api/types/DraftSortField.js.map +1 -1
  41. package/api/types/Presentation.d.ts +0 -2
  42. package/api/types/Presentation.d.ts.map +1 -1
  43. package/api/types/Presentation.js.map +1 -1
  44. package/api/types/PresentationFilterData.d.ts +0 -1
  45. package/api/types/PresentationFilterData.d.ts.map +1 -1
  46. package/api/types/PresentationFilterData.js.map +1 -1
  47. package/api/types/PresentationSortField.d.ts +1 -2
  48. package/api/types/PresentationSortField.d.ts.map +1 -1
  49. package/api/types/PresentationSortField.js +0 -1
  50. package/api/types/PresentationSortField.js.map +1 -1
  51. package/api/types/index.d.ts +0 -7
  52. package/api/types/index.d.ts.map +1 -1
  53. package/api/types/index.js +0 -7
  54. package/api/types/index.js.map +1 -1
  55. package/documents/credential/claims.js +1 -1
  56. package/documents/credential/claims.js.map +1 -1
  57. package/documents/credential.d.ts.map +1 -1
  58. package/documents/credential.js +2 -2
  59. package/documents/credential.js.map +1 -1
  60. package/documents/models.d.ts +5 -2
  61. package/documents/models.d.ts.map +1 -1
  62. package/documents/models.js +4 -2
  63. package/documents/models.js.map +1 -1
  64. package/documents/presentation.d.ts +1 -0
  65. package/documents/presentation.d.ts.map +1 -1
  66. package/documents/presentation.js +6 -3
  67. package/documents/presentation.js.map +1 -1
  68. package/documents/utils/error.d.ts +2 -0
  69. package/documents/utils/error.d.ts.map +1 -1
  70. package/documents/utils/error.js +3 -1
  71. package/documents/utils/error.js.map +1 -1
  72. package/documents/utils/error.spec.js +1 -1
  73. package/documents/utils/error.spec.js.map +1 -1
  74. package/package.json +1 -1
  75. package/serialization/types/Credential.d.ts +0 -2
  76. package/serialization/types/Credential.d.ts.map +1 -1
  77. package/serialization/types/Credential.js +0 -2
  78. package/serialization/types/Credential.js.map +1 -1
  79. package/serialization/types/CredentialFilterData.d.ts +0 -4
  80. package/serialization/types/CredentialFilterData.d.ts.map +1 -1
  81. package/serialization/types/CredentialFilterData.js +0 -4
  82. package/serialization/types/CredentialFilterData.js.map +1 -1
  83. package/serialization/types/CredentialSortField.d.ts +1 -1
  84. package/serialization/types/CredentialSortField.d.ts.map +1 -1
  85. package/serialization/types/CredentialSortField.js +0 -2
  86. package/serialization/types/CredentialSortField.js.map +1 -1
  87. package/serialization/types/Draft.d.ts +0 -2
  88. package/serialization/types/Draft.d.ts.map +1 -1
  89. package/serialization/types/Draft.js +0 -2
  90. package/serialization/types/Draft.js.map +1 -1
  91. package/serialization/types/DraftFilterData.d.ts +0 -4
  92. package/serialization/types/DraftFilterData.d.ts.map +1 -1
  93. package/serialization/types/DraftFilterData.js +0 -4
  94. package/serialization/types/DraftFilterData.js.map +1 -1
  95. package/serialization/types/DraftSortField.d.ts +1 -1
  96. package/serialization/types/DraftSortField.d.ts.map +1 -1
  97. package/serialization/types/DraftSortField.js +0 -2
  98. package/serialization/types/DraftSortField.js.map +1 -1
  99. package/serialization/types/Presentation.d.ts +0 -1
  100. package/serialization/types/Presentation.d.ts.map +1 -1
  101. package/serialization/types/Presentation.js +0 -1
  102. package/serialization/types/Presentation.js.map +1 -1
  103. package/serialization/types/PresentationFilterData.d.ts +0 -2
  104. package/serialization/types/PresentationFilterData.d.ts.map +1 -1
  105. package/serialization/types/PresentationFilterData.js +0 -2
  106. package/serialization/types/PresentationFilterData.js.map +1 -1
  107. package/serialization/types/PresentationSortField.d.ts +1 -1
  108. package/serialization/types/PresentationSortField.d.ts.map +1 -1
  109. package/serialization/types/PresentationSortField.js +0 -1
  110. package/serialization/types/PresentationSortField.js.map +1 -1
  111. package/serialization/types/index.d.ts +0 -7
  112. package/serialization/types/index.d.ts.map +1 -1
  113. package/serialization/types/index.js +0 -7
  114. package/serialization/types/index.js.map +1 -1
  115. package/api/types/CredentialFilterDataLinkedCredentials.d.ts +0 -20
  116. package/api/types/CredentialFilterDataLinkedCredentials.d.ts.map +0 -1
  117. package/api/types/CredentialFilterDataLinkedCredentials.js +0 -6
  118. package/api/types/CredentialFilterDataLinkedCredentials.js.map +0 -1
  119. package/api/types/CredentialFilterDataLinkedFiles.d.ts +0 -20
  120. package/api/types/CredentialFilterDataLinkedFiles.d.ts.map +0 -1
  121. package/api/types/CredentialFilterDataLinkedFiles.js +0 -6
  122. package/api/types/CredentialFilterDataLinkedFiles.js.map +0 -1
  123. package/api/types/DraftFilterDataLinkedCredentials.d.ts +0 -20
  124. package/api/types/DraftFilterDataLinkedCredentials.d.ts.map +0 -1
  125. package/api/types/DraftFilterDataLinkedCredentials.js +0 -6
  126. package/api/types/DraftFilterDataLinkedCredentials.js.map +0 -1
  127. package/api/types/DraftFilterDataLinkedDrafts.d.ts +0 -20
  128. package/api/types/DraftFilterDataLinkedDrafts.d.ts.map +0 -1
  129. package/api/types/DraftFilterDataLinkedDrafts.js +0 -6
  130. package/api/types/DraftFilterDataLinkedDrafts.js.map +0 -1
  131. package/api/types/NestedInUri.d.ts +0 -11
  132. package/api/types/NestedInUri.d.ts.map +0 -1
  133. package/api/types/NestedInUri.js +0 -6
  134. package/api/types/NestedInUri.js.map +0 -1
  135. package/api/types/NestedNotInUri.d.ts +0 -11
  136. package/api/types/NestedNotInUri.d.ts.map +0 -1
  137. package/api/types/NestedNotInUri.js +0 -6
  138. package/api/types/NestedNotInUri.js.map +0 -1
  139. package/api/types/PresentationFilterDataLinkedCredentials.d.ts +0 -14
  140. package/api/types/PresentationFilterDataLinkedCredentials.d.ts.map +0 -1
  141. package/api/types/PresentationFilterDataLinkedCredentials.js +0 -6
  142. package/api/types/PresentationFilterDataLinkedCredentials.js.map +0 -1
  143. package/serialization/types/CredentialFilterDataLinkedCredentials.d.ts +0 -27
  144. package/serialization/types/CredentialFilterDataLinkedCredentials.d.ts.map +0 -1
  145. package/serialization/types/CredentialFilterDataLinkedCredentials.js +0 -56
  146. package/serialization/types/CredentialFilterDataLinkedCredentials.js.map +0 -1
  147. package/serialization/types/CredentialFilterDataLinkedFiles.d.ts +0 -27
  148. package/serialization/types/CredentialFilterDataLinkedFiles.d.ts.map +0 -1
  149. package/serialization/types/CredentialFilterDataLinkedFiles.js +0 -56
  150. package/serialization/types/CredentialFilterDataLinkedFiles.js.map +0 -1
  151. package/serialization/types/DraftFilterDataLinkedCredentials.d.ts +0 -27
  152. package/serialization/types/DraftFilterDataLinkedCredentials.d.ts.map +0 -1
  153. package/serialization/types/DraftFilterDataLinkedCredentials.js +0 -56
  154. package/serialization/types/DraftFilterDataLinkedCredentials.js.map +0 -1
  155. package/serialization/types/DraftFilterDataLinkedDrafts.d.ts +0 -27
  156. package/serialization/types/DraftFilterDataLinkedDrafts.d.ts.map +0 -1
  157. package/serialization/types/DraftFilterDataLinkedDrafts.js +0 -56
  158. package/serialization/types/DraftFilterDataLinkedDrafts.js.map +0 -1
  159. package/serialization/types/NestedInUri.d.ts +0 -13
  160. package/serialization/types/NestedInUri.d.ts.map +0 -1
  161. package/serialization/types/NestedInUri.js +0 -44
  162. package/serialization/types/NestedInUri.js.map +0 -1
  163. package/serialization/types/NestedNotInUri.d.ts +0 -13
  164. package/serialization/types/NestedNotInUri.d.ts.map +0 -1
  165. package/serialization/types/NestedNotInUri.js +0 -44
  166. package/serialization/types/NestedNotInUri.js.map +0 -1
  167. package/serialization/types/PresentationFilterDataLinkedCredentials.d.ts +0 -19
  168. package/serialization/types/PresentationFilterDataLinkedCredentials.d.ts.map +0 -1
  169. package/serialization/types/PresentationFilterDataLinkedCredentials.js +0 -52
  170. 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.0', 'User-Agent': '@truvity/sdk/0.37.0', '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.0', 'User-Agent': '@truvity/sdk/0.37.0', '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,7 +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),
358
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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
359
  contentType: 'application/json',
360
360
  requestType: 'json',
361
361
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -462,7 +462,7 @@ class Credentials {
462
462
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
463
463
  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
464
  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),
465
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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
466
  contentType: 'application/json',
467
467
  requestType: 'json',
468
468
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -581,7 +581,7 @@ class Credentials {
581
581
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
582
582
  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
583
  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),
584
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
585
585
  contentType: 'application/json',
586
586
  requestType: 'json',
587
587
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -710,7 +710,7 @@ class Credentials {
710
710
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
711
711
  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
712
  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),
713
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
714
714
  contentType: 'application/json',
715
715
  requestType: 'json',
716
716
  body: serializers.CredentialUpdateAnnotationsRequest.jsonOrThrow(_body, {
@@ -858,7 +858,7 @@ class Credentials {
858
858
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
859
859
  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
860
  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),
861
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
862
862
  contentType: 'application/json',
863
863
  requestType: 'json',
864
864
  body: serializers.CredentialUpdateLabelsRequest.jsonOrThrow(_body, {
@@ -1002,7 +1002,7 @@ class Credentials {
1002
1002
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1003
1003
  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
1004
  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),
1005
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1006
1006
  contentType: 'application/json',
1007
1007
  requestType: 'json',
1008
1008
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1130,7 +1130,7 @@ class Credentials {
1130
1130
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1131
1131
  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
1132
  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),
1133
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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
1134
  contentType: 'application/json',
1135
1135
  requestType: 'json',
1136
1136
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1245,7 +1245,7 @@ class Credentials {
1245
1245
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1246
1246
  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
1247
  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),
1248
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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
1249
  contentType: 'application/json',
1250
1250
  requestType: 'json',
1251
1251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1351,7 +1351,7 @@ class Credentials {
1351
1351
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1352
1352
  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
1353
  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),
1354
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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
1355
  contentType: 'application/json',
1356
1356
  requestType: 'json',
1357
1357
  responseType: 'streaming',
@@ -1455,7 +1455,7 @@ class Credentials {
1455
1455
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1456
1456
  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
1457
  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),
1458
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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
1459
  contentType: 'application/json',
1460
1460
  requestType: 'json',
1461
1461
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,