@truvity/sdk 0.35.1 → 0.36.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 (116) 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/credentials/client/requests/CredentialInput.d.ts +1 -2
  6. package/api/resources/credentials/client/requests/CredentialInput.d.ts.map +1 -1
  7. package/api/resources/credentials/client/requests/CredentialInput.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.js +9 -9
  11. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  12. package/api/resources/dids/client/Client.js +1 -1
  13. package/api/resources/dids/client/Client.js.map +1 -1
  14. package/api/resources/drafts/client/Client.d.ts +49 -11
  15. package/api/resources/drafts/client/Client.d.ts.map +1 -1
  16. package/api/resources/drafts/client/Client.js +61 -23
  17. package/api/resources/drafts/client/Client.js.map +1 -1
  18. package/api/resources/files/client/Client.js +11 -11
  19. package/api/resources/files/client/Client.js.map +1 -1
  20. package/api/resources/files/client/requests/FileInput.d.ts +1 -2
  21. package/api/resources/files/client/requests/FileInput.d.ts.map +1 -1
  22. package/api/resources/files/client/requests/FileInput.js.map +1 -1
  23. package/api/resources/gdpr/client/Client.js +1 -1
  24. package/api/resources/gdpr/client/Client.js.map +1 -1
  25. package/api/resources/keys/client/Client.js +13 -13
  26. package/api/resources/keys/client/Client.js.map +1 -1
  27. package/api/resources/presentations/client/Client.js +14 -14
  28. package/api/resources/presentations/client/Client.js.map +1 -1
  29. package/api/resources/presentations/client/requests/PresentationInput.d.ts +1 -2
  30. package/api/resources/presentations/client/requests/PresentationInput.d.ts.map +1 -1
  31. package/api/resources/presentations/client/requests/PresentationInput.js.map +1 -1
  32. package/api/types/Credential.d.ts +4 -0
  33. package/api/types/Credential.d.ts.map +1 -1
  34. package/api/types/Credential.js.map +1 -1
  35. package/api/types/CredentialFilter.d.ts +4 -1
  36. package/api/types/CredentialFilter.d.ts.map +1 -1
  37. package/api/types/CredentialFilter.js.map +1 -1
  38. package/api/types/Draft.d.ts +4 -0
  39. package/api/types/Draft.d.ts.map +1 -1
  40. package/api/types/Draft.js.map +1 -1
  41. package/api/types/DraftFilter.d.ts +4 -1
  42. package/api/types/DraftFilter.d.ts.map +1 -1
  43. package/api/types/DraftFilter.js.map +1 -1
  44. package/api/types/LinkedRef.d.ts +22 -0
  45. package/api/types/LinkedRef.d.ts.map +1 -0
  46. package/api/types/LinkedRef.js +6 -0
  47. package/api/types/LinkedRef.js.map +1 -0
  48. package/api/types/LinkedResourceRef.d.ts +14 -0
  49. package/api/types/LinkedResourceRef.d.ts.map +1 -0
  50. package/api/types/LinkedResourceRef.js +6 -0
  51. package/api/types/LinkedResourceRef.js.map +1 -0
  52. package/api/types/Presentation.d.ts +3 -0
  53. package/api/types/Presentation.d.ts.map +1 -1
  54. package/api/types/Presentation.js.map +1 -1
  55. package/api/types/PresentationFilter.d.ts +3 -1
  56. package/api/types/PresentationFilter.d.ts.map +1 -1
  57. package/api/types/PresentationFilter.js.map +1 -1
  58. package/api/types/UploadResponse.d.ts +1 -4
  59. package/api/types/UploadResponse.d.ts.map +1 -1
  60. package/api/types/UploadResponse.js.map +1 -1
  61. package/api/types/index.d.ts +2 -0
  62. package/api/types/index.d.ts.map +1 -1
  63. package/api/types/index.js +2 -0
  64. package/api/types/index.js.map +1 -1
  65. package/documents/credential/claims.d.ts.map +1 -1
  66. package/documents/credential/claims.js +10 -9
  67. package/documents/credential/claims.js.map +1 -1
  68. package/documents/credential.d.ts.map +1 -1
  69. package/documents/credential.js +3 -2
  70. package/documents/credential.js.map +1 -1
  71. package/documents/utils/error.d.ts +9 -0
  72. package/documents/utils/error.d.ts.map +1 -0
  73. package/documents/utils/error.js +14 -0
  74. package/documents/utils/error.js.map +1 -0
  75. package/documents/utils/error.spec.d.ts +2 -0
  76. package/documents/utils/error.spec.d.ts.map +1 -0
  77. package/documents/utils/error.spec.js +9 -0
  78. package/documents/utils/error.spec.js.map +1 -0
  79. package/package.json +1 -1
  80. package/reference.md +48 -10
  81. package/serialization/types/Credential.d.ts +3 -0
  82. package/serialization/types/Credential.d.ts.map +1 -1
  83. package/serialization/types/Credential.js +3 -0
  84. package/serialization/types/Credential.js.map +1 -1
  85. package/serialization/types/CredentialFilter.d.ts +5 -1
  86. package/serialization/types/CredentialFilter.d.ts.map +1 -1
  87. package/serialization/types/CredentialFilter.js +41 -1
  88. package/serialization/types/CredentialFilter.js.map +1 -1
  89. package/serialization/types/Draft.d.ts +4 -0
  90. package/serialization/types/Draft.d.ts.map +1 -1
  91. package/serialization/types/Draft.js +4 -0
  92. package/serialization/types/Draft.js.map +1 -1
  93. package/serialization/types/DraftFilter.d.ts +5 -1
  94. package/serialization/types/DraftFilter.d.ts.map +1 -1
  95. package/serialization/types/DraftFilter.js +41 -1
  96. package/serialization/types/DraftFilter.js.map +1 -1
  97. package/serialization/types/LinkedRef.d.ts +15 -0
  98. package/serialization/types/LinkedRef.d.ts.map +1 -0
  99. package/serialization/types/LinkedRef.js +46 -0
  100. package/serialization/types/LinkedRef.js.map +1 -0
  101. package/serialization/types/LinkedResourceRef.d.ts +13 -0
  102. package/serialization/types/LinkedResourceRef.d.ts.map +1 -0
  103. package/serialization/types/LinkedResourceRef.js +44 -0
  104. package/serialization/types/LinkedResourceRef.js.map +1 -0
  105. package/serialization/types/Presentation.d.ts +2 -0
  106. package/serialization/types/Presentation.d.ts.map +1 -1
  107. package/serialization/types/Presentation.js +2 -0
  108. package/serialization/types/Presentation.js.map +1 -1
  109. package/serialization/types/PresentationFilter.d.ts +4 -1
  110. package/serialization/types/PresentationFilter.d.ts.map +1 -1
  111. package/serialization/types/PresentationFilter.js +40 -1
  112. package/serialization/types/PresentationFilter.js.map +1 -1
  113. package/serialization/types/index.d.ts +2 -0
  114. package/serialization/types/index.d.ts.map +1 -1
  115. package/serialization/types/index.js +2 -0
  116. package/serialization/types/index.js.map +1 -1
