@brigadasos/nadeshiko-sdk 1.5.0-dev.be49703 → 1.5.0-dev.bf6e674

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/dist/index.cjs CHANGED
@@ -49,6 +49,7 @@ __export(exports_dev, {
49
49
  updateEpisode: () => updateEpisode,
50
50
  updateCollectionSegment: () => updateCollectionSegment,
51
51
  updateCollection: () => updateCollection,
52
+ updateAnnouncement: () => updateAnnouncement,
52
53
  updateAdminReport: () => updateAdminReport,
53
54
  updateAdminMediaAudit: () => updateAdminMediaAudit,
54
55
  unenrollUserLab: () => unenrollUserLab,
@@ -92,6 +93,7 @@ __export(exports_dev, {
92
93
  getCollectionStats: () => getCollectionStats,
93
94
  getCollection: () => getCollection,
94
95
  getCharacter: () => getCharacter,
96
+ getAnnouncement: () => getAnnouncement,
95
97
  getAdminQueue: () => getAdminQueue,
96
98
  getAdminMediaAuditRun: () => getAdminMediaAuditRun,
97
99
  getAdminHealth: () => getAdminHealth,
@@ -117,6 +119,7 @@ __export(exports_dev, {
117
119
  collections: () => exports_collections_gen,
118
120
  client: () => client,
119
121
  clearAdminImpersonation: () => clearAdminImpersonation,
122
+ batchUpdateAdminReports: () => batchUpdateAdminReports,
120
123
  autocompleteMedia: () => autocompleteMedia,
121
124
  admin: () => exports_admin_gen,
122
125
  addSegmentToCollection: () => addSegmentToCollection,
@@ -1512,7 +1515,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
1512
1515
  name: "nadeshiko.session_token",
1513
1516
  type: "apiKey"
1514
1517
  }],
1515
- url: "/v1/collections/{id}/segments/{uuid}",
1518
+ url: "/v1/collections/{id}/segments/{segmentId}",
1516
1519
  ...options
1517
1520
  });
1518
1521
  var updateCollectionSegment = (options) => (options.client ?? client).patch({
@@ -1521,7 +1524,7 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1521
1524
  name: "nadeshiko.session_token",
1522
1525
  type: "apiKey"
1523
1526
  }],
1524
- url: "/v1/collections/{id}/segments/{uuid}",
1527
+ url: "/v1/collections/{id}/segments/{segmentId}",
1525
1528
  ...options,
1526
1529
  headers: {
1527
1530
  "Content-Type": "application/json",
@@ -1640,6 +1643,19 @@ var listAdminReports = (options) => (options?.client ?? client).get({
1640
1643
  url: "/v1/admin/reports",
1641
1644
  ...options
1642
1645
  });
1646
+ var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
1647
+ security: [{
1648
+ in: "cookie",
1649
+ name: "nadeshiko.session_token",
1650
+ type: "apiKey"
1651
+ }],
1652
+ url: "/v1/admin/reports/batch",
1653
+ ...options,
1654
+ headers: {
1655
+ "Content-Type": "application/json",
1656
+ ...options.headers
1657
+ }
1658
+ });
1643
1659
  var updateAdminReport = (options) => (options.client ?? client).patch({
1644
1660
  security: [{
1645
1661
  in: "cookie",
@@ -1702,11 +1718,26 @@ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1702
1718
  url: "/v1/admin/media/audits/runs/{id}",
1703
1719
  ...options
1704
1720
  });
1721
+ var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
1722
+ var updateAnnouncement = (options) => (options.client ?? client).put({
1723
+ security: [{
1724
+ in: "cookie",
1725
+ name: "nadeshiko.session_token",
1726
+ type: "apiKey"
1727
+ }],
1728
+ url: "/v1/admin/announcement",
1729
+ ...options,
1730
+ headers: {
1731
+ "Content-Type": "application/json",
1732
+ ...options.headers
1733
+ }
1734
+ });
1705
1735
  // generated/dev/nadeshiko.gen.ts
1706
1736
  var environments = {
1707
1737
  LOCAL: "http://localhost:5000/api",
1708
- DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
1709
- PRODUCTION: "https://api.brigadasos.xyz/api"
1738
+ DEVELOPMENT: "https://api-dev.nadeshiko.co",
1739
+ PRODUCTION: "https://api.nadeshiko.co",
1740
+ PROXY: ""
1710
1741
  };
1711
1742
  var defaultSessionTokenGetter = () => {
1712
1743
  if (typeof document === "undefined")
@@ -1804,12 +1835,15 @@ function createNadeshikoClient(config) {
1804
1835
  impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
1805
1836
  clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
1806
1837
  listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
1838
+ batchUpdateAdminReports: (options) => batchUpdateAdminReports({ ...options, client: clientInstance }),
1807
1839
  updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
1808
1840
  listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
1809
1841
  updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1810
1842
  runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1811
1843
  listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1812
- getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
1844
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
1845
+ getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
1846
+ updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
1813
1847
  };
1814
1848
  }
1815
1849
  // generated/dev/internal/media.gen.ts
@@ -1872,6 +1906,7 @@ __export(exports_collections_gen, {
1872
1906
  // generated/dev/internal/admin.gen.ts
1873
1907
  var exports_admin_gen = {};
1874
1908
  __export(exports_admin_gen, {
1909
+ updateAnnouncement: () => updateAnnouncement,
1875
1910
  updateAdminReport: () => updateAdminReport,
1876
1911
  updateAdminMediaAudit: () => updateAdminMediaAudit,
1877
1912
  triggerReindex: () => triggerReindex,
@@ -1884,12 +1919,14 @@ __export(exports_admin_gen, {
1884
1919
  listAdminMediaAudits: () => listAdminMediaAudits,
1885
1920
  listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1886
1921
  impersonateAdminUser: () => impersonateAdminUser,
1922
+ getAnnouncement: () => getAnnouncement,
1887
1923
  getAdminQueue: () => getAdminQueue,
1888
1924
  getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1889
1925
  getAdminHealth: () => getAdminHealth,
1890
1926
  getAdminDashboard: () => getAdminDashboard,
1891
- clearAdminImpersonation: () => clearAdminImpersonation
1927
+ clearAdminImpersonation: () => clearAdminImpersonation,
1928
+ batchUpdateAdminReports: () => batchUpdateAdminReports
1892
1929
  });
1893
1930
 
1894
- //# debugId=9EF9244B69357AA664756E2164756E21
1931
+ //# debugId=4A1D906EF6A4392464756E2164756E21
1895
1932
  //# sourceMappingURL=index.js.map