@zinn-digital/sdk 0.1.1987 → 0.1.1989

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.
@@ -31351,6 +31351,31 @@ export interface paths {
31351
31351
  patch?: never;
31352
31352
  trace?: never;
31353
31353
  };
31354
+ "/v1/compute/servers/{serverId}/floating-ips/{floatingIpId}/move": {
31355
+ parameters: {
31356
+ query?: never;
31357
+ header?: never;
31358
+ path: {
31359
+ /** @description The floating IP's id, as `listComputeServerFloatingIps` reports it. */
31360
+ floatingIpId: components["schemas"]["Uuid"];
31361
+ /** @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. */
31362
+ serverId: components["parameters"]["ComputeServerId"];
31363
+ };
31364
+ cookie?: never;
31365
+ };
31366
+ get?: never;
31367
+ put?: never;
31368
+ /**
31369
+ * Move a floating IP to another server.
31370
+ * @description Routes the address to another of the organisation's pay-by-the-hour servers with the same provider and in the same region group. The address does not change. Its price comes off this server's rate and goes onto the target's from the next hour. Requires `billing.payment.manage`.
31371
+ */
31372
+ post: operations["moveComputeServerFloatingIp"];
31373
+ delete?: never;
31374
+ options?: never;
31375
+ head?: never;
31376
+ patch?: never;
31377
+ trace?: never;
31378
+ };
31354
31379
  "/v1/compute/servers/{serverId}/floating-ips/quote": {
31355
31380
  parameters: {
31356
31381
  query?: never;
@@ -31374,6 +31399,52 @@ export interface paths {
31374
31399
  patch?: never;
31375
31400
  trace?: never;
31376
31401
  };
31402
+ "/v1/compute/servers/{serverId}/gate-login": {
31403
+ parameters: {
31404
+ query?: never;
31405
+ header?: never;
31406
+ path: {
31407
+ /** @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. */
31408
+ serverId: components["parameters"]["ComputeServerId"];
31409
+ };
31410
+ cookie?: never;
31411
+ };
31412
+ /**
31413
+ * The state of a managed server's monitoring login.
31414
+ * @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.
31415
+ */
31416
+ get: operations["getComputeServerGateLogin"];
31417
+ put?: never;
31418
+ post?: never;
31419
+ delete?: never;
31420
+ options?: never;
31421
+ head?: never;
31422
+ patch?: never;
31423
+ trace?: never;
31424
+ };
31425
+ "/v1/compute/servers/{serverId}/gate-login/rotate": {
31426
+ parameters: {
31427
+ query?: never;
31428
+ header?: never;
31429
+ path: {
31430
+ /** @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. */
31431
+ serverId: components["parameters"]["ComputeServerId"];
31432
+ };
31433
+ cookie?: never;
31434
+ };
31435
+ get?: never;
31436
+ put?: never;
31437
+ /**
31438
+ * Rotate a managed server's monitoring login.
31439
+ * @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.
31440
+ */
31441
+ post: operations["rotateComputeServerGateLogin"];
31442
+ delete?: never;
31443
+ options?: never;
31444
+ head?: never;
31445
+ patch?: never;
31446
+ trace?: never;
31447
+ };
31377
31448
  "/v1/compute/servers/{serverId}/health": {
31378
31449
  parameters: {
31379
31450
  query?: never;
@@ -84448,6 +84519,9 @@ export interface components {
84448
84519
  /** @description The data centre. ⛔ Zone counts are wildly asymmetric between providers (Zinn® Cloud has 8 where AWS and GCP have dozens), so a picker must read the catalogue rather than imply parity. */
84449
84520
  zone: string;
84450
84521
  };
84522
+ ComputeMoveFloatingIpRequest: {
84523
+ to_server_id: components["schemas"]["Uuid"];
84524
+ };
84451
84525
  ComputeNetworkAttachment: {
84452
84526
  ip: string;
84453
84527
  network_id: components["schemas"]["Uuid"];
@@ -84866,6 +84940,21 @@ export interface components {
84866
84940
  name: string;
84867
84941
  rules: components["schemas"]["ComputeFirewallRule"][];
84868
84942
  };
84943
+ /** @description A managed server's monitoring login (P3-004). Never carries a password. */
84944
+ ComputeServerGateLogin: {
84945
+ /**
84946
+ * Format: date-time
84947
+ * @description When the rotate expired and the server was marked for a re-enrol.
84948
+ */
84949
+ reenrol_required_since: string | null;
84950
+ /**
84951
+ * Format: date-time
84952
+ * @description When the rotate in progress started; null when none is.
84953
+ */
84954
+ rotating_since: string | null;
84955
+ /** @enum {string} */
84956
+ state: "current" | "rotating" | "reenrol_required";
84957
+ };
84869
84958
  /**
84870
84959
  * @description What the machine is made of and how hard it is working, read live from the provider.
84871
84960
  *
@@ -176843,6 +176932,42 @@ export interface operations {
176843
176932
  503: components["responses"]["ServiceUnavailable"];
176844
176933
  };
176845
176934
  };
176935
+ moveComputeServerFloatingIp: {
176936
+ parameters: {
176937
+ query?: never;
176938
+ header?: never;
176939
+ path: {
176940
+ /** @description The floating IP's id, as `listComputeServerFloatingIps` reports it. */
176941
+ floatingIpId: components["schemas"]["Uuid"];
176942
+ /** @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. */
176943
+ serverId: components["parameters"]["ComputeServerId"];
176944
+ };
176945
+ cookie?: never;
176946
+ };
176947
+ requestBody: {
176948
+ content: {
176949
+ "application/json": components["schemas"]["ComputeMoveFloatingIpRequest"];
176950
+ };
176951
+ };
176952
+ responses: {
176953
+ /** @description The address, now on the target server. */
176954
+ 200: {
176955
+ headers: {
176956
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
176957
+ [name: string]: unknown;
176958
+ };
176959
+ content: {
176960
+ "application/json": components["schemas"]["ComputeFloatingIp"];
176961
+ };
176962
+ };
176963
+ 401: components["responses"]["Unauthorized"];
176964
+ 403: components["responses"]["Forbidden"];
176965
+ 404: components["responses"]["NotFound"];
176966
+ 422: components["responses"]["UnprocessableEntity"];
176967
+ 429: components["responses"]["TooManyRequests"];
176968
+ 503: components["responses"]["ServiceUnavailable"];
176969
+ };
176970
+ };
176846
176971
  quoteComputeServerFloatingIp: {
176847
176972
  parameters: {
176848
176973
  query?: never;
@@ -176877,6 +177002,64 @@ export interface operations {
176877
177002
  503: components["responses"]["ServiceUnavailable"];
176878
177003
  };
176879
177004
  };
177005
+ getComputeServerGateLogin: {
177006
+ parameters: {
177007
+ query?: never;
177008
+ header?: never;
177009
+ path: {
177010
+ /** @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. */
177011
+ serverId: components["parameters"]["ComputeServerId"];
177012
+ };
177013
+ cookie?: never;
177014
+ };
177015
+ requestBody?: never;
177016
+ responses: {
177017
+ /** @description The login's state. */
177018
+ 200: {
177019
+ headers: {
177020
+ [name: string]: unknown;
177021
+ };
177022
+ content: {
177023
+ "application/json": components["schemas"]["ComputeServerGateLogin"];
177024
+ };
177025
+ };
177026
+ 401: components["responses"]["Unauthorized"];
177027
+ 403: components["responses"]["Forbidden"];
177028
+ 404: components["responses"]["NotFound"];
177029
+ 409: components["responses"]["Conflict"];
177030
+ 429: components["responses"]["TooManyRequests"];
177031
+ 503: components["responses"]["ServiceUnavailable"];
177032
+ };
177033
+ };
177034
+ rotateComputeServerGateLogin: {
177035
+ parameters: {
177036
+ query?: never;
177037
+ header?: never;
177038
+ path: {
177039
+ /** @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. */
177040
+ serverId: components["parameters"]["ComputeServerId"];
177041
+ };
177042
+ cookie?: never;
177043
+ };
177044
+ requestBody?: never;
177045
+ responses: {
177046
+ /** @description The rotate is under way; the login's state. */
177047
+ 202: {
177048
+ headers: {
177049
+ [name: string]: unknown;
177050
+ };
177051
+ content: {
177052
+ "application/json": components["schemas"]["ComputeServerGateLogin"];
177053
+ };
177054
+ };
177055
+ 401: components["responses"]["Unauthorized"];
177056
+ 403: components["responses"]["Forbidden"];
177057
+ 404: components["responses"]["NotFound"];
177058
+ 409: components["responses"]["Conflict"];
177059
+ 429: components["responses"]["TooManyRequests"];
177060
+ 503: components["responses"]["ServiceUnavailable"];
177061
+ };
177062
+ };
176880
177063
  getComputeServerHealth: {
176881
177064
  parameters: {
176882
177065
  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.1989",
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>",