@deepraxis/sdk 0.2.0-dev.af2cf98 → 0.2.0-dev.b5aa484
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 +42 -1
- package/dist/core/retry.js +2 -0
- package/dist/core/transport.js +15 -3
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +70 -10
- package/dist/generated/sdk.gen.js +156 -9
- package/dist/generated/types.gen.d.ts +1714 -225
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +5 -1
- package/dist/helpers/browser-connect-error.d.ts +7 -1
- package/dist/helpers/browser-connect-error.js +12 -1
- package/dist/helpers/browser-connect.d.ts +1 -1
- package/dist/helpers/browser-connect.js +16 -5
- package/dist/helpers/browser-decisions.d.ts +3 -0
- package/dist/helpers/browser-decisions.js +5 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +3 -0
- package/dist/operations.generated.js +316 -15
- package/dist/resources.generated.d.ts +116 -0
- package/dist/resources.generated.js +26 -0
- package/package.json +1 -1
|
@@ -248,6 +248,9 @@ export declare function createAgent(transport: Transport): {
|
|
|
248
248
|
name: string;
|
|
249
249
|
}>;
|
|
250
250
|
};
|
|
251
|
+
browser?: {
|
|
252
|
+
byob: string;
|
|
253
|
+
} | null;
|
|
251
254
|
computer_id?: string;
|
|
252
255
|
subagent_model?: string | null;
|
|
253
256
|
subagents?: Array<{
|
|
@@ -460,6 +463,16 @@ export declare function createAgent(transport: Transport): {
|
|
|
460
463
|
}>;
|
|
461
464
|
};
|
|
462
465
|
};
|
|
466
|
+
devices: {
|
|
467
|
+
localSessions: {
|
|
468
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListAgentDeviceLocalSessionsData>) => Promise<import("./automation.js").Page<{
|
|
469
|
+
id: string;
|
|
470
|
+
title: string;
|
|
471
|
+
updated_at: string | null;
|
|
472
|
+
cwd: string | null;
|
|
473
|
+
}>>;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
463
476
|
events: {
|
|
464
477
|
list: (options: import("./core/transport.js").CallOptions<Types.ListAgentEventsData>) => Promise<{
|
|
465
478
|
data: Array<{
|
|
@@ -833,6 +846,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
833
846
|
reason?: "project_removed";
|
|
834
847
|
message_id?: string;
|
|
835
848
|
session_thread_id?: string | null;
|
|
849
|
+
} | {
|
|
850
|
+
id: string;
|
|
851
|
+
type: "session.status_preparing";
|
|
852
|
+
processed_at: string;
|
|
853
|
+
stage: "launching" | "loading" | "ready";
|
|
854
|
+
message_id?: string;
|
|
855
|
+
session_thread_id?: string | null;
|
|
836
856
|
}>;
|
|
837
857
|
next_page: string | null;
|
|
838
858
|
}>;
|
|
@@ -931,6 +951,9 @@ export declare function createAgent(transport: Transport): {
|
|
|
931
951
|
name: string;
|
|
932
952
|
}>;
|
|
933
953
|
};
|
|
954
|
+
browser?: {
|
|
955
|
+
byob: string;
|
|
956
|
+
} | null;
|
|
934
957
|
computer_id?: string;
|
|
935
958
|
subagent_model?: string | null;
|
|
936
959
|
subagents?: Array<{
|
|
@@ -1139,6 +1162,9 @@ export declare function createAgent(transport: Transport): {
|
|
|
1139
1162
|
name: string;
|
|
1140
1163
|
}>;
|
|
1141
1164
|
};
|
|
1165
|
+
browser?: {
|
|
1166
|
+
byob: string;
|
|
1167
|
+
} | null;
|
|
1142
1168
|
computer_id?: string;
|
|
1143
1169
|
subagent_model?: string | null;
|
|
1144
1170
|
subagents?: Array<{
|
|
@@ -1598,6 +1624,9 @@ export declare function createAgent(transport: Transport): {
|
|
|
1598
1624
|
name: string;
|
|
1599
1625
|
}>;
|
|
1600
1626
|
};
|
|
1627
|
+
browser?: {
|
|
1628
|
+
byob: string;
|
|
1629
|
+
} | null;
|
|
1601
1630
|
computer_id?: string;
|
|
1602
1631
|
subagent_model?: string | null;
|
|
1603
1632
|
subagents?: Array<{
|
|
@@ -1777,6 +1806,9 @@ export declare function createAgent(transport: Transport): {
|
|
|
1777
1806
|
name: string;
|
|
1778
1807
|
}>;
|
|
1779
1808
|
};
|
|
1809
|
+
browser?: {
|
|
1810
|
+
byob: string;
|
|
1811
|
+
} | null;
|
|
1780
1812
|
computer_id?: string;
|
|
1781
1813
|
subagent_model?: string | null;
|
|
1782
1814
|
subagents?: Array<{
|
|
@@ -2173,6 +2205,9 @@ export declare function createAgent(transport: Transport): {
|
|
|
2173
2205
|
name: string;
|
|
2174
2206
|
}>;
|
|
2175
2207
|
};
|
|
2208
|
+
browser?: {
|
|
2209
|
+
byob: string;
|
|
2210
|
+
} | null;
|
|
2176
2211
|
computer_id?: string;
|
|
2177
2212
|
subagent_model?: string | null;
|
|
2178
2213
|
subagents?: Array<{
|
|
@@ -2351,6 +2386,9 @@ export declare function createAgent(transport: Transport): {
|
|
|
2351
2386
|
name: string;
|
|
2352
2387
|
}>;
|
|
2353
2388
|
};
|
|
2389
|
+
browser?: {
|
|
2390
|
+
byob: string;
|
|
2391
|
+
} | null;
|
|
2354
2392
|
computer_id?: string;
|
|
2355
2393
|
subagent_model?: string | null;
|
|
2356
2394
|
subagents?: Array<{
|
|
@@ -4080,6 +4118,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
4080
4118
|
reason?: "project_removed";
|
|
4081
4119
|
message_id?: string;
|
|
4082
4120
|
session_thread_id?: string | null;
|
|
4121
|
+
} | {
|
|
4122
|
+
id: string;
|
|
4123
|
+
type: "session.status_preparing";
|
|
4124
|
+
processed_at: string;
|
|
4125
|
+
stage: "launching" | "loading" | "ready";
|
|
4126
|
+
message_id?: string;
|
|
4127
|
+
session_thread_id?: string | null;
|
|
4083
4128
|
}>;
|
|
4084
4129
|
next_page: string | null;
|
|
4085
4130
|
}>;
|
|
@@ -5810,6 +5855,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
5810
5855
|
reason?: "project_removed";
|
|
5811
5856
|
message_id?: string;
|
|
5812
5857
|
session_thread_id?: string | null;
|
|
5858
|
+
} | {
|
|
5859
|
+
id: string;
|
|
5860
|
+
type: "session.status_preparing";
|
|
5861
|
+
processed_at: string;
|
|
5862
|
+
stage: "launching" | "loading" | "ready";
|
|
5863
|
+
message_id?: string;
|
|
5864
|
+
session_thread_id?: string | null;
|
|
5813
5865
|
}>;
|
|
5814
5866
|
next_page: string | null;
|
|
5815
5867
|
}>;
|
|
@@ -6231,6 +6283,26 @@ export declare function createBilling(transport: Transport): {
|
|
|
6231
6283
|
};
|
|
6232
6284
|
};
|
|
6233
6285
|
export declare function createBrowser(transport: Transport): {
|
|
6286
|
+
byob: {
|
|
6287
|
+
browsers: {
|
|
6288
|
+
disconnect: {
|
|
6289
|
+
create: (options: import("./core/transport.js").CallOptions<Types.BrowserDisconnectByobBrowserData>) => Promise<Types.BrowserByobBrowser>;
|
|
6290
|
+
};
|
|
6291
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.BrowserListByobBrowsersData> | undefined) => Promise<{
|
|
6292
|
+
data: Array<Types.BrowserByobBrowser>;
|
|
6293
|
+
nextCursor: string | null;
|
|
6294
|
+
}>;
|
|
6295
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.BrowserGetByobBrowserData>) => Promise<Types.BrowserByobBrowser>;
|
|
6296
|
+
update: (options: import("./core/transport.js").CallOptions<Types.BrowserUpdateByobBrowserData>) => Promise<Types.BrowserByobBrowser>;
|
|
6297
|
+
};
|
|
6298
|
+
pairings: {
|
|
6299
|
+
claim: {
|
|
6300
|
+
create: (options: import("./core/transport.js").CallOptions<Types.BrowserClaimByobPairingData>) => Promise<Types.BrowserByobClaimResult>;
|
|
6301
|
+
};
|
|
6302
|
+
create: (options?: import("./core/transport.js").CallOptions<Types.BrowserCreateByobPairingData> | undefined) => Promise<Types.BrowserByobPairing>;
|
|
6303
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.BrowserReadByobPairingData>) => Promise<Types.BrowserByobPairingView>;
|
|
6304
|
+
};
|
|
6305
|
+
};
|
|
6234
6306
|
connect: {
|
|
6235
6307
|
retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserConnectData> | undefined) => Promise<unknown>;
|
|
6236
6308
|
};
|
|
@@ -6687,6 +6759,9 @@ export declare function createDevops(transport: Transport): {
|
|
|
6687
6759
|
markLastSlice: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesMarkLastSliceData>) => Promise<Types.DevopsChange>;
|
|
6688
6760
|
openPullRequest: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesOpenPullRequestData>) => Promise<Types.DevopsChangePullRequestOpened>;
|
|
6689
6761
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesGetData>) => Promise<Types.DevopsChange>;
|
|
6762
|
+
slices: {
|
|
6763
|
+
create: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesSlicesCreateData>) => Promise<Types.DevopsChangeSliceOpened>;
|
|
6764
|
+
};
|
|
6690
6765
|
};
|
|
6691
6766
|
connections: {
|
|
6692
6767
|
complete: (options: import("./core/transport.js").CallOptions<Types.DevopsConnectionsCompleteData>) => Promise<Types.DevopsConnection>;
|
|
@@ -7986,6 +8061,11 @@ export declare function createOrganization(transport: Transport): {
|
|
|
7986
8061
|
createTime: string;
|
|
7987
8062
|
reason: string;
|
|
7988
8063
|
archived: boolean;
|
|
8064
|
+
organization: {
|
|
8065
|
+
id: string;
|
|
8066
|
+
slug: string;
|
|
8067
|
+
name: string;
|
|
8068
|
+
};
|
|
7989
8069
|
}>;
|
|
7990
8070
|
nextCursor: string;
|
|
7991
8071
|
unread: number;
|
|
@@ -7996,6 +8076,27 @@ export declare function createOrganization(transport: Transport): {
|
|
|
7996
8076
|
readAll: (options?: import("./core/transport.js").CallOptions<Types.ReadAllOrganizationNotificationLettersData> | undefined) => Promise<{
|
|
7997
8077
|
unread: number;
|
|
7998
8078
|
}>;
|
|
8079
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationNotificationLetterData>) => Promise<{
|
|
8080
|
+
id: string;
|
|
8081
|
+
sender: string;
|
|
8082
|
+
summary: string;
|
|
8083
|
+
body: string;
|
|
8084
|
+
thread: string;
|
|
8085
|
+
kind: "notice" | "mention" | "decision";
|
|
8086
|
+
source: {
|
|
8087
|
+
[key: string]: unknown;
|
|
8088
|
+
};
|
|
8089
|
+
read: boolean;
|
|
8090
|
+
deliveredAt: string;
|
|
8091
|
+
createTime: string;
|
|
8092
|
+
reason: string;
|
|
8093
|
+
archived: boolean;
|
|
8094
|
+
organization: {
|
|
8095
|
+
id: string;
|
|
8096
|
+
slug: string;
|
|
8097
|
+
name: string;
|
|
8098
|
+
};
|
|
8099
|
+
}>;
|
|
7999
8100
|
};
|
|
8000
8101
|
organizationDefault: {
|
|
8001
8102
|
create: (options: import("./core/transport.js").CallOptions<Types.UpdateOrganizationNotificationDefaultsData>) => Promise<{
|
|
@@ -8141,6 +8242,11 @@ export declare function createSandbox(transport: Transport): {
|
|
|
8141
8242
|
created_at: string;
|
|
8142
8243
|
capabilities: Array<"display" | "agent">;
|
|
8143
8244
|
agent_dirs: Array<string>;
|
|
8245
|
+
agent_bindings: Array<{
|
|
8246
|
+
dir: string;
|
|
8247
|
+
agent: string;
|
|
8248
|
+
}>;
|
|
8249
|
+
envd_version: string | null;
|
|
8144
8250
|
allow_bypass: boolean;
|
|
8145
8251
|
}>;
|
|
8146
8252
|
}>;
|
|
@@ -8156,6 +8262,11 @@ export declare function createSandbox(transport: Transport): {
|
|
|
8156
8262
|
created_at: string;
|
|
8157
8263
|
capabilities: Array<"display" | "agent">;
|
|
8158
8264
|
agent_dirs: Array<string>;
|
|
8265
|
+
agent_bindings: Array<{
|
|
8266
|
+
dir: string;
|
|
8267
|
+
agent: string;
|
|
8268
|
+
}>;
|
|
8269
|
+
envd_version: string | null;
|
|
8159
8270
|
allow_bypass: boolean;
|
|
8160
8271
|
}>;
|
|
8161
8272
|
update: (options: import("./core/transport.js").CallOptions<Types.UpdateByodDeviceData>) => Promise<{
|
|
@@ -8170,6 +8281,11 @@ export declare function createSandbox(transport: Transport): {
|
|
|
8170
8281
|
created_at: string;
|
|
8171
8282
|
capabilities: Array<"display" | "agent">;
|
|
8172
8283
|
agent_dirs: Array<string>;
|
|
8284
|
+
agent_bindings: Array<{
|
|
8285
|
+
dir: string;
|
|
8286
|
+
agent: string;
|
|
8287
|
+
}>;
|
|
8288
|
+
envd_version: string | null;
|
|
8173
8289
|
allow_bypass: boolean;
|
|
8174
8290
|
}>;
|
|
8175
8291
|
};
|
|
@@ -141,6 +141,11 @@ export function createAgent(transport) {
|
|
|
141
141
|
create: bind(transport, sdk.unblockCustomer),
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
|
+
devices: {
|
|
145
|
+
localSessions: {
|
|
146
|
+
list: bindPage(transport, sdk.listAgentDeviceLocalSessions),
|
|
147
|
+
},
|
|
148
|
+
},
|
|
144
149
|
events: {
|
|
145
150
|
list: bind(transport, sdk.listAgentEvents),
|
|
146
151
|
send: bind(transport, sdk.sendAgentEvents),
|
|
@@ -509,6 +514,23 @@ export function createBilling(transport) {
|
|
|
509
514
|
}
|
|
510
515
|
export function createBrowser(transport) {
|
|
511
516
|
return {
|
|
517
|
+
byob: {
|
|
518
|
+
browsers: {
|
|
519
|
+
disconnect: {
|
|
520
|
+
create: bind(transport, sdk.browserDisconnectByobBrowser),
|
|
521
|
+
},
|
|
522
|
+
list: bind(transport, sdk.browserListByobBrowsers),
|
|
523
|
+
retrieve: bind(transport, sdk.browserGetByobBrowser),
|
|
524
|
+
update: bind(transport, sdk.browserUpdateByobBrowser),
|
|
525
|
+
},
|
|
526
|
+
pairings: {
|
|
527
|
+
claim: {
|
|
528
|
+
create: bind(transport, sdk.browserClaimByobPairing),
|
|
529
|
+
},
|
|
530
|
+
create: bind(transport, sdk.browserCreateByobPairing),
|
|
531
|
+
retrieve: bind(transport, sdk.browserReadByobPairing),
|
|
532
|
+
},
|
|
533
|
+
},
|
|
512
534
|
connect: {
|
|
513
535
|
retrieve: bind(transport, sdk.browserConnect),
|
|
514
536
|
},
|
|
@@ -890,6 +912,9 @@ export function createDevops(transport) {
|
|
|
890
912
|
markLastSlice: bind(transport, sdk.devopsChangesMarkLastSlice),
|
|
891
913
|
openPullRequest: bind(transport, sdk.devopsChangesOpenPullRequest),
|
|
892
914
|
retrieve: bind(transport, sdk.devopsChangesGet),
|
|
915
|
+
slices: {
|
|
916
|
+
create: bind(transport, sdk.devopsChangesSlicesCreate),
|
|
917
|
+
},
|
|
893
918
|
},
|
|
894
919
|
connections: {
|
|
895
920
|
complete: bind(transport, sdk.devopsConnectionsComplete),
|
|
@@ -1468,6 +1493,7 @@ export function createOrganization(transport) {
|
|
|
1468
1493
|
list: bind(transport, sdk.listOrganizationNotificationLetters),
|
|
1469
1494
|
read: bind(transport, sdk.readOrganizationNotificationLetter),
|
|
1470
1495
|
readAll: bind(transport, sdk.readAllOrganizationNotificationLetters),
|
|
1496
|
+
retrieve: bind(transport, sdk.getOrganizationNotificationLetter),
|
|
1471
1497
|
},
|
|
1472
1498
|
organizationDefault: {
|
|
1473
1499
|
create: bind(transport, sdk.updateOrganizationNotificationDefaults),
|