@truvity/sdk 0.28.9 → 0.30.7
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.
- package/api/resources/apiKeys/client/Client.js +9 -9
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/credentials/client/Client.js +12 -12
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/desk/client/Client.js +2 -2
- package/api/resources/desk/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/Client.js +9 -9
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/dids/client/Client.js +1 -1
- package/api/resources/dids/client/Client.js.map +1 -1
- package/api/resources/drafts/client/Client.js +12 -12
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/files/client/Client.js +12 -12
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/gdpr/client/Client.js +1 -1
- package/api/resources/gdpr/client/Client.js.map +1 -1
- package/api/resources/keys/client/Client.js +13 -13
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/presentations/client/Client.js +14 -14
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/api/types/Credential.d.ts +1 -1
- package/api/types/Credential.d.ts.map +1 -1
- package/api/types/Credential.js.map +1 -1
- package/api/types/File_.d.ts +1 -1
- package/api/types/File_.d.ts.map +1 -1
- package/api/types/File_.js.map +1 -1
- package/api/types/Presentation.d.ts +1 -1
- package/api/types/Presentation.d.ts.map +1 -1
- package/api/types/Presentation.js.map +1 -1
- package/documents/credential/claims.d.ts +29 -0
- package/documents/credential/claims.d.ts.map +1 -0
- package/documents/credential/claims.js +228 -0
- package/documents/credential/claims.js.map +1 -0
- package/documents/credential/claims.spec.d.ts +2 -0
- package/documents/credential/claims.spec.d.ts.map +1 -0
- package/documents/credential/{document.spec.js → claims.spec.js} +77 -129
- package/documents/credential/claims.spec.js.map +1 -0
- package/documents/credential/document/vcdm.d.ts +50 -0
- package/documents/credential/document/vcdm.d.ts.map +1 -0
- package/documents/credential/document/vcdm.js +76 -0
- package/documents/credential/document/vcdm.js.map +1 -0
- package/documents/credential/document.d.ts +6 -24
- package/documents/credential/document.d.ts.map +1 -1
- package/documents/credential/document.js +15 -137
- package/documents/credential/document.js.map +1 -1
- package/documents/credential/draft.d.ts +7 -5
- package/documents/credential/draft.d.ts.map +1 -1
- package/documents/credential/draft.js +15 -14
- package/documents/credential/draft.js.map +1 -1
- package/documents/credential/flavor/vcdm1_1.d.ts +76 -0
- package/documents/credential/flavor/vcdm1_1.d.ts.map +1 -0
- package/documents/credential/flavor/vcdm1_1.js +148 -0
- package/documents/credential/flavor/vcdm1_1.js.map +1 -0
- package/documents/credential/flavor/vcdm2_0.d.ts +83 -0
- package/documents/credential/flavor/vcdm2_0.d.ts.map +1 -0
- package/documents/credential/flavor/vcdm2_0.js +76 -0
- package/documents/credential/flavor/vcdm2_0.js.map +1 -0
- package/documents/credential/flavor.d.ts +8 -32
- package/documents/credential/flavor.d.ts.map +1 -1
- package/documents/credential/flavor.js +22 -99
- package/documents/credential/flavor.js.map +1 -1
- package/documents/credential/flavor.spec.js +31 -102
- package/documents/credential/flavor.spec.js.map +1 -1
- package/documents/credential/testdata/udt.d.ts +53 -0
- package/documents/credential/testdata/udt.d.ts.map +1 -0
- package/documents/credential/testdata/udt.js +243 -0
- package/documents/credential/testdata/udt.js.map +1 -0
- package/documents/credential/types.d.ts +39 -0
- package/documents/credential/types.d.ts.map +1 -0
- package/documents/credential/types.js +3 -0
- package/documents/credential/types.js.map +1 -0
- package/documents/credential/unknown.d.ts +5 -5
- package/documents/credential/unknown.d.ts.map +1 -1
- package/documents/credential/unknown.js +3 -4
- package/documents/credential/unknown.js.map +1 -1
- package/documents/credential/unknown.spec.js +12 -9
- package/documents/credential/unknown.spec.js.map +1 -1
- package/documents/credential/{baseVerifiableCredential.d.ts → verifiable.d.ts} +8 -5
- package/documents/credential/verifiable.d.ts.map +1 -0
- package/documents/credential/{baseVerifiableCredential.js → verifiable.js} +11 -7
- package/documents/credential/verifiable.js.map +1 -0
- package/documents/credential/with-claims.d.ts +15 -0
- package/documents/credential/with-claims.d.ts.map +1 -0
- package/documents/credential/{issued.js → with-claims.js} +12 -12
- package/documents/credential/with-claims.js.map +1 -0
- package/documents/credential.d.ts +13 -15
- package/documents/credential.d.ts.map +1 -1
- package/documents/credential.js +21 -102
- package/documents/credential.js.map +1 -1
- package/documents/index.d.ts +1 -0
- package/documents/index.d.ts.map +1 -1
- package/documents/index.js +1 -0
- package/documents/index.js.map +1 -1
- package/documents/models.d.ts +13 -13
- package/documents/models.d.ts.map +1 -1
- package/documents/models.js +4 -4
- package/documents/models.js.map +1 -1
- package/documents/presentation/issued.d.ts +1 -1
- package/documents/presentation/issued.d.ts.map +1 -1
- package/documents/presentation/issued.js +2 -2
- package/documents/presentation/issued.js.map +1 -1
- package/documents/presentation.d.ts +5 -5
- package/documents/presentation.d.ts.map +1 -1
- package/documents/presentation.js +4 -4
- package/documents/presentation.js.map +1 -1
- package/documents/types.d.ts +12 -32
- package/documents/types.d.ts.map +1 -1
- package/documents/types.js +25 -1
- package/documents/types.js.map +1 -1
- package/documents/utils/converters.d.ts +1 -1
- package/documents/utils/converters.d.ts.map +1 -1
- package/documents/utils/converters.js +1 -1
- package/documents/utils/converters.js.map +1 -1
- package/documents/utils/idempotency.d.ts +2 -0
- package/documents/utils/idempotency.d.ts.map +1 -0
- package/documents/utils/idempotency.js +9 -0
- package/documents/utils/idempotency.js.map +1 -0
- package/documents/utils/stream.d.ts +1 -0
- package/documents/utils/stream.d.ts.map +1 -1
- package/documents/utils/stream.js +3 -2
- package/documents/utils/stream.js.map +1 -1
- package/package.json +1 -1
- package/documents/credential/baseVerifiableCredential.d.ts.map +0 -1
- package/documents/credential/baseVerifiableCredential.js.map +0 -1
- package/documents/credential/document.spec.d.ts +0 -7
- package/documents/credential/document.spec.d.ts.map +0 -1
- package/documents/credential/document.spec.js.map +0 -1
- package/documents/credential/issued.d.ts +0 -13
- package/documents/credential/issued.d.ts.map +0 -1
- package/documents/credential/issued.js.map +0 -1
- package/documents/credential.spec.d.ts +0 -8
- package/documents/credential.spec.d.ts.map +0 -1
- package/documents/credential.spec.js +0 -246
- package/documents/credential.spec.js.map +0 -1
- package/documents/guards.d.ts +0 -6
- package/documents/guards.d.ts.map +0 -1
- package/documents/guards.js +0 -32
- package/documents/guards.js.map +0 -1
- package/documents/helpers.d.ts +0 -2
- package/documents/helpers.d.ts.map +0 -1
- package/documents/helpers.js +0 -9
- package/documents/helpers.js.map +0 -1
|
@@ -92,7 +92,7 @@ class Files {
|
|
|
92
92
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
93
93
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'files'),
|
|
94
94
|
method: 'POST',
|
|
95
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
95
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
96
96
|
contentType: 'application/json',
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: 'json',
|
|
@@ -204,7 +204,7 @@ class Files {
|
|
|
204
204
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
205
205
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'files/search'),
|
|
206
206
|
method: 'POST',
|
|
207
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
207
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
208
208
|
contentType: 'application/json',
|
|
209
209
|
requestType: 'json',
|
|
210
210
|
body: serializers.FileSearchRequest.jsonOrThrow(request, {
|
|
@@ -311,7 +311,7 @@ class Files {
|
|
|
311
311
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
312
312
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'files/upload'),
|
|
313
313
|
method: 'POST',
|
|
314
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
314
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
315
315
|
contentType: 'application/json',
|
|
316
316
|
requestType: 'json',
|
|
317
317
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -409,7 +409,7 @@ class Files {
|
|
|
409
409
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
410
410
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}`),
|
|
411
411
|
method: 'GET',
|
|
412
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
412
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
413
413
|
contentType: 'application/json',
|
|
414
414
|
requestType: 'json',
|
|
415
415
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -519,7 +519,7 @@ class Files {
|
|
|
519
519
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
520
520
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}`),
|
|
521
521
|
method: 'DELETE',
|
|
522
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
522
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
523
523
|
contentType: 'application/json',
|
|
524
524
|
requestType: 'json',
|
|
525
525
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -644,7 +644,7 @@ class Files {
|
|
|
644
644
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
645
645
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}`),
|
|
646
646
|
method: 'PATCH',
|
|
647
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
647
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
648
648
|
contentType: 'application/json',
|
|
649
649
|
queryParameters: _queryParams,
|
|
650
650
|
requestType: 'json',
|
|
@@ -784,7 +784,7 @@ class Files {
|
|
|
784
784
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
785
785
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}/annotations`),
|
|
786
786
|
method: 'PATCH',
|
|
787
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
787
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
788
788
|
contentType: 'application/json',
|
|
789
789
|
requestType: 'json',
|
|
790
790
|
body: serializers.FileUpdateAnnotationsInput.jsonOrThrow(_body, {
|
|
@@ -923,7 +923,7 @@ class Files {
|
|
|
923
923
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
924
924
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}/labels`),
|
|
925
925
|
method: 'PATCH',
|
|
926
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
926
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
927
927
|
contentType: 'application/json',
|
|
928
928
|
requestType: 'json',
|
|
929
929
|
body: serializers.FileUpdateLabelsInput.jsonOrThrow(_body, {
|
|
@@ -1058,7 +1058,7 @@ class Files {
|
|
|
1058
1058
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1059
1059
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}/restore`),
|
|
1060
1060
|
method: 'POST',
|
|
1061
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1061
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
1062
1062
|
contentType: 'application/json',
|
|
1063
1063
|
requestType: 'json',
|
|
1064
1064
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1177,7 +1177,7 @@ class Files {
|
|
|
1177
1177
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1178
1178
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}/revisions`),
|
|
1179
1179
|
method: 'GET',
|
|
1180
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1180
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
1181
1181
|
contentType: 'application/json',
|
|
1182
1182
|
requestType: 'json',
|
|
1183
1183
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1283,7 +1283,7 @@ class Files {
|
|
|
1283
1283
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1284
1284
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
1285
1285
|
method: 'GET',
|
|
1286
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1286
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
1287
1287
|
contentType: 'application/json',
|
|
1288
1288
|
requestType: 'json',
|
|
1289
1289
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1380,7 +1380,7 @@ class Files {
|
|
|
1380
1380
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1381
1381
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `files/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/download`),
|
|
1382
1382
|
method: 'GET',
|
|
1383
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1383
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.7', 'User-Agent': '@truvity/sdk/0.30.7', '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),
|
|
1384
1384
|
contentType: 'application/json',
|
|
1385
1385
|
requestType: 'json',
|
|
1386
1386
|
responseType: 'streaming',
|