@zilfu/sdk 0.2.9 → 0.2.10

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.d.cts CHANGED
@@ -1810,10 +1810,13 @@ type GetSpacesBySpacePostsData = {
1810
1810
  space: number;
1811
1811
  };
1812
1812
  query?: {
1813
- status?: string;
1814
- account_id?: string;
1813
+ status?: PostStatus;
1814
+ 'statuses[]'?: Array<PostStatus>;
1815
+ account_id?: number;
1816
+ 'account_ids[]'?: Array<number>;
1815
1817
  from?: string;
1816
1818
  to?: string;
1819
+ per_page?: number;
1817
1820
  };
1818
1821
  url: '/spaces/{space}/posts';
1819
1822
  };
@@ -1845,6 +1848,21 @@ type GetSpacesBySpacePostsErrors = {
1845
1848
  */
1846
1849
  message: string;
1847
1850
  };
1851
+ /**
1852
+ * Validation error
1853
+ */
1854
+ 422: {
1855
+ /**
1856
+ * Errors overview.
1857
+ */
1858
+ message: string;
1859
+ /**
1860
+ * A detailed description of each field that failed validation.
1861
+ */
1862
+ errors: {
1863
+ [key: string]: Array<string>;
1864
+ };
1865
+ };
1848
1866
  };
1849
1867
  type GetSpacesBySpacePostsError = GetSpacesBySpacePostsErrors[keyof GetSpacesBySpacePostsErrors];
1850
1868
  type GetSpacesBySpacePostsResponses = {
package/dist/index.d.ts CHANGED
@@ -1810,10 +1810,13 @@ type GetSpacesBySpacePostsData = {
1810
1810
  space: number;
1811
1811
  };
1812
1812
  query?: {
1813
- status?: string;
1814
- account_id?: string;
1813
+ status?: PostStatus;
1814
+ 'statuses[]'?: Array<PostStatus>;
1815
+ account_id?: number;
1816
+ 'account_ids[]'?: Array<number>;
1815
1817
  from?: string;
1816
1818
  to?: string;
1819
+ per_page?: number;
1817
1820
  };
1818
1821
  url: '/spaces/{space}/posts';
1819
1822
  };
@@ -1845,6 +1848,21 @@ type GetSpacesBySpacePostsErrors = {
1845
1848
  */
1846
1849
  message: string;
1847
1850
  };
1851
+ /**
1852
+ * Validation error
1853
+ */
1854
+ 422: {
1855
+ /**
1856
+ * Errors overview.
1857
+ */
1858
+ message: string;
1859
+ /**
1860
+ * A detailed description of each field that failed validation.
1861
+ */
1862
+ errors: {
1863
+ [key: string]: Array<string>;
1864
+ };
1865
+ };
1848
1866
  };
1849
1867
  type GetSpacesBySpacePostsError = GetSpacesBySpacePostsErrors[keyof GetSpacesBySpacePostsErrors];
1850
1868
  type GetSpacesBySpacePostsResponses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zilfu/sdk",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Official TypeScript SDK for the Zilfu API",
5
5
  "license": "MIT",
6
6
  "type": "module",