@zinn-digital/sdk 0.1.2015 → 0.1.2018
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/dist/generated/schema.d.ts +18 -5
- package/package.json +1 -1
|
@@ -31558,7 +31558,7 @@ export interface paths {
|
|
|
31558
31558
|
};
|
|
31559
31559
|
/**
|
|
31560
31560
|
* The state of a managed server's monitoring login.
|
|
31561
|
-
* @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.
|
|
31561
|
+
* @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.
|
|
31562
31562
|
*/
|
|
31563
31563
|
get: operations["getComputeServerGateLogin"];
|
|
31564
31564
|
put?: never;
|
|
@@ -31917,7 +31917,7 @@ export interface paths {
|
|
|
31917
31917
|
get?: never;
|
|
31918
31918
|
put?: never;
|
|
31919
31919
|
/**
|
|
31920
|
-
* Retry the Zinn panel's setup on a server.
|
|
31920
|
+
* Retry the Zinn® panel's setup on a server.
|
|
31921
31921
|
* @description Start the Zinn® panel's setup again on a server ordered with the panel whose setup failed (`panel_state` is `failed`). Each retry is a fresh setup run; a second request while one is running is refused, so a double click starts one setup. A server whose setup is running or done, a bare server, or one whose operating system the panel cannot be installed on returns 422 and changes nothing. Costs nothing. Requires `sites.restart`.
|
|
31922
31922
|
*/
|
|
31923
31923
|
post: operations["retryComputeServerPanel"];
|
|
@@ -43041,7 +43041,7 @@ export interface paths {
|
|
|
43041
43041
|
put?: never;
|
|
43042
43042
|
/**
|
|
43043
43043
|
* Open a PayPal order for the browser to complete.
|
|
43044
|
-
* @description Returns the PayPal order id the JS SDK attaches to
|
|
43044
|
+
* @description Returns the PayPal order id the JS SDK attaches to, for the rail named in the body: the PayPal wallet via Buttons (the default) or a card entered into PayPal's hosted Advanced card fields (`rail: card`). A card-rail order asks PayPal for 3-D Secure whenever the issuer or regulation requires it (`SCA_WHEN_REQUIRED`), and its capture is refused, with nothing charged, when PayPal's authentication result says not to continue (`liability_shift` `NO` on an enrolled card, or `UNKNOWN`). Idempotent per Zinn® order and rail: reloading the checkout page returns the same PayPal order rather than opening a second one.
|
|
43045
43045
|
*
|
|
43046
43046
|
* When the order lets account credit pay first (`use_credit`, row 1106#49) the PayPal order is opened for the total **less** that credit; the credit is debited just before capture and given back if the capture is declined or the approval abandoned.
|
|
43047
43047
|
*/
|
|
@@ -86218,7 +86218,9 @@ export interface components {
|
|
|
86218
86218
|
connected_at?: string | null;
|
|
86219
86219
|
/** Format: date-time */
|
|
86220
86220
|
created_at?: string;
|
|
86221
|
+
/** @description ISO 4217 code of price_minor. Empty string until the agent enrols (state awaiting_install, or refused/expired before enrolling); a client must not format money while it is empty. */
|
|
86221
86222
|
currency: string;
|
|
86223
|
+
/** @description True when this is the org's free connected server. Unset (false) until the agent enrols; the price is fixed at enrolment, so an awaiting_install row is not yet priced. */
|
|
86222
86224
|
free: boolean;
|
|
86223
86225
|
hostname?: string;
|
|
86224
86226
|
/** Format: uuid */
|
|
@@ -86236,7 +86238,7 @@ export interface components {
|
|
|
86236
86238
|
/** @enum {string} */
|
|
86237
86239
|
os_family: "almalinux" | "rocky" | "ubuntu";
|
|
86238
86240
|
os_name?: string;
|
|
86239
|
-
/** @description Monthly price in minor units; 0 when free. */
|
|
86241
|
+
/** @description Monthly price in minor units; 0 when free. Unset (0) until the agent enrols: read it together with currency, which is empty until then. */
|
|
86240
86242
|
price_minor: number;
|
|
86241
86243
|
/** @description Machine code when refused (unsupported_os */
|
|
86242
86244
|
reason?: string;
|
|
@@ -197550,7 +197552,18 @@ export interface operations {
|
|
|
197550
197552
|
};
|
|
197551
197553
|
cookie?: never;
|
|
197552
197554
|
};
|
|
197553
|
-
requestBody?:
|
|
197555
|
+
requestBody?: {
|
|
197556
|
+
content: {
|
|
197557
|
+
"application/json": {
|
|
197558
|
+
/**
|
|
197559
|
+
* @description `card` for PayPal's Advanced card fields (3-D Secure when required); `wallet` (or absent) for the PayPal Buttons.
|
|
197560
|
+
* @default wallet
|
|
197561
|
+
* @enum {string}
|
|
197562
|
+
*/
|
|
197563
|
+
rail?: "wallet" | "card";
|
|
197564
|
+
};
|
|
197565
|
+
};
|
|
197566
|
+
};
|
|
197554
197567
|
responses: {
|
|
197555
197568
|
/** @description The PayPal order to complete in the browser. */
|
|
197556
197569
|
200: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2018",
|
|
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>",
|