@zinn-digital/sdk 0.1.2035 → 0.1.2037

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.
@@ -30944,6 +30944,26 @@ export interface paths {
30944
30944
  patch?: never;
30945
30945
  trace?: never;
30946
30946
  };
30947
+ "/v1/compute/guest-reports": {
30948
+ parameters: {
30949
+ query?: never;
30950
+ header?: never;
30951
+ path?: never;
30952
+ cookie?: never;
30953
+ };
30954
+ get?: never;
30955
+ put?: never;
30956
+ /**
30957
+ * A trial-credit machine's own load report (machine-to-engine).
30958
+ * @description TRIALFIX bug 4 (docs/1124 §mining watch). Called every 5 minutes by a timer installed at build on a server paid for by the trial credit alone, never by a person. The `Authorization: Bearer <token>` header carries the per-machine token minted at build (stored as a SHA-256 digest only); there is no session. One row per machine per 5-minute bucket (a repeat in the same bucket replaces it); `401` for an unknown token. The engine suspends only when sustained full CPU AND mining-pool connections are seen together; either alone, or a reporter gone silent, only alerts staff. Throttled `guest-report` 60/min.
30959
+ */
30960
+ post: operations["reportTrialGuest"];
30961
+ delete?: never;
30962
+ options?: never;
30963
+ head?: never;
30964
+ patch?: never;
30965
+ trace?: never;
30966
+ };
30947
30967
  "/v1/compute/networks": {
30948
30968
  parameters: {
30949
30969
  query?: never;
@@ -102473,7 +102493,7 @@ export interface components {
102473
102493
  };
102474
102494
  /** @description Optional target organization; defaults to the caller's own. */
102475
102495
  PaymentMethodSetupRequest: {
102476
- /** @description Absent means false. The card-required free-trial step is asking. The SetupIntent then offers only the methods that can be charged off-session later (card, Link, SEPA Direct Debit, Revolut Pay, Amazon Pay … whichever of those the account can set up), because a method that cannot renew would save and still not start the trial. Without it every method the account offers is shown; those that cannot renew go to manual renewal. Ignored by `beginPayPalMandateSetup` (a PayPal mandate is always chargeable off-session). */
102496
+ /** @description Absent means false. The card-required free-trial step is asking. The SetupIntent then offers only the methods that can be charged off-session later (card, Link, SEPA Direct Debit, Revolut Pay, Amazon Pay … whichever of those the account can set up), because a method that cannot renew would save and still not start the trial. Without it every method the account offers is shown; those that cannot renew go to manual renewal. On `beginPayPalMandateSetup` it is REQUIRED to be `true`: a new PayPal vault mandate is made only for the card-required trial, and any other call is refused with 409 `refusal.api.paypalVaultTrialOnly` (a paid plan renewing by PayPal uses one PayPal approval at checkout instead). */
102477
102497
  for_trial?: boolean;
102478
102498
  /**
102479
102499
  * Format: uuid
@@ -177300,6 +177320,43 @@ export interface operations {
177300
177320
  429: components["responses"]["TooManyRequests"];
177301
177321
  };
177302
177322
  };
177323
+ reportTrialGuest: {
177324
+ parameters: {
177325
+ query?: never;
177326
+ header?: never;
177327
+ path?: never;
177328
+ cookie?: never;
177329
+ };
177330
+ requestBody: {
177331
+ content: {
177332
+ "application/json": {
177333
+ cores?: number;
177334
+ /** @description Whole-machine CPU busy percent over the last sample interval. */
177335
+ cpu_percent: number;
177336
+ /** @description ESTABLISHED TCP connections whose remote port is a common mining-pool port. */
177337
+ pool_connections?: number;
177338
+ };
177339
+ };
177340
+ };
177341
+ responses: {
177342
+ /** @description Recorded; when to report next. */
177343
+ 200: {
177344
+ headers: {
177345
+ [name: string]: unknown;
177346
+ };
177347
+ content: {
177348
+ "application/json": {
177349
+ data: {
177350
+ next_report_seconds: number;
177351
+ };
177352
+ };
177353
+ };
177354
+ };
177355
+ 400: components["responses"]["UnprocessableEntity"];
177356
+ 401: components["responses"]["Unauthorized"];
177357
+ 429: components["responses"]["TooManyRequests"];
177358
+ };
177359
+ };
177303
177360
  listComputeNetworks: {
177304
177361
  parameters: {
177305
177362
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2035",
3
+ "version": "0.1.2037",
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>",