@@ -90,7 +90,7 @@ class Presentations {
90
90
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
91
91
  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, 'presentations/export'),
92
92
  method: 'POST',
93
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
93
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
94
94
  contentType: 'application/json',
95
95
  requestType: 'json',
96
96
  body: Object.assign(Object.assign({}, serializers.PresentationExport.jsonOrThrow(request, {
@@ -200,7 +200,7 @@ class Presentations {
200
200
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
201
201
  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, 'presentations/import'),
202
202
  method: 'POST',
203
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
203
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
204
204
  contentType: 'application/json',
205
205
  queryParameters: _queryParams,
206
206
  requestType: 'json',
@@ -330,7 +330,7 @@ class Presentations {
330
330
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
331
331
  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, 'presentations/issue'),
332
332
  method: 'POST',
333
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
333
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
334
334
  contentType: 'application/json',
335
335
  requestType: 'json',
336
336
  body: Object.assign(Object.assign({}, serializers.PresentationIssue.jsonOrThrow(request, {
@@ -446,7 +446,7 @@ class Presentations {
446
446
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
447
447
  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, 'presentations/search'),
448
448
  method: 'POST',
449
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
449
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
450
450
  contentType: 'application/json',
451
451
  requestType: 'json',
452
452
  body: serializers.PresentationSearchRequest.jsonOrThrow(request, {
@@ -568,7 +568,7 @@ class Presentations {
568
568
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
569
569
  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, 'presentations/upload'),
570
570
  method: 'POST',
571
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
571
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
572
572
  contentType: 'application/json',
573
573
  requestType: 'json',
574
574
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -675,7 +675,7 @@ class Presentations {
675
675
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
676
676
  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, `presentations/${encodeURIComponent(id)}`),
677
677
  method: 'GET',
678
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
678
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
679
679
  contentType: 'application/json',
680
680
  requestType: 'json',
681
681
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -794,7 +794,7 @@ class Presentations {
794
794
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
795
795
  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, `presentations/${encodeURIComponent(id)}`),
796
796
  method: 'DELETE',
797
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
797
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
798
798
  contentType: 'application/json',
799
799
  requestType: 'json',
800
800
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -923,7 +923,7 @@ class Presentations {
923
923
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
924
924
  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, `presentations/${encodeURIComponent(id)}/annotations`),
925
925
  method: 'PATCH',
926
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
926
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
927
927
  contentType: 'application/json',
928
928
  requestType: 'json',
929
929
  body: serializers.PresentationUpdateAnnotationsInput.jsonOrThrow(_body, {
@@ -1071,7 +1071,7 @@ class Presentations {
1071
1071
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1072
1072
  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, `presentations/${encodeURIComponent(id)}/labels`),
1073
1073
  method: 'PATCH',
1074
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
1074
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
1075
1075
  contentType: 'application/json',
1076
1076
  requestType: 'json',
1077
1077
  body: serializers.PresentationUpdateLabelsInput.jsonOrThrow(_body, {
@@ -1215,7 +1215,7 @@ class Presentations {
1215
1215
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1216
1216
  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, `presentations/${encodeURIComponent(id)}/restore`),
1217
1217
  method: 'POST',
1218
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
1218
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
1219
1219
  contentType: 'application/json',
1220
1220
  requestType: 'json',
1221
1221
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1343,7 +1343,7 @@ class Presentations {
1343
1343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1344
1344
  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, `presentations/${encodeURIComponent(id)}/revisions`),
1345
1345
  method: 'GET',
1346
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
1346
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
1347
1347
  contentType: 'application/json',
1348
1348
  requestType: 'json',
1349
1349
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1458,7 +1458,7 @@ class Presentations {
1458
1458
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1459
1459
  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, `presentations/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
1460
1460
  method: 'GET',
1461
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
1461
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
1462
1462
  contentType: 'application/json',
1463
1463
  requestType: 'json',
1464
1464
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1564,7 +1564,7 @@ class Presentations {
1564
1564
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1565
1565
  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, `presentations/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/download`),
1566
1566
  method: 'GET',
1567
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
1567
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
1568
1568
  contentType: 'application/json',
1569
1569
  requestType: 'json',
1570
1570
  responseType: 'streaming',
@@ -1668,7 +1668,7 @@ class Presentations {
1668
1668
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1669
1669
  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, `presentations/${encodeURIComponent(id)}/verify`),
1670
1670
  method: 'GET',
1671
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.35.1', 'User-Agent': '@truvity/sdk/0.35.1', '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),
1671
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
1672
1672
  contentType: 'application/json',
1673
1673
  requestType: 'json',
1674
1674
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,