minikai 1.17.1 → 1.18.0

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/README.md CHANGED
@@ -14,6 +14,7 @@ The Minikai TypeScript library provides convenient access to the Minikai APIs fr
14
14
  - [Request and Response Types](#request-and-response-types)
15
15
  - [Exception Handling](#exception-handling)
16
16
  - [File Uploads](#file-uploads)
17
+ - [Binary Response](#binary-response)
17
18
  - [Advanced](#advanced)
18
19
  - [Subpackage Exports](#subpackage-exports)
19
20
  - [Additional Headers](#additional-headers)
@@ -140,6 +141,395 @@ The metadata is used to set the `Content-Length`, `Content-Type`, and `Content-D
140
141
  For example, `fs.ReadStream` has a `path` property which the SDK uses to retrieve the file size from the filesystem without loading it into memory.
141
142
 
142
143
 
144
+ ## Binary Response
145
+
146
+ You can consume binary data from endpoints using the `BinaryResponse` type which lets you choose how to consume the data:
147
+
148
+ ```typescript
149
+ const response = await client.minis.downloadMiniProfilePicture(...);
150
+ const stream: ReadableStream<Uint8Array> = response.stream();
151
+ // const arrayBuffer: ArrayBuffer = await response.arrayBuffer();
152
+ // const blob: Blob = response.blob();
153
+ // const bytes: Uint8Array = response.bytes();
154
+ // You can only use the response body once, so you must choose one of the above methods.
155
+ // If you want to check if the response body has been used, you can use the following property.
156
+ const bodyUsed = response.bodyUsed;
157
+ ```
158
+ <details>
159
+ <summary>Save binary response to a file</summary>
160
+
161
+ <blockquote>
162
+ <details>
163
+ <summary>Node.js</summary>
164
+
165
+ <blockquote>
166
+ <details>
167
+ <summary>ReadableStream (most-efficient)</summary>
168
+
169
+ ```ts
170
+ import { createWriteStream } from 'fs';
171
+ import { Readable } from 'stream';
172
+ import { pipeline } from 'stream/promises';
173
+
174
+ const response = await client.minis.downloadMiniProfilePicture(...);
175
+
176
+ const stream = response.stream();
177
+ const nodeStream = Readable.fromWeb(stream);
178
+ const writeStream = createWriteStream('path/to/file');
179
+
180
+ await pipeline(nodeStream, writeStream);
181
+ ```
182
+
183
+ </details>
184
+ </blockquote>
185
+
186
+ <blockquote>
187
+ <details>
188
+ <summary>ArrayBuffer</summary>
189
+
190
+ ```ts
191
+ import { writeFile } from 'fs/promises';
192
+
193
+ const response = await client.minis.downloadMiniProfilePicture(...);
194
+
195
+ const arrayBuffer = await response.arrayBuffer();
196
+ await writeFile('path/to/file', Buffer.from(arrayBuffer));
197
+ ```
198
+
199
+ </details>
200
+ </blockquote>
201
+
202
+ <blockquote>
203
+ <details>
204
+ <summary>Blob</summary>
205
+
206
+ ```ts
207
+ import { writeFile } from 'fs/promises';
208
+
209
+ const response = await client.minis.downloadMiniProfilePicture(...);
210
+
211
+ const blob = await response.blob();
212
+ const arrayBuffer = await blob.arrayBuffer();
213
+ await writeFile('output.bin', Buffer.from(arrayBuffer));
214
+ ```
215
+
216
+ </details>
217
+ </blockquote>
218
+
219
+ <blockquote>
220
+ <details>
221
+ <summary>Bytes (UIntArray8)</summary>
222
+
223
+ ```ts
224
+ import { writeFile } from 'fs/promises';
225
+
226
+ const response = await client.minis.downloadMiniProfilePicture(...);
227
+
228
+ const bytes = await response.bytes();
229
+ await writeFile('path/to/file', bytes);
230
+ ```
231
+
232
+ </details>
233
+ </blockquote>
234
+
235
+ </details>
236
+ </blockquote>
237
+
238
+ <blockquote>
239
+ <details>
240
+ <summary>Bun</summary>
241
+
242
+ <blockquote>
243
+ <details>
244
+ <summary>ReadableStream (most-efficient)</summary>
245
+
246
+ ```ts
247
+ const response = await client.minis.downloadMiniProfilePicture(...);
248
+
249
+ const stream = response.stream();
250
+ await Bun.write('path/to/file', stream);
251
+ ```
252
+
253
+ </details>
254
+ </blockquote>
255
+
256
+ <blockquote>
257
+ <details>
258
+ <summary>ArrayBuffer</summary>
259
+
260
+ ```ts
261
+ const response = await client.minis.downloadMiniProfilePicture(...);
262
+
263
+ const arrayBuffer = await response.arrayBuffer();
264
+ await Bun.write('path/to/file', arrayBuffer);
265
+ ```
266
+
267
+ </details>
268
+ </blockquote>
269
+
270
+ <blockquote>
271
+ <details>
272
+ <summary>Blob</summary>
273
+
274
+ ```ts
275
+ const response = await client.minis.downloadMiniProfilePicture(...);
276
+
277
+ const blob = await response.blob();
278
+ await Bun.write('path/to/file', blob);
279
+ ```
280
+
281
+ </details>
282
+ </blockquote>
283
+
284
+ <blockquote>
285
+ <details>
286
+ <summary>Bytes (UIntArray8)</summary>
287
+
288
+ ```ts
289
+ const response = await client.minis.downloadMiniProfilePicture(...);
290
+
291
+ const bytes = await response.bytes();
292
+ await Bun.write('path/to/file', bytes);
293
+ ```
294
+
295
+ </details>
296
+ </blockquote>
297
+
298
+ </details>
299
+ </blockquote>
300
+
301
+ <blockquote>
302
+ <details>
303
+ <summary>Deno</summary>
304
+
305
+ <blockquote>
306
+ <details>
307
+ <summary>ReadableStream (most-efficient)</summary>
308
+
309
+ ```ts
310
+ const response = await client.minis.downloadMiniProfilePicture(...);
311
+
312
+ const stream = response.stream();
313
+ const file = await Deno.open('path/to/file', { write: true, create: true });
314
+ await stream.pipeTo(file.writable);
315
+ ```
316
+
317
+ </details>
318
+ </blockquote>
319
+
320
+ <blockquote>
321
+ <details>
322
+ <summary>ArrayBuffer</summary>
323
+
324
+ ```ts
325
+ const response = await client.minis.downloadMiniProfilePicture(...);
326
+
327
+ const arrayBuffer = await response.arrayBuffer();
328
+ await Deno.writeFile('path/to/file', new Uint8Array(arrayBuffer));
329
+ ```
330
+
331
+ </details>
332
+ </blockquote>
333
+
334
+ <blockquote>
335
+ <details>
336
+ <summary>Blob</summary>
337
+
338
+ ```ts
339
+ const response = await client.minis.downloadMiniProfilePicture(...);
340
+
341
+ const blob = await response.blob();
342
+ const arrayBuffer = await blob.arrayBuffer();
343
+ await Deno.writeFile('path/to/file', new Uint8Array(arrayBuffer));
344
+ ```
345
+
346
+ </details>
347
+ </blockquote>
348
+
349
+ <blockquote>
350
+ <details>
351
+ <summary>Bytes (UIntArray8)</summary>
352
+
353
+ ```ts
354
+ const response = await client.minis.downloadMiniProfilePicture(...);
355
+
356
+ const bytes = await response.bytes();
357
+ await Deno.writeFile('path/to/file', bytes);
358
+ ```
359
+
360
+ </details>
361
+ </blockquote>
362
+
363
+ </details>
364
+ </blockquote>
365
+
366
+ <blockquote>
367
+ <details>
368
+ <summary>Browser</summary>
369
+
370
+ <blockquote>
371
+ <details>
372
+ <summary>Blob (most-efficient)</summary>
373
+
374
+ ```ts
375
+ const response = await client.minis.downloadMiniProfilePicture(...);
376
+
377
+ const blob = await response.blob();
378
+ const url = URL.createObjectURL(blob);
379
+
380
+ // trigger download
381
+ const a = document.createElement('a');
382
+ a.href = url;
383
+ a.download = 'filename';
384
+ a.click();
385
+ URL.revokeObjectURL(url);
386
+ ```
387
+
388
+ </details>
389
+ </blockquote>
390
+
391
+ <blockquote>
392
+ <details>
393
+ <summary>ReadableStream</summary>
394
+
395
+ ```ts
396
+ const response = await client.minis.downloadMiniProfilePicture(...);
397
+
398
+ const stream = response.stream();
399
+ const reader = stream.getReader();
400
+ const chunks = [];
401
+
402
+ while (true) {
403
+ const { done, value } = await reader.read();
404
+ if (done) break;
405
+ chunks.push(value);
406
+ }
407
+
408
+ const blob = new Blob(chunks);
409
+ const url = URL.createObjectURL(blob);
410
+
411
+ // trigger download
412
+ const a = document.createElement('a');
413
+ a.href = url;
414
+ a.download = 'filename';
415
+ a.click();
416
+ URL.revokeObjectURL(url);
417
+ ```
418
+
419
+ </details>
420
+ </blockquote>
421
+
422
+ <blockquote>
423
+ <details>
424
+ <summary>ArrayBuffer</summary>
425
+
426
+ ```ts
427
+ const response = await client.minis.downloadMiniProfilePicture(...);
428
+
429
+ const arrayBuffer = await response.arrayBuffer();
430
+ const blob = new Blob([arrayBuffer]);
431
+ const url = URL.createObjectURL(blob);
432
+
433
+ // trigger download
434
+ const a = document.createElement('a');
435
+ a.href = url;
436
+ a.download = 'filename';
437
+ a.click();
438
+ URL.revokeObjectURL(url);
439
+ ```
440
+
441
+ </details>
442
+ </blockquote>
443
+
444
+ <blockquote>
445
+ <details>
446
+ <summary>Bytes (UIntArray8)</summary>
447
+
448
+ ```ts
449
+ const response = await client.minis.downloadMiniProfilePicture(...);
450
+
451
+ const bytes = await response.bytes();
452
+ const blob = new Blob([bytes]);
453
+ const url = URL.createObjectURL(blob);
454
+
455
+ // trigger download
456
+ const a = document.createElement('a');
457
+ a.href = url;
458
+ a.download = 'filename';
459
+ a.click();
460
+ URL.revokeObjectURL(url);
461
+ ```
462
+
463
+ </details>
464
+ </blockquote>
465
+
466
+ </details>
467
+ </blockquote>
468
+
469
+ </details>
470
+ </blockquote>
471
+
472
+ <details>
473
+ <summary>Convert binary response to text</summary>
474
+
475
+ <blockquote>
476
+ <details>
477
+ <summary>ReadableStream</summary>
478
+
479
+ ```ts
480
+ const response = await client.minis.downloadMiniProfilePicture(...);
481
+
482
+ const stream = response.stream();
483
+ const text = await new Response(stream).text();
484
+ ```
485
+
486
+ </details>
487
+ </blockquote>
488
+
489
+ <blockquote>
490
+ <details>
491
+ <summary>ArrayBuffer</summary>
492
+
493
+ ```ts
494
+ const response = await client.minis.downloadMiniProfilePicture(...);
495
+
496
+ const arrayBuffer = await response.arrayBuffer();
497
+ const text = new TextDecoder().decode(arrayBuffer);
498
+ ```
499
+
500
+ </details>
501
+ </blockquote>
502
+
503
+ <blockquote>
504
+ <details>
505
+ <summary>Blob</summary>
506
+
507
+ ```ts
508
+ const response = await client.minis.downloadMiniProfilePicture(...);
509
+
510
+ const blob = await response.blob();
511
+ const text = await blob.text();
512
+ ```
513
+
514
+ </details>
515
+ </blockquote>
516
+
517
+ <blockquote>
518
+ <details>
519
+ <summary>Bytes (UIntArray8)</summary>
520
+
521
+ ```ts
522
+ const response = await client.minis.downloadMiniProfilePicture(...);
523
+
524
+ const bytes = await response.bytes();
525
+ const text = new TextDecoder().decode(bytes);
526
+ ```
527
+
528
+ </details>
529
+ </blockquote>
530
+
531
+ </details>
532
+
143
533
  ## Advanced
144
534
 
145
535
  ### Subpackage Exports
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "minikai",
46
- "X-Fern-SDK-Version": "1.17.1",
47
- "User-Agent": "minikai/1.17.1",
46
+ "X-Fern-SDK-Version": "1.18.0",
47
+ "User-Agent": "minikai/1.18.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -176,7 +176,7 @@ export declare class MinisClient {
176
176
  * Retrieve a single version of a Mini.
177
177
  *
178
178
  * @param {string} id - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
179
- * @param {string} versionId - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
179
+ * @param {string} versionId
180
180
  * @param {MinisClient.RequestOptions} requestOptions - Request-specific configuration.
181
181
  *
182
182
  * @throws {@link Minikai.NotFoundError}
@@ -217,4 +217,11 @@ export declare class MinisClient {
217
217
  */
218
218
  deleteMiniProfilePicture(id: string, requestOptions?: MinisClient.RequestOptions): core.HttpResponsePromise<void>;
219
219
  private __deleteMiniProfilePicture;
220
+ /**
221
+ * Download a Mini's profile picture by its stored picture id.
222
+ *
223
+ * @throws {@link Minikai.NotFoundError}
224
+ */
225
+ downloadMiniProfilePicture(id: string, pictureId: string, requestOptions?: MinisClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
226
+ private __downloadMiniProfilePicture;
220
227
  }
@@ -656,7 +656,7 @@ class MinisClient {
656
656
  * Retrieve a single version of a Mini.
657
657
  *
658
658
  * @param {string} id - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
659
- * @param {string} versionId - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
659
+ * @param {string} versionId
660
660
  * @param {MinisClient.RequestOptions} requestOptions - Request-specific configuration.
661
661
  *
662
662
  * @throws {@link Minikai.NotFoundError}
@@ -810,5 +810,48 @@ class MinisClient {
810
810
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/v1/Minis/{id}/profile-picture");
811
811
  });
812
812
  }
813
+ /**
814
+ * Download a Mini's profile picture by its stored picture id.
815
+ *
816
+ * @throws {@link Minikai.NotFoundError}
817
+ */
818
+ downloadMiniProfilePicture(id, pictureId, requestOptions) {
819
+ return core.HttpResponsePromise.fromPromise(this.__downloadMiniProfilePicture(id, pictureId, requestOptions));
820
+ }
821
+ __downloadMiniProfilePicture(id, pictureId, requestOptions) {
822
+ return __awaiter(this, void 0, void 0, function* () {
823
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
824
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
825
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
826
+ const _response = yield core.fetcher({
827
+ url: core.url.join((_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.MinikaiEnvironment.Default, `api/v1/Minis/${core.url.encodePathParam(id)}/profile-picture/${core.url.encodePathParam(pictureId)}`),
828
+ method: "GET",
829
+ headers: _headers,
830
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
831
+ responseType: "binary-response",
832
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
833
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
834
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
835
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
836
+ logging: this._options.logging,
837
+ });
838
+ if (_response.ok) {
839
+ return { data: _response.body, rawResponse: _response.rawResponse };
840
+ }
841
+ if (_response.error.reason === "status-code") {
842
+ switch (_response.error.statusCode) {
843
+ case 404:
844
+ throw new Minikai.NotFoundError(_response.error.body, _response.rawResponse);
845
+ default:
846
+ throw new errors.MinikaiError({
847
+ statusCode: _response.error.statusCode,
848
+ body: _response.error.body,
849
+ rawResponse: _response.rawResponse,
850
+ });
851
+ }
852
+ }
853
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/Minis/{id}/profile-picture/{pictureId}");
854
+ });
855
+ }
813
856
  }
814
857
  exports.MinisClient = MinisClient;
@@ -373,16 +373,9 @@ export declare class RecordsClient {
373
373
  /**
374
374
  * Download a Record's attachment.
375
375
  *
376
- * @param {string} recordId - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
377
- * @param {string} attachmentId
378
- * @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
379
- *
380
376
  * @throws {@link Minikai.NotFoundError}
381
- *
382
- * @example
383
- * await client.records.downloadAttachment("recordId", "attachmentId")
384
377
  */
385
- downloadAttachment(recordId: string, attachmentId: string, requestOptions?: RecordsClient.RequestOptions): core.HttpResponsePromise<void>;
378
+ downloadAttachment(recordId: string, attachmentId: string, requestOptions?: RecordsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
386
379
  private __downloadAttachment;
387
380
  /**
388
381
  * Link a Record to other Records.
@@ -1380,14 +1380,7 @@ class RecordsClient {
1380
1380
  /**
1381
1381
  * Download a Record's attachment.
1382
1382
  *
1383
- * @param {string} recordId - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
1384
- * @param {string} attachmentId
1385
- * @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
1386
- *
1387
1383
  * @throws {@link Minikai.NotFoundError}
1388
- *
1389
- * @example
1390
- * await client.records.downloadAttachment("recordId", "attachmentId")
1391
1384
  */
1392
1385
  downloadAttachment(recordId, attachmentId, requestOptions) {
1393
1386
  return core.HttpResponsePromise.fromPromise(this.__downloadAttachment(recordId, attachmentId, requestOptions));
@@ -1402,6 +1395,7 @@ class RecordsClient {
1402
1395
  method: "GET",
1403
1396
  headers: _headers,
1404
1397
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1398
+ responseType: "binary-response",
1405
1399
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
1406
1400
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
1407
1401
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1409,7 +1403,7 @@ class RecordsClient {
1409
1403
  logging: this._options.logging,
1410
1404
  });
1411
1405
  if (_response.ok) {
1412
- return { data: undefined, rawResponse: _response.rawResponse };
1406
+ return { data: _response.body, rawResponse: _response.rawResponse };
1413
1407
  }
1414
1408
  if (_response.error.reason === "status-code") {
1415
1409
  switch (_response.error.statusCode) {
@@ -170,4 +170,11 @@ export declare class SkillsClient {
170
170
  */
171
171
  deleteSkillAsset(id: string, assetName: string, requestOptions?: SkillsClient.RequestOptions): core.HttpResponsePromise<Minikai.SkillDto>;
172
172
  private __deleteSkillAsset;
173
+ /**
174
+ * Download a skill's asset by id.
175
+ *
176
+ * @throws {@link Minikai.NotFoundError}
177
+ */
178
+ downloadSkillAsset(id: string, assetId: string, requestOptions?: SkillsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
179
+ private __downloadSkillAsset;
173
180
  }
@@ -631,5 +631,48 @@ class SkillsClient {
631
631
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/v1/Skills/{id}/assets/{assetName}");
632
632
  });
633
633
  }
634
+ /**
635
+ * Download a skill's asset by id.
636
+ *
637
+ * @throws {@link Minikai.NotFoundError}
638
+ */
639
+ downloadSkillAsset(id, assetId, requestOptions) {
640
+ return core.HttpResponsePromise.fromPromise(this.__downloadSkillAsset(id, assetId, requestOptions));
641
+ }
642
+ __downloadSkillAsset(id, assetId, requestOptions) {
643
+ return __awaiter(this, void 0, void 0, function* () {
644
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
645
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
646
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
647
+ const _response = yield core.fetcher({
648
+ url: core.url.join((_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.MinikaiEnvironment.Default, `api/v1/Skills/${core.url.encodePathParam(id)}/assets/${core.url.encodePathParam(assetId)}`),
649
+ method: "GET",
650
+ headers: _headers,
651
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
652
+ responseType: "binary-response",
653
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
654
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
655
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
656
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
657
+ logging: this._options.logging,
658
+ });
659
+ if (_response.ok) {
660
+ return { data: _response.body, rawResponse: _response.rawResponse };
661
+ }
662
+ if (_response.error.reason === "status-code") {
663
+ switch (_response.error.statusCode) {
664
+ case 404:
665
+ throw new Minikai.NotFoundError(_response.error.body, _response.rawResponse);
666
+ default:
667
+ throw new errors.MinikaiError({
668
+ statusCode: _response.error.statusCode,
669
+ body: _response.error.body,
670
+ rawResponse: _response.rawResponse,
671
+ });
672
+ }
673
+ }
674
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/Skills/{id}/assets/{assetId}");
675
+ });
676
+ }
634
677
  }
635
678
  exports.SkillsClient = SkillsClient;
@@ -0,0 +1,7 @@
1
+ export interface StringSegment {
2
+ buffer?: (string | null) | undefined;
3
+ offset?: unknown | undefined;
4
+ length?: unknown | undefined;
5
+ value?: (string | null) | undefined;
6
+ hasValue?: boolean | undefined;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,6 +40,7 @@ export * from "./SkillAssetType.js";
40
40
  export * from "./SkillDto.js";
41
41
  export * from "./SkillState.js";
42
42
  export * from "./SkillSummaryDto.js";
43
+ export * from "./StringSegment.js";
43
44
  export * from "./UpsertRecordDto.js";
44
45
  export * from "./UpsertRecordsByExternalUriCommand.js";
45
46
  export * from "./UserDto.js";
@@ -56,6 +56,7 @@ __exportStar(require("./SkillAssetType.js"), exports);
56
56
  __exportStar(require("./SkillDto.js"), exports);
57
57
  __exportStar(require("./SkillState.js"), exports);
58
58
  __exportStar(require("./SkillSummaryDto.js"), exports);
59
+ __exportStar(require("./StringSegment.js"), exports);
59
60
  __exportStar(require("./UpsertRecordDto.js"), exports);
60
61
  __exportStar(require("./UpsertRecordsByExternalUriCommand.js"), exports);
61
62
  __exportStar(require("./UserDto.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.17.1";
1
+ export declare const SDK_VERSION = "1.18.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.17.1";
4
+ exports.SDK_VERSION = "1.18.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "minikai",
9
- "X-Fern-SDK-Version": "1.17.1",
10
- "User-Agent": "minikai/1.17.1",
9
+ "X-Fern-SDK-Version": "1.18.0",
10
+ "User-Agent": "minikai/1.18.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -176,7 +176,7 @@ export declare class MinisClient {
176
176
  * Retrieve a single version of a Mini.
177
177
  *
178
178
  * @param {string} id - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
179
- * @param {string} versionId - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
179
+ * @param {string} versionId
180
180
  * @param {MinisClient.RequestOptions} requestOptions - Request-specific configuration.
181
181
  *
182
182
  * @throws {@link Minikai.NotFoundError}
@@ -217,4 +217,11 @@ export declare class MinisClient {
217
217
  */
218
218
  deleteMiniProfilePicture(id: string, requestOptions?: MinisClient.RequestOptions): core.HttpResponsePromise<void>;
219
219
  private __deleteMiniProfilePicture;
220
+ /**
221
+ * Download a Mini's profile picture by its stored picture id.
222
+ *
223
+ * @throws {@link Minikai.NotFoundError}
224
+ */
225
+ downloadMiniProfilePicture(id: string, pictureId: string, requestOptions?: MinisClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
226
+ private __downloadMiniProfilePicture;
220
227
  }
@@ -620,7 +620,7 @@ export class MinisClient {
620
620
  * Retrieve a single version of a Mini.
621
621
  *
622
622
  * @param {string} id - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
623
- * @param {string} versionId - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
623
+ * @param {string} versionId
624
624
  * @param {MinisClient.RequestOptions} requestOptions - Request-specific configuration.
625
625
  *
626
626
  * @throws {@link Minikai.NotFoundError}
@@ -774,4 +774,47 @@ export class MinisClient {
774
774
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/api/v1/Minis/{id}/profile-picture");
775
775
  });
776
776
  }
777
+ /**
778
+ * Download a Mini's profile picture by its stored picture id.
779
+ *
780
+ * @throws {@link Minikai.NotFoundError}
781
+ */
782
+ downloadMiniProfilePicture(id, pictureId, requestOptions) {
783
+ return core.HttpResponsePromise.fromPromise(this.__downloadMiniProfilePicture(id, pictureId, requestOptions));
784
+ }
785
+ __downloadMiniProfilePicture(id, pictureId, requestOptions) {
786
+ return __awaiter(this, void 0, void 0, function* () {
787
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
788
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
789
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
790
+ const _response = yield core.fetcher({
791
+ url: core.url.join((_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.MinikaiEnvironment.Default, `api/v1/Minis/${core.url.encodePathParam(id)}/profile-picture/${core.url.encodePathParam(pictureId)}`),
792
+ method: "GET",
793
+ headers: _headers,
794
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
795
+ responseType: "binary-response",
796
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
797
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
798
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
799
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
800
+ logging: this._options.logging,
801
+ });
802
+ if (_response.ok) {
803
+ return { data: _response.body, rawResponse: _response.rawResponse };
804
+ }
805
+ if (_response.error.reason === "status-code") {
806
+ switch (_response.error.statusCode) {
807
+ case 404:
808
+ throw new Minikai.NotFoundError(_response.error.body, _response.rawResponse);
809
+ default:
810
+ throw new errors.MinikaiError({
811
+ statusCode: _response.error.statusCode,
812
+ body: _response.error.body,
813
+ rawResponse: _response.rawResponse,
814
+ });
815
+ }
816
+ }
817
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/Minis/{id}/profile-picture/{pictureId}");
818
+ });
819
+ }
777
820
  }
@@ -373,16 +373,9 @@ export declare class RecordsClient {
373
373
  /**
374
374
  * Download a Record's attachment.
375
375
  *
376
- * @param {string} recordId - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
377
- * @param {string} attachmentId
378
- * @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
379
- *
380
376
  * @throws {@link Minikai.NotFoundError}
381
- *
382
- * @example
383
- * await client.records.downloadAttachment("recordId", "attachmentId")
384
377
  */
385
- downloadAttachment(recordId: string, attachmentId: string, requestOptions?: RecordsClient.RequestOptions): core.HttpResponsePromise<void>;
378
+ downloadAttachment(recordId: string, attachmentId: string, requestOptions?: RecordsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
386
379
  private __downloadAttachment;
387
380
  /**
388
381
  * Link a Record to other Records.
@@ -1344,14 +1344,7 @@ export class RecordsClient {
1344
1344
  /**
1345
1345
  * Download a Record's attachment.
1346
1346
  *
1347
- * @param {string} recordId - Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
1348
- * @param {string} attachmentId
1349
- * @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
1350
- *
1351
1347
  * @throws {@link Minikai.NotFoundError}
1352
- *
1353
- * @example
1354
- * await client.records.downloadAttachment("recordId", "attachmentId")
1355
1348
  */
1356
1349
  downloadAttachment(recordId, attachmentId, requestOptions) {
1357
1350
  return core.HttpResponsePromise.fromPromise(this.__downloadAttachment(recordId, attachmentId, requestOptions));
@@ -1366,6 +1359,7 @@ export class RecordsClient {
1366
1359
  method: "GET",
1367
1360
  headers: _headers,
1368
1361
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1362
+ responseType: "binary-response",
1369
1363
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
1370
1364
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
1371
1365
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1373,7 +1367,7 @@ export class RecordsClient {
1373
1367
  logging: this._options.logging,
1374
1368
  });
1375
1369
  if (_response.ok) {
1376
- return { data: undefined, rawResponse: _response.rawResponse };
1370
+ return { data: _response.body, rawResponse: _response.rawResponse };
1377
1371
  }
1378
1372
  if (_response.error.reason === "status-code") {
1379
1373
  switch (_response.error.statusCode) {
@@ -170,4 +170,11 @@ export declare class SkillsClient {
170
170
  */
171
171
  deleteSkillAsset(id: string, assetName: string, requestOptions?: SkillsClient.RequestOptions): core.HttpResponsePromise<Minikai.SkillDto>;
172
172
  private __deleteSkillAsset;
173
+ /**
174
+ * Download a skill's asset by id.
175
+ *
176
+ * @throws {@link Minikai.NotFoundError}
177
+ */
178
+ downloadSkillAsset(id: string, assetId: string, requestOptions?: SkillsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
179
+ private __downloadSkillAsset;
173
180
  }
@@ -595,4 +595,47 @@ export class SkillsClient {
595
595
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/api/v1/Skills/{id}/assets/{assetName}");
596
596
  });
597
597
  }
598
+ /**
599
+ * Download a skill's asset by id.
600
+ *
601
+ * @throws {@link Minikai.NotFoundError}
602
+ */
603
+ downloadSkillAsset(id, assetId, requestOptions) {
604
+ return core.HttpResponsePromise.fromPromise(this.__downloadSkillAsset(id, assetId, requestOptions));
605
+ }
606
+ __downloadSkillAsset(id, assetId, requestOptions) {
607
+ return __awaiter(this, void 0, void 0, function* () {
608
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
609
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
610
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
611
+ const _response = yield core.fetcher({
612
+ url: core.url.join((_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.MinikaiEnvironment.Default, `api/v1/Skills/${core.url.encodePathParam(id)}/assets/${core.url.encodePathParam(assetId)}`),
613
+ method: "GET",
614
+ headers: _headers,
615
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
616
+ responseType: "binary-response",
617
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
618
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
619
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
620
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
621
+ logging: this._options.logging,
622
+ });
623
+ if (_response.ok) {
624
+ return { data: _response.body, rawResponse: _response.rawResponse };
625
+ }
626
+ if (_response.error.reason === "status-code") {
627
+ switch (_response.error.statusCode) {
628
+ case 404:
629
+ throw new Minikai.NotFoundError(_response.error.body, _response.rawResponse);
630
+ default:
631
+ throw new errors.MinikaiError({
632
+ statusCode: _response.error.statusCode,
633
+ body: _response.error.body,
634
+ rawResponse: _response.rawResponse,
635
+ });
636
+ }
637
+ }
638
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/Skills/{id}/assets/{assetId}");
639
+ });
640
+ }
598
641
  }
@@ -0,0 +1,7 @@
1
+ export interface StringSegment {
2
+ buffer?: (string | null) | undefined;
3
+ offset?: unknown | undefined;
4
+ length?: unknown | undefined;
5
+ value?: (string | null) | undefined;
6
+ hasValue?: boolean | undefined;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -40,6 +40,7 @@ export * from "./SkillAssetType.mjs";
40
40
  export * from "./SkillDto.mjs";
41
41
  export * from "./SkillState.mjs";
42
42
  export * from "./SkillSummaryDto.mjs";
43
+ export * from "./StringSegment.mjs";
43
44
  export * from "./UpsertRecordDto.mjs";
44
45
  export * from "./UpsertRecordsByExternalUriCommand.mjs";
45
46
  export * from "./UserDto.mjs";
@@ -40,6 +40,7 @@ export * from "./SkillAssetType.mjs";
40
40
  export * from "./SkillDto.mjs";
41
41
  export * from "./SkillState.mjs";
42
42
  export * from "./SkillSummaryDto.mjs";
43
+ export * from "./StringSegment.mjs";
43
44
  export * from "./UpsertRecordDto.mjs";
44
45
  export * from "./UpsertRecordsByExternalUriCommand.mjs";
45
46
  export * from "./UserDto.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.17.1";
1
+ export declare const SDK_VERSION = "1.18.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.17.1";
1
+ export const SDK_VERSION = "1.18.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minikai",
3
- "version": "1.17.1",
3
+ "version": "1.18.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -1059,7 +1059,7 @@ await client.minis.getMiniVersion("id", "versionId");
1059
1059
  <dl>
1060
1060
  <dd>
1061
1061
 
1062
- **versionId:** `string` — Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
1062
+ **versionId:** `string`
1063
1063
 
1064
1064
  </dd>
1065
1065
  </dl>
@@ -1211,6 +1211,77 @@ await client.minis.deleteMiniProfilePicture("id");
1211
1211
  </dl>
1212
1212
 
1213
1213
 
1214
+ </dd>
1215
+ </dl>
1216
+ </details>
1217
+
1218
+ <details><summary><code>client.minis.<a href="/src/api/resources/minis/client/Client.ts">downloadMiniProfilePicture</a>(id, pictureId) -> core.BinaryResponse</code></summary>
1219
+ <dl>
1220
+ <dd>
1221
+
1222
+ #### 📝 Description
1223
+
1224
+ <dl>
1225
+ <dd>
1226
+
1227
+ <dl>
1228
+ <dd>
1229
+
1230
+ Download a Mini's profile picture by its stored picture id.
1231
+ </dd>
1232
+ </dl>
1233
+ </dd>
1234
+ </dl>
1235
+
1236
+ #### 🔌 Usage
1237
+
1238
+ <dl>
1239
+ <dd>
1240
+
1241
+ <dl>
1242
+ <dd>
1243
+
1244
+ ```typescript
1245
+ await client.minis.downloadMiniProfilePicture("id", "pictureId");
1246
+
1247
+ ```
1248
+ </dd>
1249
+ </dl>
1250
+ </dd>
1251
+ </dl>
1252
+
1253
+ #### ⚙️ Parameters
1254
+
1255
+ <dl>
1256
+ <dd>
1257
+
1258
+ <dl>
1259
+ <dd>
1260
+
1261
+ **id:** `string` — Either the Minikai-assigned Guid for this resource (e.g. `abc12345-1234-1234-1234-123456789abc`) or the resource's `externalUri`, URL-encoded (e.g. `https%3A%2F%2Fpartner.example.com%2Fpatients%2F48291`). Responses always return the canonical Guid in the `id` field.
1262
+
1263
+ </dd>
1264
+ </dl>
1265
+
1266
+ <dl>
1267
+ <dd>
1268
+
1269
+ **pictureId:** `string`
1270
+
1271
+ </dd>
1272
+ </dl>
1273
+
1274
+ <dl>
1275
+ <dd>
1276
+
1277
+ **requestOptions:** `MinisClient.RequestOptions`
1278
+
1279
+ </dd>
1280
+ </dl>
1281
+ </dd>
1282
+ </dl>
1283
+
1284
+
1214
1285
  </dd>
1215
1286
  </dl>
1216
1287
  </details>
@@ -2728,7 +2799,7 @@ await client.records.removeAttachments("recordId", {
2728
2799
  </dl>
2729
2800
  </details>
2730
2801
 
2731
- <details><summary><code>client.records.<a href="/src/api/resources/records/client/Client.ts">downloadAttachment</a>(recordId, attachmentId) -> void</code></summary>
2802
+ <details><summary><code>client.records.<a href="/src/api/resources/records/client/Client.ts">downloadAttachment</a>(recordId, attachmentId) -> core.BinaryResponse</code></summary>
2732
2803
  <dl>
2733
2804
  <dd>
2734
2805
 
@@ -3998,6 +4069,77 @@ await client.skills.deleteSkillAsset("id", "assetName");
3998
4069
  </dl>
3999
4070
 
4000
4071
 
4072
+ </dd>
4073
+ </dl>
4074
+ </details>
4075
+
4076
+ <details><summary><code>client.skills.<a href="/src/api/resources/skills/client/Client.ts">downloadSkillAsset</a>(id, assetId) -> core.BinaryResponse</code></summary>
4077
+ <dl>
4078
+ <dd>
4079
+
4080
+ #### 📝 Description
4081
+
4082
+ <dl>
4083
+ <dd>
4084
+
4085
+ <dl>
4086
+ <dd>
4087
+
4088
+ Download a skill's asset by id.
4089
+ </dd>
4090
+ </dl>
4091
+ </dd>
4092
+ </dl>
4093
+
4094
+ #### 🔌 Usage
4095
+
4096
+ <dl>
4097
+ <dd>
4098
+
4099
+ <dl>
4100
+ <dd>
4101
+
4102
+ ```typescript
4103
+ await client.skills.downloadSkillAsset("id", "assetId");
4104
+
4105
+ ```
4106
+ </dd>
4107
+ </dl>
4108
+ </dd>
4109
+ </dl>
4110
+
4111
+ #### ⚙️ Parameters
4112
+
4113
+ <dl>
4114
+ <dd>
4115
+
4116
+ <dl>
4117
+ <dd>
4118
+
4119
+ **id:** `string`
4120
+
4121
+ </dd>
4122
+ </dl>
4123
+
4124
+ <dl>
4125
+ <dd>
4126
+
4127
+ **assetId:** `string`
4128
+
4129
+ </dd>
4130
+ </dl>
4131
+
4132
+ <dl>
4133
+ <dd>
4134
+
4135
+ **requestOptions:** `SkillsClient.RequestOptions`
4136
+
4137
+ </dd>
4138
+ </dl>
4139
+ </dd>
4140
+ </dl>
4141
+
4142
+
4001
4143
  </dd>
4002
4144
  </dl>
4003
4145
  </details>