@celestia-island/plana-types 0.1.1 → 0.1.2
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/bindings/protocol-core-httpTypes.ts +69 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Vendored snapshot of packages/protocol-core/bindings/httpTypes.ts (ts-rs
|
|
2
|
+
// generated) so the published npm tarball is self-contained: npm `files`
|
|
3
|
+
// cannot reach parent directories, and index.ts previously imported
|
|
4
|
+
// `../protocol-core/bindings/httpTypes`, which is absent from the tarball and
|
|
5
|
+
// breaks registry installs. Distinct filename to avoid colliding with this
|
|
6
|
+
// crate's own ts-rs-generated bindings/httpTypes.ts. Re-sync when
|
|
7
|
+
// protocol-core's HttpTypes bindings change.
|
|
8
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Backend build profile.
|
|
12
|
+
*/
|
|
13
|
+
export type BackendKind = "dev" | "nightly" | "prod" | "mock";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Connection status of a dependency, as reported in health payloads.
|
|
17
|
+
*/
|
|
18
|
+
export type ConnectionStatus = { connected: boolean, latency: bigint, lastCheck: string, };
|
|
19
|
+
|
|
20
|
+
export type CreatedResponse = { created: Array<string>, };
|
|
21
|
+
|
|
22
|
+
export type DeletedResponse = { deleted: bigint, };
|
|
23
|
+
|
|
24
|
+
export type ErrorResponse = { error: string, message?: string, };
|
|
25
|
+
|
|
26
|
+
export type GrantItem = { id: string, scope: string, user_id: string | null, group_id: string | null, permission: string, resource_id: string | null, granted: boolean, created_at: string, };
|
|
27
|
+
|
|
28
|
+
export type GrantListResponse = { grants: Array<GrantItem>, };
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Standard /api/health response for all plana backends.
|
|
32
|
+
*/
|
|
33
|
+
export type HealthResponse = { status: ServiceStatus, version: string, kind: BackendKind, uptime: bigint, network: NetworkInfo, build_hash: string | null, engine_version: string | null, };
|
|
34
|
+
|
|
35
|
+
export type IdResponse = { id: string, };
|
|
36
|
+
|
|
37
|
+
export type MyPermissions = { role: string, permissions: Array<string>, };
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Network context from the incoming request.
|
|
41
|
+
*/
|
|
42
|
+
export type NetworkInfo = { transport: string, region: string, asn: number | null, };
|
|
43
|
+
|
|
44
|
+
export type OAuthProvider = { provider: string, client_id: string, client_secret_masked: string, public_domain: string, enabled: boolean, };
|
|
45
|
+
|
|
46
|
+
export type OkIdResponse = { ok: boolean, id: string, };
|
|
47
|
+
|
|
48
|
+
export type OkMessageResponse = { ok: boolean, message: string, };
|
|
49
|
+
|
|
50
|
+
export type OkResponse = { ok: boolean, };
|
|
51
|
+
|
|
52
|
+
export type PermissionsResponse = { role: string, permissions: Array<string>, };
|
|
53
|
+
|
|
54
|
+
export type RbacGroup = { id: string, name: string, description: string, member_count: number, created_at: string, updated_at: string, };
|
|
55
|
+
|
|
56
|
+
export type RbacGroupsResponse = { groups: Array<RbacGroup>, };
|
|
57
|
+
|
|
58
|
+
export type RbacUser = { id: string, username: string, email: string, display_name: string, avatar_url: string | null, is_active: boolean, is_admin: boolean, role: string, tier: string, created_at: string, };
|
|
59
|
+
|
|
60
|
+
export type RbacUsersResponse = { users: Array<RbacUser>, };
|
|
61
|
+
|
|
62
|
+
export type ReadinessResponse = { status: string, database: boolean, };
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Service health status. Serde uses lowercase so JSON returns "ok" etc.
|
|
66
|
+
*/
|
|
67
|
+
export type ServiceStatus = "ok" | "degraded" | "unhealthy";
|
|
68
|
+
|
|
69
|
+
export type StatusResponse = { status: string, agent_id?: string, platform?: string, id?: string, plugin_id?: string, };
|
package/index.ts
CHANGED
|
@@ -65,7 +65,7 @@ export * from "./bindings/tools/hubris";
|
|
|
65
65
|
export type { Annotation, FileCreateDirParams, FileDeleteParams, FileDeleteResult, FileEditParams, FileEditResult, FileExistsParams, FileExistsResult, FileGetInfoParams, FileInfoResult, FileListParams, FileListResult, FileReadResult, FileTreeListResult, FileWriteParams, FileWriteResult, ListAnnotationsResult, MkDirResult, ResolveAnnotationResult } from "./bindings/tools/kalos";
|
|
66
66
|
export type { CheckWaitParams, ContainerCreateResult, ContainerFilterCriteria, ContainerForkParams, ContainerForkResult, ContainerInfoParams, ContainerInfoResult, ContainerListItem, ContainerListParams, ContainerListResult, ContainerRemoveParams, ContainerRemoveResult, ContainerSnapshotResult, ContainerStartParams, ContainerStartResult, ContainerStopParams, ContainerStopResult, ExecOnContainerParams, ExecResult, GitPushBranchParams, GitPushResult, NewContainerToolParams, NewContainerVolumeMount, SidecarDeliverResult, SidecarKillParams, SidecarSendParams, SidecarSendResult, SidecarSpawnParams, ToolchainEnsureParams, ToolchainEnsureResult, ToolchainListParams, ToolchainListResult, ToolchainProfileInfo, ToolchainVolumeSpec, VolumeInfo, WaitParams } from "./bindings/tools/neikos";
|
|
67
67
|
export type { AgentIntegrityParams, AskResult, AuditAlignmentParams, AuditAlignmentResult, AuditFinding, AuditLegalityParams, AuditLegalityResult, BlockToolParams, CheckResultItem, ComplianceReportParams, ComplianceReportToolResult, ComplianceRule, ComplianceSummary, InspectToolCallParams, ManageSensitivityRulesParams, ReplyResult, ReportDetail, ReportHumanResult, RuleCheckResult, SecurityAuditParams, SecurityStatusParams, SecuritySuggestionsParams, SensitivityRule, SetNetworkPolicyParams, SetRiskThresholdParams, SetSecurityPolicyParams, StandardCheckParams, StandardCheckResult, StandardRegisterResult, UnblockToolParams } from "./bindings/tools/orexis";
|
|
68
|
-
export type { GrantItem, GrantListResponse, MyPermissions, OAuthProvider, RbacUser, RbacUsersResponse } from "
|
|
68
|
+
export type { GrantItem, GrantListResponse, MyPermissions, OAuthProvider, RbacUser, RbacUsersResponse } from "./bindings/httpTypes";
|
|
69
69
|
export * from "./bindings/tools/philia";
|
|
70
70
|
export * from "./bindings/tools/polemos";
|
|
71
71
|
export * from "./bindings/tools/skemma";
|