@zinn-digital/sdk 0.1.1727 → 0.1.1729
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.
|
@@ -40857,7 +40857,7 @@ export interface paths {
|
|
|
40857
40857
|
get: operations["listDelegatedAccess"];
|
|
40858
40858
|
/**
|
|
40859
40859
|
* Set exactly which sites one person holds, and the role on each.
|
|
40860
|
-
* @description One call for every change to one person: invite them, add a site, change a role, remove a site. After it the person holds EXACTLY the sites in `sites`. Sites they already hold keep their grant and have the role (and, when `expires_at` is sent, the end date) updated in place; new sites are granted
|
|
40860
|
+
* @description One call for every change to one person: invite them, add a site, change a role, remove a site. After it the person holds EXACTLY the sites in `sites`. Sites they already hold keep their grant and have the role (and, when `expires_at` is sent, the end date) updated in place; new sites are granted to somebody already in this organisation, and for anybody else — with an account or without — invited, with one invitation however many sites and no membership until they accept (the answer does not disclose whether the address has an account); sites left out are revoked. The whole call is atomic: one refused site leaves every other site as it was.
|
|
40861
40861
|
*
|
|
40862
40862
|
* The same rules as sharing one site (`shareSiteWithCollaborator`) apply, with the same codes: `SITE_COLLABORATOR_ALREADY_A_MEMBER` (409), `SITE_COLLABORATOR_ALREADY_INVITED` (409), `SITE_COLLABORATOR_EXPIRY_IN_THE_PAST` (422) and `SITE_COLLABORATOR_REASON_REQUIRED` (422 — a new site for somebody with no reason on record). Two are this endpoint's own: `SITE_COLLABORATOR_SITE_NOT_IN_ORG` (422 — one code for "no such site" and "a site of another organisation", so it is not an oracle) and `SITE_COLLABORATOR_DUPLICATE_SITE` (422).
|
|
40863
40863
|
*
|
|
@@ -51573,9 +51573,9 @@ export interface paths {
|
|
|
51573
51573
|
put?: never;
|
|
51574
51574
|
/**
|
|
51575
51575
|
* Share this site with one person.
|
|
51576
|
-
* @description Grants one person access to this one site at one role, optionally until a date
|
|
51576
|
+
* @description Grants one person access to this one site at one role, optionally until a date. The narrowing is enforced by Postgres row-level security on the site table itself, not by a filter in a query, so it applies to every endpoint on this API rather than to the ones somebody remembered.
|
|
51577
51577
|
*
|
|
51578
|
-
*
|
|
51578
|
+
* ⛔ **Nobody is put into an organisation they did not agree to join.** Unless the address already belongs to a member of this site's organisation, it is invited in the same call — whether or not it has an account with us: an ordinary organisation invitation is sent at the `site_collaborator` role, the grant is returned with `status: pending` and a null `user_id`, and the organisation gains no membership for them until they accept. The answer has the same shape for an address with an account and one without, so this operation never discloses which is which. A person who is already a member at the `site_collaborator` role (they accepted before) is shared with directly and the grant is `active`. The moment they accept — which proves control of that inbox through the identity provider, so no id is ever guessed — the grant activates for that person. A pending grant narrows nobody: nothing is reachable until the accept. If the address already holds a pending invitation to the *whole* organisation the call is refused with `SITE_COLLABORATOR_ALREADY_INVITED` rather than quietly downgrading that invitation to one site.
|
|
51579
51579
|
*
|
|
51580
51580
|
* **What a collaborator may then do is the per-site role, on that site only.** A request whose path names a granted site is evaluated with the role's keys (`viewer` reads; `editor` adds `hosting.deploy.manage`, `sites.cache.purge`, `hosting.performance.manage`, `sites.wp_login`, `sites.panel_access`, `sites.restart`, `hosting.php.manage`; `manager` adds `hosting.backup.manage`, `hosting.ssl.manage`, `hosting.cdn.manage`, `hosting.applications.manage`, `hosting.import.manage`). A request naming any other site answers `404`, and a request naming no site — the collection endpoints and every organisation-level surface such as members, API keys and billing — carries only `sites.view`, so it is refused with `403`. Revoking a grant takes effect on the next request, whatever token the person is holding.
|
|
51581
51581
|
*
|
|
@@ -83029,7 +83029,7 @@ export interface components {
|
|
|
83029
83029
|
DelegatedPerson: {
|
|
83030
83030
|
/**
|
|
83031
83031
|
* Format: date-time
|
|
83032
|
-
* @description When they accepted — or, shared
|
|
83032
|
+
* @description When they accepted — or, shared with somebody already in the organisation, when access began. Null while pending.
|
|
83033
83033
|
*/
|
|
83034
83034
|
accepted_at: string | null;
|
|
83035
83035
|
/** Format: email */
|
|
@@ -89956,6 +89956,8 @@ export interface components {
|
|
|
89956
89956
|
};
|
|
89957
89957
|
MailDomainAuth: {
|
|
89958
89958
|
dmarc_failed_7d: number;
|
|
89959
|
+
/** @description Of the DMARC-failing messages, those sent by a server that is not ours but that authenticated as itself (SPF or DKIM passed, unaligned): usually a service the customer uses and never aligned. Shown to staff only; it never feeds the DMARC-failing alert. */
|
|
89960
|
+
foreign_authenticated_7d: number;
|
|
89959
89961
|
fqdn: string;
|
|
89960
89962
|
messages_reported_7d: number;
|
|
89961
89963
|
/** Format: uuid */
|
|
@@ -106356,7 +106358,7 @@ export interface components {
|
|
|
106356
106358
|
status: "pending" | "active" | "expired" | "revoked";
|
|
106357
106359
|
/**
|
|
106358
106360
|
* Format: uuid
|
|
106359
|
-
* @description The collaborator, once known. Null while the grant is `pending` — the address has been invited and
|
|
106361
|
+
* @description The collaborator, once known. Null while the grant is `pending` — the address has been invited and has not accepted yet (whether or not it has an account).
|
|
106360
106362
|
*/
|
|
106361
106363
|
user_id: string | null;
|
|
106362
106364
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1729",
|
|
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>",
|