@onesi/genesis 0.0.1-stage → 0.2.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.
Files changed (113) hide show
  1. package/README.md +29 -0
  2. package/dist/auto.d.ts +1010 -0
  3. package/dist/auto.js +125 -0
  4. package/dist/beacons.d.ts +145 -0
  5. package/dist/beacons.js +148 -0
  6. package/dist/blinds-owner-enrollment.d.ts +280 -0
  7. package/dist/blinds-owner-enrollment.js +169 -0
  8. package/dist/client.d.ts +52 -0
  9. package/dist/client.js +384 -0
  10. package/dist/context.d.ts +50 -0
  11. package/dist/context.js +153 -0
  12. package/dist/dials.d.ts +299 -0
  13. package/dist/dials.js +100 -0
  14. package/dist/errors.d.ts +35 -0
  15. package/dist/errors.js +66 -0
  16. package/dist/flares.d.ts +202 -0
  17. package/dist/flares.js +61 -0
  18. package/dist/fleets.d.ts +218 -0
  19. package/dist/fleets.js +189 -0
  20. package/dist/flocks.d.ts +439 -0
  21. package/dist/flocks.js +98 -0
  22. package/dist/foundry-billing.d.ts +97 -0
  23. package/dist/foundry-billing.js +107 -0
  24. package/dist/foundry.d.ts +424 -0
  25. package/dist/foundry.js +133 -0
  26. package/dist/garden.d.ts +754 -0
  27. package/dist/garden.js +76 -0
  28. package/dist/gateway.d.ts +365 -0
  29. package/dist/gateway.js +82 -0
  30. package/dist/gears.d.ts +226 -0
  31. package/dist/gears.js +42 -0
  32. package/dist/generated/operations.d.ts +4 -0
  33. package/dist/generated/operations.js +65134 -0
  34. package/dist/generated/schema.d.ts +87658 -0
  35. package/dist/generated/schema.js +1 -0
  36. package/dist/genesis.d.ts +9574 -0
  37. package/dist/genesis.js +271 -0
  38. package/dist/genesis.openapi.json +128522 -0
  39. package/dist/henry.d.ts +369 -0
  40. package/dist/henry.js +268 -0
  41. package/dist/hives-cells.d.ts +127 -0
  42. package/dist/hives-cells.js +151 -0
  43. package/dist/hives-environment.d.ts +37 -0
  44. package/dist/hives-environment.js +80 -0
  45. package/dist/hives-functions.d.ts +36 -0
  46. package/dist/hives-functions.js +185 -0
  47. package/dist/hives-marketplace.d.ts +128 -0
  48. package/dist/hives-marketplace.js +187 -0
  49. package/dist/hives-node.d.ts +9 -0
  50. package/dist/hives-node.js +155 -0
  51. package/dist/hives-operations.d.ts +451 -0
  52. package/dist/hives-operations.js +43 -0
  53. package/dist/hives-platform.d.ts +149 -0
  54. package/dist/hives-platform.js +183 -0
  55. package/dist/hives-queue-consumer.d.ts +56 -0
  56. package/dist/hives-queue-consumer.js +95 -0
  57. package/dist/hives-queue-funding.d.ts +28 -0
  58. package/dist/hives-queue-funding.js +81 -0
  59. package/dist/hives-queues.d.ts +137 -0
  60. package/dist/hives-queues.js +143 -0
  61. package/dist/hives-resources-transport.d.ts +23 -0
  62. package/dist/hives-resources-transport.js +204 -0
  63. package/dist/hives-response.d.ts +2 -0
  64. package/dist/hives-response.js +32 -0
  65. package/dist/hives-runtimes.d.ts +34 -0
  66. package/dist/hives-runtimes.js +32 -0
  67. package/dist/hives-sse.d.ts +24 -0
  68. package/dist/hives-sse.js +111 -0
  69. package/dist/hives-topics.d.ts +51 -0
  70. package/dist/hives-topics.js +79 -0
  71. package/dist/hives-upload.d.ts +9 -0
  72. package/dist/hives-upload.js +23 -0
  73. package/dist/hives-volumes.d.ts +64 -0
  74. package/dist/hives-volumes.js +117 -0
  75. package/dist/iam-directory.d.ts +8 -0
  76. package/dist/iam-directory.js +23 -0
  77. package/dist/iam.d.ts +391 -0
  78. package/dist/iam.js +92 -0
  79. package/dist/idempotency.d.ts +7 -0
  80. package/dist/idempotency.js +39 -0
  81. package/dist/index.d.ts +47 -0
  82. package/dist/index.js +37 -0
  83. package/dist/instances.d.ts +200 -0
  84. package/dist/instances.js +43 -0
  85. package/dist/lanes.d.ts +267 -0
  86. package/dist/lanes.js +41 -0
  87. package/dist/minds-agent.d.ts +88 -0
  88. package/dist/minds-agent.js +233 -0
  89. package/dist/minds-engine.d.ts +394 -0
  90. package/dist/minds-engine.js +555 -0
  91. package/dist/minds-owner.d.ts +110 -0
  92. package/dist/minds-owner.js +226 -0
  93. package/dist/minds.d.ts +377 -0
  94. package/dist/minds.js +228 -0
  95. package/dist/orgs.d.ts +405 -0
  96. package/dist/orgs.js +63 -0
  97. package/dist/relays-enrollment.d.ts +33 -0
  98. package/dist/relays-enrollment.js +115 -0
  99. package/dist/runner-grant.d.ts +10 -0
  100. package/dist/runner-grant.js +133 -0
  101. package/dist/runner.d.ts +72 -0
  102. package/dist/runner.js +117 -0
  103. package/dist/scopes.d.ts +310 -0
  104. package/dist/scopes.js +40 -0
  105. package/dist/taps.d.ts +118 -0
  106. package/dist/taps.js +45 -0
  107. package/dist/traces.d.ts +574 -0
  108. package/dist/traces.js +97 -0
  109. package/dist/types.d.ts +98 -0
  110. package/dist/types.js +1 -0
  111. package/dist/urls.d.ts +6 -0
  112. package/dist/urls.js +31 -0
  113. package/package.json +49 -1
