@truvity/sdk 0.28.3 → 0.28.4

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 (179) hide show
  1. package/api/resources/apiKeys/client/Client.d.ts +1 -0
  2. package/api/resources/apiKeys/client/Client.d.ts.map +1 -1
  3. package/api/resources/apiKeys/client/Client.js +16 -8
  4. package/api/resources/apiKeys/client/Client.js.map +1 -1
  5. package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts +8 -8
  6. package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js.map +1 -1
  7. package/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.d.ts +8 -8
  8. package/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.js.map +1 -1
  9. package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.d.ts +8 -8
  10. package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.js.map +1 -1
  11. package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts +8 -8
  12. package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js.map +1 -1
  13. package/api/resources/credentials/client/Client.d.ts +2 -0
  14. package/api/resources/credentials/client/Client.d.ts.map +1 -1
  15. package/api/resources/credentials/client/Client.js +26 -10
  16. package/api/resources/credentials/client/Client.js.map +1 -1
  17. package/api/resources/credentials/client/requests/CredentialDeleteRequest.d.ts +8 -8
  18. package/api/resources/credentials/client/requests/CredentialDeleteRequest.js.map +1 -1
  19. package/api/resources/credentials/client/requests/CredentialInput.d.ts +8 -8
  20. package/api/resources/credentials/client/requests/CredentialInput.js.map +1 -1
  21. package/api/resources/credentials/client/requests/CredentialRestoreRequest.d.ts +8 -8
  22. package/api/resources/credentials/client/requests/CredentialRestoreRequest.js.map +1 -1
  23. package/api/resources/credentials/client/requests/CredentialUploadRequest.d.ts +8 -8
  24. package/api/resources/credentials/client/requests/CredentialUploadRequest.js.map +1 -1
  25. package/api/resources/desk/client/Client.js +2 -2
  26. package/api/resources/desk/client/Client.js.map +1 -1
  27. package/api/resources/didcommMessages/client/Client.d.ts +3 -0
  28. package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
  29. package/api/resources/didcommMessages/client/Client.js +31 -7
  30. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  31. package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts +8 -8
  32. package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.js.map +1 -1
  33. package/api/resources/didcommMessages/client/requests/DidcommMessageDeleteRequest.d.ts +8 -8
  34. package/api/resources/didcommMessages/client/requests/DidcommMessageDeleteRequest.js.map +1 -1
  35. package/api/resources/didcommMessages/client/requests/DidcommMessageRestoreRequest.d.ts +8 -8
  36. package/api/resources/didcommMessages/client/requests/DidcommMessageRestoreRequest.js.map +1 -1
  37. package/api/resources/dids/client/Client.js +1 -1
  38. package/api/resources/dids/client/Client.js.map +1 -1
  39. package/api/resources/drafts/client/Client.d.ts +2 -0
  40. package/api/resources/drafts/client/Client.d.ts.map +1 -1
  41. package/api/resources/drafts/client/Client.js +26 -10
  42. package/api/resources/drafts/client/Client.js.map +1 -1
  43. package/api/resources/drafts/client/requests/DraftCreateRequest.d.ts +8 -8
  44. package/api/resources/drafts/client/requests/DraftCreateRequest.js.map +1 -1
  45. package/api/resources/drafts/client/requests/DraftDeleteRequest.d.ts +8 -8
  46. package/api/resources/drafts/client/requests/DraftDeleteRequest.js.map +1 -1
  47. package/api/resources/drafts/client/requests/DraftRestoreRequest.d.ts +8 -8
  48. package/api/resources/drafts/client/requests/DraftRestoreRequest.js.map +1 -1
  49. package/api/resources/drafts/client/requests/DraftUpdateRequest.d.ts +8 -8
  50. package/api/resources/drafts/client/requests/DraftUpdateRequest.js.map +1 -1
  51. package/api/resources/files/client/Client.d.ts +2 -0
  52. package/api/resources/files/client/Client.d.ts.map +1 -1
  53. package/api/resources/files/client/Client.js +26 -10
  54. package/api/resources/files/client/Client.js.map +1 -1
  55. package/api/resources/files/client/requests/FileCreateRequest.d.ts +8 -8
  56. package/api/resources/files/client/requests/FileCreateRequest.js.map +1 -1
  57. package/api/resources/files/client/requests/FileDeleteRequest.d.ts +8 -8
  58. package/api/resources/files/client/requests/FileDeleteRequest.js.map +1 -1
  59. package/api/resources/files/client/requests/FileRestoreRequest.d.ts +8 -8
  60. package/api/resources/files/client/requests/FileRestoreRequest.js.map +1 -1
  61. package/api/resources/files/client/requests/FileUpdateRequest.d.ts +8 -8
  62. package/api/resources/files/client/requests/FileUpdateRequest.js.map +1 -1
  63. package/api/resources/files/client/requests/FileUploadRequest.d.ts +8 -8
  64. package/api/resources/files/client/requests/FileUploadRequest.js.map +1 -1
  65. package/api/resources/gdpr/client/Client.js +1 -1
  66. package/api/resources/gdpr/client/Client.js.map +1 -1
  67. package/api/resources/keys/client/Client.d.ts +4 -4
  68. package/api/resources/keys/client/Client.d.ts.map +1 -1
  69. package/api/resources/keys/client/Client.js +44 -16
  70. package/api/resources/keys/client/Client.js.map +1 -1
  71. package/api/resources/keys/client/requests/KeyDeleteRequest.d.ts +8 -8
  72. package/api/resources/keys/client/requests/KeyDeleteRequest.js.map +1 -1
  73. package/api/resources/keys/client/requests/KeyGenerateInput.d.ts +8 -8
  74. package/api/resources/keys/client/requests/KeyGenerateInput.js.map +1 -1
  75. package/api/resources/keys/client/requests/KeyImportSecretInput.d.ts +8 -8
  76. package/api/resources/keys/client/requests/KeyImportSecretInput.js.map +1 -1
  77. package/api/resources/keys/client/requests/KeyInput.d.ts +8 -8
  78. package/api/resources/keys/client/requests/KeyInput.js.map +1 -1
  79. package/api/resources/keys/client/requests/KeyRestoreRequest.d.ts +8 -8
  80. package/api/resources/keys/client/requests/KeyRestoreRequest.js.map +1 -1
  81. package/api/resources/presentations/client/Client.d.ts +3 -0
  82. package/api/resources/presentations/client/Client.d.ts.map +1 -1
  83. package/api/resources/presentations/client/Client.js +36 -12
  84. package/api/resources/presentations/client/Client.js.map +1 -1
  85. package/api/resources/presentations/client/requests/PresentationDeleteRequest.d.ts +8 -8
  86. package/api/resources/presentations/client/requests/PresentationDeleteRequest.js.map +1 -1
  87. package/api/resources/presentations/client/requests/PresentationInput.d.ts +8 -8
  88. package/api/resources/presentations/client/requests/PresentationInput.js.map +1 -1
  89. package/api/resources/presentations/client/requests/PresentationRestoreRequest.d.ts +8 -8
  90. package/api/resources/presentations/client/requests/PresentationRestoreRequest.js.map +1 -1
  91. package/api/resources/presentations/client/requests/PresentationUploadRequest.d.ts +8 -8
  92. package/api/resources/presentations/client/requests/PresentationUploadRequest.js.map +1 -1
  93. package/api/types/DraftSchema.d.ts +17 -16
  94. package/api/types/DraftSchema.d.ts.map +1 -1
  95. package/api/types/DraftSchema.js.map +1 -1
  96. package/api/types/EqualKeyTypeValue.d.ts +1 -2
  97. package/api/types/EqualKeyTypeValue.d.ts.map +1 -1
  98. package/api/types/EqualKeyTypeValue.js +0 -1
  99. package/api/types/EqualKeyTypeValue.js.map +1 -1
  100. package/api/types/InKeyTypeValuesItem.d.ts +6 -8
  101. package/api/types/InKeyTypeValuesItem.d.ts.map +1 -1
  102. package/api/types/InKeyTypeValuesItem.js +0 -1
  103. package/api/types/InKeyTypeValuesItem.js.map +1 -1
  104. package/api/types/KeyGenerate.d.ts +5 -6
  105. package/api/types/KeyGenerate.d.ts.map +1 -1
  106. package/api/types/KeyGenerate.js.map +1 -1
  107. package/api/types/KeyGenerateType.d.ts +6 -8
  108. package/api/types/KeyGenerateType.d.ts.map +1 -1
  109. package/api/types/KeyGenerateType.js +0 -1
  110. package/api/types/KeyGenerateType.js.map +1 -1
  111. package/api/types/KeyPublic.d.ts +5 -6
  112. package/api/types/KeyPublic.d.ts.map +1 -1
  113. package/api/types/KeyPublic.js.map +1 -1
  114. package/api/types/KeyPublicType.d.ts +6 -8
  115. package/api/types/KeyPublicType.d.ts.map +1 -1
  116. package/api/types/KeyPublicType.js +0 -1
  117. package/api/types/KeyPublicType.js.map +1 -1
  118. package/api/types/NotEqualKeyTypeValue.d.ts +1 -2
  119. package/api/types/NotEqualKeyTypeValue.d.ts.map +1 -1
  120. package/api/types/NotEqualKeyTypeValue.js +0 -1
  121. package/api/types/NotEqualKeyTypeValue.js.map +1 -1
  122. package/api/types/NotInKeyTypeValuesItem.d.ts +6 -8
  123. package/api/types/NotInKeyTypeValuesItem.d.ts.map +1 -1
  124. package/api/types/NotInKeyTypeValuesItem.js +0 -1
  125. package/api/types/NotInKeyTypeValuesItem.js.map +1 -1
  126. package/api/types/ProblemMethodNotAllowedAlive.d.ts +1 -1
  127. package/api/types/ProblemMethodNotAllowedAlive.js.map +1 -1
  128. package/api/types/ProblemMethodNotAllowedDeleted.d.ts +1 -1
  129. package/api/types/ProblemMethodNotAllowedDeleted.js.map +1 -1
  130. package/api/types/ProblemPreconditionFailedBlob.d.ts +1 -1
  131. package/api/types/ProblemPreconditionFailedBlob.js.map +1 -1
  132. package/api/types/ProblemResourceNotFound.d.ts +1 -1
  133. package/api/types/ProblemResourceNotFound.js.map +1 -1
  134. package/documents/credential/flavor.d.ts.map +1 -1
  135. package/documents/credential/flavor.js +1 -0
  136. package/documents/credential/flavor.js.map +1 -1
  137. package/documents/credential/flavor.spec.js +2 -0
  138. package/documents/credential/flavor.spec.js.map +1 -1
  139. package/documents/credential/unknown.d.ts +4 -0
  140. package/documents/credential/unknown.d.ts.map +1 -1
  141. package/documents/credential/unknown.js +8 -0
  142. package/documents/credential/unknown.js.map +1 -1
  143. package/documents/credential.d.ts +4 -0
  144. package/documents/credential.d.ts.map +1 -1
  145. package/documents/credential.js +8 -0
  146. package/documents/credential.js.map +1 -1
  147. package/documents/presentation.d.ts +4 -0
  148. package/documents/presentation.d.ts.map +1 -1
  149. package/documents/presentation.js +8 -0
  150. package/documents/presentation.js.map +1 -1
  151. package/documents/types.d.ts +1 -0
  152. package/documents/types.d.ts.map +1 -1
  153. package/documents/types.js.map +1 -1
  154. package/package.json +1 -1
  155. package/reference.md +0 -4
  156. package/serialization/types/EqualKeyTypeValue.d.ts +1 -1
  157. package/serialization/types/EqualKeyTypeValue.d.ts.map +1 -1
  158. package/serialization/types/EqualKeyTypeValue.js +1 -1
  159. package/serialization/types/EqualKeyTypeValue.js.map +1 -1
  160. package/serialization/types/InKeyTypeValuesItem.d.ts +1 -1
  161. package/serialization/types/InKeyTypeValuesItem.d.ts.map +1 -1
  162. package/serialization/types/InKeyTypeValuesItem.js +1 -1
  163. package/serialization/types/InKeyTypeValuesItem.js.map +1 -1
  164. package/serialization/types/KeyGenerateType.d.ts +1 -1
  165. package/serialization/types/KeyGenerateType.d.ts.map +1 -1
  166. package/serialization/types/KeyGenerateType.js +1 -1
  167. package/serialization/types/KeyGenerateType.js.map +1 -1
  168. package/serialization/types/KeyPublicType.d.ts +1 -1
  169. package/serialization/types/KeyPublicType.d.ts.map +1 -1
  170. package/serialization/types/KeyPublicType.js +1 -1
  171. package/serialization/types/KeyPublicType.js.map +1 -1
  172. package/serialization/types/NotEqualKeyTypeValue.d.ts +1 -1
  173. package/serialization/types/NotEqualKeyTypeValue.d.ts.map +1 -1
  174. package/serialization/types/NotEqualKeyTypeValue.js +1 -1
  175. package/serialization/types/NotEqualKeyTypeValue.js.map +1 -1
  176. package/serialization/types/NotInKeyTypeValuesItem.d.ts +1 -1
  177. package/serialization/types/NotInKeyTypeValuesItem.d.ts.map +1 -1
  178. package/serialization/types/NotInKeyTypeValuesItem.js +1 -1
  179. package/serialization/types/NotInKeyTypeValuesItem.js.map +1 -1
