@brigadasos/nadeshiko-sdk 1.4.3-dev.d3424ba → 1.5.0-dev.7d15241

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.
@@ -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: {
@@ -1006,11 +995,7 @@ var getSegmentContext = (options) => (options.client ?? client).get({
1006
995
  ...options
1007
996
  });
1008
997
  var listSeries = (options) => (options?.client ?? client).get({
1009
- security: [{ scheme: "bearer", type: "http" }, {
1010
- in: "cookie",
1011
- name: "nadeshiko.session_token",
1012
- type: "apiKey"
1013
- }],
998
+ security: [{ scheme: "bearer", type: "http" }],
1014
999
  url: "/v1/media/series",
1015
1000
  ...options
1016
1001
  });
@@ -1029,11 +1014,7 @@ var deleteSeries = (options) => (options.client ?? client).delete({
1029
1014
  ...options
1030
1015
  });
1031
1016
  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
- }],
1017
+ security: [{ scheme: "bearer", type: "http" }],
1037
1018
  url: "/v1/media/series/{id}",
1038
1019
  ...options
1039
1020
  });
@@ -1169,7 +1150,7 @@ var getUserQuota = (options) => (options?.client ?? client).get({
1169
1150
  in: "cookie",
1170
1151
  name: "nadeshiko.session_token",
1171
1152
  type: "apiKey"
1172
- }, { scheme: "bearer", type: "http" }],
1153
+ }],
1173
1154
  url: "/v1/user/quota",
1174
1155
  ...options
1175
1156
  });
@@ -1566,30 +1547,6 @@ function createNadeshikoClient(config) {
1566
1547
  listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
1567
1548
  getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
1568
1549
  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
1550
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1594
1551
  autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1595
1552
  updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
@@ -1608,6 +1565,7 @@ function createNadeshikoClient(config) {
1608
1565
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1609
1566
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1610
1567
  deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
1568
+ getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1611
1569
  createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
1612
1570
  getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
1613
1571
  updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
@@ -1622,10 +1580,33 @@ function createNadeshikoClient(config) {
1622
1580
  listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
1623
1581
  enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
1624
1582
  unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
1583
+ listCollections: (options) => listCollections({ ...options, client: clientInstance }),
1584
+ createCollection: (options) => createCollection({ ...options, client: clientInstance }),
1585
+ getCollection: (options) => getCollection({ ...options, client: clientInstance }),
1586
+ updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
1587
+ deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
1588
+ addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
1589
+ updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
1590
+ removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
1591
+ searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
1592
+ getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
1625
1593
  getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
1626
1594
  getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
1595
+ triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
1596
+ listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
1597
+ getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
1598
+ listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
1599
+ retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
1600
+ purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
1627
1601
  impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
1628
- clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance })
1602
+ clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
1603
+ listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
1604
+ updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
1605
+ listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
1606
+ updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1607
+ runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1608
+ listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1609
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
1629
1610
  };
1630
1611
  }
1631
1612
  // generated/dev/internal/media.gen.ts
@@ -1658,6 +1639,7 @@ __export(exports_user_gen, {
1658
1639
  trackUserActivity: () => trackUserActivity,
1659
1640
  listUserLabs: () => listUserLabs,
1660
1641
  listUserActivity: () => listUserActivity,
1642
+ getUserQuota: () => getUserQuota,
1661
1643
  getUserPreferences: () => getUserPreferences,
1662
1644
  getUserActivityStats: () => getUserActivityStats,
1663
1645
  getUserActivityHeatmap: () => getUserActivityHeatmap,
@@ -1668,14 +1650,41 @@ __export(exports_user_gen, {
1668
1650
  deleteUserActivity: () => deleteUserActivity,
1669
1651
  createUserReport: () => createUserReport
1670
1652
  });
1653
+ // generated/dev/internal/collections.gen.ts
1654
+ var exports_collections_gen = {};
1655
+ __export(exports_collections_gen, {
1656
+ updateCollectionSegment: () => updateCollectionSegment,
1657
+ updateCollection: () => updateCollection,
1658
+ searchCollectionSegments: () => searchCollectionSegments,
1659
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
1660
+ listCollections: () => listCollections,
1661
+ getCollectionStats: () => getCollectionStats,
1662
+ getCollection: () => getCollection,
1663
+ deleteCollection: () => deleteCollection,
1664
+ createCollection: () => createCollection,
1665
+ addSegmentToCollection: () => addSegmentToCollection
1666
+ });
1671
1667
  // generated/dev/internal/admin.gen.ts
1672
1668
  var exports_admin_gen = {};
1673
1669
  __export(exports_admin_gen, {
1670
+ updateAdminReport: () => updateAdminReport,
1671
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1672
+ triggerReindex: () => triggerReindex,
1673
+ runAdminMediaAudit: () => runAdminMediaAudit,
1674
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1675
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1676
+ listAdminReports: () => listAdminReports,
1677
+ listAdminQueueStats: () => listAdminQueueStats,
1678
+ listAdminQueueFailed: () => listAdminQueueFailed,
1679
+ listAdminMediaAudits: () => listAdminMediaAudits,
1680
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1674
1681
  impersonateAdminUser: () => impersonateAdminUser,
1682
+ getAdminQueue: () => getAdminQueue,
1683
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1675
1684
  getAdminHealth: () => getAdminHealth,
1676
1685
  getAdminDashboard: () => getAdminDashboard,
1677
1686
  clearAdminImpersonation: () => clearAdminImpersonation
1678
1687
  });
1679
1688
 
1680
- //# debugId=10181376237E504064756E2164756E21
1689
+ //# debugId=E295580D1109844C64756E2164756E21
1681
1690
  //# sourceMappingURL=index.js.map