@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
|
@@ -88,7 +88,7 @@ class Drafts {
|
|
|
88
88
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
89
89
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'drafts'),
|
|
90
90
|
method: 'POST',
|
|
91
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
91
|
+
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),
|
|
92
92
|
contentType: 'application/json',
|
|
93
93
|
requestType: 'json',
|
|
94
94
|
body: serializers.DraftInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
|
|
@@ -192,7 +192,7 @@ class Drafts {
|
|
|
192
192
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
193
193
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'drafts/search'),
|
|
194
194
|
method: 'POST',
|
|
195
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
195
|
+
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),
|
|
196
196
|
contentType: 'application/json',
|
|
197
197
|
requestType: 'json',
|
|
198
198
|
body: serializers.DraftSearchRequest.jsonOrThrow(request, {
|
|
@@ -301,7 +301,7 @@ class Drafts {
|
|
|
301
301
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
302
302
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}`),
|
|
303
303
|
method: 'GET',
|
|
304
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
304
|
+
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),
|
|
305
305
|
contentType: 'application/json',
|
|
306
306
|
requestType: 'json',
|
|
307
307
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -411,7 +411,7 @@ class Drafts {
|
|
|
411
411
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
412
412
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}`),
|
|
413
413
|
method: 'DELETE',
|
|
414
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
414
|
+
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),
|
|
415
415
|
contentType: 'application/json',
|
|
416
416
|
requestType: 'json',
|
|
417
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -532,7 +532,7 @@ class Drafts {
|
|
|
532
532
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
533
533
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}`),
|
|
534
534
|
method: 'PATCH',
|
|
535
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
535
|
+
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),
|
|
536
536
|
contentType: 'application/json',
|
|
537
537
|
requestType: 'json',
|
|
538
538
|
body: serializers.DraftUpdateInput.jsonOrThrow(_body, {
|
|
@@ -671,7 +671,7 @@ class Drafts {
|
|
|
671
671
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
672
672
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/annotations`),
|
|
673
673
|
method: 'PATCH',
|
|
674
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
674
|
+
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),
|
|
675
675
|
contentType: 'application/json',
|
|
676
676
|
requestType: 'json',
|
|
677
677
|
body: serializers.DraftUpdateAnnotationsInput.jsonOrThrow(_body, {
|
|
@@ -810,7 +810,7 @@ class Drafts {
|
|
|
810
810
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
811
811
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/labels`),
|
|
812
812
|
method: 'PATCH',
|
|
813
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
813
|
+
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),
|
|
814
814
|
contentType: 'application/json',
|
|
815
815
|
requestType: 'json',
|
|
816
816
|
body: serializers.DraftUpdateLabelsInput.jsonOrThrow(_body, {
|
|
@@ -945,7 +945,7 @@ class Drafts {
|
|
|
945
945
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
946
946
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/restore`),
|
|
947
947
|
method: 'POST',
|
|
948
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
948
|
+
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),
|
|
949
949
|
contentType: 'application/json',
|
|
950
950
|
requestType: 'json',
|
|
951
951
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1064,7 +1064,7 @@ class Drafts {
|
|
|
1064
1064
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1065
1065
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/revisions`),
|
|
1066
1066
|
method: 'GET',
|
|
1067
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1067
|
+
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),
|
|
1068
1068
|
contentType: 'application/json',
|
|
1069
1069
|
requestType: 'json',
|
|
1070
1070
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1170,7 +1170,7 @@ class Drafts {
|
|
|
1170
1170
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1171
1171
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
1172
1172
|
method: 'GET',
|
|
1173
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1173
|
+
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),
|
|
1174
1174
|
contentType: 'application/json',
|
|
1175
1175
|
requestType: 'json',
|
|
1176
1176
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1266,7 +1266,7 @@ class Drafts {
|
|
|
1266
1266
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1267
1267
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/export`),
|
|
1268
1268
|
method: 'POST',
|
|
1269
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1269
|
+
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),
|
|
1270
1270
|
contentType: 'application/json',
|
|
1271
1271
|
requestType: 'json',
|
|
1272
1272
|
body: serializers.DraftExport.jsonOrThrow(request, {
|
|
@@ -1378,7 +1378,7 @@ class Drafts {
|
|
|
1378
1378
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1379
1379
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/issue`),
|
|
1380
1380
|
method: 'PATCH',
|
|
1381
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1381
|
+
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),
|
|
1382
1382
|
contentType: 'application/json',
|
|
1383
1383
|
requestType: 'json',
|
|
1384
1384
|
body: serializers.DraftIssue.jsonOrThrow(request, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
|