@zinn-digital/sdk 0.1.1987 → 0.1.1988

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.
@@ -31374,6 +31374,52 @@ export interface paths {
31374
31374
  patch?: never;
31375
31375
  trace?: never;
31376
31376
  };
31377
+ "/v1/compute/servers/{serverId}/gate-login": {
31378
+ parameters: {
31379
+ query?: never;
31380
+ header?: never;
31381
+ path: {
31382
+ /** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
31383
+ serverId: components["parameters"]["ComputeServerId"];
31384
+ };
31385
+ cookie?: never;
31386
+ };
31387
+ /**
31388
+ * The state of a managed server's monitoring login.
31389
+ * @description A server running the Zinn panel sends its metrics, logs and security events with a login of its own (docs/88 §12). `current`: one login in use. `rotating`: a rotate is in progress and both logins work. `reenrol_required`: the server never used its new login within 24 hours, its old one is retired and our team has been alerted to re-enrol it. No password is ever returned. `409` when the panel is not on the machine.
31390
+ */
31391
+ get: operations["getComputeServerGateLogin"];
31392
+ put?: never;
31393
+ post?: never;
31394
+ delete?: never;
31395
+ options?: never;
31396
+ head?: never;
31397
+ patch?: never;
31398
+ trace?: never;
31399
+ };
31400
+ "/v1/compute/servers/{serverId}/gate-login/rotate": {
31401
+ parameters: {
31402
+ query?: never;
31403
+ header?: never;
31404
+ path: {
31405
+ /** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
31406
+ serverId: components["parameters"]["ComputeServerId"];
31407
+ };
31408
+ cookie?: never;
31409
+ };
31410
+ get?: never;
31411
+ put?: never;
31412
+ /**
31413
+ * Rotate a managed server's monitoring login.
31414
+ * @description Gives the server a new monitoring login, keeps the old one working beside it and asks the server to pick the new one up. The old login is retired as soon as the server has sent data with the new one, or after 24 hours (then the server needs a re-enrol and our team is alerted). Idempotent while a rotate is in progress. Requires `sites.restart`; nothing restarts. Audited as `compute.server.gate_login_rotated`, without any password.
31415
+ */
31416
+ post: operations["rotateComputeServerGateLogin"];
31417
+ delete?: never;
31418
+ options?: never;
31419
+ head?: never;
31420
+ patch?: never;
31421
+ trace?: never;
31422
+ };
31377
31423
  "/v1/compute/servers/{serverId}/health": {
31378
31424
  parameters: {
31379
31425
  query?: never;
@@ -84866,6 +84912,21 @@ export interface components {
84866
84912
  name: string;
84867
84913
  rules: components["schemas"]["ComputeFirewallRule"][];
84868
84914
  };
84915
+ /** @description A managed server's monitoring login (P3-004). Never carries a password. */
84916
+ ComputeServerGateLogin: {
84917
+ /**
84918
+ * Format: date-time
84919
+ * @description When the rotate expired and the server was marked for a re-enrol.
84920
+ */
84921
+ reenrol_required_since: string | null;
84922
+ /**
84923
+ * Format: date-time
84924
+ * @description When the rotate in progress started; null when none is.
84925
+ */
84926
+ rotating_since: string | null;
84927
+ /** @enum {string} */
84928
+ state: "current" | "rotating" | "reenrol_required";
84929
+ };
84869
84930
  /**
84870
84931
  * @description What the machine is made of and how hard it is working, read live from the provider.
84871
84932
  *
@@ -176877,6 +176938,64 @@ export interface operations {
176877
176938
  503: components["responses"]["ServiceUnavailable"];
176878
176939
  };
176879
176940
  };
176941
+ getComputeServerGateLogin: {
176942
+ parameters: {
176943
+ query?: never;
176944
+ header?: never;
176945
+ path: {
176946
+ /** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
176947
+ serverId: components["parameters"]["ComputeServerId"];
176948
+ };
176949
+ cookie?: never;
176950
+ };
176951
+ requestBody?: never;
176952
+ responses: {
176953
+ /** @description The login's state. */
176954
+ 200: {
176955
+ headers: {
176956
+ [name: string]: unknown;
176957
+ };
176958
+ content: {
176959
+ "application/json": components["schemas"]["ComputeServerGateLogin"];
176960
+ };
176961
+ };
176962
+ 401: components["responses"]["Unauthorized"];
176963
+ 403: components["responses"]["Forbidden"];
176964
+ 404: components["responses"]["NotFound"];
176965
+ 409: components["responses"]["Conflict"];
176966
+ 429: components["responses"]["TooManyRequests"];
176967
+ 503: components["responses"]["ServiceUnavailable"];
176968
+ };
176969
+ };
176970
+ rotateComputeServerGateLogin: {
176971
+ parameters: {
176972
+ query?: never;
176973
+ header?: never;
176974
+ path: {
176975
+ /** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
176976
+ serverId: components["parameters"]["ComputeServerId"];
176977
+ };
176978
+ cookie?: never;
176979
+ };
176980
+ requestBody?: never;
176981
+ responses: {
176982
+ /** @description The rotate is under way; the login's state. */
176983
+ 202: {
176984
+ headers: {
176985
+ [name: string]: unknown;
176986
+ };
176987
+ content: {
176988
+ "application/json": components["schemas"]["ComputeServerGateLogin"];
176989
+ };
176990
+ };
176991
+ 401: components["responses"]["Unauthorized"];
176992
+ 403: components["responses"]["Forbidden"];
176993
+ 404: components["responses"]["NotFound"];
176994
+ 409: components["responses"]["Conflict"];
176995
+ 429: components["responses"]["TooManyRequests"];
176996
+ 503: components["responses"]["ServiceUnavailable"];
176997
+ };
176998
+ };
176880
176999
  getComputeServerHealth: {
176881
177000
  parameters: {
176882
177001
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1987",
3
+ "version": "0.1.1988",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",