@deepraxis/sdk 0.1.1-dev.d61d469 → 0.1.1-dev.d6fe1a0
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 +58 -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 +95 -21
- package/dist/generated/sdk.gen.js +214 -20
- package/dist/generated/types.gen.d.ts +1737 -56
- 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 +508 -29
- package/dist/resources.generated.d.ts +123 -0
- package/dist/resources.generated.js +33 -0
- package/package.json +1 -1
|
@@ -904,6 +904,32 @@ 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";
|
|
913
|
+
sku: string | null;
|
|
914
|
+
name: string | null;
|
|
915
|
+
sandbox_id: string | null;
|
|
916
|
+
lease_ends_at: string | null;
|
|
917
|
+
archived_at: string | null;
|
|
918
|
+
archive_error: string | null;
|
|
919
|
+
}>;
|
|
920
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.AgentsPhoneRetrieveData>) => Promise<{
|
|
921
|
+
object: "agent_phone";
|
|
922
|
+
agent_id: string;
|
|
923
|
+
configured: boolean;
|
|
924
|
+
state: "none" | "starting" | "booting" | "restoring" | "running" | "archiving" | "releasing";
|
|
925
|
+
sku: string | null;
|
|
926
|
+
name: string | null;
|
|
927
|
+
sandbox_id: string | null;
|
|
928
|
+
lease_ends_at: string | null;
|
|
929
|
+
archived_at: string | null;
|
|
930
|
+
archive_error: string | null;
|
|
931
|
+
}>;
|
|
932
|
+
};
|
|
907
933
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.AgentsRetrieveData>) => Promise<{
|
|
908
934
|
id: string;
|
|
909
935
|
archived_at: null | string;
|
|
@@ -2364,6 +2390,18 @@ export declare function createAgent(transport: Transport): {
|
|
|
2364
2390
|
tier: "light" | "heavy";
|
|
2365
2391
|
}>;
|
|
2366
2392
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesContentData>) => Promise<Blob | File>;
|
|
2393
|
+
retrievePreview: (options: import("./core/transport.js").CallOptions<Types.PreviewComputerFileData>) => Promise<{
|
|
2394
|
+
variant: "image" | "pdf" | "text" | "original";
|
|
2395
|
+
version?: string;
|
|
2396
|
+
mime_type?: string;
|
|
2397
|
+
size?: number;
|
|
2398
|
+
file_id?: string;
|
|
2399
|
+
url?: string;
|
|
2400
|
+
expires_at?: string;
|
|
2401
|
+
cached: boolean;
|
|
2402
|
+
fallback?: "content";
|
|
2403
|
+
skipped?: boolean;
|
|
2404
|
+
}>;
|
|
2367
2405
|
};
|
|
2368
2406
|
leases: {
|
|
2369
2407
|
delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
|
|
@@ -3222,6 +3260,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
3222
3260
|
vault_ids: Array<string>;
|
|
3223
3261
|
deployment_id?: null | string;
|
|
3224
3262
|
cwd: string;
|
|
3263
|
+
workspace?: {
|
|
3264
|
+
kind: "shared" | "isolated";
|
|
3265
|
+
path?: string;
|
|
3266
|
+
branch?: string;
|
|
3267
|
+
};
|
|
3225
3268
|
computer_id?: string;
|
|
3226
3269
|
model?: {
|
|
3227
3270
|
id: string;
|
|
@@ -3282,6 +3325,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
3282
3325
|
vault_ids: Array<string>;
|
|
3283
3326
|
deployment_id?: null | string;
|
|
3284
3327
|
cwd: string;
|
|
3328
|
+
workspace?: {
|
|
3329
|
+
kind: "shared" | "isolated";
|
|
3330
|
+
path?: string;
|
|
3331
|
+
branch?: string;
|
|
3332
|
+
};
|
|
3285
3333
|
computer_id?: string;
|
|
3286
3334
|
model?: {
|
|
3287
3335
|
id: string;
|
|
@@ -3444,6 +3492,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
3444
3492
|
vault_ids: Array<string>;
|
|
3445
3493
|
deployment_id?: null | string;
|
|
3446
3494
|
cwd: string;
|
|
3495
|
+
workspace?: {
|
|
3496
|
+
kind: "shared" | "isolated";
|
|
3497
|
+
path?: string;
|
|
3498
|
+
branch?: string;
|
|
3499
|
+
};
|
|
3447
3500
|
computer_id?: string;
|
|
3448
3501
|
model?: {
|
|
3449
3502
|
id: string;
|
|
@@ -4230,6 +4283,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
4230
4283
|
vault_ids: Array<string>;
|
|
4231
4284
|
deployment_id?: null | string;
|
|
4232
4285
|
cwd: string;
|
|
4286
|
+
workspace?: {
|
|
4287
|
+
kind: "shared" | "isolated";
|
|
4288
|
+
path?: string;
|
|
4289
|
+
branch?: string;
|
|
4290
|
+
};
|
|
4233
4291
|
computer_id?: string;
|
|
4234
4292
|
model?: {
|
|
4235
4293
|
id: string;
|
|
@@ -4290,6 +4348,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
4290
4348
|
vault_ids: Array<string>;
|
|
4291
4349
|
deployment_id?: null | string;
|
|
4292
4350
|
cwd: string;
|
|
4351
|
+
workspace?: {
|
|
4352
|
+
kind: "shared" | "isolated";
|
|
4353
|
+
path?: string;
|
|
4354
|
+
branch?: string;
|
|
4355
|
+
};
|
|
4293
4356
|
computer_id?: string;
|
|
4294
4357
|
model?: {
|
|
4295
4358
|
id: string;
|
|
@@ -4823,6 +4886,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
4823
4886
|
vault_ids: Array<string>;
|
|
4824
4887
|
deployment_id?: null | string;
|
|
4825
4888
|
cwd: string;
|
|
4889
|
+
workspace?: {
|
|
4890
|
+
kind: "shared" | "isolated";
|
|
4891
|
+
path?: string;
|
|
4892
|
+
branch?: string;
|
|
4893
|
+
};
|
|
4826
4894
|
computer_id?: string;
|
|
4827
4895
|
model?: {
|
|
4828
4896
|
id: string;
|
|
@@ -4914,6 +4982,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
4914
4982
|
vault_ids: Array<string>;
|
|
4915
4983
|
deployment_id?: null | string;
|
|
4916
4984
|
cwd: string;
|
|
4985
|
+
workspace?: {
|
|
4986
|
+
kind: "shared" | "isolated";
|
|
4987
|
+
path?: string;
|
|
4988
|
+
branch?: string;
|
|
4989
|
+
};
|
|
4917
4990
|
computer_id?: string;
|
|
4918
4991
|
model?: {
|
|
4919
4992
|
id: string;
|
|
@@ -5280,6 +5353,11 @@ export declare function createAgent(transport: Transport): {
|
|
|
5280
5353
|
vault_ids: Array<string>;
|
|
5281
5354
|
deployment_id?: null | string;
|
|
5282
5355
|
cwd: string;
|
|
5356
|
+
workspace?: {
|
|
5357
|
+
kind: "shared" | "isolated";
|
|
5358
|
+
path?: string;
|
|
5359
|
+
branch?: string;
|
|
5360
|
+
};
|
|
5283
5361
|
computer_id?: string;
|
|
5284
5362
|
model?: {
|
|
5285
5363
|
id: string;
|
|
@@ -5631,6 +5709,11 @@ export declare function createAutomation(transport: Transport): {
|
|
|
5631
5709
|
};
|
|
5632
5710
|
};
|
|
5633
5711
|
};
|
|
5712
|
+
export declare function createBilling(transport: Transport): {
|
|
5713
|
+
prices: {
|
|
5714
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.ListPublicPricesData> | undefined) => Promise<Types.BillingPriceList>;
|
|
5715
|
+
};
|
|
5716
|
+
};
|
|
5634
5717
|
export declare function createBrowser(transport: Transport): {
|
|
5635
5718
|
connect: {
|
|
5636
5719
|
retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserConnectData> | undefined) => Promise<unknown>;
|
|
@@ -6077,6 +6160,7 @@ export declare function createDevops(transport: Transport): {
|
|
|
6077
6160
|
};
|
|
6078
6161
|
};
|
|
6079
6162
|
pullRequests: {
|
|
6163
|
+
close: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsCloseData>) => Promise<Types.DevopsPullRequest>;
|
|
6080
6164
|
merge: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsMergeData>) => Promise<Types.DevopsPullRequest>;
|
|
6081
6165
|
recordVerdict: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRecordVerdictData>) => Promise<Types.DevopsPullRequest>;
|
|
6082
6166
|
rerunGate: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRerunGateData>) => Promise<Types.DevopsPullRequest>;
|
|
@@ -6296,6 +6380,12 @@ export declare function createMedia(transport: Transport): {
|
|
|
6296
6380
|
retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
|
|
6297
6381
|
};
|
|
6298
6382
|
update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
|
|
6383
|
+
voices: {
|
|
6384
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateVoiceData>) => Promise<Types.MediaJob>;
|
|
6385
|
+
designs: {
|
|
6386
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaDesignVoiceData>) => Promise<Types.MediaJob>;
|
|
6387
|
+
};
|
|
6388
|
+
};
|
|
6299
6389
|
};
|
|
6300
6390
|
speech: {
|
|
6301
6391
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateSpeechData>) => Promise<Types.MediaJob>;
|
|
@@ -7296,6 +7386,18 @@ export declare function createRegistry(transport: Transport): {
|
|
|
7296
7386
|
update: (options: import("./core/transport.js").CallOptions<Types.RegistryInstallationsUpdateData>) => Promise<Types.RegistryInstallation>;
|
|
7297
7387
|
};
|
|
7298
7388
|
packages: {
|
|
7389
|
+
git: {
|
|
7390
|
+
commits: {
|
|
7391
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitCommitsRetrieveData>) => Promise<Types.RegistryGitCommit>;
|
|
7392
|
+
};
|
|
7393
|
+
files: {
|
|
7394
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitFilesRetrieveData>) => Promise<Blob | File>;
|
|
7395
|
+
};
|
|
7396
|
+
retrieveLog: (options: import("./core/transport.js").CallOptions<Types.RegistryGitLogData>) => Promise<Types.RegistryGitLog>;
|
|
7397
|
+
trees: {
|
|
7398
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitTreesRetrieveData>) => Promise<Types.RegistryGitTree>;
|
|
7399
|
+
};
|
|
7400
|
+
};
|
|
7299
7401
|
installations: {
|
|
7300
7402
|
create: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsCreateData>) => Promise<Types.RegistryInstallResult>;
|
|
7301
7403
|
list: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsListData>) => Promise<Types.RegistryInstallationList>;
|
|
@@ -7333,6 +7435,26 @@ export declare function createSandbox(transport: Transport): {
|
|
|
7333
7435
|
};
|
|
7334
7436
|
};
|
|
7335
7437
|
sandboxes: {
|
|
7438
|
+
act: (options: import("./core/transport.js").CallOptions<Types.ActOnSandboxDisplayData>) => Promise<{
|
|
7439
|
+
type: "snapshot";
|
|
7440
|
+
snapshot: string;
|
|
7441
|
+
refs: number;
|
|
7442
|
+
truncated: boolean;
|
|
7443
|
+
package: string;
|
|
7444
|
+
} | {
|
|
7445
|
+
type: "screenshot";
|
|
7446
|
+
mediaType: string;
|
|
7447
|
+
data: string;
|
|
7448
|
+
width: number;
|
|
7449
|
+
height: number;
|
|
7450
|
+
bytes: number;
|
|
7451
|
+
} | {
|
|
7452
|
+
type: "ok";
|
|
7453
|
+
ms?: number;
|
|
7454
|
+
} | {
|
|
7455
|
+
type: "wait";
|
|
7456
|
+
ms: number;
|
|
7457
|
+
}>;
|
|
7336
7458
|
commands: {
|
|
7337
7459
|
run: (options: import("./core/transport.js").CallOptions<Types.RunSandboxCommandData>) => Promise<{
|
|
7338
7460
|
stdout: string;
|
|
@@ -7861,6 +7983,7 @@ export declare const resourceFactories: {
|
|
|
7861
7983
|
agent: typeof createAgent;
|
|
7862
7984
|
application: typeof createApplication;
|
|
7863
7985
|
automation: typeof createAutomation;
|
|
7986
|
+
billing: typeof createBilling;
|
|
7864
7987
|
browser: typeof createBrowser;
|
|
7865
7988
|
canvas: typeof createCanvas;
|
|
7866
7989
|
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),
|
|
@@ -988,6 +1001,12 @@ export function createMedia(transport) {
|
|
|
988
1001
|
retrieveFailureSummary: bind(transport, sdk.mediaUnderstandingFailureSummary),
|
|
989
1002
|
},
|
|
990
1003
|
update: bind(transport, sdk.mediaUpdateLibrary),
|
|
1004
|
+
voices: {
|
|
1005
|
+
create: bind(transport, sdk.mediaCreateVoice),
|
|
1006
|
+
designs: {
|
|
1007
|
+
create: bind(transport, sdk.mediaDesignVoice),
|
|
1008
|
+
},
|
|
1009
|
+
},
|
|
991
1010
|
},
|
|
992
1011
|
speech: {
|
|
993
1012
|
create: bind(transport, sdk.mediaCreateSpeech),
|
|
@@ -1266,6 +1285,18 @@ export function createRegistry(transport) {
|
|
|
1266
1285
|
update: bind(transport, sdk.registryInstallationsUpdate),
|
|
1267
1286
|
},
|
|
1268
1287
|
packages: {
|
|
1288
|
+
git: {
|
|
1289
|
+
commits: {
|
|
1290
|
+
retrieve: bind(transport, sdk.registryGitCommitsRetrieve),
|
|
1291
|
+
},
|
|
1292
|
+
files: {
|
|
1293
|
+
retrieve: bind(transport, sdk.registryGitFilesRetrieve),
|
|
1294
|
+
},
|
|
1295
|
+
retrieveLog: bind(transport, sdk.registryGitLog),
|
|
1296
|
+
trees: {
|
|
1297
|
+
retrieve: bind(transport, sdk.registryGitTreesRetrieve),
|
|
1298
|
+
},
|
|
1299
|
+
},
|
|
1269
1300
|
installations: {
|
|
1270
1301
|
create: bind(transport, sdk.registryPackagesInstallationsCreate),
|
|
1271
1302
|
list: bind(transport, sdk.registryPackagesInstallationsList),
|
|
@@ -1305,6 +1336,7 @@ export function createSandbox(transport) {
|
|
|
1305
1336
|
},
|
|
1306
1337
|
},
|
|
1307
1338
|
sandboxes: {
|
|
1339
|
+
act: bind(transport, sdk.actOnSandboxDisplay),
|
|
1308
1340
|
commands: {
|
|
1309
1341
|
run: bind(transport, sdk.runSandboxCommand),
|
|
1310
1342
|
},
|
|
@@ -1660,6 +1692,7 @@ export const resourceFactories = {
|
|
|
1660
1692
|
agent: createAgent,
|
|
1661
1693
|
application: createApplication,
|
|
1662
1694
|
automation: createAutomation,
|
|
1695
|
+
billing: createBilling,
|
|
1663
1696
|
browser: createBrowser,
|
|
1664
1697
|
canvas: createCanvas,
|
|
1665
1698
|
content: createContent,
|