@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.
Files changed (29) hide show
  1. package/api/resources/apiKeys/client/Client.js +9 -9
  2. package/api/resources/apiKeys/client/Client.js.map +1 -1
  3. package/api/resources/credentials/client/Client.d.ts +10 -2
  4. package/api/resources/credentials/client/Client.d.ts.map +1 -1
  5. package/api/resources/credentials/client/Client.js +22 -14
  6. package/api/resources/credentials/client/Client.js.map +1 -1
  7. package/api/resources/desk/client/Client.js +2 -2
  8. package/api/resources/desk/client/Client.js.map +1 -1
  9. package/api/resources/didcommMessages/client/Client.js +9 -9
  10. package/api/resources/didcommMessages/client/Client.js.map +1 -1
  11. package/api/resources/dids/client/Client.js +1 -1
  12. package/api/resources/dids/client/Client.js.map +1 -1
  13. package/api/resources/drafts/client/Client.d.ts +1 -1
  14. package/api/resources/drafts/client/Client.js +13 -13
  15. package/api/resources/drafts/client/Client.js.map +1 -1
  16. package/api/resources/files/client/Client.d.ts +10 -2
  17. package/api/resources/files/client/Client.d.ts.map +1 -1
  18. package/api/resources/files/client/Client.js +22 -14
  19. package/api/resources/files/client/Client.js.map +1 -1
  20. package/api/resources/gdpr/client/Client.js +1 -1
  21. package/api/resources/gdpr/client/Client.js.map +1 -1
  22. package/api/resources/keys/client/Client.js +13 -13
  23. package/api/resources/keys/client/Client.js.map +1 -1
  24. package/api/resources/presentations/client/Client.d.ts +10 -2
  25. package/api/resources/presentations/client/Client.d.ts.map +1 -1
  26. package/api/resources/presentations/client/Client.js +24 -16
  27. package/api/resources/presentations/client/Client.js.map +1 -1
  28. package/package.json +1 -1
  29. package/reference.md +31 -7
