@openkaiden/opnshll-sdk 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -480,6 +480,14 @@ export type Sandbox = Message<"openshell.v1.Sandbox"> & {
480
480
  * @generated from field: openshell.v1.SandboxStatus status = 3;
481
481
  */
482
482
  status?: SandboxStatus | undefined;
483
+ /**
484
+ * Read-only SSH host identity in OpenSSH SHA256:<base64> form. Stable for
485
+ * this sandbox's lifetime, including runtime restarts. Empty on legacy
486
+ * runtimes that do not provide a gateway-managed SSH identity.
487
+ *
488
+ * @generated from field: string host_key_fingerprint = 6;
489
+ */
490
+ hostKeyFingerprint: string;
483
491
  /**
484
492
  * Read-only provenance for sandboxes created from a reusable workload template.
485
493
  *
@@ -558,6 +566,13 @@ export type SandboxSpec = Message<"openshell.v1.SandboxSpec"> & {
558
566
  * @generated from field: string provider_attachment_epoch = 14;
559
567
  */
560
568
  providerAttachmentEpoch: string;
569
+ /**
570
+ * Gateway-owned policy for replacing the sandbox runtime after the canonical
571
+ * main process exits. Unspecified is normalized to Never before persistence.
572
+ *
573
+ * @generated from field: openshell.v1.SandboxRestartPolicy restart_policy = 15;
574
+ */
575
+ restartPolicy: SandboxRestartPolicy;
561
576
  };
562
577
  /**
563
578
  * Describes the message openshell.v1.SandboxSpec.
@@ -902,9 +917,8 @@ export type SandboxStatus = Message<"openshell.v1.SandboxStatus"> & {
902
917
  */
903
918
  mainProcessInstanceId: string;
904
919
  /**
905
- * Normalized main process result. Signal exits use 128 + signal number.
906
- * Presence indicates that the canonical main process exited. Exit code 0
907
- * produces Completed; nonzero and signal-normalized exits produce Error.
920
+ * Most recent normalized main process result. Signal exits use 128 + signal number.
921
+ * Cleared when a replacement main process becomes ready.
908
922
  *
909
923
  * @generated from field: optional int32 exit_code = 9;
910
924
  */
@@ -930,11 +944,29 @@ export type SandboxStatus = Message<"openshell.v1.SandboxStatus"> & {
930
944
  */
931
945
  configurationActivated?: boolean | undefined;
932
946
  /**
933
- * Gateway-owned repair window. Retained after timeout for inspection and retry.
947
+ * Gateway-owned provisioning deadlines, retained after timeout for inspection and retry.
934
948
  *
935
949
  * @generated from field: openshell.v1.SandboxProvisioning provisioning = 13;
936
950
  */
937
951
  provisioning?: SandboxProvisioning | undefined;
952
+ /**
953
+ * Consecutive policy-driven restart number in the current crash loop.
954
+ *
955
+ * @generated from field: uint32 restart_count = 14;
956
+ */
957
+ restartCount: number;
958
+ /**
959
+ * Deadline for the next restart attempt or recovery check.
960
+ *
961
+ * @generated from field: google.protobuf.Timestamp next_restart_time = 15;
962
+ */
963
+ nextRestartTime?: Timestamp | undefined;
964
+ /**
965
+ * Time when the current main process became ready.
966
+ *
967
+ * @generated from field: google.protobuf.Timestamp main_process_started_time = 16;
968
+ */
969
+ mainProcessStartedTime?: Timestamp | undefined;
938
970
  };
939
971
  /**
940
972
  * Describes the message openshell.v1.SandboxStatus.
@@ -2257,7 +2289,8 @@ export type CreateSshSessionResponse = Message<"openshell.v1.CreateSshSessionRes
2257
2289
  */
2258
2290
  gatewayScheme: string;
2259
2291
  /**
2260
- * Optional host key fingerprint. If non-empty, [A-Za-z0-9:+/=-] only.
2292
+ * Expected sandbox SSH host identity in OpenSSH SHA256:<base64> form.
2293
+ * Stable for the sandbox's lifetime. Empty only for legacy runtimes.
2261
2294
  *
2262
2295
  * @generated from field: string host_key_fingerprint = 7;
2263
2296
  */
