@deepraxis/sdk 0.1.1-dev.3c2e98e → 0.1.1-dev.3cf8882
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 +57 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +100 -7
- package/dist/generated/sdk.gen.js +248 -11
- package/dist/generated/types.gen.d.ts +1503 -222
- package/dist/operations.generated.js +383 -20
- package/dist/resources.generated.d.ts +108 -10
- package/dist/resources.generated.js +36 -0
- package/package.json +1 -1
|
@@ -734,6 +734,20 @@ export declare function createAgent(transport: Transport): {
|
|
|
734
734
|
}>;
|
|
735
735
|
stream: (options: import("./core/transport.js").StreamOptions<Types.StreamAgentEventsData>) => AsyncIterable<Types.AgentSseEvent>;
|
|
736
736
|
};
|
|
737
|
+
inbox: {
|
|
738
|
+
letters: {
|
|
739
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListAgentInboxLettersData>) => Promise<{
|
|
740
|
+
unread: number;
|
|
741
|
+
letters: Array<{
|
|
742
|
+
id: string;
|
|
743
|
+
sender: string;
|
|
744
|
+
summary: string;
|
|
745
|
+
thread: string | null;
|
|
746
|
+
create_time: string;
|
|
747
|
+
}>;
|
|
748
|
+
}>;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
737
751
|
list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
|
|
738
752
|
data: Array<{
|
|
739
753
|
id: string;
|
|
@@ -2058,16 +2072,9 @@ export declare function createAgent(transport: Transport): {
|
|
|
2058
2072
|
files: {
|
|
2059
2073
|
convert: {
|
|
2060
2074
|
create: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesConvertData>) => Promise<{
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
sandbox_id: string | null;
|
|
2065
|
-
machine_state: "not_started" | "provisioned";
|
|
2066
|
-
environment_id: string | null;
|
|
2067
|
-
status: "active" | "archived";
|
|
2068
|
-
created_at: string;
|
|
2069
|
-
updated_at: string;
|
|
2070
|
-
archived_at: string | null;
|
|
2075
|
+
data: string;
|
|
2076
|
+
mime: "application/pdf";
|
|
2077
|
+
cached: boolean;
|
|
2071
2078
|
}>;
|
|
2072
2079
|
};
|
|
2073
2080
|
list: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesListData>) => Promise<{
|
|
@@ -2489,6 +2496,40 @@ export declare function createAgent(transport: Transport): {
|
|
|
2489
2496
|
readonly external_user_id: string | null;
|
|
2490
2497
|
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2491
2498
|
}>;
|
|
2499
|
+
artifacts: {
|
|
2500
|
+
contentUrl: {
|
|
2501
|
+
create: (options: import("./core/transport.js").CallOptions<Types.CreateSessionArtifactContentUrlData>) => Promise<{
|
|
2502
|
+
url: string;
|
|
2503
|
+
expire_time: string;
|
|
2504
|
+
}>;
|
|
2505
|
+
};
|
|
2506
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListSessionArtifactsData>) => Promise<{
|
|
2507
|
+
data: Array<{
|
|
2508
|
+
object: "artifact";
|
|
2509
|
+
id: string;
|
|
2510
|
+
session_id: string;
|
|
2511
|
+
run_id: string | null;
|
|
2512
|
+
name: string;
|
|
2513
|
+
version: number;
|
|
2514
|
+
parts: Array<{
|
|
2515
|
+
kind: "file";
|
|
2516
|
+
file_id: string;
|
|
2517
|
+
filename: string;
|
|
2518
|
+
mime_type: string;
|
|
2519
|
+
bytes: number;
|
|
2520
|
+
} | {
|
|
2521
|
+
kind: "object";
|
|
2522
|
+
object_type: "canvas" | "media_asset";
|
|
2523
|
+
object_id: string;
|
|
2524
|
+
href: string;
|
|
2525
|
+
title: string | null;
|
|
2526
|
+
}>;
|
|
2527
|
+
source_hrefs: Array<string>;
|
|
2528
|
+
create_time: string;
|
|
2529
|
+
update_time: string;
|
|
2530
|
+
}>;
|
|
2531
|
+
}>;
|
|
2532
|
+
};
|
|
2492
2533
|
backgroundTasks: {
|
|
2493
2534
|
list: (options: import("./core/transport.js").CallOptions<Types.ListSessionBackgroundTasksData>) => Promise<{
|
|
2494
2535
|
data: Array<{
|
|
@@ -3462,6 +3503,20 @@ export declare function createAgent(transport: Transport): {
|
|
|
3462
3503
|
}>;
|
|
3463
3504
|
next_page: string | null;
|
|
3464
3505
|
}>;
|
|
3506
|
+
requests: {
|
|
3507
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListSessionRequestsData>) => Promise<{
|
|
3508
|
+
data: Array<{
|
|
3509
|
+
id: string;
|
|
3510
|
+
object: "request";
|
|
3511
|
+
kind: "question" | "approval";
|
|
3512
|
+
status: "pending";
|
|
3513
|
+
tool_name: string;
|
|
3514
|
+
input: unknown;
|
|
3515
|
+
create_time: string;
|
|
3516
|
+
expire_time: string | null;
|
|
3517
|
+
}>;
|
|
3518
|
+
}>;
|
|
3519
|
+
};
|
|
3465
3520
|
resources: {
|
|
3466
3521
|
create: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesAddData>) => Promise<Types.AgentManaged176>;
|
|
3467
3522
|
delete: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesDeleteData, {
|
|
@@ -4542,6 +4597,7 @@ export declare function createDevops(transport: Transport): {
|
|
|
4542
4597
|
flags: {
|
|
4543
4598
|
create: (options: import("./core/transport.js").CallOptions<Types.DevopsFlagsCreateData>) => Promise<Types.DevopsFlag>;
|
|
4544
4599
|
list: (options: import("./core/transport.js").CallOptions<Types.DevopsFlagsListData>) => Promise<Types.DevopsFlagPage>;
|
|
4600
|
+
reportCodeRefs: (options: import("./core/transport.js").CallOptions<Types.DevopsFlagsReportCodeRefsData>) => Promise<Types.DevopsFlagCodeRefsReportResult>;
|
|
4545
4601
|
};
|
|
4546
4602
|
list: (options?: import("./core/transport.js").CallOptions<Types.DevopsProjectsListData> | undefined) => Promise<Types.DevopsProjectPage>;
|
|
4547
4603
|
promotions: {
|
|
@@ -4744,6 +4800,9 @@ export declare function createMedia(transport: Transport): {
|
|
|
4744
4800
|
};
|
|
4745
4801
|
libraries: {
|
|
4746
4802
|
assets: {
|
|
4803
|
+
align: {
|
|
4804
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaAlignAssetData>) => Promise<Types.MediaJob>;
|
|
4805
|
+
};
|
|
4747
4806
|
batch: (options: import("./core/transport.js").CallOptions<Types.MediaBatchAssetsData>) => Promise<Types.MediaJob>;
|
|
4748
4807
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaUploadAssetData>) => Promise<Types.MediaUploadResult>;
|
|
4749
4808
|
delete: (options: import("./core/transport.js").CallOptions<Types.MediaDeleteAssetData>) => Promise<Types.MediaDeleted>;
|
|
@@ -5022,7 +5081,35 @@ export declare function createModel(transport: Transport): {
|
|
|
5022
5081
|
countTokens: (options: import("./core/transport.js").CallOptions<Types.CountTokensData>) => Promise<Types.AnthropicMessageTokensCount>;
|
|
5023
5082
|
create: import("./core/bindings.js").MixedMethod<Types.CreateMessageData, Types.AnthropicMessage, Types.PraxisSdkSsePostModelV1Messages>;
|
|
5024
5083
|
};
|
|
5084
|
+
modelAccess: {
|
|
5085
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.ListModelAccessData> | undefined) => Promise<{
|
|
5086
|
+
items: Array<{
|
|
5087
|
+
model: string;
|
|
5088
|
+
access_required: boolean;
|
|
5089
|
+
granted: boolean;
|
|
5090
|
+
granted_by: string | null;
|
|
5091
|
+
granted_at: string | null;
|
|
5092
|
+
sell_input_price: number | null;
|
|
5093
|
+
sell_output_price: number | null;
|
|
5094
|
+
}>;
|
|
5095
|
+
}>;
|
|
5096
|
+
};
|
|
5025
5097
|
models: {
|
|
5098
|
+
access: {
|
|
5099
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.DisableModelAccessData>) => Promise<{
|
|
5100
|
+
model: string;
|
|
5101
|
+
revoked: true;
|
|
5102
|
+
}>;
|
|
5103
|
+
update: (options: import("./core/transport.js").CallOptions<Types.EnableModelAccessData>) => Promise<{
|
|
5104
|
+
model: string;
|
|
5105
|
+
access_required: boolean;
|
|
5106
|
+
granted: true;
|
|
5107
|
+
granted_by: string;
|
|
5108
|
+
granted_at: string;
|
|
5109
|
+
sell_input_price: number | null;
|
|
5110
|
+
sell_output_price: number | null;
|
|
5111
|
+
}>;
|
|
5112
|
+
};
|
|
5026
5113
|
list: (options?: import("./core/transport.js").CallOptions<Types.ListModelsData> | undefined) => Promise<{
|
|
5027
5114
|
object: "list";
|
|
5028
5115
|
data: Array<{
|
|
@@ -5037,6 +5124,7 @@ export declare function createModel(transport: Transport): {
|
|
|
5037
5124
|
type: "language" | "image" | "embedding" | "ocr" | "transcription" | "speech" | "video" | "reranking";
|
|
5038
5125
|
supported_apis: Array<string>;
|
|
5039
5126
|
tags: Array<string>;
|
|
5127
|
+
access_required: boolean;
|
|
5040
5128
|
architecture: {
|
|
5041
5129
|
modality: string;
|
|
5042
5130
|
input_modalities: Array<string>;
|
|
@@ -5083,6 +5171,7 @@ export declare function createModel(transport: Transport): {
|
|
|
5083
5171
|
type: "language" | "image" | "embedding" | "ocr" | "transcription" | "speech" | "video" | "reranking";
|
|
5084
5172
|
supported_apis: Array<string>;
|
|
5085
5173
|
tags: Array<string>;
|
|
5174
|
+
access_required: boolean;
|
|
5086
5175
|
architecture: {
|
|
5087
5176
|
modality: string;
|
|
5088
5177
|
input_modalities: Array<string>;
|
|
@@ -6013,6 +6102,14 @@ export declare function createSearch(transport: Transport): {
|
|
|
6013
6102
|
}>;
|
|
6014
6103
|
};
|
|
6015
6104
|
};
|
|
6105
|
+
export declare function createShare(transport: Transport): {
|
|
6106
|
+
permissions: {
|
|
6107
|
+
create: (options: import("./core/transport.js").CallOptions<Types.ShareCreatePermissionData>) => Promise<Types.ShareSharePermission>;
|
|
6108
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.ShareDeletePermissionData>) => Promise<void>;
|
|
6109
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.ShareListPermissionsData> | undefined) => Promise<Types.ShareSharePermissionPage>;
|
|
6110
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.ShareRetrievePermissionData>) => Promise<Types.ShareSharePermission>;
|
|
6111
|
+
};
|
|
6112
|
+
};
|
|
6016
6113
|
export declare function createStudio(transport: Transport): {
|
|
6017
6114
|
codexes: {
|
|
6018
6115
|
create: (options: import("./core/transport.js").CallOptions<Types.StudioCodexesCreateData>) => Promise<Types.StudioCodex>;
|
|
@@ -6319,6 +6416,7 @@ export declare const resourceFactories: {
|
|
|
6319
6416
|
organization: typeof createOrganization;
|
|
6320
6417
|
sandbox: typeof createSandbox;
|
|
6321
6418
|
search: typeof createSearch;
|
|
6419
|
+
share: typeof createShare;
|
|
6322
6420
|
studio: typeof createStudio;
|
|
6323
6421
|
ticket: typeof createTicket;
|
|
6324
6422
|
vault: typeof createVault;
|
|
@@ -43,6 +43,11 @@ export function createAgent(transport) {
|
|
|
43
43
|
send: bind(transport, sdk.sendAgentEvents),
|
|
44
44
|
stream: bindStream(transport, sdk.streamAgentEvents),
|
|
45
45
|
},
|
|
46
|
+
inbox: {
|
|
47
|
+
letters: {
|
|
48
|
+
list: bind(transport, sdk.listAgentInboxLetters),
|
|
49
|
+
},
|
|
50
|
+
},
|
|
46
51
|
list: bind(transport, sdk.agentsList),
|
|
47
52
|
retrieve: bind(transport, sdk.agentsRetrieve),
|
|
48
53
|
retrieveAppearance: bind(transport, sdk.getAgentAppearance),
|
|
@@ -107,6 +112,12 @@ export function createAgent(transport) {
|
|
|
107
112
|
},
|
|
108
113
|
sessions: {
|
|
109
114
|
archive: bind(transport, sdk.sessionsArchive),
|
|
115
|
+
artifacts: {
|
|
116
|
+
contentUrl: {
|
|
117
|
+
create: bind(transport, sdk.createSessionArtifactContentUrl),
|
|
118
|
+
},
|
|
119
|
+
list: bind(transport, sdk.listSessionArtifacts),
|
|
120
|
+
},
|
|
110
121
|
backgroundTasks: {
|
|
111
122
|
list: bind(transport, sdk.listSessionBackgroundTasks),
|
|
112
123
|
retrieveOutput: bind(transport, sdk.getSessionBackgroundTaskOutput),
|
|
@@ -125,6 +136,9 @@ export function createAgent(transport) {
|
|
|
125
136
|
},
|
|
126
137
|
fork: bind(transport, sdk.forkSession),
|
|
127
138
|
list: bind(transport, sdk.sessionsList),
|
|
139
|
+
requests: {
|
|
140
|
+
list: bind(transport, sdk.listSessionRequests),
|
|
141
|
+
},
|
|
128
142
|
resources: {
|
|
129
143
|
create: bind(transport, sdk.sessionsResourcesAdd),
|
|
130
144
|
delete: bind(transport, aliasOperation(sdk.sessionsResourcesDelete, { "query": { "session_id": "query_session_id" } })),
|
|
@@ -638,6 +652,7 @@ export function createDevops(transport) {
|
|
|
638
652
|
flags: {
|
|
639
653
|
create: bind(transport, sdk.devopsFlagsCreate),
|
|
640
654
|
list: bind(transport, sdk.devopsFlagsList),
|
|
655
|
+
reportCodeRefs: bind(transport, sdk.devopsFlagsReportCodeRefs),
|
|
641
656
|
},
|
|
642
657
|
list: bind(transport, sdk.devopsProjectsList),
|
|
643
658
|
promotions: {
|
|
@@ -841,6 +856,9 @@ export function createMedia(transport) {
|
|
|
841
856
|
},
|
|
842
857
|
libraries: {
|
|
843
858
|
assets: {
|
|
859
|
+
align: {
|
|
860
|
+
create: bind(transport, sdk.mediaAlignAsset),
|
|
861
|
+
},
|
|
844
862
|
batch: bind(transport, sdk.mediaBatchAssets),
|
|
845
863
|
create: bind(transport, options => sdk.mediaUploadAsset({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
846
864
|
delete: bind(transport, sdk.mediaDeleteAsset),
|
|
@@ -982,7 +1000,14 @@ export function createModel(transport) {
|
|
|
982
1000
|
countTokens: bind(transport, sdk.countTokens),
|
|
983
1001
|
create: bindMixed(transport, sdk.createMessage),
|
|
984
1002
|
},
|
|
1003
|
+
modelAccess: {
|
|
1004
|
+
list: bind(transport, sdk.listModelAccess),
|
|
1005
|
+
},
|
|
985
1006
|
models: {
|
|
1007
|
+
access: {
|
|
1008
|
+
delete: bind(transport, sdk.disableModelAccess),
|
|
1009
|
+
update: bind(transport, sdk.enableModelAccess),
|
|
1010
|
+
},
|
|
986
1011
|
list: bind(transport, sdk.listModels),
|
|
987
1012
|
retrieve: bind(transport, sdk.retrieveModel),
|
|
988
1013
|
},
|
|
@@ -1275,6 +1300,16 @@ export function createSearch(transport) {
|
|
|
1275
1300
|
},
|
|
1276
1301
|
};
|
|
1277
1302
|
}
|
|
1303
|
+
export function createShare(transport) {
|
|
1304
|
+
return {
|
|
1305
|
+
permissions: {
|
|
1306
|
+
create: bind(transport, sdk.shareCreatePermission),
|
|
1307
|
+
delete: bind(transport, sdk.shareDeletePermission),
|
|
1308
|
+
list: bind(transport, sdk.shareListPermissions),
|
|
1309
|
+
retrieve: bind(transport, sdk.shareRetrievePermission),
|
|
1310
|
+
},
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1278
1313
|
export function createStudio(transport) {
|
|
1279
1314
|
return {
|
|
1280
1315
|
codexes: {
|
|
@@ -1545,6 +1580,7 @@ export const resourceFactories = {
|
|
|
1545
1580
|
organization: createOrganization,
|
|
1546
1581
|
sandbox: createSandbox,
|
|
1547
1582
|
search: createSearch,
|
|
1583
|
+
share: createShare,
|
|
1548
1584
|
studio: createStudio,
|
|
1549
1585
|
ticket: createTicket,
|
|
1550
1586
|
vault: createVault,
|