@argos-ci/api-client 0.24.1 → 0.25.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +78 -0
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -266,6 +266,26 @@ interface paths {
266
266
  patch?: never;
267
267
  trace?: never;
268
268
  };
269
+ "/projects": {
270
+ parameters: {
271
+ query?: never;
272
+ header?: never;
273
+ path?: never;
274
+ cookie?: never;
275
+ };
276
+ get?: never;
277
+ put?: never;
278
+ /**
279
+ * Create a project
280
+ * @description Create a new project in an account you administer. The authenticated personal access token must be scoped to the target account, and the acting user must be an administrator of it.
281
+ */
282
+ post: operations["createProject"];
283
+ delete?: never;
284
+ options?: never;
285
+ head?: never;
286
+ patch?: never;
287
+ trace?: never;
288
+ };
269
289
  "/projects/{owner}/{project}": {
270
290
  parameters: {
271
291
  query?: never;
@@ -1757,6 +1777,64 @@ interface operations {
1757
1777
  };
1758
1778
  };
1759
1779
  };
1780
+ createProject: {
1781
+ parameters: {
1782
+ query?: never;
1783
+ header?: never;
1784
+ path?: never;
1785
+ cookie?: never;
1786
+ };
1787
+ requestBody: {
1788
+ content: {
1789
+ "application/json": {
1790
+ /** @description Name of the project to create. Must be unique within the account (case-insensitive) and cannot be a reserved name. */name: string; /** @description Slug of the account (personal or team) that will own the project. The personal access token must be scoped to this account and the acting user must be one of its administrators. */
1791
+ accountSlug: string;
1792
+ };
1793
+ };
1794
+ };
1795
+ responses: {
1796
+ /** @description Project created successfully — returns the project */201: {
1797
+ headers: {
1798
+ [name: string]: unknown;
1799
+ };
1800
+ content: {
1801
+ "application/json": components["schemas"]["Project"];
1802
+ };
1803
+ }; /** @description Invalid parameters */
1804
+ 400: {
1805
+ headers: {
1806
+ [name: string]: unknown;
1807
+ };
1808
+ content: {
1809
+ "application/json": components["schemas"]["Error"];
1810
+ };
1811
+ }; /** @description Unauthorized */
1812
+ 401: {
1813
+ headers: {
1814
+ [name: string]: unknown;
1815
+ };
1816
+ content: {
1817
+ "application/json": components["schemas"]["Error"];
1818
+ };
1819
+ }; /** @description Forbidden */
1820
+ 403: {
1821
+ headers: {
1822
+ [name: string]: unknown;
1823
+ };
1824
+ content: {
1825
+ "application/json": components["schemas"]["Error"];
1826
+ };
1827
+ }; /** @description Server error */
1828
+ 500: {
1829
+ headers: {
1830
+ [name: string]: unknown;
1831
+ };
1832
+ content: {
1833
+ "application/json": components["schemas"]["Error"];
1834
+ };
1835
+ };
1836
+ };
1837
+ };
1760
1838
  getProject: {
1761
1839
  parameters: {
1762
1840
  query?: never;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/api-client",
3
3
  "description": "Argos API Client library.",
4
- "version": "0.24.1",
4
+ "version": "0.25.0",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -54,5 +54,5 @@
54
54
  "openapi-fetch": "^0.17.0",
55
55
  "p-retry": "^8.0.0"
56
56
  },
57
- "gitHead": "7fddaad1a6bb251a1f2eecbf8f4ecfa3e84e9b97"
57
+ "gitHead": "686b6fa8385ed77598ec86f66b073e9897cef176"
58
58
  }