@@ -138,6 +138,7 @@ export declare class ApiKeys {
138
138
  * @throws {@link Truvity.BadRequestError}
139
139
  * @throws {@link Truvity.UnauthorizedError}
140
140
  * @throws {@link Truvity.ForbiddenError}
141
+ * @throws {@link Truvity.NotFoundError}
141
142
  * @throws {@link Truvity.MethodNotAllowedError}
142
143
  * @throws {@link Truvity.PreconditionFailedError}
143
144
  * @throws {@link Truvity.TooManyRequestsError}
@@ -1 +1 @@
1
- {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/apiKe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GlC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACU,YAAY,CACrB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,CAAC,mBAAmB,EACpC,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,OAAO,CAAC,IAAI,CAAC;IA6HhB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACU,YAAY,CACrB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,CAAC,mBAAmB,EACpC,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC;IA4IlC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACU,aAAa,CACtB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,CAAC,oBAAoB,EACrC,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC;IAkIlC;;;;;;;;;;;;;;;;OAgBG;IACU,aAAa,CACtB,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,OAAO,CAAC,oBAAyB,EAC1C,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;IA+G9B;;;;;;;;;;;;;;;;;OAiBG;IACU,cAAc,CACvB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,qBAA0B,EAC3C,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC;cA+GlB,8BAA8B;;;CAIjD"}
@@ -77,7 +77,7 @@ class ApiKeys {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'api-keys'),
79
79
  method: 'POST',
80
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
80
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: 'application/json',
82
82
  requestType: 'json',
83
83
  body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
@@ -181,7 +181,7 @@ class ApiKeys {
181
181
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
182
182
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'api-keys/search'),
183
183
  method: 'POST',
184
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
185
185
  contentType: 'application/json',
186
186
  requestType: 'json',
187
187
  body: serializers.ApiKeySearchRequest.jsonOrThrow(request, {
@@ -290,7 +290,7 @@ class ApiKeys {
290
290
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
291
291
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
292
292
  method: 'GET',
293
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
293
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
294
294
  contentType: 'application/json',
295
295
  requestType: 'json',
296
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -400,7 +400,7 @@ class ApiKeys {
400
400
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
401
401
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
402
402
  method: 'DELETE',
403
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
403
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
404
404
  contentType: 'application/json',
405
405
  requestType: 'json',
406
406
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -521,7 +521,7 @@ class ApiKeys {
521
521
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
522
522
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
523
523
  method: 'PATCH',
524
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
524
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
525
525
  contentType: 'application/json',
526
526
  requestType: 'json',
527
527
  body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
@@ -635,6 +635,7 @@ class ApiKeys {
635
635
  * @throws {@link Truvity.BadRequestError}
636
636
  * @throws {@link Truvity.UnauthorizedError}
637
637
  * @throws {@link Truvity.ForbiddenError}
638
+ * @throws {@link Truvity.NotFoundError}
638
639
  * @throws {@link Truvity.MethodNotAllowedError}
639
640
  * @throws {@link Truvity.PreconditionFailedError}
640
641
  * @throws {@link Truvity.TooManyRequestsError}
@@ -652,7 +653,7 @@ class ApiKeys {
652
653
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
653
654
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/restore`),
654
655
  method: 'POST',
655
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
656
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
656
657
  contentType: 'application/json',
657
658
  requestType: 'json',
658
659
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -690,6 +691,13 @@ class ApiKeys {
690
691
  allowUnrecognizedEnumValues: true,
691
692
  breadcrumbsPrefix: ['response'],
692
693
  }));
694
+ case 404:
695
+ throw new Truvity.NotFoundError(serializers.NotFoundProblems.parseOrThrow(_response.error.body, {
696
+ unrecognizedObjectKeys: 'passthrough',
697
+ allowUnrecognizedUnionMembers: true,
698
+ allowUnrecognizedEnumValues: true,
699
+ breadcrumbsPrefix: ['response'],
700
+ }));
693
701
  case 405:
694
702
  throw new Truvity.MethodNotAllowedError(serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {
695
703
  unrecognizedObjectKeys: 'passthrough',
@@ -764,7 +772,7 @@ class ApiKeys {
764
772
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
765
773
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions`),
766
774
  method: 'GET',
767
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
775
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
768
776
  contentType: 'application/json',
769
777
  requestType: 'json',
770
778
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -870,7 +878,7 @@ class ApiKeys {
870
878
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
871
879
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
872
880
  method: 'GET',
873
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
881
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.4', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
874
882
  contentType: 'application/json',
875
883
  requestType: 'json',
876
884
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/apiKeys/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,6EAA+D;AAC/D,wDAA+B;AAC/B,iEAAmD;AAmBnD;;GAEG;AACH,MAAa,OAAO;IAChB,YAA+B,WAA4B,EAAE;QAA9B,aAAQ,GAAR,QAAQ,CAAsB;IAAG,CAAC;IAEjE;;;;;;;;;;;;;;;;;OAiBG;IACU,YAAY,CACrB,OAAoC,EACpC,cAAuC;;;YAEvC,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;YAChD,MAAM,SAAS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C,mBAAmB,CACjC,WAAW,CAAC,0BAA0B,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE;4BACtE,sBAAsB,EAAE,aAAa;4BACrC,6BAA6B,EAAE,IAAI;4BACnC,2BAA2B,EAAE,IAAI;4BACjC,iBAAiB,EAAE,CAAC,UAAU,CAAC;yBAClC,CAAC,CACL,CAAC;oBACN;wBACI,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;4BAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;4BACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;yBAC7B,CAAC,CAAC;iBACV;aACJ;YAED,QAAQ,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE;gBAC5B,KAAK,UAAU;oBACX,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;qBAChC,CAAC,CAAC;gBACP,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;gBAC3C,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY;qBACxC,CAAC,CAAC;aACV;;KACJ;IAEe,8BAA8B;;YAC1C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AA/mCD,0BA+mCC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as environments from '../../../../environments';\nimport * as core from '../../../../core';\nimport * as Truvity from '../../../index';\nimport * as serializers from '../../../../serialization/index';\nimport urlJoin from 'url-join';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace ApiKeys {\n interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n interface RequestOptions {\n /** The maximum time to wait for a response in seconds. */\n timeoutInSeconds?: number;\n /** The number of times to retry the request. Defaults to 2. */\n maxRetries?: number;\n /** A hook to abort the request. */\n abortSignal?: AbortSignal;\n }\n}\n\n/**\n * The API to manage Truvity API's keys.\n */\nexport class ApiKeys {\n constructor(protected readonly _options: ApiKeys.Options = {}) {}\n\n /**\n * Create a new API key resource.\n *\n * @param {Truvity.ApiKeyCreateRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyCreate({\n * body: {}\n * })\n */\n public async apiKeyCreate(\n request: Truvity.ApiKeyCreateRequest,\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKeyFull> {\n const { idempotencyKey, body: _body } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n 'api-keys',\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.3',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKeyFull.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Search for API Keys with extended filters capabilities.\n *\n * @param {Truvity.ApiKeySearchRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeySearch()\n */\n public async apiKeySearch(\n request: Truvity.ApiKeySearchRequest = {},\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ListApiKey> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n 'api-keys/search',\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.3',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.ApiKeySearchRequest.jsonOrThrow(request, {\n unrecognizedObjectKeys: 'strip',\n omitUndefined: true,\n }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ListApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Get the latest version of API Key.\n *\n * @param {string} id - The ID of the resource.\n * @param {Truvity.ApiKeyLatestRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyLatest(\"id\")\n */\n public async apiKeyLatest(\n id: string,\n request: Truvity.ApiKeyLatestRequest = {},\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKey> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.3',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Delete API Key's resource.\n *\n * @param {string} id - The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n * @param {Truvity.ApiKeyDeleteRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.MethodNotAllowedError}\n * @throws {@link Truvity.PreconditionFailedError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyDelete(\"id\", {\n * ifMatch: \"If-Match\"\n * })\n */\n public async apiKeyDelete(\n id: string,\n request: Truvity.ApiKeyDeleteRequest,\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<void> {\n const { idempotencyKey, ifMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}`,\n ),\n method: 'DELETE',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.3',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined,\n 'If-Match': ifMatch,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return;\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 405:\n throw new Truvity.MethodNotAllowedError(\n serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 412:\n throw new Truvity.PreconditionFailedError(\n serializers.PreconditionFailedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Update API Key's resource.\n *\n * @param {string} id - The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n * @param {Truvity.ApiKeyUpdateRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.MethodNotAllowedError}\n * @throws {@link Truvity.PreconditionFailedError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyUpdate(\"id\", {\n * ifMatch: \"If-Match\",\n * body: {}\n * })\n */\n public async apiKeyUpdate(\n id: string,\n request: Truvity.ApiKeyUpdateRequest,\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKey> {\n const { idempotencyKey, ifMatch, body: _body } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}`,\n ),\n method: 'PATCH',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.3',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined,\n 'If-Match': ifMatch,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 405:\n throw new Truvity.MethodNotAllowedError(\n serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 412:\n throw new Truvity.PreconditionFailedError(\n serializers.PreconditionFailedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Restore API Key's resource.\n *\n * @param {string} id - The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n * @param {Truvity.ApiKeyRestoreRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.MethodNotAllowedError}\n * @throws {@link Truvity.PreconditionFailedError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyRestore(\"id\", {\n * ifMatch: \"If-Match\"\n * })\n */\n public async apiKeyRestore(\n id: string,\n request: Truvity.ApiKeyRestoreRequest,\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKey> {\n const { idempotencyKey, ifMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}/restore`,\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.3',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined,\n 'If-Match': ifMatch,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 405:\n throw new Truvity.MethodNotAllowedError(\n serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 412:\n throw new Truvity.PreconditionFailedError(\n serializers.PreconditionFailedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * History of the API Key's resources.\n *\n * @param {string} id - The ID of the resource.\n * @param {Truvity.ApiKeyHistoryRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyHistory(\"id\")\n */\n public async apiKeyHistory(\n id: string,\n request: Truvity.ApiKeyHistoryRequest = {},\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ListApiKey> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}/revisions`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.3',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ListApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Read the specific version of the API Key's resource.\n *\n * @param {string} id - The ID of the resource.\n * @param {number} revision - The revision of the resource.\n * @param {Truvity.ApiKeyRevisionRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyRevision(\"id\", 1)\n */\n public async apiKeyRevision(\n id: string,\n revision: number,\n request: Truvity.ApiKeyRevisionRequest = {},\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKey> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.3',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n protected async _getCustomAuthorizationHeaders() {\n const apiKeyValue = await core.Supplier.get(this._options.apiKey);\n return { 'X-API-KEY': apiKeyValue };\n }\n}\n"]}
1
+ {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/apiKeys/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,6EAA+D;AAC/D,wDAA+B;AAC/B,iEAAmD;AAmBnD;;GAEG;AACH,MAAa,OAAO;IAChB,YAA+B,WAA4B,EAAE;QAA9B,aAAQ,GAAR,QAAQ,CAAsB;IAAG,CAAC;IAEjE;;;;;;;;;;;;;;;;;OAiBG;IACU,YAAY,CACrB,OAAoC,EACpC,cAAuC;;;YAEvC,MAAM,EAAE,cAAc,EAAE,IAAI,EAA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GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AAznCD,0BAynCC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as environments from '../../../../environments';\nimport * as core from '../../../../core';\nimport * as Truvity from '../../../index';\nimport * as serializers from '../../../../serialization/index';\nimport urlJoin from 'url-join';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace ApiKeys {\n interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n interface RequestOptions {\n /** The maximum time to wait for a response in seconds. */\n timeoutInSeconds?: number;\n /** The number of times to retry the request. Defaults to 2. */\n maxRetries?: number;\n /** A hook to abort the request. */\n abortSignal?: AbortSignal;\n }\n}\n\n/**\n * The API to manage Truvity API's keys.\n */\nexport class ApiKeys {\n constructor(protected readonly _options: ApiKeys.Options = {}) {}\n\n /**\n * Create a new API key resource.\n *\n * @param {Truvity.ApiKeyCreateRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyCreate({\n * body: {}\n * })\n */\n public async apiKeyCreate(\n request: Truvity.ApiKeyCreateRequest,\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKeyFull> {\n const { idempotencyKey, body: _body } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n 'api-keys',\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKeyFull.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Search for API Keys with extended filters capabilities.\n *\n * @param {Truvity.ApiKeySearchRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeySearch()\n */\n public async apiKeySearch(\n request: Truvity.ApiKeySearchRequest = {},\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ListApiKey> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n 'api-keys/search',\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.ApiKeySearchRequest.jsonOrThrow(request, {\n unrecognizedObjectKeys: 'strip',\n omitUndefined: true,\n }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ListApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Get the latest version of API Key.\n *\n * @param {string} id - The ID of the resource.\n * @param {Truvity.ApiKeyLatestRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyLatest(\"id\")\n */\n public async apiKeyLatest(\n id: string,\n request: Truvity.ApiKeyLatestRequest = {},\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKey> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Delete API Key's resource.\n *\n * @param {string} id - The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n * @param {Truvity.ApiKeyDeleteRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.MethodNotAllowedError}\n * @throws {@link Truvity.PreconditionFailedError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyDelete(\"id\", {\n * ifMatch: \"If-Match\"\n * })\n */\n public async apiKeyDelete(\n id: string,\n request: Truvity.ApiKeyDeleteRequest,\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<void> {\n const { idempotencyKey, ifMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}`,\n ),\n method: 'DELETE',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined,\n 'If-Match': ifMatch,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return;\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 405:\n throw new Truvity.MethodNotAllowedError(\n serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 412:\n throw new Truvity.PreconditionFailedError(\n serializers.PreconditionFailedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Update API Key's resource.\n *\n * @param {string} id - The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n * @param {Truvity.ApiKeyUpdateRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.MethodNotAllowedError}\n * @throws {@link Truvity.PreconditionFailedError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyUpdate(\"id\", {\n * ifMatch: \"If-Match\",\n * body: {}\n * })\n */\n public async apiKeyUpdate(\n id: string,\n request: Truvity.ApiKeyUpdateRequest,\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKey> {\n const { idempotencyKey, ifMatch, body: _body } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}`,\n ),\n method: 'PATCH',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined,\n 'If-Match': ifMatch,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 405:\n throw new Truvity.MethodNotAllowedError(\n serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 412:\n throw new Truvity.PreconditionFailedError(\n serializers.PreconditionFailedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Restore API Key's resource.\n *\n * @param {string} id - The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n * @param {Truvity.ApiKeyRestoreRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.MethodNotAllowedError}\n * @throws {@link Truvity.PreconditionFailedError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyRestore(\"id\", {\n * ifMatch: \"If-Match\"\n * })\n */\n public async apiKeyRestore(\n id: string,\n request: Truvity.ApiKeyRestoreRequest,\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKey> {\n const { idempotencyKey, ifMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}/restore`,\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined,\n 'If-Match': ifMatch,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 405:\n throw new Truvity.MethodNotAllowedError(\n serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 412:\n throw new Truvity.PreconditionFailedError(\n serializers.PreconditionFailedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * History of the API Key's resources.\n *\n * @param {string} id - The ID of the resource.\n * @param {Truvity.ApiKeyHistoryRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyHistory(\"id\")\n */\n public async apiKeyHistory(\n id: string,\n request: Truvity.ApiKeyHistoryRequest = {},\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ListApiKey> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}/revisions`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ListApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Read the specific version of the API Key's resource.\n *\n * @param {string} id - The ID of the resource.\n * @param {number} revision - The revision of the resource.\n * @param {Truvity.ApiKeyRevisionRequest} request\n * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.NotFoundError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.apiKeys.apiKeyRevision(\"id\", 1)\n */\n public async apiKeyRevision(\n id: string,\n revision: number,\n request: Truvity.ApiKeyRevisionRequest = {},\n requestOptions?: ApiKeys.RequestOptions,\n ): Promise<Truvity.ResourceApiKey> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `api-keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.ResourceApiKey.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 404:\n throw new Truvity.NotFoundError(\n serializers.NotFoundProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n protected async _getCustomAuthorizationHeaders() {\n const apiKeyValue = await core.Supplier.get(this._options.apiKey);\n return { 'X-API-KEY': apiKeyValue };\n }\n}\n"]}
@@ -16,17 +16,17 @@ export interface ApiKeyCreateRequest {
16
16
  * to ensure idempotent behavior by sending the same (or a similar) response
17
17
  * without executing the request a second time.
18
18
  *
19
- * Clients should be careful as any subsequent requests with the same key may
20
- * return the same response without further check. Thus, it is recommended to
21
- * use a UUID version 4 (random) or any other random string with enough
22
- * entropy to avoid collisions.
19
+ * Clients should be careful as any subsequent requests with the same key may
20
+ * return the same response without further check. Thus, it is recommended to
21
+ * use a UUID version 4 (random) or any other random string with enough
22
+ * entropy to avoid collisions.
23
23
  *
24
- * Keys expire after 24 hours. Clients are responsible to stay within this
25
- * limit, if they require idempotent behavior.
24
+ * Keys expire after 24 hours. Clients are responsible to stay within this
25
+ * limit, if they require idempotent behavior.
26
26
  *
27
- * See [API Guideline Rule #181][api-230] for further details.
27
+ * See [API Guideline Rule #181][api-230] for further details.
28
28
  *
29
- * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
29
+ * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
30
30
  */
31
31
  idempotencyKey?: string;
32
32
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ApiKeyCreateRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * body: {}\n * }\n */\nexport interface ApiKeyCreateRequest {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /**\n * Create an API key.\n */\n body: Truvity.ApiKeyInput;\n}\n"]}
1
+ {"version":3,"file":"ApiKeyCreateRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * body: {}\n * }\n */\nexport interface ApiKeyCreateRequest {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /**\n * Create an API key.\n */\n body: Truvity.ApiKeyInput;\n}\n"]}
@@ -15,17 +15,17 @@ export interface ApiKeyDeleteRequest {
15
15
  * to ensure idempotent behavior by sending the same (or a similar) response
16
16
  * without executing the request a second time.
17
17
  *
18
- * Clients should be careful as any subsequent requests with the same key may
19
- * return the same response without further check. Thus, it is recommended to
20
- * use a UUID version 4 (random) or any other random string with enough
21
- * entropy to avoid collisions.
18
+ * Clients should be careful as any subsequent requests with the same key may
19
+ * return the same response without further check. Thus, it is recommended to
20
+ * use a UUID version 4 (random) or any other random string with enough
21
+ * entropy to avoid collisions.
22
22
  *
23
- * Keys expire after 24 hours. Clients are responsible to stay within this
24
- * limit, if they require idempotent behavior.
23
+ * Keys expire after 24 hours. Clients are responsible to stay within this
24
+ * limit, if they require idempotent behavior.
25
25
  *
26
- * See [API Guideline Rule #181][api-230] for further details.
26
+ * See [API Guideline Rule #181][api-230] for further details.
27
27
  *
28
- * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
28
+ * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
29
29
  */
30
30
  idempotencyKey?: string;
31
31
  /**