Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
feat(cyclops-sdk): fleet grouping, WebSocket service targets, and claim labels (#7880)
ddupont05f29785b508
diff --git a/libs/fleet/scripts/generate-sdk-bindings.sh b/libs/fleet/scripts/generate-sdk-bindings.shindex 7833a26111..b0db877690 100755--- a/libs/fleet/scripts/generate-sdk-bindings.sh+++ b/libs/fleet/scripts/generate-sdk-bindings.sh@@ -905,8 +905,8 @@ def replace_buffer(match):f"{indent})")text, buffer_replacements = re.subn(buffer_pattern, replace_buffer, text)-if buffer_replacements != 30:- raise SystemExit(f"expected 30 Ruby Rust-buffer future wrappers, found {buffer_replacements}")+if buffer_replacements != 34:+ raise SystemExit(f"expected 34 Ruby Rust-buffer future wrappers, found {buffer_replacements}")if len(re.findall(r"result = FleetSdk\.rust_call_with_error\(SdkBuildError,:uniffi_[a-z0-9_]*builder_build,", text)) != 8:raise SystemExit("expected eight synchronous Ruby SDK builder build calls")diff --git a/libs/fleet/sdk-bindings/examples/kotlin/AppControlled.kt b/libs/fleet/sdk-bindings/examples/kotlin/AppControlled.ktindex 46ee2cb467..a7878a8bb2 100644--- a/libs/fleet/sdk-bindings/examples/kotlin/AppControlled.kt+++ b/libs/fleet/sdk-bindings/examples/kotlin/AppControlled.kt@@ -24,7 +24,7 @@ private class ScriptedHttpClient : HttpClient {Expected("POST", "https://cyclops.invalid/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/default/osgymsandboxclaims", listOf("accept" to "application/json", "content-type" to "application/json", "authorization" to "Bearer offline-token"), "{\"apiVersion\":\"osgym.cua.ai/v1alpha1\",\"kind\":\"OSGymSandboxClaim\",\"metadata\":{\"namespace\":\"default\",\"name\":\"claim-1\",\"labels\":null},\"spec\":{\"sandboxTemplateRef\":{\"name\":\"default\"},\"bindDeadline\":900},\"status\":null}".encodeToByteArray(), 201u, "{\"apiVersion\":\"osgym.cua.ai/v1alpha1\",\"kind\":\"OSGymSandboxClaim\",\"metadata\":{\"namespace\":\"default\",\"name\":\"default\",\"labels\":null},\"spec\":{\"sandboxTemplateRef\":{\"name\":\"default\"}},\"status\":{\"phase\":\"Bound\",\"sandbox\":{\"name\":\"offline-sandbox\"}}}"),Expected("GET", "https://cyclops.invalid/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/default/osgymsandboxclaims/default", listOf("accept" to "application/json", "content-type" to "application/json", "authorization" to "Bearer offline-token"), null, 200u, "{\"apiVersion\":\"osgym.cua.ai/v1alpha1\",\"kind\":\"OSGymSandboxClaim\",\"metadata\":{\"namespace\":\"default\",\"name\":\"default\",\"labels\":null},\"spec\":{\"sandboxTemplateRef\":{\"name\":\"default\"}},\"status\":{\"phase\":\"Bound\",\"sandbox\":{\"name\":\"offline-sandbox\"}}}"),Expected("GET", "https://cyclops.invalid/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/default/osgymsandboxtemplates/default", listOf("accept" to "application/json", "content-type" to "application/json", "authorization" to "Bearer offline-token"), null, 200u, "{\"apiVersion\":\"osgym.cua.ai/v1alpha1\",\"kind\":\"OSGymSandboxTemplate\",\"metadata\":{\"namespace\":\"default\",\"name\":\"default\",\"labels\":null},\"spec\":{\"vmTemplate\":{\"containerDiskImage\":\"registry.example/desktop:offline\",\"services\":[{\"name\":\"mcp\",\"targetPort\":8080}]}}}"),- Expected("POST", "https://cyclops.invalid/api/svc/default/offline-sandbox-mcp/mcp", listOf("authorization" to "Bearer offline-token"), "{\"offline\":true}".encodeToByteArray(), 202u, "offline service accepted"),+ Expected("POST", "https://cyclops.invalid/api/svc/default/offline-sandbox-mcp/mcp", listOf("X-Cua-Fleet-Claim" to "default", "authorization" to "Bearer offline-token"), "{\"offline\":true}".encodeToByteArray(), 202u, "offline service accepted"),Expected("DELETE", "https://cyclops.invalid/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/default/osgymsandboxclaims/default", listOf("accept" to "application/json", "content-type" to "application/json", "authorization" to "Bearer offline-token"), null, 204u, ""),Expected("DELETE", "https://cyclops.invalid/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/default/osgymsandboxwarmpools/default", listOf("accept" to "application/json", "content-type" to "application/json", "authorization" to "Bearer offline-token"), null, 204u, ""),Expected("DELETE", "https://cyclops.invalid/api/namespaces/default", listOf("accept" to "application/json", "content-type" to "application/json", "authorization" to "Bearer offline-token"), null, 204u, "")diff --git a/libs/fleet/sdk-bindings/examples/ruby/app_controlled.rb b/libs/fleet/sdk-bindings/examples/ruby/app_controlled.rbindex 766e8447eb..d496fbe2ad 100644--- a/libs/fleet/sdk-bindings/examples/ruby/app_controlled.rb+++ b/libs/fleet/sdk-bindings/examples/ruby/app_controlled.rb@@ -21,7 +21,7 @@ def template_json; { apiVersion:'osgym.cua.ai/v1alpha1',kind:'OSGymSandboxTempladef claim_json(bound=false); value={apiVersion:'osgym.cua.ai/v1alpha1',kind:'OSGymSandboxClaim',metadata:{namespace:'default',name:'default',labels:nil},spec:{sandboxTemplateRef:{name:'default'}},status:nil}; value[:status]={phase:'Bound',sandbox:{name:'offline-sandbox'}} if bound; value; enddef queuepool_url="#{BASE}/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/default/osgymsandboxwarmpools/default"; template_url="#{BASE}/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/default/osgymsandboxtemplates/default"; claim_url="#{BASE}/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/default/osgymsandboxclaims/default"; pool_body=JSON.generate(pool_json).b; claim_body='{"apiVersion":"osgym.cua.ai/v1alpha1","kind":"OSGymSandboxClaim","metadata":{"namespace":"default","name":"claim-1","labels":null},"spec":{"sandboxTemplateRef":{"name":"default"},"bindDeadline":900},"status":null}'.b- [Expected.new('POST',TOKEN,[['accept','application/json'],['content-type','application/x-www-form-urlencoded'],['authorization','Basic Y2xpZW50LWlkOmNsaWVudC1zZWNyZXQ=']], 'grant_type=client_credentials'.b,200,{access_token:'offline-token',expires_in:3600}),Expected.new('POST',"#{BASE}/api/namespaces",JSON_HEADERS,'{"name":"default"}'.b,201,{}),Expected.new('POST',pool_url.sub(%r{/default\z}, ''),JSON_HEADERS,pool_body,201,pool_json),Expected.new('POST',claim_url.sub(%r{/default\z}, ''),JSON_HEADERS,claim_body,201,claim_json),Expected.new('GET',claim_url,JSON_HEADERS,nil,200,claim_json(true)),Expected.new('GET',template_url,JSON_HEADERS,nil,200,template_json),Expected.new('POST',"#{BASE}/api/svc/default/offline-sandbox-mcp/mcp",[['authorization','Bearer offline-token']],'{"offline":true}'.b,202,'offline service accepted'),Expected.new('DELETE',claim_url,JSON_HEADERS,nil,204,''),Expected.new('DELETE',pool_url,JSON_HEADERS,nil,204,''),Expected.new('DELETE',"#{BASE}/api/namespaces/default",JSON_HEADERS,nil,204,'')]+ [Expected.new('POST',TOKEN,[['accept','application/json'],['content-type','application/x-www-form-urlencoded'],['authorization','Basic Y2xpZW50LWlkOmNsaWVudC1zZWNyZXQ=']], 'grant_type=client_credentials'.b,200,{access_token:'offline-token',expires_in:3600}),Expected.new('POST',"#{BASE}/api/namespaces",JSON_HEADERS,'{"name":"default"}'.b,201,{}),Expected.new('POST',pool_url.sub(%r{/default\z}, ''),JSON_HEADERS,pool_body,201,pool_json),Expected.new('POST',claim_url.sub(%r{/default\z}, ''),JSON_HEADERS,claim_body,201,claim_json),Expected.new('GET',claim_url,JSON_HEADERS,nil,200,claim_json(true)),Expected.new('GET',template_url,JSON_HEADERS,nil,200,template_json),Expected.new('POST',"#{BASE}/api/svc/default/offline-sandbox-mcp/mcp",[['X-Cua-Fleet-Claim','default'],['authorization','Bearer offline-token']],'{"offline":true}'.b,202,'offline service accepted'),Expected.new('DELETE',claim_url,JSON_HEADERS,nil,204,''),Expected.new('DELETE',pool_url,JSON_HEADERS,nil,204,''),Expected.new('DELETE',"#{BASE}/api/namespaces/default",JSON_HEADERS,nil,204,'')]endclass ScriptedHttpClient < FleetSdk::HttpClientdiff --git a/libs/fleet/sdk-bindings/go-uniffi/fleet_sdk/fleet_sdk.go b/libs/fleet/sdk-bindings/go-uniffi/fleet_sdk/fleet_sdk.goindex 958c8d46cf..58399a33b1 100644--- a/libs/fleet/sdk-bindings/go-uniffi/fleet_sdk/fleet_sdk.go+++ b/libs/fleet/sdk-bindings/go-uniffi/fleet_sdk/fleet_sdk.go@@ -376,6 +376,15 @@ func uniffiCheckChecksums() {// If this happens try cleaning and rebuilding your projectpanic("fleet_sdk: UniFFI contract version mismatch")}+ {+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {+ return C.uniffi_cyclops_sdk_checksum_func_fleet_label_key()+ })+ if checksum != 5219 {+ // If this happens try cleaning and rebuilding your project+ panic("fleet_sdk: uniffi_cyclops_sdk_checksum_func_fleet_label_key: UniFFI API checksum mismatch")+ }+ }{checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {return C.uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status()@@ -475,6 +484,33 @@ func uniffiCheckChecksums() {panic("fleet_sdk: uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim: UniFFI API checksum mismatch")}}+ {+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {+ return C.uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token()+ })+ if checksum != 4889 {+ // If this happens try cleaning and rebuilding your project+ panic("fleet_sdk: uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token: UniFFI API checksum mismatch")+ }+ }+ {+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {+ return C.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims()+ })+ if checksum != 11135 {+ // If this happens try cleaning and rebuilding your project+ panic("fleet_sdk: uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims: UniFFI API checksum mismatch")+ }+ }+ {+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {+ return C.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims()+ })+ if checksum != 14544 {+ // If this happens try cleaning and rebuilding your project+ panic("fleet_sdk: uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims: UniFFI API checksum mismatch")+ }+ }{checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {return C.uniffi_cyclops_sdk_checksum_method_cyclopsclient_presign_image_uploads()@@ -628,6 +664,15 @@ func uniffiCheckChecksums() {panic("fleet_sdk: uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request: UniFFI API checksum mismatch")}}+ {+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {+ return C.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url()+ })+ if checksum != 47537 {+ // If this happens try cleaning and rebuilding your project+ panic("fleet_sdk: uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url: UniFFI API checksum mismatch")+ }+ }{checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {return C.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_signed_service_url()@@ -1365,6 +1410,24 @@ type CyclopsClientInterface interface {// can be mutated through the SDK.RenewClaim(claim Claim, shutdownTime string) (Claim, error)WaitClaim(claim Claim) (Sandbox, error)+ // The bearer this client would send on its next authenticated request,+ // for callers that open their own connection to the gateway (for example+ // a native WebSocket). `force_refresh` bypasses any cached token; a+ // static access token is returned as-is. The value is a raw token — the+ // caller attaches it as `authorization: Bearer <token>`.+ AccessToken(forceRefresh bool) (string, error)+ // Fan out `create_claim` calls across the requested warm pools, tagging+ // every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ // back later. Duplicate pool entries are aggregated before any network+ // call. Claims are created sequentially; if one creation fails the error+ // is returned immediately and claims already created keep their fleet+ // label, so `list_fleet_claims` still finds them for retry or cleanup.+ CreateFleetClaims(fleetId string, requests []FleetPoolRequest) (FleetClaims, error)+ // The fleet's claims within one namespace: enumerate the namespace's+ // claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ // spans several pools spans that many namespaces (one pool per+ // namespace), so call this once per member pool.+ ListFleetClaims(namespace string, fleetId string) (FleetClaims, error)PresignImageUploads(request ImageUploadRequest) (ImageUploadResponse, error)// Hash and upload one file, or reuse a matching existing object.// Returns only the bound digest, size, and tenant reference, never a signed URL.@@ -1385,6 +1448,12 @@ type CyclopsClientInterface interface {ReconcilePool(request CreatePoolRequest) (Pool, error)UpdatePool(pool Pool) (Pool, error)ServiceRequest(sandbox Sandbox, service string, path string, request HttpRequest) (HttpResponse, error)+ // Where a native client opens its own WebSocket to a sandbox service:+ // the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ // returned `ws(s)://` URL plus the returned bearer header are all a+ // Rust or Swift caller needs to dial the socket directly.+ // `service_request` stays the path for unary requests.+ ServiceWebsocketUrl(sandbox Sandbox, service string, path string) (ServiceStreamTarget, error)CreateSignedServiceUrl(request CreateSignedServiceUrlRequest) (SignedServiceUrl, error)ListSignedServiceUrls(sandbox Sandbox) ([]SignedServiceUrl, error)RevokeSignedServiceUrl(signedServiceUrl SignedServiceUrl) error@@ -1698,6 +1767,126 @@ func (_self *CyclopsClient) WaitClaim(claim Claim) (Sandbox, error) {return res, err}+// The bearer this client would send on its next authenticated request,+// for callers that open their own connection to the gateway (for example+// a native WebSocket). `force_refresh` bypasses any cached token; a+// static access token is returned as-is. The value is a raw token — the+// caller attaches it as `authorization: Bearer <token>`.+func (_self *CyclopsClient) AccessToken(forceRefresh bool) (string, error) {+ _pointer := _self.ffiObject.incrementPointer("*CyclopsClient")+ defer _self.ffiObject.decrementPointer()+ res, err := uniffiRustCallAsync[*SdkError](+ FfiConverterSdkErrorINSTANCE,+ // completeFn+ func(handle C.uint64_t, status *C.RustCallStatus) RustBufferI {+ res := C.ffi_cyclops_sdk_rust_future_complete_rust_buffer(handle, status)+ return GoRustBuffer{+ inner: res,+ }+ },+ // liftFn+ func(ffi RustBufferI) string {+ return FfiConverterStringINSTANCE.Lift(ffi)+ },+ C.uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(+ _pointer, FfiConverterBoolINSTANCE.Lower(forceRefresh)),+ // pollFn+ func(handle C.uint64_t, continuation C.UniffiRustFutureContinuationCallback, data C.uint64_t) {+ C.ffi_cyclops_sdk_rust_future_poll_rust_buffer(handle, continuation, data)+ },+ // freeFn+ func(handle C.uint64_t) {+ C.ffi_cyclops_sdk_rust_future_free_rust_buffer(handle)+ },+ )++ if err == nil {+ return res, nil+ }++ return res, err+}++// Fan out `create_claim` calls across the requested warm pools, tagging+// every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+// back later. Duplicate pool entries are aggregated before any network+// call. Claims are created sequentially; if one creation fails the error+// is returned immediately and claims already created keep their fleet+// label, so `list_fleet_claims` still finds them for retry or cleanup.+func (_self *CyclopsClient) CreateFleetClaims(fleetId string, requests []FleetPoolRequest) (FleetClaims, error) {+ _pointer := _self.ffiObject.incrementPointer("*CyclopsClient")+ defer _self.ffiObject.decrementPointer()+ res, err := uniffiRustCallAsync[*SdkError](+ FfiConverterSdkErrorINSTANCE,+ // completeFn+ func(handle C.uint64_t, status *C.RustCallStatus) RustBufferI {+ res := C.ffi_cyclops_sdk_rust_future_complete_rust_buffer(handle, status)+ return GoRustBuffer{+ inner: res,+ }+ },+ // liftFn+ func(ffi RustBufferI) FleetClaims {+ return FfiConverterFleetClaimsINSTANCE.Lift(ffi)+ },+ C.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(+ _pointer, FfiConverterStringINSTANCE.Lower(fleetId), FfiConverterSequenceFleetPoolRequestINSTANCE.Lower(requests)),+ // pollFn+ func(handle C.uint64_t, continuation C.UniffiRustFutureContinuationCallback, data C.uint64_t) {+ C.ffi_cyclops_sdk_rust_future_poll_rust_buffer(handle, continuation, data)+ },+ // freeFn+ func(handle C.uint64_t) {+ C.ffi_cyclops_sdk_rust_future_free_rust_buffer(handle)+ },+ )++ if err == nil {+ return res, nil+ }++ return res, err+}++// The fleet's claims within one namespace: enumerate the namespace's+// claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+// spans several pools spans that many namespaces (one pool per+// namespace), so call this once per member pool.+func (_self *CyclopsClient) ListFleetClaims(namespace string, fleetId string) (FleetClaims, error) {+ _pointer := _self.ffiObject.incrementPointer("*CyclopsClient")+ defer _self.ffiObject.decrementPointer()+ res, err := uniffiRustCallAsync[*SdkError](+ FfiConverterSdkErrorINSTANCE,+ // completeFn+ func(handle C.uint64_t, status *C.RustCallStatus) RustBufferI {+ res := C.ffi_cyclops_sdk_rust_future_complete_rust_buffer(handle, status)+ return GoRustBuffer{+ inner: res,+ }+ },+ // liftFn+ func(ffi RustBufferI) FleetClaims {+ return FfiConverterFleetClaimsINSTANCE.Lift(ffi)+ },+ C.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(+ _pointer, FfiConverterStringINSTANCE.Lower(namespace), FfiConverterStringINSTANCE.Lower(fleetId)),+ // pollFn+ func(handle C.uint64_t, continuation C.UniffiRustFutureContinuationCallback, data C.uint64_t) {+ C.ffi_cyclops_sdk_rust_future_poll_rust_buffer(handle, continuation, data)+ },+ // freeFn+ func(handle C.uint64_t) {+ C.ffi_cyclops_sdk_rust_future_free_rust_buffer(handle)+ },+ )++ if err == nil {+ return res, nil+ }++ return res, err+}+func (_self *CyclopsClient) PresignImageUploads(request ImageUploadRequest) (ImageUploadResponse, error) {_pointer := _self.ffiObject.incrementPointer("*CyclopsClient")defer _self.ffiObject.decrementPointer()@@ -2286,6 +2475,46 @@ func (_self *CyclopsClient) ServiceRequest(sandbox Sandbox, service string, pathreturn res, err}+// Where a native client opens its own WebSocket to a sandbox service:+// the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+// returned `ws(s)://` URL plus the returned bearer header are all a+// Rust or Swift caller needs to dial the socket directly.+// `service_request` stays the path for unary requests.+func (_self *CyclopsClient) ServiceWebsocketUrl(sandbox Sandbox, service string, path string) (ServiceStreamTarget, error) {+ _pointer := _self.ffiObject.incrementPointer("*CyclopsClient")+ defer _self.ffiObject.decrementPointer()+ res, err := uniffiRustCallAsync[*SdkError](+ FfiConverterSdkErrorINSTANCE,+ // completeFn+ func(handle C.uint64_t, status *C.RustCallStatus) RustBufferI {+ res := C.ffi_cyclops_sdk_rust_future_complete_rust_buffer(handle, status)+ return GoRustBuffer{+ inner: res,+ }+ },+ // liftFn+ func(ffi RustBufferI) ServiceStreamTarget {+ return FfiConverterServiceStreamTargetINSTANCE.Lift(ffi)+ },+ C.uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(+ _pointer, FfiConverterSandboxINSTANCE.Lower(sandbox), FfiConverterStringINSTANCE.Lower(service), FfiConverterStringINSTANCE.Lower(path)),+ // pollFn+ func(handle C.uint64_t, continuation C.UniffiRustFutureContinuationCallback, data C.uint64_t) {+ C.ffi_cyclops_sdk_rust_future_poll_rust_buffer(handle, continuation, data)+ },+ // freeFn+ func(handle C.uint64_t) {+ C.ffi_cyclops_sdk_rust_future_free_rust_buffer(handle)+ },+ )++ if err == nil {+ return res, nil+ }++ return res, err+}+func (_self *CyclopsClient) CreateSignedServiceUrl(request CreateSignedServiceUrlRequest) (SignedServiceUrl, error) {_pointer := _self.ffiObject.incrementPointer("*CyclopsClient")defer _self.ffiObject.decrementPointer()@@ -3094,12 +3323,17 @@ type CreateClaimRequest struct {// DNS-label validation); left unset, the client generates a random// `claim-<petname>` so concurrent leases and retries cannot collide.Name *string+ // Labels stamped onto the created claim's metadata verbatim. Grouping+ // helpers (for example fleet fan-out) rely on this to tag related claims+ // so they can be listed back by label within a namespace.+ Labels *map[string]string}func (r *CreateClaimRequest) Destroy() {FfiDestroyerPool{}.Destroy(r.Pool)FfiDestroyerOptionalClaimSpec{}.Destroy(r.Spec)FfiDestroyerOptionalString{}.Destroy(r.Name)+ FfiDestroyerOptionalMapStringString{}.Destroy(r.Labels)}type FfiConverterCreateClaimRequest struct{}@@ -3115,6 +3349,7 @@ func (c FfiConverterCreateClaimRequest) Read(reader io.Reader) CreateClaimRequesFfiConverterPoolINSTANCE.Read(reader),FfiConverterOptionalClaimSpecINSTANCE.Read(reader),FfiConverterOptionalStringINSTANCE.Read(reader),+ FfiConverterOptionalMapStringStringINSTANCE.Read(reader),}}@@ -3130,6 +3365,7 @@ func (c FfiConverterCreateClaimRequest) Write(writer io.Writer, value CreateClaiFfiConverterPoolINSTANCE.Write(writer, value.Pool)FfiConverterOptionalClaimSpecINSTANCE.Write(writer, value.Spec)FfiConverterOptionalStringINSTANCE.Write(writer, value.Name)+ FfiConverterOptionalMapStringStringINSTANCE.Write(writer, value.Labels)}type FfiDestroyerCreateClaimRequest struct{}@@ -3446,6 +3682,97 @@ func (_ FfiDestroyerCyclopsTokenProviderConfiguration) Destroy(value CyclopsTokevalue.Destroy()}+// A fleet's identity plus the claims currently known to belong to it.+type FleetClaims struct {+ FleetId string+ Claims []Claim+}++func (r *FleetClaims) Destroy() {+ FfiDestroyerString{}.Destroy(r.FleetId)+ FfiDestroyerSequenceClaim{}.Destroy(r.Claims)+}++type FfiConverterFleetClaims struct{}++var FfiConverterFleetClaimsINSTANCE = FfiConverterFleetClaims{}++func (c FfiConverterFleetClaims) Lift(rb RustBufferI) FleetClaims {+ return LiftFromRustBuffer[FleetClaims](c, rb)+}++func (c FfiConverterFleetClaims) Read(reader io.Reader) FleetClaims {+ return FleetClaims{+ FfiConverterStringINSTANCE.Read(reader),+ FfiConverterSequenceClaimINSTANCE.Read(reader),+ }+}++func (c FfiConverterFleetClaims) Lower(value FleetClaims) C.RustBuffer {+ return LowerIntoRustBuffer[FleetClaims](c, value)+}++func (c FfiConverterFleetClaims) LowerExternal(value FleetClaims) ExternalCRustBuffer {+ return RustBufferFromC(LowerIntoRustBuffer[FleetClaims](c, value))+}++func (c FfiConverterFleetClaims) Write(writer io.Writer, value FleetClaims) {+ FfiConverterStringINSTANCE.Write(writer, value.FleetId)+ FfiConverterSequenceClaimINSTANCE.Write(writer, value.Claims)+}++type FfiDestroyerFleetClaims struct{}++func (_ FfiDestroyerFleetClaims) Destroy(value FleetClaims) {+ value.Destroy()+}++// One pool's share of a fleet: claim `replicas` sandboxes from the warm pool+// named `pool`. On this platform the pool name is also its namespace.+type FleetPoolRequest struct {+ Pool string+ Replicas uint32+}++func (r *FleetPoolRequest) Destroy() {+ FfiDestroyerString{}.Destroy(r.Pool)+ FfiDestroyerUint32{}.Destroy(r.Replicas)+}++type FfiConverterFleetPoolRequest struct{}++var FfiConverterFleetPoolRequestINSTANCE = FfiConverterFleetPoolRequest{}++func (c FfiConverterFleetPoolRequest) Lift(rb RustBufferI) FleetPoolRequest {+ return LiftFromRustBuffer[FleetPoolRequest](c, rb)+}++func (c FfiConverterFleetPoolRequest) Read(reader io.Reader) FleetPoolRequest {+ return FleetPoolRequest{+ FfiConverterStringINSTANCE.Read(reader),+ FfiConverterUint32INSTANCE.Read(reader),+ }+}++func (c FfiConverterFleetPoolRequest) Lower(value FleetPoolRequest) C.RustBuffer {+ return LowerIntoRustBuffer[FleetPoolRequest](c, value)+}++func (c FfiConverterFleetPoolRequest) LowerExternal(value FleetPoolRequest) ExternalCRustBuffer {+ return RustBufferFromC(LowerIntoRustBuffer[FleetPoolRequest](c, value))+}++func (c FfiConverterFleetPoolRequest) Write(writer io.Writer, value FleetPoolRequest) {+ FfiConverterStringINSTANCE.Write(writer, value.Pool)+ FfiConverterUint32INSTANCE.Write(writer, value.Replicas)+}++type FfiDestroyerFleetPoolRequest struct{}++func (_ FfiDestroyerFleetPoolRequest) Destroy(value FleetPoolRequest) {+ value.Destroy()+}+type HttpHeader struct {Name stringValue string@@ -4158,6 +4485,59 @@ func (_ FfiDestroyerSandbox) Destroy(value Sandbox) {value.Destroy()}+// Where a native client opens its own WebSocket to a sandbox service through+// the gateway's `/api/svc` proxy. `url` is the `ws(s)://` endpoint;+// `auth_header_name`/`auth_header_value` carry the bearer the socket's HTTP+// upgrade request must send. Deliberately not serde-serializable: the value+// holds a live credential and must not be logged or persisted.+type ServiceStreamTarget struct {+ Url string+ AuthHeaderName string+ AuthHeaderValue string+}++func (r *ServiceStreamTarget) Destroy() {+ FfiDestroyerString{}.Destroy(r.Url)+ FfiDestroyerString{}.Destroy(r.AuthHeaderName)+ FfiDestroyerString{}.Destroy(r.AuthHeaderValue)+}++type FfiConverterServiceStreamTarget struct{}++var FfiConverterServiceStreamTargetINSTANCE = FfiConverterServiceStreamTarget{}++func (c FfiConverterServiceStreamTarget) Lift(rb RustBufferI) ServiceStreamTarget {+ return LiftFromRustBuffer[ServiceStreamTarget](c, rb)+}++func (c FfiConverterServiceStreamTarget) Read(reader io.Reader) ServiceStreamTarget {+ return ServiceStreamTarget{+ FfiConverterStringINSTANCE.Read(reader),+ FfiConverterStringINSTANCE.Read(reader),+ FfiConverterStringINSTANCE.Read(reader),+ }+}++func (c FfiConverterServiceStreamTarget) Lower(value ServiceStreamTarget) C.RustBuffer {+ return LowerIntoRustBuffer[ServiceStreamTarget](c, value)+}++func (c FfiConverterServiceStreamTarget) LowerExternal(value ServiceStreamTarget) ExternalCRustBuffer {+ return RustBufferFromC(LowerIntoRustBuffer[ServiceStreamTarget](c, value))+}++func (c FfiConverterServiceStreamTarget) Write(writer io.Writer, value ServiceStreamTarget) {+ FfiConverterStringINSTANCE.Write(writer, value.Url)+ FfiConverterStringINSTANCE.Write(writer, value.AuthHeaderName)+ FfiConverterStringINSTANCE.Write(writer, value.AuthHeaderValue)+}++type FfiDestroyerServiceStreamTarget struct{}++func (_ FfiDestroyerServiceStreamTarget) Destroy(value ServiceStreamTarget) {+ value.Destroy()+}+type SignedServiceUrl struct {Id stringNamespace string@@ -5754,6 +6134,53 @@ func (FfiDestroyerSequenceClaim) Destroy(sequence []Claim) {}}+type FfiConverterSequenceFleetPoolRequest struct{}++var FfiConverterSequenceFleetPoolRequestINSTANCE = FfiConverterSequenceFleetPoolRequest{}++func (c FfiConverterSequenceFleetPoolRequest) Lift(rb RustBufferI) []FleetPoolRequest {+ return LiftFromRustBuffer[[]FleetPoolRequest](c, rb)+}++func (c FfiConverterSequenceFleetPoolRequest) Read(reader io.Reader) []FleetPoolRequest {+ length := readInt32(reader)+ if length == 0 {+ return nil+ }+ result := make([]FleetPoolRequest, 0, length)+ for i := int32(0); i < length; i++ {+ result = append(result, FfiConverterFleetPoolRequestINSTANCE.Read(reader))+ }+ return result+}++func (c FfiConverterSequenceFleetPoolRequest) Lower(value []FleetPoolRequest) C.RustBuffer {+ return LowerIntoRustBuffer[[]FleetPoolRequest](c, value)+}++func (c FfiConverterSequenceFleetPoolRequest) LowerExternal(value []FleetPoolRequest) ExternalCRustBuffer {+ return RustBufferFromC(LowerIntoRustBuffer[[]FleetPoolRequest](c, value))+}++func (c FfiConverterSequenceFleetPoolRequest) Write(writer io.Writer, value []FleetPoolRequest) {+ if len(value) > math.MaxInt32 {+ panic("[]FleetPoolRequest is too large to fit into Int32")+ }++ writeInt32(writer, int32(len(value)))+ for _, item := range value {+ FfiConverterFleetPoolRequestINSTANCE.Write(writer, item)+ }+}++type FfiDestroyerSequenceFleetPoolRequest struct{}++func (FfiDestroyerSequenceFleetPoolRequest) Destroy(sequence []FleetPoolRequest) {+ for _, value := range sequence {+ FfiDestroyerFleetPoolRequest{}.Destroy(value)+ }+}+type FfiConverterSequenceHttpHeader struct{}var FfiConverterSequenceHttpHeaderINSTANCE = FfiConverterSequenceHttpHeader{}@@ -6238,6 +6665,16 @@ func fleet_sdk_uniffiFreeGorutine(data C.uint64_t) {guard <- struct{}{}}+// The label key a fleet's claims share, for callers that filter or clean up+// with raw Kubernetes tooling instead of `list_fleet_claims`.+func FleetLabelKey() string {+ return FfiConverterStringINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {+ return GoRustBuffer{+ inner: C.uniffi_cyclops_sdk_fn_func_fleet_label_key(_uniffiStatus),+ }+ }))+}+func HealthyPoolDisplayStatus() PoolDisplayStatus {return FfiConverterPoolDisplayStatusINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {return GoRustBuffer{diff --git a/libs/fleet/sdk-bindings/go-uniffi/fleet_sdk/fleet_sdk.h b/libs/fleet/sdk-bindings/go-uniffi/fleet_sdk/fleet_sdk.hindex 0463f0c595..85845c432b 100644--- a/libs/fleet/sdk-bindings/go-uniffi/fleet_sdk/fleet_sdk.h+++ b/libs/fleet/sdk-bindings/go-uniffi/fleet_sdk/fleet_sdk.h@@ -491,6 +491,21 @@ uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_renew_claim(uint64_t ptr, Ruuint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_wait_claim(uint64_t ptr, RustBuffer claim);#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_ACCESS_TOKEN+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_ACCESS_TOKEN+uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(uint64_t ptr, int8_t force_refresh+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_CREATE_FLEET_CLAIMS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_CREATE_FLEET_CLAIMS+uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(uint64_t ptr, RustBuffer fleet_id, RustBuffer requests+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_LIST_FLEET_CLAIMS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_LIST_FLEET_CLAIMS+uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(uint64_t ptr, RustBuffer namespace, RustBuffer fleet_id+);+#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_PRESIGN_IMAGE_UPLOADS#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_PRESIGN_IMAGE_UPLOADSuint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_presign_image_uploads(uint64_t ptr, RustBuffer request@@ -576,6 +591,11 @@ uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_update_pool(uint64_t ptr, Ruuint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_service_request(uint64_t ptr, RustBuffer sandbox, RustBuffer service, RustBuffer path, RustBuffer request);#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_SERVICE_WEBSOCKET_URL+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_SERVICE_WEBSOCKET_URL+uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(uint64_t ptr, RustBuffer sandbox, RustBuffer service, RustBuffer path+);+#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_CREATE_SIGNED_SERVICE_URL#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_CREATE_SIGNED_SERVICE_URLuint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_create_signed_service_url(uint64_t ptr, RustBuffer request@@ -697,6 +717,11 @@ uint64_t uniffi_cyclops_sdk_fn_constructor_createclaimrequestbuilder_new(RustCalRustBuffer uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build(uint64_t ptr, RustCallStatus *out_status);#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CREATECLAIMREQUESTBUILDER_LABELS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CREATECLAIMREQUESTBUILDER_LABELS+uint64_t uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(uint64_t ptr, RustBuffer value, RustCallStatus *out_status+);+#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CREATECLAIMREQUESTBUILDER_NAME#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CREATECLAIMREQUESTBUILDER_NAMEuint64_t uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name(uint64_t ptr, RustBuffer value, RustCallStatus *out_status@@ -1002,6 +1027,12 @@ uint64_t uniffi_cyclops_sdk_fn_method_templatebuilder_metadata(uint64_t ptr, Rus#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_TEMPLATEBUILDER_SPEC#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_TEMPLATEBUILDER_SPECuint64_t uniffi_cyclops_sdk_fn_method_templatebuilder_spec(uint64_t ptr, RustBuffer value, RustCallStatus *out_status+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_FUNC_FLEET_LABEL_KEY+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_FUNC_FLEET_LABEL_KEY+RustBuffer uniffi_cyclops_sdk_fn_func_fleet_label_key(RustCallStatus *out_status+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_FUNC_HEALTHY_POOL_DISPLAY_STATUS@@ -1291,6 +1322,12 @@ void ffi_cyclops_sdk_rust_future_free_void(uint64_t handle#ifndef UNIFFI_FFIDEF_FFI_CYCLOPS_SDK_RUST_FUTURE_COMPLETE_VOID#define UNIFFI_FFIDEF_FFI_CYCLOPS_SDK_RUST_FUTURE_COMPLETE_VOIDvoid ffi_cyclops_sdk_rust_future_complete_void(uint64_t handle, RustCallStatus *out_status+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_FUNC_FLEET_LABEL_KEY+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_FUNC_FLEET_LABEL_KEY+uint16_t uniffi_cyclops_sdk_checksum_func_fleet_label_key(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_FUNC_HEALTHY_POOL_DISPLAY_STATUS@@ -1357,6 +1394,24 @@ uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_renew_claim(void#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_WAIT_CLAIMuint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim(void+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_ACCESS_TOKEN+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_ACCESS_TOKEN+uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token(void++);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_CREATE_FLEET_CLAIMS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_CREATE_FLEET_CLAIMS+uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims(void++);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_LIST_FLEET_CLAIMS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_LIST_FLEET_CLAIMS+uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_PRESIGN_IMAGE_UPLOADS@@ -1459,6 +1514,12 @@ uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool(void#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_SERVICE_REQUESTuint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request(void+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_SERVICE_WEBSOCKET_URL+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_SERVICE_WEBSOCKET_URL+uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_CREATE_SIGNED_SERVICE_URL@@ -1549,6 +1610,12 @@ uint16_t uniffi_cyclops_sdk_checksum_method_httpclient_execute(void#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CREATECLAIMREQUESTBUILDER_BUILDuint16_t uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build(void+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CREATECLAIMREQUESTBUILDER_LABELS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CREATECLAIMREQUESTBUILDER_LABELS+uint16_t uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CREATECLAIMREQUESTBUILDER_NAMEdiff --git a/libs/fleet/sdk-bindings/kotlin/ai/cua/cyclops/sdk/fleet_sdk.kt b/libs/fleet/sdk-bindings/kotlin/ai/cua/cyclops/sdk/fleet_sdk.ktindex 9840b2619e..b38500057a 100644--- a/libs/fleet/sdk-bindings/kotlin/ai/cua/cyclops/sdk/fleet_sdk.kt+++ b/libs/fleet/sdk-bindings/kotlin/ai/cua/cyclops/sdk/fleet_sdk.kt@@ -705,6 +705,8 @@ internal object IntegrityCheckingUniffiLib {uniffiCheckContractApiVersion(this)uniffiCheckApiChecksums(this)}+ external fun uniffi_cyclops_sdk_checksum_func_fleet_label_key(+ ): Shortexternal fun uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status(): Shortexternal fun uniffi_cyclops_sdk_checksum_func_pool_display_status(@@ -727,6 +729,12 @@ internal object IntegrityCheckingUniffiLib {): Shortexternal fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim(): Short+ external fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token(+ ): Short+ external fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims(+ ): Short+ external fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims(+ ): Shortexternal fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_presign_image_uploads(): Shortexternal fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_upload_image_file(@@ -761,6 +769,8 @@ internal object IntegrityCheckingUniffiLib {): Shortexternal fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request(): Short+ external fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url(+ ): Shortexternal fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_signed_service_url(): Shortexternal fun uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_signed_service_urls(@@ -791,6 +801,8 @@ internal object IntegrityCheckingUniffiLib {): Shortexternal fun uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build(): Short+ external fun uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels(+ ): Shortexternal fun uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name(): Shortexternal fun uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_pool(@@ -946,6 +958,12 @@ external fun uniffi_cyclops_sdk_fn_method_cyclopsclient_renew_claim(`ptr`: Long,): Longexternal fun uniffi_cyclops_sdk_fn_method_cyclopsclient_wait_claim(`ptr`: Long,`claim`: RustBuffer.ByValue,): Long+external fun uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(`ptr`: Long,`forceRefresh`: Byte,+): Long+external fun uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(`ptr`: Long,`fleetId`: RustBuffer.ByValue,`requests`: RustBuffer.ByValue,+): Long+external fun uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(`ptr`: Long,`namespace`: RustBuffer.ByValue,`fleetId`: RustBuffer.ByValue,+): Longexternal fun uniffi_cyclops_sdk_fn_method_cyclopsclient_presign_image_uploads(`ptr`: Long,`request`: RustBuffer.ByValue,): Longexternal fun uniffi_cyclops_sdk_fn_method_cyclopsclient_upload_image_file(`ptr`: Long,`namespace`: RustBuffer.ByValue,`name`: RustBuffer.ByValue,`contents`: RustBuffer.ByValue,@@ -980,6 +998,8 @@ external fun uniffi_cyclops_sdk_fn_method_cyclopsclient_update_pool(`ptr`: Long,): Longexternal fun uniffi_cyclops_sdk_fn_method_cyclopsclient_service_request(`ptr`: Long,`sandbox`: RustBuffer.ByValue,`service`: RustBuffer.ByValue,`path`: RustBuffer.ByValue,`request`: RustBuffer.ByValue,): Long+external fun uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(`ptr`: Long,`sandbox`: RustBuffer.ByValue,`service`: RustBuffer.ByValue,`path`: RustBuffer.ByValue,+): Longexternal fun uniffi_cyclops_sdk_fn_method_cyclopsclient_create_signed_service_url(`ptr`: Long,`request`: RustBuffer.ByValue,): Longexternal fun uniffi_cyclops_sdk_fn_method_cyclopsclient_list_signed_service_urls(`ptr`: Long,`sandbox`: RustBuffer.ByValue,@@ -1028,6 +1048,8 @@ external fun uniffi_cyclops_sdk_fn_constructor_createclaimrequestbuilder_new(uni): Longexternal fun uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,): RustBuffer.ByValue+external fun uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(`ptr`: Long,`value`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,+): Longexternal fun uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name(`ptr`: Long,`value`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,): Longexternal fun uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_pool(`ptr`: Long,`value`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,@@ -1148,6 +1170,8 @@ external fun uniffi_cyclops_sdk_fn_method_templatebuilder_metadata(`ptr`: Long,`): Longexternal fun uniffi_cyclops_sdk_fn_method_templatebuilder_spec(`ptr`: Long,`value`: RustBufferOSGymSandboxTemplateSpec.ByValue,uniffi_out_err: UniffiRustCallStatus,): Long+external fun uniffi_cyclops_sdk_fn_func_fleet_label_key(uniffi_out_err: UniffiRustCallStatus,+): RustBuffer.ByValueexternal fun uniffi_cyclops_sdk_fn_func_healthy_pool_display_status(uniffi_out_err: UniffiRustCallStatus,): RustBuffer.ByValueexternal fun uniffi_cyclops_sdk_fn_func_pool_display_status(`pool`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,@@ -1277,6 +1301,9 @@ private fun uniffiCheckContractApiVersion(lib: IntegrityCheckingUniffiLib) {}@Suppress("UNUSED_PARAMETER")private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {+ if (lib.uniffi_cyclops_sdk_checksum_func_fleet_label_key() != 5219.toShort()) {+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ }if (lib.uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status() != 3094.toShort()) {throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")}@@ -1310,6 +1337,15 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {if (lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim() != 18984.toShort()) {throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")}+ if (lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token() != 4889.toShort()) {+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ }+ if (lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims() != 11135.toShort()) {+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ }+ if (lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims() != 14544.toShort()) {+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ }if (lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_presign_image_uploads() != 53280.toShort()) {throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")}@@ -1361,6 +1397,9 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {if (lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request() != 46699.toShort()) {throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")}+ if (lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url() != 47537.toShort()) {+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ }if (lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_signed_service_url() != 17810.toShort()) {throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")}@@ -1406,6 +1445,9 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {if (lib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build() != 10518.toShort()) {throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")}+ if (lib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels() != 9576.toShort()) {+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ }if (lib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name() != 19762.toShort()) {throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")}@@ -2483,6 +2525,8 @@ public interface CreateClaimRequestBuilderInterface {fun `build`(): CreateClaimRequest+ fun `labels`(`value`: Map<kotlin.String, kotlin.String>): CreateClaimRequestBuilder+fun `name`(`value`: kotlin.String): CreateClaimRequestBuilderfun `pool`(`value`: Pool): CreateClaimRequestBuilder@@ -2610,6 +2654,19 @@ open class CreateClaimRequestBuilder: Disposable, AutoCloseable, CreateClaimRequ}+ override fun `labels`(`value`: Map<kotlin.String, kotlin.String>): CreateClaimRequestBuilder {+ return FfiConverterTypeCreateClaimRequestBuilder.lift(+ callWithHandle {+ uniffiRustCall() { _status ->+ UniffiLib.uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(+ it,+ FfiConverterMapStringString.lower(`value`),_status)+}+ }+ )+ }++override fun `name`(`value`: kotlin.String): CreateClaimRequestBuilder {return FfiConverterTypeCreateClaimRequestBuilder.lift(callWithHandle {@@ -4006,6 +4063,33 @@ public interface CyclopsClientInterface {suspend fun `waitClaim`(`claim`: Claim): Sandbox+ /**+ * The bearer this client would send on its next authenticated request,+ * for callers that open their own connection to the gateway (for example+ * a native WebSocket). `force_refresh` bypasses any cached token; a+ * static access token is returned as-is. The value is a raw token — the+ * caller attaches it as `authorization: Bearer <token>`.+ */+ suspend fun `accessToken`(`forceRefresh`: kotlin.Boolean): kotlin.String++ /**+ * Fan out `create_claim` calls across the requested warm pools, tagging+ * every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ * back later. Duplicate pool entries are aggregated before any network+ * call. Claims are created sequentially; if one creation fails the error+ * is returned immediately and claims already created keep their fleet+ * label, so `list_fleet_claims` still finds them for retry or cleanup.+ */+ suspend fun `createFleetClaims`(`fleetId`: kotlin.String, `requests`: List<FleetPoolRequest>): FleetClaims++ /**+ * The fleet's claims within one namespace: enumerate the namespace's+ * claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ * spans several pools spans that many namespaces (one pool per+ * namespace), so call this once per member pool.+ */+ suspend fun `listFleetClaims`(`namespace`: kotlin.String, `fleetId`: kotlin.String): FleetClaims+suspend fun `presignImageUploads`(`request`: ImageUploadRequest): ImageUploadResponse/**@@ -4045,6 +4129,15 @@ public interface CyclopsClientInterface {suspend fun `serviceRequest`(`sandbox`: Sandbox, `service`: kotlin.String, `path`: kotlin.String, `request`: HttpRequest): HttpResponse+ /**+ * Where a native client opens its own WebSocket to a sandbox service:+ * the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ * returned `ws(s)://` URL plus the returned bearer header are all a+ * Rust or Swift caller needs to dial the socket directly.+ * `service_request` stays the path for unary requests.+ */+ suspend fun `serviceWebsocketUrl`(`sandbox`: Sandbox, `service`: kotlin.String, `path`: kotlin.String): ServiceStreamTarget+suspend fun `createSignedServiceUrl`(`request`: CreateSignedServiceUrlRequest): SignedServiceUrlsuspend fun `listSignedServiceUrls`(`sandbox`: Sandbox): List<SignedServiceUrl>@@ -4304,6 +4397,90 @@ open class CyclopsClient: Disposable, AutoCloseable, CyclopsClientInterface}+ /**+ * The bearer this client would send on its next authenticated request,+ * for callers that open their own connection to the gateway (for example+ * a native WebSocket). `force_refresh` bypasses any cached token; a+ * static access token is returned as-is. The value is a raw token — the+ * caller attaches it as `authorization: Bearer <token>`.+ */+ @Throws(SdkException::class)+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")+ override suspend fun `accessToken`(`forceRefresh`: kotlin.Boolean) : kotlin.String {+ return uniffiRustCallAsync(+ callWithHandle { uniffiHandle ->+ UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(+ uniffiHandle,+ FfiConverterBoolean.lower(`forceRefresh`),+ )+ },+ { future, callback, continuation -> UniffiLib.ffi_cyclops_sdk_rust_future_poll_rust_buffer(future, callback, continuation) },+ { future, continuation -> UniffiLib.ffi_cyclops_sdk_rust_future_complete_rust_buffer(future, continuation) },+ { future -> UniffiLib.ffi_cyclops_sdk_rust_future_free_rust_buffer(future) },+ // lift function+ { FfiConverterString.lift(it) },+ // Error FFI converter+ SdkException.ErrorHandler,+ )+ }+++ /**+ * Fan out `create_claim` calls across the requested warm pools, tagging+ * every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ * back later. Duplicate pool entries are aggregated before any network+ * call. Claims are created sequentially; if one creation fails the error+ * is returned immediately and claims already created keep their fleet+ * label, so `list_fleet_claims` still finds them for retry or cleanup.+ */+ @Throws(SdkException::class)+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")+ override suspend fun `createFleetClaims`(`fleetId`: kotlin.String, `requests`: List<FleetPoolRequest>) : FleetClaims {+ return uniffiRustCallAsync(+ callWithHandle { uniffiHandle ->+ UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(+ uniffiHandle,+ FfiConverterString.lower(`fleetId`),FfiConverterSequenceTypeFleetPoolRequest.lower(`requests`),+ )+ },+ { future, callback, continuation -> UniffiLib.ffi_cyclops_sdk_rust_future_poll_rust_buffer(future, callback, continuation) },+ { future, continuation -> UniffiLib.ffi_cyclops_sdk_rust_future_complete_rust_buffer(future, continuation) },+ { future -> UniffiLib.ffi_cyclops_sdk_rust_future_free_rust_buffer(future) },+ // lift function+ { FfiConverterTypeFleetClaims.lift(it) },+ // Error FFI converter+ SdkException.ErrorHandler,+ )+ }+++ /**+ * The fleet's claims within one namespace: enumerate the namespace's+ * claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ * spans several pools spans that many namespaces (one pool per+ * namespace), so call this once per member pool.+ */+ @Throws(SdkException::class)+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")+ override suspend fun `listFleetClaims`(`namespace`: kotlin.String, `fleetId`: kotlin.String) : FleetClaims {+ return uniffiRustCallAsync(+ callWithHandle { uniffiHandle ->+ UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(+ uniffiHandle,+ FfiConverterString.lower(`namespace`),FfiConverterString.lower(`fleetId`),+ )+ },+ { future, callback, continuation -> UniffiLib.ffi_cyclops_sdk_rust_future_poll_rust_buffer(future, callback, continuation) },+ { future, continuation -> UniffiLib.ffi_cyclops_sdk_rust_future_complete_rust_buffer(future, continuation) },+ { future -> UniffiLib.ffi_cyclops_sdk_rust_future_free_rust_buffer(future) },+ // lift function+ { FfiConverterTypeFleetClaims.lift(it) },+ // Error FFI converter+ SdkException.ErrorHandler,+ )+ }++@Throws(SdkException::class)@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")override suspend fun `presignImageUploads`(`request`: ImageUploadRequest) : ImageUploadResponse {@@ -4669,6 +4846,34 @@ open class CyclopsClient: Disposable, AutoCloseable, CyclopsClientInterface}+ /**+ * Where a native client opens its own WebSocket to a sandbox service:+ * the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ * returned `ws(s)://` URL plus the returned bearer header are all a+ * Rust or Swift caller needs to dial the socket directly.+ * `service_request` stays the path for unary requests.+ */+ @Throws(SdkException::class)+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")+ override suspend fun `serviceWebsocketUrl`(`sandbox`: Sandbox, `service`: kotlin.String, `path`: kotlin.String) : ServiceStreamTarget {+ return uniffiRustCallAsync(+ callWithHandle { uniffiHandle ->+ UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(+ uniffiHandle,+ FfiConverterTypeSandbox.lower(`sandbox`),FfiConverterString.lower(`service`),FfiConverterString.lower(`path`),+ )+ },+ { future, callback, continuation -> UniffiLib.ffi_cyclops_sdk_rust_future_poll_rust_buffer(future, callback, continuation) },+ { future, continuation -> UniffiLib.ffi_cyclops_sdk_rust_future_complete_rust_buffer(future, continuation) },+ { future -> UniffiLib.ffi_cyclops_sdk_rust_future_free_rust_buffer(future) },+ // lift function+ { FfiConverterTypeServiceStreamTarget.lift(it) },+ // Error FFI converter+ SdkException.ErrorHandler,+ )+ }++@Throws(SdkException::class)@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")override suspend fun `createSignedServiceUrl`(`request`: CreateSignedServiceUrlRequest) : SignedServiceUrl {@@ -6704,6 +6909,13 @@ data class CreateClaimRequest (* `claim-<petname>` so concurrent leases and retries cannot collide.*/var `name`: kotlin.String? = null+ ,+ /**+ * Labels stamped onto the created claim's metadata verbatim. Grouping+ * helpers (for example fleet fan-out) rely on this to tag related claims+ * so they can be listed back by label within a namespace.+ */+ var `labels`: Map<kotlin.String, kotlin.String>? = null){@@ -6723,19 +6935,22 @@ public object FfiConverterTypeCreateClaimRequest: FfiConverterRustBuffer<CreateCFfiConverterTypePool.read(buf),FfiConverterOptionalTypeClaimSpec.read(buf),FfiConverterOptionalString.read(buf),+ FfiConverterOptionalMapStringString.read(buf),)}override fun allocationSize(value: CreateClaimRequest) = (FfiConverterTypePool.allocationSize(value.`pool`) +FfiConverterOptionalTypeClaimSpec.allocationSize(value.`spec`) +- FfiConverterOptionalString.allocationSize(value.`name`)+ FfiConverterOptionalString.allocationSize(value.`name`) ++ FfiConverterOptionalMapStringString.allocationSize(value.`labels`))override fun write(value: CreateClaimRequest, buf: ByteBuffer) {FfiConverterTypePool.write(value.`pool`, buf)FfiConverterOptionalTypeClaimSpec.write(value.`spec`, buf)FfiConverterOptionalString.write(value.`name`, buf)+ FfiConverterOptionalMapStringString.write(value.`labels`, buf)}}@@ -7038,6 +7253,89 @@ public object FfiConverterTypeCyclopsTokenProviderConfiguration: FfiConverterRus+/**+ * A fleet's identity plus the claims currently known to belong to it.+ */+data class FleetClaims (+ var `fleetId`: kotlin.String+ ,+ var `claims`: List<Claim>++){++++++ companion object+}++/**+ * @suppress+ */+public object FfiConverterTypeFleetClaims: FfiConverterRustBuffer<FleetClaims> {+ override fun read(buf: ByteBuffer): FleetClaims {+ return FleetClaims(+ FfiConverterString.read(buf),+ FfiConverterSequenceTypeClaim.read(buf),+ )+ }++ override fun allocationSize(value: FleetClaims) = (+ FfiConverterString.allocationSize(value.`fleetId`) ++ FfiConverterSequenceTypeClaim.allocationSize(value.`claims`)+ )++ override fun write(value: FleetClaims, buf: ByteBuffer) {+ FfiConverterString.write(value.`fleetId`, buf)+ FfiConverterSequenceTypeClaim.write(value.`claims`, buf)+ }+}++++/**+ * One pool's share of a fleet: claim `replicas` sandboxes from the warm pool+ * named `pool`. On this platform the pool name is also its namespace.+ */+data class FleetPoolRequest (+ var `pool`: kotlin.String+ ,+ var `replicas`: kotlin.UInt++){++++++ companion object+}++/**+ * @suppress+ */+public object FfiConverterTypeFleetPoolRequest: FfiConverterRustBuffer<FleetPoolRequest> {+ override fun read(buf: ByteBuffer): FleetPoolRequest {+ return FleetPoolRequest(+ FfiConverterString.read(buf),+ FfiConverterUInt.read(buf),+ )+ }++ override fun allocationSize(value: FleetPoolRequest) = (+ FfiConverterString.allocationSize(value.`pool`) ++ FfiConverterUInt.allocationSize(value.`replicas`)+ )++ override fun write(value: FleetPoolRequest, buf: ByteBuffer) {+ FfiConverterString.write(value.`pool`, buf)+ FfiConverterUInt.write(value.`replicas`, buf)+ }+}+++data class HttpHeader (var `name`: kotlin.String,@@ -7693,6 +7991,56 @@ public object FfiConverterTypeSandbox: FfiConverterRustBuffer<Sandbox> {+/**+ * Where a native client opens its own WebSocket to a sandbox service through+ * the gateway's `/api/svc` proxy. `url` is the `ws(s)://` endpoint;+ * `auth_header_name`/`auth_header_value` carry the bearer the socket's HTTP+ * upgrade request must send. Deliberately not serde-serializable: the value+ * holds a live credential and must not be logged or persisted.+ */+data class ServiceStreamTarget (+ var `url`: kotlin.String+ ,+ var `authHeaderName`: kotlin.String+ ,+ var `authHeaderValue`: kotlin.String++){++++++ companion object+}++/**+ * @suppress+ */+public object FfiConverterTypeServiceStreamTarget: FfiConverterRustBuffer<ServiceStreamTarget> {+ override fun read(buf: ByteBuffer): ServiceStreamTarget {+ return ServiceStreamTarget(+ FfiConverterString.read(buf),+ FfiConverterString.read(buf),+ FfiConverterString.read(buf),+ )+ }++ override fun allocationSize(value: ServiceStreamTarget) = (+ FfiConverterString.allocationSize(value.`url`) ++ FfiConverterString.allocationSize(value.`authHeaderName`) ++ FfiConverterString.allocationSize(value.`authHeaderValue`)+ )++ override fun write(value: ServiceStreamTarget, buf: ByteBuffer) {+ FfiConverterString.write(value.`url`, buf)+ FfiConverterString.write(value.`authHeaderName`, buf)+ FfiConverterString.write(value.`authHeaderValue`, buf)+ }+}+++data class SignedServiceUrl (var `id`: kotlin.String,@@ -8766,6 +9114,34 @@ public object FfiConverterSequenceTypeClaim: FfiConverterRustBuffer<List<Claim>>+/**+ * @suppress+ */+public object FfiConverterSequenceTypeFleetPoolRequest: FfiConverterRustBuffer<List<FleetPoolRequest>> {+ override fun read(buf: ByteBuffer): List<FleetPoolRequest> {+ val len = buf.getInt()+ return List<FleetPoolRequest>(len) {+ FfiConverterTypeFleetPoolRequest.read(buf)+ }+ }++ override fun allocationSize(value: List<FleetPoolRequest>): ULong {+ val sizeForLength = 4UL+ val sizeForItems = value.map { FfiConverterTypeFleetPoolRequest.allocationSize(it) }.sum()+ return sizeForLength + sizeForItems+ }++ override fun write(value: List<FleetPoolRequest>, buf: ByteBuffer) {+ buf.putInt(value.size)+ value.iterator().forEach {+ FfiConverterTypeFleetPoolRequest.write(it, buf)+ }+ }+}++++/*** @suppress*/@@ -9044,6 +9420,20 @@ public object FfiConverterMapStringString: FfiConverterRustBuffer<Map<kotlin.Str++ /**+ * The label key a fleet's claims share, for callers that filter or clean up+ * with raw Kubernetes tooling instead of `list_fleet_claims`.+ */ fun `fleetLabelKey`(): kotlin.String {+ return FfiConverterString.lift(+ uniffiRustCall() { _status ->+ UniffiLib.uniffi_cyclops_sdk_fn_func_fleet_label_key(++ _status)+}+ )+ }+fun `healthyPoolDisplayStatus`(): PoolDisplayStatus {return FfiConverterTypePoolDisplayStatus.lift(uniffiRustCall() { _status ->diff --git a/libs/fleet/sdk-bindings/kotlin/tests/TestAsyncClient.kt b/libs/fleet/sdk-bindings/kotlin/tests/TestAsyncClient.ktindex 8d73711b31..1628e41118 100644--- a/libs/fleet/sdk-bindings/kotlin/tests/TestAsyncClient.kt+++ b/libs/fleet/sdk-bindings/kotlin/tests/TestAsyncClient.kt@@ -52,7 +52,7 @@ private fun tokenExpected() = textExpected(private fun serviceExpected(body: ByteArray?, response: ByteArray) = Expected("POST","https://cyclops.invalid/api/svc/default/offline-sandbox-mcp/mcp",- listOf("authorization" to "Bearer offline-token"),+ listOf("X-Cua-Fleet-Claim" to "default", "authorization" to "Bearer offline-token"),body,202u,response,diff --git a/libs/fleet/sdk-bindings/python/contract_fixture.py b/libs/fleet/sdk-bindings/python/contract_fixture.pyindex e112ed1240..7562ab7c72 100644--- a/libs/fleet/sdk-bindings/python/contract_fixture.py+++ b/libs/fleet/sdk-bindings/python/contract_fixture.py@@ -10,7 +10,7 @@ from fleet_sdk import (ClaimSpec, CreateClaimRequest, CreatePoolRequest, CyclopsBASE = 'https://cyclops.invalid'TOKEN = 'https://keycloak.invalid/realms/offline/protocol/openid-connect/token'JSON_HEADERS = [('accept', 'application/json'), ('content-type', 'application/json'), ('authorization', 'Bearer offline-token')]-SERVICE_HEADERS = [('authorization', 'Bearer offline-token')]+SERVICE_HEADERS = [('X-Cua-Fleet-Claim', 'default'), ('authorization', 'Bearer offline-token')]SERVICE_URL = f'{BASE}/api/svc/default/offline-sandbox-mcp/mcp'@dataclass(frozen=True)diff --git a/libs/fleet/sdk-bindings/python/fleet_sdk/_sdk.py b/libs/fleet/sdk-bindings/python/fleet_sdk/_sdk.pyindex 4d5869bd05..3f16c1c740 100644--- a/libs/fleet/sdk-bindings/python/fleet_sdk/_sdk.py+++ b/libs/fleet/sdk-bindings/python/fleet_sdk/_sdk.py@@ -480,6 +480,8 @@ def _uniffi_check_contract_api_version(lib):raise InternalError("UniFFI contract version mismatch: try cleaning and rebuilding your project")def _uniffi_check_api_checksums(lib):+ if lib.uniffi_cyclops_sdk_checksum_func_fleet_label_key() != 5219:+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status() != 3094:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_func_pool_display_status() != 8587:@@ -496,6 +498,8 @@ def _uniffi_check_api_checksums(lib):raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build() != 10518:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ if lib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels() != 9576:+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name() != 19762:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_pool() != 7405:@@ -554,8 +558,12 @@ def _uniffi_check_api_checksums(lib):raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_native_http_client() != 49301:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token() != 4889:+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim() != 23330:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims() != 11135:+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image() != 51053:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_namespace() != 38049:@@ -592,6 +600,8 @@ def _uniffi_check_api_checksums(lib):raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims() != 7802:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims() != 14544:+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images() != 31215:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_namespaces() != 65288:@@ -616,6 +626,8 @@ def _uniffi_check_api_checksums(lib):raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request() != 46699:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")+ if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url() != 47537:+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool() != 17695:raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")if lib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_template() != 18704:@@ -1092,6 +1104,10 @@ _UniffiLib.uniffi_cyclops_sdk_fn_init_callback_vtable_httpclient.argtypes = (ctypes.POINTER(_UniffiVTableCallbackInterfaceFleetSdkHttpClient),)_UniffiLib.uniffi_cyclops_sdk_fn_init_callback_vtable_httpclient.restype = None+_UniffiLib.uniffi_cyclops_sdk_fn_func_fleet_label_key.argtypes = (+ ctypes.POINTER(_UniffiRustCallStatus),+)+_UniffiLib.uniffi_cyclops_sdk_fn_func_fleet_label_key.restype = _UniffiRustBuffer_UniffiLib.uniffi_cyclops_sdk_fn_func_healthy_pool_display_status.argtypes = (ctypes.POINTER(_UniffiRustCallStatus),)@@ -1127,6 +1143,12 @@ _UniffiLib.uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build.argtypesctypes.POINTER(_UniffiRustCallStatus),)_UniffiLib.uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build.restype = _UniffiRustBuffer+_UniffiLib.uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels.argtypes = (+ ctypes.c_uint64,+ _UniffiRustBuffer,+ ctypes.POINTER(_UniffiRustCallStatus),+)+_UniffiLib.uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels.restype = ctypes.c_uint64_UniffiLib.uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name.argtypes = (ctypes.c_uint64,_UniffiRustBuffer,@@ -1290,11 +1312,22 @@ _UniffiLib.uniffi_cyclops_sdk_fn_constructor_cyclopsclient_connect_with_native_hctypes.POINTER(_UniffiRustCallStatus),)_UniffiLib.uniffi_cyclops_sdk_fn_constructor_cyclopsclient_connect_with_native_http_client.restype = ctypes.c_uint64+_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token.argtypes = (+ ctypes.c_uint64,+ ctypes.c_int8,+)+_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token.restype = ctypes.c_uint64_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_claim.argtypes = (ctypes.c_uint64,_UniffiRustBuffer,)_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_claim.restype = ctypes.c_uint64+_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims.argtypes = (+ ctypes.c_uint64,+ _UniffiRustBuffer,+ _UniffiRustBuffer,+)+_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims.restype = ctypes.c_uint64_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_image.argtypes = (ctypes.c_uint64,_UniffiRustBuffer,@@ -1389,6 +1422,12 @@ _UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_claims.argtypes = (_UniffiRustBuffer,)_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_claims.restype = ctypes.c_uint64+_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims.argtypes = (+ ctypes.c_uint64,+ _UniffiRustBuffer,+ _UniffiRustBuffer,+)+_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims.restype = ctypes.c_uint64_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_images.argtypes = (ctypes.c_uint64,_UniffiRustBuffer,@@ -1451,6 +1490,13 @@ _UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_service_request.argtypes =_UniffiRustBuffer,)_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_service_request.restype = ctypes.c_uint64+_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url.argtypes = (+ ctypes.c_uint64,+ _UniffiRustBuffer,+ _UniffiRustBuffer,+ _UniffiRustBuffer,+)+_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url.restype = ctypes.c_uint64_UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_update_pool.argtypes = (ctypes.c_uint64,_UniffiRustBuffer,@@ -1604,6 +1650,9 @@ _UniffiLib.uniffi_cyclops_sdk_fn_method_templatebuilder_spec.restype = ctypes.c__UniffiLib.ffi_cyclops_sdk_uniffi_contract_version.argtypes = ()_UniffiLib.ffi_cyclops_sdk_uniffi_contract_version.restype = ctypes.c_uint32+_UniffiLib.uniffi_cyclops_sdk_checksum_func_fleet_label_key.argtypes = (+)+_UniffiLib.uniffi_cyclops_sdk_checksum_func_fleet_label_key.restype = ctypes.c_uint16_UniffiLib.uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status.restype = ctypes.c_uint16@@ -1628,6 +1677,9 @@ _UniffiLib.uniffi_cyclops_sdk_checksum_constructor_createclaimrequestbuilder_new_UniffiLib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build.restype = ctypes.c_uint16+_UniffiLib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels.argtypes = (+)+_UniffiLib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels.restype = ctypes.c_uint16_UniffiLib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name.restype = ctypes.c_uint16@@ -1715,9 +1767,15 @@ _UniffiLib.uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_ac_UniffiLib.uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_native_http_client.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_native_http_client.restype = ctypes.c_uint16+_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token.argtypes = (+)+_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token.restype = ctypes.c_uint16_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim.restype = ctypes.c_uint16+_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims.argtypes = (+)+_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims.restype = ctypes.c_uint16_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image.restype = ctypes.c_uint16@@ -1772,6 +1830,9 @@ _UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_get_template.restype_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims.restype = ctypes.c_uint16+_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims.argtypes = (+)+_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims.restype = ctypes.c_uint16_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images.restype = ctypes.c_uint16@@ -1808,6 +1869,9 @@ _UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_revoke_signed_servic_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request.restype = ctypes.c_uint16+_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url.argtypes = (+)+_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url.restype = ctypes.c_uint16_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool.argtypes = ()_UniffiLib.uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool.restype = ctypes.c_uint16@@ -2385,19 +2449,23 @@ class _UniffiFfiConverterOptionalTypeClaimSpec(_UniffiConverterRustBuffer):@dataclassclass CreateClaimRequest:- def __init__(self, *, pool:Pool, spec:typing.Optional[fleet_sdk.ClaimSpec], name:typing.Optional[str] = _DEFAULT):+ def __init__(self, *, pool:Pool, spec:typing.Optional[fleet_sdk.ClaimSpec], name:typing.Optional[str] = _DEFAULT, labels:typing.Optional[dict[str, str]] = _DEFAULT):self.pool = poolself.spec = specif name is _DEFAULT:self.name = Noneelse:self.name = name+ if labels is _DEFAULT:+ self.labels = None+ else:+ self.labels = labelsdef __str__(self):- return "CreateClaimRequest(pool={}, spec={}, name={})".format(self.pool, self.spec, self.name)+ return "CreateClaimRequest(pool={}, spec={}, name={}, labels={})".format(self.pool, self.spec, self.name, self.labels)def __eq__(self, other):if self.pool != other.pool:return False@@ -2405,6 +2473,8 @@ class CreateClaimRequest:return Falseif self.name != other.name:return False+ if self.labels != other.labels:+ return Falsereturn Trueclass _UniffiFfiConverterTypeCreateClaimRequest(_UniffiConverterRustBuffer):@@ -2414,6 +2484,7 @@ class _UniffiFfiConverterTypeCreateClaimRequest(_UniffiConverterRustBuffer):pool=_UniffiFfiConverterTypePool.read(buf),spec=_UniffiFfiConverterOptionalTypeClaimSpec.read(buf),name=_UniffiFfiConverterOptionalString.read(buf),+ labels=_UniffiFfiConverterOptionalMapStringString.read(buf),)@staticmethod@@ -2421,12 +2492,14 @@ class _UniffiFfiConverterTypeCreateClaimRequest(_UniffiConverterRustBuffer):_UniffiFfiConverterTypePool.check_lower(value.pool)_UniffiFfiConverterOptionalTypeClaimSpec.check_lower(value.spec)_UniffiFfiConverterOptionalString.check_lower(value.name)+ _UniffiFfiConverterOptionalMapStringString.check_lower(value.labels)@staticmethoddef write(value, buf):_UniffiFfiConverterTypePool.write(value.pool, buf)_UniffiFfiConverterOptionalTypeClaimSpec.write(value.spec, buf)_UniffiFfiConverterOptionalString.write(value.name, buf)+ _UniffiFfiConverterOptionalMapStringString.write(value.labels, buf)@dataclassclass CreatePoolRequest:@@ -2882,6 +2955,108 @@ class _UniffiFfiConverterTypeCyclopsTokenProviderConfiguration(_UniffiConverterR_UniffiFfiConverterUInt64.write(value.claim_poll_interval_ms, buf)_UniffiFfiConverterUInt32.write(value.claim_poll_limit, buf)+class _UniffiFfiConverterSequenceTypeClaim(_UniffiConverterRustBuffer):+ @classmethod+ def check_lower(cls, value):+ for item in value:+ _UniffiFfiConverterTypeClaim.check_lower(item)++ @classmethod+ def write(cls, value, buf):+ items = len(value)+ buf.write_i32(items)+ for item in value:+ _UniffiFfiConverterTypeClaim.write(item, buf)++ @classmethod+ def read(cls, buf):+ count = buf.read_i32()+ if count < 0:+ raise InternalError("Unexpected negative sequence length")++ return [+ _UniffiFfiConverterTypeClaim.read(buf) for i in range(count)+ ]++@dataclass+class FleetClaims:+ """+ A fleet's identity plus the claims currently known to belong to it.+"""+ def __init__(self, *, fleet_id:str, claims:typing.List[Claim]):+ self.fleet_id = fleet_id+ self.claims = claims+++++ def __str__(self):+ return "FleetClaims(fleet_id={}, claims={})".format(self.fleet_id, self.claims)+ def __eq__(self, other):+ if self.fleet_id != other.fleet_id:+ return False+ if self.claims != other.claims:+ return False+ return True++class _UniffiFfiConverterTypeFleetClaims(_UniffiConverterRustBuffer):+ @staticmethod+ def read(buf):+ return FleetClaims(+ fleet_id=_UniffiFfiConverterString.read(buf),+ claims=_UniffiFfiConverterSequenceTypeClaim.read(buf),+ )++ @staticmethod+ def check_lower(value):+ _UniffiFfiConverterString.check_lower(value.fleet_id)+ _UniffiFfiConverterSequenceTypeClaim.check_lower(value.claims)++ @staticmethod+ def write(value, buf):+ _UniffiFfiConverterString.write(value.fleet_id, buf)+ _UniffiFfiConverterSequenceTypeClaim.write(value.claims, buf)++@dataclass+class FleetPoolRequest:+ """+ One pool's share of a fleet: claim `replicas` sandboxes from the warm pool+ named `pool`. On this platform the pool name is also its namespace.+"""+ def __init__(self, *, pool:str, replicas:int):+ self.pool = pool+ self.replicas = replicas+++++ def __str__(self):+ return "FleetPoolRequest(pool={}, replicas={})".format(self.pool, self.replicas)+ def __eq__(self, other):+ if self.pool != other.pool:+ return False+ if self.replicas != other.replicas:+ return False+ return True++class _UniffiFfiConverterTypeFleetPoolRequest(_UniffiConverterRustBuffer):+ @staticmethod+ def read(buf):+ return FleetPoolRequest(+ pool=_UniffiFfiConverterString.read(buf),+ replicas=_UniffiFfiConverterUInt32.read(buf),+ )++ @staticmethod+ def check_lower(value):+ _UniffiFfiConverterString.check_lower(value.pool)+ _UniffiFfiConverterUInt32.check_lower(value.replicas)++ @staticmethod+ def write(value, buf):+ _UniffiFfiConverterString.write(value.pool, buf)+ _UniffiFfiConverterUInt32.write(value.replicas, buf)+@dataclassclass HttpHeader:def __init__(self, *, name:str, value:str):@@ -3609,6 +3784,55 @@ class _UniffiFfiConverterTypePoolDisplayStatus(_UniffiConverterRustBuffer):_UniffiFfiConverterString.write(value.label, buf)_UniffiFfiConverterString.write(value.indicator, buf)+@dataclass+class ServiceStreamTarget:+ """+ Where a native client opens its own WebSocket to a sandbox service through+ the gateway's `/api/svc` proxy. `url` is the `ws(s)://` endpoint;+ `auth_header_name`/`auth_header_value` carry the bearer the socket's HTTP+ upgrade request must send. Deliberately not serde-serializable: the value+ holds a live credential and must not be logged or persisted.+"""+ def __init__(self, *, url:str, auth_header_name:str, auth_header_value:str):+ self.url = url+ self.auth_header_name = auth_header_name+ self.auth_header_value = auth_header_value+++++ def __str__(self):+ return "ServiceStreamTarget(url={}, auth_header_name={}, auth_header_value={})".format(self.url, self.auth_header_name, self.auth_header_value)+ def __eq__(self, other):+ if self.url != other.url:+ return False+ if self.auth_header_name != other.auth_header_name:+ return False+ if self.auth_header_value != other.auth_header_value:+ return False+ return True++class _UniffiFfiConverterTypeServiceStreamTarget(_UniffiConverterRustBuffer):+ @staticmethod+ def read(buf):+ return ServiceStreamTarget(+ url=_UniffiFfiConverterString.read(buf),+ auth_header_name=_UniffiFfiConverterString.read(buf),+ auth_header_value=_UniffiFfiConverterString.read(buf),+ )++ @staticmethod+ def check_lower(value):+ _UniffiFfiConverterString.check_lower(value.url)+ _UniffiFfiConverterString.check_lower(value.auth_header_name)+ _UniffiFfiConverterString.check_lower(value.auth_header_value)++ @staticmethod+ def write(value, buf):+ _UniffiFfiConverterString.write(value.url, buf)+ _UniffiFfiConverterString.write(value.auth_header_name, buf)+ _UniffiFfiConverterString.write(value.auth_header_value, buf)+@dataclassclass SignedServiceUrl:def __init__(self, *, id:str, namespace:str, claim:str, sandbox:str, service:str, label:typing.Optional[str], url:str, created_at:str, expires_at:str, revoked_at:typing.Optional[str]):@@ -4450,6 +4674,8 @@ class CreateClaimRequestBuilderProtocol(typing.Protocol):def build(self, ) -> CreateClaimRequest:raise NotImplementedError+ def labels(self, value: dict[str, str]) -> CreateClaimRequestBuilder:+ raise NotImplementedErrordef name(self, value: str) -> CreateClaimRequestBuilder:raise NotImplementedErrordef pool(self, value: Pool) -> CreateClaimRequestBuilder:@@ -4501,6 +4727,21 @@ class CreateClaimRequestBuilder(CreateClaimRequestBuilderProtocol):*_uniffi_lowered_args,)return _uniffi_lift_return(_uniffi_ffi_result)+ def labels(self, value: dict[str, str]) -> CreateClaimRequestBuilder:++ _UniffiFfiConverterMapStringString.check_lower(value)+ _uniffi_lowered_args = (+ self._uniffi_clone_handle(),+ _UniffiFfiConverterMapStringString.lower(value),+ )+ _uniffi_lift_return = _UniffiFfiConverterTypeCreateClaimRequestBuilder.lift+ _uniffi_error_converter = None+ _uniffi_ffi_result = _uniffi_rust_call_with_error(+ _uniffi_error_converter,+ _UniffiLib.uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels,+ *_uniffi_lowered_args,+ )+ return _uniffi_lift_return(_uniffi_ffi_result)def name(self, value: str) -> CreateClaimRequestBuilder:_UniffiFfiConverterString.check_lower(value)@@ -5083,20 +5324,18 @@ class _UniffiFfiConverterTypeCreateUserApiKeyRequestBuilder:def write(cls, value: CreateUserApiKeyRequestBuilder, buf: _UniffiRustBuffer):buf.write_u64(cls.lower(value))---class _UniffiFfiConverterSequenceTypeClaim(_UniffiConverterRustBuffer):+class _UniffiFfiConverterSequenceTypeFleetPoolRequest(_UniffiConverterRustBuffer):@classmethoddef check_lower(cls, value):for item in value:- _UniffiFfiConverterTypeClaim.check_lower(item)+ _UniffiFfiConverterTypeFleetPoolRequest.check_lower(item)@classmethoddef write(cls, value, buf):items = len(value)buf.write_i32(items)for item in value:- _UniffiFfiConverterTypeClaim.write(item, buf)+ _UniffiFfiConverterTypeFleetPoolRequest.write(item, buf)@classmethoddef read(cls, buf):@@ -5105,9 +5344,11 @@ class _UniffiFfiConverterSequenceTypeClaim(_UniffiConverterRustBuffer):raise InternalError("Unexpected negative sequence length")return [- _UniffiFfiConverterTypeClaim.read(buf) for i in range(count)+ _UniffiFfiConverterTypeFleetPoolRequest.read(buf) for i in range(count)]++class _UniffiFfiConverterSequenceTypePreservedJson(_UniffiConverterRustBuffer):@classmethoddef check_lower(cls, value):@@ -5249,8 +5490,27 @@ class _UniffiFfiConverterSequenceTypeUserApiKey(_UniffiConverterRustBuffer):class CyclopsClientProtocol(typing.Protocol):+ async def access_token(self, force_refresh: bool) -> str:+ """+ The bearer this client would send on its next authenticated request,+ for callers that open their own connection to the gateway (for example+ a native WebSocket). `force_refresh` bypasses any cached token; a+ static access token is returned as-is. The value is a raw token — the+ caller attaches it as `authorization: Bearer <token>`.+"""+ raise NotImplementedErrorasync def create_claim(self, request: CreateClaimRequest) -> Claim:raise NotImplementedError+ async def create_fleet_claims(self, fleet_id: str,requests: typing.List[FleetPoolRequest]) -> FleetClaims:+ """+ Fan out `create_claim` calls across the requested warm pools, tagging+ every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ back later. Duplicate pool entries are aggregated before any network+ call. Claims are created sequentially; if one creation fails the error+ is returned immediately and claims already created keep their fleet+ label, so `list_fleet_claims` still finds them for retry or cleanup.+"""+ raise NotImplementedErrorasync def create_image(self, namespace: str,manifest: fleet_sdk.PreservedJson) -> fleet_sdk.PreservedJson:raise NotImplementedErrorasync def create_namespace(self, name: str) -> Namespace:@@ -5287,6 +5547,14 @@ class CyclopsClientProtocol(typing.Protocol):raise NotImplementedErrorasync def list_claims(self, namespace: str) -> typing.List[Claim]:raise NotImplementedError+ async def list_fleet_claims(self, namespace: str,fleet_id: str) -> FleetClaims:+ """+ The fleet's claims within one namespace: enumerate the namespace's+ claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ spans several pools spans that many namespaces (one pool per+ namespace), so call this once per member pool.+"""+ raise NotImplementedErrorasync def list_images(self, namespace: str) -> typing.List[fleet_sdk.PreservedJson]:raise NotImplementedErrorasync def list_namespaces(self, ) -> typing.List[Namespace]:@@ -5319,6 +5587,15 @@ class CyclopsClientProtocol(typing.Protocol):raise NotImplementedErrorasync def service_request(self, sandbox: Sandbox,service: str,path: str,request: HttpRequest) -> HttpResponse:raise NotImplementedError+ async def service_websocket_url(self, sandbox: Sandbox,service: str,path: str) -> ServiceStreamTarget:+ """+ Where a native client opens its own WebSocket to a sandbox service:+ the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ returned `ws(s)://` URL plus the returned bearer header are all a+ Rust or Swift caller needs to dial the socket directly.+ `service_request` stays the path for unary requests.+"""+ raise NotImplementedErrorasync def update_pool(self, pool: Pool) -> Pool:raise NotImplementedErrorasync def update_template(self, template: Template) -> Template:@@ -5486,6 +5763,30 @@ class CyclopsClient(CyclopsClientProtocol):inst = cls.__new__(cls)inst._handle = handlereturn inst+ async def access_token(self, force_refresh: bool) -> str:+ """+ The bearer this client would send on its next authenticated request,+ for callers that open their own connection to the gateway (for example+ a native WebSocket). `force_refresh` bypasses any cached token; a+ static access token is returned as-is. The value is a raw token — the+ caller attaches it as `authorization: Bearer <token>`.+"""++ _UniffiFfiConverterBoolean.check_lower(force_refresh)+ _uniffi_lowered_args = (+ self._uniffi_clone_handle(),+ _UniffiFfiConverterBoolean.lower(force_refresh),+ )+ _uniffi_lift_return = _UniffiFfiConverterString.lift+ _uniffi_error_converter = _UniffiFfiConverterTypeSdkError+ return await _uniffi_rust_call_async(+ _UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(*_uniffi_lowered_args),+ _UniffiLib.ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ _UniffiLib.ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ _UniffiLib.ffi_cyclops_sdk_rust_future_free_rust_buffer,+ _uniffi_lift_return,+ _uniffi_error_converter,+ )async def create_claim(self, request: CreateClaimRequest) -> Claim:_UniffiFfiConverterTypeCreateClaimRequest.check_lower(request)@@ -5503,6 +5804,34 @@ class CyclopsClient(CyclopsClientProtocol):_uniffi_lift_return,_uniffi_error_converter,)+ async def create_fleet_claims(self, fleet_id: str,requests: typing.List[FleetPoolRequest]) -> FleetClaims:+ """+ Fan out `create_claim` calls across the requested warm pools, tagging+ every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ back later. Duplicate pool entries are aggregated before any network+ call. Claims are created sequentially; if one creation fails the error+ is returned immediately and claims already created keep their fleet+ label, so `list_fleet_claims` still finds them for retry or cleanup.+"""++ _UniffiFfiConverterString.check_lower(fleet_id)++ _UniffiFfiConverterSequenceTypeFleetPoolRequest.check_lower(requests)+ _uniffi_lowered_args = (+ self._uniffi_clone_handle(),+ _UniffiFfiConverterString.lower(fleet_id),+ _UniffiFfiConverterSequenceTypeFleetPoolRequest.lower(requests),+ )+ _uniffi_lift_return = _UniffiFfiConverterTypeFleetClaims.lift+ _uniffi_error_converter = _UniffiFfiConverterTypeSdkError+ return await _uniffi_rust_call_async(+ _UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(*_uniffi_lowered_args),+ _UniffiLib.ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ _UniffiLib.ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ _UniffiLib.ffi_cyclops_sdk_rust_future_free_rust_buffer,+ _uniffi_lift_return,+ _uniffi_error_converter,+ )async def create_image(self, namespace: str,manifest: fleet_sdk.PreservedJson) -> fleet_sdk.PreservedJson:_UniffiFfiConverterString.check_lower(namespace)@@ -5821,6 +6150,32 @@ class CyclopsClient(CyclopsClientProtocol):_uniffi_lift_return,_uniffi_error_converter,)+ async def list_fleet_claims(self, namespace: str,fleet_id: str) -> FleetClaims:+ """+ The fleet's claims within one namespace: enumerate the namespace's+ claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ spans several pools spans that many namespaces (one pool per+ namespace), so call this once per member pool.+"""++ _UniffiFfiConverterString.check_lower(namespace)++ _UniffiFfiConverterString.check_lower(fleet_id)+ _uniffi_lowered_args = (+ self._uniffi_clone_handle(),+ _UniffiFfiConverterString.lower(namespace),+ _UniffiFfiConverterString.lower(fleet_id),+ )+ _uniffi_lift_return = _UniffiFfiConverterTypeFleetClaims.lift+ _uniffi_error_converter = _UniffiFfiConverterTypeSdkError+ return await _uniffi_rust_call_async(+ _UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(*_uniffi_lowered_args),+ _UniffiLib.ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ _UniffiLib.ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ _UniffiLib.ffi_cyclops_sdk_rust_future_free_rust_buffer,+ _uniffi_lift_return,+ _uniffi_error_converter,+ )async def list_images(self, namespace: str) -> typing.List[fleet_sdk.PreservedJson]:_UniffiFfiConverterString.check_lower(namespace)@@ -6039,6 +6394,36 @@ class CyclopsClient(CyclopsClientProtocol):_uniffi_lift_return,_uniffi_error_converter,)+ async def service_websocket_url(self, sandbox: Sandbox,service: str,path: str) -> ServiceStreamTarget:+ """+ Where a native client opens its own WebSocket to a sandbox service:+ the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ returned `ws(s)://` URL plus the returned bearer header are all a+ Rust or Swift caller needs to dial the socket directly.+ `service_request` stays the path for unary requests.+"""++ _UniffiFfiConverterTypeSandbox.check_lower(sandbox)++ _UniffiFfiConverterString.check_lower(service)++ _UniffiFfiConverterString.check_lower(path)+ _uniffi_lowered_args = (+ self._uniffi_clone_handle(),+ _UniffiFfiConverterTypeSandbox.lower(sandbox),+ _UniffiFfiConverterString.lower(service),+ _UniffiFfiConverterString.lower(path),+ )+ _uniffi_lift_return = _UniffiFfiConverterTypeServiceStreamTarget.lift+ _uniffi_error_converter = _UniffiFfiConverterTypeSdkError+ return await _uniffi_rust_call_async(+ _UniffiLib.uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(*_uniffi_lowered_args),+ _UniffiLib.ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ _UniffiLib.ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ _UniffiLib.ffi_cyclops_sdk_rust_future_free_rust_buffer,+ _uniffi_lift_return,+ _uniffi_error_converter,+ )async def update_pool(self, pool: Pool) -> Pool:_UniffiFfiConverterTypePool.check_lower(pool)@@ -6819,6 +7204,21 @@ class _UniffiFfiConverterUInt8(_UniffiConverterPrimitiveInt):@staticmethoddef write(value, buf):buf.write_u8(value)+def fleet_label_key() -> str:+ """+ The label key a fleet's claims share, for callers that filter or clean up+ with raw Kubernetes tooling instead of `list_fleet_claims`.+"""+ _uniffi_lowered_args = (+ )+ _uniffi_lift_return = _UniffiFfiConverterString.lift+ _uniffi_error_converter = None+ _uniffi_ffi_result = _uniffi_rust_call_with_error(+ _uniffi_error_converter,+ _UniffiLib.uniffi_cyclops_sdk_fn_func_fleet_label_key,+ *_uniffi_lowered_args,+ )+ return _uniffi_lift_return(_uniffi_ffi_result)def healthy_pool_display_status() -> PoolDisplayStatus:_uniffi_lowered_args = ()@@ -6896,6 +7296,8 @@ __all__ = ["CreateUserApiKeyRequest","CyclopsConfiguration","CyclopsTokenProviderConfiguration",+ "FleetClaims",+ "FleetPoolRequest","HttpHeader","HttpRequest","HttpResponse",@@ -6907,9 +7309,11 @@ __all__ = ["Namespace","NewUserApiKey","PoolDisplayStatus",+ "ServiceStreamTarget","SignedServiceUrl","Template","UserApiKey",+ "fleet_label_key","healthy_pool_display_status","pool_display_status","removed_pool_display_status",diff --git a/libs/fleet/sdk-bindings/ruby/cyclops_sdk/sdk.rb b/libs/fleet/sdk-bindings/ruby/cyclops_sdk/sdk.rbindex f270e690e2..f501508125 100644--- a/libs/fleet/sdk-bindings/ruby/cyclops_sdk/sdk.rb+++ b/libs/fleet/sdk-bindings/ruby/cyclops_sdk/sdk.rb@@ -198,6 +198,7 @@ private_constant :UniffiHandleMapRustBuffer.check_lower_TypePool(v.pool)RustBuffer.check_lower_OptionalTypeClaimSpec(v.spec)RustBuffer.check_lower_Optionalstring(v.name)+ RustBuffer.check_lower_OptionalMapStringString(v.labels)enddef self.alloc_from_TypeCreateClaimRequest(v)@@ -344,6 +345,46 @@ private_constant :UniffiHandleMapendend+ # The Record type FleetClaims.++ def self.check_lower_TypeFleetClaims(v)++ RustBuffer.check_lower_SequenceTypeClaim(v.claims)+ end++ def self.alloc_from_TypeFleetClaims(v)+ RustBuffer.allocWithBuilder do |builder|+ builder.write_TypeFleetClaims(v)+ return builder.finalize+ end+ end++ def consumeIntoTypeFleetClaims+ consumeWithStream do |stream|+ return stream.readTypeFleetClaims+ end+ end++ # The Record type FleetPoolRequest.++ def self.check_lower_TypeFleetPoolRequest(v)+++ end++ def self.alloc_from_TypeFleetPoolRequest(v)+ RustBuffer.allocWithBuilder do |builder|+ builder.write_TypeFleetPoolRequest(v)+ return builder.finalize+ end+ end++ def consumeIntoTypeFleetPoolRequest+ consumeWithStream do |stream|+ return stream.readTypeFleetPoolRequest+ end+ end+# The Record type HttpHeader.def self.check_lower_TypeHttpHeader(v)@@ -645,6 +686,27 @@ private_constant :UniffiHandleMapendend+ # The Record type ServiceStreamTarget.++ def self.check_lower_TypeServiceStreamTarget(v)++++ end++ def self.alloc_from_TypeServiceStreamTarget(v)+ RustBuffer.allocWithBuilder do |builder|+ builder.write_TypeServiceStreamTarget(v)+ return builder.finalize+ end+ end++ def consumeIntoTypeServiceStreamTarget+ consumeWithStream do |stream|+ return stream.readTypeServiceStreamTarget+ end+ end+# The Record type SignedServiceUrl.def self.check_lower_TypeSignedServiceUrl(v)@@ -975,6 +1037,27 @@ private_constant :UniffiHandleMapendend+ # The Sequence<T> type for TypeFleetPoolRequest.++ def self.check_lower_SequenceTypeFleetPoolRequest(v)+ v.each do |item|+ RustBuffer.check_lower_TypeFleetPoolRequest(item)+ end+ end++ def self.alloc_from_SequenceTypeFleetPoolRequest(v)+ RustBuffer.allocWithBuilder do |builder|+ builder.write_SequenceTypeFleetPoolRequest(v)+ return builder.finalize()+ end+ end++ def consumeIntoSequenceTypeFleetPoolRequest+ consumeWithStream do |stream|+ return stream.readSequenceTypeFleetPoolRequest+ end+ end+# The Sequence<T> type for TypeHttpHeader.def self.check_lower_SequenceTypeHttpHeader(v)@@ -1348,7 +1431,8 @@ class RustBufferStreamCreateClaimRequest.new(pool: readTypePool,spec: readOptionalTypeClaimSpec,- name: readOptionalstring+ name: readOptionalstring,+ labels: readOptionalMapStringString)end@@ -1417,6 +1501,24 @@ class RustBufferStream)end+ # The Record type FleetClaims.++ def readTypeFleetClaims+ FleetClaims.new(+ fleet_id: readString,+ claims: readSequenceTypeClaim+ )+ end++ # The Record type FleetPoolRequest.++ def readTypeFleetPoolRequest+ FleetPoolRequest.new(+ pool: readString,+ replicas: readU32+ )+ end+# The Record type HttpHeader.def readTypeHttpHeader@@ -1564,6 +1666,16 @@ class RustBufferStream)end+ # The Record type ServiceStreamTarget.++ def readTypeServiceStreamTarget+ ServiceStreamTarget.new(+ url: readString,+ auth_header_name: readString,+ auth_header_value: readString+ )+ end+# The Record type SignedServiceUrl.def readTypeSignedServiceUrl@@ -1928,6 +2040,22 @@ class RustBufferStreamitemsend+ # The Sequence<T> type for TypeFleetPoolRequest.++ def readSequenceTypeFleetPoolRequest+ count = unpack_from 4, 'l>'++ raise InternalError, 'Unexpected negative sequence length' if count.negative?++ items = []++ count.times do+ items.append readTypeFleetPoolRequest+ end++ items+ end+# The Sequence<T> type for TypeHttpHeader.def readSequenceTypeHttpHeader@@ -2246,6 +2374,7 @@ class RustBufferBuilderself.write_TypePool(v.pool)self.write_OptionalTypeClaimSpec(v.spec)self.write_Optionalstring(v.name)+ self.write_OptionalMapStringString(v.labels)end# The Record type CreatePoolRequest.@@ -2301,6 +2430,20 @@ class RustBufferBuilderself.write_U32(v.claim_poll_limit)end+ # The Record type FleetClaims.++ def write_TypeFleetClaims(v)+ self.write_String(v.fleet_id)+ self.write_SequenceTypeClaim(v.claims)+ end++ # The Record type FleetPoolRequest.++ def write_TypeFleetPoolRequest(v)+ self.write_String(v.pool)+ self.write_U32(v.replicas)+ end+# The Record type HttpHeader.def write_TypeHttpHeader(v)@@ -2420,6 +2563,14 @@ class RustBufferBuilderself.write_Sequencestring(v.services)end+ # The Record type ServiceStreamTarget.++ def write_TypeServiceStreamTarget(v)+ self.write_String(v.url)+ self.write_String(v.auth_header_name)+ self.write_String(v.auth_header_value)+ end+# The Record type SignedServiceUrl.def write_TypeSignedServiceUrl(v)@@ -2586,6 +2737,16 @@ class RustBufferBuilderendend+ # The Sequence<T> type for TypeFleetPoolRequest.++ def write_SequenceTypeFleetPoolRequest(items)+ pack_into(4, 'l>', items.size)++ items.each do |item|+ self.write_TypeFleetPoolRequest(item)+ end+ end+# The Sequence<T> type for TypeHttpHeader.def write_SequenceTypeHttpHeader(items)@@ -3211,6 +3372,15 @@ module UniFFILibattach_function :uniffi_cyclops_sdk_fn_method_cyclopsclient_wait_claim,[:uint64, RustBuffer.by_value, RustCallStatus.by_ref],:uint64+ attach_function :uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token,+ [:uint64, :int8, RustCallStatus.by_ref],+ :uint64+ attach_function :uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims,+ [:uint64, RustBuffer.by_value, RustBuffer.by_value, RustCallStatus.by_ref],+ :uint64+ attach_function :uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims,+ [:uint64, RustBuffer.by_value, RustBuffer.by_value, RustCallStatus.by_ref],+ :uint64attach_function :uniffi_cyclops_sdk_fn_method_cyclopsclient_presign_image_uploads,[:uint64, RustBuffer.by_value, RustCallStatus.by_ref],:uint64@@ -3262,6 +3432,9 @@ module UniFFILibattach_function :uniffi_cyclops_sdk_fn_method_cyclopsclient_service_request,[:uint64, RustBuffer.by_value, RustBuffer.by_value, RustBuffer.by_value, RustBuffer.by_value, RustCallStatus.by_ref],:uint64+ attach_function :uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url,+ [:uint64, RustBuffer.by_value, RustBuffer.by_value, RustBuffer.by_value, RustCallStatus.by_ref],+ :uint64attach_function :uniffi_cyclops_sdk_fn_method_cyclopsclient_create_signed_service_url,[:uint64, RustBuffer.by_value, RustCallStatus.by_ref],:uint64@@ -3362,6 +3535,9 @@ module UniFFILibattach_function :uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build,[:uint64, RustCallStatus.by_ref],RustBuffer.by_value+ attach_function :uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels,+ [:uint64, RustBuffer.by_value, RustCallStatus.by_ref],+ :uint64attach_function :uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name,[:uint64, RustBuffer.by_value, RustCallStatus.by_ref],:uint64@@ -3542,6 +3718,9 @@ module UniFFILibattach_function :uniffi_cyclops_sdk_fn_method_templatebuilder_spec,[:uint64, RustBuffer.by_value, RustCallStatus.by_ref],:uint64+ attach_function :uniffi_cyclops_sdk_fn_func_fleet_label_key,+ [RustCallStatus.by_ref],+ RustBuffer.by_valueattach_function :uniffi_cyclops_sdk_fn_func_healthy_pool_display_status,[RustCallStatus.by_ref],RustBuffer.by_value@@ -3569,6 +3748,9 @@ module UniFFILibattach_function :ffi_cyclops_sdk_rustbuffer_reserve,[RustBuffer.by_value, :uint64, RustCallStatus.by_ref],RustBuffer.by_value+ attach_function :uniffi_cyclops_sdk_checksum_func_fleet_label_key,+ [RustCallStatus.by_ref],+ :uint16attach_function :uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status,[RustCallStatus.by_ref],:uint16@@ -3602,6 +3784,15 @@ module UniFFILibattach_function :uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim,[RustCallStatus.by_ref],:uint16+ attach_function :uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token,+ [RustCallStatus.by_ref],+ :uint16+ attach_function :uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims,+ [RustCallStatus.by_ref],+ :uint16+ attach_function :uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims,+ [RustCallStatus.by_ref],+ :uint16attach_function :uniffi_cyclops_sdk_checksum_method_cyclopsclient_presign_image_uploads,[RustCallStatus.by_ref],:uint16@@ -3653,6 +3844,9 @@ module UniFFILibattach_function :uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request,[RustCallStatus.by_ref],:uint16+ attach_function :uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url,+ [RustCallStatus.by_ref],+ :uint16attach_function :uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_signed_service_url,[RustCallStatus.by_ref],:uint16@@ -3698,6 +3892,9 @@ module UniFFILibattach_function :uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build,[RustCallStatus.by_ref],:uint16+ attach_function :uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels,+ [RustCallStatus.by_ref],+ :uint16attach_function :uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name,[RustCallStatus.by_ref],:uint16@@ -3881,6 +4078,48 @@ end+ # Record type FleetClaims+class FleetClaims+ attr_reader :fleet_id, :claims++ def initialize(fleet_id:, claims:)+ @fleet_id = fleet_id+ @claims = claims+ end++ def ==(other)+ if @fleet_id != other.fleet_id+ return false+ end+ if @claims != other.claims+ return false+ end++ true+ end+end++ # Record type FleetPoolRequest+class FleetPoolRequest+ attr_reader :pool, :replicas++ def initialize(pool:, replicas:)+ @pool = pool+ @replicas = replicas+ end++ def ==(other)+ if @pool != other.pool+ return false+ end+ if @replicas != other.replicas+ return false+ end++ true+ end+end+# Record type ImageUploadFileRequestclass ImageUploadFileRequestattr_reader :digest, :size_bytes, :name@@ -4058,12 +4297,13 @@ end# Record type CreateClaimRequestclass CreateClaimRequest- attr_reader :pool, :spec, :name+ attr_reader :pool, :spec, :name, :labels- def initialize(pool:, spec:, name: nil)+ def initialize(pool:, spec:, name: nil, labels: nil)@pool = pool@spec = spec@name = name+ @labels = labelsenddef ==(other)@@ -4076,6 +4316,9 @@ class CreateClaimRequestif @name != other.namereturn falseend+ if @labels != other.labels+ return false+ endtrueend@@ -4487,6 +4730,31 @@ class Sandboxendend+ # Record type ServiceStreamTarget+class ServiceStreamTarget+ attr_reader :url, :auth_header_name, :auth_header_value++ def initialize(url:, auth_header_name:, auth_header_value:)+ @url = url+ @auth_header_name = auth_header_name+ @auth_header_value = auth_header_value+ end++ def ==(other)+ if @url != other.url+ return false+ end+ if @auth_header_name != other.auth_header_name+ return false+ end+ if @auth_header_value != other.auth_header_value+ return false+ end++ true+ end+end+# Record type SignedServiceUrlclass SignedServiceUrlattr_reader :id, :namespace, :claim, :sandbox, :service, :label, :url, :created_at, :expires_at, :revoked_at@@ -4602,6 +4870,15 @@ end+def self.fleet_label_key()+ result = FleetSdk.rust_call(:uniffi_cyclops_sdk_fn_func_fleet_label_key,)+ return result.consumeIntoString+end+++++def self.healthy_pool_display_status()result = FleetSdk.rust_call(:uniffi_cyclops_sdk_fn_func_healthy_pool_display_status,)return result.consumeIntoTypePoolDisplayStatus@@ -4829,6 +5106,43 @@ end)return result.consumeIntoTypeSandboxend+ def access_token(force_refresh)+ force_refresh = force_refresh ? true : false++ result = FleetSdk.uniffi_rust_future_rust_buffer(++ SdkError,++ UniFFILib.uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(uniffi_clone_handle(),(force_refresh ? 1 : 0),RustCallStatus.new),++ )+ return result.consumeIntoString+ end+ def create_fleet_claims(fleet_id, requests)+ fleet_id = FleetSdk::uniffi_utf8(fleet_id)++ requests = requests+ RustBuffer.check_lower_SequenceTypeFleetPoolRequest(requests)+ result = FleetSdk.uniffi_rust_future_rust_buffer(+ SdkError,+ UniFFILib.uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(uniffi_clone_handle(),RustBuffer.allocFromString(fleet_id),RustBuffer.alloc_from_SequenceTypeFleetPoolRequest(requests),RustCallStatus.new),+ )+ return result.consumeIntoTypeFleetClaims+ end+ def list_fleet_claims(namespace, fleet_id)+ namespace = FleetSdk::uniffi_utf8(namespace)++ fleet_id = FleetSdk::uniffi_utf8(fleet_id)++ result = FleetSdk.uniffi_rust_future_rust_buffer(++ SdkError,++ UniFFILib.uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(uniffi_clone_handle(),RustBuffer.allocFromString(namespace),RustBuffer.allocFromString(fleet_id),RustCallStatus.new),++ )+ return result.consumeIntoTypeFleetClaims+ enddef presign_image_uploads(request)request = requestRustBuffer.check_lower_TypeImageUploadRequest(request)@@ -5023,6 +5337,22 @@ end)return result.consumeIntoTypeHttpResponseend+ def service_websocket_url(sandbox, service, path)+ sandbox = sandbox+ RustBuffer.check_lower_TypeSandbox(sandbox)+ service = FleetSdk::uniffi_utf8(service)++ path = FleetSdk::uniffi_utf8(path)++ result = FleetSdk.uniffi_rust_future_rust_buffer(++ SdkError,++ UniFFILib.uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(uniffi_clone_handle(),RustBuffer.alloc_from_TypeSandbox(sandbox),RustBuffer.allocFromString(service),RustBuffer.allocFromString(path),RustCallStatus.new),++ )+ return result.consumeIntoTypeServiceStreamTarget+ enddef create_signed_service_url(request)request = requestRustBuffer.check_lower_TypeCreateSignedServiceUrlRequest(request)@@ -5321,6 +5651,12 @@ endresult = FleetSdk.rust_call_with_error(SdkBuildError,:uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build,uniffi_clone_handle(),)return result.consumeIntoTypeCreateClaimRequestend+ def labels(value)+ value = value.each.with_object({}) { |(k, v), res| res[FleetSdk::uniffi_utf8(k)] = FleetSdk::uniffi_utf8(v) }+ RustBuffer.check_lower_MapStringString(value)+ result = FleetSdk.rust_call(:uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels,uniffi_clone_handle(),RustBuffer.alloc_from_MapStringString(value))+ return CreateClaimRequestBuilder.uniffi_allocate(result)+ enddef name(value)value = FleetSdk::uniffi_utf8(value)diff --git a/libs/fleet/sdk-bindings/ruby/tests/test_async_client.rb b/libs/fleet/sdk-bindings/ruby/tests/test_async_client.rbindex 8c9a8becc8..7eee3680e2 100644--- a/libs/fleet/sdk-bindings/ruby/tests/test_async_client.rb+++ b/libs/fleet/sdk-bindings/ruby/tests/test_async_client.rb@@ -36,7 +36,7 @@ def token_expectedenddef service_expected(body, response)- Expected.new('POST', "#{BASE}/api/svc/default/offline-sandbox-mcp/mcp", [['authorization', 'Bearer offline-token']], body, 202, response)+ Expected.new('POST', "#{BASE}/api/svc/default/offline-sandbox-mcp/mcp", [['X-Cua-Fleet-Claim', 'default'], ['authorization', 'Bearer offline-token']], body, 202, response)enddef lifecycle_queuediff --git a/libs/fleet/sdk-bindings/swift/CyclopsSdk.swift b/libs/fleet/sdk-bindings/swift/CyclopsSdk.swiftindex ee3cd7b32a..043b205748 100644--- a/libs/fleet/sdk-bindings/swift/CyclopsSdk.swift+++ b/libs/fleet/sdk-bindings/swift/CyclopsSdk.swift@@ -774,6 +774,8 @@ public protocol CreateClaimRequestBuilderProtocol: AnyObject, Sendable {func build() throws -> CreateClaimRequest+ func labels(value: [String: String]) -> CreateClaimRequestBuilder+func name(value: String) -> CreateClaimRequestBuilderfunc pool(value: Pool) -> CreateClaimRequestBuilder@@ -849,6 +851,15 @@ open func build()throws -> CreateClaimRequest {})}+open func labels(value: [String: String]) -> CreateClaimRequestBuilder {+ return try! FfiConverterTypeCreateClaimRequestBuilder_lift(try! rustCall() {+ uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(+ self.uniffiCloneHandle(),+ FfiConverterDictionaryStringString.lower(value),$0+ )+})+}+open func name(value: String) -> CreateClaimRequestBuilder {return try! FfiConverterTypeCreateClaimRequestBuilder_lift(try! rustCall() {uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name(@@ -1561,6 +1572,33 @@ public protocol CyclopsClientProtocol: AnyObject, Sendable {func waitClaim(claim: Claim) async throws -> Sandbox+ /**+ * The bearer this client would send on its next authenticated request,+ * for callers that open their own connection to the gateway (for example+ * a native WebSocket). `force_refresh` bypasses any cached token; a+ * static access token is returned as-is. The value is a raw token — the+ * caller attaches it as `authorization: Bearer <token>`.+ */+ func accessToken(forceRefresh: Bool) async throws -> String++ /**+ * Fan out `create_claim` calls across the requested warm pools, tagging+ * every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ * back later. Duplicate pool entries are aggregated before any network+ * call. Claims are created sequentially; if one creation fails the error+ * is returned immediately and claims already created keep their fleet+ * label, so `list_fleet_claims` still finds them for retry or cleanup.+ */+ func createFleetClaims(fleetId: String, requests: [FleetPoolRequest]) async throws -> FleetClaims++ /**+ * The fleet's claims within one namespace: enumerate the namespace's+ * claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ * spans several pools spans that many namespaces (one pool per+ * namespace), so call this once per member pool.+ */+ func listFleetClaims(namespace: String, fleetId: String) async throws -> FleetClaims+func presignImageUploads(request: ImageUploadRequest) async throws -> ImageUploadResponse/**@@ -1600,6 +1638,15 @@ public protocol CyclopsClientProtocol: AnyObject, Sendable {func serviceRequest(sandbox: Sandbox, service: String, path: String, request: HttpRequest) async throws -> HttpResponse+ /**+ * Where a native client opens its own WebSocket to a sandbox service:+ * the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ * returned `ws(s)://` URL plus the returned bearer header are all a+ * Rust or Swift caller needs to dial the socket directly.+ * `service_request` stays the path for unary requests.+ */+ func serviceWebsocketUrl(sandbox: Sandbox, service: String, path: String) async throws -> ServiceStreamTarget+func createSignedServiceUrl(request: CreateSignedServiceUrlRequest) async throws -> SignedServiceUrlfunc listSignedServiceUrls(sandbox: Sandbox) async throws -> [SignedServiceUrl]@@ -1852,6 +1899,78 @@ open func waitClaim(claim: Claim)async throws -> Sandbox {)}+ /**+ * The bearer this client would send on its next authenticated request,+ * for callers that open their own connection to the gateway (for example+ * a native WebSocket). `force_refresh` bypasses any cached token; a+ * static access token is returned as-is. The value is a raw token — the+ * caller attaches it as `authorization: Bearer <token>`.+ */+open func accessToken(forceRefresh: Bool)async throws -> String {+ return+ try await uniffiRustCallAsync(+ rustFutureFunc: {+ uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(+ self.uniffiCloneHandle(),+ FfiConverterBool.lower(forceRefresh)+ )+ },+ pollFunc: ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ completeFunc: ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ freeFunc: ffi_cyclops_sdk_rust_future_free_rust_buffer,+ liftFunc: FfiConverterString.lift,+ errorHandler: FfiConverterTypeSdkError_lift+ )+}++ /**+ * Fan out `create_claim` calls across the requested warm pools, tagging+ * every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ * back later. Duplicate pool entries are aggregated before any network+ * call. Claims are created sequentially; if one creation fails the error+ * is returned immediately and claims already created keep their fleet+ * label, so `list_fleet_claims` still finds them for retry or cleanup.+ */+open func createFleetClaims(fleetId: String, requests: [FleetPoolRequest])async throws -> FleetClaims {+ return+ try await uniffiRustCallAsync(+ rustFutureFunc: {+ uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(+ self.uniffiCloneHandle(),+ FfiConverterString.lower(fleetId),FfiConverterSequenceTypeFleetPoolRequest.lower(requests)+ )+ },+ pollFunc: ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ completeFunc: ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ freeFunc: ffi_cyclops_sdk_rust_future_free_rust_buffer,+ liftFunc: FfiConverterTypeFleetClaims_lift,+ errorHandler: FfiConverterTypeSdkError_lift+ )+}++ /**+ * The fleet's claims within one namespace: enumerate the namespace's+ * claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ * spans several pools spans that many namespaces (one pool per+ * namespace), so call this once per member pool.+ */+open func listFleetClaims(namespace: String, fleetId: String)async throws -> FleetClaims {+ return+ try await uniffiRustCallAsync(+ rustFutureFunc: {+ uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(+ self.uniffiCloneHandle(),+ FfiConverterString.lower(namespace),FfiConverterString.lower(fleetId)+ )+ },+ pollFunc: ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ completeFunc: ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ freeFunc: ffi_cyclops_sdk_rust_future_free_rust_buffer,+ liftFunc: FfiConverterTypeFleetClaims_lift,+ errorHandler: FfiConverterTypeSdkError_lift+ )+}+open func presignImageUploads(request: ImageUploadRequest)async throws -> ImageUploadResponse {returntry await uniffiRustCallAsync(@@ -2146,6 +2265,30 @@ open func serviceRequest(sandbox: Sandbox, service: String, path: String, reques)}+ /**+ * Where a native client opens its own WebSocket to a sandbox service:+ * the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ * returned `ws(s)://` URL plus the returned bearer header are all a+ * Rust or Swift caller needs to dial the socket directly.+ * `service_request` stays the path for unary requests.+ */+open func serviceWebsocketUrl(sandbox: Sandbox, service: String, path: String)async throws -> ServiceStreamTarget {+ return+ try await uniffiRustCallAsync(+ rustFutureFunc: {+ uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(+ self.uniffiCloneHandle(),+ FfiConverterTypeSandbox_lower(sandbox),FfiConverterString.lower(service),FfiConverterString.lower(path)+ )+ },+ pollFunc: ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ completeFunc: ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ freeFunc: ffi_cyclops_sdk_rust_future_free_rust_buffer,+ liftFunc: FfiConverterTypeServiceStreamTarget_lift,+ errorHandler: FfiConverterTypeSdkError_lift+ )+}+open func createSignedServiceUrl(request: CreateSignedServiceUrlRequest)async throws -> SignedServiceUrl {returntry await uniffiRustCallAsync(@@ -3350,6 +3493,12 @@ public struct CreateClaimRequest: Equatable, Hashable {* `claim-<petname>` so concurrent leases and retries cannot collide.*/public var name: String?+ /**+ * Labels stamped onto the created claim's metadata verbatim. Grouping+ * helpers (for example fleet fan-out) rely on this to tag related claims+ * so they can be listed back by label within a namespace.+ */+ public var labels: [String: String]?// Default memberwise initializers are never public by default, so we// declare one manually.@@ -3358,10 +3507,16 @@ public struct CreateClaimRequest: Equatable, Hashable {* Explicit claim name. A client-supplied name is used verbatim (after* DNS-label validation); left unset, the client generates a random* `claim-<petname>` so concurrent leases and retries cannot collide.- */name: String? = nil) {+ */name: String? = nil,+ /**+ * Labels stamped onto the created claim's metadata verbatim. Grouping+ * helpers (for example fleet fan-out) rely on this to tag related claims+ * so they can be listed back by label within a namespace.+ */labels: [String: String]? = nil) {self.pool = poolself.spec = specself.name = name+ self.labels = labels}@@ -3382,7 +3537,8 @@ public struct FfiConverterTypeCreateClaimRequest: FfiConverterRustBuffer {try CreateClaimRequest(pool: FfiConverterTypePool.read(from: &buf),spec: FfiConverterOptionTypeClaimSpec.read(from: &buf),- name: FfiConverterOptionString.read(from: &buf)+ name: FfiConverterOptionString.read(from: &buf),+ labels: FfiConverterOptionDictionaryStringString.read(from: &buf))}@@ -3390,6 +3546,7 @@ public struct FfiConverterTypeCreateClaimRequest: FfiConverterRustBuffer {FfiConverterTypePool.write(value.pool, into: &buf)FfiConverterOptionTypeClaimSpec.write(value.spec, into: &buf)FfiConverterOptionString.write(value.name, into: &buf)+ FfiConverterOptionDictionaryStringString.write(value.labels, into: &buf)}}@@ -3777,6 +3934,121 @@ public func FfiConverterTypeCyclopsTokenProviderConfiguration_lower(_ value: Cyc}+/**+ * A fleet's identity plus the claims currently known to belong to it.+ */+public struct FleetClaims: Equatable, Hashable {+ public var fleetId: String+ public var claims: [Claim]++ // Default memberwise initializers are never public by default, so we+ // declare one manually.+ public init(fleetId: String, claims: [Claim]) {+ self.fleetId = fleetId+ self.claims = claims+ }+++++}++#if compiler(>=6)+extension FleetClaims: Sendable {}+#endif++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public struct FfiConverterTypeFleetClaims: FfiConverterRustBuffer {+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FleetClaims {+ return+ try FleetClaims(+ fleetId: FfiConverterString.read(from: &buf),+ claims: FfiConverterSequenceTypeClaim.read(from: &buf)+ )+ }++ public static func write(_ value: FleetClaims, into buf: inout [UInt8]) {+ FfiConverterString.write(value.fleetId, into: &buf)+ FfiConverterSequenceTypeClaim.write(value.claims, into: &buf)+ }+}+++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeFleetClaims_lift(_ buf: RustBuffer) throws -> FleetClaims {+ return try FfiConverterTypeFleetClaims.lift(buf)+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeFleetClaims_lower(_ value: FleetClaims) -> RustBuffer {+ return FfiConverterTypeFleetClaims.lower(value)+}+++/**+ * One pool's share of a fleet: claim `replicas` sandboxes from the warm pool+ * named `pool`. On this platform the pool name is also its namespace.+ */+public struct FleetPoolRequest: Equatable, Hashable {+ public var pool: String+ public var replicas: UInt32++ // Default memberwise initializers are never public by default, so we+ // declare one manually.+ public init(pool: String, replicas: UInt32) {+ self.pool = pool+ self.replicas = replicas+ }+++++}++#if compiler(>=6)+extension FleetPoolRequest: Sendable {}+#endif++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public struct FfiConverterTypeFleetPoolRequest: FfiConverterRustBuffer {+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FleetPoolRequest {+ return+ try FleetPoolRequest(+ pool: FfiConverterString.read(from: &buf),+ replicas: FfiConverterUInt32.read(from: &buf)+ )+ }++ public static func write(_ value: FleetPoolRequest, into buf: inout [UInt8]) {+ FfiConverterString.write(value.pool, into: &buf)+ FfiConverterUInt32.write(value.replicas, into: &buf)+ }+}+++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeFleetPoolRequest_lift(_ buf: RustBuffer) throws -> FleetPoolRequest {+ return try FfiConverterTypeFleetPoolRequest.lift(buf)+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeFleetPoolRequest_lower(_ value: FleetPoolRequest) -> RustBuffer {+ return FfiConverterTypeFleetPoolRequest.lower(value)+}++public struct HttpHeader: Equatable, Hashable {public var name: Stringpublic var value: String@@ -4644,6 +4916,71 @@ public func FfiConverterTypeSandbox_lower(_ value: Sandbox) -> RustBuffer {}+/**+ * Where a native client opens its own WebSocket to a sandbox service through+ * the gateway's `/api/svc` proxy. `url` is the `ws(s)://` endpoint;+ * `auth_header_name`/`auth_header_value` carry the bearer the socket's HTTP+ * upgrade request must send. Deliberately not serde-serializable: the value+ * holds a live credential and must not be logged or persisted.+ */+public struct ServiceStreamTarget: Equatable, Hashable {+ public var url: String+ public var authHeaderName: String+ public var authHeaderValue: String++ // Default memberwise initializers are never public by default, so we+ // declare one manually.+ public init(url: String, authHeaderName: String, authHeaderValue: String) {+ self.url = url+ self.authHeaderName = authHeaderName+ self.authHeaderValue = authHeaderValue+ }+++++}++#if compiler(>=6)+extension ServiceStreamTarget: Sendable {}+#endif++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public struct FfiConverterTypeServiceStreamTarget: FfiConverterRustBuffer {+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ServiceStreamTarget {+ return+ try ServiceStreamTarget(+ url: FfiConverterString.read(from: &buf),+ authHeaderName: FfiConverterString.read(from: &buf),+ authHeaderValue: FfiConverterString.read(from: &buf)+ )+ }++ public static func write(_ value: ServiceStreamTarget, into buf: inout [UInt8]) {+ FfiConverterString.write(value.url, into: &buf)+ FfiConverterString.write(value.authHeaderName, into: &buf)+ FfiConverterString.write(value.authHeaderValue, into: &buf)+ }+}+++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeServiceStreamTarget_lift(_ buf: RustBuffer) throws -> ServiceStreamTarget {+ return try FfiConverterTypeServiceStreamTarget.lift(buf)+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeServiceStreamTarget_lower(_ value: ServiceStreamTarget) -> RustBuffer {+ return FfiConverterTypeServiceStreamTarget.lower(value)+}++public struct SignedServiceUrl: Equatable, Hashable {public var id: Stringpublic var namespace: String@@ -5630,6 +5967,31 @@ fileprivate struct FfiConverterSequenceTypeClaim: FfiConverterRustBuffer {}}+#if swift(>=5.8)+@_documentation(visibility: private)+#endif+fileprivate struct FfiConverterSequenceTypeFleetPoolRequest: FfiConverterRustBuffer {+ typealias SwiftType = [FleetPoolRequest]++ public static func write(_ value: [FleetPoolRequest], into buf: inout [UInt8]) {+ let len = Int32(value.count)+ writeInt(&buf, len)+ for item in value {+ FfiConverterTypeFleetPoolRequest.write(item, into: &buf)+ }+ }++ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> [FleetPoolRequest] {+ let len: Int32 = try readInt(&buf)+ var seq = [FleetPoolRequest]()+ seq.reserveCapacity(Int(len))+ for _ in 0 ..< len {+ seq.append(try FfiConverterTypeFleetPoolRequest.read(from: &buf))+ }+ return seq+ }+}+#if swift(>=5.8)@_documentation(visibility: private)#endif@@ -5993,6 +6355,16 @@ private func uniffiForeignFutureDroppedCallback(handle: UInt64) {public func uniffiForeignFutureHandleCountFleetSdk() -> Int {UNIFFI_FOREIGN_FUTURE_HANDLE_MAP.count}+/**+ * The label key a fleet's claims share, for callers that filter or clean up+ * with raw Kubernetes tooling instead of `list_fleet_claims`.+ */+public func fleetLabelKey() -> String {+ return try! FfiConverterString.lift(try! rustCall() {+ uniffi_cyclops_sdk_fn_func_fleet_label_key($0+ )+})+}public func healthyPoolDisplayStatus() -> PoolDisplayStatus {return try! FfiConverterTypePoolDisplayStatus_lift(try! rustCall() {uniffi_cyclops_sdk_fn_func_healthy_pool_display_status($0@@ -6040,6 +6412,9 @@ private let initializationResult: InitializationResult = {if bindings_contract_version != scaffolding_contract_version {return InitializationResult.contractVersionMismatch}+ if (uniffi_cyclops_sdk_checksum_func_fleet_label_key() != 5219) {+ return InitializationResult.apiChecksumMismatch+ }if (uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status() != 3094) {return InitializationResult.apiChecksumMismatch}@@ -6073,6 +6448,15 @@ private let initializationResult: InitializationResult = {if (uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim() != 18984) {return InitializationResult.apiChecksumMismatch}+ if (uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token() != 4889) {+ return InitializationResult.apiChecksumMismatch+ }+ if (uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims() != 11135) {+ return InitializationResult.apiChecksumMismatch+ }+ if (uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims() != 14544) {+ return InitializationResult.apiChecksumMismatch+ }if (uniffi_cyclops_sdk_checksum_method_cyclopsclient_presign_image_uploads() != 53280) {return InitializationResult.apiChecksumMismatch}@@ -6124,6 +6508,9 @@ private let initializationResult: InitializationResult = {if (uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request() != 46699) {return InitializationResult.apiChecksumMismatch}+ if (uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url() != 47537) {+ return InitializationResult.apiChecksumMismatch+ }if (uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_signed_service_url() != 17810) {return InitializationResult.apiChecksumMismatch}@@ -6169,6 +6556,9 @@ private let initializationResult: InitializationResult = {if (uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build() != 10518) {return InitializationResult.apiChecksumMismatch}+ if (uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels() != 9576) {+ return InitializationResult.apiChecksumMismatch+ }if (uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name() != 19762) {return InitializationResult.apiChecksumMismatch}diff --git a/libs/fleet/sdk-bindings/swift/CyclopsSdkFFI.h b/libs/fleet/sdk-bindings/swift/CyclopsSdkFFI.hindex 580035b4a4..176317e568 100644--- a/libs/fleet/sdk-bindings/swift/CyclopsSdkFFI.h+++ b/libs/fleet/sdk-bindings/swift/CyclopsSdkFFI.h@@ -348,6 +348,21 @@ uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_renew_claim(uint64_t ptr, Ruuint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_wait_claim(uint64_t ptr, RustBuffer claim);#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_ACCESS_TOKEN+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_ACCESS_TOKEN+uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(uint64_t ptr, int8_t force_refresh+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_CREATE_FLEET_CLAIMS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_CREATE_FLEET_CLAIMS+uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(uint64_t ptr, RustBuffer fleet_id, RustBuffer requests+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_LIST_FLEET_CLAIMS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_LIST_FLEET_CLAIMS+uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(uint64_t ptr, RustBuffer namespace, RustBuffer fleet_id+);+#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_PRESIGN_IMAGE_UPLOADS#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_PRESIGN_IMAGE_UPLOADSuint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_presign_image_uploads(uint64_t ptr, RustBuffer request@@ -433,6 +448,11 @@ uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_update_pool(uint64_t ptr, Ruuint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_service_request(uint64_t ptr, RustBuffer sandbox, RustBuffer service, RustBuffer path, RustBuffer request);#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_SERVICE_WEBSOCKET_URL+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_SERVICE_WEBSOCKET_URL+uint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(uint64_t ptr, RustBuffer sandbox, RustBuffer service, RustBuffer path+);+#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_CREATE_SIGNED_SERVICE_URL#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CYCLOPSCLIENT_CREATE_SIGNED_SERVICE_URLuint64_t uniffi_cyclops_sdk_fn_method_cyclopsclient_create_signed_service_url(uint64_t ptr, RustBuffer request@@ -554,6 +574,11 @@ uint64_t uniffi_cyclops_sdk_fn_constructor_createclaimrequestbuilder_new(RustCalRustBuffer uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build(uint64_t ptr, RustCallStatus *_Nonnull out_status);#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CREATECLAIMREQUESTBUILDER_LABELS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CREATECLAIMREQUESTBUILDER_LABELS+uint64_t uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(uint64_t ptr, RustBuffer value, RustCallStatus *_Nonnull out_status+);+#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CREATECLAIMREQUESTBUILDER_NAME#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_CREATECLAIMREQUESTBUILDER_NAMEuint64_t uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name(uint64_t ptr, RustBuffer value, RustCallStatus *_Nonnull out_status@@ -859,6 +884,12 @@ uint64_t uniffi_cyclops_sdk_fn_method_templatebuilder_metadata(uint64_t ptr, Rus#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_TEMPLATEBUILDER_SPEC#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_METHOD_TEMPLATEBUILDER_SPECuint64_t uniffi_cyclops_sdk_fn_method_templatebuilder_spec(uint64_t ptr, RustBuffer value, RustCallStatus *_Nonnull out_status+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_FUNC_FLEET_LABEL_KEY+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_FUNC_FLEET_LABEL_KEY+RustBuffer uniffi_cyclops_sdk_fn_func_fleet_label_key(RustCallStatus *_Nonnull out_status+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_FN_FUNC_HEALTHY_POOL_DISPLAY_STATUS@@ -1148,6 +1179,12 @@ void ffi_cyclops_sdk_rust_future_free_void(uint64_t handle#ifndef UNIFFI_FFIDEF_FFI_CYCLOPS_SDK_RUST_FUTURE_COMPLETE_VOID#define UNIFFI_FFIDEF_FFI_CYCLOPS_SDK_RUST_FUTURE_COMPLETE_VOIDvoid ffi_cyclops_sdk_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_FUNC_FLEET_LABEL_KEY+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_FUNC_FLEET_LABEL_KEY+uint16_t uniffi_cyclops_sdk_checksum_func_fleet_label_key(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_FUNC_HEALTHY_POOL_DISPLAY_STATUS@@ -1214,6 +1251,24 @@ uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_renew_claim(void#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_WAIT_CLAIMuint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim(void+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_ACCESS_TOKEN+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_ACCESS_TOKEN+uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token(void++);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_CREATE_FLEET_CLAIMS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_CREATE_FLEET_CLAIMS+uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims(void++);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_LIST_FLEET_CLAIMS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_LIST_FLEET_CLAIMS+uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_PRESIGN_IMAGE_UPLOADS@@ -1316,6 +1371,12 @@ uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool(void#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_SERVICE_REQUESTuint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request(void+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_SERVICE_WEBSOCKET_URL+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_SERVICE_WEBSOCKET_URL+uint16_t uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CYCLOPSCLIENT_CREATE_SIGNED_SERVICE_URL@@ -1406,6 +1467,12 @@ uint16_t uniffi_cyclops_sdk_checksum_method_httpclient_execute(void#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CREATECLAIMREQUESTBUILDER_BUILDuint16_t uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build(void+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CREATECLAIMREQUESTBUILDER_LABELS+#define UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CREATECLAIMREQUESTBUILDER_LABELS+uint16_t uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CYCLOPS_SDK_CHECKSUM_METHOD_CREATECLAIMREQUESTBUILDER_NAMEdiff --git a/libs/fleet/sdk-bindings/swift/tests/TestAsyncClient.swift b/libs/fleet/sdk-bindings/swift/tests/TestAsyncClient.swiftindex dd536c0f2d..f3ae63b1ef 100644--- a/libs/fleet/sdk-bindings/swift/tests/TestAsyncClient.swift+++ b/libs/fleet/sdk-bindings/swift/tests/TestAsyncClient.swift@@ -34,7 +34,7 @@ private func serviceExpected(body: Data?, response: Data) -> Expected {Expected(method: "POST",url: "https://cyclops.invalid/api/svc/default/offline-sandbox-mcp/mcp",- headers: [HttpHeader(name: "authorization", value: "Bearer offline-token")],+ headers: [HttpHeader(name: "X-Cua-Fleet-Claim", value: "default"), HttpHeader(name: "authorization", value: "Bearer offline-token")],body: body,status: 202,response: responsediff --git a/libs/fleet/sdk-bindings/ts-uniffi-browser/cpp/fleet_sdk_module.rs b/libs/fleet/sdk-bindings/ts-uniffi-browser/cpp/fleet_sdk_module.rsindex f71b52103b..239d02d1b2 100644--- a/libs/fleet/sdk-bindings/ts-uniffi-browser/cpp/fleet_sdk_module.rs+++ b/libs/fleet/sdk-bindings/ts-uniffi-browser/cpp/fleet_sdk_module.rs@@ -63,6 +63,17 @@ extern "C" {) -> u64;fn uniffi_cyclops_sdk_fn_method_cyclopsclient_wait_claim(ptr: u64, claim: u::RustBuffer)-> u64;+ fn uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(ptr: u64, force_refresh: i8) -> u64;+ fn uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(+ ptr: u64,+ fleet_id: u::RustBuffer,+ requests: u::RustBuffer,+ ) -> u64;+ fn uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(+ ptr: u64,+ namespace: u::RustBuffer,+ fleet_id: u::RustBuffer,+ ) -> u64;fn uniffi_cyclops_sdk_fn_method_cyclopsclient_presign_image_uploads(ptr: u64,request: u::RustBuffer,@@ -129,6 +140,12 @@ extern "C" {path: u::RustBuffer,request: u::RustBuffer,) -> u64;+ fn uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(+ ptr: u64,+ sandbox: u::RustBuffer,+ service: u::RustBuffer,+ path: u::RustBuffer,+ ) -> u64;fn uniffi_cyclops_sdk_fn_method_cyclopsclient_create_signed_service_url(ptr: u64,request: u::RustBuffer,@@ -208,6 +225,11 @@ extern "C" {ptr: u64,status_: &mut u::RustCallStatus,) -> u::RustBuffer;+ fn uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(+ ptr: u64,+ value: u::RustBuffer,+ status_: &mut u::RustCallStatus,+ ) -> u64;fn uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name(ptr: u64,value: u::RustBuffer,@@ -462,6 +484,8 @@ extern "C" {value: u::RustBuffer,status_: &mut u::RustCallStatus,) -> u64;+ fn uniffi_cyclops_sdk_fn_func_fleet_label_key(status_: &mut u::RustCallStatus)+ -> u::RustBuffer;fn uniffi_cyclops_sdk_fn_func_healthy_pool_display_status(status_: &mut u::RustCallStatus,) -> u::RustBuffer;@@ -601,6 +625,7 @@ extern "C" {fn ffi_cyclops_sdk_rust_future_cancel_void(handle: u64);fn ffi_cyclops_sdk_rust_future_free_void(handle: u64);fn ffi_cyclops_sdk_rust_future_complete_void(handle: u64, status_: &mut u::RustCallStatus);+ fn uniffi_cyclops_sdk_checksum_func_fleet_label_key() -> u16;fn uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status() -> u16;fn uniffi_cyclops_sdk_checksum_func_pool_display_status() -> u16;fn uniffi_cyclops_sdk_checksum_func_removed_pool_display_status() -> u16;@@ -612,6 +637,9 @@ extern "C" {fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_renew_claim() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim() -> u16;+ fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token() -> u16;+ fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims() -> u16;+ fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_presign_image_uploads() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_upload_image_file() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image() -> u16;@@ -629,6 +657,7 @@ extern "C" {fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_reconcile_pool() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request() -> u16;+ fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_signed_service_url() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_signed_service_urls() -> u16;fn uniffi_cyclops_sdk_checksum_method_cyclopsclient_revoke_signed_service_url() -> u16;@@ -644,6 +673,7 @@ extern "C" {fn uniffi_cyclops_sdk_checksum_method_accesstokenprovider_get_access_token() -> u16;fn uniffi_cyclops_sdk_checksum_method_httpclient_execute() -> u16;fn uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build() -> u16;+ fn uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels() -> u16;fn uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name() -> u16;fn uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_pool() -> u16;fn uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_spec() -> u16;@@ -910,6 +940,43 @@ pub unsafe fn ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_wait_claim(.into_js()}#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(+ ptr: js::Handle,+ force_refresh: js::Int8,+) -> js::Handle {+ uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(+ u64::into_rust(ptr),+ i8::into_rust(force_refresh),+ )+ .into_js()+}+#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(+ ptr: js::Handle,+ fleet_id: js::ForeignBytes,+ requests: js::ForeignBytes,+) -> js::Handle {+ uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(+ u64::into_rust(ptr),+ u::RustBuffer::into_rust(fleet_id),+ u::RustBuffer::into_rust(requests),+ )+ .into_js()+}+#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(+ ptr: js::Handle,+ namespace: js::ForeignBytes,+ fleet_id: js::ForeignBytes,+) -> js::Handle {+ uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(+ u64::into_rust(ptr),+ u::RustBuffer::into_rust(namespace),+ u::RustBuffer::into_rust(fleet_id),+ )+ .into_js()+}+#[wasm_bindgen]pub unsafe fn ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_presign_image_uploads(ptr: js::Handle,request: js::ForeignBytes,@@ -1108,6 +1175,21 @@ pub unsafe fn ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_service_request(.into_js()}#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(+ ptr: js::Handle,+ sandbox: js::ForeignBytes,+ service: js::ForeignBytes,+ path: js::ForeignBytes,+) -> js::Handle {+ uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(+ u64::into_rust(ptr),+ u::RustBuffer::into_rust(sandbox),+ u::RustBuffer::into_rust(service),+ u::RustBuffer::into_rust(path),+ )+ .into_js()+}+#[wasm_bindgen]pub unsafe fn ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_create_signed_service_url(ptr: js::Handle,request: js::ForeignBytes,@@ -1369,6 +1451,23 @@ pub fn ubrn_uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build(value_.into_js()}#[wasm_bindgen]+pub fn ubrn_uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(+ ptr: js::Handle,+ value: js::ForeignBytes,+ f_status_: &mut js::RustCallStatus,+) -> js::Handle {+ let mut u_status_ = u::RustCallStatus::default();+ let value_ = unsafe {+ uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(+ u64::into_rust(ptr),+ u::RustBuffer::into_rust(value),+ &mut u_status_,+ )+ };+ f_status_.copy_from(u_status_);+ value_.into_js()+}+#[wasm_bindgen]pub fn ubrn_uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name(ptr: js::Handle,value: js::ForeignBytes,@@ -2259,6 +2358,15 @@ pub fn ubrn_uniffi_cyclops_sdk_fn_method_templatebuilder_spec(value_.into_js()}#[wasm_bindgen]+pub fn ubrn_uniffi_cyclops_sdk_fn_func_fleet_label_key(+ f_status_: &mut js::RustCallStatus,+) -> js::ForeignBytes {+ let mut u_status_ = u::RustCallStatus::default();+ let value_ = unsafe { uniffi_cyclops_sdk_fn_func_fleet_label_key(&mut u_status_) };+ f_status_.copy_from(u_status_);+ value_.into_js()+}+#[wasm_bindgen]pub fn ubrn_uniffi_cyclops_sdk_fn_func_healthy_pool_display_status(f_status_: &mut js::RustCallStatus,) -> js::ForeignBytes {@@ -2682,6 +2790,10 @@ pub fn ubrn_ffi_cyclops_sdk_rust_future_complete_void(f_status_.copy_from(u_status_);}#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_func_fleet_label_key() -> js::UInt16 {+ uniffi_cyclops_sdk_checksum_func_fleet_label_key().into_js()+}+#[wasm_bindgen]pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status() -> js::UInt16 {uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status().into_js()}@@ -2727,6 +2839,20 @@ pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim()uniffi_cyclops_sdk_checksum_method_cyclopsclient_wait_claim().into_js()}#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token() -> js::UInt16 {+ uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token().into_js()+}+#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims(+) -> js::UInt16 {+ uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims().into_js()+}+#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims() -> js::UInt16+{+ uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims().into_js()+}+#[wasm_bindgen]pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_presign_image_uploads() -> js::UInt16 {uniffi_cyclops_sdk_checksum_method_cyclopsclient_presign_image_uploads().into_js()@@ -2801,6 +2927,11 @@ pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_requuniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request().into_js()}#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url(+) -> js::UInt16 {+ uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url().into_js()+}+#[wasm_bindgen]pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_signed_service_url() -> js::UInt16 {uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_signed_service_url().into_js()@@ -2873,6 +3004,11 @@ pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build().into_js()}#[wasm_bindgen]+pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels(+) -> js::UInt16 {+ uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels().into_js()+}+#[wasm_bindgen]pub unsafe fn ubrn_uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name() -> js::UInt16{uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name().into_js()diff --git a/libs/fleet/sdk-bindings/ts-uniffi-browser/ts/fleet_sdk.ts b/libs/fleet/sdk-bindings/ts-uniffi-browser/ts/fleet_sdk.tsindex 007662dc81..51addc9f3b 100644--- a/libs/fleet/sdk-bindings/ts-uniffi-browser/ts/fleet_sdk.ts+++ b/libs/fleet/sdk-bindings/ts-uniffi-browser/ts/fleet_sdk.ts@@ -32,6 +32,26 @@ const uniffiIsDebug =// Public interface members begin here.+/**+ * The label key a fleet's claims share, for callers that filter or clean up+ * with raw Kubernetes tooling instead of `list_fleet_claims`.+ */+export function fleetLabelKey(): string {+ return ((__rb: Uint8Array) => {+ try {+ return FfiConverterString.lift(__rb);+ } finally {+ nativeModule().rustbuffer_free(__rb);+ }+ })(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().ubrn_uniffi_cyclops_sdk_fn_func_fleet_label_key(+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }+export function healthyPoolDisplayStatus(): PoolDisplayStatus {return ((__rb: Uint8Array) => {try {@@ -312,7 +332,13 @@ export type CreateClaimRequest = {* DNS-label validation); left unset, the client generates a random* `claim-<petname>` so concurrent leases and retries cannot collide.*/- name?: string+ name?: string,+ /**+ * Labels stamped onto the created claim's metadata verbatim. Grouping+ * helpers (for example fleet fan-out) rely on this to tag related claims+ * so they can be listed back by label within a namespace.+ */+ labels?: Map<string, string>}/**@@ -320,7 +346,8 @@ export type CreateClaimRequest = {*/export const CreateClaimRequest = (() => {const defaults = () => ({- name: undefined+ name: undefined,+ labels: undefined});const create = (() => {return uniffiCreateRecord<CreateClaimRequest, ReturnType<typeof defaults>>(defaults);@@ -339,18 +366,21 @@ const FfiConverterTypeCreateClaimRequest = (() => {return {pool: FfiConverterTypePool.read(from),spec: FfiConverterOptionalTypeClaimSpec.read(from),- name: FfiConverterOptionalString.read(from)+ name: FfiConverterOptionalString.read(from),+ labels: FfiConverterOptionalMapStringString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterTypePool.write(value.pool, into);FfiConverterOptionalTypeClaimSpec.write(value.spec, into);FfiConverterOptionalString.write(value.name, into);+ FfiConverterOptionalMapStringString.write(value.labels, into);}allocationSize(value: TypeName): number {return FfiConverterTypePool.allocationSize(value.pool) +FfiConverterOptionalTypeClaimSpec.allocationSize(value.spec) +- FfiConverterOptionalString.allocationSize(value.name);+ FfiConverterOptionalString.allocationSize(value.name) ++ FfiConverterOptionalMapStringString.allocationSize(value.labels);}};@@ -823,6 +853,99 @@ const FfiConverterTypeCyclopsTokenProviderConfiguration = (() => {return new FFIConverter();})();+/**+ * A fleet's identity plus the claims currently known to belong to it.+ */+export type FleetClaims = {+ fleetId: string,+ claims: Array<Claim>+}++/**+ * Generated factory for {@link FleetClaims} record objects.+ */+export const FleetClaims = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<FleetClaims, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<FleetClaims>,+ });+})();++const FfiConverterTypeFleetClaims = (() => {+ type TypeName = FleetClaims;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ fleetId: FfiConverterString.read(from),+ claims: FfiConverterSequenceTypeClaim.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.fleetId, into);+ FfiConverterSequenceTypeClaim.write(value.claims, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.fleetId) ++ FfiConverterSequenceTypeClaim.allocationSize(value.claims);++ }+ };+ return new FFIConverter();+})();++/**+ * One pool's share of a fleet: claim `replicas` sandboxes from the warm pool+ * named `pool`. On this platform the pool name is also its namespace.+ */+export type FleetPoolRequest = {+ pool: string,+ replicas: number+}++/**+ * Generated factory for {@link FleetPoolRequest} record objects.+ */+export const FleetPoolRequest = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<FleetPoolRequest, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<FleetPoolRequest>,+ });+})();++const FfiConverterTypeFleetPoolRequest = (() => {+ type TypeName = FleetPoolRequest;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ pool: FfiConverterString.read(from),+ replicas: FfiConverterUInt32.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.pool, into);+ FfiConverterUInt32.write(value.replicas, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.pool) ++ FfiConverterUInt32.allocationSize(value.replicas);++ }+ };+ return new FFIConverter();+})();+export type HttpHeader = {name: string,value: string@@ -1401,6 +1524,60 @@ const FfiConverterTypePoolDisplayStatus = (() => {return new FFIConverter();})();+/**+ * Where a native client opens its own WebSocket to a sandbox service through+ * the gateway's `/api/svc` proxy. `url` is the `ws(s)://` endpoint;+ * `auth_header_name`/`auth_header_value` carry the bearer the socket's HTTP+ * upgrade request must send. Deliberately not serde-serializable: the value+ * holds a live credential and must not be logged or persisted.+ */+export type ServiceStreamTarget = {+ url: string,+ authHeaderName: string,+ authHeaderValue: string+}++/**+ * Generated factory for {@link ServiceStreamTarget} record objects.+ */+export const ServiceStreamTarget = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<ServiceStreamTarget, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<ServiceStreamTarget>,+ });+})();++const FfiConverterTypeServiceStreamTarget = (() => {+ type TypeName = ServiceStreamTarget;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ url: FfiConverterString.read(from),+ authHeaderName: FfiConverterString.read(from),+ authHeaderValue: FfiConverterString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.url, into);+ FfiConverterString.write(value.authHeaderName, into);+ FfiConverterString.write(value.authHeaderValue, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.url) ++ FfiConverterString.allocationSize(value.authHeaderName) ++ FfiConverterString.allocationSize(value.authHeaderValue);++ }+ };+ return new FFIConverter();+})();+export type SignedServiceUrl = {id: string,namespace: string,@@ -2752,6 +2929,7 @@ const uniffiCallbackInterfaceAccessTokenProvider: { vtable: any; register: () =>export interface CreateClaimRequestBuilderLike {build() /*throws*/: CreateClaimRequest;+ labels(value: Map<string, string>): CreateClaimRequestBuilderLike;name(value: string): CreateClaimRequestBuilderLike;pool(value: Pool): CreateClaimRequestBuilderLike;spec(value: ClaimSpec): CreateClaimRequestBuilderLike;@@ -2802,6 +2980,18 @@ export class CreateClaimRequestBuilder extends UniffiAbstractObject implements C));}+ labels(value: Map<string, string>): CreateClaimRequestBuilderLike {+ return FfiConverterTypeCreateClaimRequestBuilder.lift(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().ubrn_uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(+ uniffiTypeCreateClaimRequestBuilderObjectFactory.clonePointer(this),+ FfiConverterMapStringString.lower(value, nativeModule().rustbuffer_alloc),+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }+name(value: string): CreateClaimRequestBuilderLike {return FfiConverterTypeCreateClaimRequestBuilder.lift(uniffiCaller.rustCall(/*caller:*/ (callStatus) => {@@ -3583,7 +3773,24 @@ const FfiConverterTypeCreateUserApiKeyRequestBuilder = new FfiConverterObject(unexport interface CyclopsClientLike {+/**+ * The bearer this client would send on its next authenticated request,+ * for callers that open their own connection to the gateway (for example+ * a native WebSocket). `force_refresh` bypasses any cached token; a+ * static access token is returned as-is. The value is a raw token — the+ * caller attaches it as `authorization: Bearer <token>`.+ */+ accessToken(forceRefresh: boolean, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<string>;createClaim(request: CreateClaimRequest, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Claim>;+/**+ * Fan out `create_claim` calls across the requested warm pools, tagging+ * every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ * back later. Duplicate pool entries are aggregated before any network+ * call. Claims are created sequentially; if one creation fails the error+ * is returned immediately and claims already created keep their fleet+ * label, so `list_fleet_claims` still finds them for retry or cleanup.+ */+ createFleetClaims(fleetId: string, requests: Array<FleetPoolRequest>, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<FleetClaims>;createImage(namespace: string, manifest: PreservedJsonLike, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<PreservedJsonLike>;createNamespace(name: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Namespace>;createPool(request: CreatePoolRequest, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Pool>;@@ -3602,6 +3809,13 @@ export interface CyclopsClientLike {getPool(name: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Pool>;getTemplate(namespace: string, name: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Template>;listClaims(namespace: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Array<Claim>>;+/**+ * The fleet's claims within one namespace: enumerate the namespace's+ * claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ * spans several pools spans that many namespaces (one pool per+ * namespace), so call this once per member pool.+ */+ listFleetClaims(namespace: string, fleetId: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<FleetClaims>;listImages(namespace: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Array<PreservedJsonLike>>;listNamespaces(asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Array<Namespace>>;listPools(namespace: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Array<Pool>>;@@ -3622,6 +3836,14 @@ export interface CyclopsClientLike {renewClaim(claim: Claim, shutdownTime: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Claim>;revokeSignedServiceUrl(signedServiceUrl: SignedServiceUrl, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<void>;serviceRequest(sandbox: Sandbox, service: string, path: string, request: HttpRequest, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<HttpResponse>;+/**+ * Where a native client opens its own WebSocket to a sandbox service:+ * the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ * returned `ws(s)://` URL plus the returned bearer header are all a+ * Rust or Swift caller needs to dial the socket directly.+ * `service_request` stays the path for unary requests.+ */+ serviceWebsocketUrl(sandbox: Sandbox, service: string, path: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<ServiceStreamTarget>;updatePool(pool: Pool, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Pool>;updateTemplate(template: Template, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Template>;/**@@ -3745,6 +3967,37 @@ private constructor(pointer: UniffiHandle) {+/**+ * The bearer this client would send on its next authenticated request,+ * for callers that open their own connection to the gateway (for example+ * a native WebSocket). `force_refresh` bypasses any cached token; a+ * static access token is returned as-is. The value is a raw token — the+ * caller attaches it as `authorization: Bearer <token>`.+ */+ async accessToken(forceRefresh: boolean, asyncOpts_?: { signal: AbortSignal }): Promise<string> /*throws*/ {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(+ uniffiTypeCyclopsClientObjectFactory.clonePointer(this),FfiConverterBool.lower(forceRefresh, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError)+ );+ }+async createClaim(request: CreateClaimRequest, asyncOpts_?: { signal: AbortSignal }): Promise<Claim> /*throws*/ {return await uniffiRustCallAsync(/*rustCaller:*/ uniffiCaller,@@ -3769,6 +4022,38 @@ private constructor(pointer: UniffiHandle) {);}+/**+ * Fan out `create_claim` calls across the requested warm pools, tagging+ * every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ * back later. Duplicate pool entries are aggregated before any network+ * call. Claims are created sequentially; if one creation fails the error+ * is returned immediately and claims already created keep their fleet+ * label, so `list_fleet_claims` still finds them for retry or cleanup.+ */+ async createFleetClaims(fleetId: string, requests: Array<FleetPoolRequest>, asyncOpts_?: { signal: AbortSignal }): Promise<FleetClaims> /*throws*/ {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(+ uniffiTypeCyclopsClientObjectFactory.clonePointer(this),FfiConverterString.lower(fleetId, nativeModule().rustbuffer_alloc),FfiConverterSequenceTypeFleetPoolRequest.lower(requests, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterTypeFleetClaims.lift.bind(FfiConverterTypeFleetClaims),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError)+ );+ }+async createImage(namespace: string, manifest: PreservedJsonLike, asyncOpts_?: { signal: AbortSignal }): Promise<PreservedJsonLike> /*throws*/ {return await uniffiRustCallAsync(/*rustCaller:*/ uniffiCaller,@@ -4171,6 +4456,36 @@ private constructor(pointer: UniffiHandle) {);}+/**+ * The fleet's claims within one namespace: enumerate the namespace's+ * claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ * spans several pools spans that many namespaces (one pool per+ * namespace), so call this once per member pool.+ */+ async listFleetClaims(namespace: string, fleetId: string, asyncOpts_?: { signal: AbortSignal }): Promise<FleetClaims> /*throws*/ {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(+ uniffiTypeCyclopsClientObjectFactory.clonePointer(this),FfiConverterString.lower(namespace, nativeModule().rustbuffer_alloc),FfiConverterString.lower(fleetId, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterTypeFleetClaims.lift.bind(FfiConverterTypeFleetClaims),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError)+ );+ }+async listImages(namespace: string, asyncOpts_?: { signal: AbortSignal }): Promise<Array<PreservedJsonLike>> /*throws*/ {return await uniffiRustCallAsync(/*rustCaller:*/ uniffiCaller,@@ -4462,6 +4777,37 @@ private constructor(pointer: UniffiHandle) {);}+/**+ * Where a native client opens its own WebSocket to a sandbox service:+ * the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ * returned `ws(s)://` URL plus the returned bearer header are all a+ * Rust or Swift caller needs to dial the socket directly.+ * `service_request` stays the path for unary requests.+ */+ async serviceWebsocketUrl(sandbox: Sandbox, service: string, path: string, asyncOpts_?: { signal: AbortSignal }): Promise<ServiceStreamTarget> /*throws*/ {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().ubrn_uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(+ uniffiTypeCyclopsClientObjectFactory.clonePointer(this),FfiConverterTypeSandbox.lower(sandbox, nativeModule().rustbuffer_alloc),FfiConverterString.lower(service, nativeModule().rustbuffer_alloc),FfiConverterString.lower(path, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ubrn_ffi_cyclops_sdk_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterTypeServiceStreamTarget.lift.bind(FfiConverterTypeServiceStreamTarget),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError)+ );+ }+async updatePool(pool: Pool, asyncOpts_?: { signal: AbortSignal }): Promise<Pool> /*throws*/ {return await uniffiRustCallAsync(/*rustCaller:*/ uniffiCaller,@@ -5454,6 +5800,9 @@ const FfiConverterOptionalTypeClaimSpec = new FfiConverterOptional(FfiConverterT// FfiConverter for Array<string>const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);+// FfiConverter for Array<Claim>+const FfiConverterSequenceTypeClaim = new FfiConverterArray(FfiConverterTypeClaim);+// FfiConverter for Array<HttpHeader>const FfiConverterSequenceTypeHttpHeader = new FfiConverterArray(FfiConverterTypeHttpHeader);@@ -5472,8 +5821,8 @@ const FfiConverterSequenceTypeImageUploadFileRequest = new FfiConverterArray(Ffi// FfiConverter for Array<ImageUploadInstruction>const FfiConverterSequenceTypeImageUploadInstruction = new FfiConverterArray(FfiConverterTypeImageUploadInstruction);-// FfiConverter for Array<Claim>-const FfiConverterSequenceTypeClaim = new FfiConverterArray(FfiConverterTypeClaim);+// FfiConverter for Array<FleetPoolRequest>+const FfiConverterSequenceTypeFleetPoolRequest = new FfiConverterArray(FfiConverterTypeFleetPoolRequest);// FfiConverter for Array<PreservedJsonLike>const FfiConverterSequenceTypePreservedJson = new FfiConverterArray(FfiConverterTypePreservedJson);@@ -5512,6 +5861,9 @@ function uniffiEnsureInitialized() {if (bindingsContractVersion !== scaffoldingContractVersion) {throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);}+ if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_func_fleet_label_key() !== 5219) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_func_fleet_label_key");+ }if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status() !== 3094) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status");}@@ -5536,6 +5888,9 @@ function uniffiEnsureInitialized() {if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build() !== 10518) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build");}+ if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels() !== 9576) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels");+ }if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name() !== 19762) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name");}@@ -5623,9 +5978,15 @@ function uniffiEnsureInitialized() {if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_native_http_client() !== 49301) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_native_http_client");}+ if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token() !== 4889) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token");+ }if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim() !== 23330) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim");}+ if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims() !== 11135) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims");+ }if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image() !== 51053) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image");}@@ -5680,6 +6041,9 @@ function uniffiEnsureInitialized() {if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims() !== 7802) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims");}+ if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims() !== 14544) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims");+ }if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images() !== 31215) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images");}@@ -5716,6 +6080,9 @@ function uniffiEnsureInitialized() {if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request() !== 46699) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request");}+ if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url() !== 47537) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url");+ }if (nativeModule().ubrn_uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool() !== 17695) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool");}@@ -5823,6 +6190,8 @@ export default Object.freeze({FfiConverterTypeCyclopsCredentials,FfiConverterTypeCyclopsTokenProviderConfiguration,FfiConverterTypeCyclopsTokenProviderConfigurationBuilder,+ FfiConverterTypeFleetClaims,+ FfiConverterTypeFleetPoolRequest,FfiConverterTypeHttpClient,FfiConverterTypeHttpError,FfiConverterTypeHttpHeader,@@ -5843,6 +6212,7 @@ export default Object.freeze({FfiConverterTypeSandbox,FfiConverterTypeSdkBuildError,FfiConverterTypeSdkError,+ FfiConverterTypeServiceStreamTarget,FfiConverterTypeSignedServiceUrl,FfiConverterTypeTemplate,FfiConverterTypeTemplateBuilder,diff --git a/libs/fleet/sdk-bindings/ts-uniffi/fleet_sdk-ffi.ts b/libs/fleet/sdk-bindings/ts-uniffi/fleet_sdk-ffi.tsindex 2e8905caf4..0eb5f13b9a 100644--- a/libs/fleet/sdk-bindings/ts-uniffi/fleet_sdk-ffi.ts+++ b/libs/fleet/sdk-bindings/ts-uniffi/fleet_sdk-ffi.ts@@ -393,6 +393,11 @@ const DEFINITIONS = {ret: FfiType.Void,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_fn_func_fleet_label_key": {+ args: [],+ ret: FfiType.RustBuffer,+ hasRustCallStatus: true,+ },"uniffi_cyclops_sdk_fn_func_healthy_pool_display_status": {args: [],ret: FfiType.RustBuffer,@@ -433,6 +438,11 @@ const DEFINITIONS = {ret: FfiType.RustBuffer,hasRustCallStatus: true,},+ "uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels": {+ args: [FfiType.Handle, FfiType.RustBuffer],+ ret: FfiType.Handle,+ hasRustCallStatus: true,+ },"uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name": {args: [FfiType.Handle, FfiType.RustBuffer],ret: FfiType.Handle,@@ -578,11 +588,21 @@ const DEFINITIONS = {ret: FfiType.Handle,hasRustCallStatus: true,},+ "uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token": {+ args: [FfiType.Handle, FfiType.Int8],+ ret: FfiType.Handle,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_fn_method_cyclopsclient_create_claim": {args: [FfiType.Handle, FfiType.RustBuffer],ret: FfiType.Handle,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims": {+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],+ ret: FfiType.Handle,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_fn_method_cyclopsclient_create_image": {args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Handle],ret: FfiType.Handle,@@ -673,6 +693,11 @@ const DEFINITIONS = {ret: FfiType.Handle,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims": {+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],+ ret: FfiType.Handle,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_fn_method_cyclopsclient_list_images": {args: [FfiType.Handle, FfiType.RustBuffer],ret: FfiType.Handle,@@ -733,6 +758,11 @@ const DEFINITIONS = {ret: FfiType.Handle,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url": {+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],+ ret: FfiType.Handle,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_fn_method_cyclopsclient_update_pool": {args: [FfiType.Handle, FfiType.RustBuffer],ret: FfiType.Handle,@@ -873,6 +903,11 @@ const DEFINITIONS = {ret: FfiType.UInt32,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_checksum_func_fleet_label_key": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status": {args: [],ret: FfiType.UInt16,@@ -913,6 +948,11 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name": {args: [],ret: FfiType.UInt16,@@ -1058,11 +1098,21 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim": {args: [],ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image": {args: [],ret: FfiType.UInt16,@@ -1153,6 +1203,11 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images": {args: [],ret: FfiType.UInt16,@@ -1213,6 +1268,11 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool": {args: [],ret: FfiType.UInt16,@@ -1495,6 +1555,7 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_fn_free_templatebuilder(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;uniffi_cyclops_sdk_fn_init_callback_vtable_accesstokenprovider(vtable: UniffiVTableCallbackInterfaceFleetSdkAccessTokenProvider): void;uniffi_cyclops_sdk_fn_init_callback_vtable_httpclient(vtable: UniffiVTableCallbackInterfaceFleetSdkHttpClient): void;+ uniffi_cyclops_sdk_fn_func_fleet_label_key(uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cyclops_sdk_fn_func_healthy_pool_display_status(uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cyclops_sdk_fn_func_pool_display_status(pool: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cyclops_sdk_fn_func_removed_pool_display_status(uniffi_out_err: UniffiRustCallStatus): Uint8Array;@@ -1503,6 +1564,7 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_fn_method_accesstokenprovider_get_access_token(uniffiSelf: bigint, forceRefresh: number): bigint;uniffi_cyclops_sdk_fn_constructor_createclaimrequestbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_build(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;+ uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_labels(uniffiSelf: bigint, value: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_name(uniffiSelf: bigint, value: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_pool(uniffiSelf: bigint, value: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;uniffi_cyclops_sdk_fn_method_createclaimrequestbuilder_spec(uniffiSelf: bigint, value: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;@@ -1532,7 +1594,9 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_fn_constructor_cyclopsclient_connect_with_access_token_provider(configuration: Uint8Array, tokenProvider: bigint, httpClient: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;uniffi_cyclops_sdk_fn_constructor_cyclopsclient_connect_with_access_token_provider_and_native_http_client(configuration: Uint8Array, tokenProvider: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;uniffi_cyclops_sdk_fn_constructor_cyclopsclient_connect_with_native_http_client(configuration: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;+ uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(uniffiSelf: bigint, forceRefresh: number): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_create_claim(uniffiSelf: bigint, request: Uint8Array): bigint;+ uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(uniffiSelf: bigint, fleetId: Uint8Array, requests: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_create_image(uniffiSelf: bigint, namespace: Uint8Array, manifest: bigint): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_create_namespace(uniffiSelf: bigint, name: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_create_pool(uniffiSelf: bigint, request: Uint8Array): bigint;@@ -1551,6 +1615,7 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_fn_method_cyclopsclient_get_pool(uniffiSelf: bigint, name: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_get_template(uniffiSelf: bigint, namespace: Uint8Array, name: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_list_claims(uniffiSelf: bigint, namespace: Uint8Array): bigint;+ uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(uniffiSelf: bigint, namespace: Uint8Array, fleetId: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_list_images(uniffiSelf: bigint, namespace: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_list_namespaces(uniffiSelf: bigint): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_list_pools(uniffiSelf: bigint, namespace: Uint8Array): bigint;@@ -1563,6 +1628,7 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_fn_method_cyclopsclient_renew_claim(uniffiSelf: bigint, claim: Uint8Array, shutdownTime: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_revoke_signed_service_url(uniffiSelf: bigint, signedServiceUrl: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_service_request(uniffiSelf: bigint, sandbox: Uint8Array, service: Uint8Array, path: Uint8Array, request: Uint8Array): bigint;+ uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(uniffiSelf: bigint, sandbox: Uint8Array, service: Uint8Array, path: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_update_pool(uniffiSelf: bigint, pool: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_update_template(uniffiSelf: bigint, template: Uint8Array): bigint;uniffi_cyclops_sdk_fn_method_cyclopsclient_upload_image_file(uniffiSelf: bigint, namespace: Uint8Array, name: Uint8Array, contents: Uint8Array): bigint;@@ -1591,6 +1657,7 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_fn_method_templatebuilder_metadata(uniffiSelf: bigint, value: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;uniffi_cyclops_sdk_fn_method_templatebuilder_spec(uniffiSelf: bigint, value: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;ffi_cyclops_sdk_uniffi_contract_version(): number;+ uniffi_cyclops_sdk_checksum_func_fleet_label_key(): number;uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status(): number;uniffi_cyclops_sdk_checksum_func_pool_display_status(): number;uniffi_cyclops_sdk_checksum_func_removed_pool_display_status(): number;@@ -1599,6 +1666,7 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_checksum_method_accesstokenprovider_get_access_token(): number;uniffi_cyclops_sdk_checksum_constructor_createclaimrequestbuilder_new(): number;uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_build(): number;+ uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_labels(): number;uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_name(): number;uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_pool(): number;uniffi_cyclops_sdk_checksum_method_createclaimrequestbuilder_spec(): number;@@ -1628,7 +1696,9 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_access_token_provider(): number;uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_access_token_provider_and_native_http_client(): number;uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_native_http_client(): number;+ uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim(): number;+ uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_namespace(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_pool(): number;@@ -1647,6 +1717,7 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_checksum_method_cyclopsclient_get_pool(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_get_template(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims(): number;+ uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_namespaces(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_pools(): number;@@ -1659,6 +1730,7 @@ interface NativeModuleInterface {uniffi_cyclops_sdk_checksum_method_cyclopsclient_renew_claim(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_revoke_signed_service_url(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request(): number;+ uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_template(): number;uniffi_cyclops_sdk_checksum_method_cyclopsclient_upload_image_file(): number;diff --git a/libs/fleet/sdk-bindings/ts-uniffi/fleet_sdk.ts b/libs/fleet/sdk-bindings/ts-uniffi/fleet_sdk.tsindex 44cd23d2cb..36b190df65 100644--- a/libs/fleet/sdk-bindings/ts-uniffi/fleet_sdk.ts+++ b/libs/fleet/sdk-bindings/ts-uniffi/fleet_sdk.ts@@ -23,6 +23,26 @@ const uniffiIsDebug =// Public interface members begin here.+/**+ * The label key a fleet's claims share, for callers that filter or clean up+ * with raw Kubernetes tooling instead of `list_fleet_claims`.+ */+export function fleetLabelKey(): string {+ return ((__rb: Uint8Array) => {+ try {+ return FfiConverterString.lift(__rb);+ } finally {+ nativeModule().rustbuffer_free(__rb);+ }+ })(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().uniffi_cyclops_sdk_fn_func_fleet_label_key(+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }+export function healthyPoolDisplayStatus(): PoolDisplayStatus {return ((__rb: Uint8Array) => {try {@@ -303,7 +323,13 @@ export type CreateClaimRequest = {* DNS-label validation); left unset, the client generates a random* `claim-<petname>` so concurrent leases and retries cannot collide.*/- name?: string+ name?: string,+ /**+ * Labels stamped onto the created claim's metadata verbatim. Grouping+ * helpers (for example fleet fan-out) rely on this to tag related claims+ * so they can be listed back by label within a namespace.+ */+ labels?: Map<string, string>}/**@@ -311,7 +337,8 @@ export type CreateClaimRequest = {*/export const CreateClaimRequest = (() => {const defaults = () => ({- name: undefined+ name: undefined,+ labels: undefined});const create = (() => {return uniffiCreateRecord<CreateClaimRequest, ReturnType<typeof defaults>>(defaults);@@ -330,18 +357,21 @@ const FfiConverterTypeCreateClaimRequest = (() => {return {pool: FfiConverterTypePool.read(from),spec: FfiConverterOptionalTypeClaimSpec.read(from),- name: FfiConverterOptionalString.read(from)+ name: FfiConverterOptionalString.read(from),+ labels: FfiConverterOptionalMapStringString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterTypePool.write(value.pool, into);FfiConverterOptionalTypeClaimSpec.write(value.spec, into);FfiConverterOptionalString.write(value.name, into);+ FfiConverterOptionalMapStringString.write(value.labels, into);}allocationSize(value: TypeName): number {return FfiConverterTypePool.allocationSize(value.pool) +FfiConverterOptionalTypeClaimSpec.allocationSize(value.spec) +- FfiConverterOptionalString.allocationSize(value.name);+ FfiConverterOptionalString.allocationSize(value.name) ++ FfiConverterOptionalMapStringString.allocationSize(value.labels);}};@@ -814,6 +844,99 @@ const FfiConverterTypeCyclopsTokenProviderConfiguration = (() => {return new FFIConverter();})();+/**+ * A fleet's identity plus the claims currently known to belong to it.+ */+export type FleetClaims = {+ fleetId: string,+ claims: Array<Claim>+}++/**+ * Generated factory for {@link FleetClaims} record objects.+ */+export const FleetClaims = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<FleetClaims, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<FleetClaims>,+ });+})();++const FfiConverterTypeFleetClaims = (() => {+ type TypeName = FleetClaims;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ fleetId: FfiConverterString.read(from),+ claims: FfiConverterSequenceTypeClaim.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.fleetId, into);+ FfiConverterSequenceTypeClaim.write(value.claims, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.fleetId) ++ FfiConverterSequenceTypeClaim.allocationSize(value.claims);++ }+ };+ return new FFIConverter();+})();++/**+ * One pool's share of a fleet: claim `replicas` sandboxes from the warm pool+ * named `pool`. On this platform the pool name is also its namespace.+ */+export type FleetPoolRequest = {+ pool: string,+ replicas: number+}++/**+ * Generated factory for {@link FleetPoolRequest} record objects.+ */+export const FleetPoolRequest = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<FleetPoolRequest, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<FleetPoolRequest>,+ });+})();++const FfiConverterTypeFleetPoolRequest = (() => {+ type TypeName = FleetPoolRequest;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ pool: FfiConverterString.read(from),+ replicas: FfiConverterUInt32.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.pool, into);+ FfiConverterUInt32.write(value.replicas, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.pool) ++ FfiConverterUInt32.allocationSize(value.replicas);++ }+ };+ return new FFIConverter();+})();+export type HttpHeader = {name: string,value: string@@ -1392,6 +1515,60 @@ const FfiConverterTypePoolDisplayStatus = (() => {return new FFIConverter();})();+/**+ * Where a native client opens its own WebSocket to a sandbox service through+ * the gateway's `/api/svc` proxy. `url` is the `ws(s)://` endpoint;+ * `auth_header_name`/`auth_header_value` carry the bearer the socket's HTTP+ * upgrade request must send. Deliberately not serde-serializable: the value+ * holds a live credential and must not be logged or persisted.+ */+export type ServiceStreamTarget = {+ url: string,+ authHeaderName: string,+ authHeaderValue: string+}++/**+ * Generated factory for {@link ServiceStreamTarget} record objects.+ */+export const ServiceStreamTarget = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<ServiceStreamTarget, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<ServiceStreamTarget>,+ });+})();++const FfiConverterTypeServiceStreamTarget = (() => {+ type TypeName = ServiceStreamTarget;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ url: FfiConverterString.read(from),+ authHeaderName: FfiConverterString.read(from),+ authHeaderValue: FfiConverterString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.url, into);+ FfiConverterString.write(value.authHeaderName, into);+ FfiConverterString.write(value.authHeaderValue, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.url) ++ FfiConverterString.allocationSize(value.authHeaderName) ++ FfiConverterString.allocationSize(value.authHeaderValue);++ }+ };+ return new FFIConverter();+})();+export type SignedServiceUrl = {id: string,namespace: string,@@ -2750,7 +2927,24 @@ const uniffiCallbackInterfaceAccessTokenProvider: { vtable: any; register: () =>export interface CyclopsClientLike {+/**+ * The bearer this client would send on its next authenticated request,+ * for callers that open their own connection to the gateway (for example+ * a native WebSocket). `force_refresh` bypasses any cached token; a+ * static access token is returned as-is. The value is a raw token — the+ * caller attaches it as `authorization: Bearer <token>`.+ */+ accessToken(forceRefresh: boolean, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<string>;createClaim(request: CreateClaimRequest, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Claim>;+/**+ * Fan out `create_claim` calls across the requested warm pools, tagging+ * every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ * back later. Duplicate pool entries are aggregated before any network+ * call. Claims are created sequentially; if one creation fails the error+ * is returned immediately and claims already created keep their fleet+ * label, so `list_fleet_claims` still finds them for retry or cleanup.+ */+ createFleetClaims(fleetId: string, requests: Array<FleetPoolRequest>, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<FleetClaims>;createImage(namespace: string, manifest: PreservedJsonLike, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<PreservedJsonLike>;createNamespace(name: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Namespace>;createPool(request: CreatePoolRequest, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Pool>;@@ -2769,6 +2963,13 @@ export interface CyclopsClientLike {getPool(name: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Pool>;getTemplate(namespace: string, name: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Template>;listClaims(namespace: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Array<Claim>>;+/**+ * The fleet's claims within one namespace: enumerate the namespace's+ * claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ * spans several pools spans that many namespaces (one pool per+ * namespace), so call this once per member pool.+ */+ listFleetClaims(namespace: string, fleetId: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<FleetClaims>;listImages(namespace: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Array<PreservedJsonLike>>;listNamespaces(asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Array<Namespace>>;listPools(namespace: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Array<Pool>>;@@ -2789,6 +2990,14 @@ export interface CyclopsClientLike {renewClaim(claim: Claim, shutdownTime: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Claim>;revokeSignedServiceUrl(signedServiceUrl: SignedServiceUrl, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<void>;serviceRequest(sandbox: Sandbox, service: string, path: string, request: HttpRequest, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<HttpResponse>;+/**+ * Where a native client opens its own WebSocket to a sandbox service:+ * the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ * returned `ws(s)://` URL plus the returned bearer header are all a+ * Rust or Swift caller needs to dial the socket directly.+ * `service_request` stays the path for unary requests.+ */+ serviceWebsocketUrl(sandbox: Sandbox, service: string, path: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<ServiceStreamTarget>;updatePool(pool: Pool, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Pool>;updateTemplate(template: Template, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<Template>;/**@@ -2912,6 +3121,45 @@ private constructor(pointer: UniffiHandle) {+/**+ * The bearer this client would send on its next authenticated request,+ * for callers that open their own connection to the gateway (for example+ * a native WebSocket). `force_refresh` bypasses any cached token; a+ * static access token is returned as-is. The value is a raw token — the+ * caller attaches it as `authorization: Bearer <token>`.+ */+ async accessToken(forceRefresh: boolean, asyncOpts_?: { signal: AbortSignal }): Promise<string> /*throws*/ {+ const __stack = uniffiIsDebug ? new Error().stack : undefined;+ try {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().uniffi_cyclops_sdk_fn_method_cyclopsclient_access_token(+ uniffiTypeCyclopsClientObjectFactory.clonePointer(this),FfiConverterBool.lower(forceRefresh, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError)+ );+ } catch (__error: any) {+ if (uniffiIsDebug && __error instanceof Error) {+ __error.stack = __stack;+ }+ throw __error;+ }+ }+async createClaim(request: CreateClaimRequest, asyncOpts_?: { signal: AbortSignal }): Promise<Claim> /*throws*/ {const __stack = uniffiIsDebug ? new Error().stack : undefined;try {@@ -2944,6 +3192,46 @@ private constructor(pointer: UniffiHandle) {}}+/**+ * Fan out `create_claim` calls across the requested warm pools, tagging+ * every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ * back later. Duplicate pool entries are aggregated before any network+ * call. Claims are created sequentially; if one creation fails the error+ * is returned immediately and claims already created keep their fleet+ * label, so `list_fleet_claims` still finds them for retry or cleanup.+ */+ async createFleetClaims(fleetId: string, requests: Array<FleetPoolRequest>, asyncOpts_?: { signal: AbortSignal }): Promise<FleetClaims> /*throws*/ {+ const __stack = uniffiIsDebug ? new Error().stack : undefined;+ try {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().uniffi_cyclops_sdk_fn_method_cyclopsclient_create_fleet_claims(+ uniffiTypeCyclopsClientObjectFactory.clonePointer(this),FfiConverterString.lower(fleetId, nativeModule().rustbuffer_alloc),FfiConverterSequenceTypeFleetPoolRequest.lower(requests, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterTypeFleetClaims.lift.bind(FfiConverterTypeFleetClaims),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError)+ );+ } catch (__error: any) {+ if (uniffiIsDebug && __error instanceof Error) {+ __error.stack = __stack;+ }+ throw __error;+ }+ }+async createImage(namespace: string, manifest: PreservedJsonLike, asyncOpts_?: { signal: AbortSignal }): Promise<PreservedJsonLike> /*throws*/ {const __stack = uniffiIsDebug ? new Error().stack : undefined;try {@@ -3490,6 +3778,44 @@ private constructor(pointer: UniffiHandle) {}}+/**+ * The fleet's claims within one namespace: enumerate the namespace's+ * claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ * spans several pools spans that many namespaces (one pool per+ * namespace), so call this once per member pool.+ */+ async listFleetClaims(namespace: string, fleetId: string, asyncOpts_?: { signal: AbortSignal }): Promise<FleetClaims> /*throws*/ {+ const __stack = uniffiIsDebug ? new Error().stack : undefined;+ try {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().uniffi_cyclops_sdk_fn_method_cyclopsclient_list_fleet_claims(+ uniffiTypeCyclopsClientObjectFactory.clonePointer(this),FfiConverterString.lower(namespace, nativeModule().rustbuffer_alloc),FfiConverterString.lower(fleetId, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterTypeFleetClaims.lift.bind(FfiConverterTypeFleetClaims),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError)+ );+ } catch (__error: any) {+ if (uniffiIsDebug && __error instanceof Error) {+ __error.stack = __stack;+ }+ throw __error;+ }+ }+async listImages(namespace: string, asyncOpts_?: { signal: AbortSignal }): Promise<Array<PreservedJsonLike>> /*throws*/ {const __stack = uniffiIsDebug ? new Error().stack : undefined;try {@@ -3877,6 +4203,45 @@ private constructor(pointer: UniffiHandle) {}}+/**+ * Where a native client opens its own WebSocket to a sandbox service:+ * the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ * returned `ws(s)://` URL plus the returned bearer header are all a+ * Rust or Swift caller needs to dial the socket directly.+ * `service_request` stays the path for unary requests.+ */+ async serviceWebsocketUrl(sandbox: Sandbox, service: string, path: string, asyncOpts_?: { signal: AbortSignal }): Promise<ServiceStreamTarget> /*throws*/ {+ const __stack = uniffiIsDebug ? new Error().stack : undefined;+ try {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().uniffi_cyclops_sdk_fn_method_cyclopsclient_service_websocket_url(+ uniffiTypeCyclopsClientObjectFactory.clonePointer(this),FfiConverterTypeSandbox.lower(sandbox, nativeModule().rustbuffer_alloc),FfiConverterString.lower(service, nativeModule().rustbuffer_alloc),FfiConverterString.lower(path, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ffi_cyclops_sdk_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterTypeServiceStreamTarget.lift.bind(FfiConverterTypeServiceStreamTarget),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError)+ );+ } catch (__error: any) {+ if (uniffiIsDebug && __error instanceof Error) {+ __error.stack = __stack;+ }+ throw __error;+ }+ }+async updatePool(pool: Pool, asyncOpts_?: { signal: AbortSignal }): Promise<Pool> /*throws*/ {const __stack = uniffiIsDebug ? new Error().stack : undefined;try {@@ -4323,6 +4688,9 @@ const FfiConverterOptionalTypeClaimSpec = new FfiConverterOptional(FfiConverterT// FfiConverter for Array<string>const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);+// FfiConverter for Array<Claim>+const FfiConverterSequenceTypeClaim = new FfiConverterArray(FfiConverterTypeClaim);+// FfiConverter for Array<HttpHeader>const FfiConverterSequenceTypeHttpHeader = new FfiConverterArray(FfiConverterTypeHttpHeader);@@ -4341,8 +4709,8 @@ const FfiConverterSequenceTypeImageUploadFileRequest = new FfiConverterArray(Ffi// FfiConverter for Array<ImageUploadInstruction>const FfiConverterSequenceTypeImageUploadInstruction = new FfiConverterArray(FfiConverterTypeImageUploadInstruction);-// FfiConverter for Array<Claim>-const FfiConverterSequenceTypeClaim = new FfiConverterArray(FfiConverterTypeClaim);+// FfiConverter for Array<FleetPoolRequest>+const FfiConverterSequenceTypeFleetPoolRequest = new FfiConverterArray(FfiConverterTypeFleetPoolRequest);// FfiConverter for Array<PreservedJsonLike>const FfiConverterSequenceTypePreservedJson = new FfiConverterArray(FfiConverterTypePreservedJson);@@ -4381,6 +4749,9 @@ function uniffiEnsureInitialized() {if (bindingsContractVersion !== scaffoldingContractVersion) {throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);}+ if (nativeModule().uniffi_cyclops_sdk_checksum_func_fleet_label_key() !== 5219) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_func_fleet_label_key");+ }if (nativeModule().uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status() !== 3094) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_func_healthy_pool_display_status");}@@ -4420,9 +4791,15 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_native_http_client() !== 49301) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_constructor_cyclopsclient_connect_with_native_http_client");}+ if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token() !== 4889) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_access_token");+ }if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim() !== 23330) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_claim");}+ if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims() !== 11135) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_fleet_claims");+ }if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image() !== 51053) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_create_image");}@@ -4477,6 +4854,9 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims() !== 7802) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_claims");}+ if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims() !== 14544) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_fleet_claims");+ }if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images() !== 31215) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_list_images");}@@ -4513,6 +4893,9 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request() !== 46699) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_request");}+ if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url() !== 47537) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_service_websocket_url");+ }if (nativeModule().uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool() !== 17695) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_checksum_method_cyclopsclient_update_pool");}@@ -4551,6 +4934,8 @@ export default Object.freeze({FfiConverterTypeCyclopsConfiguration,FfiConverterTypeCyclopsCredentials,FfiConverterTypeCyclopsTokenProviderConfiguration,+ FfiConverterTypeFleetClaims,+ FfiConverterTypeFleetPoolRequest,FfiConverterTypeHttpClient,FfiConverterTypeHttpError,FfiConverterTypeHttpHeader,@@ -4570,6 +4955,7 @@ export default Object.freeze({FfiConverterTypeSandbox,FfiConverterTypeSdkBuildError,FfiConverterTypeSdkError,+ FfiConverterTypeServiceStreamTarget,FfiConverterTypeSignedServiceUrl,FfiConverterTypeTemplate,FfiConverterTypeUserApiKey,diff --git a/libs/fleet/sdk/src/claims.rs b/libs/fleet/sdk/src/claims.rsindex 0d8f4307a9..15c66865a7 100644--- a/libs/fleet/sdk/src/claims.rs+++ b/libs/fleet/sdk/src/claims.rs@@ -69,7 +69,7 @@ impl CyclopsClient {metadata: ResourceMetadata {namespace: pool.metadata.namespace.clone(),name,- labels: None,+ labels: request.labels.filter(|labels| !labels.is_empty()),creation_timestamp: None,},spec,diff --git a/libs/fleet/sdk/src/client.rs b/libs/fleet/sdk/src/client.rsindex f92d691536..1e105a8312 100644--- a/libs/fleet/sdk/src/client.rs+++ b/libs/fleet/sdk/src/client.rs@@ -195,6 +195,15 @@ impl CyclopsClient {})}}++ /// The bearer this client would send on its next authenticated request,+ /// for callers that open their own connection to the gateway (for example+ /// a native WebSocket). `force_refresh` bypasses any cached token; a+ /// static access token is returned as-is. The value is a raw token — the+ /// caller attaches it as `authorization: Bearer <token>`.+ pub async fn access_token(self: Arc<Self>, force_refresh: bool) -> Result<String, SdkError> {+ self.transport.bearer_token(force_refresh).await+ }}impl CyclopsClient {@@ -253,6 +262,10 @@ impl CyclopsClient {NamespaceLifecycleGuard {}}+ pub(crate) async fn bearer_token(&self, force_refresh: bool) -> Result<String, SdkError> {+ self.transport.bearer_token(force_refresh).await+ }+pub(crate) async fn execute_authenticated_service(&self,request: HttpRequest,diff --git a/libs/fleet/sdk/src/fleets.rs b/libs/fleet/sdk/src/fleets.rsnew file mode 100644index 0000000000..960f414bcb--- /dev/null+++ b/libs/fleet/sdk/src/fleets.rs@@ -0,0 +1,303 @@+//! Client-side fleet grouping over per-pool claims.+//!+//! The platform has no fleet-of-N object: each namespace holds exactly one+//! warm pool (namespace == pool name) and there is no cluster-wide claim+//! list. A "fleet" is therefore purely a shared label — `cua.ai/fleet=<id>` —+//! stamped on every claim created for the group, and membership is recovered+//! by listing a namespace's claims and filtering on that label. No CRD, no+//! server-side state.++use crate::{Claim, CreateClaimRequest, CyclopsClient, SdkError, routes};+use std::{collections::HashMap, sync::Arc};++/// The label key that groups a fleet's claims. Guest and app code that needs+/// to correlate sandboxes to a fleet must use this exact key.+pub const FLEET_LABEL_KEY: &str = "cua.ai/fleet";++/// Total claims a single fan-out may create, across all requested pools.+/// Guards against a typo'd replica count turning into an unbounded burst of+/// sequential claim creations.+pub const MAX_FLEET_CLAIMS: u32 = 256;++/// One pool's share of a fleet: claim `replicas` sandboxes from the warm pool+/// named `pool`. On this platform the pool name is also its namespace.+#[derive(Clone, Debug, PartialEq, Eq, uniffi::Record)]+pub struct FleetPoolRequest {+ pub pool: String,+ pub replicas: u32,+}++/// A fleet's identity plus the claims currently known to belong to it.+#[derive(Clone, Debug, PartialEq, uniffi::Record)]+pub struct FleetClaims {+ pub fleet_id: String,+ pub claims: Vec<Claim>,+}++/// The label key a fleet's claims share, for callers that filter or clean up+/// with raw Kubernetes tooling instead of `list_fleet_claims`.+#[uniffi::export]+pub fn fleet_label_key() -> String {+ FLEET_LABEL_KEY.into()+}++#[uniffi::export]+impl CyclopsClient {+ /// Fan out `create_claim` calls across the requested warm pools, tagging+ /// every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed+ /// back later. Duplicate pool entries are aggregated before any network+ /// call. Claims are created sequentially; if one creation fails the error+ /// is returned immediately and claims already created keep their fleet+ /// label, so `list_fleet_claims` still finds them for retry or cleanup.+ pub async fn create_fleet_claims(+ self: Arc<Self>,+ fleet_id: String,+ requests: Vec<FleetPoolRequest>,+ ) -> Result<FleetClaims, SdkError> {+ let labels = fleet_claim_labels(&fleet_id)?;+ let plan = aggregate_fleet_requests(&requests)?;+ let mut claims = Vec::new();+ for (pool_name, replicas) in plan {+ let pool = Arc::clone(&self).get_pool(pool_name).await?;+ for _ in 0..replicas {+ let claim = Arc::clone(&self)+ .create_claim(CreateClaimRequest {+ pool: pool.clone(),+ spec: None,+ name: None,+ labels: Some(labels.clone()),+ })+ .await?;+ claims.push(claim);+ }+ }+ Ok(FleetClaims { fleet_id, claims })+ }++ /// The fleet's claims within one namespace: enumerate the namespace's+ /// claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that+ /// spans several pools spans that many namespaces (one pool per+ /// namespace), so call this once per member pool.+ pub async fn list_fleet_claims(+ self: Arc<Self>,+ namespace: String,+ fleet_id: String,+ ) -> Result<FleetClaims, SdkError> {+ validate_fleet_id(&fleet_id)?;+ let claims = Arc::clone(&self).list_claims(namespace).await?;+ Ok(FleetClaims {+ claims: filter_fleet_claims(claims, &fleet_id),+ fleet_id,+ })+ }+}++fn validate_fleet_id(fleet_id: &str) -> Result<(), SdkError> {+ routes::validate_dns_label_for("fleet id", fleet_id)+}++fn fleet_claim_labels(fleet_id: &str) -> Result<HashMap<String, String>, SdkError> {+ validate_fleet_id(fleet_id)?;+ Ok(HashMap::from([(+ FLEET_LABEL_KEY.to_owned(),+ fleet_id.to_owned(),+ )]))+}++/// Collapse the request set into one `(pool, replicas)` entry per pool in+/// first-seen order, validating pool names and replica counts up front so a+/// bad request fails before any claim is created.+fn aggregate_fleet_requests(requests: &[FleetPoolRequest]) -> Result<Vec<(String, u32)>, SdkError> {+ if requests.is_empty() {+ return Err(SdkError::Configuration {+ reason: "fleet must request at least one claim".into(),+ });+ }++ let mut plan: Vec<(String, u32)> = Vec::new();+ let mut total: u32 = 0;+ for request in requests {+ routes::validate_dns_label_for("pool name", &request.pool)?;+ if request.replicas == 0 {+ return Err(SdkError::Configuration {+ reason: format!("pool {:?} requests zero replicas", request.pool),+ });+ }+ total = total+ .checked_add(request.replicas)+ .filter(|total| *total <= MAX_FLEET_CLAIMS)+ .ok_or_else(|| SdkError::Configuration {+ reason: format!("fleet requests more than {MAX_FLEET_CLAIMS} claims"),+ })?;+ match plan.iter_mut().find(|(pool, _)| pool == &request.pool) {+ Some((_, replicas)) => *replicas += request.replicas,+ None => plan.push((request.pool.clone(), request.replicas)),+ }+ }+ Ok(plan)+}++fn claim_in_fleet(claim: &Claim, fleet_id: &str) -> bool {+ claim+ .metadata+ .labels+ .as_ref()+ .and_then(|labels| labels.get(FLEET_LABEL_KEY))+ .is_some_and(|value| value == fleet_id)+}++fn filter_fleet_claims(claims: Vec<Claim>, fleet_id: &str) -> Vec<Claim> {+ claims+ .into_iter()+ .filter(|claim| claim_in_fleet(claim, fleet_id))+ .collect()+}++#[cfg(test)]+mod tests {+ use super::{+ FLEET_LABEL_KEY, FleetPoolRequest, MAX_FLEET_CLAIMS, aggregate_fleet_requests,+ claim_in_fleet, filter_fleet_claims, fleet_claim_labels, fleet_label_key,+ };+ use crate::{Claim, ResourceMetadata, SdkError};+ use cyclops_sdk_schema::{ClaimSpec, SandboxTemplateRef};+ use std::collections::HashMap;++ fn request(pool: &str, replicas: u32) -> FleetPoolRequest {+ FleetPoolRequest {+ pool: pool.into(),+ replicas,+ }+ }++ fn claim(name: &str, labels: Option<HashMap<String, String>>) -> Claim {+ Claim {+ api_version: "osgym.cua.ai/v1alpha1".into(),+ kind: "OSGymSandboxClaim".into(),+ metadata: ResourceMetadata {+ namespace: "spaces-linux".into(),+ name: name.into(),+ labels,+ creation_timestamp: None,+ },+ spec: ClaimSpec {+ sandbox_template_ref: SandboxTemplateRef {+ name: "spaces-linux-template".into(),+ },+ warmpool: None,+ bind_deadline: None,+ ttl_seconds_after_created: None,+ lifecycle: None,+ },+ status: None,+ }+ }++ #[test]+ fn exported_label_key_matches_constant() {+ assert_eq!(fleet_label_key(), FLEET_LABEL_KEY);+ assert_eq!(fleet_label_key(), "cua.ai/fleet");+ }++ #[test]+ fn labels_carry_the_fleet_id_under_the_shared_key() {+ assert_eq!(+ fleet_claim_labels("space-42").unwrap(),+ HashMap::from([("cua.ai/fleet".to_owned(), "space-42".to_owned())])+ );+ }++ #[test]+ fn labels_reject_non_dns_label_fleet_ids() {+ for fleet_id in ["", "UPPER", "has spaces", "-leading", "trailing-", "a/b"] {+ assert!(+ matches!(+ fleet_claim_labels(fleet_id),+ Err(SdkError::InvalidResourceName { .. })+ ),+ "expected {fleet_id:?} to be rejected"+ );+ }+ }++ #[test]+ fn aggregation_sums_duplicates_in_first_seen_order() {+ let plan = aggregate_fleet_requests(&[+ request("spaces-linux", 2),+ request("other-pool", 1),+ request("spaces-linux", 3),+ ])+ .unwrap();++ assert_eq!(+ plan,+ vec![("spaces-linux".into(), 5), ("other-pool".into(), 1)]+ );+ }++ #[test]+ fn aggregation_rejects_empty_zero_replica_and_invalid_pools() {+ assert!(matches!(+ aggregate_fleet_requests(&[]),+ Err(SdkError::Configuration { .. })+ ));+ assert!(matches!(+ aggregate_fleet_requests(&[request("spaces-linux", 0)]),+ Err(SdkError::Configuration { .. })+ ));+ assert!(matches!(+ aggregate_fleet_requests(&[request("Not-A-Label", 1)]),+ Err(SdkError::InvalidResourceName { .. })+ ));+ }++ #[test]+ fn aggregation_caps_total_replicas() {+ assert!(matches!(+ aggregate_fleet_requests(&[request("spaces-linux", MAX_FLEET_CLAIMS + 1)]),+ Err(SdkError::Configuration { .. })+ ));+ assert!(matches!(+ aggregate_fleet_requests(&[+ request("spaces-linux", MAX_FLEET_CLAIMS),+ request("other-pool", u32::MAX),+ ]),+ Err(SdkError::Configuration { .. })+ ));+ assert!(aggregate_fleet_requests(&[request("spaces-linux", MAX_FLEET_CLAIMS)]).is_ok());+ }++ #[test]+ fn filtering_keeps_only_claims_labeled_with_the_fleet_id() {+ let mine = claim(+ "claim-mine",+ Some(HashMap::from([(+ FLEET_LABEL_KEY.to_owned(),+ "space-42".to_owned(),+ )])),+ );+ let other_fleet = claim(+ "claim-other",+ Some(HashMap::from([(+ FLEET_LABEL_KEY.to_owned(),+ "space-99".to_owned(),+ )])),+ );+ let unrelated_label = claim(+ "claim-unrelated",+ Some(HashMap::from([("team".to_owned(), "space-42".to_owned())])),+ );+ let unlabeled = claim("claim-unlabeled", None);++ assert!(claim_in_fleet(&mine, "space-42"));+ assert!(!claim_in_fleet(&other_fleet, "space-42"));+ assert!(!claim_in_fleet(&unrelated_label, "space-42"));+ assert!(!claim_in_fleet(&unlabeled, "space-42"));++ let kept = filter_fleet_claims(+ vec![mine.clone(), other_fleet, unrelated_label, unlabeled],+ "space-42",+ );+ assert_eq!(kept, vec![mine]);+ }+}diff --git a/libs/fleet/sdk/src/lib.rs b/libs/fleet/sdk/src/lib.rsindex 7c95954c2c..7c56f73a7e 100644--- a/libs/fleet/sdk/src/lib.rs+++ b/libs/fleet/sdk/src/lib.rs@@ -1,6 +1,7 @@mod claims;mod client;mod error;+mod fleets;mod image_uploads;mod images;mod namespaces;@@ -20,6 +21,9 @@ pub use error::{AccessTokenProviderError, HttpError, MAX_STATUS_BODY_BYTES, SdkBuildError, SdkError,bounded_body,};+pub use fleets::{+ FLEET_LABEL_KEY, FleetClaims, FleetPoolRequest, MAX_FLEET_CLAIMS, fleet_label_key,+};pub use image_uploads::{ImageUploadFileRequest, ImageUploadInstruction, ImageUploadRequest, ImageUploadResponse,PresignedPut,@@ -37,7 +41,8 @@ pub use types::{CreateUserApiKeyRequestBuilder, CyclopsConfiguration, CyclopsCredentials,CyclopsTokenProviderConfiguration, CyclopsTokenProviderConfigurationBuilder, HttpHeader,HttpRequest, HttpRequestBuilder, HttpResponse, Namespace, NewUserApiKey, Pool,- ResourceMetadata, Sandbox, SignedServiceUrl, Template, TemplateBuilder, UserApiKey,+ ResourceMetadata, Sandbox, ServiceStreamTarget, SignedServiceUrl, Template, TemplateBuilder,+ UserApiKey,};uniffi::setup_scaffolding!("fleet_sdk");diff --git a/libs/fleet/sdk/src/routes.rs b/libs/fleet/sdk/src/routes.rsindex 793b07b10b..1cb2aa5386 100644--- a/libs/fleet/sdk/src/routes.rs+++ b/libs/fleet/sdk/src/routes.rs@@ -275,6 +275,32 @@ pub fn service_url(Ok(url)}+/// The `service_url` route with its scheme swapped to the WebSocket+/// equivalent (`http` -> `ws`, `https` -> `wss`) so a native client can open+/// its own socket through the gateway's `/api/svc` proxy.+pub fn service_websocket_url(+ base: &Url,+ namespace: &str,+ service_name: &str,+ path: &str,+) -> Result<Url, SdkError> {+ let mut url = service_url(base, namespace, service_name, path)?;+ let scheme = match url.scheme() {+ "http" => "ws",+ "https" => "wss",+ other => {+ return Err(SdkError::Configuration {+ reason: format!("base_url scheme {other:?} has no WebSocket equivalent"),+ });+ }+ };+ url.set_scheme(scheme)+ .map_err(|()| SdkError::Configuration {+ reason: format!("could not derive a {scheme} URL from the base_url"),+ })?;+ Ok(url)+}+const MAX_PERCENT_DECODE_PASSES: usize = 8;fn validate_service_path(path: &str) -> Result<(&str, Option<&str>), SdkError> {@@ -370,10 +396,11 @@ fn hex_value(byte: u8) -> Option<u8> {mod tests {use super::{claim_collection, claim_item, image_collection, image_item, image_uploads_presign,- namespace_collection, namespace_item, pool_collection, pool_item,- signed_service_url_collection, signed_service_url_item, signed_service_url_list,- template_collection, template_item,+ namespace_collection, namespace_item, pool_collection, pool_item, service_url,+ service_websocket_url, signed_service_url_collection, signed_service_url_item,+ signed_service_url_list, template_collection, template_item,};+ use crate::SdkError;use url::Url;#[test]@@ -542,4 +569,80 @@ mod tests {"https://gateway.example/cyclops/api/namespaces/example-pool");}++ #[test]+ fn websocket_url_swaps_https_to_wss_and_keeps_path_and_query() {+ let base = Url::parse("https://cyclops.example:8443/").unwrap();++ assert_eq!(+ service_websocket_url(+ &base,+ "example-pool",+ "sandbox-1-vnc",+ "/websockify?token=abc"+ )+ .unwrap()+ .as_str(),+ "wss://cyclops.example:8443/api/svc/example-pool/sandbox-1-vnc/websockify?token=abc"+ );+ }++ #[test]+ fn websocket_url_swaps_http_to_ws() {+ let base = Url::parse("http://localhost:8080/").unwrap();++ assert_eq!(+ service_websocket_url(&base, "example-pool", "sandbox-1-vnc", "/websockify")+ .unwrap()+ .as_str(),+ "ws://localhost:8080/api/svc/example-pool/sandbox-1-vnc/websockify"+ );+ }++ #[test]+ fn websocket_url_preserves_base_path_prefix() {+ let base = Url::parse("https://gateway.example/cyclops/").unwrap();++ assert_eq!(+ service_websocket_url(&base, "example-pool", "sandbox-1-vnc", "/websockify")+ .unwrap()+ .as_str(),+ "wss://gateway.example/cyclops/api/svc/example-pool/sandbox-1-vnc/websockify"+ );+ }++ #[test]+ fn service_paths_reject_traversal_control_chars_and_bad_shapes() {+ let base = Url::parse("https://cyclops.example/").unwrap();++ for path in [+ "",+ "websockify",+ "//websockify",+ "/../secrets",+ "/a/../b",+ "/%2e%2e/secrets",+ "/%252e%252e/secrets",+ "/with\u{7}bell",+ "/with%00null",+ "/frag#ment",+ "/back\\slash",+ "/ok?query=%0acontrol",+ ] {+ assert!(+ matches!(+ service_url(&base, "example-pool", "sandbox-1-vnc", path),+ Err(SdkError::InvalidServicePath { .. })+ ),+ "expected {path:?} to be rejected"+ );+ assert!(+ matches!(+ service_websocket_url(&base, "example-pool", "sandbox-1-vnc", path),+ Err(SdkError::InvalidServicePath { .. })+ ),+ "expected websocket {path:?} to be rejected"+ );+ }+ }}diff --git a/libs/fleet/sdk/src/services.rs b/libs/fleet/sdk/src/services.rsindex 9565e6c236..0de104984e 100644--- a/libs/fleet/sdk/src/services.rs+++ b/libs/fleet/sdk/src/services.rs@@ -1,10 +1,12 @@use crate::{- HttpHeader, HttpRequest, HttpResponse, Sandbox, SdkError,+ HttpHeader, HttpRequest, HttpResponse, Sandbox, SdkError, ServiceStreamTarget,client::CyclopsClient,- routes::{service_url, validate_dns_label_for},+ routes::{service_url, service_websocket_url, validate_dns_label_for},};use std::{collections::HashSet, sync::Arc};+const AUTH_HEADER_NAME: &str = "authorization";+#[uniffi::export]impl CyclopsClient {pub async fn service_request(@@ -19,13 +21,50 @@ impl CyclopsClient {let request = HttpRequest {method: request.method,url: url.to_string(),- headers: filtered_headers(request.headers),+ headers: fleet_headers(filtered_headers(request.headers), &sandbox.claim),body: request.body,timeout_secs: request.timeout_secs,max_response_bytes: request.max_response_bytes,};self.execute_authenticated_service(request).await}++ /// Where a native client opens its own WebSocket to a sandbox service:+ /// the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the+ /// returned `ws(s)://` URL plus the returned bearer header are all a+ /// Rust or Swift caller needs to dial the socket directly.+ /// `service_request` stays the path for unary requests.+ pub async fn service_websocket_url(+ self: Arc<Self>,+ sandbox: Sandbox,+ service: String,+ path: String,+ ) -> Result<ServiceStreamTarget, SdkError> {+ let service_name = resolve_service_name(&sandbox, &service)?;+ let url = service_websocket_url(self.base_url(), &sandbox.namespace, &service_name, &path)?;+ let token = self.bearer_token(false).await?;+ Ok(ServiceStreamTarget {+ url: url.into(),+ auth_header_name: AUTH_HEADER_NAME.into(),+ auth_header_value: format!("Bearer {token}"),+ })+ }+}++fn fleet_headers(mut headers: Vec<HttpHeader>, claim: &str) -> Vec<HttpHeader> {+ // Correlation is the exact claim returned in Sandbox; it is never inferred.+ if !claim.is_empty()+ && claim.len() <= 128+ && claim+ .bytes()+ .all(|b| b.is_ascii_alphanumeric() || b"._~-".contains(&b))+ {+ headers.push(HttpHeader {+ name: "X-Cua-Fleet-Claim".into(),+ value: claim.into(),+ });+ }+ headers}pub(crate) fn resolve_service_name(sandbox: &Sandbox, service: &str) -> Result<String, SdkError> {@@ -86,7 +125,91 @@ fn filtered_headers(headers: Vec<HttpHeader>) -> Vec<HttpHeader> {#[cfg(test)]mod tests {use super::filtered_headers;- use crate::HttpHeader;+ use crate::{+ CyclopsClient, CyclopsTokenProviderConfiguration, HttpClient, HttpError, HttpHeader,+ HttpRequest, HttpResponse, Sandbox, SdkError,+ };+ use std::sync::Arc;++ struct NoNetworkHttpClient;++ #[async_trait::async_trait]+ impl HttpClient for NoNetworkHttpClient {+ async fn execute(&self, request: HttpRequest) -> Result<HttpResponse, HttpError> {+ Err(HttpError::Transport {+ reason: format!("unexpected network request to {}", request.url),+ })+ }+ }++ fn client() -> Arc<CyclopsClient> {+ CyclopsClient::connect_with_access_token(+ CyclopsTokenProviderConfiguration {+ base_url: "https://cyclops.example".into(),+ pool_poll_interval_ms: 1,+ pool_poll_limit: 1,+ claim_poll_interval_ms: 1,+ claim_poll_limit: 1,+ },+ "test-token".into(),+ Arc::new(NoNetworkHttpClient),+ )+ .unwrap()+ }++ fn sandbox() -> Sandbox {+ Sandbox {+ namespace: "example-pool".into(),+ claim: "claim-example".into(),+ name: "sandbox-1".into(),+ services: vec!["vnc".into(), "rcdp".into()],+ }+ }++ #[tokio::test]+ async fn websocket_target_carries_wss_url_and_bearer_header() {+ let target = client()+ .service_websocket_url(sandbox(), "vnc".into(), "/websockify".into())+ .await+ .unwrap();++ assert_eq!(+ target.url,+ "wss://cyclops.example/api/svc/example-pool/sandbox-1-vnc/websockify"+ );+ assert_eq!(target.auth_header_name, "authorization");+ assert_eq!(target.auth_header_value, "Bearer test-token");+ }++ #[tokio::test]+ async fn websocket_target_rejects_unknown_services() {+ let error = client()+ .service_websocket_url(sandbox(), "missing".into(), "/".into())+ .await+ .unwrap_err();++ assert!(matches!(+ error,+ SdkError::UnknownService { requested, available }+ if requested == "missing" && available == ["rcdp", "vnc"]+ ));+ }++ #[tokio::test]+ async fn websocket_target_rejects_traversal_paths() {+ let error = client()+ .service_websocket_url(sandbox(), "vnc".into(), "/../admin".into())+ .await+ .unwrap_err();++ assert!(matches!(error, SdkError::InvalidServicePath { .. }));+ }++ #[tokio::test]+ async fn access_token_returns_static_bearer_even_when_forced() {+ assert_eq!(client().access_token(false).await.unwrap(), "test-token");+ assert_eq!(client().access_token(true).await.unwrap(), "test-token");+ }#[test]fn removes_connection_nominated_headers_case_insensitively() {diff --git a/libs/fleet/sdk/src/transport.rs b/libs/fleet/sdk/src/transport.rsindex c7d52287b5..bb4d6c81a6 100644--- a/libs/fleet/sdk/src/transport.rs+++ b/libs/fleet/sdk/src/transport.rs@@ -529,6 +529,29 @@ impl Transport {}}+ /// The current bearer value, for callers that attach the header to a+ /// connection the SDK does not own (for example a native WebSocket).+ /// `force_refresh` bypasses any cached token; a static access token has+ /// nothing fresher to offer and is returned as-is.+ pub(crate) async fn bearer_token(&self, force_refresh: bool) -> Result<String, SdkError> {+ if !force_refresh {+ return Ok(self.access_token().await?.value);+ }++ match &self.authentication {+ Authentication::ClientCredentials { cached, .. } => {+ let mut cached = cached.lock().await;+ let token = self.acquire_client_credentials_token().await?;+ *cached = Some(token.clone());+ Ok(token.value)+ }+ Authentication::TokenProvider { provider } => {+ Ok(self.provider_token(provider, true).await?.value)+ }+ Authentication::StaticAccessToken { value } => Ok(value.clone()),+ }+ }+async fn access_token(&self) -> Result<AccessToken, SdkError> {match &self.authentication {Authentication::ClientCredentials { cached, .. } => {diff --git a/libs/fleet/sdk/src/types.rs b/libs/fleet/sdk/src/types.rsindex b7f896cc5e..b9e256587b 100644--- a/libs/fleet/sdk/src/types.rs+++ b/libs/fleet/sdk/src/types.rs@@ -303,6 +303,12 @@ pub struct CreateClaimRequest {#[serde(default)]#[uniffi(default = None)]pub name: Option<String>,+ /// Labels stamped onto the created claim's metadata verbatim. Grouping+ /// helpers (for example fleet fan-out) rely on this to tag related claims+ /// so they can be listed back by label within a namespace.+ #[serde(default)]+ #[uniffi(default = None)]+ pub labels: Option<HashMap<String, String>>,}impl PartialEq for CreateClaimRequest {@@ -310,6 +316,30 @@ impl PartialEq for CreateClaimRequest {self.pool == other.pool&& schema_values_equal(&self.spec, &other.spec)&& self.name == other.name+ && self.labels == other.labels+ }+}++/// Where a native client opens its own WebSocket to a sandbox service through+/// the gateway's `/api/svc` proxy. `url` is the `ws(s)://` endpoint;+/// `auth_header_name`/`auth_header_value` carry the bearer the socket's HTTP+/// upgrade request must send. Deliberately not serde-serializable: the value+/// holds a live credential and must not be logged or persisted.+#[derive(Clone, PartialEq, Eq, uniffi::Record)]+pub struct ServiceStreamTarget {+ pub url: String,+ pub auth_header_name: String,+ pub auth_header_value: String,+}++impl fmt::Debug for ServiceStreamTarget {+ fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {+ formatter+ .debug_struct("ServiceStreamTarget")+ .field("url", &self.url)+ .field("auth_header_name", &self.auth_header_name)+ .field("auth_header_value", &"<redacted>")+ .finish()}}diff --git a/libs/fleet/sdk/tests/claim_flow.rs b/libs/fleet/sdk/tests/claim_flow.rsindex 3937055bdf..bd8bae4f1f 100644--- a/libs/fleet/sdk/tests/claim_flow.rs+++ b/libs/fleet/sdk/tests/claim_flow.rs@@ -34,6 +34,7 @@ async fn creates_pending_demand_immediately_for_a_nonzero_unavailable_pool() {pool: unavailable_pool,spec: Some(spec.clone()),name: None,+ labels: None,}).await.unwrap(),@@ -62,6 +63,7 @@ async fn create_claim_defaults_missing_bind_deadline_to_900_seconds() {spec}),name: None,+ labels: None,}).await.unwrap();@@ -87,6 +89,7 @@ async fn create_claim_preserves_explicit_bind_deadline() {pool: pool(1),spec: Some(spec),name: None,+ labels: None,}).await.unwrap();@@ -111,6 +114,7 @@ async fn zero_and_nonzero_pools_post_a_single_claim_create() {pool: pool(replicas),spec: None,name: None,+ labels: None,}).await.unwrap();@@ -216,6 +220,7 @@ async fn create_claim_uses_a_client_supplied_name_verbatim() {pool: pool(1),spec: Some(spec.clone()),name: Some("claim-1".into()),+ labels: None,}).await.unwrap();@@ -237,6 +242,7 @@ async fn create_claim_rejects_an_invalid_client_supplied_name_before_any_requestpool: pool(1),spec: None,name: Some("Not A DNS Label".into()),+ labels: None,}).await,Err(SdkError::InvalidResourceName { .. })@@ -335,11 +341,13 @@ async fn generated_claim_names_are_unique_under_concurrency_and_fit_dns_labels()pool: pool.clone(),spec: Some(claim_spec("short-template")),name: None,+ labels: None,}),client.create_claim(CreateClaimRequest {pool,spec: Some(claim_spec("short-template")),name: None,+ labels: None,}),);assert!(first.is_ok());@@ -379,6 +387,7 @@ async fn validation_and_malformed_responses_fail_without_unexpected_http() {pool: invalid_pool,spec: None,name: None,+ labels: None,}).await,Err(SdkError::InvalidResourceName { .. })@@ -586,6 +595,7 @@ async fn default_template_ref_for_a_63_byte_pool_passes_through_without_dns_valipool,spec: None,name: None,+ labels: None,}).await.unwrap();@@ -612,6 +622,7 @@ async fn explicit_non_dns_template_ref_passes_through_but_empty_ref_is_rejected_pool: pool(0),spec: Some(claim_spec(template_name)),name: None,+ labels: None,}).await.unwrap();@@ -627,6 +638,7 @@ async fn explicit_non_dns_template_ref_passes_through_but_empty_ref_is_rejected_pool: pool(0),spec: Some(claim_spec("")),name: None,+ labels: None,}).await,Err(SdkError::Configuration { .. })diff --git a/libs/fleet/sdk/tests/public_api.rs b/libs/fleet/sdk/tests/public_api.rsindex 7553bfc282..38cf55137d 100644--- a/libs/fleet/sdk/tests/public_api.rs+++ b/libs/fleet/sdk/tests/public_api.rs@@ -1,4 +1,4 @@-use std::sync::Arc;+use std::{collections::HashMap, sync::Arc};use cyclops_sdk::{Claim, CreateClaimRequest, CreatePoolRequest, CyclopsClient, CyclopsConfiguration,@@ -330,10 +330,16 @@ fn resources_use_canonical_schema_specs_and_statuses() {}fn assert_create_claim_request(request: CreateClaimRequest) {- let CreateClaimRequest { pool, spec, name } = request;+ let CreateClaimRequest {+ pool,+ spec,+ name,+ labels,+ } = request;assert_pool_types(pool);let _: Option<ClaimSpec> = spec;let _: Option<String> = name;+ let _: Option<HashMap<String, String>> = labels;}let _: fn(Claim) = assert_claim_types;@@ -359,6 +365,7 @@ fn resources_support_equality_and_kubernetes_camel_case_json() {pool: pool.clone(),spec: Some(claim.spec.clone()),name: None,+ labels: None,};assert_eq!(pool, pool.clone());diff --git a/libs/fleet/sdk/tests/service_flow.rs b/libs/fleet/sdk/tests/service_flow.rsindex 2b553452bd..1ea2757ff0 100644--- a/libs/fleet/sdk/tests/service_flow.rs+++ b/libs/fleet/sdk/tests/service_flow.rs@@ -36,6 +36,12 @@ async fn routes_known_service_under_base_prefix_and_forwards_query() {"https://cyclops.example:8443/control/api/svc/pool-test/sandbox-1-mcp/tools?cursor=next");assert_eq!(requests[1].method, "PATCH");+ assert!(+ requests[1]+ .headers+ .iter()+ .any(|h| h.name == "X-Cua-Fleet-Claim" && h.value == "claim-1")+ );}#[tokio::test]@@ -204,6 +210,7 @@ async fn filters_hop_by_hop_and_connection_nominated_headers_without_reordering_header("X-Keep", "first"),header("x-keep", "second"),header("Cookie", "session=kept"),+ header("X-Cua-Fleet-Claim", "claim-1"),header("authorization", "Bearer service-token"),]);diff --git a/libs/fleet/src/types/novnc.d.ts b/libs/fleet/src/types/novnc.d.tsindex b879ba64fa..4fc3e18ed0 100644--- a/libs/fleet/src/types/novnc.d.ts+++ b/libs/fleet/src/types/novnc.d.ts@@ -19,6 +19,10 @@ declare module "@novnc/novnc" {scaleViewport: booleanresizeSession: booleanbackground: string+ /** Tight/JPEG quality, 0 (worst) – 9 (near-lossless). Default 6. */+ qualityLevel: number+ /** Lossless zlib compression effort, 0 – 9. Default 2. */+ compressionLevel: numberdisconnect(): void}}