@zinn-digital/sdk 0.1.1539 → 0.1.1540

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.
@@ -48571,7 +48571,7 @@ export interface paths {
48571
48571
  put?: never;
48572
48572
  /**
48573
48573
  * One-click sign-in to the application installed on a site.
48574
- * @description Mints a single-use, ~2-minute sign-in link for the site's application administrator (AbanteCart, Concrete CMS, Craft, Dolibarr, Drupal, Joomla, Matomo, Mautic, MediaWiki, MODX, Moodle, Nextcloud, OpenCart, osTicket, ownCloud, phpBB, Piwigo, Silverstripe, SuiteCRM and Zenphoto; `can_sign_in` on `getSiteApplicationAccess` says which, and docs/139 §6a says why the others have none — PrestaShop and TYPO3 are withheld until re-proven). The token is signed with a key derived for this site alone and is checked, spent and exchanged for the application's own session by `zinn-login.php` on the site (docs/139 §"One-click sign-in"). Before minting, the platform makes sure that file and the site's key are on the server (idempotent). Requires `sites.view` and `sites.panel_access` in the site's organisation, like the password reveal. Each link is audit-logged as `site.application_sign_in` with the real actor, before it is returned. Refusals carry a `code` in `details[].code` (field `site`): `APP_SSO_UNSUPPORTED` (409, no sign-in for this application), `SITE_NOT_SERVING` (409), `PLATFORM_CANNOT_SSO` (422, the hosting platform has no shell), `REPAIR_FAILED` (503, the sign-in could not be prepared on the server); none of them writes an audit row.
48574
+ * @description Mints a single-use, ~2-minute sign-in link for the site's application administrator (AbanteCart, Concrete CMS, Craft, Dolibarr, Drupal, Joomla, Matomo, Mautic, MediaWiki, MODX, Moodle, Nextcloud, OpenCart, osTicket, ownCloud, Payload, phpBB, Piwigo, PrestaShop, Silverstripe, Strapi, SuiteCRM, TYPO3 and Zenphoto; `can_sign_in` on `getSiteApplicationAccess` says which, and docs/139 §6a says why the others have none). The token is signed with a key derived for this site alone and is checked, spent and exchanged for the application's own session by `zinn-login.php` on the site (docs/139 §"One-click sign-in"). For a Node application (Strapi, Payload) the URL is `https://<domain>/zinn-login#t=<token>`: the token is in the fragment, which the browser never sends to a server, and the page at `/zinn-login` posts it. A Node site deployed before that page existed has its managed startup file brought up to date and its application restarted by this call (only when the file changed; never by the hourly converge), so the first click on such a site can take a little longer. Before minting, the platform makes sure that file and the site's key are on the server (idempotent). Requires `sites.view` and `sites.panel_access` in the site's organisation, like the password reveal. Each link is audit-logged as `site.application_sign_in` with the real actor, before it is returned. Refusals carry a `code` in `details[].code` (field `site`): `APP_SSO_UNSUPPORTED` (409, no sign-in for this application), `SITE_NOT_SERVING` (409), `PLATFORM_CANNOT_SSO` (422, the hosting platform has no shell), `REPAIR_FAILED` (503, the sign-in could not be prepared on the server); none of them writes an audit row.
48575
48575
  */
48576
48576
  post: operations["signInSiteApplication"];
48577
48577
  delete?: never;
@@ -73655,6 +73655,7 @@ export interface components {
73655
73655
  expires_at: string;
73656
73656
  /**
73657
73657
  * Format: uri
73658
+ * @description `https://<domain>/zinn-login.php?t=<token>` for a PHP application; `https://<domain>/zinn-login#t=<token>` (fragment) for Strapi and Payload.
73658
73659
  * @example https://cloud.example.com/zinn-login.php?t=eyJ2IjoxfQ.c2ln
73659
73660
  */
73660
73661
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1539",
3
+ "version": "0.1.1540",
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>",