Skip to main content

Module entities

Module entities 

Source
Expand description

API entities — DTOs and query parameter types.

These types form the public API contract. They map from internal store models and are never exposed directly.

Re-exports§

pub use lease::DEFAULT_LEASE_TTL_SECS;
pub use lease::MAX_LEASE_TTL_SECS;
pub use lease::RenewLeaseRequest;
pub use lease::RenewLeaseResponse;
pub use lease::validate_lease_ttl;

Modules§

lease
Worker lease request/response types for the internal routes.

Structs§

AccountFormFieldResponse
A form field of an account kind.
AccountKindResponse
A supported account kind.
AccountUsagePointResponse
One historical observation of a window.
AccountWindowResponse
One usage window of an account.
ApprovalDelegationResponse
Approval delegation response.
ArtifactResponse
An artifact as exposed by the REST API.
ChangePasswordRequest
Change password request body.
CreateApprovalDelegationRequest
Create delegation request body.
CreateProviderAccountRequest
Request body to add a Provider Account. Admin only.
CreateRunRequest
Request to trigger a workflow.
CreateScheduleRequest
Create schedule request body.
CreateUserRequest
Request body for creating a user (admin only).
CreatedBy
The author of a run, as exposed by the API.
KeyVersionsResponse
How the configured key ring lines up with the stored secrets.
ListApprovalDelegationsQuery
Query parameters for listing delegations.
ListProviderAccountsQuery
Query of GET /provider-accounts.
ListRunsQuery
Query parameters for listing runs.
ListSignalsQuery
Query parameters for listing signals.
MeResponse
Current user profile response.
ProviderAccountResponse
A Provider Account, without its credential.
ProviderAccountTestResponse
Response of POST /provider-accounts/{id}/test.
ProviderAccountUsageResponse
Current windows and history of an account.
RejectedRunResponse
A waiting run whose payload schema the signal did not match.
ResumedRunResponse
A run resumed by a signal.
RotateSecretsRequest
Request body for rotating a batch of secrets to another key version.
RotateSecretsResponse
Outcome of one rotation batch.
RunDetailResponse
Run detail response — includes steps and payload.
RunResponse
Run response DTO — public API representation of a run.
ScheduleResponse
Schedule list/detail response.
SecretResponse
Response DTO for a secret (never exposes the value).
SendSignalRequest
Send signal request body.
SetSecretRequest
Request body for creating or updating a secret.
SignInRequest
Sign-in request body.
SignUpRequest
Sign-up request body.
SignalDeliveryResponse
Result of sending a signal.
SignalResponse
A stored signal.
StatsHistoryBucketResponse
One time bucket in the history response.
StatsHistoryQuery
Query parameters for GET /api/v1/stats/history.
StatsHistoryResponse
Time-bucketed historical statistics response.
StatsResponse
Aggregate statistics response.
StepResponse
Step response DTO — public API representation of a step.
UpdateProviderAccountRequest
Request body to update a Provider Account. All fields optional; name and kind are immutable.
UpdateRoleRequest
Request body for updating a user’s role (admin only).
UpdateScheduleRequest
Update schedule request body. All fields optional.
UpdateUserGroupsRequest
Request body for replacing a user’s group memberships (admin only).
UsageQuery
Query of GET /provider-accounts/{id}/usage.
UserGroupsResponse
Response DTO for a user’s group memberships.
UserResponse
Response DTO for a user (never exposes password hash).

Enums§

AccountState
Derived state of an account, for display.
AccountTestResult
Outcome of a live credential test.
CreatedByKind
What kind of principal triggered a run.
IdempotencyKeyError
Why an Idempotency-Key header value was rejected.

Functions§

validate_idempotency_key
Validate an Idempotency-Key header value.