@brigadasos/nadeshiko-sdk 1.4.3-dev.d3424ba → 1.5.0-dev.0c1011b

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
@@ -8,7 +8,7 @@ TypeScript SDK for the [Nadeshiko API](https://nadeshiko.co).
8
8
  bun add @brigadasos/nadeshiko-sdk
9
9
  ```
10
10
 
11
- Install the internal build (includes internal endpoints) via the `internal` dist-tag:
11
+ Install the internal build (includes internal + session-authenticated endpoints) via the `internal` dist-tag:
12
12
 
13
13
  ```bash
14
14
  bun add @brigadasos/nadeshiko-sdk@internal
@@ -21,20 +21,23 @@ bun add @brigadasos/nadeshiko-sdk@internal
21
21
  Use an API key for endpoints that don't require a user session. The key is sent as `Authorization: Bearer <apiKey>`.
22
22
 
23
23
  ```typescript
24
- import { createNadeshikoClient, searchSegments } from '@brigadasos/nadeshiko-sdk';
24
+ import { createNadeshikoClient, search } from '@brigadasos/nadeshiko-sdk';
25
25
 
26
26
  const client = createNadeshikoClient({
27
27
  apiKey: process.env.NADESHIKO_API_KEY!,
28
28
  baseUrl: 'PRODUCTION',
29
29
  });
30
30
 
31
- const result = await searchSegments({
31
+ const result = await search({
32
32
  client,
33
- body: { query: '彼女' },
33
+ body: { query: { search: '彼女' } },
34
34
  });
35
35
  ```
36
36
 
37
- ### Session token (user-authenticated endpoints)
37
+ ### Session token (user-authenticated endpoints, internal build only)
38
+
39
+ The default public package intentionally exposes API-key-capable endpoints only.
40
+ For session-authenticated endpoints (for example `/v1/user/*` and `/v1/collections/*`), use the internal build.
38
41
 
39
42
  Endpoints under `/v1/user/*` and `/v1/collections/*` require a user session. Pass a `sessionToken` getter that returns the value of the `nadeshiko.session_token` cookie — called fresh on every request.
40
43
 
@@ -60,23 +63,23 @@ export default defineEventHandler(async (event) => {
60
63
  });
61
64
  ```
62
65
 
63
- **Browser (no configuration needed):** the default `sessionToken` getter reads `nadeshiko.session_token` from `document.cookie` automatically.
66
+ **Browser note:** if your session cookie is `HttpOnly`, use same-origin proxy routes and let the browser attach cookies automatically. Prefer server-side session handling for internal endpoints.
64
67
 
65
68
  ### Error handling
66
69
 
67
70
  Every response returns a discriminated union with either `data` or `error`. The `error` object follows the [RFC 7807](https://tools.ietf.org/html/rfc7807) Problem Details format, so you always get a machine-readable `code` and a human-readable `detail`.
68
71
 
69
72
  ```typescript
70
- import { createNadeshikoClient, searchSegments } from '@brigadasos/nadeshiko-sdk';
73
+ import { createNadeshikoClient, search } from '@brigadasos/nadeshiko-sdk';
71
74
 
72
75
  const client = createNadeshikoClient({
73
76
  apiKey: process.env.NADESHIKO_API_KEY!,
74
77
  baseUrl: 'PRODUCTION',
75
78
  });
76
79
 
77
- const result = await searchSegments({
80
+ const result = await search({
78
81
  client,
79
- body: { query: '食べる' },
82
+ body: { query: { search: '食べる' } },
80
83
  });
81
84
 
82
85
  if (result.error) {
@@ -134,8 +137,8 @@ if (result.error) {
134
137
  }
135
138
 
136
139
  // result.data is fully typed as SearchResponse
137
- for (const hit of result.data.results ?? []) {
138
- console.log(hit.segment.ja.content, '—', hit.media.nameEn);
140
+ for (const segment of result.data.segments ?? []) {
141
+ console.log(segment.content.ja.content);
139
142
  }
140
143
  ```
141
144
 
@@ -145,13 +148,13 @@ If you prefer exceptions over checking `.error`, pass `throwOnError: true`. The
145
148
 
146
149
  ```typescript
147
150
  try {
148
- const { data } = await searchSegments({
151
+ const { data } = await search({
149
152
  client,
150
153
  throwOnError: true,
151
- body: { query: '彼女' },
154
+ body: { query: { search: '彼女' } },
152
155
  });
153
156
 
154
- console.log(data.results);
157
+ console.log(data.segments);
155
158
  } catch (error) {
156
159
  console.error('Request failed:', error);
157
160
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../../generated/dev/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAA8B,MAAM,UAAU,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,cAAc,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAEzJ,eAAO,MAAM,MAAM,2BAAmF,CAAC"}
1
+ {"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../../generated/dev/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAA8B,MAAM,UAAU,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,cAAc,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAEzJ,eAAO,MAAM,MAAM,2BAAsF,CAAC"}
package/dist/index.cjs CHANGED
@@ -112,6 +112,7 @@ __export(exports_dev, {
112
112
  createMedia: () => createMedia,
113
113
  createEpisode: () => createEpisode,
114
114
  createCollection: () => createCollection,
115
+ collections: () => exports_collections_gen,
115
116
  client: () => client,
116
117
  clearAdminImpersonation: () => clearAdminImpersonation,
117
118
  autocompleteMedia: () => autocompleteMedia,
@@ -921,15 +922,11 @@ var createClient = (config = {}) => {
921
922
  };
922
923
  };
923
924
  // generated/dev/client.gen.ts
924
- var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
925
+ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
925
926
 
926
927
  // generated/dev/sdk.gen.ts
927
928
  var search = (options) => (options?.client ?? client).post({
928
- security: [{ scheme: "bearer", type: "http" }, {
929
- in: "cookie",
930
- name: "nadeshiko.session_token",
931
- type: "apiKey"
932
- }],
929
+ security: [{ scheme: "bearer", type: "http" }],
933
930
  url: "/v1/search",
934
931
  ...options,
935
932
  headers: {
@@ -938,11 +935,7 @@ var search = (options) => (options?.client ?? client).post({
938
935
  }
939
936
  });
940
937
  var getSearchStats = (options) => (options?.client ?? client).post({
941
- security: [{ scheme: "bearer", type: "http" }, {
942
- in: "cookie",
943
- name: "nadeshiko.session_token",
944
- type: "apiKey"
945
- }],
938
+ security: [{ scheme: "bearer", type: "http" }],
946
939
  url: "/v1/search/stats",
947
940
  ...options,
948
941
  headers: {
@@ -951,11 +944,7 @@ var getSearchStats = (options) => (options?.client ?? client).post({
951
944
  }
952
945
  });
953
946
  var searchWords = (options) => (options.client ?? client).post({
954
- security: [{ scheme: "bearer", type: "http" }, {
955
- in: "cookie",
956
- name: "nadeshiko.session_token",
957
- type: "apiKey"
958
- }],
947
+ security: [{ scheme: "bearer", type: "http" }],
959
948
  url: "/v1/search/words",
960
949
  ...options,
961
950
  headers: {
@@ -983,7 +972,11 @@ var autocompleteMedia = (options) => (options.client ?? client).get({
983
972
  ...options
984
973
  });
985
974
  var getSegmentByUuid = (options) => (options.client ?? client).get({
986
- security: [{ scheme: "bearer", type: "http" }],
975
+ security: [{ scheme: "bearer", type: "http" }, {
976
+ in: "cookie",
977
+ name: "nadeshiko.session_token",
978
+ type: "apiKey"
979
+ }],
987
980
  url: "/v1/media/segments/{uuid}",
988
981
  ...options
989
982
  });
@@ -1001,16 +994,16 @@ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
1001
994
  }
1002
995
  });
1003
996
  var getSegmentContext = (options) => (options.client ?? client).get({
1004
- security: [{ scheme: "bearer", type: "http" }],
1005
- url: "/v1/media/segments/{uuid}/context",
1006
- ...options
1007
- });
1008
- var listSeries = (options) => (options?.client ?? client).get({
1009
997
  security: [{ scheme: "bearer", type: "http" }, {
1010
998
  in: "cookie",
1011
999
  name: "nadeshiko.session_token",
1012
1000
  type: "apiKey"
1013
1001
  }],
1002
+ url: "/v1/media/segments/{uuid}/context",
1003
+ ...options
1004
+ });
1005
+ var listSeries = (options) => (options?.client ?? client).get({
1006
+ security: [{ scheme: "bearer", type: "http" }],
1014
1007
  url: "/v1/media/series",
1015
1008
  ...options
1016
1009
  });
@@ -1029,11 +1022,7 @@ var deleteSeries = (options) => (options.client ?? client).delete({
1029
1022
  ...options
1030
1023
  });
1031
1024
  var getSeries = (options) => (options.client ?? client).get({
1032
- security: [{ scheme: "bearer", type: "http" }, {
1033
- in: "cookie",
1034
- name: "nadeshiko.session_token",
1035
- type: "apiKey"
1036
- }],
1025
+ security: [{ scheme: "bearer", type: "http" }],
1037
1026
  url: "/v1/media/series/{id}",
1038
1027
  ...options
1039
1028
  });
@@ -1169,7 +1158,7 @@ var getUserQuota = (options) => (options?.client ?? client).get({
1169
1158
  in: "cookie",
1170
1159
  name: "nadeshiko.session_token",
1171
1160
  type: "apiKey"
1172
- }, { scheme: "bearer", type: "http" }],
1161
+ }],
1173
1162
  url: "/v1/user/quota",
1174
1163
  ...options
1175
1164
  });
@@ -1418,17 +1407,29 @@ var getCollectionStats = (options) => (options.client ?? client).get({
1418
1407
  ...options
1419
1408
  });
1420
1409
  var getAdminDashboard = (options) => (options?.client ?? client).get({
1421
- security: [{ scheme: "bearer", type: "http" }],
1410
+ security: [{
1411
+ in: "cookie",
1412
+ name: "nadeshiko.session_token",
1413
+ type: "apiKey"
1414
+ }],
1422
1415
  url: "/v1/admin/dashboard",
1423
1416
  ...options
1424
1417
  });
1425
1418
  var getAdminHealth = (options) => (options?.client ?? client).get({
1426
- security: [{ scheme: "bearer", type: "http" }],
1419
+ security: [{
1420
+ in: "cookie",
1421
+ name: "nadeshiko.session_token",
1422
+ type: "apiKey"
1423
+ }],
1427
1424
  url: "/v1/admin/health",
1428
1425
  ...options
1429
1426
  });
1430
1427
  var triggerReindex = (options) => (options?.client ?? client).post({
1431
- security: [{ scheme: "bearer", type: "http" }],
1428
+ security: [{
1429
+ in: "cookie",
1430
+ name: "nadeshiko.session_token",
1431
+ type: "apiKey"
1432
+ }],
1432
1433
  url: "/v1/admin/reindex",
1433
1434
  ...options,
1434
1435
  headers: {
@@ -1437,45 +1438,52 @@ var triggerReindex = (options) => (options?.client ?? client).post({
1437
1438
  }
1438
1439
  });
1439
1440
  var listAdminQueueStats = (options) => (options?.client ?? client).get({
1440
- security: [{ scheme: "bearer", type: "http" }],
1441
+ security: [{
1442
+ in: "cookie",
1443
+ name: "nadeshiko.session_token",
1444
+ type: "apiKey"
1445
+ }],
1441
1446
  url: "/v1/admin/queues/stats",
1442
1447
  ...options
1443
1448
  });
1444
1449
  var getAdminQueue = (options) => (options.client ?? client).get({
1445
- security: [{ scheme: "bearer", type: "http" }],
1450
+ security: [{
1451
+ in: "cookie",
1452
+ name: "nadeshiko.session_token",
1453
+ type: "apiKey"
1454
+ }],
1446
1455
  url: "/v1/admin/queues/{queueName}",
1447
1456
  ...options
1448
1457
  });
1449
1458
  var listAdminQueueFailed = (options) => (options.client ?? client).get({
1450
- security: [{ scheme: "bearer", type: "http" }],
1459
+ security: [{
1460
+ in: "cookie",
1461
+ name: "nadeshiko.session_token",
1462
+ type: "apiKey"
1463
+ }],
1451
1464
  url: "/v1/admin/queues/{queueName}/failed",
1452
1465
  ...options
1453
1466
  });
1454
1467
  var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1455
- security: [{ scheme: "bearer", type: "http" }],
1456
- url: "/v1/admin/queues/{queueName}/retry",
1457
- ...options
1458
- });
1459
- var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1460
- security: [{ scheme: "bearer", type: "http" }],
1461
- url: "/v1/admin/queues/{queueName}/purge",
1462
- ...options
1463
- });
1464
- var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
1465
1468
  security: [{
1466
1469
  in: "cookie",
1467
1470
  name: "nadeshiko.session_token",
1468
1471
  type: "apiKey"
1469
1472
  }],
1470
- url: "/v1/admin/impersonation",
1473
+ url: "/v1/admin/queues/{queueName}/retry",
1471
1474
  ...options
1472
1475
  });
1473
- var impersonateAdminUser = (options) => (options.client ?? client).post({
1476
+ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1474
1477
  security: [{
1475
1478
  in: "cookie",
1476
1479
  name: "nadeshiko.session_token",
1477
1480
  type: "apiKey"
1478
1481
  }],
1482
+ url: "/v1/admin/queues/{queueName}/purge",
1483
+ ...options
1484
+ });
1485
+ var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
1486
+ var impersonateAdminUser = (options) => (options.client ?? client).post({
1479
1487
  url: "/v1/admin/impersonation",
1480
1488
  ...options,
1481
1489
  headers: {
@@ -1484,12 +1492,20 @@ var impersonateAdminUser = (options) => (options.client ?? client).post({
1484
1492
  }
1485
1493
  });
1486
1494
  var listAdminReports = (options) => (options?.client ?? client).get({
1487
- security: [{ scheme: "bearer", type: "http" }],
1495
+ security: [{
1496
+ in: "cookie",
1497
+ name: "nadeshiko.session_token",
1498
+ type: "apiKey"
1499
+ }],
1488
1500
  url: "/v1/admin/reports",
1489
1501
  ...options
1490
1502
  });
1491
1503
  var updateAdminReport = (options) => (options.client ?? client).patch({
1492
- security: [{ scheme: "bearer", type: "http" }],
1504
+ security: [{
1505
+ in: "cookie",
1506
+ name: "nadeshiko.session_token",
1507
+ type: "apiKey"
1508
+ }],
1493
1509
  url: "/v1/admin/reports/{id}",
1494
1510
  ...options,
1495
1511
  headers: {
@@ -1498,12 +1514,20 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
1498
1514
  }
1499
1515
  });
1500
1516
  var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1501
- security: [{ scheme: "bearer", type: "http" }],
1517
+ security: [{
1518
+ in: "cookie",
1519
+ name: "nadeshiko.session_token",
1520
+ type: "apiKey"
1521
+ }],
1502
1522
  url: "/v1/admin/media/audits",
1503
1523
  ...options
1504
1524
  });
1505
1525
  var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1506
- security: [{ scheme: "bearer", type: "http" }],
1526
+ security: [{
1527
+ in: "cookie",
1528
+ name: "nadeshiko.session_token",
1529
+ type: "apiKey"
1530
+ }],
1507
1531
  url: "/v1/admin/media/audits/{name}",
1508
1532
  ...options,
1509
1533
  headers: {
@@ -1512,17 +1536,29 @@ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1512
1536
  }
1513
1537
  });
1514
1538
  var runAdminMediaAudit = (options) => (options.client ?? client).post({
1515
- security: [{ scheme: "bearer", type: "http" }],
1539
+ security: [{
1540
+ in: "cookie",
1541
+ name: "nadeshiko.session_token",
1542
+ type: "apiKey"
1543
+ }],
1516
1544
  url: "/v1/admin/media/audits/{name}/run",
1517
1545
  ...options
1518
1546
  });
1519
1547
  var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1520
- security: [{ scheme: "bearer", type: "http" }],
1548
+ security: [{
1549
+ in: "cookie",
1550
+ name: "nadeshiko.session_token",
1551
+ type: "apiKey"
1552
+ }],
1521
1553
  url: "/v1/admin/media/audits/runs",
1522
1554
  ...options
1523
1555
  });
1524
1556
  var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1525
- security: [{ scheme: "bearer", type: "http" }],
1557
+ security: [{
1558
+ in: "cookie",
1559
+ name: "nadeshiko.session_token",
1560
+ type: "apiKey"
1561
+ }],
1526
1562
  url: "/v1/admin/media/audits/runs/{id}",
1527
1563
  ...options
1528
1564
  });