@@ -2315,6 +2348,12 @@ export type ExposeServiceRequest = Message<"openshell.v1.ExposeServiceRequest">
2315
2348
  * @generated from field: string request_id = 6;
2316
2349
  */
2317
2350
  requestId: string;
2351
+ /**
2352
+ * Application authorization behavior. Omission resolves to STRIP.
2353
+ *
2354
+ * @generated from field: openshell.v1.ServiceAuthorizationMode authorization_mode = 7;
2355
+ */
2356
+ authorizationMode: ServiceAuthorizationMode;
2318
2357
  };
2319
2358
  /**
2320
2359
  * Describes the message openshell.v1.ExposeServiceRequest.
@@ -2506,6 +2545,12 @@ export type ServiceEndpoint = Message<"openshell.v1.ServiceEndpoint"> & {
2506
2545
  * @generated from field: bool domain = 6;
2507
2546
  */
2508
2547
  domain: boolean;
2548
+ /**
2549
+ * Effective application authorization behavior for ingress requests.
2550
+ *
2551
+ * @generated from field: openshell.v1.ServiceAuthorizationMode authorization_mode = 7;
2552
+ */
2553
+ authorizationMode: ServiceAuthorizationMode;
2509
2554
  };
2510
2555
  /**
2511
2556
  * Describes the message openshell.v1.ServiceEndpoint.
@@ -3697,6 +3742,16 @@ export type ProviderProfileCredential = Message<"openshell.v1.ProviderProfileCre
3697
3742
  * @generated from field: openshell.v1.ProviderCredentialTokenGrant token_grant = 10;
3698
3743
  */
3699
3744
  tokenGrant?: ProviderCredentialTokenGrant | undefined;
3745
+ /**
3746
+ * Output-only gateway-derived endpoint authorities for resolved token grants.
3747
+ * For inspected L7 requests, empty means no endpoint may obtain this grant.
3748
+ * L4 injection uses selectors without checking these authorities.
3749
+ * Profile-authored values are ignored; normal policies name the originating
3750
+ * provider endpoint, while a global policy uses its own endpoint authorities.
3751
+ *
3752
+ * @generated from field: repeated string token_grant_owners = 11;
3753
+ */
3754
+ tokenGrantOwners: string[];
3700
3755
  };
3701
3756
  /**
3702
3757
  * Describes the message openshell.v1.ProviderProfileCredential.
@@ -4156,12 +4211,49 @@ export type ProviderProfile = Message<"openshell.v1.ProviderProfile"> & {
4156
4211
  * @generated from field: string scope = 13;
4157
4212
  */
4158
4213
  scope: string;
4214
+ /**
4215
+ * EXPERIMENTAL: Non-secret files rendered from provider configuration for the
4216
+ * workload. This API and its behavior may change or be removed.
4217
+ *
4218
+ * @generated from field: repeated openshell.v1.ProviderProfileFile files = 14;
4219
+ */
4220
+ files: ProviderProfileFile[];
4159
4221
  };
4160
4222
  /**
4161
4223
  * Describes the message openshell.v1.ProviderProfile.
4162
4224
  * Use `create(ProviderProfileSchema)` to create a new message.
4163
4225
  */
4164
4226
  export declare const ProviderProfileSchema: GenMessage<ProviderProfile>;
