@miosa/sdk 1.1.0 → 1.2.0
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 +26 -229
- package/dist/index.js +25 -276
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +0 -5
- package/src/index.ts +0 -10
- package/src/resources/admin.ts +11 -0
- package/src/resources/api-keys.ts +17 -5
- package/src/resources/cron-jobs.ts +0 -7
- package/src/resources/custom_domains.ts +0 -7
- package/src/resources/deployments.ts +2 -13
- package/src/resources/flat-custom-domains.ts +0 -7
- package/src/resources/functions.ts +0 -7
- package/src/resources/governance.test.ts +355 -0
- package/src/resources/governance.ts +528 -0
- package/src/resources/storage.ts +0 -7
- package/src/resources/tenant.ts +3 -82
- package/src/resources/volumes.ts +0 -7
- package/src/resources/webhooks.ts +0 -55
- package/src/types.ts +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -155,6 +155,13 @@ declare class Admin {
|
|
|
155
155
|
optimalStatus(): Promise<Json>;
|
|
156
156
|
listOptimalModels(): Promise<Json>;
|
|
157
157
|
switchOptimalModel(modelId: string): Promise<Json>;
|
|
158
|
+
/** POST /api/v1/admin/impersonate — returns {token, expires_at}. */
|
|
159
|
+
impersonate(externalUserId: string, options?: {
|
|
160
|
+
ttlSec?: number;
|
|
161
|
+
}): Promise<{
|
|
162
|
+
token: string;
|
|
163
|
+
expires_at: string;
|
|
164
|
+
}>;
|
|
158
165
|
}
|
|
159
166
|
|
|
160
167
|
/**
|
|
@@ -214,9 +221,6 @@ interface ApiKeyCreateParams {
|
|
|
214
221
|
expires_at?: string;
|
|
215
222
|
expiresAt?: string;
|
|
216
223
|
idempotencyKey?: string;
|
|
217
|
-
/** Scope this key to a single workspace. Omit for a tenant-wide key. */
|
|
218
|
-
workspaceId?: string;
|
|
219
|
-
workspace_id?: string;
|
|
220
224
|
[key: string]: unknown;
|
|
221
225
|
}
|
|
222
226
|
declare class ApiKeys {
|
|
@@ -224,6 +228,12 @@ declare class ApiKeys {
|
|
|
224
228
|
constructor(http: HttpClient);
|
|
225
229
|
list(params?: ApiKeyListParams): Promise<ApiKeyData[]>;
|
|
226
230
|
create(params: ApiKeyCreateParams): Promise<ApiKeyCreateResult>;
|
|
231
|
+
/** POST /api/v1/api-keys/scoped — L2 delegation token bound to one external user. */
|
|
232
|
+
createScoped(params: {
|
|
233
|
+
externalUserId: string;
|
|
234
|
+
scopes: string[];
|
|
235
|
+
expiresAt?: string;
|
|
236
|
+
}): Promise<ApiKeyCreateResult>;
|
|
227
237
|
delete(keyId: string): Promise<void>;
|
|
228
238
|
}
|
|
229
239
|
|
|
@@ -748,12 +758,6 @@ interface ComputerCreateParams {
|
|
|
748
758
|
size?: ComputerSize;
|
|
749
759
|
visibility?: ComputerVisibility;
|
|
750
760
|
metadata?: Record<string, string>;
|
|
751
|
-
externalWorkspaceId?: string;
|
|
752
|
-
external_workspace_id?: string;
|
|
753
|
-
externalUserId?: string;
|
|
754
|
-
external_user_id?: string;
|
|
755
|
-
externalProjectId?: string;
|
|
756
|
-
external_project_id?: string;
|
|
757
761
|
}
|
|
758
762
|
interface ComputerUpdateParams {
|
|
759
763
|
name?: string;
|
|
@@ -2408,12 +2412,6 @@ interface CronJobCreateParams {
|
|
|
2408
2412
|
name: string;
|
|
2409
2413
|
schedule: string;
|
|
2410
2414
|
idempotencyKey?: string;
|
|
2411
|
-
externalWorkspaceId?: string;
|
|
2412
|
-
external_workspace_id?: string;
|
|
2413
|
-
externalUserId?: string;
|
|
2414
|
-
external_user_id?: string;
|
|
2415
|
-
externalProjectId?: string;
|
|
2416
|
-
external_project_id?: string;
|
|
2417
2415
|
[key: string]: unknown;
|
|
2418
2416
|
}
|
|
2419
2417
|
interface CronJobUpdateParams {
|
|
@@ -2597,7 +2595,7 @@ interface DeploymentData {
|
|
|
2597
2595
|
* with `source_sandbox_id` on the version row. Will become nullable.
|
|
2598
2596
|
*/
|
|
2599
2597
|
repo_url?: string;
|
|
2600
|
-
repo_provider?: "github"
|
|
2598
|
+
repo_provider?: "github";
|
|
2601
2599
|
branch?: string;
|
|
2602
2600
|
build_command?: string | null;
|
|
2603
2601
|
run_command?: string | null;
|
|
@@ -2768,9 +2766,6 @@ interface DeploymentCreateParams extends ExternalAttribution {
|
|
|
2768
2766
|
autoDeploy?: boolean;
|
|
2769
2767
|
database?: DeploymentDatabaseRequest;
|
|
2770
2768
|
metadata?: Record<string, unknown>;
|
|
2771
|
-
/** Pin build and runtime VMs to a specific DC. One of: "us-west", "us-east", "us-mia". */
|
|
2772
|
-
target_region?: string;
|
|
2773
|
-
targetRegion?: string;
|
|
2774
2769
|
idempotencyKey?: string;
|
|
2775
2770
|
}
|
|
2776
2771
|
interface DeploymentUpdateParams {
|
|
@@ -2909,9 +2904,7 @@ declare class Deployments {
|
|
|
2909
2904
|
rollback(deploymentId: string, params?: RollbackParams): Promise<DeploymentData>;
|
|
2910
2905
|
listBuilds(deploymentId: string): Promise<DeploymentBuildData[]>;
|
|
2911
2906
|
getBuild(deploymentId: string, buildId: string): Promise<DeploymentBuildData>;
|
|
2912
|
-
listEnv(deploymentId: string,
|
|
2913
|
-
environment?: string;
|
|
2914
|
-
}): Promise<Record<string, unknown>[]>;
|
|
2907
|
+
listEnv(deploymentId: string): Promise<Record<string, unknown>[]>;
|
|
2915
2908
|
setEnv(deploymentId: string, vars: Record<string, string>, opts?: {
|
|
2916
2909
|
environment?: string;
|
|
2917
2910
|
}): Promise<Record<string, unknown>[]>;
|
|
@@ -3060,12 +3053,6 @@ interface CustomDomainCreateParams {
|
|
|
3060
3053
|
redirect_policy?: "none" | "www_to_apex" | "apex_to_www";
|
|
3061
3054
|
redirectPolicy?: "none" | "www_to_apex" | "apex_to_www";
|
|
3062
3055
|
idempotencyKey?: string;
|
|
3063
|
-
externalWorkspaceId?: string;
|
|
3064
|
-
external_workspace_id?: string;
|
|
3065
|
-
externalUserId?: string;
|
|
3066
|
-
external_user_id?: string;
|
|
3067
|
-
externalProjectId?: string;
|
|
3068
|
-
external_project_id?: string;
|
|
3069
3056
|
[key: string]: unknown;
|
|
3070
3057
|
}
|
|
3071
3058
|
declare class FlatCustomDomains {
|
|
@@ -3113,12 +3100,6 @@ interface FunctionCreateParams {
|
|
|
3113
3100
|
timeoutSec?: number;
|
|
3114
3101
|
env?: Record<string, string>;
|
|
3115
3102
|
idempotencyKey?: string;
|
|
3116
|
-
externalWorkspaceId?: string;
|
|
3117
|
-
external_workspace_id?: string;
|
|
3118
|
-
externalUserId?: string;
|
|
3119
|
-
external_user_id?: string;
|
|
3120
|
-
externalProjectId?: string;
|
|
3121
|
-
external_project_id?: string;
|
|
3122
3103
|
[key: string]: unknown;
|
|
3123
3104
|
}
|
|
3124
3105
|
interface FunctionUpdateParams {
|
|
@@ -3346,7 +3327,7 @@ type TunnelId = string & {
|
|
|
3346
3327
|
type ClusterId = string & {
|
|
3347
3328
|
readonly __brand: "ClusterId";
|
|
3348
3329
|
};
|
|
3349
|
-
type WorkspaceId
|
|
3330
|
+
type WorkspaceId = string & {
|
|
3350
3331
|
readonly __brand: "WorkspaceId";
|
|
3351
3332
|
};
|
|
3352
3333
|
type SecretId = string & {
|
|
@@ -3559,7 +3540,7 @@ interface AppInstallEvent {
|
|
|
3559
3540
|
}
|
|
3560
3541
|
type OcWorkspaceStatus = "creating" | "ready" | "running" | "stopped" | "error";
|
|
3561
3542
|
interface OcWorkspaceData {
|
|
3562
|
-
id: WorkspaceId
|
|
3543
|
+
id: WorkspaceId;
|
|
3563
3544
|
host_id: HostId;
|
|
3564
3545
|
name: string;
|
|
3565
3546
|
repo_url: string | null;
|
|
@@ -3584,7 +3565,7 @@ interface OcWorkspaceListResponse {
|
|
|
3584
3565
|
}
|
|
3585
3566
|
interface OcWorkspaceEvent {
|
|
3586
3567
|
type: string;
|
|
3587
|
-
workspace_id: WorkspaceId
|
|
3568
|
+
workspace_id: WorkspaceId;
|
|
3588
3569
|
data: unknown;
|
|
3589
3570
|
timestamp: string;
|
|
3590
3571
|
}
|
|
@@ -4060,28 +4041,28 @@ declare class OcWorkspaces {
|
|
|
4060
4041
|
/**
|
|
4061
4042
|
* Fetch a single workspace.
|
|
4062
4043
|
*/
|
|
4063
|
-
get(hostId: HostId | string, workspaceId: WorkspaceId
|
|
4044
|
+
get(hostId: HostId | string, workspaceId: WorkspaceId | string): Promise<OcWorkspaceData>;
|
|
4064
4045
|
/**
|
|
4065
4046
|
* Update workspace metadata (name, branch).
|
|
4066
4047
|
*/
|
|
4067
|
-
update(hostId: HostId | string, workspaceId: WorkspaceId
|
|
4048
|
+
update(hostId: HostId | string, workspaceId: WorkspaceId | string, params: OcWorkspaceUpdateParams): Promise<OcWorkspaceData>;
|
|
4068
4049
|
/**
|
|
4069
4050
|
* Delete a workspace.
|
|
4070
4051
|
*/
|
|
4071
|
-
delete(hostId: HostId | string, workspaceId: WorkspaceId
|
|
4052
|
+
delete(hostId: HostId | string, workspaceId: WorkspaceId | string): Promise<void>;
|
|
4072
4053
|
/**
|
|
4073
4054
|
* Pull the latest changes from the remote repository.
|
|
4074
4055
|
*/
|
|
4075
|
-
pull(hostId: HostId | string, workspaceId: WorkspaceId
|
|
4056
|
+
pull(hostId: HostId | string, workspaceId: WorkspaceId | string): Promise<OcWorkspaceData>;
|
|
4076
4057
|
/**
|
|
4077
4058
|
* Open a terminal session scoped to the workspace root directory.
|
|
4078
4059
|
* Returns a short-lived WebSocket ticket.
|
|
4079
4060
|
*/
|
|
4080
|
-
openTerminal(hostId: HostId | string, workspaceId: WorkspaceId
|
|
4061
|
+
openTerminal(hostId: HostId | string, workspaceId: WorkspaceId | string): Promise<WsTicket>;
|
|
4081
4062
|
/**
|
|
4082
4063
|
* Stream workspace setup / clone / install events.
|
|
4083
4064
|
*/
|
|
4084
|
-
events(hostId: HostId | string, workspaceId: WorkspaceId
|
|
4065
|
+
events(hostId: HostId | string, workspaceId: WorkspaceId | string): AsyncIterableIterator<OcWorkspaceEvent>;
|
|
4085
4066
|
}
|
|
4086
4067
|
|
|
4087
4068
|
/**
|
|
@@ -4982,12 +4963,6 @@ interface BucketCreateParams {
|
|
|
4982
4963
|
visibility?: "private" | "public";
|
|
4983
4964
|
quota_bytes?: number;
|
|
4984
4965
|
public?: boolean;
|
|
4985
|
-
externalWorkspaceId?: string;
|
|
4986
|
-
external_workspace_id?: string;
|
|
4987
|
-
externalUserId?: string;
|
|
4988
|
-
external_user_id?: string;
|
|
4989
|
-
externalProjectId?: string;
|
|
4990
|
-
external_project_id?: string;
|
|
4991
4966
|
[key: string]: unknown;
|
|
4992
4967
|
}
|
|
4993
4968
|
interface ObjectListParams {
|
|
@@ -5158,7 +5133,7 @@ declare class OrgInvites {
|
|
|
5158
5133
|
}
|
|
5159
5134
|
|
|
5160
5135
|
/**
|
|
5161
|
-
* Tenant — current tenant info
|
|
5136
|
+
* Tenant — current tenant info and plan/usage.
|
|
5162
5137
|
*/
|
|
5163
5138
|
|
|
5164
5139
|
interface TenantPlan {
|
|
@@ -5168,53 +5143,8 @@ interface TenantPlan {
|
|
|
5168
5143
|
usage?: Record<string, unknown>;
|
|
5169
5144
|
[key: string]: unknown;
|
|
5170
5145
|
}
|
|
5171
|
-
interface PreviewDomainData {
|
|
5172
|
-
domain: string;
|
|
5173
|
-
verified_at?: string | null;
|
|
5174
|
-
cname_target?: string;
|
|
5175
|
-
[key: string]: unknown;
|
|
5176
|
-
}
|
|
5177
|
-
interface PreviewDomainVerifyResult {
|
|
5178
|
-
verified: boolean;
|
|
5179
|
-
target?: string;
|
|
5180
|
-
records?: unknown[];
|
|
5181
|
-
[key: string]: unknown;
|
|
5182
|
-
}
|
|
5183
|
-
interface BrandingData {
|
|
5184
|
-
product_name?: string;
|
|
5185
|
-
logo_url?: string;
|
|
5186
|
-
support_url?: string;
|
|
5187
|
-
support_email?: string;
|
|
5188
|
-
primary_color?: string;
|
|
5189
|
-
background_color?: string;
|
|
5190
|
-
[key: string]: unknown;
|
|
5191
|
-
}
|
|
5192
|
-
declare class PreviewDomain {
|
|
5193
|
-
private readonly http;
|
|
5194
|
-
constructor(http: HttpClient);
|
|
5195
|
-
/** GET /api/v1/tenant/preview-domain → {domain, verified_at, cname_target} */
|
|
5196
|
-
get(): Promise<PreviewDomainData>;
|
|
5197
|
-
/** PUT /api/v1/tenant/preview-domain — set the preview domain. */
|
|
5198
|
-
set(domain: string): Promise<PreviewDomainData>;
|
|
5199
|
-
/** POST /api/v1/tenant/preview-domain/verify → {verified, target, records} */
|
|
5200
|
-
verify(): Promise<PreviewDomainVerifyResult>;
|
|
5201
|
-
/** DELETE /api/v1/tenant/preview-domain */
|
|
5202
|
-
delete(): Promise<void>;
|
|
5203
|
-
}
|
|
5204
|
-
declare class Branding {
|
|
5205
|
-
private readonly http;
|
|
5206
|
-
constructor(http: HttpClient);
|
|
5207
|
-
/** GET /api/v1/tenant/branding */
|
|
5208
|
-
get(): Promise<BrandingData>;
|
|
5209
|
-
/** PUT /api/v1/tenant/branding — keys: product_name, logo_url, support_url, support_email, primary_color, background_color */
|
|
5210
|
-
set(branding: BrandingData): Promise<BrandingData>;
|
|
5211
|
-
/** DELETE /api/v1/tenant/branding */
|
|
5212
|
-
delete(): Promise<void>;
|
|
5213
|
-
}
|
|
5214
5146
|
declare class Tenant {
|
|
5215
5147
|
private readonly http;
|
|
5216
|
-
readonly preview_domain: PreviewDomain;
|
|
5217
|
-
readonly branding: Branding;
|
|
5218
5148
|
constructor(http: HttpClient);
|
|
5219
5149
|
/** Get the current tenant's plan, limits, and live usage counters. */
|
|
5220
5150
|
current(): Promise<TenantPlan>;
|
|
@@ -5290,12 +5220,6 @@ interface VolumeCreateParams {
|
|
|
5290
5220
|
sizeGb?: number;
|
|
5291
5221
|
region?: string;
|
|
5292
5222
|
idempotencyKey?: string;
|
|
5293
|
-
externalWorkspaceId?: string;
|
|
5294
|
-
external_workspace_id?: string;
|
|
5295
|
-
externalUserId?: string;
|
|
5296
|
-
external_user_id?: string;
|
|
5297
|
-
externalProjectId?: string;
|
|
5298
|
-
external_project_id?: string;
|
|
5299
5223
|
[key: string]: unknown;
|
|
5300
5224
|
}
|
|
5301
5225
|
declare class Volumes {
|
|
@@ -5373,16 +5297,6 @@ declare class Webhooks {
|
|
|
5373
5297
|
idempotencyKey?: string;
|
|
5374
5298
|
}): Promise<Record<string, unknown>>;
|
|
5375
5299
|
deliveries(webhookId: string): Promise<WebhookDeliveryData[]>;
|
|
5376
|
-
/**
|
|
5377
|
-
* Verify an incoming ``X-Miosa-Signature`` header.
|
|
5378
|
-
*
|
|
5379
|
-
* Header format: ``t=<unix_ts>,v1=<hex_hmac>``
|
|
5380
|
-
* HMAC body: ``<t>.<raw_payload>``
|
|
5381
|
-
*
|
|
5382
|
-
* Throws if timestamp is older than 5 minutes.
|
|
5383
|
-
* Returns true if signature matches.
|
|
5384
|
-
*/
|
|
5385
|
-
static verifySignature(payload: string | Uint8Array, signatureHeader: string, secret: string): boolean;
|
|
5386
5300
|
}
|
|
5387
5301
|
|
|
5388
5302
|
/**
|
|
@@ -5599,121 +5513,6 @@ declare class WorkspaceInvites {
|
|
|
5599
5513
|
accept(token: string): Promise<AcceptWorkspaceInviteResponse>;
|
|
5600
5514
|
}
|
|
5601
5515
|
|
|
5602
|
-
/**
|
|
5603
|
-
* Workspaces resource — top-level tenant workspaces grouping computers.
|
|
5604
|
-
*
|
|
5605
|
-
* A workspace is a logical bucket of computers (handy for teams / projects).
|
|
5606
|
-
* Accessed via `miosa.workspaces` on the top-level client.
|
|
5607
|
-
*
|
|
5608
|
-
* @example
|
|
5609
|
-
* ```ts
|
|
5610
|
-
* const ws = await miosa.workspaces.create({ name: "prod" });
|
|
5611
|
-
* const computers = await miosa.workspaces.listComputers(ws.id);
|
|
5612
|
-
* ```
|
|
5613
|
-
*/
|
|
5614
|
-
|
|
5615
|
-
type WorkspaceId = string & {
|
|
5616
|
-
readonly __brand: "WorkspaceId";
|
|
5617
|
-
};
|
|
5618
|
-
interface WorkspaceData {
|
|
5619
|
-
id: WorkspaceId;
|
|
5620
|
-
tenant_id: string;
|
|
5621
|
-
name: string;
|
|
5622
|
-
slug?: string | null;
|
|
5623
|
-
description?: string | null;
|
|
5624
|
-
metadata?: Record<string, unknown> | null;
|
|
5625
|
-
settings?: Record<string, unknown> | null;
|
|
5626
|
-
created_at?: string;
|
|
5627
|
-
updated_at?: string;
|
|
5628
|
-
[key: string]: unknown;
|
|
5629
|
-
}
|
|
5630
|
-
interface WorkspaceCreateParams {
|
|
5631
|
-
name: string;
|
|
5632
|
-
slug?: string;
|
|
5633
|
-
description?: string;
|
|
5634
|
-
metadata?: Record<string, unknown>;
|
|
5635
|
-
}
|
|
5636
|
-
interface WorkspaceUpdateParams {
|
|
5637
|
-
name?: string;
|
|
5638
|
-
description?: string;
|
|
5639
|
-
metadata?: Record<string, unknown>;
|
|
5640
|
-
}
|
|
5641
|
-
interface WorkspaceComputerTemplateCreateParams {
|
|
5642
|
-
name: string;
|
|
5643
|
-
templateType?: string;
|
|
5644
|
-
template_type?: string;
|
|
5645
|
-
description?: string;
|
|
5646
|
-
[key: string]: unknown;
|
|
5647
|
-
}
|
|
5648
|
-
declare class Workspaces {
|
|
5649
|
-
private readonly http;
|
|
5650
|
-
constructor(http: HttpClient);
|
|
5651
|
-
/**
|
|
5652
|
-
* Create a new workspace.
|
|
5653
|
-
*/
|
|
5654
|
-
create(params: WorkspaceCreateParams): Promise<WorkspaceData>;
|
|
5655
|
-
/**
|
|
5656
|
-
* List all workspaces visible to the current credential.
|
|
5657
|
-
*/
|
|
5658
|
-
list(): Promise<WorkspaceData[]>;
|
|
5659
|
-
/**
|
|
5660
|
-
* Get a single workspace by ID.
|
|
5661
|
-
*/
|
|
5662
|
-
get(id: WorkspaceId | string): Promise<WorkspaceData>;
|
|
5663
|
-
/**
|
|
5664
|
-
* Update a workspace's metadata.
|
|
5665
|
-
*/
|
|
5666
|
-
update(id: WorkspaceId | string, params: WorkspaceUpdateParams): Promise<WorkspaceData>;
|
|
5667
|
-
/**
|
|
5668
|
-
* Delete a workspace. Does not delete member computers.
|
|
5669
|
-
*/
|
|
5670
|
-
delete(id: WorkspaceId | string): Promise<void>;
|
|
5671
|
-
/**
|
|
5672
|
-
* Update workspace-level settings.
|
|
5673
|
-
*/
|
|
5674
|
-
updateSettings(id: WorkspaceId | string, settings: Record<string, unknown>): Promise<WorkspaceData>;
|
|
5675
|
-
/**
|
|
5676
|
-
* List all computers that belong to the given workspace.
|
|
5677
|
-
*/
|
|
5678
|
-
listComputers(id: WorkspaceId | string): Promise<Computer[]>;
|
|
5679
|
-
/**
|
|
5680
|
-
* List all sandboxes that belong to this workspace.
|
|
5681
|
-
*/
|
|
5682
|
-
listSandboxes(id: WorkspaceId | string): Promise<Record<string, unknown>[]>;
|
|
5683
|
-
/**
|
|
5684
|
-
* List all deployments that belong to this workspace.
|
|
5685
|
-
*/
|
|
5686
|
-
listDeployments(id: WorkspaceId | string): Promise<Record<string, unknown>[]>;
|
|
5687
|
-
/**
|
|
5688
|
-
* List all managed databases that belong to this workspace.
|
|
5689
|
-
*/
|
|
5690
|
-
listDatabases(id: WorkspaceId | string): Promise<Record<string, unknown>[]>;
|
|
5691
|
-
/**
|
|
5692
|
-
* List all projects that belong to this workspace.
|
|
5693
|
-
*/
|
|
5694
|
-
listProjects(id: WorkspaceId | string): Promise<Record<string, unknown>[]>;
|
|
5695
|
-
/**
|
|
5696
|
-
* Return aggregate resource stats for this workspace.
|
|
5697
|
-
*/
|
|
5698
|
-
stats(id: WorkspaceId | string): Promise<Record<string, unknown>>;
|
|
5699
|
-
/**
|
|
5700
|
-
* Return metered usage data for this workspace.
|
|
5701
|
-
*/
|
|
5702
|
-
usage(id: WorkspaceId | string): Promise<Record<string, unknown>>;
|
|
5703
|
-
/**
|
|
5704
|
-
* Return activity feed for this workspace.
|
|
5705
|
-
*/
|
|
5706
|
-
activity(id: WorkspaceId | string): Promise<Record<string, unknown>[]>;
|
|
5707
|
-
/**
|
|
5708
|
-
* List computer templates available in this workspace.
|
|
5709
|
-
*/
|
|
5710
|
-
listComputerTemplates(id: WorkspaceId | string): Promise<Record<string, unknown>[]>;
|
|
5711
|
-
/**
|
|
5712
|
-
* Create a computer template scoped to this workspace.
|
|
5713
|
-
*/
|
|
5714
|
-
createComputerTemplate(id: WorkspaceId | string, params: WorkspaceComputerTemplateCreateParams): Promise<Record<string, unknown>>;
|
|
5715
|
-
}
|
|
5716
|
-
|
|
5717
5516
|
/**
|
|
5718
5517
|
* The top-level MIOSA client.
|
|
5719
5518
|
*
|
|
@@ -5728,8 +5527,6 @@ declare class Workspaces {
|
|
|
5728
5527
|
* ```
|
|
5729
5528
|
*/
|
|
5730
5529
|
declare class Miosa {
|
|
5731
|
-
/** Workspace CRUD — create, list, get, update, delete, and sub-resource queries. */
|
|
5732
|
-
readonly workspaces: Workspaces;
|
|
5733
5530
|
/** Per-workspace user roster — list, add, update role, remove. */
|
|
5734
5531
|
readonly workspaceMembers: WorkspaceMembers;
|
|
5735
5532
|
/**
|
|
@@ -5877,4 +5674,4 @@ declare class NetworkError extends MiosaError {
|
|
|
5877
5674
|
constructor(message: string, cause: Error);
|
|
5878
5675
|
}
|
|
5879
5676
|
|
|
5880
|
-
export { type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, type AgentSessionCreateParams, type AgentSessionData, type AgentSessionListResponse$1 as AgentSessionListResponse, type AgentSessionStatus$1 as AgentSessionStatus, type AllowParams, Analytics, type AnalyticsFilters, type ApiKeyCreateParams, type ApiKeyCreateResult, type ApiKeyData, type ApiKeyId, type ApiKeyListParams, ApiKeys, type AppCatalogEntry, type AppInstallData, type AppInstallEvent, type AuditListParams, AuditLog, type AuditLogEvent, type AuditLogListParams, type AuditTailParams, AuthError, type BenchmarkCompareParams, type BenchmarkCreateParams, Benchmarks, type BindingCreateParams, type BindingListParams, type BrandingUpdateParams, type BucketCreateParams, type BucketData, type BucketId, type BuilderSessionListParams, BuilderSessions, type BulkUserActionParams, type ChannelCreateParams, type ChannelData, type ChannelListParams, type ChannelUpdateParams, Channels, type ChatCompletionCreateParams, type ChatCompletionCreateStreamParams, Checkpoints, type ClickParams, type ClusterCreateParams, type ClusterData, type ClusterEvent, type ClusterId, type ClusterListResponse, type ClusterStatus, CommandCenter, Community, type CompletionCreateParams, type CompletionCreateStreamParams, Completions, Computer, ComputerAudit, ComputerAutoStop, type ComputerCreateParams, type ComputerData, ComputerEnv, type ComputerId, ComputerInbox, type ComputerListParams, type ComputerListResponse, ComputerLogs, type ComputerLogsGetParams, ComputerNetwork, ComputerOsa, ComputerPorts, ComputerSecrets, type ComputerSize, type ComputerStatus, type ComputerTemplateType, ComputerTerminal, type ComputerUpdateParams, type ComputerVisibility, ComputerVolumes, Computers, type CopyParams, type CreateAdminApiKeyParams, type CreateOrgInviteParams, type CreateWorkspaceInviteParams, type CreateWorkspaceInviteResponse, type CreditBalance, type CreditTransaction, type CreditTransactionListResponse, type CreditUsage, Credits, type CronJobCreateParams, type CronJobData, type CronJobExecutionData, type CronJobExecutionId, type CronJobId, type CronJobListParams, type CronJobUpdateParams, CronJobs, type CursorInfo, type CustomDomainCreateParams, type CustomDomainData, type CustomDomainId, type CustomDomainListParams, Dashboard, type DashboardSummary, type DatabaseCreateParams, type DatabaseCredentials, type DatabaseData, type DatabaseId, type DatabaseListParams, type DatabaseLogsParams, type DatabaseLogsResult, Databases, type DeploymentBuildData, type DeploymentCreateParams, type DeploymentData, DeploymentDomains, type DeploymentId, type DeploymentListParams, type DeploymentReleaseData, type DeploymentReleaseId, DeploymentReleases, DeploymentRuntimeInstances, type DeploymentServiceData, type DeploymentServiceId, type DeploymentServiceType, type DeploymentSourceType, type DeploymentState, type DeploymentUpdateParams, type DeploymentVersionData, type DeploymentVersionId, type DeploymentVersionKind, type DeploymentVersionState, DeploymentVersions, Deployments, Desktop$1 as Desktop, type DesktopActionResult, type DirEntry, type DirListResult, type DiscordSendTestParams, type DoubleClickParams, type DragParams, type EgressAllowlistRule, EgressAudit, type EgressAuditEvent, type EgressBindingData, EgressNetwork, type EgressPolicyData, type EgressPolicyMode, type EgressRuleEffect, type EgressSecretData, type EgressSecretScope, type EgressSecretType, EgressSecrets, type EgressSuggestion, Email, EmailCampaigns, EmailInbox, EmailTemplates, type EmbeddingCreateParams, Embeddings, Exec, type ExecParams, type ExecPythonParams, type ExecResult, type ExternalAttribution, type ExternalKeyCreateParams, type ExternalKeyData, ExternalKeys, type FileDeleteParams, type FileDownloadParams, type FileEntry, type FileExportParams, type FileExportResult, type FileListParams, type FileListResult, type FileStat, Files, FlatCustomDomains, type FsEntry, type FsListResponse, type FsStat, type FunctionCreateParams, type FunctionData, type FunctionId, type FunctionInvokeParams, type FunctionListParams, type FunctionUpdateParams, Functions, type GithubRepo, type GithubSshKey, type HealthCheckCreateParams, type HealthCheckData, type HealthCheckId, type HealthCheckListParams, type HealthCheckUpdateParams, HealthChecks, type HostCreateParams, type HostData, type HostEvent, type HostId, type HostListResponse, type HostStatus, type HostUpdateParams, InsufficientCreditsError, type IntegrationCatalogEntry, type IntegrationData, Integrations, type JobData, type JobEvent, type JobEventType, type JobId, type JobListResponse, type JobRunParams, type JobStatus, type KeyParams, type LaunchParams, type LinearCreateIssueParams, type ListAdminApiKeysParams, type ListAdminComputersParams, type ListAdminTenantsParams, type ListAdminUsersParams, Mcp, type McpDispatchParams, Miosa, type MiosaClientConfig, MiosaError, type MkdirParams, type ModeParams, Models, type MouseButton, NetworkError, NetworkPolicy, type NetworkPolicyData, type NetworkPolicyEffect, type NetworkPolicyProtocol, type NetworkPolicyRule, type NetworkPolicySetParams, NotFoundError, type NotificationPrefsUpdateParams, OAuthFlow, type OauthConnectParams, type OauthProvider, type OauthStartResult, type OauthStatusResult, type ObjectListParams, type AgentEvent as OcAgentEvent, type OcAgentSessionData, type AgentSessionListResponse as OcAgentSessionListResponse, type OcWorkspaceCreateParams, type OcWorkspaceData, type OcWorkspaceEvent, type OcWorkspaceListResponse, type OcWorkspaceStatus, type OcWorkspaceUpdateParams, OpenComputers, type OrgInvite, type OrgInviteCreated, type OrgInviteCreatedResponse, type OrgInviteListResponse, type OrgInvitePreview, type OrgInviteRevokeResponse, OrgInvites, type OrgRole, type OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, ProjectAuth, type ProjectAuthEnableParams, type ProjectAuthStatus, type ProjectAuthUpdateParams, type ProjectIntegrationCatalogEntry, type ProjectIntegrationCreateParams, type ProjectIntegrationData, type ProjectIntegrationListParams, type ProjectIntegrationUpdateParams, ProjectIntegrations, ProviderDefaults, type ProviderKeyUpsertParams, type PublishFromSandboxParams, type PublishParams, type PublishResult, RateLimitError, type RegionData, Regions, type RollbackParams, type RulesListParams, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxArtifacts, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecOptions, type SandboxExecResult, SandboxFiles, type SandboxId, type SandboxListParams, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, type SandboxState, SandboxTags, type SandboxTemplate, type SandboxTemplateBuild, type SandboxTemplateBuildCreateParams, type SandboxTemplateBuildResourceData, type SandboxTemplateBuildResourceId, type SandboxTemplateCreateParams, type SandboxTemplateList, type SandboxTemplateListParams, type SandboxTemplateResourceData, type SandboxTemplateResourceId, SandboxTemplates, SandboxTerminal, Sandboxes, ScopedFs, type ScrollDirection, type ScrollParams, type SecretCreateParams, type SecretData, type SecretId, type SecretListParams, type SecretRotateParams, type SecretSetParams, type SecretUpdateParams, type SessionId, Settings, type SettingsUpdateParams, type SizeData, type SlackSendTestParams, type SnapshotCreateParams, type SnapshotData, type SnapshotListResponse, type SnapshotProgressEvent, type SnapshotRestoreResult, type SnapshotStatus, SnapshotsStandalone, Storage, type StorageObjectData, type SuggestionsParams, type TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, Tenant, type TenantId, type TenantPlan, type TenantSummary, type
|
|
5677
|
+
export { type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, type AgentSessionCreateParams, type AgentSessionData, type AgentSessionListResponse$1 as AgentSessionListResponse, type AgentSessionStatus$1 as AgentSessionStatus, type AllowParams, Analytics, type AnalyticsFilters, type ApiKeyCreateParams, type ApiKeyCreateResult, type ApiKeyData, type ApiKeyId, type ApiKeyListParams, ApiKeys, type AppCatalogEntry, type AppInstallData, type AppInstallEvent, type AuditListParams, AuditLog, type AuditLogEvent, type AuditLogListParams, type AuditTailParams, AuthError, type BenchmarkCompareParams, type BenchmarkCreateParams, Benchmarks, type BindingCreateParams, type BindingListParams, type BrandingUpdateParams, type BucketCreateParams, type BucketData, type BucketId, type BuilderSessionListParams, BuilderSessions, type BulkUserActionParams, type ChannelCreateParams, type ChannelData, type ChannelListParams, type ChannelUpdateParams, Channels, type ChatCompletionCreateParams, type ChatCompletionCreateStreamParams, Checkpoints, type ClickParams, type ClusterCreateParams, type ClusterData, type ClusterEvent, type ClusterId, type ClusterListResponse, type ClusterStatus, CommandCenter, Community, type CompletionCreateParams, type CompletionCreateStreamParams, Completions, Computer, ComputerAudit, ComputerAutoStop, type ComputerCreateParams, type ComputerData, ComputerEnv, type ComputerId, ComputerInbox, type ComputerListParams, type ComputerListResponse, ComputerLogs, type ComputerLogsGetParams, ComputerNetwork, ComputerOsa, ComputerPorts, ComputerSecrets, type ComputerSize, type ComputerStatus, type ComputerTemplateType, ComputerTerminal, type ComputerUpdateParams, type ComputerVisibility, ComputerVolumes, Computers, type CopyParams, type CreateAdminApiKeyParams, type CreateOrgInviteParams, type CreateWorkspaceInviteParams, type CreateWorkspaceInviteResponse, type CreditBalance, type CreditTransaction, type CreditTransactionListResponse, type CreditUsage, Credits, type CronJobCreateParams, type CronJobData, type CronJobExecutionData, type CronJobExecutionId, type CronJobId, type CronJobListParams, type CronJobUpdateParams, CronJobs, type CursorInfo, type CustomDomainCreateParams, type CustomDomainData, type CustomDomainId, type CustomDomainListParams, Dashboard, type DashboardSummary, type DatabaseCreateParams, type DatabaseCredentials, type DatabaseData, type DatabaseId, type DatabaseListParams, type DatabaseLogsParams, type DatabaseLogsResult, Databases, type DeploymentBuildData, type DeploymentCreateParams, type DeploymentData, DeploymentDomains, type DeploymentId, type DeploymentListParams, type DeploymentReleaseData, type DeploymentReleaseId, DeploymentReleases, DeploymentRuntimeInstances, type DeploymentServiceData, type DeploymentServiceId, type DeploymentServiceType, type DeploymentSourceType, type DeploymentState, type DeploymentUpdateParams, type DeploymentVersionData, type DeploymentVersionId, type DeploymentVersionKind, type DeploymentVersionState, DeploymentVersions, Deployments, Desktop$1 as Desktop, type DesktopActionResult, type DirEntry, type DirListResult, type DiscordSendTestParams, type DoubleClickParams, type DragParams, type EgressAllowlistRule, EgressAudit, type EgressAuditEvent, type EgressBindingData, EgressNetwork, type EgressPolicyData, type EgressPolicyMode, type EgressRuleEffect, type EgressSecretData, type EgressSecretScope, type EgressSecretType, EgressSecrets, type EgressSuggestion, Email, EmailCampaigns, EmailInbox, EmailTemplates, type EmbeddingCreateParams, Embeddings, Exec, type ExecParams, type ExecPythonParams, type ExecResult, type ExternalAttribution, type ExternalKeyCreateParams, type ExternalKeyData, ExternalKeys, type FileDeleteParams, type FileDownloadParams, type FileEntry, type FileExportParams, type FileExportResult, type FileListParams, type FileListResult, type FileStat, Files, FlatCustomDomains, type FsEntry, type FsListResponse, type FsStat, type FunctionCreateParams, type FunctionData, type FunctionId, type FunctionInvokeParams, type FunctionListParams, type FunctionUpdateParams, Functions, type GithubRepo, type GithubSshKey, type HealthCheckCreateParams, type HealthCheckData, type HealthCheckId, type HealthCheckListParams, type HealthCheckUpdateParams, HealthChecks, type HostCreateParams, type HostData, type HostEvent, type HostId, type HostListResponse, type HostStatus, type HostUpdateParams, InsufficientCreditsError, type IntegrationCatalogEntry, type IntegrationData, Integrations, type JobData, type JobEvent, type JobEventType, type JobId, type JobListResponse, type JobRunParams, type JobStatus, type KeyParams, type LaunchParams, type LinearCreateIssueParams, type ListAdminApiKeysParams, type ListAdminComputersParams, type ListAdminTenantsParams, type ListAdminUsersParams, Mcp, type McpDispatchParams, Miosa, type MiosaClientConfig, MiosaError, type MkdirParams, type ModeParams, Models, type MouseButton, NetworkError, NetworkPolicy, type NetworkPolicyData, type NetworkPolicyEffect, type NetworkPolicyProtocol, type NetworkPolicyRule, type NetworkPolicySetParams, NotFoundError, type NotificationPrefsUpdateParams, OAuthFlow, type OauthConnectParams, type OauthProvider, type OauthStartResult, type OauthStatusResult, type ObjectListParams, type AgentEvent as OcAgentEvent, type OcAgentSessionData, type AgentSessionListResponse as OcAgentSessionListResponse, type OcWorkspaceCreateParams, type OcWorkspaceData, type OcWorkspaceEvent, type OcWorkspaceListResponse, type OcWorkspaceStatus, type OcWorkspaceUpdateParams, OpenComputers, type OrgInvite, type OrgInviteCreated, type OrgInviteCreatedResponse, type OrgInviteListResponse, type OrgInvitePreview, type OrgInviteRevokeResponse, OrgInvites, type OrgRole, type OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, ProjectAuth, type ProjectAuthEnableParams, type ProjectAuthStatus, type ProjectAuthUpdateParams, type ProjectIntegrationCatalogEntry, type ProjectIntegrationCreateParams, type ProjectIntegrationData, type ProjectIntegrationListParams, type ProjectIntegrationUpdateParams, ProjectIntegrations, ProviderDefaults, type ProviderKeyUpsertParams, type PublishFromSandboxParams, type PublishParams, type PublishResult, RateLimitError, type RegionData, Regions, type RollbackParams, type RulesListParams, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxArtifacts, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecOptions, type SandboxExecResult, SandboxFiles, type SandboxId, type SandboxListParams, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, type SandboxState, SandboxTags, type SandboxTemplate, type SandboxTemplateBuild, type SandboxTemplateBuildCreateParams, type SandboxTemplateBuildResourceData, type SandboxTemplateBuildResourceId, type SandboxTemplateCreateParams, type SandboxTemplateList, type SandboxTemplateListParams, type SandboxTemplateResourceData, type SandboxTemplateResourceId, SandboxTemplates, SandboxTerminal, Sandboxes, ScopedFs, type ScrollDirection, type ScrollParams, type SecretCreateParams, type SecretData, type SecretId, type SecretListParams, type SecretRotateParams, type SecretSetParams, type SecretUpdateParams, type SessionId, Settings, type SettingsUpdateParams, type SizeData, type SlackSendTestParams, type SnapshotCreateParams, type SnapshotData, type SnapshotListResponse, type SnapshotProgressEvent, type SnapshotRestoreResult, type SnapshotStatus, SnapshotsStandalone, Storage, type StorageObjectData, type SuggestionsParams, type TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, Tenant, type TenantId, type TenantPlan, type TenantSummary, type TerminalCreateParams, TimeoutError, type TimeseriesParams, type TunnelAuthMode, type TunnelCreateParams, type TunnelData, type TunnelId, type TunnelListResponse, type TunnelUpdateParams, type TypeParams, type UpdateWorkspaceMemberRoleParams, Usage, type UsageReportParams, type UsageSession, type UsageSessionsParams, type UsageSummary, ValidationError, type VersionListParams, type VolumeCreateParams, type VolumeData, type VolumeId, type VolumeListParams, Volumes, type WaitParams, type WebhookCreateParams, type WebhookData, type WebhookDeliveryData, type WebhookDeliveryId, type WebhookId, type WebhookListParams, type WebhookUpdateParams, Webhooks, type WindowFocusParams, type WindowInfo, type WorkspaceId, type WorkspaceInvite, type WorkspaceInviteCreatedResponse, type WorkspaceInviteListResponse, type WorkspaceInvitePreview, type WorkspaceInviteRevokeResponse, WorkspaceInvites, type WorkspaceMember, type WorkspaceMemberAddedResponse, type WorkspaceMemberDeleteResponse, type WorkspaceMemberListResponse, type WorkspaceMemberRecord, type WorkspaceMemberRecordResponse, WorkspaceMembers, type WorkspaceRole, type WsTicket };
|