modal 0.11.1-dev.1 → 0.11.1-dev.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.
package/dist/index.d.cts CHANGED
@@ -847,6 +847,7 @@ interface AppListResponse_AppListItem {
847
847
  stoppedAt: number;
848
848
  nRunningTasks: number;
849
849
  name: string;
850
+ metadata: AppHandleMetadata | undefined;
850
851
  }
851
852
  declare const AppListResponse_AppListItem: MessageFns$1<AppListResponse_AppListItem>;
852
853
  interface AppLookupRequest {
@@ -1883,6 +1884,7 @@ interface EnvironmentListItem {
1883
1884
  environmentType: EnvironmentType;
1884
1885
  defaultMemberRole?: EnvironmentRole | undefined;
1885
1886
  blockUnauthenticatedResources?: boolean | undefined;
1887
+ effectiveRole?: EnvironmentRole | undefined;
1886
1888
  }
1887
1889
  declare const EnvironmentListItem: MessageFns$1<EnvironmentListItem>;
1888
1890
  interface EnvironmentListResponse {
@@ -2576,6 +2578,8 @@ interface FunctionGetTimeRangeStatsResponse {
2576
2578
  * Zero when roll-up is disabled or the base Function has no variants.
2577
2579
  */
2578
2580
  variantCount: number;
2581
+ /** Number of containers that were active (published heartbeats) in the time range. */
2582
+ containerTotalCount: number;
2579
2583
  }
2580
2584
  declare const FunctionGetTimeRangeStatsResponse: MessageFns$1<FunctionGetTimeRangeStatsResponse>;
2581
2585
  /**
@@ -3758,6 +3762,8 @@ interface SandboxContainerCreateV2Request {
3758
3762
  cloudBucketMountCredentials: {
3759
3763
  [key: string]: StringMap;
3760
3764
  };
3765
+ /** Applied in order. Cannot be combined with ephemeral_secrets. If definition.secret_ids is set, it must match the secret_id entries here. */
3766
+ secretSources: SecretSource[];
3761
3767
  }
3762
3768
  declare const SandboxContainerCreateV2Request: MessageFns$1<SandboxContainerCreateV2Request>;
3763
3769
  interface SandboxContainerCreateV2Response {
@@ -3798,6 +3804,8 @@ interface SandboxCreateV2Request {
3798
3804
  cloudBucketMountCredentials: {
3799
3805
  [key: string]: StringMap;
3800
3806
  };
3807
+ /** Applied in order. Cannot be combined with ephemeral_secrets. If definition.secret_ids is set, it must match the secret_id entries here. */
3808
+ secretSources: SecretSource[];
3801
3809
  }
3802
3810
  declare const SandboxCreateV2Request: MessageFns$1<SandboxCreateV2Request>;
3803
3811
  interface SandboxCreateV2Response {
@@ -3806,6 +3814,8 @@ interface SandboxCreateV2Response {
3806
3814
  taskId: string;
3807
3815
  metadata: SandboxHandleMetadata | undefined;
3808
3816
  commandRouterAccess: CommandRouterAccess$1 | undefined;
3817
+ /** Signed app and workspace id of the sandbox. Sent as the x-modal-sandbox-token metadata header. */
3818
+ sandboxToken: string;
3809
3819
  }
3810
3820
  declare const SandboxCreateV2Response: MessageFns$1<SandboxCreateV2Response>;
3811
3821
  /**
@@ -4181,6 +4191,14 @@ interface SecretMetadata {
4181
4191
  environmentName: string;
4182
4192
  }
4183
4193
  declare const SecretMetadata: MessageFns$1<SecretMetadata>;
4194
+ /** One source of environment variables for a Sandbox container or exec. */
4195
+ interface SecretSource {
4196
+ /** Server-side Secret, resolved on the worker. */
4197
+ secretId?: string | undefined;
4198
+ /** Plaintext values sent directly to the worker. Must not be persisted. */
4199
+ env?: StringMap | undefined;
4200
+ }
4201
+ declare const SecretSource: MessageFns$1<SecretSource>;
4184
4202
  interface SecretUpdateRequest {
4185
4203
  secretId: string;
4186
4204
  updates: SecretUpdateRequest_Update[];
@@ -4231,6 +4249,8 @@ interface ServerGetTimeRangeStatsResponse {
4231
4249
  containerStartedCount: number;
4232
4250
  containerErrorCount: number;
4233
4251
  containerCreatingAtEndCount: number;
4252
+ /** Number of containers that were active (published heartbeats) in the time range. */
4253
+ containerTotalCount: number;
4234
4254
  }
4235
4255
  declare const ServerGetTimeRangeStatsResponse: MessageFns$1<ServerGetTimeRangeStatsResponse>;
4236
4256
  interface ServerGetTimeRangeStatsResponse_ServerInferenceStats {
@@ -8296,6 +8316,8 @@ interface TaskContainerCreateRequest {
8296
8316
  * consumes whatever is left of it. Ignored without a reserve.
8297
8317
  */
8298
8318
  memoryReserveConsumeMib?: number | undefined;
8319
+ /** Applied in order. Cannot be combined with secret_ids or env. */
8320
+ secretSources: SecretSource[];
8299
8321
  }
8300
8322
  declare const TaskContainerCreateRequest: MessageFns<TaskContainerCreateRequest>;
8301
8323
  interface TaskContainerCreateResponse {
@@ -8396,6 +8418,8 @@ interface TaskExecStartRequest {
8396
8418
  env: {
8397
8419
  [key: string]: string;
8398
8420
  };
8421
+ /** Applied in order. Cannot be combined with secret_ids or env. */
8422
+ secretSources: SecretSource[];
8399
8423
  }
8400
8424
  declare const TaskExecStartRequest: MessageFns<TaskExecStartRequest>;
8401
8425
  interface TaskExecStartResponse {
@@ -9073,6 +9097,12 @@ type SidecarCreateParams = {
9073
9097
  * Sandboxes.
9074
9098
  */
9075
9099
  includeOidcIdentityToken?: boolean;
9100
+ /**
9101
+ * {@link Proxy} to route the sidecar's outbound traffic through, giving it
9102
+ * a static outbound IP of its own, independent of the main container. Not
9103
+ * supported for GPU Sandboxes.
9104
+ */
9105
+ proxy?: Proxy;
9076
9106
  /** Enable a PTY for the sidecar. */
9077
9107
  pty?: boolean;
9078
9108
  /**
package/dist/index.d.ts CHANGED
@@ -847,6 +847,7 @@ interface AppListResponse_AppListItem {
847
847
  stoppedAt: number;
848
848
  nRunningTasks: number;
849
849
  name: string;
850
+ metadata: AppHandleMetadata | undefined;
850
851
  }
851
852
  declare const AppListResponse_AppListItem: MessageFns$1<AppListResponse_AppListItem>;
852
853
  interface AppLookupRequest {
@@ -1883,6 +1884,7 @@ interface EnvironmentListItem {
1883
1884
  environmentType: EnvironmentType;
1884
1885
  defaultMemberRole?: EnvironmentRole | undefined;
1885
1886
  blockUnauthenticatedResources?: boolean | undefined;
1887
+ effectiveRole?: EnvironmentRole | undefined;
1886
1888
  }
1887
1889
  declare const EnvironmentListItem: MessageFns$1<EnvironmentListItem>;
1888
1890
  interface EnvironmentListResponse {
@@ -2576,6 +2578,8 @@ interface FunctionGetTimeRangeStatsResponse {
2576
2578
  * Zero when roll-up is disabled or the base Function has no variants.
2577
2579
  */
2578
2580
  variantCount: number;
2581
+ /** Number of containers that were active (published heartbeats) in the time range. */
2582
+ containerTotalCount: number;
2579
2583
  }
2580
2584
  declare const FunctionGetTimeRangeStatsResponse: MessageFns$1<FunctionGetTimeRangeStatsResponse>;
2581
2585
  /**
@@ -3758,6 +3762,8 @@ interface SandboxContainerCreateV2Request {
3758
3762
  cloudBucketMountCredentials: {
3759
3763
  [key: string]: StringMap;
3760
3764
  };
3765
+ /** Applied in order. Cannot be combined with ephemeral_secrets. If definition.secret_ids is set, it must match the secret_id entries here. */
3766
+ secretSources: SecretSource[];
3761
3767
  }
3762
3768
  declare const SandboxContainerCreateV2Request: MessageFns$1<SandboxContainerCreateV2Request>;
3763
3769
  interface SandboxContainerCreateV2Response {
@@ -3798,6 +3804,8 @@ interface SandboxCreateV2Request {
3798
3804
  cloudBucketMountCredentials: {
3799
3805
  [key: string]: StringMap;
3800
3806
  };
3807
+ /** Applied in order. Cannot be combined with ephemeral_secrets. If definition.secret_ids is set, it must match the secret_id entries here. */
3808
+ secretSources: SecretSource[];
3801
3809
  }
3802
3810
  declare const SandboxCreateV2Request: MessageFns$1<SandboxCreateV2Request>;
3803
3811
  interface SandboxCreateV2Response {
@@ -3806,6 +3814,8 @@ interface SandboxCreateV2Response {
3806
3814
  taskId: string;
3807
3815
  metadata: SandboxHandleMetadata | undefined;
3808
3816
  commandRouterAccess: CommandRouterAccess$1 | undefined;
3817
+ /** Signed app and workspace id of the sandbox. Sent as the x-modal-sandbox-token metadata header. */
3818
+ sandboxToken: string;
3809
3819
  }
3810
3820
  declare const SandboxCreateV2Response: MessageFns$1<SandboxCreateV2Response>;
3811
3821
  /**
@@ -4181,6 +4191,14 @@ interface SecretMetadata {
4181
4191
  environmentName: string;
4182
4192
  }
4183
4193
  declare const SecretMetadata: MessageFns$1<SecretMetadata>;
4194
+ /** One source of environment variables for a Sandbox container or exec. */
4195
+ interface SecretSource {
4196
+ /** Server-side Secret, resolved on the worker. */
4197
+ secretId?: string | undefined;
4198
+ /** Plaintext values sent directly to the worker. Must not be persisted. */
4199
+ env?: StringMap | undefined;
4200
+ }
4201
+ declare const SecretSource: MessageFns$1<SecretSource>;
4184
4202
  interface SecretUpdateRequest {
4185
4203
  secretId: string;
4186
4204
  updates: SecretUpdateRequest_Update[];
@@ -4231,6 +4249,8 @@ interface ServerGetTimeRangeStatsResponse {
4231
4249
  containerStartedCount: number;
4232
4250
  containerErrorCount: number;
4233
4251
  containerCreatingAtEndCount: number;
4252
+ /** Number of containers that were active (published heartbeats) in the time range. */
4253
+ containerTotalCount: number;
4234
4254
  }
4235
4255
  declare const ServerGetTimeRangeStatsResponse: MessageFns$1<ServerGetTimeRangeStatsResponse>;
4236
4256
  interface ServerGetTimeRangeStatsResponse_ServerInferenceStats {
@@ -8296,6 +8316,8 @@ interface TaskContainerCreateRequest {
8296
8316
  * consumes whatever is left of it. Ignored without a reserve.
8297
8317
  */
8298
8318
  memoryReserveConsumeMib?: number | undefined;
8319
+ /** Applied in order. Cannot be combined with secret_ids or env. */
8320
+ secretSources: SecretSource[];
8299
8321
  }
8300
8322
  declare const TaskContainerCreateRequest: MessageFns<TaskContainerCreateRequest>;
8301
8323
  interface TaskContainerCreateResponse {
@@ -8396,6 +8418,8 @@ interface TaskExecStartRequest {
8396
8418
  env: {
8397
8419
  [key: string]: string;
8398
8420
  };
8421
+ /** Applied in order. Cannot be combined with secret_ids or env. */
8422
+ secretSources: SecretSource[];
8399
8423
  }
8400
8424
  declare const TaskExecStartRequest: MessageFns<TaskExecStartRequest>;
8401
8425
  interface TaskExecStartResponse {
@@ -9073,6 +9097,12 @@ type SidecarCreateParams = {
9073
9097
  * Sandboxes.
9074
9098
  */
9075
9099
  includeOidcIdentityToken?: boolean;
9100
+ /**
9101
+ * {@link Proxy} to route the sidecar's outbound traffic through, giving it
9102
+ * a static outbound IP of its own, independent of the main container. Not
9103
+ * supported for GPU Sandboxes.
9104
+ */
9105
+ proxy?: Proxy;
9076
9106
  /** Enable a PTY for the sidecar. */
9077
9107
  pty?: boolean;
9078
9108
  /**