@truvity/sdk 0.37.0 → 0.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/api/resources/apiKeys/client/Client.d.ts.map +1 -1
  2. package/api/resources/apiKeys/client/Client.js +9 -19
  3. package/api/resources/apiKeys/client/Client.js.map +1 -1
  4. package/api/resources/credentials/client/Client.d.ts.map +1 -1
  5. package/api/resources/credentials/client/Client.js +12 -28
  6. package/api/resources/credentials/client/Client.js.map +1 -1
  7. package/api/resources/desk/client/Client.d.ts.map +1 -1
  8. package/api/resources/desk/client/Client.js +2 -4
  9. package/api/resources/desk/client/Client.js.map +1 -1
  10. package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
  11. package/api/resources/didcommMessages/client/Client.js +9 -19
  12. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  13. package/api/resources/dids/client/Client.d.ts.map +1 -1
  14. package/api/resources/dids/client/Client.js +1 -3
  15. package/api/resources/dids/client/Client.js.map +1 -1
  16. package/api/resources/drafts/client/Client.d.ts +0 -49
  17. package/api/resources/drafts/client/Client.d.ts.map +1 -1
  18. package/api/resources/drafts/client/Client.js +12 -191
  19. package/api/resources/drafts/client/Client.js.map +1 -1
  20. package/api/resources/drafts/client/requests/index.d.ts +0 -1
  21. package/api/resources/drafts/client/requests/index.d.ts.map +1 -1
  22. package/api/resources/drafts/client/requests/index.js.map +1 -1
  23. package/api/resources/drafts/types/index.d.ts +0 -1
  24. package/api/resources/drafts/types/index.d.ts.map +1 -1
  25. package/api/resources/drafts/types/index.js +0 -1
  26. package/api/resources/drafts/types/index.js.map +1 -1
  27. package/api/resources/files/client/Client.d.ts.map +1 -1
  28. package/api/resources/files/client/Client.js +11 -25
  29. package/api/resources/files/client/Client.js.map +1 -1
  30. package/api/resources/gdpr/client/Client.js +1 -1
  31. package/api/resources/gdpr/client/Client.js.map +1 -1
  32. package/api/resources/keys/client/Client.d.ts.map +1 -1
  33. package/api/resources/keys/client/Client.js +13 -23
  34. package/api/resources/keys/client/Client.js.map +1 -1
  35. package/api/resources/presentations/client/Client.d.ts.map +1 -1
  36. package/api/resources/presentations/client/Client.js +14 -30
  37. package/api/resources/presentations/client/Client.js.map +1 -1
  38. package/documents/credential/draft/draft.d.ts.map +1 -1
  39. package/documents/credential/draft/draft.js +1 -1
  40. package/documents/credential/draft/draft.js.map +1 -1
  41. package/package.json +4 -3
  42. package/reference.md +0 -105
  43. package/scripts/rename-to-esm-files.js +10 -2
  44. package/serialization/resources/drafts/client/requests/index.d.ts +0 -1
  45. package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
  46. package/serialization/resources/drafts/client/requests/index.js +1 -3
  47. package/serialization/resources/drafts/client/requests/index.js.map +1 -1
  48. package/serialization/resources/drafts/types/index.d.ts +0 -1
  49. package/serialization/resources/drafts/types/index.d.ts.map +1 -1
  50. package/serialization/resources/drafts/types/index.js +0 -1
  51. package/serialization/resources/drafts/types/index.js.map +1 -1
  52. package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts +0 -44
  53. package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +0 -1
  54. package/api/resources/drafts/client/requests/DraftIssueRequest.js +0 -6
  55. package/api/resources/drafts/client/requests/DraftIssueRequest.js.map +0 -1
  56. package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +0 -12
  57. package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +0 -1
  58. package/api/resources/drafts/types/DraftIssueRequestDidMethod.js +0 -11
  59. package/api/resources/drafts/types/DraftIssueRequestDidMethod.js.map +0 -1
  60. package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts +0 -20
  61. package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +0 -1
  62. package/serialization/resources/drafts/client/requests/DraftIssueRequest.js +0 -51
  63. package/serialization/resources/drafts/client/requests/DraftIssueRequest.js.map +0 -1
  64. package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +0 -11
  65. package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +0 -1
  66. package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js +0 -42
  67. package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/apiKeys/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC7B,UAAiB,OAAO;QACpB,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC;QACtE,qDAAqD;QACrD,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChC,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC;KAChC;IAED,UAAiB,cAAc;QAC3B,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED;;GAEG;AACH,qBAAa,OAAO;IACJ,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO;gBAAzB,QAAQ,GAAE,OAAO,CAAC,OAAY;IAE7D;;;;;;;;;;;;;;;OAeG;IACI,YAAY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YAIrC,gBAAgB;cAoId,8BAA8B;;;CAIjD"}
@@ -99,7 +99,7 @@ class ApiKeys {
99
99
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
100
100
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'api-keys'),
101
101
  method: 'POST',
102
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
103
103
  contentType: 'application/json',
104
104
  requestType: 'json',
105
105
  body: serializers.ApiKeyCreateRequest.jsonOrThrow(_body, {
@@ -215,7 +215,7 @@ class ApiKeys {
215
215
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
216
216
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'api-keys/search'),
217
217
  method: 'POST',
218
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
218
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
219
  contentType: 'application/json',
220
220
  requestType: 'json',
221
221
  body: serializers.ApiKeySearchRequest.jsonOrThrow(request, {
@@ -333,9 +333,7 @@ class ApiKeys {
333
333
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
334
334
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
335
335
  method: 'GET',
336
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
337
- contentType: 'application/json',
338
- requestType: 'json',
336
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
339
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
340
338
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
341
339
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -452,9 +450,7 @@ class ApiKeys {
452
450
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
453
451
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
454
452
  method: 'DELETE',
455
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
456
- contentType: 'application/json',
457
- requestType: 'json',
453
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
458
454
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
459
455
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
460
456
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -581,7 +577,7 @@ class ApiKeys {
581
577
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
582
578
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/annotations`),
583
579
  method: 'PATCH',
584
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
580
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
585
581
  contentType: 'application/json',
586
582
  requestType: 'json',
587
583
  body: serializers.ApiKeyUpdateAnnotationsRequest.jsonOrThrow(_body, {
@@ -729,7 +725,7 @@ class ApiKeys {
729
725
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
730
726
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/labels`),
731
727
  method: 'PATCH',
732
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
728
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
733
729
  contentType: 'application/json',
734
730
  requestType: 'json',
735
731
  body: serializers.ApiKeyUpdateLabelsRequest.jsonOrThrow(_body, {
@@ -873,9 +869,7 @@ class ApiKeys {
873
869
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
874
870
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/restore`),
875
871
  method: 'POST',
876
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
877
- contentType: 'application/json',
878
- requestType: 'json',
872
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
879
873
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
880
874
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
881
875
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1001,9 +995,7 @@ class ApiKeys {
1001
995
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1002
996
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions`),
1003
997
  method: 'GET',
1004
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1005
- contentType: 'application/json',
1006
- requestType: 'json',
998
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1007
999
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1008
1000
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1009
1001
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1116,9 +1108,7 @@ class ApiKeys {
1116
1108
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1117
1109
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
1118
1110
  method: 'GET',
1119
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1120
- contentType: 'application/json',
1121
- requestType: 'json',
1111
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.2', 'User-Agent': '@truvity/sdk/0.37.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1122
1112
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1123
1113
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1124
1114
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,