@nucarium/sdk 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -29,8 +29,7 @@ for await (const item of watch.iterateSessions({ include_ended: true })) {
29
29
  ```
30
30
 
31
31
  It runs wherever `fetch` does: Node 20 and later, Deno, Bun and Workers.
32
- Keep the key on a server. The API sends no CORS headers to a request with
33
- a key, so a browser cannot use one.
32
+ Keep the key on a server. A browser cannot use it.
34
33
 
35
34
  ## Methods
36
35
 
@@ -65,13 +64,6 @@ A failed request throws `WatchError`, with the API's stable `code`:
65
64
  | `rate_limited` | More than 120 requests a minute with this key. `retryAfter` says how many seconds to wait. |
66
65
  | `unreachable` | No answer came. |
67
66
 
68
- ## How it is made
69
-
70
- Nothing in `src/generated` is written by hand. `npm run generate` reads the
71
- Watch API contract (`packages/contract/openapi.yaml`), keeps the operations
72
- it opens to API keys and the schemas they use, and writes the types and the
73
- methods. `npm run check` fails when they are behind the contract.
74
-
75
67
  ## License
76
68
 
77
69
  MIT or Apache-2.0, at your option.
@@ -1382,9 +1382,8 @@ export type components = {
1382
1382
  };
1383
1383
  /**
1384
1384
  * @description The environment is beyond the account's limit
1385
- * (`environment_hidden`): it is still reporting and nothing is lost,
1386
- * and it becomes readable when the account upgrades or removes
1387
- * another environment. Or, with an API key, the account is not on
1385
+ * (`environment_hidden`): it becomes readable when the account
1386
+ * upgrades or removes another environment. Or, with an API key, the account is not on
1388
1387
  * Orchard (`plan_required`).
1389
1388
  */
1390
1389
  EnvironmentHiddenOrKeyForbidden: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nucarium/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The Nucarium Watch read API for TypeScript and JavaScript: the inbox, sessions, machines, environments and alerts, with an API key.",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",