4227
+ /**
4228
+ * EXPERIMENTAL: Provider file templates may change or be removed.
4229
+ *
4230
+ * @generated from message openshell.v1.ProviderProfileFile
4231
+ */
4232
+ export type ProviderProfileFile = Message<"openshell.v1.ProviderProfileFile"> & {
4233
+ /**
4234
+ * One virtual file name below /run/openshell/providers/<provider>/.
4235
+ *
4236
+ * @generated from field: string path = 1;
4237
+ */
4238
+ path: string;
4239
+ /**
4240
+ * UTF-8 template. Only {{config.KEY}} references are supported.
4241
+ *
4242
+ * @generated from field: string content = 2;
4243
+ */
4244
+ content: string;
4245
+ /**
4246
+ * Optional environment variable containing the virtual absolute path.
4247
+ *
4248
+ * @generated from field: string env_var = 3;
4249
+ */
4250
+ envVar: string;
4251
+ };
4252
+ /**
4253
+ * Describes the message openshell.v1.ProviderProfileFile.
4254
+ * Use `create(ProviderProfileFileSchema)` to create a new message.
4255
+ */
4256
+ export declare const ProviderProfileFileSchema: GenMessage<ProviderProfileFile>;
4165
4257
  /**
4166
4258
  * Provider profile response.
4167
4259
  *
@@ -4586,6 +4678,14 @@ export type GetSandboxProviderEnvironmentResponse = Message<"openshell.v1.GetSan
4586
4678
  * @generated from field: openshell.v1.ProviderReadinessReason readiness_reason = 9;
4587
4679
  */
4588
4680
  readinessReason: ProviderReadinessReason;
4681
+ /**
4682
+ * Complete desired set of non-secret managed files, keyed by absolute path.
4683
+ *
4684
+ * @generated from field: map<string, string> files = 10;
4685
+ */
4686
+ files: {
4687
+ [key: string]: string;
4688
+ };
4589
4689
  };
4590
4690
  /**
4591
4691
  * Describes the message openshell.v1.GetSandboxProviderEnvironmentResponse.
@@ -5493,6 +5593,12 @@ export type GatewayMessage = Message<"openshell.v1.GatewayMessage"> & {
5493
5593
  */
5494
5594
  value: RelayClose;
5495
5595
  case: "relayClose";
