@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.
- package/api/resources/apiKeys/client/Client.d.ts.map +1 -1
- package/api/resources/apiKeys/client/Client.js +9 -19
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/credentials/client/Client.d.ts.map +1 -1
- package/api/resources/credentials/client/Client.js +12 -28
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/desk/client/Client.d.ts.map +1 -1
- package/api/resources/desk/client/Client.js +2 -4
- package/api/resources/desk/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
- package/api/resources/didcommMessages/client/Client.js +9 -19
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/dids/client/Client.d.ts.map +1 -1
- package/api/resources/dids/client/Client.js +1 -3
- package/api/resources/dids/client/Client.js.map +1 -1
- package/api/resources/drafts/client/Client.d.ts +0 -49
- package/api/resources/drafts/client/Client.d.ts.map +1 -1
- package/api/resources/drafts/client/Client.js +12 -191
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/drafts/client/requests/index.d.ts +0 -1
- package/api/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/index.js.map +1 -1
- package/api/resources/drafts/types/index.d.ts +0 -1
- package/api/resources/drafts/types/index.d.ts.map +1 -1
- package/api/resources/drafts/types/index.js +0 -1
- package/api/resources/drafts/types/index.js.map +1 -1
- package/api/resources/files/client/Client.d.ts.map +1 -1
- package/api/resources/files/client/Client.js +11 -25
- 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.d.ts.map +1 -1
- package/api/resources/keys/client/Client.js +13 -23
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/presentations/client/Client.d.ts.map +1 -1
- package/api/resources/presentations/client/Client.js +14 -30
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/documents/credential/draft/draft.d.ts.map +1 -1
- package/documents/credential/draft/draft.js +1 -1
- package/documents/credential/draft/draft.js.map +1 -1
- package/package.json +4 -3
- package/reference.md +0 -105
- package/scripts/rename-to-esm-files.js +10 -2
- package/serialization/resources/drafts/client/requests/index.d.ts +0 -1
- package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/index.js +1 -3
- package/serialization/resources/drafts/client/requests/index.js.map +1 -1
- package/serialization/resources/drafts/types/index.d.ts +0 -1
- package/serialization/resources/drafts/types/index.d.ts.map +1 -1
- package/serialization/resources/drafts/types/index.js +0 -1
- package/serialization/resources/drafts/types/index.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts +0 -44
- package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftIssueRequest.js +0 -6
- package/api/resources/drafts/client/requests/DraftIssueRequest.js.map +0 -1
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +0 -12
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +0 -1
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.js +0 -11
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.js.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts +0 -20
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.js +0 -51
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.js.map +0 -1
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +0 -11
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +0 -1
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js +0 -42
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js.map +0 -1
|
@@ -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;IAsKvC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,kBAAkB,CACrB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,CAAC,yBAAyB,EAC1C,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,cAAc,CAAC;YAIrC,oBAAoB;IAsKlC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACI,aAAa,CAChB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,CAAC,oBAAoB,EACrC,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,cAAc,CAAC;YAIrC,eAAe;IAsJ7B;;;;;;;;;;;;;;;;OAgBG;IACI,aAAa,CAChB,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,OAAO,CAAC,oBAAyB,EAC1C,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,UAAU,CAAC;YAIjC,eAAe;IAiI7B;;;;;;;;;;;;;;;;;OAiBG;IACI,cAAc,CACjB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,qBAA0B,EAC3C,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,GACxC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,cAAc,CAAC;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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|