@cofy-x/axern-sdk 0.2.0-bootstrap.0
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/README.md +169 -0
- package/dist/client/index.d.ts +63 -0
- package/dist/client/index.js +213 -0
- package/dist/config/index.d.ts +15 -0
- package/dist/config/index.js +65 -0
- package/dist/errors/index.d.ts +46 -0
- package/dist/errors/index.js +123 -0
- package/dist/generated/proto.d.ts +10 -0
- package/dist/generated/proto.js +80 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +13 -0
- package/dist/node/archive.d.ts +9 -0
- package/dist/node/archive.js +41 -0
- package/dist/node/attached_process.d.ts +10 -0
- package/dist/node/attached_process.js +60 -0
- package/dist/node/capabilities.d.ts +8 -0
- package/dist/node/capabilities.js +51 -0
- package/dist/node/client.d.ts +44 -0
- package/dist/node/client.js +96 -0
- package/dist/node/computer_use.d.ts +12 -0
- package/dist/node/computer_use.js +81 -0
- package/dist/node/context.d.ts +22 -0
- package/dist/node/context.js +37 -0
- package/dist/node/exec.d.ts +12 -0
- package/dist/node/exec.js +93 -0
- package/dist/node/files.d.ts +18 -0
- package/dist/node/files.js +101 -0
- package/dist/node/process.d.ts +36 -0
- package/dist/node/process.js +144 -0
- package/dist/node/streams.d.ts +8 -0
- package/dist/node/streams.js +70 -0
- package/dist/proto/axern/common/file/v1/file.proto +31 -0
- package/dist/proto/axern/control/admin/v1/allocation_lifecycle.proto +91 -0
- package/dist/proto/axern/control/admin/v1/audit.proto +53 -0
- package/dist/proto/axern/control/admin/v1/node.proto +49 -0
- package/dist/proto/axern/control/admin/v1/reliability.proto +184 -0
- package/dist/proto/axern/control/admin/v1/service.proto +18 -0
- package/dist/proto/axern/control/admin/v1/storage.proto +81 -0
- package/dist/proto/axern/control/agentprofile/v1/agent_profile.proto +169 -0
- package/dist/proto/axern/control/catalog/v1/catalog.proto +127 -0
- package/dist/proto/axern/control/common/v1/common.proto +171 -0
- package/dist/proto/axern/control/environment/v1/environment.proto +94 -0
- package/dist/proto/axern/control/function/v1/function.proto +130 -0
- package/dist/proto/axern/control/function/v1/function_types.proto +233 -0
- package/dist/proto/axern/control/gateway/v1/gateway.proto +60 -0
- package/dist/proto/axern/control/namespace/v1/namespace.proto +52 -0
- package/dist/proto/axern/control/node/v1/node_control.proto +302 -0
- package/dist/proto/axern/control/quota/v1/quota.proto +113 -0
- package/dist/proto/axern/control/rollout/v1/rollout.proto +344 -0
- package/dist/proto/axern/control/run/v1/run.proto +88 -0
- package/dist/proto/axern/control/secret/v1/secret.proto +75 -0
- package/dist/proto/axern/control/service/v1/service.proto +96 -0
- package/dist/proto/axern/control/service/v1/service_event.proto +47 -0
- package/dist/proto/axern/control/service/v1/service_replica.proto +74 -0
- package/dist/proto/axern/control/service/v1/service_types.proto +155 -0
- package/dist/proto/axern/control/storage/v1/storage.proto +107 -0
- package/dist/proto/axern/control/storage/v1/storage_types.proto +125 -0
- package/dist/proto/axern/control/tunnel/v1/tunnel.proto +195 -0
- package/dist/proto/axern/data/artifact/v1/artifact.proto +19 -0
- package/dist/proto/axern/node/sandbox/v1/node.proto +652 -0
- package/dist/proto/axern/tunnel/v1/tunnel.proto +50 -0
- package/dist/resources.d.ts +13 -0
- package/dist/resources.js +107 -0
- package/dist/sandbox/archive.d.ts +8 -0
- package/dist/sandbox/archive.js +228 -0
- package/dist/sandbox/index.d.ts +86 -0
- package/dist/sandbox/index.js +204 -0
- package/dist/sandbox/lifecycle.d.ts +11 -0
- package/dist/sandbox/lifecycle.js +57 -0
- package/dist/tunnel/connector.d.ts +34 -0
- package/dist/tunnel/connector.js +141 -0
- package/dist/tunnel/control.d.ts +22 -0
- package/dist/tunnel/control.js +91 -0
- package/dist/tunnel/debug.d.ts +6 -0
- package/dist/tunnel/debug.js +19 -0
- package/dist/tunnel/relay.d.ts +17 -0
- package/dist/tunnel/relay.js +41 -0
- package/dist/tunnel/runtime.d.ts +34 -0
- package/dist/tunnel/runtime.js +118 -0
- package/dist/tunnel/session.d.ts +25 -0
- package/dist/tunnel/session.js +95 -0
- package/dist/tunnel/target.d.ts +7 -0
- package/dist/tunnel/target.js +28 -0
- package/dist/tunnel/types.d.ts +25 -0
- package/dist/tunnel/types.js +6 -0
- package/dist/types.d.ts +219 -0
- package/dist/types.js +8 -0
- package/dist/validation.d.ts +10 -0
- package/dist/validation.js +37 -0
- package/dist/version.d.ts +7 -0
- package/dist/version.js +9 -0
- package/package.json +57 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package axern.control.admin.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/admin/v1;adminv1";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
enum AdminNodeLifecycleStatus {
|
|
10
|
+
ADMIN_NODE_LIFECYCLE_STATUS_UNSPECIFIED = 0;
|
|
11
|
+
ADMIN_NODE_LIFECYCLE_STATUS_ACTIVE = 1;
|
|
12
|
+
ADMIN_NODE_LIFECYCLE_STATUS_RETIRED = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message AdminNode {
|
|
16
|
+
string node_id = 1;
|
|
17
|
+
AdminNodeLifecycleStatus lifecycle_status = 2;
|
|
18
|
+
bool heartbeat_fresh = 3;
|
|
19
|
+
bool summary_fresh = 4;
|
|
20
|
+
bool axnoded_ready = 5;
|
|
21
|
+
int64 heartbeat_age_seconds = 6;
|
|
22
|
+
int64 summary_age_seconds = 7;
|
|
23
|
+
google.protobuf.Timestamp registered_at = 8;
|
|
24
|
+
google.protobuf.Timestamp updated_at = 9;
|
|
25
|
+
google.protobuf.Timestamp retired_at = 10;
|
|
26
|
+
string retired_reason = 11;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message ListAdminNodesRequest {
|
|
30
|
+
AdminNodeLifecycleStatus lifecycle_status = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message ListAdminNodesResponse {
|
|
34
|
+
repeated AdminNode nodes = 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message RetireAdminNodeRequest {
|
|
38
|
+
string node_id = 1;
|
|
39
|
+
string operator_reason = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message RetireAdminNodeResponse {
|
|
43
|
+
AdminNode node = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
service NodeAdmin {
|
|
47
|
+
rpc ListAdminNodes(ListAdminNodesRequest) returns (ListAdminNodesResponse) {}
|
|
48
|
+
rpc RetireAdminNode(RetireAdminNodeRequest) returns (RetireAdminNodeResponse) {}
|
|
49
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package axern.control.admin.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/admin/v1;adminv1";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
enum AdminReliabilityStatus {
|
|
10
|
+
ADMIN_RELIABILITY_STATUS_UNSPECIFIED = 0;
|
|
11
|
+
ADMIN_RELIABILITY_STATUS_OK = 1;
|
|
12
|
+
ADMIN_RELIABILITY_STATUS_DEGRADED = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
enum ConsistencyStatus {
|
|
16
|
+
CONSISTENCY_STATUS_UNSPECIFIED = 0;
|
|
17
|
+
CONSISTENCY_STATUS_OK = 1;
|
|
18
|
+
CONSISTENCY_STATUS_INCONSISTENT = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
enum ConsistencyIssueSeverity {
|
|
22
|
+
CONSISTENCY_ISSUE_SEVERITY_UNSPECIFIED = 0;
|
|
23
|
+
CONSISTENCY_ISSUE_SEVERITY_WARNING = 1;
|
|
24
|
+
CONSISTENCY_ISSUE_SEVERITY_ERROR = 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
enum ConsistencyIssueCode {
|
|
28
|
+
CONSISTENCY_ISSUE_CODE_UNSPECIFIED = 0;
|
|
29
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_RESERVATION_MISSING_ALLOCATION = 1;
|
|
30
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_RESERVATION_ON_ENDED_ALLOCATION = 2;
|
|
31
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_RESERVATION_ALLOCATION_MISMATCH = 3;
|
|
32
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_LEASE_MISSING_ALLOCATION = 4;
|
|
33
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_LEASE_ON_ENDED_ALLOCATION = 5;
|
|
34
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_LEASE_ALLOCATION_NODE_MISMATCH = 6;
|
|
35
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_TUNNEL_MISSING_ALLOCATION = 7;
|
|
36
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_TUNNEL_ON_ENDED_ALLOCATION = 8;
|
|
37
|
+
CONSISTENCY_ISSUE_CODE_ACTIVE_TUNNEL_ALLOCATION_NODE_MISMATCH = 9;
|
|
38
|
+
CONSISTENCY_ISSUE_CODE_SERVICE_REFERENCE_MISSING_ALLOCATION = 10;
|
|
39
|
+
CONSISTENCY_ISSUE_CODE_SERVICE_REFERENCE_ENDED_ALLOCATION = 11;
|
|
40
|
+
CONSISTENCY_ISSUE_CODE_SERVICE_REFERENCE_OWNER_MISMATCH = 12;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
enum ConsistencyRepairOwner {
|
|
44
|
+
CONSISTENCY_REPAIR_OWNER_UNSPECIFIED = 0;
|
|
45
|
+
CONSISTENCY_REPAIR_OWNER_WORKLOAD_CONTROLLER = 1;
|
|
46
|
+
CONSISTENCY_REPAIR_OWNER_NODE_LIFECYCLE = 2;
|
|
47
|
+
CONSISTENCY_REPAIR_OWNER_TUNNEL_CONTROLLER = 3;
|
|
48
|
+
CONSISTENCY_REPAIR_OWNER_SERVICE_CONTROLLER = 4;
|
|
49
|
+
CONSISTENCY_REPAIR_OWNER_ADMIN_OPERATOR_TRIAGE = 5;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
enum ConsistencyRepairAction {
|
|
53
|
+
CONSISTENCY_REPAIR_ACTION_UNSPECIFIED = 0;
|
|
54
|
+
CONSISTENCY_REPAIR_ACTION_WORKLOAD_CLEANUP = 1;
|
|
55
|
+
CONSISTENCY_REPAIR_ACTION_WORKLOAD_CLEANUP_AND_READMIT = 2;
|
|
56
|
+
CONSISTENCY_REPAIR_ACTION_NODE_LIFECYCLE_RECONCILE = 3;
|
|
57
|
+
CONSISTENCY_REPAIR_ACTION_TUNNEL_LIFECYCLE_RECONCILE = 4;
|
|
58
|
+
CONSISTENCY_REPAIR_ACTION_SERVICE_RECONCILE = 5;
|
|
59
|
+
CONSISTENCY_REPAIR_ACTION_ADMIN_TRIAGE = 6;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
enum ConsistencyRepairTargetType {
|
|
63
|
+
CONSISTENCY_REPAIR_TARGET_TYPE_UNSPECIFIED = 0;
|
|
64
|
+
CONSISTENCY_REPAIR_TARGET_TYPE_ALLOCATION = 1;
|
|
65
|
+
CONSISTENCY_REPAIR_TARGET_TYPE_RUN = 2;
|
|
66
|
+
CONSISTENCY_REPAIR_TARGET_TYPE_SERVICE = 3;
|
|
67
|
+
CONSISTENCY_REPAIR_TARGET_TYPE_TUNNEL_SESSION = 4;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
enum AdminReliabilitySignalCode {
|
|
71
|
+
ADMIN_RELIABILITY_SIGNAL_CODE_UNSPECIFIED = 0;
|
|
72
|
+
ADMIN_RELIABILITY_SIGNAL_CODE_CONSISTENCY_ISSUES = 1;
|
|
73
|
+
ADMIN_RELIABILITY_SIGNAL_CODE_ALLOCATION_LIFECYCLE_RETRIES = 2;
|
|
74
|
+
ADMIN_RELIABILITY_SIGNAL_CODE_RECONCILE_FAILURES = 3;
|
|
75
|
+
ADMIN_RELIABILITY_SIGNAL_CODE_STORAGE_BINDINGS = 4;
|
|
76
|
+
ADMIN_RELIABILITY_SIGNAL_CODE_NODE_VOLUME_MANAGERS = 5;
|
|
77
|
+
ADMIN_RELIABILITY_SIGNAL_CODE_NODE_FLEET = 6;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message ConsistencyCounts {
|
|
81
|
+
int64 active_reservations = 1;
|
|
82
|
+
int64 active_leases = 2;
|
|
83
|
+
int64 active_tunnels = 3;
|
|
84
|
+
int64 allocation_lifecycle_retries = 4;
|
|
85
|
+
int64 issues = 5;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message ConsistencyIssue {
|
|
89
|
+
ConsistencyIssueCode code = 1;
|
|
90
|
+
ConsistencyIssueSeverity severity = 2;
|
|
91
|
+
string allocation_id = 3;
|
|
92
|
+
string owner_type = 4;
|
|
93
|
+
string owner_id = 5;
|
|
94
|
+
string node_id = 6;
|
|
95
|
+
string status = 7;
|
|
96
|
+
string detail = 8;
|
|
97
|
+
ConsistencyRepairOwner repair_owner = 9;
|
|
98
|
+
ConsistencyRepairAction repair_action = 10;
|
|
99
|
+
bool automatic_repair = 11;
|
|
100
|
+
ConsistencyRepairTargetType repair_target_type = 12;
|
|
101
|
+
string repair_target_id = 13;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message ConsistencySnapshot {
|
|
105
|
+
ConsistencyStatus status = 1;
|
|
106
|
+
ConsistencyCounts counts = 2;
|
|
107
|
+
repeated ConsistencyIssue issues = 3;
|
|
108
|
+
bool truncated = 4;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message AdminReliabilitySignal {
|
|
112
|
+
AdminReliabilitySignalCode code = 1;
|
|
113
|
+
string message = 2;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message AdminReliabilityHealth {
|
|
117
|
+
AdminReliabilityStatus status = 1;
|
|
118
|
+
ConsistencySnapshot consistency = 2;
|
|
119
|
+
int64 allocation_lifecycle_retries = 3;
|
|
120
|
+
int64 due_allocation_lifecycle_retries = 4;
|
|
121
|
+
int64 reconcile_unhealthy_components = 5;
|
|
122
|
+
repeated AdminReliabilitySignal signals = 6;
|
|
123
|
+
AdminNodeVolumeHealth node_volume_health = 7;
|
|
124
|
+
AdminStorageBindingHealth storage_binding_health = 8;
|
|
125
|
+
repeated ReconcileComponentHealth reconcile_components = 9;
|
|
126
|
+
AdminNodeFleetHealth node_fleet_health = 10;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
message ReconcileComponentHealth {
|
|
130
|
+
string component = 1;
|
|
131
|
+
bool running = 2;
|
|
132
|
+
google.protobuf.Timestamp last_started_at = 3;
|
|
133
|
+
google.protobuf.Timestamp last_success_at = 4;
|
|
134
|
+
google.protobuf.Timestamp last_error_at = 5;
|
|
135
|
+
string last_error = 6;
|
|
136
|
+
int64 consecutive_failures = 7;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message CheckConsistencyRequest {}
|
|
140
|
+
|
|
141
|
+
message CheckConsistencyResponse {
|
|
142
|
+
ConsistencySnapshot snapshot = 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
message GetAdminReliabilityHealthRequest {}
|
|
146
|
+
|
|
147
|
+
message GetAdminReliabilityHealthResponse {
|
|
148
|
+
AdminReliabilityHealth health = 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message AdminNodeVolumeHealth {
|
|
152
|
+
int64 unhealthy_nodes = 1;
|
|
153
|
+
int64 published_volumes = 2;
|
|
154
|
+
int64 last_reconcile_stale_allocations = 3;
|
|
155
|
+
int64 last_reconcile_invalid_volumes = 4;
|
|
156
|
+
string error = 5;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
message AdminNodeFleetHealth {
|
|
160
|
+
int64 active_nodes = 1;
|
|
161
|
+
int64 ready_nodes = 2;
|
|
162
|
+
int64 stale_heartbeat_nodes = 3;
|
|
163
|
+
int64 stale_summary_nodes = 4;
|
|
164
|
+
int64 not_ready_nodes = 5;
|
|
165
|
+
bool unavailable = 6;
|
|
166
|
+
string error = 7;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
message AdminStorageBindingHealth {
|
|
170
|
+
bool unavailable = 1;
|
|
171
|
+
string error = 2;
|
|
172
|
+
int64 failed_bindings = 3;
|
|
173
|
+
int64 releasing_bindings = 4;
|
|
174
|
+
int64 stuck_releasing_bindings = 5;
|
|
175
|
+
int64 inconsistent_claims = 6;
|
|
176
|
+
int64 invalid_bindings = 7;
|
|
177
|
+
int64 deleting_claims = 8;
|
|
178
|
+
int64 stuck_deleting_claims = 9;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
service AdminReliability {
|
|
182
|
+
rpc CheckConsistency(CheckConsistencyRequest) returns (CheckConsistencyResponse) {}
|
|
183
|
+
rpc GetAdminReliabilityHealth(GetAdminReliabilityHealthRequest) returns (GetAdminReliabilityHealthResponse) {}
|
|
184
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package axern.control.admin.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/admin/v1;adminv1";
|
|
6
|
+
|
|
7
|
+
message PurgeServiceRequest {
|
|
8
|
+
string service_id = 1;
|
|
9
|
+
string operator_reason = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message PurgeServiceResponse {
|
|
13
|
+
string service_id = 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
service ServiceAdmin {
|
|
17
|
+
rpc PurgeService(PurgeServiceRequest) returns (PurgeServiceResponse) {}
|
|
18
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package axern.control.admin.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/admin/v1;adminv1";
|
|
6
|
+
|
|
7
|
+
import "axern/control/storage/v1/storage_types.proto";
|
|
8
|
+
import "google/protobuf/timestamp.proto";
|
|
9
|
+
|
|
10
|
+
message StorageBinding {
|
|
11
|
+
string binding_id = 1;
|
|
12
|
+
string claim_id = 2;
|
|
13
|
+
string namespace = 3;
|
|
14
|
+
string claim_name = 4;
|
|
15
|
+
string workload_id = 5;
|
|
16
|
+
string workload_type = 6;
|
|
17
|
+
string allocation_id = 7;
|
|
18
|
+
string node_id = 8;
|
|
19
|
+
axern.control.storage.v1.VolumeStatus status = 9;
|
|
20
|
+
string message = 10;
|
|
21
|
+
google.protobuf.Timestamp created_at = 11;
|
|
22
|
+
google.protobuf.Timestamp updated_at = 12;
|
|
23
|
+
google.protobuf.Timestamp published_at = 13;
|
|
24
|
+
google.protobuf.Timestamp released_at = 14;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message StorageBindingFilter {
|
|
28
|
+
repeated axern.control.storage.v1.VolumeStatus statuses = 1;
|
|
29
|
+
string namespace = 2;
|
|
30
|
+
string claim_name = 3;
|
|
31
|
+
string workload_id = 4;
|
|
32
|
+
string allocation_id = 5;
|
|
33
|
+
string node_id = 6;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message ListStorageBindingsRequest {
|
|
37
|
+
StorageBindingFilter filter = 1;
|
|
38
|
+
int32 limit = 2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message ListStorageBindingsResponse {
|
|
42
|
+
repeated StorageBinding bindings = 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message RetryStorageBindingRequest {
|
|
46
|
+
string binding_id = 1;
|
|
47
|
+
string operator_reason = 2;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message RetryStorageBindingResponse {
|
|
51
|
+
StorageBinding binding = 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message StorageReclaim {
|
|
55
|
+
string claim_id = 1;
|
|
56
|
+
string namespace = 2;
|
|
57
|
+
string claim_name = 3;
|
|
58
|
+
string service_id = 4;
|
|
59
|
+
string node_id = 5;
|
|
60
|
+
int64 attempt = 6;
|
|
61
|
+
google.protobuf.Timestamp next_retry_at = 7;
|
|
62
|
+
string last_error = 8;
|
|
63
|
+
google.protobuf.Timestamp updated_at = 9;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message ListStorageReclaimsRequest {
|
|
67
|
+
string namespace = 1;
|
|
68
|
+
string service_id = 2;
|
|
69
|
+
string node_id = 3;
|
|
70
|
+
int32 limit = 4;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message ListStorageReclaimsResponse {
|
|
74
|
+
repeated StorageReclaim reclaims = 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
service StorageAdmin {
|
|
78
|
+
rpc ListStorageBindings(ListStorageBindingsRequest) returns (ListStorageBindingsResponse) {}
|
|
79
|
+
rpc RetryStorageBinding(RetryStorageBindingRequest) returns (RetryStorageBindingResponse) {}
|
|
80
|
+
rpc ListStorageReclaims(ListStorageReclaimsRequest) returns (ListStorageReclaimsResponse) {}
|
|
81
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package axern.control.agentprofile.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/agentprofile/v1;agentprofilev1";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
enum AgentProvider {
|
|
10
|
+
AGENT_PROVIDER_UNSPECIFIED = 0;
|
|
11
|
+
AGENT_PROVIDER_OPENAI = 1;
|
|
12
|
+
AGENT_PROVIDER_ANTHROPIC = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
enum AgentWireApi {
|
|
16
|
+
AGENT_WIRE_API_UNSPECIFIED = 0;
|
|
17
|
+
AGENT_WIRE_API_OPENAI_RESPONSES = 1;
|
|
18
|
+
AGENT_WIRE_API_ANTHROPIC_MESSAGES = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message AgentProfileSpec {
|
|
22
|
+
string agent = 1;
|
|
23
|
+
AgentProvider provider = 2;
|
|
24
|
+
AgentWireApi wire_api = 3;
|
|
25
|
+
string base_url = 4;
|
|
26
|
+
int32 max_concurrency = 5;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message AgentProfile {
|
|
30
|
+
string id = 1;
|
|
31
|
+
string namespace = 2;
|
|
32
|
+
string name = 3;
|
|
33
|
+
AgentProfileSpec spec = 4;
|
|
34
|
+
map<string, string> labels = 5;
|
|
35
|
+
int64 version = 6;
|
|
36
|
+
int64 credential_version = 7;
|
|
37
|
+
google.protobuf.Timestamp created_at = 8;
|
|
38
|
+
google.protobuf.Timestamp updated_at = 9;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message AgentProfileListFilter {
|
|
42
|
+
string namespace = 1;
|
|
43
|
+
string agent = 2;
|
|
44
|
+
AgentProvider provider = 3;
|
|
45
|
+
map<string, string> labels = 4;
|
|
46
|
+
string cursor = 5;
|
|
47
|
+
int32 page_size = 6;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message CreateAgentProfileRequest {
|
|
51
|
+
string namespace = 1;
|
|
52
|
+
string name = 2;
|
|
53
|
+
AgentProfileSpec spec = 3;
|
|
54
|
+
map<string, string> labels = 4;
|
|
55
|
+
bytes credential = 5;
|
|
56
|
+
string idempotency_key = 6;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message CreateAgentProfileResponse {
|
|
60
|
+
AgentProfile profile = 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message GetAgentProfileRequest {
|
|
64
|
+
string namespace = 1;
|
|
65
|
+
string name = 2;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message GetAgentProfileResponse {
|
|
69
|
+
AgentProfile profile = 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message ListAgentProfilesRequest {
|
|
73
|
+
AgentProfileListFilter filter = 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message ListAgentProfilesResponse {
|
|
77
|
+
repeated AgentProfile profiles = 1;
|
|
78
|
+
string next_cursor = 2;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message AgentProfilePatch {
|
|
82
|
+
optional string base_url = 1;
|
|
83
|
+
optional int32 max_concurrency = 2;
|
|
84
|
+
map<string, string> labels = 3;
|
|
85
|
+
bool replace_labels = 4;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message UpdateAgentProfileRequest {
|
|
89
|
+
string namespace = 1;
|
|
90
|
+
string name = 2;
|
|
91
|
+
AgentProfilePatch patch = 3;
|
|
92
|
+
int64 expected_version = 4;
|
|
93
|
+
string idempotency_key = 5;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message UpdateAgentProfileResponse {
|
|
97
|
+
AgentProfile profile = 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message RotateAgentProfileCredentialRequest {
|
|
101
|
+
string namespace = 1;
|
|
102
|
+
string name = 2;
|
|
103
|
+
bytes credential = 3;
|
|
104
|
+
int64 expected_version = 4;
|
|
105
|
+
string idempotency_key = 5;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message RotateAgentProfileCredentialResponse {
|
|
109
|
+
AgentProfile profile = 1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
enum ProfileCheckKind {
|
|
113
|
+
PROFILE_CHECK_KIND_UNSPECIFIED = 0;
|
|
114
|
+
PROFILE_CHECK_KIND_CONFIGURATION = 1;
|
|
115
|
+
PROFILE_CHECK_KIND_CREDENTIAL = 2;
|
|
116
|
+
PROFILE_CHECK_KIND_WORKER_CAPABILITY = 3;
|
|
117
|
+
PROFILE_CHECK_KIND_PROVIDER_AUTHENTICATION = 4;
|
|
118
|
+
PROFILE_CHECK_KIND_WIRE_API = 5;
|
|
119
|
+
PROFILE_CHECK_KIND_MODEL = 6;
|
|
120
|
+
PROFILE_CHECK_KIND_LATENCY = 7;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
enum ProfileCheckStatus {
|
|
124
|
+
PROFILE_CHECK_STATUS_UNSPECIFIED = 0;
|
|
125
|
+
PROFILE_CHECK_STATUS_PASS = 1;
|
|
126
|
+
PROFILE_CHECK_STATUS_WARN = 2;
|
|
127
|
+
PROFILE_CHECK_STATUS_FAIL = 3;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message ProfileCheck {
|
|
131
|
+
ProfileCheckKind kind = 1;
|
|
132
|
+
ProfileCheckStatus status = 2;
|
|
133
|
+
string code = 3;
|
|
134
|
+
string message = 4;
|
|
135
|
+
bool retryable = 5;
|
|
136
|
+
int64 latency_ms = 6;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message DoctorAgentProfileRequest {
|
|
140
|
+
string namespace = 1;
|
|
141
|
+
string name = 2;
|
|
142
|
+
string model = 3;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
message DoctorAgentProfileResponse {
|
|
146
|
+
AgentProfile profile = 1;
|
|
147
|
+
repeated ProfileCheck checks = 2;
|
|
148
|
+
bool healthy = 3;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message DeleteAgentProfileRequest {
|
|
152
|
+
string namespace = 1;
|
|
153
|
+
string name = 2;
|
|
154
|
+
int64 expected_version = 3;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message DeleteAgentProfileResponse {
|
|
158
|
+
AgentProfile profile = 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
service AgentProfileControl {
|
|
162
|
+
rpc CreateAgentProfile(CreateAgentProfileRequest) returns (CreateAgentProfileResponse) {}
|
|
163
|
+
rpc GetAgentProfile(GetAgentProfileRequest) returns (GetAgentProfileResponse) {}
|
|
164
|
+
rpc ListAgentProfiles(ListAgentProfilesRequest) returns (ListAgentProfilesResponse) {}
|
|
165
|
+
rpc UpdateAgentProfile(UpdateAgentProfileRequest) returns (UpdateAgentProfileResponse) {}
|
|
166
|
+
rpc RotateAgentProfileCredential(RotateAgentProfileCredentialRequest) returns (RotateAgentProfileCredentialResponse) {}
|
|
167
|
+
rpc DoctorAgentProfile(DoctorAgentProfileRequest) returns (DoctorAgentProfileResponse) {}
|
|
168
|
+
rpc DeleteAgentProfile(DeleteAgentProfileRequest) returns (DeleteAgentProfileResponse) {}
|
|
169
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package axern.control.catalog.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/catalog/v1;catalogv1";
|
|
6
|
+
|
|
7
|
+
message RuntimeMount {
|
|
8
|
+
string type = 1;
|
|
9
|
+
string source = 2;
|
|
10
|
+
string target = 3;
|
|
11
|
+
repeated string options = 4;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message RuntimeTemplateCapabilities {
|
|
15
|
+
bool supports_exec = 1;
|
|
16
|
+
bool supports_exec_stream = 2;
|
|
17
|
+
bool supports_long_lived_process = 3;
|
|
18
|
+
bool supports_ports = 4;
|
|
19
|
+
bool supports_computer_use = 5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message OciImageDescriptor {
|
|
23
|
+
string digest = 1;
|
|
24
|
+
string media_type = 2;
|
|
25
|
+
int64 size_bytes = 3;
|
|
26
|
+
map<string, string> annotations = 4;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message RuntimeBaselinePolicy {
|
|
30
|
+
repeated string capabilities = 1;
|
|
31
|
+
uint64 no_file_limit = 2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message RuntimeCapabilityPolicy {
|
|
35
|
+
string annotation_key = 1;
|
|
36
|
+
optional bool include_ambient = 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message RuntimeNetworkNamespacePolicy {
|
|
40
|
+
string annotation_key = 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message RuntimeResourcePolicy {
|
|
44
|
+
repeated string ignore_annotation_keys = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message RuntimeExecutionProfile {
|
|
48
|
+
RuntimeBaselinePolicy runtime_baseline = 1;
|
|
49
|
+
RuntimeCapabilityPolicy capabilities = 2;
|
|
50
|
+
RuntimeNetworkNamespacePolicy network_namespace = 3;
|
|
51
|
+
RuntimeResourcePolicy resources = 4;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message RuntimeTemplate {
|
|
55
|
+
string id = 1;
|
|
56
|
+
bool rootfs_readonly = 2;
|
|
57
|
+
// Informational image default command, usually OCI Entrypoint + Cmd for
|
|
58
|
+
// built-in templates. Workloads with no explicit argv preserve the image
|
|
59
|
+
// default at node runtime instead of using this field as a control-plane
|
|
60
|
+
// bootstrap override.
|
|
61
|
+
repeated string image_default_argv = 3;
|
|
62
|
+
string default_cwd = 4;
|
|
63
|
+
map<string, string> default_env = 5;
|
|
64
|
+
repeated RuntimeMount mounts = 6;
|
|
65
|
+
RuntimeTemplateCapabilities capabilities = 7;
|
|
66
|
+
string language = 8;
|
|
67
|
+
string language_version = 9;
|
|
68
|
+
string description = 10;
|
|
69
|
+
string version = 11;
|
|
70
|
+
OciImageDescriptor image_descriptor = 12;
|
|
71
|
+
string warm_policy = 13;
|
|
72
|
+
string cache_policy = 14;
|
|
73
|
+
RuntimeExecutionProfile execution_profile = 15;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message ListRuntimeTemplatesRequest {
|
|
77
|
+
string namespace = 1;
|
|
78
|
+
string version = 2;
|
|
79
|
+
string language = 3;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message ListRuntimeTemplatesResponse {
|
|
83
|
+
repeated RuntimeTemplate runtime_templates = 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message GetRuntimeTemplateRequest {
|
|
87
|
+
string id = 1;
|
|
88
|
+
string version = 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message GetRuntimeTemplateResponse {
|
|
92
|
+
RuntimeTemplate runtime_template = 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// AgentBundle describes a relocatable, read-only agent tool image. The image
|
|
96
|
+
// is mounted into a workload rootfs; it is not itself a runtime template.
|
|
97
|
+
message AgentBundle {
|
|
98
|
+
string id = 1;
|
|
99
|
+
string version = 2;
|
|
100
|
+
OciImageDescriptor image_descriptor = 3;
|
|
101
|
+
string binary_path = 4;
|
|
102
|
+
string description = 5;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message ListAgentBundlesRequest {
|
|
106
|
+
string version = 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message ListAgentBundlesResponse {
|
|
110
|
+
repeated AgentBundle agent_bundles = 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message GetAgentBundleRequest {
|
|
114
|
+
string id = 1;
|
|
115
|
+
string version = 2;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message GetAgentBundleResponse {
|
|
119
|
+
AgentBundle agent_bundle = 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
service RuntimeCatalog {
|
|
123
|
+
rpc ListRuntimeTemplates(ListRuntimeTemplatesRequest) returns (ListRuntimeTemplatesResponse) {}
|
|
124
|
+
rpc GetRuntimeTemplate(GetRuntimeTemplateRequest) returns (GetRuntimeTemplateResponse) {}
|
|
125
|
+
rpc ListAgentBundles(ListAgentBundlesRequest) returns (ListAgentBundlesResponse) {}
|
|
126
|
+
rpc GetAgentBundle(GetAgentBundleRequest) returns (GetAgentBundleResponse) {}
|
|
127
|
+
}
|