modal 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -140,12 +140,20 @@ declare enum EndpointInputModality {
140
140
  ENDPOINT_INPUT_MODALITY_AUDIO = 3,
141
141
  UNRECOGNIZED = -1
142
142
  }
143
+ declare enum EndpointLifecycleStatus {
144
+ ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED = 0,
145
+ ENDPOINT_LIFECYCLE_STATUS_ACTIVE = 1,
146
+ ENDPOINT_LIFECYCLE_STATUS_STOPPED = 2,
147
+ UNRECOGNIZED = -1
148
+ }
143
149
  declare enum EndpointProvisioningStatus {
144
150
  ENDPOINT_PROVISIONING_STATUS_UNSPECIFIED = 0,
145
151
  ENDPOINT_PROVISIONING_STATUS_PENDING = 1,
146
152
  ENDPOINT_PROVISIONING_STATUS_RUNNING = 2,
147
153
  ENDPOINT_PROVISIONING_STATUS_SUCCEEDED = 3,
148
154
  ENDPOINT_PROVISIONING_STATUS_FAILED = 4,
155
+ ENDPOINT_PROVISIONING_STATUS_CANCELLING = 5,
156
+ ENDPOINT_PROVISIONING_STATUS_CANCELLED = 6,
149
157
  UNRECOGNIZED = -1
150
158
  }
