@belonguniverseai/react-sdk 0.6.33 → 0.6.34
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/api/client.d.ts +563 -2
- package/dist/api/computer.d.ts +60 -0
- package/dist/api/proactive.d.ts +36 -0
- package/dist/api/query-keys.d.ts +3 -0
- package/dist/api/task-schedule-folders.d.ts +3 -3
- package/dist/api/task-schedule-projects.d.ts +5 -5
- package/dist/api/task-schedules.d.ts +27 -4
- package/dist/app/dock-story-data.d.ts +1 -1
- package/dist/component/{abnfDiagram-N423BO3Z-CK4wvzwz.js → abnfDiagram-N423BO3Z-K52-wOfg.js} +4 -4
- package/dist/component/{architectureDiagram-T3A2C74G-DoljsqqO.js → architectureDiagram-T3A2C74G-B64SrMLF.js} +6 -6
- package/dist/component/{blockDiagram-VBNYF7ZC-Ie7SErpH.js → blockDiagram-VBNYF7ZC-B7Di5R1s.js} +8 -8
- package/dist/component/{c4Diagram-5PPSVZJV-rfEof5mj.js → c4Diagram-5PPSVZJV-ClDtA2m4.js} +4 -4
- package/dist/component/{channel-C5ABP6lE.js → channel-C6_lLEWW.js} +2 -2
- package/dist/component/{chunk-2GRJ4B5K-CWOCv67u.js → chunk-2GRJ4B5K-B07moQal.js} +2 -2
- package/dist/component/{chunk-3NCLNEKW-BJYANBvv.js → chunk-3NCLNEKW-TUF1Wrf6.js} +2 -2
- package/dist/component/{chunk-4I5QYGJK-C29OfER5.js → chunk-4I5QYGJK-qY-_sgVE.js} +2 -2
- package/dist/component/{chunk-5RXB4S5H-D__NH4Op.js → chunk-5RXB4S5H-BU0H_zl3.js} +6 -6
- package/dist/component/{chunk-6Q2QTUOP-BgSQgII8.js → chunk-6Q2QTUOP-nIHNEMhm.js} +3 -3
- package/dist/component/{chunk-7Z6QIM7H-vNexNF_V.js → chunk-7Z6QIM7H-D7mHGFzt.js} +8 -8
- package/dist/component/{chunk-GF5L2VYU-D3vxqomE.js → chunk-GF5L2VYU-uM1RliIa.js} +6 -6
- package/dist/component/{chunk-I66GZJ75-Dkw1ISGd.js → chunk-I66GZJ75-oDyTlx3R.js} +2 -2
- package/dist/component/{chunk-J7OUQ5F2-dC67pJWg.js → chunk-J7OUQ5F2-c7iD4Gpa.js} +7 -7
- package/dist/component/{chunk-JQJVKLGR-Djj9TdhH.js → chunk-JQJVKLGR-JeqFPv2A.js} +8 -8
- package/dist/component/{chunk-KBJHAD2P-dwIA6Vmi.js → chunk-KBJHAD2P-DjQd-FIs.js} +2 -2
- package/dist/component/{chunk-NSK5VX7P-thQxjtNK.js → chunk-NSK5VX7P-Bq0sOWgd.js} +2 -2
- package/dist/component/{chunk-QR6OTTB3-OMd-rgNj.js → chunk-QR6OTTB3-DctDLVWm.js} +7 -7
- package/dist/component/{chunk-UBXNYLIW-D26S6zO6.js → chunk-UBXNYLIW-Ka1R3omP.js} +3 -3
- package/dist/component/{chunk-W5SLKNZC-DLV7M8by.js → chunk-W5SLKNZC-CI_OqVnD.js} +2 -2
- package/dist/component/{chunk-WRU74C26-13bvIAgD.js → chunk-WRU74C26-BMkh1mHN.js} +4 -4
- package/dist/component/{classDiagram-JCYQIIEL-BFQ72AZA.js → classDiagram-JCYQIIEL-C1E0BQye.js} +13 -13
- package/dist/component/{classDiagram-v2-OCEON4UE-UFfArXpP.js → classDiagram-v2-OCEON4UE-hQKKIbDF.js} +13 -13
- package/dist/component/{component-Bhs6PFPY.js → component-B44aZ-1Z.js} +20116 -19001
- package/dist/component/{cynefinDiagram-MW4NZA55-Bgfw8c41.js → cynefinDiagram-MW4NZA55-0yefvDKM.js} +4 -4
- package/dist/component/{dagre-VZM6K2ZE-CQoUcF3S.js → dagre-VZM6K2ZE-CBlt7UUF.js} +9 -9
- package/dist/component/{diagram-7IWD3JNH-C8-mvAEv.js → diagram-7IWD3JNH-D0zEzayZ.js} +5 -5
- package/dist/component/{diagram-B4RE2ZJO-BATqCIx3.js → diagram-B4RE2ZJO-Dm2FX5kh.js} +3 -3
- package/dist/component/{diagram-LBJQPF4R-DwRMRXWz.js → diagram-LBJQPF4R-nQGWQGIp.js} +4 -4
- package/dist/component/{diagram-Q27KOJAE-D6gO0LTm.js → diagram-Q27KOJAE-Co-Dq4kd.js} +6 -6
- package/dist/component/{diagram-UB23O5K3-4nOrWHql.js → diagram-UB23O5K3-ClWS8vTp.js} +4 -4
- package/dist/component/{ebnfDiagram-BXEA7PRR-DCO-Nj3k.js → ebnfDiagram-BXEA7PRR-Cq6K_q0O.js} +4 -4
- package/dist/component/{erDiagram-JOGREHBK-hWtImhPN.js → erDiagram-JOGREHBK-DvPI-BqP.js} +12 -12
- package/dist/component/flowDiagram-UKHOOZJN-2MBQiA4G.js +19 -0
- package/dist/component/{ganttDiagram-PKOTCBZU-BE8Mqoej.js → ganttDiagram-PKOTCBZU-DXzfT7Q5.js} +3 -3
- package/dist/component/{gitGraphDiagram-DS77QQ5N-DURS7rAN.js → gitGraphDiagram-DS77QQ5N-CMKpJJJ_.js} +3 -3
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-6WML65LV-BqBxR6YB.js → infoDiagram-6WML65LV-Ck5rB_GF.js} +3 -3
- package/dist/component/{ishikawaDiagram-WSZJBQD7-CnYZd1Dq.js → ishikawaDiagram-WSZJBQD7-CHQxwGjK.js} +4 -4
- package/dist/component/{journeyDiagram-NVQOT4AX-Cgkpx4Qx.js → journeyDiagram-NVQOT4AX-CnPVgyHk.js} +3 -3
- package/dist/component/{kanban-definition-27J2QSJJ-CJSdhT0i.js → kanban-definition-27J2QSJJ-CC8oOHrI.js} +9 -9
- package/dist/component/{line-BBEHlpsV.js → line-AtEledwJ.js} +2 -2
- package/dist/component/{mindmap-definition-FAOFIHXS-DgHouLA-.js → mindmap-definition-FAOFIHXS-WWI6yyUJ.js} +11 -11
- package/dist/component/{pegDiagram-VL7TDLO6-B_iGQ6sI.js → pegDiagram-VL7TDLO6-D5NeC_IJ.js} +4 -4
- package/dist/component/{pieDiagram-7S7Q4E2Y-g7GxM0JA.js → pieDiagram-7S7Q4E2Y-M4MUAitH.js} +4 -4
- package/dist/component/{quadrantDiagram-CIZ2JOQS-Bp7z4raq.js → quadrantDiagram-CIZ2JOQS-viErJFsV.js} +2 -2
- package/dist/component/{railroadDiagram-AXF67PYL-CYx3PP5o.js → railroadDiagram-AXF67PYL-C8IhZ-59.js} +4 -4
- package/dist/component/{requirementDiagram-LRYGKXZP-BJNRJceo.js → requirementDiagram-LRYGKXZP-D1vdZzCs.js} +11 -11
- package/dist/component/{sankeyDiagram-W5VNT64P-Cf0tVHbW.js → sankeyDiagram-W5VNT64P-Bl52MqzW.js} +2 -2
- package/dist/component/{sequenceDiagram-SI44F4Z6-BsAsKMRH.js → sequenceDiagram-SI44F4Z6-Cx-Aio7P.js} +4 -4
- package/dist/component/{stateDiagram-OKZ733FA-Bpk0vtTK.js → stateDiagram-OKZ733FA-CHqMp3xm.js} +14 -14
- package/dist/component/{stateDiagram-v2-UEYNNEHI-CJFoUvD2.js → stateDiagram-v2-UEYNNEHI-DqTLHDUB.js} +13 -13
- package/dist/component/{swimlanes-SLNWSIFB-Be5A0lwq.js → swimlanes-SLNWSIFB-BkaXpBe5.js} +9 -9
- package/dist/component/{swimlanesDiagram-ULZ7WXOC-J8VNaPhM.js → swimlanesDiagram-ULZ7WXOC-DyMFUKdr.js} +13 -13
- package/dist/component/{timeline-definition-Z64GVDOM-CU9PEkPY.js → timeline-definition-Z64GVDOM-Ba3A3s-L.js} +4 -4
- package/dist/component/{vennDiagram-T6HMQDX7-Cno78tFK.js → vennDiagram-T6HMQDX7-4W_JJhIz.js} +4 -4
- package/dist/component/{wardleyDiagram-T6FBY63Y-BEb1Rn5J.js → wardleyDiagram-T6FBY63Y-CllyyQYm.js} +4 -4
- package/dist/component/{xychartDiagram-ELKLHX3M-BwjMczCl.js → xychartDiagram-ELKLHX3M-DS3MPPul.js} +7 -7
- package/dist/components/embed/ComputerSettings.d.ts +7 -0
- package/dist/components/embed/EmbedRail.d.ts +8 -2
- package/dist/components/embed/EmbedSessions.d.ts +15 -2
- package/dist/components/embed/MobileNavBar.d.ts +4 -2
- package/dist/components/embed/ProactiveChecksSetting.d.ts +7 -0
- package/dist/components/embed/use-settings-owner-key.d.ts +15 -0
- package/dist/components/pinned/PinnedChatHeader.d.ts +9 -0
- package/dist/components/pinned/use-agent-name.d.ts +2 -0
- package/dist/embed/goal-cap-notice.d.ts +0 -9
- package/dist/embed/pinned-chat.d.ts +34 -0
- package/dist/embed/voice/line-run-reader.d.ts +1 -1
- package/dist/embed/voice-call.d.ts +6 -0
- package/dist/i18n/messages/en.d.ts +81 -9
- package/dist/i18n/messages/surfaces/pinned.d.ts +76 -0
- package/dist/i18n/messages/surfaces/scheduled.d.ts +37 -5
- package/dist/i18n/messages/surfaces/settings.d.ts +140 -0
- package/dist/i18n/messages/surfaces/stream.d.ts +52 -4
- package/dist/i18n/messages/surfaces/vault.d.ts +1 -1
- package/dist/routes/chat/history-merge.d.ts +4 -1
- package/dist/stream/belong-chat-transport.d.ts +6 -9
- package/dist/stream/pause-notice-copy.d.ts +3 -0
- package/dist/stream/reconnect-backoff.d.ts +39 -0
- package/dist/stream/run-error-copy.d.ts +25 -0
- package/dist/stream/stream-notice.d.ts +9 -0
- package/package.json +1 -1
- package/dist/component/flowDiagram-UKHOOZJN-8qLgX2Wv.js +0 -19
package/dist/api/client.d.ts
CHANGED
|
@@ -2076,6 +2076,181 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
}>;
|
|
2078
2078
|
};
|
|
2079
|
+
} & {
|
|
2080
|
+
v1: {
|
|
2081
|
+
proactive: import('hono/client').ClientRequest<string, "/v1/proactive", {
|
|
2082
|
+
$get: {
|
|
2083
|
+
input: {};
|
|
2084
|
+
output: {
|
|
2085
|
+
error: "proactive_unavailable";
|
|
2086
|
+
};
|
|
2087
|
+
outputFormat: "json";
|
|
2088
|
+
status: 404;
|
|
2089
|
+
} | {
|
|
2090
|
+
input: {};
|
|
2091
|
+
output: {
|
|
2092
|
+
enabled: boolean;
|
|
2093
|
+
lastCheckAt: string | null;
|
|
2094
|
+
nextCheckAt: string | null;
|
|
2095
|
+
checkingCount: number;
|
|
2096
|
+
slackAvailable: boolean;
|
|
2097
|
+
watchedApps: readonly string[];
|
|
2098
|
+
chat: {
|
|
2099
|
+
sessionId: string;
|
|
2100
|
+
unreadCount: number;
|
|
2101
|
+
lastMessageAt: string | null;
|
|
2102
|
+
lastMessage: string | null;
|
|
2103
|
+
activeRunId: string | null;
|
|
2104
|
+
} | null;
|
|
2105
|
+
};
|
|
2106
|
+
outputFormat: "json";
|
|
2107
|
+
status: 200;
|
|
2108
|
+
};
|
|
2109
|
+
$put: {
|
|
2110
|
+
input: {
|
|
2111
|
+
json: {
|
|
2112
|
+
enabled: boolean;
|
|
2113
|
+
};
|
|
2114
|
+
};
|
|
2115
|
+
output: {
|
|
2116
|
+
error: {
|
|
2117
|
+
type: string;
|
|
2118
|
+
requiredScope: string;
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
outputFormat: "json";
|
|
2122
|
+
status: 403;
|
|
2123
|
+
} | {
|
|
2124
|
+
input: {
|
|
2125
|
+
json: {
|
|
2126
|
+
enabled: boolean;
|
|
2127
|
+
};
|
|
2128
|
+
};
|
|
2129
|
+
output: {
|
|
2130
|
+
enabled: boolean;
|
|
2131
|
+
};
|
|
2132
|
+
outputFormat: "json";
|
|
2133
|
+
status: 200;
|
|
2134
|
+
} | {
|
|
2135
|
+
input: {
|
|
2136
|
+
json: {
|
|
2137
|
+
enabled: boolean;
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2140
|
+
output: {
|
|
2141
|
+
error: "proactive_unavailable";
|
|
2142
|
+
};
|
|
2143
|
+
outputFormat: "json";
|
|
2144
|
+
status: 404;
|
|
2145
|
+
};
|
|
2146
|
+
}>;
|
|
2147
|
+
};
|
|
2148
|
+
} & {
|
|
2149
|
+
v1: {
|
|
2150
|
+
proactive: {
|
|
2151
|
+
chat: import('hono/client').ClientRequest<string, "/v1/proactive/chat", {
|
|
2152
|
+
$post: {
|
|
2153
|
+
input: {
|
|
2154
|
+
json: {
|
|
2155
|
+
workspaceExternalId?: string | undefined;
|
|
2156
|
+
};
|
|
2157
|
+
};
|
|
2158
|
+
output: {
|
|
2159
|
+
error: {
|
|
2160
|
+
type: string;
|
|
2161
|
+
requiredScope: string;
|
|
2162
|
+
};
|
|
2163
|
+
};
|
|
2164
|
+
outputFormat: "json";
|
|
2165
|
+
status: 403;
|
|
2166
|
+
} | {
|
|
2167
|
+
input: {
|
|
2168
|
+
json: {
|
|
2169
|
+
workspaceExternalId?: string | undefined;
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
output: {
|
|
2173
|
+
sessionId: string;
|
|
2174
|
+
};
|
|
2175
|
+
outputFormat: "json";
|
|
2176
|
+
status: 200;
|
|
2177
|
+
} | {
|
|
2178
|
+
input: {
|
|
2179
|
+
json: {
|
|
2180
|
+
workspaceExternalId?: string | undefined;
|
|
2181
|
+
};
|
|
2182
|
+
};
|
|
2183
|
+
output: {
|
|
2184
|
+
error: "proactive_unavailable";
|
|
2185
|
+
};
|
|
2186
|
+
outputFormat: "json";
|
|
2187
|
+
status: 404;
|
|
2188
|
+
};
|
|
2189
|
+
}>;
|
|
2190
|
+
};
|
|
2191
|
+
};
|
|
2192
|
+
} & {
|
|
2193
|
+
v1: {
|
|
2194
|
+
proactive: {
|
|
2195
|
+
check: import('hono/client').ClientRequest<string, "/v1/proactive/check", {
|
|
2196
|
+
$post: {
|
|
2197
|
+
input: {};
|
|
2198
|
+
output: {
|
|
2199
|
+
error: {
|
|
2200
|
+
type: string;
|
|
2201
|
+
requiredScope: string;
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
outputFormat: "json";
|
|
2205
|
+
status: 403;
|
|
2206
|
+
} | {
|
|
2207
|
+
input: {};
|
|
2208
|
+
output: {
|
|
2209
|
+
startedCount: number;
|
|
2210
|
+
};
|
|
2211
|
+
outputFormat: "json";
|
|
2212
|
+
status: 202;
|
|
2213
|
+
} | {
|
|
2214
|
+
input: {};
|
|
2215
|
+
output: {
|
|
2216
|
+
error: "proactive_unavailable";
|
|
2217
|
+
};
|
|
2218
|
+
outputFormat: "json";
|
|
2219
|
+
status: 404;
|
|
2220
|
+
};
|
|
2221
|
+
}>;
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
} & {
|
|
2225
|
+
v1: {
|
|
2226
|
+
proactive: {
|
|
2227
|
+
read: import('hono/client').ClientRequest<string, "/v1/proactive/read", {
|
|
2228
|
+
$post: {
|
|
2229
|
+
input: {};
|
|
2230
|
+
output: null;
|
|
2231
|
+
outputFormat: "body";
|
|
2232
|
+
status: 204;
|
|
2233
|
+
} | {
|
|
2234
|
+
input: {};
|
|
2235
|
+
output: {
|
|
2236
|
+
error: {
|
|
2237
|
+
type: string;
|
|
2238
|
+
requiredScope: string;
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
outputFormat: "json";
|
|
2242
|
+
status: 403;
|
|
2243
|
+
} | {
|
|
2244
|
+
input: {};
|
|
2245
|
+
output: {
|
|
2246
|
+
error: "proactive_unavailable";
|
|
2247
|
+
};
|
|
2248
|
+
outputFormat: "json";
|
|
2249
|
+
status: 404;
|
|
2250
|
+
};
|
|
2251
|
+
}>;
|
|
2252
|
+
};
|
|
2253
|
+
};
|
|
2079
2254
|
} & {
|
|
2080
2255
|
v1: {
|
|
2081
2256
|
sessions: {
|
|
@@ -6461,6 +6636,358 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
6461
6636
|
}>;
|
|
6462
6637
|
};
|
|
6463
6638
|
};
|
|
6639
|
+
} & {
|
|
6640
|
+
v1: {
|
|
6641
|
+
computer: {
|
|
6642
|
+
command: import('hono/client').ClientRequest<string, "/v1/computer/command", {
|
|
6643
|
+
$post: {
|
|
6644
|
+
input: {
|
|
6645
|
+
json: {
|
|
6646
|
+
command: {
|
|
6647
|
+
op: "shell";
|
|
6648
|
+
command: string;
|
|
6649
|
+
cwd: string | null;
|
|
6650
|
+
timeoutMs: number;
|
|
6651
|
+
};
|
|
6652
|
+
};
|
|
6653
|
+
};
|
|
6654
|
+
output: {
|
|
6655
|
+
result: {
|
|
6656
|
+
op: "shell";
|
|
6657
|
+
exitCode: number | null;
|
|
6658
|
+
stdout: string;
|
|
6659
|
+
stderr: string;
|
|
6660
|
+
timedOut: boolean;
|
|
6661
|
+
truncated: boolean;
|
|
6662
|
+
durationMs: number;
|
|
6663
|
+
};
|
|
6664
|
+
};
|
|
6665
|
+
outputFormat: "json";
|
|
6666
|
+
status: 200;
|
|
6667
|
+
} | {
|
|
6668
|
+
input: {
|
|
6669
|
+
json: {
|
|
6670
|
+
command: {
|
|
6671
|
+
op: "shell";
|
|
6672
|
+
command: string;
|
|
6673
|
+
cwd: string | null;
|
|
6674
|
+
timeoutMs: number;
|
|
6675
|
+
};
|
|
6676
|
+
};
|
|
6677
|
+
};
|
|
6678
|
+
output: {
|
|
6679
|
+
error: {
|
|
6680
|
+
type: "computer_not_paired";
|
|
6681
|
+
};
|
|
6682
|
+
};
|
|
6683
|
+
outputFormat: "json";
|
|
6684
|
+
status: 409;
|
|
6685
|
+
} | {
|
|
6686
|
+
input: {
|
|
6687
|
+
json: {
|
|
6688
|
+
command: {
|
|
6689
|
+
op: "shell";
|
|
6690
|
+
command: string;
|
|
6691
|
+
cwd: string | null;
|
|
6692
|
+
timeoutMs: number;
|
|
6693
|
+
};
|
|
6694
|
+
};
|
|
6695
|
+
};
|
|
6696
|
+
output: {
|
|
6697
|
+
error: {
|
|
6698
|
+
type: "computer_not_connected";
|
|
6699
|
+
};
|
|
6700
|
+
};
|
|
6701
|
+
outputFormat: "json";
|
|
6702
|
+
status: 409;
|
|
6703
|
+
} | {
|
|
6704
|
+
input: {
|
|
6705
|
+
json: {
|
|
6706
|
+
command: {
|
|
6707
|
+
op: "shell";
|
|
6708
|
+
command: string;
|
|
6709
|
+
cwd: string | null;
|
|
6710
|
+
timeoutMs: number;
|
|
6711
|
+
};
|
|
6712
|
+
};
|
|
6713
|
+
};
|
|
6714
|
+
output: {
|
|
6715
|
+
error: {
|
|
6716
|
+
type: "computer_busy";
|
|
6717
|
+
};
|
|
6718
|
+
};
|
|
6719
|
+
outputFormat: "json";
|
|
6720
|
+
status: 409;
|
|
6721
|
+
} | {
|
|
6722
|
+
input: {
|
|
6723
|
+
json: {
|
|
6724
|
+
command: {
|
|
6725
|
+
op: "shell";
|
|
6726
|
+
command: string;
|
|
6727
|
+
cwd: string | null;
|
|
6728
|
+
timeoutMs: number;
|
|
6729
|
+
};
|
|
6730
|
+
};
|
|
6731
|
+
};
|
|
6732
|
+
output: {
|
|
6733
|
+
error: {
|
|
6734
|
+
type: "computer_disconnected";
|
|
6735
|
+
};
|
|
6736
|
+
};
|
|
6737
|
+
outputFormat: "json";
|
|
6738
|
+
status: 502;
|
|
6739
|
+
} | {
|
|
6740
|
+
input: {
|
|
6741
|
+
json: {
|
|
6742
|
+
command: {
|
|
6743
|
+
op: "shell";
|
|
6744
|
+
command: string;
|
|
6745
|
+
cwd: string | null;
|
|
6746
|
+
timeoutMs: number;
|
|
6747
|
+
};
|
|
6748
|
+
};
|
|
6749
|
+
};
|
|
6750
|
+
output: {
|
|
6751
|
+
error: {
|
|
6752
|
+
type: "command_timeout";
|
|
6753
|
+
};
|
|
6754
|
+
};
|
|
6755
|
+
outputFormat: "json";
|
|
6756
|
+
status: 504;
|
|
6757
|
+
};
|
|
6758
|
+
}>;
|
|
6759
|
+
};
|
|
6760
|
+
};
|
|
6761
|
+
} & {
|
|
6762
|
+
v1: {
|
|
6763
|
+
computer: {
|
|
6764
|
+
pairings: import('hono/client').ClientRequest<string, "/v1/computer/pairings", {
|
|
6765
|
+
$post: {
|
|
6766
|
+
input: {};
|
|
6767
|
+
output: {
|
|
6768
|
+
error: {
|
|
6769
|
+
type: string;
|
|
6770
|
+
requiredScope: string;
|
|
6771
|
+
};
|
|
6772
|
+
};
|
|
6773
|
+
outputFormat: "json";
|
|
6774
|
+
status: 403;
|
|
6775
|
+
} | {
|
|
6776
|
+
input: {};
|
|
6777
|
+
output: {
|
|
6778
|
+
pairingCode: string;
|
|
6779
|
+
expiresAt: string;
|
|
6780
|
+
};
|
|
6781
|
+
outputFormat: "json";
|
|
6782
|
+
status: 201;
|
|
6783
|
+
} | {
|
|
6784
|
+
input: {};
|
|
6785
|
+
output: {
|
|
6786
|
+
error: {
|
|
6787
|
+
readonly type: "tenant_inactive";
|
|
6788
|
+
};
|
|
6789
|
+
};
|
|
6790
|
+
outputFormat: "json";
|
|
6791
|
+
status: 403;
|
|
6792
|
+
};
|
|
6793
|
+
}>;
|
|
6794
|
+
};
|
|
6795
|
+
};
|
|
6796
|
+
} & {
|
|
6797
|
+
v1: {
|
|
6798
|
+
computer: {
|
|
6799
|
+
device: import('hono/client').ClientRequest<string, "/v1/computer/device", {
|
|
6800
|
+
$get: {
|
|
6801
|
+
input: {};
|
|
6802
|
+
output: {
|
|
6803
|
+
device: {
|
|
6804
|
+
deviceId: string;
|
|
6805
|
+
name: string;
|
|
6806
|
+
os: "macos" | "windows" | "linux";
|
|
6807
|
+
appVersion: string;
|
|
6808
|
+
pairedAt: string;
|
|
6809
|
+
lastSeenAt: string | null;
|
|
6810
|
+
online: boolean;
|
|
6811
|
+
} | null;
|
|
6812
|
+
downloadUrl: string | null;
|
|
6813
|
+
};
|
|
6814
|
+
outputFormat: "json";
|
|
6815
|
+
status: 200;
|
|
6816
|
+
};
|
|
6817
|
+
$delete: {
|
|
6818
|
+
input: {};
|
|
6819
|
+
output: null;
|
|
6820
|
+
outputFormat: "body";
|
|
6821
|
+
status: 204;
|
|
6822
|
+
} | {
|
|
6823
|
+
input: {};
|
|
6824
|
+
output: {
|
|
6825
|
+
error: {
|
|
6826
|
+
type: string;
|
|
6827
|
+
requiredScope: string;
|
|
6828
|
+
};
|
|
6829
|
+
};
|
|
6830
|
+
outputFormat: "json";
|
|
6831
|
+
status: 403;
|
|
6832
|
+
} | {
|
|
6833
|
+
input: {};
|
|
6834
|
+
output: {
|
|
6835
|
+
error: {
|
|
6836
|
+
readonly type: "computer_not_paired";
|
|
6837
|
+
};
|
|
6838
|
+
};
|
|
6839
|
+
outputFormat: "json";
|
|
6840
|
+
status: 404;
|
|
6841
|
+
};
|
|
6842
|
+
}>;
|
|
6843
|
+
};
|
|
6844
|
+
};
|
|
6845
|
+
} & {
|
|
6846
|
+
v1: {
|
|
6847
|
+
computer: {
|
|
6848
|
+
pairings: {
|
|
6849
|
+
claim: import('hono/client').ClientRequest<string, "/v1/computer/pairings/claim", {
|
|
6850
|
+
$post: {
|
|
6851
|
+
input: {
|
|
6852
|
+
json: {
|
|
6853
|
+
pairingCode: string;
|
|
6854
|
+
deviceName: string;
|
|
6855
|
+
os: "macos" | "windows" | "linux";
|
|
6856
|
+
appVersion: string;
|
|
6857
|
+
};
|
|
6858
|
+
};
|
|
6859
|
+
output: {
|
|
6860
|
+
error: "pairing_code_invalid";
|
|
6861
|
+
};
|
|
6862
|
+
outputFormat: "json";
|
|
6863
|
+
status: 404;
|
|
6864
|
+
} | {
|
|
6865
|
+
input: {
|
|
6866
|
+
json: {
|
|
6867
|
+
pairingCode: string;
|
|
6868
|
+
deviceName: string;
|
|
6869
|
+
os: "macos" | "windows" | "linux";
|
|
6870
|
+
appVersion: string;
|
|
6871
|
+
};
|
|
6872
|
+
};
|
|
6873
|
+
output: {
|
|
6874
|
+
readonly deviceId: string;
|
|
6875
|
+
readonly deviceToken: string;
|
|
6876
|
+
};
|
|
6877
|
+
outputFormat: "json";
|
|
6878
|
+
status: 201;
|
|
6879
|
+
};
|
|
6880
|
+
}>;
|
|
6881
|
+
};
|
|
6882
|
+
};
|
|
6883
|
+
};
|
|
6884
|
+
} & {
|
|
6885
|
+
v1: {
|
|
6886
|
+
computer: {
|
|
6887
|
+
stream: import('hono/client').ClientRequest<string, "/v1/computer/stream", {
|
|
6888
|
+
$get: {
|
|
6889
|
+
input: {
|
|
6890
|
+
query: {
|
|
6891
|
+
protocol: string | string[];
|
|
6892
|
+
os: string | string[];
|
|
6893
|
+
appVersion: string | string[];
|
|
6894
|
+
shell?: string | string[];
|
|
6895
|
+
};
|
|
6896
|
+
};
|
|
6897
|
+
output: {};
|
|
6898
|
+
outputFormat: string;
|
|
6899
|
+
status: import('hono/utils/http-status').StatusCode;
|
|
6900
|
+
};
|
|
6901
|
+
}>;
|
|
6902
|
+
};
|
|
6903
|
+
};
|
|
6904
|
+
} & {
|
|
6905
|
+
v1: {
|
|
6906
|
+
computer: {
|
|
6907
|
+
heartbeat: import('hono/client').ClientRequest<string, "/v1/computer/heartbeat", {
|
|
6908
|
+
$post: {
|
|
6909
|
+
input: {};
|
|
6910
|
+
output: null;
|
|
6911
|
+
outputFormat: "body";
|
|
6912
|
+
status: 204;
|
|
6913
|
+
};
|
|
6914
|
+
}>;
|
|
6915
|
+
};
|
|
6916
|
+
};
|
|
6917
|
+
} & {
|
|
6918
|
+
v1: {
|
|
6919
|
+
computer: {
|
|
6920
|
+
ack: import('hono/client').ClientRequest<string, "/v1/computer/ack", {
|
|
6921
|
+
$post: {
|
|
6922
|
+
input: {
|
|
6923
|
+
json: {
|
|
6924
|
+
commandId: string;
|
|
6925
|
+
};
|
|
6926
|
+
};
|
|
6927
|
+
output: null;
|
|
6928
|
+
outputFormat: "body";
|
|
6929
|
+
status: 204;
|
|
6930
|
+
} | {
|
|
6931
|
+
input: {
|
|
6932
|
+
json: {
|
|
6933
|
+
commandId: string;
|
|
6934
|
+
};
|
|
6935
|
+
};
|
|
6936
|
+
output: {
|
|
6937
|
+
error: "unknown_command";
|
|
6938
|
+
};
|
|
6939
|
+
outputFormat: "json";
|
|
6940
|
+
status: 404;
|
|
6941
|
+
};
|
|
6942
|
+
}>;
|
|
6943
|
+
};
|
|
6944
|
+
};
|
|
6945
|
+
} & {
|
|
6946
|
+
v1: {
|
|
6947
|
+
computer: {
|
|
6948
|
+
result: import('hono/client').ClientRequest<string, "/v1/computer/result", {
|
|
6949
|
+
$post: {
|
|
6950
|
+
input: {
|
|
6951
|
+
json: {
|
|
6952
|
+
commandId: string;
|
|
6953
|
+
result: {
|
|
6954
|
+
op: "shell";
|
|
6955
|
+
exitCode: number | null;
|
|
6956
|
+
stdout: string;
|
|
6957
|
+
stderr: string;
|
|
6958
|
+
timedOut: boolean;
|
|
6959
|
+
truncated: boolean;
|
|
6960
|
+
durationMs: number;
|
|
6961
|
+
};
|
|
6962
|
+
};
|
|
6963
|
+
};
|
|
6964
|
+
output: null;
|
|
6965
|
+
outputFormat: "body";
|
|
6966
|
+
status: 204;
|
|
6967
|
+
} | {
|
|
6968
|
+
input: {
|
|
6969
|
+
json: {
|
|
6970
|
+
commandId: string;
|
|
6971
|
+
result: {
|
|
6972
|
+
op: "shell";
|
|
6973
|
+
exitCode: number | null;
|
|
6974
|
+
stdout: string;
|
|
6975
|
+
stderr: string;
|
|
6976
|
+
timedOut: boolean;
|
|
6977
|
+
truncated: boolean;
|
|
6978
|
+
durationMs: number;
|
|
6979
|
+
};
|
|
6980
|
+
};
|
|
6981
|
+
};
|
|
6982
|
+
output: {
|
|
6983
|
+
error: "unknown_command";
|
|
6984
|
+
};
|
|
6985
|
+
outputFormat: "json";
|
|
6986
|
+
status: 404;
|
|
6987
|
+
};
|
|
6988
|
+
}>;
|
|
6989
|
+
};
|
|
6990
|
+
};
|
|
6464
6991
|
} & {
|
|
6465
6992
|
v1: {
|
|
6466
6993
|
config: {
|
|
@@ -8429,7 +8956,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
8429
8956
|
to?: readonly string[] | undefined;
|
|
8430
8957
|
cc?: readonly string[] | undefined;
|
|
8431
8958
|
}[];
|
|
8432
|
-
outcome: "sent" | "partial" | "not_sent";
|
|
8959
|
+
outcome: "sent" | "partial" | "not_sent" | "unknown";
|
|
8433
8960
|
reason: "no_match" | "missing_outcome" | "provider_failed" | null;
|
|
8434
8961
|
} | null;
|
|
8435
8962
|
}[];
|
|
@@ -9743,7 +10270,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
9743
10270
|
to?: readonly string[] | undefined;
|
|
9744
10271
|
cc?: readonly string[] | undefined;
|
|
9745
10272
|
}[];
|
|
9746
|
-
outcome: "sent" | "partial" | "not_sent";
|
|
10273
|
+
outcome: "sent" | "partial" | "not_sent" | "unknown";
|
|
9747
10274
|
reason: "no_match" | "missing_outcome" | "provider_failed" | null;
|
|
9748
10275
|
} | null;
|
|
9749
10276
|
}[];
|
|
@@ -11790,6 +12317,23 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
11790
12317
|
};
|
|
11791
12318
|
outputFormat: "json";
|
|
11792
12319
|
status: 409;
|
|
12320
|
+
} | {
|
|
12321
|
+
input: {
|
|
12322
|
+
param: {
|
|
12323
|
+
projectId: string;
|
|
12324
|
+
};
|
|
12325
|
+
} & {
|
|
12326
|
+
query: {
|
|
12327
|
+
workspaceExternalId?: string | string[];
|
|
12328
|
+
};
|
|
12329
|
+
};
|
|
12330
|
+
output: {
|
|
12331
|
+
error: {
|
|
12332
|
+
type: "project_handover_too_many_files";
|
|
12333
|
+
};
|
|
12334
|
+
};
|
|
12335
|
+
outputFormat: "json";
|
|
12336
|
+
status: 409;
|
|
11793
12337
|
} | {
|
|
11794
12338
|
input: {
|
|
11795
12339
|
param: {
|
|
@@ -12817,6 +13361,23 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
12817
13361
|
};
|
|
12818
13362
|
outputFormat: "json";
|
|
12819
13363
|
status: 409;
|
|
13364
|
+
} | {
|
|
13365
|
+
input: {
|
|
13366
|
+
param: {
|
|
13367
|
+
projectId: string;
|
|
13368
|
+
};
|
|
13369
|
+
} & {
|
|
13370
|
+
query: {
|
|
13371
|
+
workspaceExternalId?: string | string[];
|
|
13372
|
+
};
|
|
13373
|
+
};
|
|
13374
|
+
output: {
|
|
13375
|
+
error: {
|
|
13376
|
+
type: "project_handover_too_many_files";
|
|
13377
|
+
};
|
|
13378
|
+
};
|
|
13379
|
+
outputFormat: "json";
|
|
13380
|
+
status: 409;
|
|
12820
13381
|
} | {
|
|
12821
13382
|
input: {
|
|
12822
13383
|
param: {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ApiClient } from './client.ts';
|
|
3
|
+
declare const computerDeviceSchema: z.ZodObject<{
|
|
4
|
+
deviceId: z.ZodUUID;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
os: z.ZodEnum<{
|
|
7
|
+
macos: "macos";
|
|
8
|
+
windows: "windows";
|
|
9
|
+
linux: "linux";
|
|
10
|
+
}>;
|
|
11
|
+
appVersion: z.ZodString;
|
|
12
|
+
pairedAt: z.ZodISODateTime;
|
|
13
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
14
|
+
online: z.ZodBoolean;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const computerStatusSchema: z.ZodObject<{
|
|
17
|
+
device: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
deviceId: z.ZodUUID;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
os: z.ZodEnum<{
|
|
21
|
+
macos: "macos";
|
|
22
|
+
windows: "windows";
|
|
23
|
+
linux: "linux";
|
|
24
|
+
}>;
|
|
25
|
+
appVersion: z.ZodString;
|
|
26
|
+
pairedAt: z.ZodISODateTime;
|
|
27
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
28
|
+
online: z.ZodBoolean;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
downloadUrl: z.ZodNullable<z.ZodURL>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type ComputerDevice = z.infer<typeof computerDeviceSchema>;
|
|
33
|
+
export type ComputerStatus = z.infer<typeof computerStatusSchema>;
|
|
34
|
+
export declare const fetchComputerStatus: (client: ApiClient) => Promise<ComputerStatus>;
|
|
35
|
+
/** A one-time code; single attempt, since a retried POST would mint a second one. */
|
|
36
|
+
export declare const createComputerPairing: (client: ApiClient) => Promise<{
|
|
37
|
+
pairingCode: string;
|
|
38
|
+
expiresAt: string;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const revokeComputer: (client: ApiClient) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* The deep link the desktop app registers for. It carries the API this dock
|
|
43
|
+
* talks to (an absolute URL, resolved against the host page), so the app
|
|
44
|
+
* pairs with the right regional cell without asking.
|
|
45
|
+
*/
|
|
46
|
+
export declare const computerPairingLink: (pairingCode: string, apiBaseUrl: string) => string;
|
|
47
|
+
export declare const useComputerStatus: (ownerCacheKey: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
48
|
+
device: {
|
|
49
|
+
deviceId: string;
|
|
50
|
+
name: string;
|
|
51
|
+
os: "macos" | "windows" | "linux";
|
|
52
|
+
appVersion: string;
|
|
53
|
+
pairedAt: string;
|
|
54
|
+
lastSeenAt: string | null;
|
|
55
|
+
online: boolean;
|
|
56
|
+
} | null;
|
|
57
|
+
downloadUrl: string | null;
|
|
58
|
+
}>, Error>;
|
|
59
|
+
export declare const useRevokeComputer: (ownerCacheKey: string) => () => Promise<void>;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ApiClient } from './client.ts';
|
|
3
|
+
declare const proactiveSchema: z.ZodObject<{
|
|
4
|
+
enabled: z.ZodBoolean;
|
|
5
|
+
lastCheckAt: z.ZodNullable<z.ZodISODateTime>;
|
|
6
|
+
nextCheckAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7
|
+
checkingCount: z.ZodNumber;
|
|
8
|
+
slackAvailable: z.ZodBoolean;
|
|
9
|
+
watchedApps: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
10
|
+
chat: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
sessionId: z.ZodString;
|
|
12
|
+
unreadCount: z.ZodNumber;
|
|
13
|
+
lastMessageAt: z.ZodNullable<z.ZodISODateTime>;
|
|
14
|
+
lastMessage: z.ZodNullable<z.ZodString>;
|
|
15
|
+
activeRunId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type Proactive = z.infer<typeof proactiveSchema>;
|
|
19
|
+
export type ProactiveState = {
|
|
20
|
+
readonly status: "ready";
|
|
21
|
+
readonly proactive: Proactive;
|
|
22
|
+
} | {
|
|
23
|
+
readonly status: "unavailable";
|
|
24
|
+
};
|
|
25
|
+
/** The pinned chat, created on first use, moved to the Workspace it's opened from. */
|
|
26
|
+
export declare const openPinnedChat: (client: ApiClient, workspaceExternalId: string | null) => Promise<string>;
|
|
27
|
+
export declare const fetchProactive: (client: ApiClient) => Promise<ProactiveState>;
|
|
28
|
+
/** How often the dock re-reads it, and how often while a check is deciding. */
|
|
29
|
+
export declare const PROACTIVE_POLL_MS = 30000;
|
|
30
|
+
export declare const PROACTIVE_ACTIVE_POLL_MS = 4000;
|
|
31
|
+
/** Keyed by the account speaking to the API, so it is purged on a switch. */
|
|
32
|
+
export declare const useProactive: () => import('@tanstack/react-query').UseQueryResult<NoInfer<ProactiveState>, Error>;
|
|
33
|
+
export declare const useSetProactiveEnabled: () => import('@tanstack/react-query').UseMutationResult<void, Error, boolean, unknown>;
|
|
34
|
+
export declare const useCheckNow: () => import('@tanstack/react-query').UseMutationResult<number, Error, void, unknown>;
|
|
35
|
+
export declare const useMarkProactiveRead: () => import('@tanstack/react-query').UseMutationResult<void, Error, void, unknown>;
|
|
36
|
+
export {};
|