@cycleplatform/api-client-typescript 0.2.2 → 0.2.4

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/.prettierrc ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "tabWidth": 4,
3
+ "useTabs": false
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cycleplatform/api-client-typescript",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "A Cycle API client for the web/nodejs with type safety.",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -1867,11 +1867,8 @@ export interface components {
1867
1867
  start: components["schemas"]["DateTime"];
1868
1868
  /** @description A timestamp describing the end of a billing term. */
1869
1869
  end: components["schemas"]["DateTime"];
1870
- /**
1871
- * @description The term renewal period.
1872
- * @enum {string|null}
1873
- */
1874
- renew: "once" | "monthly" | "yearly";
1870
+ /** @description The term renewal period. */
1871
+ renew: ("once" | "monthly" | "yearly") | null;
1875
1872
  };
1876
1873
  /**
1877
1874
  * HubBillingProfile
@@ -3002,10 +2999,8 @@ export interface components {
3002
2999
  * `request`: Asks the client to send a TLS certificate, but does not require nor validate it.
3003
3000
  * `require`: Requires a certificate be sent for the request to be valid, but does not validate the certificate.
3004
3001
  * `require-verify`: Requires both that the client send a certificate, and that the certificate is valid. This is required when using https.
3005
- *
3006
- * @enum {string|null}
3007
3002
  */
3008
- client_auth?: "none" | "request" | "require" | "require-verify";
3003
+ client_auth?: ("none" | "request" | "require" | "require-verify") | null;
3009
3004
  }) | null;
3010
3005
  /** @description Defines how the length of various sorts of timeouts when communicating with the destination. */
3011
3006
  timeouts: {
@@ -5649,11 +5644,8 @@ export interface components {
5649
5644
  annotations?: {
5650
5645
  [key: string]: unknown;
5651
5646
  } | null;
5652
- /**
5653
- * @description The role of a given container if it has one.
5654
- * @enum {string|null}
5655
- */
5656
- role?: "orchestrator";
5647
+ /** @description The role of a given container if it has one. */
5648
+ role?: "orchestrator" | null;
5657
5649
  /** @description A boolean where true signifies the container is stateful. */
5658
5650
  stateful: boolean;
5659
5651
  /** @description A boolean where true signifies the container is marked as deprecated. */
@@ -11204,7 +11196,7 @@ export interface operations {
11204
11196
  201: {
11205
11197
  content: {
11206
11198
  "application/json": {
11207
- data?: components["schemas"]["Container"];
11199
+ data: components["schemas"]["Container"];
11208
11200
  };
11209
11201
  };
11210
11202
  };
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import createClient, { type Middleware } from "openapi-fetch";
2
- import type { paths, components } from "./generated/types";
2
+ import type { paths, components, operations } from "./generated/types";
3
3
 
4
- export { paths, components };
4
+ export { paths, components, operations };
5
5
 
6
6
  export function getClient({
7
7
  apiKey,