@deepraxis/sdk 0.1.1-dev.a936efe → 0.1.1-dev.aa440c9
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/METHODS.md +22 -1
- package/dist/core/binary-operations.d.ts +3 -0
- package/dist/core/binary-operations.js +14 -0
- package/dist/core/transport.js +8 -4
- package/dist/generated/binary-operations.gen.d.ts +3 -0
- package/dist/generated/binary-operations.gen.js +14 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +53 -15
- package/dist/generated/sdk.gen.js +116 -14
- package/dist/generated/types.gen.d.ts +1212 -101
- package/dist/helpers/application-publish.js +16 -2
- package/dist/helpers/browser-connect-error.d.ts +28 -0
- package/dist/helpers/browser-connect-error.js +74 -0
- package/dist/helpers/browser-connect.d.ts +2 -0
- package/dist/helpers/browser-connect.js +36 -42
- package/dist/helpers/browser-decisions.d.ts +13 -0
- package/dist/helpers/browser-decisions.js +11 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -2
- package/dist/operations.generated.js +260 -17
- package/dist/resources.generated.d.ts +107 -0
- package/dist/resources.generated.js +15 -0
- package/package.json +1 -1
|
@@ -904,6 +904,34 @@ export declare function createAgent(transport: Transport): {
|
|
|
904
904
|
}>;
|
|
905
905
|
next_page: string | null;
|
|
906
906
|
}>;
|
|
907
|
+
phone: {
|
|
908
|
+
release: (options: import("./core/transport.js").CallOptions<Types.AgentsPhoneReleaseData>) => Promise<{
|
|
909
|
+
object: "agent_phone";
|
|
910
|
+
agent_id: string;
|
|
911
|
+
configured: boolean;
|
|
912
|
+
state: "none" | "starting" | "booting" | "restoring" | "running" | "archiving" | "releasing" | "online" | "offline";
|
|
913
|
+
sku: string | null;
|
|
914
|
+
byod_device: string | null;
|
|
915
|
+
name: string | null;
|
|
916
|
+
sandbox_id: string | null;
|
|
917
|
+
lease_ends_at: string | null;
|
|
918
|
+
archived_at: string | null;
|
|
919
|
+
archive_error: string | null;
|
|
920
|
+
}>;
|
|
921
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.AgentsPhoneRetrieveData>) => Promise<{
|
|
922
|
+
object: "agent_phone";
|
|
923
|
+
agent_id: string;
|
|
924
|
+
configured: boolean;
|
|
925
|
+
state: "none" | "starting" | "booting" | "restoring" | "running" | "archiving" | "releasing" | "online" | "offline";
|
|
926
|
+
sku: string | null;
|
|
927
|
+
byod_device: string | null;
|
|
928
|
+
name: string | null;
|
|
929
|
+
sandbox_id: string | null;
|
|
930
|
+
lease_ends_at: string | null;
|
|
931
|
+
archived_at: string | null;
|
|
932
|
+
archive_error: string | null;
|
|
933
|
+
}>;
|
|
934
|
+
};
|
|
907
935
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.AgentsRetrieveData>) => Promise<{
|
|
908
936
|
id: string;
|
|
909
937
|
archived_at: null | string;
|
|
@@ -2364,6 +2392,18 @@ export declare function createAgent(transport: Transport): {
|
|
|
2364
2392
|
tier: "light" | "heavy";
|
|
2365
2393
|
}>;
|
|
2366
2394
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesContentData>) => Promise<Blob | File>;
|
|
2395
|
+
retrievePreview: (options: import("./core/transport.js").CallOptions<Types.PreviewComputerFileData>) => Promise<{
|
|
2396
|
+
variant: "image" | "pdf" | "text" | "original";
|
|
2397
|
+
version?: string;
|
|
2398
|
+
mime_type?: string;
|
|
2399
|
+
size?: number;
|
|
2400
|
+
file_id?: string;
|
|
2401
|
+
url?: string;
|
|
2402
|
+
expires_at?: string;
|
|
2403
|
+
cached: boolean;
|
|
2404
|
+
fallback?: "content";
|
|
2405
|
+
skipped?: boolean;
|
|
2406
|
+
}>;
|
|
2367
2407
|
};
|
|
2368
2408
|
leases: {
|
|
2369
2409
|
delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
|
|
@@ -3222,6 +3262,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
3222
3262
|
vault_ids: Array<string>;
|
|
3223
3263
|
deployment_id?: null | string;
|
|
3224
3264
|
cwd: string;
|
|
3265
|
+
workspace?: {
|
|
3266
|
+
kind: "shared" | "isolated";
|
|
3267
|
+
path?: string;
|
|
3268
|
+
branch?: string;
|
|
3269
|
+
};
|
|
3225
3270
|
computer_id?: string;
|
|
3226
3271
|
model?: {
|
|
3227
3272
|
id: string;
|
|
@@ -3282,6 +3327,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
3282
3327
|
vault_ids: Array<string>;
|
|
3283
3328
|
deployment_id?: null | string;
|
|
3284
3329
|
cwd: string;
|
|
3330
|
+
workspace?: {
|
|
3331
|
+
kind: "shared" | "isolated";
|
|
3332
|
+
path?: string;
|
|
3333
|
+
branch?: string;
|
|
3334
|
+
};
|
|
3285
3335
|
computer_id?: string;
|
|
3286
3336
|
model?: {
|
|
3287
3337
|
id: string;
|
|
@@ -3444,6 +3494,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
3444
3494
|
vault_ids: Array<string>;
|
|
3445
3495
|
deployment_id?: null | string;
|
|
3446
3496
|
cwd: string;
|
|
3497
|
+
workspace?: {
|
|
3498
|
+
kind: "shared" | "isolated";
|
|
3499
|
+
path?: string;
|
|
3500
|
+
branch?: string;
|
|
3501
|
+
};
|
|
3447
3502
|
computer_id?: string;
|
|
3448
3503
|
model?: {
|
|
3449
3504
|
id: string;
|
|
@@ -4230,6 +4285,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
4230
4285
|
vault_ids: Array<string>;
|
|
4231
4286
|
deployment_id?: null | string;
|
|
4232
4287
|
cwd: string;
|
|
4288
|
+
workspace?: {
|
|
4289
|
+
kind: "shared" | "isolated";
|
|
4290
|
+
path?: string;
|
|
4291
|
+
branch?: string;
|
|
4292
|
+
};
|
|
4233
4293
|
computer_id?: string;
|
|
4234
4294
|
model?: {
|
|
4235
4295
|
id: string;
|
|
@@ -4290,6 +4350,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
4290
4350
|
vault_ids: Array<string>;
|
|
4291
4351
|
deployment_id?: null | string;
|
|
4292
4352
|
cwd: string;
|
|
4353
|
+
workspace?: {
|
|
4354
|
+
kind: "shared" | "isolated";
|
|
4355
|
+
path?: string;
|
|
4356
|
+
branch?: string;
|
|
4357
|
+
};
|
|
4293
4358
|
computer_id?: string;
|
|
4294
4359
|
model?: {
|
|
4295
4360
|
id: string;
|
|
@@ -4823,6 +4888,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
4823
4888
|
vault_ids: Array<string>;
|
|
4824
4889
|
deployment_id?: null | string;
|
|
4825
4890
|
cwd: string;
|
|
4891
|
+
workspace?: {
|
|
4892
|
+
kind: "shared" | "isolated";
|
|
4893
|
+
path?: string;
|
|
4894
|
+
branch?: string;
|
|
4895
|
+
};
|
|
4826
4896
|
computer_id?: string;
|
|
4827
4897
|
model?: {
|
|
4828
4898
|
id: string;
|
|
@@ -4914,6 +4984,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
4914
4984
|
vault_ids: Array<string>;
|
|
4915
4985
|
deployment_id?: null | string;
|
|
4916
4986
|
cwd: string;
|
|
4987
|
+
workspace?: {
|
|
4988
|
+
kind: "shared" | "isolated";
|
|
4989
|
+
path?: string;
|
|
4990
|
+
branch?: string;
|
|
4991
|
+
};
|
|
4917
4992
|
computer_id?: string;
|
|
4918
4993
|
model?: {
|
|
4919
4994
|
id: string;
|
|
@@ -5280,6 +5355,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
5280
5355
|
vault_ids: Array<string>;
|
|
5281
5356
|
deployment_id?: null | string;
|
|
5282
5357
|
cwd: string;
|
|
5358
|
+
workspace?: {
|
|
5359
|
+
kind: "shared" | "isolated";
|
|
5360
|
+
path?: string;
|
|
5361
|
+
branch?: string;
|
|
5362
|
+
};
|
|
5283
5363
|
computer_id?: string;
|
|
5284
5364
|
model?: {
|
|
5285
5365
|
id: string;
|
|
@@ -5631,6 +5711,11 @@ export declare function createAutomation(transport: Transport): {
|
|
|
5631
5711
|
};
|
|
5632
5712
|
};
|
|
5633
5713
|
};
|
|
5714
|
+
export declare function createBilling(transport: Transport): {
|
|
5715
|
+
prices: {
|
|
5716
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.ListPublicPricesData> | undefined) => Promise<Types.BillingPriceList>;
|
|
5717
|
+
};
|
|
5718
|
+
};
|
|
5634
5719
|
export declare function createBrowser(transport: Transport): {
|
|
5635
5720
|
connect: {
|
|
5636
5721
|
retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserConnectData> | undefined) => Promise<unknown>;
|
|
@@ -6077,6 +6162,7 @@ export declare function createDevops(transport: Transport): {
|
|
|
6077
6162
|
};
|
|
6078
6163
|
};
|
|
6079
6164
|
pullRequests: {
|
|
6165
|
+
close: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsCloseData>) => Promise<Types.DevopsPullRequest>;
|
|
6080
6166
|
merge: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsMergeData>) => Promise<Types.DevopsPullRequest>;
|
|
6081
6167
|
recordVerdict: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRecordVerdictData>) => Promise<Types.DevopsPullRequest>;
|
|
6082
6168
|
rerunGate: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRerunGateData>) => Promise<Types.DevopsPullRequest>;
|
|
@@ -7351,6 +7437,26 @@ export declare function createSandbox(transport: Transport): {
|
|
|
7351
7437
|
};
|
|
7352
7438
|
};
|
|
7353
7439
|
sandboxes: {
|
|
7440
|
+
act: (options: import("./core/transport.js").CallOptions<Types.ActOnSandboxDisplayData>) => Promise<{
|
|
7441
|
+
type: "snapshot";
|
|
7442
|
+
snapshot: string;
|
|
7443
|
+
refs: number;
|
|
7444
|
+
truncated: boolean;
|
|
7445
|
+
package: string;
|
|
7446
|
+
} | {
|
|
7447
|
+
type: "screenshot";
|
|
7448
|
+
mediaType: string;
|
|
7449
|
+
data: string;
|
|
7450
|
+
width: number;
|
|
7451
|
+
height: number;
|
|
7452
|
+
bytes: number;
|
|
7453
|
+
} | {
|
|
7454
|
+
type: "ok";
|
|
7455
|
+
ms?: number;
|
|
7456
|
+
} | {
|
|
7457
|
+
type: "wait";
|
|
7458
|
+
ms: number;
|
|
7459
|
+
}>;
|
|
7354
7460
|
commands: {
|
|
7355
7461
|
run: (options: import("./core/transport.js").CallOptions<Types.RunSandboxCommandData>) => Promise<{
|
|
7356
7462
|
stdout: string;
|
|
@@ -7879,6 +7985,7 @@ export declare const resourceFactories: {
|
|
|
7879
7985
|
agent: typeof createAgent;
|
|
7880
7986
|
application: typeof createApplication;
|
|
7881
7987
|
automation: typeof createAutomation;
|
|
7988
|
+
billing: typeof createBilling;
|
|
7882
7989
|
browser: typeof createBrowser;
|
|
7883
7990
|
canvas: typeof createCanvas;
|
|
7884
7991
|
content: typeof createContent;
|
|
@@ -37,6 +37,10 @@ export function createAgent(transport) {
|
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
list: bind(transport, sdk.agentsList),
|
|
40
|
+
phone: {
|
|
41
|
+
release: bind(transport, sdk.agentsPhoneRelease),
|
|
42
|
+
retrieve: bind(transport, sdk.agentsPhoneRetrieve),
|
|
43
|
+
},
|
|
40
44
|
retrieve: bind(transport, sdk.agentsRetrieve),
|
|
41
45
|
retrieveAppearance: bind(transport, sdk.getAgentAppearance),
|
|
42
46
|
retrieveEmbedPolicy: bind(transport, sdk.getAgentEmbedPolicy),
|
|
@@ -64,6 +68,7 @@ export function createAgent(transport) {
|
|
|
64
68
|
},
|
|
65
69
|
list: bind(transport, sdk.computersFilesList),
|
|
66
70
|
retrieveContent: bind(transport, sdk.computersFilesContent),
|
|
71
|
+
retrievePreview: bind(transport, sdk.previewComputerFile),
|
|
67
72
|
},
|
|
68
73
|
leases: {
|
|
69
74
|
delete: bind(transport, sdk.releaseComputerLease),
|
|
@@ -372,6 +377,13 @@ export function createAutomation(transport) {
|
|
|
372
377
|
},
|
|
373
378
|
};
|
|
374
379
|
}
|
|
380
|
+
export function createBilling(transport) {
|
|
381
|
+
return {
|
|
382
|
+
prices: {
|
|
383
|
+
list: bind(transport, sdk.listPublicPrices),
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
}
|
|
375
387
|
export function createBrowser(transport) {
|
|
376
388
|
return {
|
|
377
389
|
connect: {
|
|
@@ -768,6 +780,7 @@ export function createDevops(transport) {
|
|
|
768
780
|
},
|
|
769
781
|
},
|
|
770
782
|
pullRequests: {
|
|
783
|
+
close: bind(transport, sdk.devopsPullRequestsClose),
|
|
771
784
|
merge: bind(transport, sdk.devopsPullRequestsMerge),
|
|
772
785
|
recordVerdict: bind(transport, sdk.devopsPullRequestsRecordVerdict),
|
|
773
786
|
rerunGate: bind(transport, sdk.devopsPullRequestsRerunGate),
|
|
@@ -1323,6 +1336,7 @@ export function createSandbox(transport) {
|
|
|
1323
1336
|
},
|
|
1324
1337
|
},
|
|
1325
1338
|
sandboxes: {
|
|
1339
|
+
act: bind(transport, sdk.actOnSandboxDisplay),
|
|
1326
1340
|
commands: {
|
|
1327
1341
|
run: bind(transport, sdk.runSandboxCommand),
|
|
1328
1342
|
},
|
|
@@ -1678,6 +1692,7 @@ export const resourceFactories = {
|
|
|
1678
1692
|
agent: createAgent,
|
|
1679
1693
|
application: createApplication,
|
|
1680
1694
|
automation: createAutomation,
|
|
1695
|
+
billing: createBilling,
|
|
1681
1696
|
browser: createBrowser,
|
|
1682
1697
|
canvas: createCanvas,
|
|
1683
1698
|
content: createContent,
|