@@ -0,0 +1,451 @@
1
+ import type { GenesisClient } from './client.js';
2
+ import type { OperationInput as In } from './types.js';
3
+ /** The original Hives scheduler, settings and measured activity use the same gateway and identity. */
4
+ export declare function hivesOperations(client: GenesisClient): {
5
+ cells: {
6
+ list(project: string, query?: {
7
+ page?: number;
8
+ per_page?: number;
9
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucketList>;
10
+ get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucket>;
11
+ create(project: string, body: import("./hives-cells.js").HivesCreateBucket, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucket>;
12
+ remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
13
+ id: string;
14
+ success: boolean;
15
+ message: string;
16
+ }>;
17
+ reconcile(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
18
+ bucket: import("./hives-cells.js").HivesBucket;
19
+ outcome: string;
20
+ }>;
21
+ cors: {
22
+ get: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-cells.js").HivesCorsRule[]>;
23
+ set: (project: string, id: string, rules: import("./hives-cells.js").HivesCorsRule[], options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-cells.js").HivesCorsRule[]>;
24
+ };
25
+ objects: {
26
+ list(project: string, id: string, query?: {
27
+ prefix?: string;
28
+ delimiter?: string;
29
+ continuation_token?: string;
30
+ max_keys?: number;
31
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesObjectList>;
32
+ put(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesResourceOptions & {
33
+ content_type?: string;
34
+ }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
35
+ remove: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
36
+ download: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<Response>;
37
+ putFlat(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesResourceOptions & {
38
+ content_type?: string;
39
+ }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
40
+ removeFlat: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
41
+ };
42
+ presign(project: string, id: string, body: import("./hives-cells.js").HivesPresign, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesPresignedUrl>;
43
+ };
44
+ queues: {
45
+ consumer: {
46
+ get(project: string, queue: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queue-consumer.js").HivesQueueConsumerStatus>;
47
+ configure(project: string, queue: string, input: import("./hives-queue-consumer.js").HivesQueueConsumerConfig, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queue-consumer.js").HivesQueueConsumerBinding>;
48
+ remove(project: string, queue: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
49
+ success: true;
50
+ queueId: string;
51
+ }>;
52
+ };
53
+ list(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
54
+ data: import("./hives-queues.js").HivesQueue[];
55
+ engine_available: true;
56
+ }>;
57
+ get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
58
+ create(project: string, body: import("./hives-queues.js").HivesQueueCreate, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
59
+ configure(project: string, id: string, body: import("./hives-queues.js").HivesQueueConfig, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
60
+ remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
61
+ deleted: true;
62
+ }>;
63
+ stats(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
64
+ consumers: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<never>;
65
+ pause(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
66
+ resume(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
67
+ purge(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
68
+ purged: number;
69
+ }>;
70
+ send(project: string, id: string, body: import("./hives-queues.js").HivesQueueSend, options?: import("./hives-queue-funding.js").HivesQueueSendOptions): Promise<import("./hives-queue-funding.js").HivesQueueOperation | {
71
+ message_id: string;
72
+ }>;
73
+ operations: {
74
+ get(project: string, id: string, operationId: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queue-funding.js").HivesQueueOperation>;
75
+ };
76
+ receive(project: string, id: string, body?: {
77
+ maxMessages?: number;
78
+ waitSeconds?: number;
79
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
80
+ messages: import("./hives-queues.js").HivesQueueDelivery[];
81
+ }>;
82
+ ack: (project: string, id: string, message: string, receipt: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
83
+ acknowledged: boolean;
84
+ released: boolean;
85
+ }>;
86
+ nack: (project: string, id: string, message: string, receipt: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
87
+ acknowledged: boolean;
88
+ released: boolean;
89
+ }>;
90
+ deadLetters: (project: string, id: string, query?: {
91
+ limit?: number;
92
+ offset?: number;
93
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
94
+ messages: import("./hives-queues.js").HivesDeadLetter[];
95
+ }>;
96
+ deadLetterStats: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-queues.js").HivesDeadLetterStats>;
97
+ replay(project: string, id: string, message: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
98
+ message_id: string;
99
+ replayed: 1;
100
+ }>;
101
+ deleteDeadLetter(project: string, id: string, message: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
102
+ deleted: true;
103
+ }>;
104
+ purgeDeadLetters(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
105
+ purged: number;
106
+ }>;
107
+ };
108
+ topics: {
109
+ list(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
110
+ data: import("./hives-topics.js").HivesTopic[];
111
+ }>;
112
+ get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-topics.js").HivesTopic>;
113
+ create(project: string, body: {
114
+ name: string;
115
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-topics.js").HivesTopic>;
116
+ remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
117
+ deleted: true;
118
+ }>;
119
+ subscriptions: {
120
+ list(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
121
+ data: import("./hives-topics.js").HivesTopicSubscription[];
122
+ }>;
123
+ add(project: string, id: string, queueId: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-topics.js").HivesTopicSubscription>;
124
+ remove(project: string, id: string, subscriptionId: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
125
+ deleted: true;
126
+ }>;
127
+ };
128
+ publish(project: string, id: string, body: import("./hives-topics.js").HivesTopicPublish, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-topics.js").HivesTopicPublication>;
129
+ };
130
+ runtimes: {
131
+ list: (options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
132
+ runtimes: import("./hives-runtimes.js").HivesRuntime[];
133
+ }>;
134
+ project: (project_id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
135
+ runtimes: import("./hives-runtimes.js").HivesRuntime[];
136
+ }>;
137
+ get: (name: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntime>;
138
+ select: (input: {
139
+ wasi: string;
140
+ runner: string;
141
+ artifact: string;
142
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntimeSelection>;
143
+ };
144
+ settings: {
145
+ get: (project_id: string) => Promise<{
146
+ autoDeployEnabled: boolean;
147
+ buildCommand?: string | null;
148
+ defaultRegion: string;
149
+ installCommand?: string | null;
150
+ outputDirectory?: string | null;
151
+ previewDeploymentsEnabled: boolean;
152
+ } & {
153
+ capabilities: import("./index.js").components["schemas"]["Hives.ProjectSettingsCapabilities"];
154
+ effective: import("./index.js").components["schemas"]["Hives.EffectiveProjectSettings"];
155
+ }>;
156
+ update: (project_id: string, body: In<"hives_update_project_settings">["body"]) => Promise<{
157
+ autoDeployEnabled: boolean;
158
+ buildCommand?: string | null;
159
+ defaultRegion: string;
160
+ installCommand?: string | null;
161
+ outputDirectory?: string | null;
162
+ previewDeploymentsEnabled: boolean;
163
+ } & {
164
+ capabilities: import("./index.js").components["schemas"]["Hives.ProjectSettingsCapabilities"];
165
+ effective: import("./index.js").components["schemas"]["Hives.EffectiveProjectSettings"];
166
+ }>;
167
+ };
168
+ crons: {
169
+ list: (project_id: string, q?: Omit<In<"hives_list_crons">, "project_id">) => Promise<Record<string, never>>;
170
+ get: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
171
+ create: (project_id: string, body: In<"hives_create_cron">["body"]) => Promise<Record<string, never>>;
172
+ update: (project_id: string, cron_id: string, body: In<"hives_update_cron">["body"]) => Promise<Record<string, never>>;
173
+ delete: (project_id: string, cron_id: string) => Promise<{
174
+ id: string;
175
+ message: string;
176
+ success: boolean;
177
+ }>;
178
+ pause: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
179
+ resume: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
180
+ /** Admission returns a persisted run ID; read history to learn its actual outcome. No retry. */
181
+ trigger: (project_id: string, cron_id: string) => Promise<unknown>;
182
+ runs: (project_id: string, cron_id: string, q?: Omit<In<"hives_get_cron_runs">, "project_id" | "cron_id">) => Promise<{
183
+ data: {
184
+ duration_ms?: number | null;
185
+ ended_at?: string | null;
186
+ error?: string | null;
187
+ id: string;
188
+ logs_url?: string | null;
189
+ started_at: string;
190
+ status: string;
191
+ }[];
192
+ pagination: import("./index.js").components["schemas"]["Hives.PaginationMeta"];
193
+ }>;
194
+ };
195
+ metrics: {
196
+ project: (project_id: string, q?: Omit<In<"hives_get_project_metrics">, "project_id">) => Promise<{
197
+ active_deployments: number;
198
+ avg_api_http_duration_ms?: number | null;
199
+ avg_response_time_ms?: number | null;
200
+ cron_executions?: number | null;
201
+ data_transfer_bytes: number;
202
+ error_count: number;
203
+ error_rate?: number | null;
204
+ function_invocations: number;
205
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
206
+ observed_request_payload_bytes: number;
207
+ observed_response_payload_bytes: number;
208
+ p95_response_time_ms?: number | null;
209
+ p99_response_time_ms?: number | null;
210
+ project_id: string;
211
+ storage_bytes?: number | null;
212
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
213
+ total_requests: number;
214
+ unique_visitors?: number | null;
215
+ }>;
216
+ dashboard: (project_id: string, q?: Omit<In<"hives_get_dashboard_metrics">, "project_id">) => Promise<{
217
+ activeDeployments: number;
218
+ avgApiHttpDurationMs?: number | null;
219
+ avgLatencyMs?: number | null;
220
+ deploymentsChange?: number | null;
221
+ errorRate?: number | null;
222
+ errorRateChange?: number | null;
223
+ errorTimeSeries: import("./index.js").components["schemas"]["Hives.MetricDataPoint"][];
224
+ latencyChange?: number | null;
225
+ latencyTimeSeries: import("./index.js").components["schemas"]["Hives.MetricDataPoint"][];
226
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
227
+ observedRequestPayloadBytes: number;
228
+ observedResponsePayloadBytes: number;
229
+ requestsChange?: number | null;
230
+ requestsTimeSeries: import("./index.js").components["schemas"]["Hives.MetricDataPoint"][];
231
+ totalRequests: number;
232
+ }>;
233
+ requests: (project_id: string, q?: Omit<In<"hives_get_request_metrics">, "project_id">) => Promise<{
234
+ aggregation: import("./index.js").components["schemas"]["Hives.MetricAggregation"];
235
+ data: import("./index.js").components["schemas"]["Hives.MetricDataPoint"][];
236
+ name: string;
237
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
238
+ resolution_seconds: number;
239
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
240
+ }>;
241
+ latency: (project_id: string, q?: Omit<In<"hives_get_latency_metrics">, "project_id">) => Promise<{
242
+ aggregation: import("./index.js").components["schemas"]["Hives.MetricAggregation"];
243
+ data: import("./index.js").components["schemas"]["Hives.MetricDataPoint"][];
244
+ name: string;
245
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
246
+ resolution_seconds: number;
247
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
248
+ }>;
249
+ errors: (project_id: string, q?: Omit<In<"hives_get_error_metrics">, "project_id">) => Promise<{
250
+ aggregation: import("./index.js").components["schemas"]["Hives.MetricAggregation"];
251
+ data: import("./index.js").components["schemas"]["Hives.MetricDataPoint"][];
252
+ name: string;
253
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
254
+ resolution_seconds: number;
255
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
256
+ }>;
257
+ function: (project_id: string, function_id: string, q?: Omit<In<"hives_get_function_metrics">, "project_id" | "function_id">) => Promise<{
258
+ avg_api_http_duration_ms?: number | null;
259
+ avg_duration_ms?: number | null;
260
+ billed_gb_seconds?: number | null;
261
+ cold_starts?: number | null;
262
+ configured_memory_limit_mb: number;
263
+ failed_invocations: number;
264
+ function_id: string;
265
+ function_name: string;
266
+ memory_mb?: number | null;
267
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
268
+ observed_request_payload_bytes: number;
269
+ observed_response_payload_bytes: number;
270
+ p50_duration_ms?: number | null;
271
+ p95_duration_ms?: number | null;
272
+ p99_duration_ms?: number | null;
273
+ success_rate?: number | null;
274
+ successful_invocations: number;
275
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
276
+ timeouts?: number | null;
277
+ total_invocations: number;
278
+ }>;
279
+ invocations: (project_id: string, function_id: string, q?: Omit<In<"hives_get_function_invocations_series">, "project_id" | "function_id">) => Promise<{
280
+ aggregation: import("./index.js").components["schemas"]["Hives.MetricAggregation"];
281
+ data: import("./index.js").components["schemas"]["Hives.MetricDataPoint"][];
282
+ name: string;
283
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
284
+ resolution_seconds: number;
285
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
286
+ }>;
287
+ deployment: (project_id: string, deployment_id: string, q?: Omit<In<"hives_get_deployment_metrics">, "project_id" | "deployment_id">) => Promise<{
288
+ active_instances?: number | null;
289
+ avg_api_http_duration_ms?: number | null;
290
+ avg_cpu_percent?: number | null;
291
+ avg_memory_mb?: number | null;
292
+ avg_response_time_ms?: number | null;
293
+ deployment_id: string;
294
+ error_count: number;
295
+ error_rate?: number | null;
296
+ max_instances?: number | null;
297
+ min_instances?: number | null;
298
+ network_in_bytes?: number | null;
299
+ network_out_bytes?: number | null;
300
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
301
+ observed_request_payload_bytes: number;
302
+ observed_response_payload_bytes: number;
303
+ p95_response_time_ms?: number | null;
304
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
305
+ total_requests: number;
306
+ }>;
307
+ resources: (project_id: string, q?: Omit<In<"hives_get_resource_usage">, "project_id">) => Promise<{
308
+ active_deployments: number;
309
+ avg_api_http_duration_ms?: number | null;
310
+ bandwidth_gb?: number | null;
311
+ build_minutes?: number | null;
312
+ compute_gb_seconds?: number | null;
313
+ custom_domains: number;
314
+ function_invocations: number;
315
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
316
+ observed_request_payload_bytes: number;
317
+ observed_response_payload_bytes: number;
318
+ scheduled_jobs: number;
319
+ ssl_certificates: number;
320
+ storage_gb?: number | null;
321
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
322
+ }>;
323
+ realtime: (project_id: string) => Promise<{
324
+ active_connections?: number | null;
325
+ avg_api_http_duration_ms?: number | null;
326
+ avg_response_time_ms?: number | null;
327
+ cpu_percent?: number | null;
328
+ error_rate?: number | null;
329
+ memory_percent?: number | null;
330
+ observation: import("./index.js").components["schemas"]["Hives.ObservationScope"];
331
+ observed_request_payload_bytes: number;
332
+ observed_response_payload_bytes: number;
333
+ requests_per_second: number;
334
+ updated_at: string;
335
+ }>;
336
+ };
337
+ logs: {
338
+ query: (project_id: string, q?: Omit<In<"hives_query_logs">, "project_id">) => Promise<{
339
+ logs: import("./index.js").components["schemas"]["Hives.LogEntry"][];
340
+ pagination: import("./index.js").components["schemas"]["Hives.PaginationMeta"];
341
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
342
+ }>;
343
+ stream: (project_id: string, q?: import("./hives-platform.js").HivesLogStreamQuery, init?: {
344
+ signal?: AbortSignal;
345
+ }) => AsyncGenerator<import("./hives-platform.js").HivesLogStreamEvent, void, any>;
346
+ window: (project_id: string, q?: import("./hives-platform.js").HivesLogStreamQuery, options?: import("./hives-platform.js").HivesLogWindowOptions) => Promise<import("./hives-platform.js").HivesLogWindow>;
347
+ };
348
+ domains: {
349
+ list: (project_id: string, q?: Omit<In<"hives_list_domains">, "project_id">) => Promise<{
350
+ data: {
351
+ created_at: string;
352
+ dns_status: string;
353
+ domain: string;
354
+ domain_type: import("./index.js").components["schemas"]["Hives.DomainType"];
355
+ id: string;
356
+ ssl_expires_at?: string | null;
357
+ ssl_status: string;
358
+ verification_record?: null | import("./index.js").components["schemas"]["Hives.VerificationRecord"];
359
+ }[];
360
+ pagination: import("./index.js").components["schemas"]["Hives.PaginationMeta"];
361
+ }>;
362
+ add: (project_id: string, body: In<"hives_add_domain">["body"]) => Promise<{
363
+ created_at: string;
364
+ dns_status: string;
365
+ domain: string;
366
+ domain_type: import("./index.js").components["schemas"]["Hives.DomainType"];
367
+ id: string;
368
+ ssl_expires_at?: string | null;
369
+ ssl_status: string;
370
+ verification_record?: null | import("./index.js").components["schemas"]["Hives.VerificationRecord"];
371
+ }>;
372
+ verify: (project_id: string, domain_id: string) => Promise<{
373
+ checked_at: string;
374
+ dns_status: string;
375
+ error?: string | null;
376
+ verified: boolean;
377
+ }>;
378
+ provisionSsl: (project_id: string, domain_id: string) => Promise<{
379
+ error?: string | null;
380
+ expires_at?: string | null;
381
+ ssl_status: string;
382
+ started: boolean;
383
+ }>;
384
+ };
385
+ auth: {
386
+ me: () => Promise<{
387
+ avatar?: string | null;
388
+ createdAt: string;
389
+ email: string;
390
+ id: string;
391
+ name: string;
392
+ organizationId?: string | null;
393
+ role: string;
394
+ }>;
395
+ };
396
+ fleets: {
397
+ list: () => Promise<{
398
+ fleets: import("./index.js").components["schemas"]["Hives.FleetStatusView"][];
399
+ }>;
400
+ deploy: (body: In<"hives_deploy_fleet">["body"]) => Promise<{
401
+ fleetId: string;
402
+ gatewayEndpoint?: string | null;
403
+ totalInstances: number;
404
+ }>;
405
+ status: (fleet_id: string) => Promise<{
406
+ fleetId: string;
407
+ gateway?: null | import("./index.js").components["schemas"]["Hives.GatewaySummary"];
408
+ healthyInstances: number;
409
+ name: string;
410
+ protocols: import("./index.js").components["schemas"]["Hives.ProtocolStatusView"][];
411
+ state: string;
412
+ totalInstances: number;
413
+ }>;
414
+ teardown: (fleet_id: string) => Promise<void>;
415
+ };
416
+ remote: {
417
+ sessions: {
418
+ list: (project_id: string, q?: Omit<In<"hives_list_remote_sessions">, "project_id">) => Promise<Record<string, never>>;
419
+ close: (project_id: string, session_id: string) => Promise<Record<string, never>>;
420
+ };
421
+ ssh: (project_id: string, body: In<"hives_create_ssh_session">["body"]) => Promise<{
422
+ expires_at: string;
423
+ fingerprint: string;
424
+ host: string;
425
+ port: number;
426
+ session_id: string;
427
+ username: string;
428
+ }>;
429
+ terminal: (project_id: string, body: In<"hives_create_terminal_session">["body"]) => Promise<{
430
+ expires_at: string;
431
+ session_id: string;
432
+ token: string;
433
+ websocket_url: string;
434
+ }>;
435
+ debug: (project_id: string, body: In<"hives_create_debug_session">["body"]) => Promise<{
436
+ debug_url: string;
437
+ expires_at: string;
438
+ protocol: string;
439
+ session_id: string;
440
+ token: string;
441
+ }>;
442
+ sftp: {
443
+ list: (project_id: string, target_id: string, q?: {
444
+ path?: string;
445
+ }) => Promise<Record<string, never>>;
446
+ read: (project_id: string, target_id: string, path: string) => Promise<Record<string, never>>;
447
+ write: (project_id: string, target_id: string, body: In<"hives_sftp_write">["body"]) => Promise<Record<string, never>>;
448
+ delete: (project_id: string, target_id: string, body: In<"hives_sftp_delete">["body"]) => Promise<Record<string, never>>;
449
+ };
450
+ };
451
+ };
@@ -0,0 +1,43 @@
1
+ import { hivesTopics } from './hives-topics.js';
2
+ import { hivesCells } from './hives-cells.js';
3
+ import { hivesQueues } from './hives-queues.js';
4
+ import { hivesRuntimes } from './hives-runtimes.js';
5
+ import { hivesPlatform } from './hives-platform.js';
6
+ /** The original Hives scheduler, settings and measured activity use the same gateway and identity. */
7
+ export function hivesOperations(client) {
8
+ return {
9
+ ...hivesPlatform(client),
10
+ cells: hivesCells(client),
11
+ queues: hivesQueues(client),
12
+ topics: hivesTopics(client),
13
+ runtimes: hivesRuntimes(client),
14
+ settings: {
15
+ get: (project_id) => client.request('hives_get_project_settings', { project_id }),
16
+ update: (project_id, body) => client.request('hives_update_project_settings', { project_id, body }),
17
+ },
18
+ crons: {
19
+ list: (project_id, q = {}) => client.request('hives_list_crons', { ...q, project_id }),
20
+ get: (project_id, cron_id) => client.request('hives_get_cron', { project_id, cron_id }),
21
+ create: (project_id, body) => client.request('hives_create_cron', { project_id, body }),
22
+ update: (project_id, cron_id, body) => client.request('hives_update_cron', { project_id, cron_id, body }),
23
+ delete: (project_id, cron_id) => client.request('hives_delete_cron', { project_id, cron_id }),
24
+ pause: (project_id, cron_id) => client.request('hives_pause_cron', { project_id, cron_id }),
25
+ resume: (project_id, cron_id) => client.request('hives_resume_cron', { project_id, cron_id }),
26
+ /** Admission returns a persisted run ID; read history to learn its actual outcome. No retry. */
27
+ trigger: (project_id, cron_id) => client.request('hives_trigger_cron', { project_id, cron_id }),
28
+ runs: (project_id, cron_id, q = {}) => client.request('hives_get_cron_runs', { ...q, project_id, cron_id }),
29
+ },
30
+ metrics: {
31
+ project: (project_id, q = {}) => client.request('hives_get_project_metrics', { ...q, project_id }),
32
+ dashboard: (project_id, q = {}) => client.request('hives_get_dashboard_metrics', { ...q, project_id }),
33
+ requests: (project_id, q = {}) => client.request('hives_get_request_metrics', { ...q, project_id }),
34
+ latency: (project_id, q = {}) => client.request('hives_get_latency_metrics', { ...q, project_id }),
35
+ errors: (project_id, q = {}) => client.request('hives_get_error_metrics', { ...q, project_id }),
36
+ function: (project_id, function_id, q = {}) => client.request('hives_get_function_metrics', { ...q, project_id, function_id }),
37
+ invocations: (project_id, function_id, q = {}) => client.request('hives_get_function_invocations_series', { ...q, project_id, function_id }),
38
+ deployment: (project_id, deployment_id, q = {}) => client.request('hives_get_deployment_metrics', { ...q, project_id, deployment_id }),
39
+ resources: (project_id, q = {}) => client.request('hives_get_resource_usage', { ...q, project_id }),
40
+ realtime: (project_id) => client.request('hives_get_realtime_metrics', { project_id }),
41
+ },
42
+ };
43
+ }
@@ -0,0 +1,149 @@
1
+ import type { GenesisClient } from './client.js';
2
+ import type { OperationInput as In } from './types.js';
3
+ /** One Server-Sent Event from `GET /v1/hives/projects/{project_id}/logs/stream`. `data` is parsed JSON when it is JSON. */
4
+ export interface HivesLogStreamEvent {
5
+ event: string;
6
+ id?: string;
7
+ data: unknown;
8
+ }
9
+ export type HivesLogStreamQuery = Omit<In<'hives_stream_logs'>, 'project_id'>;
10
+ export interface HivesLogWindowOptions {
11
+ /** Stop after this many events (1–10000, default 100). */
12
+ maxEvents?: number;
13
+ /** Stop after this many seconds (1–300, default 10). */
14
+ seconds?: number;
15
+ signal?: AbortSignal;
16
+ }
17
+ export interface HivesLogWindow {
18
+ events: HivesLogStreamEvent[];
19
+ ended: 'max_events' | 'time' | 'closed';
20
+ }
21
+ /** Pull-based SSE reader. `cancel()` closes the connection even while a read is pending. */
22
+ export declare function hivesSseReader(response: Response): {
23
+ next(): Promise<HivesLogStreamEvent | undefined>;
24
+ cancel(): Promise<void>;
25
+ };
26
+ /** Yield SSE events until the caller stops iterating, the signal aborts or the server closes the stream. */
27
+ export declare function hivesSseEvents(response: Response): AsyncGenerator<HivesLogStreamEvent>;
28
+ /**
29
+ * Hives platform reads and actions the gateway already routes: project logs (query and live SSE), custom domains,
30
+ * the Hives identity, Hives fleets and remote sessions/SFTP.
31
+ */
32
+ export declare function hivesPlatform(client: GenesisClient): {
33
+ logs: {
34
+ query: (project_id: string, q?: Omit<In<"hives_query_logs">, "project_id">) => Promise<{
35
+ logs: import("./index.js").components["schemas"]["Hives.LogEntry"][];
36
+ pagination: import("./index.js").components["schemas"]["Hives.PaginationMeta"];
37
+ time_range: import("./index.js").components["schemas"]["Hives.TimeRange"];
38
+ }>;
39
+ /** Live SSE events. Iterate and `break` (or abort the signal) to close the connection; it never ends on its own. */
40
+ stream: (project_id: string, q?: HivesLogStreamQuery, init?: {
41
+ signal?: AbortSignal;
42
+ }) => AsyncGenerator<HivesLogStreamEvent, void, any>;
43
+ /** A bounded window of the live stream: the first `maxEvents` events or `seconds` of stream, whichever comes first. */
44
+ window: (project_id: string, q?: HivesLogStreamQuery, options?: HivesLogWindowOptions) => Promise<HivesLogWindow>;
45
+ };
46
+ domains: {
47
+ list: (project_id: string, q?: Omit<In<"hives_list_domains">, "project_id">) => Promise<{
48
+ data: {
49
+ created_at: string;
50
+ dns_status: string;
51
+ domain: string;
52
+ domain_type: import("./index.js").components["schemas"]["Hives.DomainType"];
53
+ id: string;
54
+ ssl_expires_at?: string | null;
55
+ ssl_status: string;
56
+ verification_record?: null | import("./index.js").components["schemas"]["Hives.VerificationRecord"];
57
+ }[];
58
+ pagination: import("./index.js").components["schemas"]["Hives.PaginationMeta"];
59
+ }>;
60
+ add: (project_id: string, body: In<"hives_add_domain">["body"]) => Promise<{
61
+ created_at: string;
62
+ dns_status: string;
63
+ domain: string;
64
+ domain_type: import("./index.js").components["schemas"]["Hives.DomainType"];
65
+ id: string;
66
+ ssl_expires_at?: string | null;
67
+ ssl_status: string;
68
+ verification_record?: null | import("./index.js").components["schemas"]["Hives.VerificationRecord"];
69
+ }>;
70
+ verify: (project_id: string, domain_id: string) => Promise<{
71
+ checked_at: string;
72
+ dns_status: string;
73
+ error?: string | null;
74
+ verified: boolean;
75
+ }>;
76
+ provisionSsl: (project_id: string, domain_id: string) => Promise<{
77
+ error?: string | null;
78
+ expires_at?: string | null;
79
+ ssl_status: string;
80
+ started: boolean;
81
+ }>;
82
+ };
83
+ auth: {
84
+ me: () => Promise<{
85
+ avatar?: string | null;
86
+ createdAt: string;
87
+ email: string;
88
+ id: string;
89
+ name: string;
90
+ organizationId?: string | null;
91
+ role: string;
92
+ }>;
93
+ };
94
+ fleets: {
95
+ list: () => Promise<{
96
+ fleets: import("./index.js").components["schemas"]["Hives.FleetStatusView"][];
97
+ }>;
98
+ deploy: (body: In<"hives_deploy_fleet">["body"]) => Promise<{
99
+ fleetId: string;
100
+ gatewayEndpoint?: string | null;
101
+ totalInstances: number;
102
+ }>;
103
+ status: (fleet_id: string) => Promise<{
104
+ fleetId: string;
105
+ gateway?: null | import("./index.js").components["schemas"]["Hives.GatewaySummary"];
106
+ healthyInstances: number;
107
+ name: string;
108
+ protocols: import("./index.js").components["schemas"]["Hives.ProtocolStatusView"][];
109
+ state: string;
110
+ totalInstances: number;
111
+ }>;
112
+ teardown: (fleet_id: string) => Promise<void>;
113
+ };
114
+ remote: {
115
+ sessions: {
116
+ list: (project_id: string, q?: Omit<In<"hives_list_remote_sessions">, "project_id">) => Promise<Record<string, never>>;
117
+ close: (project_id: string, session_id: string) => Promise<Record<string, never>>;
118
+ };
119
+ ssh: (project_id: string, body: In<"hives_create_ssh_session">["body"]) => Promise<{
120
+ expires_at: string;
121
+ fingerprint: string;
122
+ host: string;
123
+ port: number;
124
+ session_id: string;
125
+ username: string;
126
+ }>;
127
+ terminal: (project_id: string, body: In<"hives_create_terminal_session">["body"]) => Promise<{
128
+ expires_at: string;
129
+ session_id: string;
130
+ token: string;
131
+ websocket_url: string;
132
+ }>;
133
+ debug: (project_id: string, body: In<"hives_create_debug_session">["body"]) => Promise<{
134
+ debug_url: string;
135
+ expires_at: string;
136
+ protocol: string;
137
+ session_id: string;
138
+ token: string;
139
+ }>;
140
+ sftp: {
141
+ list: (project_id: string, target_id: string, q?: {
142
+ path?: string;
143
+ }) => Promise<Record<string, never>>;
144
+ read: (project_id: string, target_id: string, path: string) => Promise<Record<string, never>>;
145
+ write: (project_id: string, target_id: string, body: In<"hives_sftp_write">["body"]) => Promise<Record<string, never>>;
146
+ delete: (project_id: string, target_id: string, body: In<"hives_sftp_delete">["body"]) => Promise<Record<string, never>>;
147
+ };
148
+ };
149
+ };