@@ -30,7 +30,9 @@ export declare class Files {
30
30
  protected readonly _options: Files.Options;
31
31
  constructor(_options?: Files.Options);
32
32
  /**
33
- * Create File's resource.
33
+ * Creates File's resource with **blob_id**.
34
+ *
35
+ * To get **blob_id** call [Upload](#tag/files/operation/FileUpload) first.
34
36
  *
35
37
  * @param {Truvity.FileInput} request
36
38
  * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
@@ -68,7 +70,13 @@ export declare class Files {
68
70
  */
69
71
  fileSearch(request?: Truvity.FileSearchRequest, requestOptions?: Files.RequestOptions): Promise<Truvity.ListFile>;
70
72
  /**
71
- * The upload File's blob operation.
73
+ * Initiates a File blob upload, returning a pre-signed S3 URL. Response contains:
74
+ *
75
+ * - **blob_id** (required for File creation)
76
+ *
77
+ * - **upload_uri** (pre-signed URL for upload)
78
+ *
79
+ * - **timeout** (expiration in seconds).
72
80
  *
73
81
  * @param {Truvity.FileUploadRequest} request
74
82
  * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
@@ -1 +1 @@
1
- {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/files/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,KAAK,CAAC;IAC3B,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,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,E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CAAC,OAAO,CAAC,YAAY,CAAC;IAiJhC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACU,WAAW,CACpB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,CAAC,kBAAkB,EACnC,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,GACtC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC;IAoIhC;;;;;;;;;;;;;;;;OAgBG;IACU,WAAW,CACpB,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,OAAO,CAAC,kBAAuB,EACxC,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,GACtC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;IAiH5B;;;;;;;;;;;;;;;;;OAiBG;IACU,YAAY,CACrB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,mBAAwB,EACzC,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,GACtC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC;IAmHhC;;;;;;;;OAQG;IACU,YAAY,CACrB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,mBAAwB,EACzC,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,GACtC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;cA+GX,8BAA8B;;;CAIjD"}
@@ -64,7 +64,9 @@ class Files {
64
64
  this._options = _options;
65
65
  }
66
66
  /**
67
- * Create File's resource.
67
+ * Creates File's resource with **blob_id**.
68
+ *
69
+ * To get **blob_id** call [Upload](#tag/files/operation/FileUpload) first.
68
70
  *
69
71
  * @param {Truvity.FileInput} request
70
72
  * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
@@ -92,7 +94,7 @@ class Files {
92
94
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
95
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'files'),
94
96
  method: 'POST',
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),
97
+ 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),
96
98
  contentType: 'application/json',
97
99
  queryParameters: _queryParams,
98
100
  requestType: 'json',
@@ -204,7 +206,7 @@ class Files {
204
206
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
205
207
  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
208
  method: 'POST',
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),
209
+ 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),
208
210
  contentType: 'application/json',
209
211
  requestType: 'json',
210
212
  body: serializers.FileSearchRequest.jsonOrThrow(request, {
@@ -290,7 +292,13 @@ class Files {
290
292
  });
291
293
  }
292
294
  /**
293
- * The upload File's blob operation.
295
+ * Initiates a File blob upload, returning a pre-signed S3 URL. Response contains:
296
+ *
297
+ * - **blob_id** (required for File creation)
298
+ *
299
+ * - **upload_uri** (pre-signed URL for upload)
300
+ *
301
+ * - **timeout** (expiration in seconds).
294
302
  *
295
303
  * @param {Truvity.FileUploadRequest} request
296
304
  * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
@@ -311,7 +319,7 @@ class Files {
311
319
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
312
320
  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
321
  method: 'POST',
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),
322
+ 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),
315
323
  contentType: 'application/json',
316
324
  requestType: 'json',
317
325
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -409,7 +417,7 @@ class Files {
409
417
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
410
418
  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
419
  method: 'GET',
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),
420
+ 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),
413
421
  contentType: 'application/json',
414
422
  requestType: 'json',
415
423
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -519,7 +527,7 @@ class Files {
519
527
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
520
528
  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
529
  method: 'DELETE',
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),
530
+ 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),
523
531
  contentType: 'application/json',
524
532
  requestType: 'json',
525
533
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -644,7 +652,7 @@ class Files {
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, `files/${encodeURIComponent(id)}`),
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.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),
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
  queryParameters: _queryParams,
650
658
  requestType: 'json',
@@ -784,7 +792,7 @@ class Files {
784
792
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
785
793
  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
794
  method: 'PATCH',
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),
795
+ 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),
788
796
  contentType: 'application/json',
789
797
  requestType: 'json',
790
798
  body: serializers.FileUpdateAnnotationsInput.jsonOrThrow(_body, {
@@ -923,7 +931,7 @@ class Files {
923
931
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
924
932
  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
933
  method: 'PATCH',
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),
934
+ 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),
927
935
  contentType: 'application/json',
928
936
  requestType: 'json',
929
937
  body: serializers.FileUpdateLabelsInput.jsonOrThrow(_body, {
@@ -1058,7 +1066,7 @@ class Files {
1058
1066
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1059
1067
  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
1068
  method: 'POST',
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),
1069
+ 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),
1062
1070
  contentType: 'application/json',
1063
1071
  requestType: 'json',
1064
1072
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1177,7 +1185,7 @@ class Files {
1177
1185
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1178
1186
  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
1187
  method: 'GET',
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),
1188
+ 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),
1181
1189
  contentType: 'application/json',
1182
1190
  requestType: 'json',
1183
1191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1283,7 +1291,7 @@ class Files {
1283
1291
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1284
1292
  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
1293
  method: 'GET',
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),
1294
+ 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),
1287
1295
  contentType: 'application/json',
1288
1296
  requestType: 'json',
1289
1297
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1380,7 +1388,7 @@ class Files {
1380
1388
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1381
1389
  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
1390
  method: 'GET',
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),
1391
+ 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),
1384
1392
  contentType: 'application/json',
1385
1393
  requestType: 'json',
1386
1394
  responseType: 'streaming',