@truvity/sdk 0.35.1 → 0.36.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.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/credentials/client/requests/CredentialInput.d.ts +1 -2
- package/api/resources/credentials/client/requests/CredentialInput.d.ts.map +1 -1
- package/api/resources/credentials/client/requests/CredentialInput.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 +49 -11
- package/api/resources/drafts/client/Client.d.ts.map +1 -1
- package/api/resources/drafts/client/Client.js +61 -23
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/files/client/Client.js +11 -11
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/files/client/requests/FileInput.d.ts +1 -2
- package/api/resources/files/client/requests/FileInput.d.ts.map +1 -1
- package/api/resources/files/client/requests/FileInput.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/resources/presentations/client/requests/PresentationInput.d.ts +1 -2
- package/api/resources/presentations/client/requests/PresentationInput.d.ts.map +1 -1
- package/api/resources/presentations/client/requests/PresentationInput.js.map +1 -1
- package/api/types/Credential.d.ts +4 -0
- package/api/types/Credential.d.ts.map +1 -1
- package/api/types/Credential.js.map +1 -1
- package/api/types/CredentialFilter.d.ts +4 -1
- package/api/types/CredentialFilter.d.ts.map +1 -1
- package/api/types/CredentialFilter.js.map +1 -1
- package/api/types/Draft.d.ts +4 -0
- package/api/types/Draft.d.ts.map +1 -1
- package/api/types/Draft.js.map +1 -1
- package/api/types/DraftFilter.d.ts +4 -1
- package/api/types/DraftFilter.d.ts.map +1 -1
- package/api/types/DraftFilter.js.map +1 -1
- package/api/types/LinkedRef.d.ts +22 -0
- package/api/types/LinkedRef.d.ts.map +1 -0
- package/api/types/LinkedRef.js +6 -0
- package/api/types/LinkedRef.js.map +1 -0
- package/api/types/LinkedResourceRef.d.ts +14 -0
- package/api/types/LinkedResourceRef.d.ts.map +1 -0
- package/api/types/LinkedResourceRef.js +6 -0
- package/api/types/LinkedResourceRef.js.map +1 -0
- package/api/types/Presentation.d.ts +3 -0
- package/api/types/Presentation.d.ts.map +1 -1
- package/api/types/Presentation.js.map +1 -1
- package/api/types/PresentationFilter.d.ts +3 -1
- package/api/types/PresentationFilter.d.ts.map +1 -1
- package/api/types/PresentationFilter.js.map +1 -1
- package/api/types/UploadResponse.d.ts +1 -4
- package/api/types/UploadResponse.d.ts.map +1 -1
- package/api/types/UploadResponse.js.map +1 -1
- package/api/types/index.d.ts +2 -0
- package/api/types/index.d.ts.map +1 -1
- package/api/types/index.js +2 -0
- package/api/types/index.js.map +1 -1
- package/documents/credential/claims.d.ts.map +1 -1
- package/documents/credential/claims.js +10 -9
- package/documents/credential/claims.js.map +1 -1
- package/documents/credential.d.ts.map +1 -1
- package/documents/credential.js +3 -2
- package/documents/credential.js.map +1 -1
- package/documents/utils/error.d.ts +9 -0
- package/documents/utils/error.d.ts.map +1 -0
- package/documents/utils/error.js +14 -0
- package/documents/utils/error.js.map +1 -0
- package/documents/utils/error.spec.d.ts +2 -0
- package/documents/utils/error.spec.d.ts.map +1 -0
- package/documents/utils/error.spec.js +9 -0
- package/documents/utils/error.spec.js.map +1 -0
- package/package.json +1 -1
- package/reference.md +48 -10
- package/serialization/types/Credential.d.ts +3 -0
- package/serialization/types/Credential.d.ts.map +1 -1
- package/serialization/types/Credential.js +3 -0
- package/serialization/types/Credential.js.map +1 -1
- package/serialization/types/CredentialFilter.d.ts +5 -1
- package/serialization/types/CredentialFilter.d.ts.map +1 -1
- package/serialization/types/CredentialFilter.js +41 -1
- package/serialization/types/CredentialFilter.js.map +1 -1
- package/serialization/types/Draft.d.ts +4 -0
- package/serialization/types/Draft.d.ts.map +1 -1
- package/serialization/types/Draft.js +4 -0
- package/serialization/types/Draft.js.map +1 -1
- package/serialization/types/DraftFilter.d.ts +5 -1
- package/serialization/types/DraftFilter.d.ts.map +1 -1
- package/serialization/types/DraftFilter.js +41 -1
- package/serialization/types/DraftFilter.js.map +1 -1
- package/serialization/types/LinkedRef.d.ts +15 -0
- package/serialization/types/LinkedRef.d.ts.map +1 -0
- package/serialization/types/LinkedRef.js +46 -0
- package/serialization/types/LinkedRef.js.map +1 -0
- package/serialization/types/LinkedResourceRef.d.ts +13 -0
- package/serialization/types/LinkedResourceRef.d.ts.map +1 -0
- package/serialization/types/LinkedResourceRef.js +44 -0
- package/serialization/types/LinkedResourceRef.js.map +1 -0
- package/serialization/types/Presentation.d.ts +2 -0
- package/serialization/types/Presentation.d.ts.map +1 -1
- package/serialization/types/Presentation.js +2 -0
- package/serialization/types/Presentation.js.map +1 -1
- package/serialization/types/PresentationFilter.d.ts +4 -1
- package/serialization/types/PresentationFilter.d.ts.map +1 -1
- package/serialization/types/PresentationFilter.js +40 -1
- package/serialization/types/PresentationFilter.js.map +1 -1
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.d.ts.map +1 -1
- package/serialization/types/index.js +2 -0
- package/serialization/types/index.js.map +1 -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.
|
|
102
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
|
|
@@ -212,7 +212,7 @@ class ApiKeys {
|
|
|
212
212
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
213
213
|
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'),
|
|
214
214
|
method: 'POST',
|
|
215
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
215
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
|
|
216
216
|
contentType: 'application/json',
|
|
217
217
|
requestType: 'json',
|
|
218
218
|
body: serializers.ApiKeySearchRequest.jsonOrThrow(request, {
|
|
@@ -330,7 +330,7 @@ class ApiKeys {
|
|
|
330
330
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
331
331
|
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)}`),
|
|
332
332
|
method: 'GET',
|
|
333
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
333
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
|
|
334
334
|
contentType: 'application/json',
|
|
335
335
|
requestType: 'json',
|
|
336
336
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -449,7 +449,7 @@ class ApiKeys {
|
|
|
449
449
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
450
450
|
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)}`),
|
|
451
451
|
method: 'DELETE',
|
|
452
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
452
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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
453
|
contentType: 'application/json',
|
|
454
454
|
requestType: 'json',
|
|
455
455
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -578,7 +578,7 @@ class ApiKeys {
|
|
|
578
578
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
579
579
|
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`),
|
|
580
580
|
method: 'PATCH',
|
|
581
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
581
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
|
|
582
582
|
contentType: 'application/json',
|
|
583
583
|
requestType: 'json',
|
|
584
584
|
body: serializers.ApiKeyUpdateAnnotationsInput.jsonOrThrow(_body, {
|
|
@@ -726,7 +726,7 @@ class ApiKeys {
|
|
|
726
726
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
727
727
|
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`),
|
|
728
728
|
method: 'PATCH',
|
|
729
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
729
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
|
|
730
730
|
contentType: 'application/json',
|
|
731
731
|
requestType: 'json',
|
|
732
732
|
body: serializers.ApiKeyUpdateLabelsInput.jsonOrThrow(_body, {
|
|
@@ -870,7 +870,7 @@ class ApiKeys {
|
|
|
870
870
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
871
871
|
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`),
|
|
872
872
|
method: 'POST',
|
|
873
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
873
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
|
|
874
874
|
contentType: 'application/json',
|
|
875
875
|
requestType: 'json',
|
|
876
876
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -998,7 +998,7 @@ class ApiKeys {
|
|
|
998
998
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
999
999
|
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`),
|
|
1000
1000
|
method: 'GET',
|
|
1001
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1001
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
|
|
1002
1002
|
contentType: 'application/json',
|
|
1003
1003
|
requestType: 'json',
|
|
1004
1004
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1113,7 +1113,7 @@ class ApiKeys {
|
|
|
1113
1113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1114
1114
|
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)}`),
|
|
1115
1115
|
method: 'GET',
|
|
1116
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1116
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.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),
|
|
1117
1117
|
contentType: 'application/json',
|
|
1118
1118
|
requestType: 'json',
|
|
1119
1119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|