@@ -1539,7 +1575,13 @@ var defaultSessionTokenGetter = () => {
1539
1575
  return match ? decodeURIComponent(match[1]) : undefined;
1540
1576
  };
1541
1577
  function createNadeshikoClient(config) {
1542
- const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl : environments.PRODUCTION;
1578
+ const baseUrl = config.baseUrl === undefined ? environments.PRODUCTION : (config.baseUrl in environments) ? environments[config.baseUrl] : config.baseUrl;
1579
+ const getApiKey = async () => {
1580
+ if (typeof config.apiKey === "function") {
1581
+ return await config.apiKey();
1582
+ }
1583
+ return config.apiKey;
1584
+ };
1543
1585
  const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1544
1586
  const clientInstance = createClient(createConfig({
1545
1587
  baseUrl,
@@ -1547,7 +1589,7 @@ function createNadeshikoClient(config) {
1547
1589
  if (auth.in === "cookie") {
1548
1590
  return getSessionToken();
1549
1591
  }
1550
- return config.apiKey;
1592
+ return getApiKey();
1551
1593
  }
1552
1594
  }));
1553
1595
  return {
@@ -1566,30 +1608,6 @@ function createNadeshikoClient(config) {
1566
1608
  listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
1567
1609
  getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
1568
1610
  getSegment: (options) => getSegment({ ...options, client: clientInstance }),
1569
- getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1570
- listCollections: (options) => listCollections({ ...options, client: clientInstance }),
1571
- createCollection: (options) => createCollection({ ...options, client: clientInstance }),
1572
- getCollection: (options) => getCollection({ ...options, client: clientInstance }),
1573
- updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
1574
- deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
1575
- addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
1576
- updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
1577
- removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
1578
- searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
1579
- getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
1580
- triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
1581
- listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
1582
- getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
1583
- listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
1584
- retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
1585
- purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
1586
- listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
1587
- updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
1588
- listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
1589
- updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1590
- runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1591
- listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1592
- getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
1593
1611
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1594
1612
  autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1595
1613
  updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
@@ -1608,6 +1626,7 @@ function createNadeshikoClient(config) {
1608
1626
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1609
1627
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1610
1628
  deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
1629
+ getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1611
1630
  createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
1612
1631
  getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
1613
1632
  updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
@@ -1622,10 +1641,33 @@ function createNadeshikoClient(config) {
1622
1641
  listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
1623
1642
  enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
1624
1643
  unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
1644
+ listCollections: (options) => listCollections({ ...options, client: clientInstance }),
1645
+ createCollection: (options) => createCollection({ ...options, client: clientInstance }),
1646
+ getCollection: (options) => getCollection({ ...options, client: clientInstance }),
1647
+ updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
1648
+ deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
1649
+ addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
1650
+ updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
1651
+ removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
1652
+ searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
1653
+ getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
1625
1654
  getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
1626
1655
  getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
1656
+ triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
1657
+ listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
1658
+ getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
1659
+ listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
1660
+ retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
1661
+ purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
1627
1662
  impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
1628
- clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance })
1663
+ clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
1664
+ listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
1665
+ updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
1666
+ listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
1667
+ updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1668
+ runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1669
+ listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1670
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
1629
1671
  };
1630
1672
  }
1631
1673
  // generated/dev/internal/media.gen.ts
@@ -1658,6 +1700,7 @@ __export(exports_user_gen, {
1658
1700
  trackUserActivity: () => trackUserActivity,
1659
1701
  listUserLabs: () => listUserLabs,
1660
1702
  listUserActivity: () => listUserActivity,
1703
+ getUserQuota: () => getUserQuota,
1661
1704
  getUserPreferences: () => getUserPreferences,
1662
1705
  getUserActivityStats: () => getUserActivityStats,
1663
1706
  getUserActivityHeatmap: () => getUserActivityHeatmap,
@@ -1668,14 +1711,41 @@ __export(exports_user_gen, {
1668
1711
  deleteUserActivity: () => deleteUserActivity,
1669
1712
  createUserReport: () => createUserReport
1670
1713
  });
1714
+ // generated/dev/internal/collections.gen.ts
1715
+ var exports_collections_gen = {};
1716
+ __export(exports_collections_gen, {
1717
+ updateCollectionSegment: () => updateCollectionSegment,
1718
+ updateCollection: () => updateCollection,
1719
+ searchCollectionSegments: () => searchCollectionSegments,
1720
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
1721
+ listCollections: () => listCollections,
1722
+ getCollectionStats: () => getCollectionStats,
1723
+ getCollection: () => getCollection,
1724
+ deleteCollection: () => deleteCollection,
1725
+ createCollection: () => createCollection,
1726
+ addSegmentToCollection: () => addSegmentToCollection
1727
+ });
1671
1728
  // generated/dev/internal/admin.gen.ts
1672
1729
  var exports_admin_gen = {};
1673
1730
  __export(exports_admin_gen, {
1731
+ updateAdminReport: () => updateAdminReport,
1732
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1733
+ triggerReindex: () => triggerReindex,
1734
+ runAdminMediaAudit: () => runAdminMediaAudit,
1735
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1736
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1737
+ listAdminReports: () => listAdminReports,
1738
+ listAdminQueueStats: () => listAdminQueueStats,
1739
+ listAdminQueueFailed: () => listAdminQueueFailed,
1740
+ listAdminMediaAudits: () => listAdminMediaAudits,
1741
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1674
1742
  impersonateAdminUser: () => impersonateAdminUser,
1743
+ getAdminQueue: () => getAdminQueue,
1744
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1675
1745
  getAdminHealth: () => getAdminHealth,
1676
1746
  getAdminDashboard: () => getAdminDashboard,
1677
1747
  clearAdminImpersonation: () => clearAdminImpersonation
1678
1748
  });
1679
1749
 
1680
- //# debugId=10181376237E504064756E2164756E21
1750
+ //# debugId=C46407DD30C813FE64756E2164756E21
1681
1751
  //# sourceMappingURL=index.js.map