@truvity/sdk 0.30.7 → 0.30.16
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.d.ts +10 -2
- package/api/resources/credentials/client/Client.d.ts.map +1 -1
- package/api/resources/credentials/client/Client.js +22 -14
- 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.d.ts +1 -1
- package/api/resources/drafts/client/Client.js +13 -13
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/files/client/Client.d.ts +10 -2
- package/api/resources/files/client/Client.d.ts.map +1 -1
- package/api/resources/files/client/Client.js +22 -14
- 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.d.ts +10 -2
- package/api/resources/presentations/client/Client.d.ts.map +1 -1
- package/api/resources/presentations/client/Client.js +24 -16
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/package.json +1 -1
- package/reference.md +31 -7
|
@@ -30,7 +30,9 @@ export declare class Credentials {
|
|
|
30
30
|
protected readonly _options: Credentials.Options;
|
|
31
31
|
constructor(_options?: Credentials.Options);
|
|
32
32
|
/**
|
|
33
|
-
* Import a Verifiable Credential
|
|
33
|
+
* Import a Verifiable Credential's resource with a **blob_id**.
|
|
34
|
+
*
|
|
35
|
+
* To get **blob_id** call [Upload](#tag/credentials/operation/CredentialUpload) first.
|
|
34
36
|
*
|
|
35
37
|
* @param {Truvity.CredentialInput} request
|
|
36
38
|
* @param {Credentials.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -67,7 +69,13 @@ export declare class Credentials {
|
|
|
67
69
|
*/
|
|
68
70
|
credentialSearch(request?: Truvity.CredentialSearchRequest, requestOptions?: Credentials.RequestOptions): Promise<Truvity.ListCredential>;
|
|
69
71
|
/**
|
|
70
|
-
*
|
|
72
|
+
* Initiates a Credential blob upload, returning a pre-signed S3 URL. Response contains:
|
|
73
|
+
*
|
|
74
|
+
* - **blob_id** (required for Credential creation)
|
|
75
|
+
*
|
|
76
|
+
* - **upload_uri** (pre-signed URL for upload)
|
|
77
|
+
*
|
|
78
|
+
* - **timeout** (expiration in seconds).
|
|
71
79
|
*
|
|
72
80
|
* @param {Truvity.CredentialUploadRequest} request
|
|
73
81
|
* @param {Credentials.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/credentials/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;AAI1C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACjC,UAAU,OAAO;QACb,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC;QACtE,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC;KAChC;IAED,UAAU,cAAc;QACpB,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAA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64
64
|
this._options = _options;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Import a Verifiable Credential
|
|
67
|
+
* Import a Verifiable Credential's resource with a **blob_id**.
|
|
68
|
+
*
|
|
69
|
+
* To get **blob_id** call [Upload](#tag/credentials/operation/CredentialUpload) first.
|
|
68
70
|
*
|
|
69
71
|
* @param {Truvity.CredentialInput} request
|
|
70
72
|
* @param {Credentials.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -91,7 +93,7 @@ class Credentials {
|
|
|
91
93
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
92
94
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'credentials/import'),
|
|
93
95
|
method: 'POST',
|
|
94
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
96
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
95
97
|
contentType: 'application/json',
|
|
96
98
|
queryParameters: _queryParams,
|
|
97
99
|
requestType: 'json',
|
|
@@ -206,7 +208,7 @@ class Credentials {
|
|
|
206
208
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
207
209
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'credentials/search'),
|
|
208
210
|
method: 'POST',
|
|
209
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
211
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
210
212
|
contentType: 'application/json',
|
|
211
213
|
requestType: 'json',
|
|
212
214
|
body: serializers.CredentialSearchRequest.jsonOrThrow(request, {
|
|
@@ -292,7 +294,13 @@ class Credentials {
|
|
|
292
294
|
});
|
|
293
295
|
}
|
|
294
296
|
/**
|
|
295
|
-
*
|
|
297
|
+
* Initiates a Credential blob upload, returning a pre-signed S3 URL. Response contains:
|
|
298
|
+
*
|
|
299
|
+
* - **blob_id** (required for Credential creation)
|
|
300
|
+
*
|
|
301
|
+
* - **upload_uri** (pre-signed URL for upload)
|
|
302
|
+
*
|
|
303
|
+
* - **timeout** (expiration in seconds).
|
|
296
304
|
*
|
|
297
305
|
* @param {Truvity.CredentialUploadRequest} request
|
|
298
306
|
* @param {Credentials.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -313,7 +321,7 @@ class Credentials {
|
|
|
313
321
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
314
322
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'credentials/upload'),
|
|
315
323
|
method: 'POST',
|
|
316
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
324
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
317
325
|
contentType: 'application/json',
|
|
318
326
|
requestType: 'json',
|
|
319
327
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -411,7 +419,7 @@ class Credentials {
|
|
|
411
419
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
412
420
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}`),
|
|
413
421
|
method: 'GET',
|
|
414
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
422
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
415
423
|
contentType: 'application/json',
|
|
416
424
|
requestType: 'json',
|
|
417
425
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -521,7 +529,7 @@ class Credentials {
|
|
|
521
529
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
522
530
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}`),
|
|
523
531
|
method: 'DELETE',
|
|
524
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
532
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
525
533
|
contentType: 'application/json',
|
|
526
534
|
requestType: 'json',
|
|
527
535
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -644,7 +652,7 @@ class Credentials {
|
|
|
644
652
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
645
653
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/annotations`),
|
|
646
654
|
method: 'PATCH',
|
|
647
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
655
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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
656
|
contentType: 'application/json',
|
|
649
657
|
requestType: 'json',
|
|
650
658
|
body: serializers.CredentialUpdateAnnotationsInput.jsonOrThrow(_body, {
|
|
@@ -783,7 +791,7 @@ class Credentials {
|
|
|
783
791
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
784
792
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/labels`),
|
|
785
793
|
method: 'PATCH',
|
|
786
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
794
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
787
795
|
contentType: 'application/json',
|
|
788
796
|
requestType: 'json',
|
|
789
797
|
body: serializers.CredentialUpdateLabelsInput.jsonOrThrow(_body, {
|
|
@@ -918,7 +926,7 @@ class Credentials {
|
|
|
918
926
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
919
927
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/restore`),
|
|
920
928
|
method: 'POST',
|
|
921
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
929
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
922
930
|
contentType: 'application/json',
|
|
923
931
|
requestType: 'json',
|
|
924
932
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1037,7 +1045,7 @@ class Credentials {
|
|
|
1037
1045
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1038
1046
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions`),
|
|
1039
1047
|
method: 'GET',
|
|
1040
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
1048
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
1041
1049
|
contentType: 'application/json',
|
|
1042
1050
|
requestType: 'json',
|
|
1043
1051
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1143,7 +1151,7 @@ class Credentials {
|
|
|
1143
1151
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1144
1152
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
1145
1153
|
method: 'GET',
|
|
1146
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
1154
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
1147
1155
|
contentType: 'application/json',
|
|
1148
1156
|
requestType: 'json',
|
|
1149
1157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1240,7 +1248,7 @@ class Credentials {
|
|
|
1240
1248
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1241
1249
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/download`),
|
|
1242
1250
|
method: 'GET',
|
|
1243
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
1251
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
1244
1252
|
contentType: 'application/json',
|
|
1245
1253
|
requestType: 'json',
|
|
1246
1254
|
responseType: 'streaming',
|
|
@@ -1338,7 +1346,7 @@ class Credentials {
|
|
|
1338
1346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1339
1347
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/verify`),
|
|
1340
1348
|
method: 'GET',
|
|
1341
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.
|
|
1349
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.30.16', 'User-Agent': '@truvity/sdk/0.30.16', '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),
|
|
1342
1350
|
contentType: 'application/json',
|
|
1343
1351
|
requestType: 'json',
|
|
1344
1352
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|