5596
+ } | {
5597
+ /**
5598
+ * @generated from field: openshell.v1.SessionRedirect session_redirect = 6;
5599
+ */
5600
+ value: SessionRedirect;
5601
+ case: "sessionRedirect";
5496
5602
  } | {
5497
5603
  case: undefined;
5498
5604
  value?: undefined;
@@ -5534,6 +5640,22 @@ export type SupervisorHello = Message<"openshell.v1.SupervisorHello"> & {
5534
5640
  * @generated from field: bool supports_provider_readiness = 4;
5535
5641
  */
5536
5642
  supportsProviderReadiness: boolean;
5643
+ /**
5644
+ * Set when this connection is the result of following a SessionRedirect. The
5645
+ * receiving gateway serves a redirected hello locally instead of redirecting
5646
+ * again, so a disagreement about membership cannot bounce the supervisor
5647
+ * between replicas. A gateway that is shutting down may still redirect it.
5648
+ *
5649
+ * @generated from field: bool redirected = 5;
5650
+ */
5651
+ redirected: boolean;
5652
+ /**
5653
+ * The supervisor understands SessionRedirect. Gateways never redirect a
5654
+ * supervisor that does not set this.
5655
+ *
5656
+ * @generated from field: bool supports_session_redirect = 6;
5657
+ */
5658
+ supportsSessionRedirect: boolean;
5537
5659
  };
5538
5660
  /**
5539
5661
  * Describes the message openshell.v1.SupervisorHello.
@@ -5582,6 +5704,36 @@ export type SessionRejected = Message<"openshell.v1.SessionRejected"> & {
5582
5704
  * Use `create(SessionRejectedSchema)` to create a new message.
5583
5705
  */
5584
5706
  export declare const SessionRejectedSchema: GenMessage<SessionRejected>;
5707
+ /**
5708
+ * Gateway declines to own this session and names the replica that should.
5709
+ *
5710
+ * Sent instead of SessionAccepted when the placement ring puts the sandbox on
5711
+ * a different live replica, and to established sessions when their gateway
5712
+ * shuts down. The supervisor reconnects to peer_endpoint once with
5713
+ * SupervisorHello.redirected set, and falls back to its configured gateway
5714
+ * address if that fails.
5715
+ *
5716
+ * @generated from message openshell.v1.SessionRedirect
5717
+ */
5718
+ export type SessionRedirect = Message<"openshell.v1.SessionRedirect"> & {
5719
+ /**
5720
+ * Peer endpoint of the replica that should own this sandbox.
5721
+ *
5722
+ * @generated from field: string peer_endpoint = 1;
5723
+ */
5724
+ peerEndpoint: string;
5725
+ /**
5726
+ * Replica ID that should own this sandbox, for logging.
5727
+ *
5728
+ * @generated from field: string owner_replica_id = 2;
5729
+ */
5730
+ ownerReplicaId: string;
5731
+ };
5732
+ /**
5733
+ * Describes the message openshell.v1.SessionRedirect.
5734
+ * Use `create(SessionRedirectSchema)` to create a new message.
5735
+ */
5736
+ export declare const SessionRedirectSchema: GenMessage<SessionRedirect>;
5585
5737
  /**
5586
5738
  * Supervisor heartbeat.
5587
5739
  *
@@ -7478,7 +7630,7 @@ export type SandboxProvisioning = Message<"openshell.v1.SandboxProvisioning"> &
7478
7630
  */
7479
7631
  firstRejectionTime?: Timestamp | undefined;
7480
7632
  /**
7481
- * Present only while the repair window is armed.
7633
+ * Active preparation or admission-repair deadline. Absent after Ready/timeout.
7482
7634
  *
7483
7635
  * @generated from field: google.protobuf.Timestamp deadline = 5;
7484
7636
  */
@@ -7515,6 +7667,40 @@ export type SandboxProvisioning = Message<"openshell.v1.SandboxProvisioning"> &
7515
7667
  * @generated from field: google.protobuf.Timestamp attachment_change_time = 11;
7516
7668
  */
7517
7669
  attachmentChangeTime?: Timestamp | undefined;
7670
+ /**
7671
+ * Absolute ceiling for image preparation and initial supervisor startup.
7672
+ * Set once per new attempt; progress, configuration writes, and restarts
7673
+ * cannot extend it. Absent on attempts created before preparation timing.
7674
+ *
7675
+ * @generated from field: google.protobuf.Timestamp preparation_deadline = 12;
7676
+ */
7677
+ preparationDeadline?: Timestamp | undefined;
7678
+ /**
7679
+ * First authenticated supervisor configuration report for this attempt.
7680
+ * Starts the admission repair window. Absent while preparing, including
7681
+ * after a preparation timeout. Duplicate reports never change this value.
7682
+ *
7683
+ * @generated from field: google.protobuf.Timestamp admission_start_time = 13;
7684
+ */
7685
+ admissionStartTime?: Timestamp | undefined;
7686
+ /**
7687
+ * An owned driver create/start future is still pending. Claimed before
7688
+ * dispatch and cleared on its actual success or error response. Monitor
7689
+ * interruption, owner loss, and StopSandbox/NotFound do not clear it.
7690
+ * While set, cleanup cannot complete and retry/deletion remain blocked.
7691
+ * This does not strengthen a driver's transport-error settlement contract.
7692
+ *
7693
+ * @generated from field: bool driver_operation_pending = 14;
7694
+ */
7695
+ driverOperationPending: boolean;
7696
+ /**
7697
+ * Unique for each claimed driver operation, including recovery and automatic
7698
+ * restart. Retained after settlement to reject delayed callbacks from an
7699
+ * earlier operation on the same attempt and runtime generation.
7700
+ *
7701
+ * @generated from field: string driver_operation_id = 15;
7702
+ */
7703
+ driverOperationId: string;
7518
7704
  };
7519
7705
  /**
7520
7706
  * Describes the message openshell.v1.SandboxProvisioning.
@@ -7539,6 +7725,12 @@ export type SandboxServiceExposure = Message<"openshell.v1.SandboxServiceExposur
7539
7725
  * @generated from field: uint32 target_port = 2;
7540
7726
  */
7541
7727
  targetPort: number;
