modal 0.8.0 → 0.8.2

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.ts 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
  }
@@ -1185,6 +1199,8 @@ interface ContainerReloadVolumesResponse {
1185
1199
  declare const ContainerReloadVolumesResponse: MessageFns$1<ContainerReloadVolumesResponse>;
1186
1200
  interface ContainerStopRequest {
1187
1201
  taskId: string;
1202
+ /** Let a Function container finish processing any inputs before exiting. */
1203
+ graceful: boolean;
1188
1204
  }
1189
1205
  declare const ContainerStopRequest: MessageFns$1<ContainerStopRequest>;
1190
1206
  interface ContainerStopResponse {
@@ -1197,6 +1213,14 @@ interface CreationInfo {
1197
1213
  createdBy: string;
1198
1214
  }
1199
1215
  declare const CreationInfo: MessageFns$1<CreationInfo>;
1216
+ interface CurlAuthTokenRequest {
1217
+ url: string;
1218
+ }
1219
+ declare const CurlAuthTokenRequest: MessageFns$1<CurlAuthTokenRequest>;
1220
+ interface CurlAuthTokenResponse {
1221
+ token: string;
1222
+ }
1223
+ declare const CurlAuthTokenResponse: MessageFns$1<CurlAuthTokenResponse>;
1200
1224
  interface CustomDomainConfig {
1201
1225
  name: string;
1202
1226
  }
@@ -1390,11 +1414,13 @@ interface EndpointCreateRequest {
1390
1414
  apiSurfaces: EndpointApiSurface[];
1391
1415
  inputModalities: EndpointInputModality[];
1392
1416
  environmentName: string;
1417
+ unauthenticated: boolean;
1393
1418
  }
1394
1419
  declare const EndpointCreateRequest: MessageFns$1<EndpointCreateRequest>;
1395
1420
  interface EndpointCreateResponse {
1396
1421
  endpointId: string;
1397
1422
  endpointPageUrl: string;
1423
+ name: string;
1398
1424
  }
1399
1425
  declare const EndpointCreateResponse: MessageFns$1<EndpointCreateResponse>;
1400
1426
  interface EndpointCustomModelSource {
@@ -1403,12 +1429,42 @@ interface EndpointCustomModelSource {
1403
1429
  modalVolume?: EndpointModalVolumeModelSource | undefined;
1404
1430
  }
1405
1431
  declare const EndpointCustomModelSource: MessageFns$1<EndpointCustomModelSource>;
1432
+ interface EndpointGetByNameRequest {
1433
+ name: string;
1434
+ environmentName: string;
1435
+ }
1436
+ declare const EndpointGetByNameRequest: MessageFns$1<EndpointGetByNameRequest>;
1437
+ interface EndpointGetByNameResponse {
1438
+ endpointId: string;
1439
+ environmentName: string;
1440
+ }
1441
+ declare const EndpointGetByNameResponse: MessageFns$1<EndpointGetByNameResponse>;
1442
+ interface EndpointGetLifecycleRequest {
1443
+ endpointId: string;
1444
+ }
1445
+ declare const EndpointGetLifecycleRequest: MessageFns$1<EndpointGetLifecycleRequest>;
1446
+ interface EndpointGetLifecycleResponse {
1447
+ lifecycle: EndpointLifecycle | undefined;
1448
+ }
1449
+ declare const EndpointGetLifecycleResponse: MessageFns$1<EndpointGetLifecycleResponse>;
1406
1450
  interface EndpointHuggingFaceModelSource {
1407
1451
  repoId: string;
1408
1452
  revision: string;
1409
1453
  huggingfaceToken: string;
1410
1454
  }
1411
1455
  declare const EndpointHuggingFaceModelSource: MessageFns$1<EndpointHuggingFaceModelSource>;
1456
+ interface EndpointLifecycle {
1457
+ status: EndpointLifecycleStatus;
1458
+ createdAt: number;
1459
+ /** User or service user name */
1460
+ createdBy: string;
1461
+ /** Unset when Endpoint is active */
1462
+ stoppedAt: number;
1463
+ /** User or service user name */
1464
+ stoppedBy: string;
1465
+ environmentName: string;
1466
+ }
1467
+ declare const EndpointLifecycle: MessageFns$1<EndpointLifecycle>;
1412
1468
  interface EndpointListItem {
1413
1469
  endpointId: string;
1414
1470
  name: string;
@@ -1420,6 +1476,7 @@ interface EndpointListItem {
1420
1476
  functionId: string;
1421
1477
  createdByAvatarUrl: string;
1422
1478
  provisioningStatus: EndpointProvisioningStatus;
1479
+ status: string;
1423
1480
  }
1424
1481
  declare const EndpointListItem: MessageFns$1<EndpointListItem>;
1425
1482
  interface EndpointListRequest {
@@ -1465,6 +1522,17 @@ interface EnvironmentDeleteRequest {
1465
1522
  name: string;
1466
1523
  }
1467
1524
  declare const EnvironmentDeleteRequest: MessageFns$1<EnvironmentDeleteRequest>;
1525
+ interface EnvironmentGetBudgetRequest {
1526
+ environmentId: string;
1527
+ }
1528
+ declare const EnvironmentGetBudgetRequest: MessageFns$1<EnvironmentGetBudgetRequest>;
1529
+ interface EnvironmentGetBudgetResponse {
1530
+ cycleBudgetDollars?: number | undefined;
1531
+ effectiveCycleSpendLimit: number;
1532
+ currentCycleUsage: number;
1533
+ spendLimitReached: boolean;
1534
+ }
1535
+ declare const EnvironmentGetBudgetResponse: MessageFns$1<EnvironmentGetBudgetResponse>;
1468
1536
  interface EnvironmentGetManagedRequest {
1469
1537
  environmentId: string;
1470
1538
  }
@@ -1509,6 +1577,11 @@ interface EnvironmentListItem {
1509
1577
  maxConcurrentGpus?: number | undefined;
1510
1578
  currentConcurrentTasks: number;
1511
1579
  currentConcurrentGpus: number;
1580
+ /** manager-set */
1581
+ cycleBudgetDollars?: number | undefined;
1582
+ effectiveCycleSpendLimit: number;
1583
+ currentCycleUsage: number;
1584
+ spendLimitReached: boolean;
1512
1585
  }
1513
1586
  declare const EnvironmentListItem: MessageFns$1<EnvironmentListItem>;
1514
1587
  interface EnvironmentListResponse {
@@ -1527,6 +1600,12 @@ interface EnvironmentRoleSetRequest {
1527
1600
  role: EnvironmentRole;
1528
1601
  }
1529
1602
  declare const EnvironmentRoleSetRequest: MessageFns$1<EnvironmentRoleSetRequest>;
1603
+ interface EnvironmentSetBudgetRequest {
1604
+ environmentId: string;
1605
+ cycleBudgetDollars?: number | undefined;
1606
+ clearBudget: boolean;
1607
+ }
1608
+ declare const EnvironmentSetBudgetRequest: MessageFns$1<EnvironmentSetBudgetRequest>;
1530
1609
  interface EnvironmentSetManagedRequest {
1531
1610
  environmentId: string;
1532
1611
  managed: boolean;
@@ -2156,6 +2235,7 @@ interface FunctionOptions$1 {
2156
2235
  replaceCloudBucketMounts: boolean;
2157
2236
  cloudBucketMounts: CloudBucketMount$1[];
2158
2237
  pinnedAppVersion?: number | undefined;
2238
+ routingRegion?: string | undefined;
2159
2239
  }
2160
2240
  declare const FunctionOptions$1: MessageFns$1<FunctionOptions$1>;
2161
2241
  interface FunctionPrecreateRequest {
@@ -2315,6 +2395,7 @@ interface HTTPConfig {
2315
2395
  exitGracePeriod: number;
2316
2396
  h2Enabled: boolean;
2317
2397
  targetConcurrency: number;
2398
+ unauthenticated: boolean;
2318
2399
  }
2319
2400
  declare const HTTPConfig: MessageFns$1<HTTPConfig>;
2320
2401
  interface Image$1 {
@@ -2485,6 +2566,7 @@ interface ImageTagRevisionsItem {
2485
2566
  imageId: string;
2486
2567
  revisionId: string;
2487
2568
  createdAt: number;
2569
+ publishedBy: string;
2488
2570
  }
2489
2571
  declare const ImageTagRevisionsItem: MessageFns$1<ImageTagRevisionsItem>;
2490
2572
  interface ImageTagRevisionsRequest {
@@ -3141,6 +3223,7 @@ declare const SandboxCreateResponse: MessageFns$1<SandboxCreateResponse>;
3141
3223
  interface SandboxCreateV2Request {
3142
3224
  appId: string;
3143
3225
  definition: Sandbox$1 | undefined;
3226
+ ephemeralSecrets: StringMap | undefined;
3144
3227
  }
3145
3228
  declare const SandboxCreateV2Request: MessageFns$1<SandboxCreateV2Request>;
3146
3229
  interface SandboxCreateV2Response {
@@ -3261,6 +3344,8 @@ interface SandboxRestoreRequest {
3261
3344
  sandboxNameOverrideType: SandboxRestoreRequest_SandboxNameOverrideType;
3262
3345
  /** For internal debugging use only. */
3263
3346
  workerId: string;
3347
+ replaceVolumeMounts: boolean;
3348
+ volumeMounts: VolumeMount[];
3264
3349
  }
3265
3350
  declare const SandboxRestoreRequest: MessageFns$1<SandboxRestoreRequest>;
3266
3351
  interface SandboxRestoreResponse {
@@ -3580,6 +3665,7 @@ declare const SystemErrorMessage: MessageFns$1<SystemErrorMessage>;
3580
3665
  interface TaskClusterHelloRequest {
3581
3666
  taskId: string;
3582
3667
  containerIp: string;
3668
+ imexHostIp: string;
3583
3669
  }
3584
3670
  declare const TaskClusterHelloRequest: MessageFns$1<TaskClusterHelloRequest>;
3585
3671
  interface TaskClusterHelloResponse {
@@ -3588,6 +3674,11 @@ interface TaskClusterHelloResponse {
3588
3674
  /** All IPv6 addresses in cluster, ordered by cluster rank */
3589
3675
  containerIps: string[];
3590
3676
  containerIpv4Ips: string[];
3677
+ /**
3678
+ * Host IPs of every gang member's nvidia-imex daemon, ordered by cluster rank,
3679
+ * and otherwise absent on non-NVL72 systems
3680
+ */
3681
+ imexPeerIps: string[];
3591
3682
  }
3592
3683
  declare const TaskClusterHelloResponse: MessageFns$1<TaskClusterHelloResponse>;
3593
3684
  interface TaskCurrentInputsResponse {
@@ -3711,6 +3802,15 @@ interface TemplateListResponse_TemplateListItem {
3711
3802
  ref: string;
3712
3803
  }
3713
3804
  declare const TemplateListResponse_TemplateListItem: MessageFns$1<TemplateListResponse_TemplateListItem>;
3805
+ interface TokenCreateResponse {
3806
+ tokenId: string;
3807
+ tokenSecret: string;
3808
+ }
3809
+ declare const TokenCreateResponse: MessageFns$1<TokenCreateResponse>;
3810
+ interface TokenDeleteRequest {
3811
+ tokenId: string;
3812
+ }
3813
+ declare const TokenDeleteRequest: MessageFns$1<TokenDeleteRequest>;
3714
3814
  interface TokenFlowCreateRequest {
3715
3815
  utmSource: string;
3716
3816
  localhostPort: number;
@@ -3796,6 +3896,12 @@ interface VolumeCommitRequest {
3796
3896
  * a volume mount.
3797
3897
  */
3798
3898
  volumeId: string;
3899
+ /**
3900
+ * Set by the runtime when committing a volume mounted in a sandbox
3901
+ * sidecar container (used for runtime-driven commit-on-exit).
3902
+ * Unset targets the task's main container.
3903
+ */
3904
+ containerId?: string | undefined;
3799
3905
  }
3800
3906
  declare const VolumeCommitRequest: MessageFns$1<VolumeCommitRequest>;
3801
3907
  interface VolumeCommitResponse {
@@ -4078,6 +4184,42 @@ interface WebhookConfig {
4078
4184
  ephemeralSuffix: string;
4079
4185
  }
4080
4186
  declare const WebhookConfig: MessageFns$1<WebhookConfig>;
4187
+ interface WebhookToken {
4188
+ tokenId: string;
4189
+ createdAt: number;
4190
+ scoped: boolean;
4191
+ }
4192
+ declare const WebhookToken: MessageFns$1<WebhookToken>;
4193
+ interface WebhookTokenCreateRequest {
4194
+ scoped: boolean;
4195
+ }
4196
+ declare const WebhookTokenCreateRequest: MessageFns$1<WebhookTokenCreateRequest>;
4197
+ interface WebhookTokenEnvironmentAddRequest {
4198
+ tokenId: string;
4199
+ environmentId: string;
4200
+ }
4201
+ declare const WebhookTokenEnvironmentAddRequest: MessageFns$1<WebhookTokenEnvironmentAddRequest>;
4202
+ interface WebhookTokenEnvironmentListRequest {
4203
+ tokenId: string;
4204
+ }
4205
+ declare const WebhookTokenEnvironmentListRequest: MessageFns$1<WebhookTokenEnvironmentListRequest>;
4206
+ interface WebhookTokenEnvironmentListResponse {
4207
+ environmentIds: string[];
4208
+ }
4209
+ declare const WebhookTokenEnvironmentListResponse: MessageFns$1<WebhookTokenEnvironmentListResponse>;
4210
+ interface WebhookTokenEnvironmentRemoveRequest {
4211
+ tokenId: string;
4212
+ environmentId: string;
4213
+ }
4214
+ declare const WebhookTokenEnvironmentRemoveRequest: MessageFns$1<WebhookTokenEnvironmentRemoveRequest>;
4215
+ interface WebhookTokenListForEnvironmentRequest {
4216
+ environmentName: string;
4217
+ }
4218
+ declare const WebhookTokenListForEnvironmentRequest: MessageFns$1<WebhookTokenListForEnvironmentRequest>;
4219
+ interface WebhookTokenListResponse {
4220
+ tokens: WebhookToken[];
4221
+ }
4222
+ declare const WebhookTokenListResponse: MessageFns$1<WebhookTokenListResponse>;
4081
4223
  interface WorkspaceBillingReportItem {
4082
4224
  objectId: string;
4083
4225
  description: string;
@@ -4087,6 +4229,13 @@ interface WorkspaceBillingReportItem {
4087
4229
  tags: {
4088
4230
  [key: string]: string;
4089
4231
  };
4232
+ /** old field to be removed */
4233
+ costByResourceFloat: {
4234
+ [key: string]: number;
4235
+ };
4236
+ costByResource: {
4237
+ [key: string]: string;
4238
+ };
4090
4239
  }
4091
4240
  declare const WorkspaceBillingReportItem: MessageFns$1<WorkspaceBillingReportItem>;
4092
4241
  interface WorkspaceBillingReportRequest {
@@ -4096,6 +4245,8 @@ interface WorkspaceBillingReportRequest {
4096
4245
  /** e.g. 'd' or 'h'; server defines what we accept */
4097
4246
  resolution: string;
4098
4247
  tagNames: string[];
4248
+ environmentIds: string[];
4249
+ appIds: string[];
4099
4250
  }
4100
4251
  declare const WorkspaceBillingReportRequest: MessageFns$1<WorkspaceBillingReportRequest>;
4101
4252
  interface WorkspaceDashboardUrlRequest {
@@ -4130,6 +4281,23 @@ interface WorkspaceNameLookupResponse {
4130
4281
  username: string;
4131
4282
  }
4132
4283
  declare const WorkspaceNameLookupResponse: MessageFns$1<WorkspaceNameLookupResponse>;
4284
+ interface WorkspaceSetDefaultEnvironmentRequest {
4285
+ environmentName: string;
4286
+ }
4287
+ declare const WorkspaceSetDefaultEnvironmentRequest: MessageFns$1<WorkspaceSetDefaultEnvironmentRequest>;
4288
+ interface WorkspaceSetImageBuilderVersionRequest {
4289
+ newImageBuilderVersion: string;
4290
+ }
4291
+ declare const WorkspaceSetImageBuilderVersionRequest: MessageFns$1<WorkspaceSetImageBuilderVersionRequest>;
4292
+ interface WorkspaceSetImageBuilderVersionResponse {
4293
+ imageBuilderVersion: string;
4294
+ }
4295
+ declare const WorkspaceSetImageBuilderVersionResponse: MessageFns$1<WorkspaceSetImageBuilderVersionResponse>;
4296
+ interface WorkspaceSettingsResponse {
4297
+ defaultEnvironmentName: string;
4298
+ imageBuilderVersion: string;
4299
+ }
4300
+ declare const WorkspaceSettingsResponse: MessageFns$1<WorkspaceSettingsResponse>;
4133
4301
  type ModalClientDefinition = typeof ModalClientDefinition;
4134
4302
  declare const ModalClientDefinition: {
4135
4303
  readonly name: "ModalClient";
@@ -4276,7 +4444,7 @@ declare const ModalClientDefinition: {
4276
4444
  readonly name: "AppRollback";
4277
4445
  readonly requestType: MessageFns$1<AppRollbackRequest>;
4278
4446
  readonly requestStream: false;
4279
- readonly responseType: MessageFns$2<Empty>;
4447
+ readonly responseType: MessageFns$1<AppRollbackResponse>;
4280
4448
  readonly responseStream: false;
4281
4449
  readonly options: {};
4282
4450
  };
@@ -4503,6 +4671,15 @@ declare const ModalClientDefinition: {
4503
4671
  readonly responseStream: false;
4504
4672
  readonly options: {};
4505
4673
  };
4674
+ /** Curl */
4675
+ readonly curlGetAuthToken: {
4676
+ readonly name: "CurlGetAuthToken";
4677
+ readonly requestType: MessageFns$1<CurlAuthTokenRequest>;
4678
+ readonly requestStream: false;
4679
+ readonly responseType: MessageFns$1<CurlAuthTokenResponse>;
4680
+ readonly responseStream: false;
4681
+ readonly options: {};
4682
+ };
4506
4683
  /** Dicts */
4507
4684
  readonly dictClear: {
4508
4685
  readonly name: "DictClear";
@@ -4634,6 +4811,22 @@ declare const ModalClientDefinition: {
4634
4811
  readonly responseStream: false;
4635
4812
  readonly options: {};
4636
4813
  };
4814
+ readonly endpointGetByName: {
4815
+ readonly name: "EndpointGetByName";
4816
+ readonly requestType: MessageFns$1<EndpointGetByNameRequest>;
4817
+ readonly requestStream: false;
4818
+ readonly responseType: MessageFns$1<EndpointGetByNameResponse>;
4819
+ readonly responseStream: false;
4820
+ readonly options: {};
4821
+ };
4822
+ readonly endpointGetLifecycle: {
4823
+ readonly name: "EndpointGetLifecycle";
4824
+ readonly requestType: MessageFns$1<EndpointGetLifecycleRequest>;
4825
+ readonly requestStream: false;
4826
+ readonly responseType: MessageFns$1<EndpointGetLifecycleResponse>;
4827
+ readonly responseStream: false;
4828
+ readonly options: {};
4829
+ };
4637
4830
  readonly endpointList: {
4638
4831
  readonly name: "EndpointList";
4639
4832
  readonly requestType: MessageFns$1<EndpointListRequest>;
@@ -4667,6 +4860,14 @@ declare const ModalClientDefinition: {
4667
4860
  readonly responseStream: false;
4668
4861
  readonly options: {};
4669
4862
  };
4863
+ readonly environmentGetBudget: {
4864
+ readonly name: "EnvironmentGetBudget";
4865
+ readonly requestType: MessageFns$1<EnvironmentGetBudgetRequest>;
4866
+ readonly requestStream: false;
4867
+ readonly responseType: MessageFns$1<EnvironmentGetBudgetResponse>;
4868
+ readonly responseStream: false;
4869
+ readonly options: {};
4870
+ };
4670
4871
  readonly environmentGetManaged: {
4671
4872
  readonly name: "EnvironmentGetManaged";
4672
4873
  readonly requestType: MessageFns$1<EnvironmentGetManagedRequest>;
@@ -4699,6 +4900,14 @@ declare const ModalClientDefinition: {
4699
4900
  readonly responseStream: false;
4700
4901
  readonly options: {};
4701
4902
  };
4903
+ readonly environmentSetBudget: {
4904
+ readonly name: "EnvironmentSetBudget";
4905
+ readonly requestType: MessageFns$1<EnvironmentSetBudgetRequest>;
4906
+ readonly requestStream: false;
4907
+ readonly responseType: MessageFns$2<Empty>;
4908
+ readonly responseStream: false;
4909
+ readonly options: {};
4910
+ };
4702
4911
  readonly environmentSetManaged: {
4703
4912
  readonly name: "EnvironmentSetManaged";
4704
4913
  readonly requestType: MessageFns$1<EnvironmentSetManagedRequest>;
@@ -5785,6 +5994,63 @@ declare const ModalClientDefinition: {
5785
5994
  readonly responseStream: false;
5786
5995
  readonly options: {};
5787
5996
  };
5997
+ /** Webhook tokens (proxy tokens) */
5998
+ readonly webhookTokenCreate: {
5999
+ readonly name: "WebhookTokenCreate";
6000
+ readonly requestType: MessageFns$1<WebhookTokenCreateRequest>;
6001
+ readonly requestStream: false;
6002
+ readonly responseType: MessageFns$1<TokenCreateResponse>;
6003
+ readonly responseStream: false;
6004
+ readonly options: {};
6005
+ };
6006
+ readonly webhookTokenDelete: {
6007
+ readonly name: "WebhookTokenDelete";
6008
+ readonly requestType: MessageFns$1<TokenDeleteRequest>;
6009
+ readonly requestStream: false;
6010
+ readonly responseType: MessageFns$2<Empty>;
6011
+ readonly responseStream: false;
6012
+ readonly options: {};
6013
+ };
6014
+ readonly webhookTokenEnvironmentAdd: {
6015
+ readonly name: "WebhookTokenEnvironmentAdd";
6016
+ readonly requestType: MessageFns$1<WebhookTokenEnvironmentAddRequest>;
6017
+ readonly requestStream: false;
6018
+ readonly responseType: MessageFns$2<Empty>;
6019
+ readonly responseStream: false;
6020
+ readonly options: {};
6021
+ };
6022
+ readonly webhookTokenEnvironmentList: {
6023
+ readonly name: "WebhookTokenEnvironmentList";
6024
+ readonly requestType: MessageFns$1<WebhookTokenEnvironmentListRequest>;
6025
+ readonly requestStream: false;
6026
+ readonly responseType: MessageFns$1<WebhookTokenEnvironmentListResponse>;
6027
+ readonly responseStream: false;
6028
+ readonly options: {};
6029
+ };
6030
+ readonly webhookTokenEnvironmentRemove: {
6031
+ readonly name: "WebhookTokenEnvironmentRemove";
6032
+ readonly requestType: MessageFns$1<WebhookTokenEnvironmentRemoveRequest>;
6033
+ readonly requestStream: false;
6034
+ readonly responseType: MessageFns$2<Empty>;
6035
+ readonly responseStream: false;
6036
+ readonly options: {};
6037
+ };
6038
+ readonly webhookTokenList: {
6039
+ readonly name: "WebhookTokenList";
6040
+ readonly requestType: MessageFns$2<Empty>;
6041
+ readonly requestStream: false;
6042
+ readonly responseType: MessageFns$1<WebhookTokenListResponse>;
6043
+ readonly responseStream: false;
6044
+ readonly options: {};
6045
+ };
6046
+ readonly webhookTokenListForEnvironment: {
6047
+ readonly name: "WebhookTokenListForEnvironment";
6048
+ readonly requestType: MessageFns$1<WebhookTokenListForEnvironmentRequest>;
6049
+ readonly requestStream: false;
6050
+ readonly responseType: MessageFns$1<WebhookTokenListResponse>;
6051
+ readonly responseStream: false;
6052
+ readonly options: {};
6053
+ };
5788
6054
  /** Workspaces */
5789
6055
  readonly workspaceBillingReport: {
5790
6056
  readonly name: "WorkspaceBillingReport";
@@ -5818,6 +6084,30 @@ declare const ModalClientDefinition: {
5818
6084
  readonly responseStream: false;
5819
6085
  readonly options: {};
5820
6086
  };
6087
+ readonly workspaceSetDefaultEnvironment: {
6088
+ readonly name: "WorkspaceSetDefaultEnvironment";
6089
+ readonly requestType: MessageFns$1<WorkspaceSetDefaultEnvironmentRequest>;
6090
+ readonly requestStream: false;
6091
+ readonly responseType: MessageFns$2<Empty>;
6092
+ readonly responseStream: false;
6093
+ readonly options: {};
6094
+ };
6095
+ readonly workspaceSetImageBuilderVersion: {
6096
+ readonly name: "WorkspaceSetImageBuilderVersion";
6097
+ readonly requestType: MessageFns$1<WorkspaceSetImageBuilderVersionRequest>;
6098
+ readonly requestStream: false;
6099
+ readonly responseType: MessageFns$1<WorkspaceSetImageBuilderVersionResponse>;
6100
+ readonly responseStream: false;
6101
+ readonly options: {};
6102
+ };
6103
+ readonly workspaceSettings: {
6104
+ readonly name: "WorkspaceSettings";
6105
+ readonly requestType: MessageFns$2<Empty>;
6106
+ readonly requestStream: false;
6107
+ readonly responseType: MessageFns$1<WorkspaceSettingsResponse>;
6108
+ readonly responseStream: false;
6109
+ readonly options: {};
6110
+ };
5821
6111
  };
5822
6112
  };
5823
6113
  type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -6495,6 +6785,10 @@ declare enum TaskExecStdoutConfig {
6495
6785
  TASK_EXEC_STDOUT_CONFIG_PIPE = 1,
6496
6786
  UNRECOGNIZED = -1
6497
6787
  }
6788
+ interface SandboxWaitUntilReadyTcrResponse {
6789
+ readyAt: number;
6790
+ }
6791
+ declare const SandboxWaitUntilReadyTcrResponse: MessageFns<SandboxWaitUntilReadyTcrResponse>;
6498
6792
  interface TaskContainerCreateRequest {
6499
6793
  taskId: string;
6500
6794
  /** Logical container name. */
@@ -6507,6 +6801,8 @@ interface TaskContainerCreateRequest {
6507
6801
  workdir: string;
6508
6802
  /** Secret IDs to inject into the container as environment variables. */
6509
6803
  secretIds: string[];
6804
+ /** Volumes to mount into the container. */
6805
+ volumeMounts: VolumeMount[];
6510
6806
  }
6511
6807
  declare const TaskContainerCreateRequest: MessageFns<TaskContainerCreateRequest>;
6512
6808
  interface TaskContainerCreateResponse {
@@ -6638,6 +6934,19 @@ interface TaskMountDirectoryRequest {
6638
6934
  customerSuppliedEncryptionKey?: Uint8Array | undefined;
6639
6935
  }
6640
6936
  declare const TaskMountDirectoryRequest: MessageFns<TaskMountDirectoryRequest>;
6937
+ interface TaskReloadVolumesRequest {
6938
+ taskId: string;
6939
+ }
6940
+ declare const TaskReloadVolumesRequest: MessageFns<TaskReloadVolumesRequest>;
6941
+ interface TaskSetNetworkAccessRequest {
6942
+ taskId: string;
6943
+ /**
6944
+ * Replaces the task's network access policy. Only ALLOWLIST is currently
6945
+ * supported; open access is expressed as an allow-all allowlist.
6946
+ */
6947
+ networkAccess: NetworkAccess | undefined;
6948
+ }
6949
+ declare const TaskSetNetworkAccessRequest: MessageFns<TaskSetNetworkAccessRequest>;
6641
6950
  interface TaskSnapshotDirectoryRequest {
6642
6951
  taskId: string;
6643
6952
  path: Uint8Array;
@@ -6764,6 +7073,10 @@ declare class TaskCommandRouterClientImpl {
6764
7073
  snapshotDirectory(request: TaskSnapshotDirectoryRequest, options?: TimeoutOptions): Promise<TaskSnapshotDirectoryResponse>;
6765
7074
  snapshotFilesystem(request: TaskSnapshotFilesystemRequest, options?: TimeoutOptions): Promise<TaskSnapshotFilesystemResponse>;
6766
7075
  unmountDirectory(request: TaskUnmountDirectoryRequest): Promise<void>;
7076
+ setNetworkAccess(request: TaskSetNetworkAccessRequest): Promise<void>;
7077
+ /** Reload all Volumes mounted in the task to reflect their latest committed state. */
7078
+ reloadVolumes(request: TaskReloadVolumesRequest): Promise<void>;
7079
+ sandboxWaitUntilReady(taskId: string, timeoutMs: number): Promise<SandboxWaitUntilReadyTcrResponse>;
6767
7080
  private refreshJwt;
6768
7081
  private callWithAuthRetry;
6769
7082
  private streamStdio;
@@ -7135,6 +7448,10 @@ type SandboxCreateParams = {
7135
7448
  outboundDomainAllowlist?: string[];
7136
7449
  /** 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
7450
  inboundCidrAllowlist?: string[];
7451
+ /** Enable private IPv6 networking (i6pn) so Sandboxes in the same workspace can address each
7452
+ * other directly at their `i6pn.modal.local` address. Pin every Sandbox in the group to the same specific region
7453
+ * (e.g. `regions: ["us-east-1"]`). Cannot be used with blockNetwork. */
7454
+ i6pn?: boolean;
7138
7455
  /** Cloud provider to run the Sandbox on. */
7139
7456
  cloud?: string;
7140
7457
  /** Region(s) to run the Sandbox on. */
@@ -7179,12 +7496,11 @@ declare class SandboxService {
7179
7496
  *
7180
7497
  * Supported features include exec, encrypted tunnels, wait/poll/terminate,
7181
7498
  * CPU and memory configuration, region placement, volumes, cloud bucket
7182
- * mounts (with static credentials via {@link Secret}), and filesystem
7183
- * snapshots.
7499
+ * mounts (with static credentials via {@link Secret} or `oidcAuthRoleArn`),
7500
+ * OIDC identity tokens, {@link Proxy proxies}, and filesystem snapshots.
7184
7501
  *
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.
7502
+ * Features like tags, memory snapshots, GPUs, and custom domains are not
7503
+ * supported.
7188
7504
  *
7189
7505
  * V2 sandboxes created with this method are not currently returned by
7190
7506
  * {@link SandboxService#list client.sandboxes.list()} and cannot be looked up
@@ -7215,6 +7531,20 @@ declare class SandboxService {
7215
7531
  * If tags are specified, only Sandboxes that have at least those tags are returned.
7216
7532
  */
7217
7533
  list(params?: SandboxListParams): AsyncGenerator<Sandbox, void, unknown>;
7534
+ /**
7535
+ * List the V2 {@link Sandbox}es in an {@link App}.
7536
+ *
7537
+ * This lists V2 Sandboxes, i.e. Sandboxes created via
7538
+ * {@link SandboxService#experimentalCreate client.sandboxes.experimentalCreate()}.
7539
+ * Such Sandboxes are not returned by
7540
+ * {@link SandboxService#list client.sandboxes.list()}. Filtering based on tags
7541
+ * is not yet supported.
7542
+ *
7543
+ * Yields {@link Sandbox} objects that are currently running in the App.
7544
+ *
7545
+ * EXPERIMENTAL: the API is subject to change.
7546
+ */
7547
+ experimentalList(params: SandboxExperimentalListParams): AsyncGenerator<Sandbox, void, unknown>;
7218
7548
  }
7219
7549
  /** Optional parameters for {@link SandboxService#list client.sandboxes.list()}. */
7220
7550
  type SandboxListParams = {
@@ -7225,6 +7555,11 @@ type SandboxListParams = {
7225
7555
  /** Override environment for the request; defaults to current profile. */
7226
7556
  environment?: string;
7227
7557
  };
7558
+ /** Parameters for {@link SandboxService#experimentalList client.sandboxes.experimentalList()}. */
7559
+ type SandboxExperimentalListParams = {
7560
+ /** The App to list Sandboxes under. */
7561
+ appId: string;
7562
+ };
7228
7563
  /** Optional parameters for {@link SandboxService#fromName client.sandboxes.fromName()}. */
7229
7564
  type SandboxFromNameParams = {
7230
7565
  environment?: string;
@@ -7249,7 +7584,7 @@ type SandboxExecParams = {
7249
7584
  * process) is multiplexed into stdout, and the stderr stream is effectively empty. */
7250
7585
  pty?: boolean;
7251
7586
  };
7252
- /** Optional parameters for {@link Sandbox#createConnectToken Sandbox.createConnectToken()}. */
7587
+ /** Optional parameters for {@link Sandbox#terminate Sandbox.terminate()}. */
7253
7588
  type SandboxTerminateParams = {
7254
7589
  /** If true, wait for the Sandbox to finish and return the exit code. */
7255
7590
  wait?: boolean;
@@ -7283,10 +7618,42 @@ type SandboxSnapshotDirectoryParams = {
7283
7618
  * the image indefinitely.
7284
7619
  */
7285
7620
  ttlMs?: number | null;
7621
+ /**
7622
+ * Experimental customer-supplied encryption key used to encrypt the
7623
+ * resulting snapshot. The same key is required when mounting the image.
7624
+ * Modal does not persist the key.
7625
+ */
7626
+ experimentalEncryptionKey?: Uint8Array;
7286
7627
  };
7628
+ /** Optional parameters for {@link Sandbox#mountImage Sandbox.mountImage()}. */
7629
+ type SandboxMountImageParams = {
7630
+ /**
7631
+ * Experimental customer-supplied encryption key used to decrypt the image.
7632
+ * Use the same key that encrypted the snapshot.
7633
+ */
7634
+ experimentalEncryptionKey?: Uint8Array;
7635
+ };
7636
+ /** Optional parameters for {@link Sandbox#createConnectToken Sandbox.createConnectToken()}. */
7287
7637
  type SandboxCreateConnectTokenParams = {
7288
7638
  /** Optional user-provided metadata string that will be added to the headers by the proxy when forwarding requests to the Sandbox. */
7289
7639
  userMetadata?: string;
7640
+ /** Container port that requests are routed to when using this token. Defaults to 8080. */
7641
+ port?: number;
7642
+ };
7643
+ /**
7644
+ * Parameters for {@link Sandbox#updateNetworkPolicy Sandbox.updateNetworkPolicy()}.
7645
+ *
7646
+ * Each dimension is independent: `undefined` leaves that dimension unchanged,
7647
+ * while a defined value replaces it (an empty array blocks all egress for that
7648
+ * dimension; a wildcard entry such as `"0.0.0.0/0"` or `"*"` allows everything).
7649
+ *
7650
+ * Currently, both dimensions must be provided (the underlying transport does
7651
+ * not yet support partial updates). This requirement will be relaxed in a
7652
+ * future release.
7653
+ */
7654
+ type SandboxUpdateNetworkPolicyParams = {
7655
+ outboundCidrAllowlist?: string[];
7656
+ outboundDomainAllowlist?: string[];
7290
7657
  };
7291
7658
  /** Credentials returned by {@link Sandbox#createConnectToken Sandbox.createConnectToken()}. */
7292
7659
  type SandboxCreateConnectCredentials = {
@@ -7389,14 +7756,27 @@ declare class Sandbox {
7389
7756
  *
7390
7757
  * @param path - The path where the directory should be mounted
7391
7758
  * @param image - Optional {@link Image} to mount. If undefined, mounts an empty directory.
7759
+ * @param params - Optional parameters; see {@link SandboxMountImageParams}.
7392
7760
  */
7393
- mountImage(path: string, image?: Image): Promise<void>;
7761
+ mountImage(path: string, image?: Image, params?: SandboxMountImageParams): Promise<void>;
7394
7762
  /**
7395
7763
  * Unmounts an {@link Image} previously mounted at a path in the Sandbox filesystem.
7396
7764
  *
7397
7765
  * @param path - The mount path to unmount
7398
7766
  */
7399
7767
  unmountImage(path: string): Promise<void>;
7768
+ /**
7769
+ * Updates the outbound network policy of a running Sandbox.
7770
+ *
7771
+ * Established connections that the new policy no longer permits are terminated.
7772
+ *
7773
+ * @param params - Both `outboundCidrAllowlist` and `outboundDomainAllowlist` must be provided.
7774
+ */
7775
+ updateNetworkPolicy(params: SandboxUpdateNetworkPolicyParams): Promise<void>;
7776
+ /**
7777
+ * Reload all Volumes mounted in the Sandbox.
7778
+ */
7779
+ reloadVolumes(): Promise<void>;
7400
7780
  /**
7401
7781
  * Snapshots and creates a new {@link Image} from a directory in the running sandbox.
7402
7782
  *
@@ -7647,4 +8027,4 @@ declare class ClientClosedError extends Error {
7647
8027
 
7648
8028
  declare function checkForRenamedParams(params: any, renames: Record<string, string>): void;
7649
8029
 
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 };
8030
+ 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, type SandboxExperimentalListParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxMountImageParams, SandboxService, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, type SandboxTerminateParams, SandboxTimeoutError, type SandboxUpdateNetworkPolicyParams, 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 };