151
159
  declare enum EndpointStopSource {
@@ -740,6 +748,12 @@ interface AppRollbackRequest {
740
748
  version: number;
741
749
  }
742
750
  declare const AppRollbackRequest: MessageFns$1<AppRollbackRequest>;
751
+ interface AppRollbackResponse {
752
+ url: string;
753
+ serverWarnings: Warning[];
754
+ deployedAt: number;
755
+ }
756
+ declare const AppRollbackResponse: MessageFns$1<AppRollbackResponse>;
743
757
  interface AppRolloverRequest {
744
758
  appId: string;
745
759
  }
@@ -1197,6 +1211,14 @@ interface CreationInfo {
1197
1211
  createdBy: string;
1198
1212
  }
1199
1213
  declare const CreationInfo: MessageFns$1<CreationInfo>;
1214
+ interface CurlAuthTokenRequest {
1215
+ url: string;
1216
+ }
1217
+ declare const CurlAuthTokenRequest: MessageFns$1<CurlAuthTokenRequest>;
1218
+ interface CurlAuthTokenResponse {
1219
+ token: string;
1220
+ }
1221
+ declare const CurlAuthTokenResponse: MessageFns$1<CurlAuthTokenResponse>;
1200
1222
  interface CustomDomainConfig {
1201
1223
  name: string;
1202
1224
  }
@@ -1390,11 +1412,13 @@ interface EndpointCreateRequest {
1390
1412
  apiSurfaces: EndpointApiSurface[];
1391
1413
  inputModalities: EndpointInputModality[];
1392
1414
  environmentName: string;
1415
+ unauthenticated: boolean;
1393
1416
  }
1394
1417
  declare const EndpointCreateRequest: MessageFns$1<EndpointCreateRequest>;
1395
1418
  interface EndpointCreateResponse {
1396
1419
  endpointId: string;
1397
1420
  endpointPageUrl: string;
1421
+ name: string;
1398
1422
  }
1399
1423
  declare const EndpointCreateResponse: MessageFns$1<EndpointCreateResponse>;
1400
1424
  interface EndpointCustomModelSource {
@@ -1403,12 +1427,42 @@ interface EndpointCustomModelSource {
1403
1427
  modalVolume?: EndpointModalVolumeModelSource | undefined;
1404
1428
  }
1405
1429
  declare const EndpointCustomModelSource: MessageFns$1<EndpointCustomModelSource>;
1430
+ interface EndpointGetByNameRequest {
1431
+ name: string;
1432
+ environmentName: string;
1433
+ }
1434
+ declare const EndpointGetByNameRequest: MessageFns$1<EndpointGetByNameRequest>;
1435
+ interface EndpointGetByNameResponse {
1436
+ endpointId: string;
1437
+ environmentName: string;
1438
+ }
1439
+ declare const EndpointGetByNameResponse: MessageFns$1<EndpointGetByNameResponse>;
1440
+ interface EndpointGetLifecycleRequest {
1441
+ endpointId: string;
1442
+ }
1443
+ declare const EndpointGetLifecycleRequest: MessageFns$1<EndpointGetLifecycleRequest>;
1444
+ interface EndpointGetLifecycleResponse {
1445
+ lifecycle: EndpointLifecycle | undefined;
1446
+ }
1447
+ declare const EndpointGetLifecycleResponse: MessageFns$1<EndpointGetLifecycleResponse>;
1406
1448
  interface EndpointHuggingFaceModelSource {
1407
1449
  repoId: string;
1408
1450
  revision: string;
1409
1451
  huggingfaceToken: string;
1410
1452
  }
1411
1453
  declare const EndpointHuggingFaceModelSource: MessageFns$1<EndpointHuggingFaceModelSource>;
1454
+ interface EndpointLifecycle {
1455
+ status: EndpointLifecycleStatus;
1456
+ createdAt: number;
1457
+ /** User or service user name */
1458
+ createdBy: string;
1459
+ /** Unset when Endpoint is active */
1460
+ stoppedAt: number;
1461
+ /** User or service user name */
1462
+ stoppedBy: string;
1463
+ environmentName: string;
1464
+ }
1465
+ declare const EndpointLifecycle: MessageFns$1<EndpointLifecycle>;
1412
1466
  interface EndpointListItem {
1413
1467
  endpointId: string;
1414
1468
  name: string;
@@ -1420,6 +1474,7 @@ interface EndpointListItem {
1420
1474
  functionId: string;
1421
1475
  createdByAvatarUrl: string;
1422
1476
  provisioningStatus: EndpointProvisioningStatus;
1477
+ status: string;
1423
1478
  }
1424
1479
  declare const EndpointListItem: MessageFns$1<EndpointListItem>;
1425
1480
  interface EndpointListRequest {
@@ -1465,6 +1520,17 @@ interface EnvironmentDeleteRequest {
1465
1520
  name: string;
1466
1521
  }
1467
1522
  declare const EnvironmentDeleteRequest: MessageFns$1<EnvironmentDeleteRequest>;
1523
+ interface EnvironmentGetBudgetRequest {
1524
+ environmentId: string;
1525
+ }
1526
+ declare const EnvironmentGetBudgetRequest: MessageFns$1<EnvironmentGetBudgetRequest>;
1527
+ interface EnvironmentGetBudgetResponse {
1528
+ cycleBudgetDollars?: number | undefined;
1529
+ effectiveCycleSpendLimit: number;
1530
+ currentCycleUsage: number;
1531
+ spendLimitReached: boolean;
1532
+ }
1533
+ declare const EnvironmentGetBudgetResponse: MessageFns$1<EnvironmentGetBudgetResponse>;
1468
1534
  interface EnvironmentGetManagedRequest {
1469
1535
  environmentId: string;
1470
1536
  }
@@ -1509,6 +1575,11 @@ interface EnvironmentListItem {
1509
1575
  maxConcurrentGpus?: number | undefined;
1510
1576
  currentConcurrentTasks: number;
1511
1577
  currentConcurrentGpus: number;
1578
+ /** manager-set */
1579
+ cycleBudgetDollars?: number | undefined;
1580
+ effectiveCycleSpendLimit: number;
1581
+ currentCycleUsage: number;
1582
+ spendLimitReached: boolean;
1512
1583
  }
1513
1584
  declare const EnvironmentListItem: MessageFns$1<EnvironmentListItem>;
1514
1585
  interface EnvironmentListResponse {
@@ -1527,6 +1598,12 @@ interface EnvironmentRoleSetRequest {
1527
1598
  role: EnvironmentRole;
1528
1599
  }
1529
1600
  declare const EnvironmentRoleSetRequest: MessageFns$1<EnvironmentRoleSetRequest>;
1601
+ interface EnvironmentSetBudgetRequest {
1602
+ environmentId: string;
1603
+ cycleBudgetDollars?: number | undefined;
1604
+ clearBudget: boolean;
1605
+ }
1606
+ declare const EnvironmentSetBudgetRequest: MessageFns$1<EnvironmentSetBudgetRequest>;
1530
1607
  interface EnvironmentSetManagedRequest {
1531
1608
  environmentId: string;
1532
1609
  managed: boolean;
@@ -2315,6 +2392,7 @@ interface HTTPConfig {
2315
2392
  exitGracePeriod: number;
2316
2393
  h2Enabled: boolean;
2317
2394
  targetConcurrency: number;
2395
+ unauthenticated: boolean;
2318
2396
  }
2319
2397
  declare const HTTPConfig: MessageFns$1<HTTPConfig>;
2320
2398
  interface Image$1 {
@@ -3141,6 +3219,7 @@ declare const SandboxCreateResponse: MessageFns$1<SandboxCreateResponse>;
3141
3219
  interface SandboxCreateV2Request {
3142
3220
  appId: string;
3143
3221
  definition: Sandbox$1 | undefined;
3222
+ ephemeralSecrets: StringMap | undefined;
3144
3223
  }
3145
3224
  declare const SandboxCreateV2Request: MessageFns$1<SandboxCreateV2Request>;
3146
3225
  interface SandboxCreateV2Response {
@@ -3261,6 +3340,8 @@ interface SandboxRestoreRequest {
3261
3340
  sandboxNameOverrideType: SandboxRestoreRequest_SandboxNameOverrideType;
3262
3341
  /** For internal debugging use only. */
3263
3342
  workerId: string;
3343
+ replaceVolumeMounts: boolean;
3344
+ volumeMounts: VolumeMount[];
3264
3345
  }
3265
3346
  declare const SandboxRestoreRequest: MessageFns$1<SandboxRestoreRequest>;
3266
3347
  interface SandboxRestoreResponse {
@@ -3580,6 +3661,7 @@ declare const SystemErrorMessage: MessageFns$1<SystemErrorMessage>;
3580
3661
  interface TaskClusterHelloRequest {
3581
3662
  taskId: string;
3582
3663
  containerIp: string;
3664
+ imexHostIp: string;
3583
3665
  }
3584
3666
  declare const TaskClusterHelloRequest: MessageFns$1<TaskClusterHelloRequest>;
3585
3667
  interface TaskClusterHelloResponse {
@@ -3588,6 +3670,11 @@ interface TaskClusterHelloResponse {
3588
3670
  /** All IPv6 addresses in cluster, ordered by cluster rank */
3589
3671
  containerIps: string[];
3590
3672
  containerIpv4Ips: string[];
3673
+ /**
3674
+ * Host IPs of every gang member's nvidia-imex daemon, ordered by cluster rank,
3675
+ * and otherwise absent on non-NVL72 systems
3676
+ */
3677
+ imexPeerIps: string[];
3591
3678
  }
3592
3679
  declare const TaskClusterHelloResponse: MessageFns$1<TaskClusterHelloResponse>;
3593
3680
  interface TaskCurrentInputsResponse {
@@ -3711,6 +3798,15 @@ interface TemplateListResponse_TemplateListItem {
3711
3798
  ref: string;
3712
3799
  }
3713
3800
  declare const TemplateListResponse_TemplateListItem: MessageFns$1<TemplateListResponse_TemplateListItem>;
3801
+ interface TokenCreateResponse {
3802
+ tokenId: string;
3803
+ tokenSecret: string;
3804
+ }
3805
+ declare const TokenCreateResponse: MessageFns$1<TokenCreateResponse>;
3806
+ interface TokenDeleteRequest {
3807
+ tokenId: string;
3808
+ }
3809
+ declare const TokenDeleteRequest: MessageFns$1<TokenDeleteRequest>;
3714
3810
  interface TokenFlowCreateRequest {
3715
3811
  utmSource: string;
3716
3812
  localhostPort: number;
@@ -3796,6 +3892,12 @@ interface VolumeCommitRequest {
3796
3892
  * a volume mount.
3797
3893
  */
3798
3894
  volumeId: string;
3895
+ /**
3896
+ * Set by the runtime when committing a volume mounted in a sandbox
3897
+ * sidecar container (used for runtime-driven commit-on-exit).
3898
+ * Unset targets the task's main container.
3899
+ */
3900
+ containerId?: string | undefined;
3799
3901
  }
3800
3902
  declare const VolumeCommitRequest: MessageFns$1<VolumeCommitRequest>;
3801
3903
  interface VolumeCommitResponse {
@@ -4078,6 +4180,42 @@ interface WebhookConfig {
4078
4180
  ephemeralSuffix: string;
4079
4181
  }
4080
4182
  declare const WebhookConfig: MessageFns$1<WebhookConfig>;
4183
+ interface WebhookToken {
4184
+ tokenId: string;
4185
+ createdAt: number;
4186
+ scoped: boolean;
4187
+ }
4188
+ declare const WebhookToken: MessageFns$1<WebhookToken>;
4189
+ interface WebhookTokenCreateRequest {
4190
+ scoped: boolean;
4191
+ }
4192
+ declare const WebhookTokenCreateRequest: MessageFns$1<WebhookTokenCreateRequest>;
4193
+ interface WebhookTokenEnvironmentAddRequest {
4194
+ tokenId: string;
4195
+ environmentId: string;
4196
+ }
4197
+ declare const WebhookTokenEnvironmentAddRequest: MessageFns$1<WebhookTokenEnvironmentAddRequest>;
4198
+ interface WebhookTokenEnvironmentListRequest {
4199
+ tokenId: string;
4200
+ }
4201
+ declare const WebhookTokenEnvironmentListRequest: MessageFns$1<WebhookTokenEnvironmentListRequest>;
4202
+ interface WebhookTokenEnvironmentListResponse {
4203
+ environmentIds: string[];
4204
+ }
4205
+ declare const WebhookTokenEnvironmentListResponse: MessageFns$1<WebhookTokenEnvironmentListResponse>;
4206
+ interface WebhookTokenEnvironmentRemoveRequest {
4207
+ tokenId: string;
4208
+ environmentId: string;
4209
+ }
4210
+ declare const WebhookTokenEnvironmentRemoveRequest: MessageFns$1<WebhookTokenEnvironmentRemoveRequest>;
4211
+ interface WebhookTokenListForEnvironmentRequest {
4212
+ environmentName: string;
4213
+ }
4214
+ declare const WebhookTokenListForEnvironmentRequest: MessageFns$1<WebhookTokenListForEnvironmentRequest>;
4215
+ interface WebhookTokenListResponse {
4216
+ tokens: WebhookToken[];
4217
+ }
4218
+ declare const WebhookTokenListResponse: MessageFns$1<WebhookTokenListResponse>;
4081
4219
  interface WorkspaceBillingReportItem {
4082
4220
  objectId: string;
4083
4221
  description: string;
@@ -4087,6 +4225,13 @@ interface WorkspaceBillingReportItem {
4087
4225
  tags: {
4088
4226
  [key: string]: string;
4089
4227
  };
4228
+ /** old field to be removed */
4229
+ costByResourceFloat: {
4230
+ [key: string]: number;
4231
+ };
4232
+ costByResource: {
4233
+ [key: string]: string;
4234
+ };
4090
4235
  }
4091
4236
  declare const WorkspaceBillingReportItem: MessageFns$1<WorkspaceBillingReportItem>;
4092
4237
  interface WorkspaceBillingReportRequest {
@@ -4096,6 +4241,8 @@ interface WorkspaceBillingReportRequest {
4096
4241
  /** e.g. 'd' or 'h'; server defines what we accept */
4097
4242
  resolution: string;
4098
4243
  tagNames: string[];
4244
+ environmentIds: string[];
4245
+ appIds: string[];
4099
4246
  }
4100
4247
  declare const WorkspaceBillingReportRequest: MessageFns$1<WorkspaceBillingReportRequest>;
4101
4248
  interface WorkspaceDashboardUrlRequest {
@@ -4276,7 +4423,7 @@ declare const ModalClientDefinition: {
4276
4423
  readonly name: "AppRollback";
4277
4424
  readonly requestType: MessageFns$1<AppRollbackRequest>;
4278
4425
  readonly requestStream: false;
4279
- readonly responseType: MessageFns$2<Empty>;
4426
+ readonly responseType: MessageFns$1<AppRollbackResponse>;
4280
4427
  readonly responseStream: false;
4281
4428
  readonly options: {};
4282
4429
  };
@@ -4503,6 +4650,15 @@ declare const ModalClientDefinition: {
4503
4650
  readonly responseStream: false;
4504
4651
  readonly options: {};
4505
4652
  };
4653
+ /** Curl */
4654
+ readonly curlGetAuthToken: {
4655
+ readonly name: "CurlGetAuthToken";
4656
+ readonly requestType: MessageFns$1<CurlAuthTokenRequest>;
4657
+ readonly requestStream: false;
4658
+ readonly responseType: MessageFns$1<CurlAuthTokenResponse>;
4659
+ readonly responseStream: false;
4660
+ readonly options: {};
4661
+ };
4506
4662
  /** Dicts */
4507
4663
  readonly dictClear: {
4508
4664
  readonly name: "DictClear";
@@ -4634,6 +4790,22 @@ declare const ModalClientDefinition: {
4634
4790
  readonly responseStream: false;
4635
4791
  readonly options: {};
4636
4792
  };
4793
+ readonly endpointGetByName: {
4794
+ readonly name: "EndpointGetByName";
4795
+ readonly requestType: MessageFns$1<EndpointGetByNameRequest>;
4796
+ readonly requestStream: false;
4797
+ readonly responseType: MessageFns$1<EndpointGetByNameResponse>;
4798
+ readonly responseStream: false;
4799
+ readonly options: {};
4800
+ };
4801
+ readonly endpointGetLifecycle: {
4802
+ readonly name: "EndpointGetLifecycle";
4803
+ readonly requestType: MessageFns$1<EndpointGetLifecycleRequest>;
4804
+ readonly requestStream: false;
4805
+ readonly responseType: MessageFns$1<EndpointGetLifecycleResponse>;
4806
+ readonly responseStream: false;
4807
+ readonly options: {};
4808
+ };
4637
4809
  readonly endpointList: {
4638
4810
  readonly name: "EndpointList";
4639
4811
  readonly requestType: MessageFns$1<EndpointListRequest>;
@@ -4667,6 +4839,14 @@ declare const ModalClientDefinition: {
4667
4839
  readonly responseStream: false;
4668
4840
  readonly options: {};
4669
4841
  };
4842
+ readonly environmentGetBudget: {
4843
+ readonly name: "EnvironmentGetBudget";
4844
+ readonly requestType: MessageFns$1<EnvironmentGetBudgetRequest>;
4845
+ readonly requestStream: false;
4846
+ readonly responseType: MessageFns$1<EnvironmentGetBudgetResponse>;
4847
+ readonly responseStream: false;
4848
+ readonly options: {};
4849
+ };
4670
4850
  readonly environmentGetManaged: {
4671
4851
  readonly name: "EnvironmentGetManaged";
4672
4852
  readonly requestType: MessageFns$1<EnvironmentGetManagedRequest>;
@@ -4699,6 +4879,14 @@ declare const ModalClientDefinition: {
4699
4879
  readonly responseStream: false;
4700
4880
  readonly options: {};
4701
4881
  };
4882
+ readonly environmentSetBudget: {
4883
+ readonly name: "EnvironmentSetBudget";
4884
+ readonly requestType: MessageFns$1<EnvironmentSetBudgetRequest>;
4885
+ readonly requestStream: false;
4886
+ readonly responseType: MessageFns$2<Empty>;
4887
+ readonly responseStream: false;
4888
+ readonly options: {};
4889
+ };
4702
4890
  readonly environmentSetManaged: {
4703
4891
  readonly name: "EnvironmentSetManaged";
4704
4892
  readonly requestType: MessageFns$1<EnvironmentSetManagedRequest>;
@@ -5785,6 +5973,63 @@ declare const ModalClientDefinition: {
5785
5973
  readonly responseStream: false;
5786
5974
  readonly options: {};
5787
5975
  };
5976
+ /** Webhook tokens (proxy tokens) */
5977
+ readonly webhookTokenCreate: {
5978
+ readonly name: "WebhookTokenCreate";
5979
+ readonly requestType: MessageFns$1<WebhookTokenCreateRequest>;
5980
+ readonly requestStream: false;
5981
+ readonly responseType: MessageFns$1<TokenCreateResponse>;
5982
+ readonly responseStream: false;
5983
+ readonly options: {};
5984
+ };
5985
+ readonly webhookTokenDelete: {
5986
+ readonly name: "WebhookTokenDelete";
5987
+ readonly requestType: MessageFns$1<TokenDeleteRequest>;
5988
+ readonly requestStream: false;
5989
+ readonly responseType: MessageFns$2<Empty>;
5990
+ readonly responseStream: false;
5991
+ readonly options: {};
5992
+ };
5993
+ readonly webhookTokenEnvironmentAdd: {
5994
+ readonly name: "WebhookTokenEnvironmentAdd";
5995
+ readonly requestType: MessageFns$1<WebhookTokenEnvironmentAddRequest>;
5996
+ readonly requestStream: false;
5997
+ readonly responseType: MessageFns$2<Empty>;
5998
+ readonly responseStream: false;
5999
+ readonly options: {};
6000
+ };
6001
+ readonly webhookTokenEnvironmentList: {
6002
+ readonly name: "WebhookTokenEnvironmentList";
6003
+ readonly requestType: MessageFns$1<WebhookTokenEnvironmentListRequest>;
6004
+ readonly requestStream: false;
6005
+ readonly responseType: MessageFns$1<WebhookTokenEnvironmentListResponse>;
6006
+ readonly responseStream: false;
6007
+ readonly options: {};
6008
+ };
6009
+ readonly webhookTokenEnvironmentRemove: {
6010
+ readonly name: "WebhookTokenEnvironmentRemove";
6011
+ readonly requestType: MessageFns$1<WebhookTokenEnvironmentRemoveRequest>;
6012
+ readonly requestStream: false;
6013
+ readonly responseType: MessageFns$2<Empty>;
6014
+ readonly responseStream: false;
6015
+ readonly options: {};
6016
+ };
6017
+ readonly webhookTokenList: {
6018
+ readonly name: "WebhookTokenList";
6019
+ readonly requestType: MessageFns$2<Empty>;
6020
+ readonly requestStream: false;
6021
+ readonly responseType: MessageFns$1<WebhookTokenListResponse>;
6022
+ readonly responseStream: false;
6023
+ readonly options: {};
6024
+ };
6025
+ readonly webhookTokenListForEnvironment: {
6026
+ readonly name: "WebhookTokenListForEnvironment";
6027
+ readonly requestType: MessageFns$1<WebhookTokenListForEnvironmentRequest>;
6028
+ readonly requestStream: false;
6029
+ readonly responseType: MessageFns$1<WebhookTokenListResponse>;
6030
+ readonly responseStream: false;
6031
+ readonly options: {};
6032
+ };
5788
6033
  /** Workspaces */
5789
6034
  readonly workspaceBillingReport: {
5790
6035
  readonly name: "WorkspaceBillingReport";
@@ -6495,6 +6740,10 @@ declare enum TaskExecStdoutConfig {
6495
6740
  TASK_EXEC_STDOUT_CONFIG_PIPE = 1,
6496
6741
  UNRECOGNIZED = -1
6497
6742
  }
6743
+ interface SandboxWaitUntilReadyTcrResponse {
6744
+ readyAt: number;
6745
+ }
6746
+ declare const SandboxWaitUntilReadyTcrResponse: MessageFns<SandboxWaitUntilReadyTcrResponse>;
6498
6747
  interface TaskContainerCreateRequest {
6499
6748
  taskId: string;
6500
6749
  /** Logical container name. */
@@ -6507,6 +6756,8 @@ interface TaskContainerCreateRequest {
6507
6756
  workdir: string;
6508
6757
  /** Secret IDs to inject into the container as environment variables. */
6509
6758
  secretIds: string[];
6759
+ /** Volumes to mount into the container. */
6760
+ volumeMounts: VolumeMount[];
6510
6761
  }
6511
6762
  declare const TaskContainerCreateRequest: MessageFns<TaskContainerCreateRequest>;
6512
6763
  interface TaskContainerCreateResponse {
@@ -6764,6 +7015,7 @@ declare class TaskCommandRouterClientImpl {
6764
7015
  snapshotDirectory(request: TaskSnapshotDirectoryRequest, options?: TimeoutOptions): Promise<TaskSnapshotDirectoryResponse>;
6765
7016
  snapshotFilesystem(request: TaskSnapshotFilesystemRequest, options?: TimeoutOptions): Promise<TaskSnapshotFilesystemResponse>;
6766
7017
  unmountDirectory(request: TaskUnmountDirectoryRequest): Promise<void>;
7018
+ sandboxWaitUntilReady(taskId: string, timeoutMs: number): Promise<SandboxWaitUntilReadyTcrResponse>;
6767
7019
  private refreshJwt;
6768
7020
  private callWithAuthRetry;
6769
7021
  private streamStdio;
@@ -7135,6 +7387,10 @@ type SandboxCreateParams = {
7135
7387
  outboundDomainAllowlist?: string[];
7136
7388
  /** List of CIDRs allowed to connect inbound to the Sandbox (tunnels and connection tokens). If not set, all IPs are allowed. Cannot be used with blockNetwork. */
7137
7389
  inboundCidrAllowlist?: string[];
7390
+ /** Enable private IPv6 networking (i6pn) so Sandboxes in the same workspace can address each
7391
+ * other directly at their `i6pn.modal.local` address. Pin every Sandbox in the group to the same specific region
7392
+ * (e.g. `regions: ["us-east-1"]`). Cannot be used with blockNetwork. */
7393
+ i6pn?: boolean;
7138
7394
  /** Cloud provider to run the Sandbox on. */
7139
7395
  cloud?: string;
7140
7396
  /** Region(s) to run the Sandbox on. */
@@ -7179,12 +7435,11 @@ declare class SandboxService {
7179
7435
  *
7180
7436
  * Supported features include exec, encrypted tunnels, wait/poll/terminate,
7181
7437
  * CPU and memory configuration, region placement, volumes, cloud bucket
7182
- * mounts (with static credentials via {@link Secret}), and filesystem
7183
- * snapshots.
7438
+ * mounts (with static credentials via {@link Secret} or `oidcAuthRoleArn`),
7439
+ * OIDC identity tokens, {@link Proxy proxies}, and filesystem snapshots.
7184
7440
  *
7185
- * Features like tags, memory snapshots, GPUs, custom domains, OIDC identity
7186
- * tokens (including `oidcAuthRoleArn` on a {@link CloudBucketMount}),
7187
- * proxies, and readiness probes are not supported.
7441
+ * Features like tags, memory snapshots, GPUs, and custom domains are not
7442
+ * supported.
7188
7443
  *
7189
7444
  * V2 sandboxes created with this method are not currently returned by
7190
7445
  * {@link SandboxService#list client.sandboxes.list()} and cannot be looked up
@@ -7249,7 +7504,7 @@ type SandboxExecParams = {
7249
7504
  * process) is multiplexed into stdout, and the stderr stream is effectively empty. */
7250
7505
  pty?: boolean;
7251
7506
  };
7252
- /** Optional parameters for {@link Sandbox#createConnectToken Sandbox.createConnectToken()}. */
7507
+ /** Optional parameters for {@link Sandbox#terminate Sandbox.terminate()}. */
7253
7508
  type SandboxTerminateParams = {
7254
7509
  /** If true, wait for the Sandbox to finish and return the exit code. */
7255
7510
  wait?: boolean;
@@ -7283,10 +7538,27 @@ type SandboxSnapshotDirectoryParams = {
7283
7538
  * the image indefinitely.
7284
7539
  */
7285
7540
  ttlMs?: number | null;
7541
+ /**
7542
+ * Experimental customer-supplied encryption key used to encrypt the
7543
+ * resulting snapshot. The same key is required when mounting the image.
7544
+ * Modal does not persist the key.
7545
+ */
7546
+ experimentalEncryptionKey?: Uint8Array;
7286
7547
  };
7548
+ /** Optional parameters for {@link Sandbox#mountImage Sandbox.mountImage()}. */
7549
+ type SandboxMountImageParams = {
7550
+ /**
7551
+ * Experimental customer-supplied encryption key used to decrypt the image.
7552
+ * Use the same key that encrypted the snapshot.
7553
+ */
7554
+ experimentalEncryptionKey?: Uint8Array;
7555
+ };
7556
+ /** Optional parameters for {@link Sandbox#createConnectToken Sandbox.createConnectToken()}. */
7287
7557
  type SandboxCreateConnectTokenParams = {
7288
7558
  /** Optional user-provided metadata string that will be added to the headers by the proxy when forwarding requests to the Sandbox. */
7289
7559
  userMetadata?: string;
7560
+ /** Container port that requests are routed to when using this token. Defaults to 8080. */
7561
+ port?: number;
7290
7562
  };
7291
7563
  /** Credentials returned by {@link Sandbox#createConnectToken Sandbox.createConnectToken()}. */
7292
7564
  type SandboxCreateConnectCredentials = {
@@ -7389,8 +7661,9 @@ declare class Sandbox {
7389
7661
  *
7390
7662
  * @param path - The path where the directory should be mounted
7391
7663
  * @param image - Optional {@link Image} to mount. If undefined, mounts an empty directory.
7664
+ * @param params - Optional parameters; see {@link SandboxMountImageParams}.
7392
7665
  */
7393
- mountImage(path: string, image?: Image): Promise<void>;
7666
+ mountImage(path: string, image?: Image, params?: SandboxMountImageParams): Promise<void>;
7394
7667
  /**
7395
7668
  * Unmounts an {@link Image} previously mounted at a path in the Sandbox filesystem.
7396
7669
  *
@@ -7647,4 +7920,4 @@ declare class ClientClosedError extends Error {
7647
7920
 
7648
7921
  declare function checkForRenamedParams(params: any, renames: Record<string, string>): void;
7649
7922
 
7650
- export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ContainerProcess, type FileInfo, type FileType, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, FunctionCallService, type FunctionFromNameParams, FunctionService, type FunctionStats, FunctionTimeoutError, type FunctionUpdateAutoscalerParams, type FunctionWithBatchingParams, type FunctionWithConcurrencyParams, type FunctionWithOptionsParams, Function_, Image, type ImageDeleteParams, type ImageDockerfileCommandsParams, type ImageFromNameParams, type ImagePublishParams, ImageService, InternalFailure, InvalidError, type LogLevel, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, Probe, type ProbeParams, type Profile, Proxy, type ProxyFromNameParams, ProxyService, Queue, type QueueClearParams, type QueueDeleteParams, QueueEmptyError, type QueueEphemeralParams, type QueueFromNameParams, QueueFullError, type QueueGetParams, type QueueIterateParams, type QueueLenParams, type QueuePutParams, QueueService, RemoteError, Retries, Sandbox, type SandboxCreateConnectCredentials, type SandboxCreateConnectTokenParams, type SandboxCreateParams, type SandboxExecParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, SandboxService, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, type SandboxTerminateParams, SandboxTimeoutError, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, SidecarService, type SidecarTerminateParams, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptions, VolumeService, checkForRenamedParams };
7923
+ export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ContainerProcess, type FileInfo, type FileType, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, FunctionCallService, type FunctionFromNameParams, FunctionService, type FunctionStats, FunctionTimeoutError, type FunctionUpdateAutoscalerParams, type FunctionWithBatchingParams, type FunctionWithConcurrencyParams, type FunctionWithOptionsParams, Function_, Image, type ImageDeleteParams, type ImageDockerfileCommandsParams, type ImageFromNameParams, type ImagePublishParams, ImageService, InternalFailure, InvalidError, type LogLevel, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, Probe, type ProbeParams, type Profile, Proxy, type ProxyFromNameParams, ProxyService, Queue, type QueueClearParams, type QueueDeleteParams, QueueEmptyError, type QueueEphemeralParams, type QueueFromNameParams, QueueFullError, type QueueGetParams, type QueueIterateParams, type QueueLenParams, type QueuePutParams, QueueService, RemoteError, Retries, Sandbox, type SandboxCreateConnectCredentials, type SandboxCreateConnectTokenParams, type SandboxCreateParams, type SandboxExecParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxMountImageParams, SandboxService, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, type SandboxTerminateParams, SandboxTimeoutError, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, SidecarService, type SidecarTerminateParams, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptions, VolumeService, checkForRenamedParams };