Expand description
Generated transport-independent contract objects.
Structs§
- Application
- The configuration and status of an Application. An Application belongs to one Project and cannot move to another. You cannot use the ID of a deleted Application again.
- Application
Configuration - The exact redirect URIs and the resource scopes that the Application can request. The Application calls the API of the stack that owns its Project. Each user still approves the scopes, and the user’s current permissions still apply. setupUrl returns the browser after installation setup. It uses HTTPS (or HTTP on loopback) and receives installation_id, setup_action and optional state; the Application checks the actual grant through the API. redirectOnUpdate also returns after changes to an existing installation; it defaults to false and requires setupUrl. installOnSignIn defaults to false. When enabled, sign-in requires an active installation and lets an Organization owner install during user consent. allowedCorsOrigins lists the exact browser origins (scheme, host and port) whose scripts may obtain tokens and call ScanDAL as the Application.
- Application
Page - ApplicationPage contract value.
- Application
Scope - ApplicationScope contract value.
- Application
Scopes - ApplicationScopes contract value.
- Background
Identity - An OpenID Connect identity of the Application’s backend, such as a cloud service account. backgroundIdentity applies to installation tokens; jwtBearerIssuers applies to app tokens. A token must come from issuer and carry every listed claim value.
- Client
AppAccess - ClientAppAccess contract value.
- Consent
Client - The verified OAuth client and callback shown by the consent application.
- Consent
Decision - Accept only the listed requested scopes, or reject the authorization.
- Consent
Redirect - Return the initiating browser to this authorization-server URL to finish consent.
- Consent
Request - The requested delegation. A challenge contains no access or refresh token.
- Consent
Subject - The authenticated user and Organization bound to this authorization.
- Installable
Application - Application details for an Organization member to review before installation. Credentials, sign-in callbacks and developer Project configuration are not included. The registered setup URL identifies where the browser returns after setup.
- Installation
- An Application installed in one Organization, where it acts as its own identity.
requestedis the latest request.approvedis what an Organization owner approved, and it is the only grant that Spiral enforces. A request for more access takes effect only when an owner approves it. - Installation
Details - Installation metadata and its API audience. configurationUrl is the Studio page where an
Organization member changes this installation; it carries no
state, so append your own. configurationUrl is absent when the deployment does not name its Studio. - Installation
Grant - InstallationGrant contract value.
- Installation
Page - InstallationPage contract value.
- Installation
Project - InstallationProject contract value.
- Installation
Project Page - InstallationProjectPage contract value.
- Installation
Projects - Every Project in the Organization, including Projects created later, when
allis true. Otherwise, only the listed Projects. - Installation
Request - InstallationRequest contract value.
- Installation
Review - Approve or decline the exact request shown to an Organization owner. A changed request returns Conflict and must be reviewed again. Declining an update preserves the existing approval; declining a new installation removes the request.
- Installation
Status Change - InstallationStatusChange contract value.
- Installation
Summary - approvedAllProjects is true when the approved grant covers every Project in the Organization, including Projects created later, and false when it covers only listed Projects. It is absent while no grant is approved, and approvedScopes is then empty.
- List
Applications Request - ListApplicationsRequest contract value.
- Organization
AppAccess - The Applications and MCP clients that the users of an Organization can sign in to. The decision
for a listed client applies first.
unlistedapplies to every other client. - User
Installation - Setup state for the caller’s app and Organization. An absent installation means setup has not
started. configurationUrl is the Studio page for this app and Organization: it starts setup when
there is no installation and changes the existing one otherwise. It depends only on the app and
Organization, so it is here and not on the installation. It carries no
state, so append your own. It is absent when the deployment does not name its Studio. Project enumeration uses the user installation project list.
Enums§
- AppAccess
Decision - AppAccessDecision contract value.
- Application
Audience - Who can sign in to the Application.
internaladmits only users of the Organization that owns the Application’s Project.publicalso admits users of other Organizations after Spiral reviews the Application, subject to the app access of each Organization. - Application
Status - ApplicationStatus contract value.
- Apps
Error - Typed errors declared by this service contract.
- Installation
Status - InstallationStatus contract value.
- Unlisted
AppAccess - What happens to an Application that the Organization did not list.
allow_reviewedallows Applications that Spiral reviewed.blockblocks all of them.