7728
+ /**
7729
+ * Application authorization behavior. Omission resolves to STRIP.
7730
+ *
7731
+ * @generated from field: openshell.v1.ServiceAuthorizationMode authorization_mode = 3;
7732
+ */
7733
+ authorizationMode: ServiceAuthorizationMode;
7542
7734
  };
7543
7735
  /**
7544
7736
  * Describes the message openshell.v1.SandboxServiceExposure.
@@ -8145,6 +8337,35 @@ export declare enum ProviderCredentialRefreshRecoveryAction {
8145
8337
  * Describes the enum openshell.v1.ProviderCredentialRefreshRecoveryAction.
8146
8338
  */
8147
8339
  export declare const ProviderCredentialRefreshRecoveryActionSchema: GenEnum<ProviderCredentialRefreshRecoveryAction>;
8340
+ /**
8341
+ * Policy applied when the canonical main process exits outside an intentional
8342
+ * stop or delete operation. Kept after existing enums so generated enum
8343
+ * descriptors remain stable.
8344
+ *
8345
+ * @generated from enum openshell.v1.SandboxRestartPolicy
8346
+ */
8347
+ export declare enum SandboxRestartPolicy {
8348
+ /**
8349
+ * @generated from enum value: SANDBOX_RESTART_POLICY_UNSPECIFIED = 0;
8350
+ */
8351
+ UNSPECIFIED = 0,
8352
+ /**
8353
+ * @generated from enum value: SANDBOX_RESTART_POLICY_NEVER = 1;
8354
+ */
8355
+ NEVER = 1,
8356
+ /**
8357
+ * @generated from enum value: SANDBOX_RESTART_POLICY_ON_FAILURE = 2;
8358
+ */
8359
+ ON_FAILURE = 2,
8360
+ /**
8361
+ * @generated from enum value: SANDBOX_RESTART_POLICY_ALWAYS = 3;
8362
+ */
8363
+ ALWAYS = 3
8364
+ }
8365
+ /**
8366
+ * Describes the enum openshell.v1.SandboxRestartPolicy.
8367
+ */
8368
+ export declare const SandboxRestartPolicySchema: GenEnum<SandboxRestartPolicy>;
8148
8369
  /**
8149
8370
  * Result of a public delete, membership removal, or session revocation.
8150
8371
  * Default requests return NOT_FOUND for a missing target. With allow_missing,
@@ -8245,6 +8466,36 @@ export declare enum EndpointResult {
8245
8466
  * Describes the enum openshell.v1.EndpointResult.
8246
8467
  */
8247
8468
  export declare const EndpointResultSchema: GenEnum<EndpointResult>;
8469
+ /**
8470
+ * Controls whether an exposed service receives the request's application
8471
+ * Authorization header.
8472
+ *
8473
+ * @generated from enum openshell.v1.ServiceAuthorizationMode
8474
+ */
8475
+ export declare enum ServiceAuthorizationMode {
8476
+ /**
8477
+ * Omission preserves the secure legacy behavior and resolves to STRIP.
8478
+ *
8479
+ * @generated from enum value: SERVICE_AUTHORIZATION_MODE_UNSPECIFIED = 0;
8480
+ */
8481
+ UNSPECIFIED = 0,
8482
+ /**
8483
+ * Remove Authorization before forwarding to the sandbox service.
8484
+ *
8485
+ * @generated from enum value: SERVICE_AUTHORIZATION_MODE_STRIP = 1;
8486
+ */
8487
+ STRIP = 1,
8488
+ /**
8489
+ * Forward one syntactically valid bearer Authorization header unchanged.
8490
+ *
8491
+ * @generated from enum value: SERVICE_AUTHORIZATION_MODE_BEARER_PASSTHROUGH = 2;
8492
+ */
8493
+ BEARER_PASSTHROUGH = 2
8494
+ }
8495
+ /**
8496
+ * Describes the enum openshell.v1.ServiceAuthorizationMode.
8497
+ */
8498
+ export declare const ServiceAuthorizationModeSchema: GenEnum<ServiceAuthorizationMode>;
8248
8499
  /**
8249
8500
  * OpenShell service provides sandbox, provider, and runtime management capabilities.
8250
8501
  *