@truvity/sdk 0.37.2 → 0.37.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 (55) hide show
  1. package/api/resources/apiKeys/client/Client.js +9 -9
  2. package/api/resources/apiKeys/client/Client.js.map +1 -1
  3. package/api/resources/credentials/client/Client.js +12 -12
  4. package/api/resources/credentials/client/Client.js.map +1 -1
  5. package/api/resources/desk/client/Client.js +2 -2
  6. package/api/resources/desk/client/Client.js.map +1 -1
  7. package/api/resources/didcommMessages/client/Client.js +9 -9
  8. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  9. package/api/resources/dids/client/Client.js +1 -1
  10. package/api/resources/dids/client/Client.js.map +1 -1
  11. package/api/resources/drafts/client/Client.js +12 -12
  12. package/api/resources/drafts/client/Client.js.map +1 -1
  13. package/api/resources/files/client/Client.js +11 -11
  14. package/api/resources/files/client/Client.js.map +1 -1
  15. package/api/resources/gdpr/client/Client.js +1 -1
  16. package/api/resources/gdpr/client/Client.js.map +1 -1
  17. package/api/resources/keys/client/Client.js +13 -13
  18. package/api/resources/keys/client/Client.js.map +1 -1
  19. package/api/resources/presentations/client/Client.js +14 -14
  20. package/api/resources/presentations/client/Client.js.map +1 -1
  21. package/api/types/MethodNotAllowedProblems.d.ts +1 -4
  22. package/api/types/MethodNotAllowedProblems.d.ts.map +1 -1
  23. package/api/types/MethodNotAllowedProblems.js.map +1 -1
  24. package/api/types/NotFoundProblems.d.ts +4 -1
  25. package/api/types/NotFoundProblems.d.ts.map +1 -1
  26. package/api/types/NotFoundProblems.js.map +1 -1
  27. package/api/types/{ProblemMethodNotAllowedRoute.d.ts → ProblemPathNotFound.d.ts} +3 -3
  28. package/api/types/ProblemPathNotFound.d.ts.map +1 -0
  29. package/api/types/{ProblemMethodNotAllowedRoute.js → ProblemPathNotFound.js} +1 -1
  30. package/api/types/ProblemPathNotFound.js.map +1 -0
  31. package/api/types/index.d.ts +1 -1
  32. package/api/types/index.d.ts.map +1 -1
  33. package/api/types/index.js +1 -1
  34. package/api/types/index.js.map +1 -1
  35. package/package.json +1 -1
  36. package/serialization/types/MethodNotAllowedProblems.d.ts +1 -5
  37. package/serialization/types/MethodNotAllowedProblems.d.ts.map +1 -1
  38. package/serialization/types/MethodNotAllowedProblems.js +0 -2
  39. package/serialization/types/MethodNotAllowedProblems.js.map +1 -1
  40. package/serialization/types/NotFoundProblems.d.ts +5 -1
  41. package/serialization/types/NotFoundProblems.d.ts.map +1 -1
  42. package/serialization/types/NotFoundProblems.js +2 -0
  43. package/serialization/types/NotFoundProblems.js.map +1 -1
  44. package/serialization/types/{ProblemMethodNotAllowedRoute.d.ts → ProblemPathNotFound.d.ts} +3 -3
  45. package/serialization/types/ProblemPathNotFound.d.ts.map +1 -0
  46. package/serialization/types/{ProblemMethodNotAllowedRoute.js → ProblemPathNotFound.js} +3 -3
  47. package/serialization/types/ProblemPathNotFound.js.map +1 -0
  48. package/serialization/types/index.d.ts +1 -1
  49. package/serialization/types/index.d.ts.map +1 -1
  50. package/serialization/types/index.js +1 -1
  51. package/serialization/types/index.js.map +1 -1
  52. package/api/types/ProblemMethodNotAllowedRoute.d.ts.map +0 -1
  53. package/api/types/ProblemMethodNotAllowedRoute.js.map +0 -1
  54. package/serialization/types/ProblemMethodNotAllowedRoute.d.ts.map +0 -1
  55. package/serialization/types/ProblemMethodNotAllowedRoute.js.map +0 -1
@@ -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.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),
102
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.4', '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.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),
218
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.4', '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,7 +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.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),
336
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.4', '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
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
338
338
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
339
339
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -450,7 +450,7 @@ class ApiKeys {
450
450
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
451
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)}`),
452
452
  method: 'DELETE',
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),
453
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
454
454
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
455
455
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
456
456
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -577,7 +577,7 @@ class ApiKeys {
577
577
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
578
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`),
579
579
  method: 'PATCH',
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),
580
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
581
581
  contentType: 'application/json',
582
582
  requestType: 'json',
583
583
  body: serializers.ApiKeyUpdateAnnotationsRequest.jsonOrThrow(_body, {
@@ -725,7 +725,7 @@ class ApiKeys {
725
725
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
726
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`),
727
727
  method: 'PATCH',
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),
728
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
729
729
  contentType: 'application/json',
730
730
  requestType: 'json',
731
731
  body: serializers.ApiKeyUpdateLabelsRequest.jsonOrThrow(_body, {
@@ -869,7 +869,7 @@ class ApiKeys {
869
869
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
870
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`),
871
871
  method: 'POST',
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),
872
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
873
873
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
874
874
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
875
875
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -995,7 +995,7 @@ class ApiKeys {
995
995
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
996
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`),
997
997
  method: 'GET',
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),
998
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.4', '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),
999
999
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1000
1000
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1001
1001
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1108,7 +1108,7 @@ class ApiKeys {
1108
1108
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1109
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)}`),
1110
1110
  method: 'GET',
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),
1111
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.4', 'User-Agent': '@truvity/sdk/0.37.4', '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),
1112
1112
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1113
1113
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1114
1114
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,