mtmsdk 0.0.48 → 0.0.49
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/gomtmapi/@tanstack/react-query.gen.d.ts +2 -80
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +2 -176
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi/index.d.ts +2 -2
- package/dist/gomtmapi/index.d.ts.map +1 -1
- package/dist/gomtmapi/index.js +1 -1
- package/dist/gomtmapi/index.js.map +1 -1
- package/dist/gomtmapi/schemas.gen.d.ts +14 -328
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +14 -341
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +2 -80
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +1 -135
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +10 -437
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +8 -308
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +4 -232
- package/dist/gomtmapi/zod.gen.js.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +1 -29
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -17
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtgate_api/index.d.ts +2 -2
- package/dist/mtgate_api/index.d.ts.map +1 -1
- package/dist/mtgate_api/index.js +1 -1
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +1 -5
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +0 -4
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +0 -6
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +0 -5
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +0 -5
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/index.d.ts +2 -2
- package/dist/mtmai_api/index.d.ts.map +1 -1
- package/dist/mtmai_api/index.js +1 -1
- package/dist/mtmai_api/index.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +96 -96
- package/dist/openclaw/client-info.d.ts +0 -18
- package/dist/openclaw/client-info.d.ts.map +1 -1
- package/dist/openclaw/client-info.js +0 -6
- package/dist/openclaw/client-info.js.map +1 -1
- package/dist/openclaw/device-auth-utils.d.ts +3 -4
- package/dist/openclaw/device-auth-utils.d.ts.map +1 -1
- package/dist/openclaw/device-auth-utils.js +4 -8
- package/dist/openclaw/device-auth-utils.js.map +1 -1
- package/dist/openclaw/device-auth.d.ts.map +1 -1
- package/dist/openclaw/device-auth.js +5 -2
- package/dist/openclaw/device-auth.js.map +1 -1
- package/dist/openclaw/device-identity.js +2 -2
- package/dist/openclaw/device-identity.js.map +1 -1
- package/dist/openclaw/gateway.d.ts +19 -5
- package/dist/openclaw/gateway.d.ts.map +1 -1
- package/dist/openclaw/gateway.js +75 -37
- package/dist/openclaw/gateway.js.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.d.ts +36 -8
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +22 -6
- package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
- package/dist/sbmng/index.d.ts +2 -2
- package/dist/sbmng/index.d.ts.map +1 -1
- package/dist/sbmng/index.js +1 -1
- package/dist/sbmng/index.js.map +1 -1
- package/dist/sbmng/schemas.gen.d.ts +97 -34
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +120 -49
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +7 -3
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +11 -3
- package/dist/sbmng/sdk.gen.js.map +1 -1
- package/dist/sbmng/types.gen.d.ts +82 -30
- package/dist/sbmng/types.gen.d.ts.map +1 -1
- package/dist/supabase/schema/index.d.ts +0 -8
- package/dist/supabase/schema/index.d.ts.map +1 -1
- package/dist/supabase/schema/index.js +0 -5
- package/dist/supabase/schema/index.js.map +1 -1
- package/dist/supabase/supabase-client.d.ts +900 -719
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +1836 -1474
- package/dist/supabase/supabase.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js +2 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
- package/dist/types/database.schemas.d.ts +999 -920
- package/dist/types/database.schemas.d.ts.map +1 -1
- package/dist/types/database.schemas.js +739 -435
- package/dist/types/database.schemas.js.map +1 -1
- package/dist/types/database.types.d.ts +919 -736
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js +18 -2
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +35 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -3
- package/src/gomtmapi/@tanstack/react-query.gen.ts +3 -185
- package/src/gomtmapi/index.ts +2 -2
- package/src/gomtmapi/schemas.gen.ts +14 -356
- package/src/gomtmapi/sdk.gen.ts +2 -144
- package/src/gomtmapi/types.gen.ts +10 -492
- package/src/gomtmapi/zod.gen.ts +4 -263
- package/src/mtgate_api/@tanstack/react-query.gen.ts +2 -20
- package/src/mtgate_api/index.ts +2 -2
- package/src/mtgate_api/sdk.gen.ts +1 -6
- package/src/mtgate_api/types.gen.ts +0 -7
- package/src/mtgate_api/zod.gen.ts +0 -6
- package/src/mtmai_api/index.ts +2 -2
- package/src/openclaw/client-info.ts +0 -9
- package/src/openclaw/device-auth-utils.ts +7 -12
- package/src/openclaw/device-auth.ts +5 -2
- package/src/openclaw/device-identity.ts +2 -2
- package/src/openclaw/gateway.ts +96 -50
- package/src/sbmng/@tanstack/react-query.gen.ts +25 -7
- package/src/sbmng/index.ts +2 -2
- package/src/sbmng/schemas.gen.ts +121 -49
- package/src/sbmng/sdk.gen.ts +13 -4
- package/src/sbmng/types.gen.ts +87 -30
- package/src/supabase/schema/index.ts +0 -5
- package/src/supabase/use-sb-query/use-rpc-query.ts +2 -1
- package/src/types/database.schemas.ts +948 -598
- package/src/types/database.types.ts +864 -674
- package/src/types/index.ts +20 -4
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +0 -3017
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/api_hatchet/@tanstack/react-query.gen.js +0 -2776
- package/dist/api_hatchet/@tanstack/react-query.gen.js.map +0 -1
- package/dist/api_hatchet/client/client.gen.d.ts +0 -3
- package/dist/api_hatchet/client/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/client.gen.js +0 -236
- package/dist/api_hatchet/client/client.gen.js.map +0 -1
- package/dist/api_hatchet/client/index.d.ts +0 -9
- package/dist/api_hatchet/client/index.d.ts.map +0 -1
- package/dist/api_hatchet/client/index.js +0 -7
- package/dist/api_hatchet/client/index.js.map +0 -1
- package/dist/api_hatchet/client/types.gen.d.ts +0 -118
- package/dist/api_hatchet/client/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/types.gen.js +0 -3
- package/dist/api_hatchet/client/types.gen.js.map +0 -1
- package/dist/api_hatchet/client/utils.gen.d.ts +0 -34
- package/dist/api_hatchet/client/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/utils.gen.js +0 -232
- package/dist/api_hatchet/client/utils.gen.js.map +0 -1
- package/dist/api_hatchet/client.gen.d.ts +0 -13
- package/dist/api_hatchet/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client.gen.js +0 -4
- package/dist/api_hatchet/client.gen.js.map +0 -1
- package/dist/api_hatchet/core/auth.gen.d.ts +0 -19
- package/dist/api_hatchet/core/auth.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/auth.gen.js +0 -15
- package/dist/api_hatchet/core/auth.gen.js.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts +0 -26
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.js +0 -58
- package/dist/api_hatchet/core/bodySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/params.gen.d.ts +0 -44
- package/dist/api_hatchet/core/params.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/params.gen.js +0 -101
- package/dist/api_hatchet/core/params.gen.js.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts +0 -34
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.js +0 -115
- package/dist/api_hatchet/core/pathSerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.js +0 -100
- package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.js +0 -138
- package/dist/api_hatchet/core/serverSentEvents.gen.js.map +0 -1
- package/dist/api_hatchet/core/types.gen.d.ts +0 -79
- package/dist/api_hatchet/core/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/types.gen.js +0 -3
- package/dist/api_hatchet/core/types.gen.js.map +0 -1
- package/dist/api_hatchet/core/utils.gen.d.ts +0 -20
- package/dist/api_hatchet/core/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/utils.gen.js +0 -88
- package/dist/api_hatchet/core/utils.gen.js.map +0 -1
- package/dist/api_hatchet/index.d.ts +0 -3
- package/dist/api_hatchet/index.d.ts.map +0 -1
- package/dist/api_hatchet/index.js +0 -4
- package/dist/api_hatchet/index.js.map +0 -1
- package/dist/api_hatchet/schemas.gen.d.ts +0 -4068
- package/dist/api_hatchet/schemas.gen.d.ts.map +0 -1
- package/dist/api_hatchet/schemas.gen.js +0 -4743
- package/dist/api_hatchet/schemas.gen.js.map +0 -1
- package/dist/api_hatchet/sdk.gen.d.ts +0 -784
- package/dist/api_hatchet/sdk.gen.d.ts.map +0 -1
- package/dist/api_hatchet/sdk.gen.js +0 -1849
- package/dist/api_hatchet/sdk.gen.js.map +0 -1
- package/dist/api_hatchet/types.gen.d.ts +0 -6861
- package/dist/api_hatchet/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/types.gen.js +0 -209
- package/dist/api_hatchet/types.gen.js.map +0 -1
- package/dist/api_hatchet/zod.gen.d.ts +0 -10429
- package/dist/api_hatchet/zod.gen.d.ts.map +0 -1
- package/dist/api_hatchet/zod.gen.js +0 -2766
- package/dist/api_hatchet/zod.gen.js.map +0 -1
- package/dist/openclaw/uuid.d.ts +0 -6
- package/dist/openclaw/uuid.d.ts.map +0 -1
- package/dist/openclaw/uuid.js +0 -39
- package/dist/openclaw/uuid.js.map +0 -1
- package/dist/types/rpc.schemas.d.ts +0 -52
- package/dist/types/rpc.schemas.d.ts.map +0 -1
- package/dist/types/rpc.schemas.js +0 -108
- package/dist/types/rpc.schemas.js.map +0 -1
- package/src/api_hatchet/@tanstack/react-query.gen.ts +0 -3025
- package/src/api_hatchet/client/client.gen.ts +0 -311
- package/src/api_hatchet/client/index.ts +0 -25
- package/src/api_hatchet/client/types.gen.ts +0 -241
- package/src/api_hatchet/client/utils.gen.ts +0 -332
- package/src/api_hatchet/client.gen.ts +0 -16
- package/src/api_hatchet/core/auth.gen.ts +0 -42
- package/src/api_hatchet/core/bodySerializer.gen.ts +0 -100
- package/src/api_hatchet/core/params.gen.ts +0 -176
- package/src/api_hatchet/core/pathSerializer.gen.ts +0 -181
- package/src/api_hatchet/core/queryKeySerializer.gen.ts +0 -136
- package/src/api_hatchet/core/serverSentEvents.gen.ts +0 -266
- package/src/api_hatchet/core/types.gen.ts +0 -118
- package/src/api_hatchet/core/utils.gen.ts +0 -143
- package/src/api_hatchet/index.ts +0 -4
- package/src/api_hatchet/schemas.gen.ts +0 -4961
- package/src/api_hatchet/sdk.gen.ts +0 -1994
- package/src/api_hatchet/types.gen.ts +0 -7688
- package/src/api_hatchet/zod.gen.ts +0 -3230
- package/src/openclaw/uuid.ts +0 -48
- package/src/types/rpc.schemas.ts +0 -142
package/src/gomtmapi/zod.gen.ts
CHANGED
|
@@ -25,24 +25,6 @@ export const zAddContactResponse = z.object({
|
|
|
25
25
|
user_id: z.optional(z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }))
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
/**
|
|
29
|
-
* AgentRunReq schema
|
|
30
|
-
*/
|
|
31
|
-
export const zAgentRunReq = z.object({
|
|
32
|
-
payload: z.optional(z.record(z.string(), z.unknown())),
|
|
33
|
-
target_worker_id: z.optional(z.string()),
|
|
34
|
-
type: z.string()
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* AgentRunResp schema
|
|
39
|
-
*/
|
|
40
|
-
export const zAgentRunResp = z.object({
|
|
41
|
-
data: z.optional(z.unknown()),
|
|
42
|
-
error: z.optional(z.string()),
|
|
43
|
-
status: z.optional(z.string())
|
|
44
|
-
});
|
|
45
|
-
|
|
46
28
|
/**
|
|
47
29
|
* AuthResponse schema
|
|
48
30
|
*/
|
|
@@ -87,20 +69,6 @@ export const zBrowserOpenResp = z.object({
|
|
|
87
69
|
task_id: z.optional(z.string())
|
|
88
70
|
});
|
|
89
71
|
|
|
90
|
-
/**
|
|
91
|
-
* ChatCompletionRequest schema
|
|
92
|
-
*/
|
|
93
|
-
export const zChatCompletionRequest = z.object({
|
|
94
|
-
max_tokens: z.optional(z.int()),
|
|
95
|
-
messages: z.optional(z.array(z.object({
|
|
96
|
-
content: z.optional(z.string()),
|
|
97
|
-
role: z.optional(z.string())
|
|
98
|
-
}))),
|
|
99
|
-
model: z.optional(z.string()),
|
|
100
|
-
stream: z.optional(z.boolean()),
|
|
101
|
-
temperature: z.optional(z.number())
|
|
102
|
-
});
|
|
103
|
-
|
|
104
72
|
/**
|
|
105
73
|
* CheckUpdateResponse schema
|
|
106
74
|
*/
|
|
@@ -115,29 +83,9 @@ export const zCheckUpdateResponse = z.object({
|
|
|
115
83
|
*/
|
|
116
84
|
export const zCodeRunResult = z.object({
|
|
117
85
|
duration: z.optional(z.number()),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
status: z.optional(z.string())
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* EditFileRequest schema
|
|
126
|
-
*/
|
|
127
|
-
export const zEditFileRequest = z.object({
|
|
128
|
-
file_path: z.string(),
|
|
129
|
-
new_string: z.optional(z.string()),
|
|
130
|
-
old_string: z.optional(z.string()),
|
|
131
|
-
replace_all: z.optional(z.boolean())
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* EditFileResponse schema
|
|
136
|
-
*/
|
|
137
|
-
export const zEditFileResponse = z.object({
|
|
138
|
-
diff: z.optional(z.string()),
|
|
139
|
-
message: z.optional(z.string()),
|
|
140
|
-
success: z.optional(z.boolean())
|
|
86
|
+
exitCode: z.optional(z.int()),
|
|
87
|
+
stderr: z.optional(z.string()),
|
|
88
|
+
stdout: z.optional(z.string())
|
|
141
89
|
});
|
|
142
90
|
|
|
143
91
|
/**
|
|
@@ -156,43 +104,6 @@ export const zHttpError = z.object({
|
|
|
156
104
|
type: z.optional(z.string())
|
|
157
105
|
});
|
|
158
106
|
|
|
159
|
-
/**
|
|
160
|
-
* HumanActionReq schema
|
|
161
|
-
*/
|
|
162
|
-
export const zHumanActionReq = z.object({
|
|
163
|
-
action_type: z.string(),
|
|
164
|
-
message: z.string(),
|
|
165
|
-
resource_id: z.optional(z.string())
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* HumanActionResp schema
|
|
170
|
-
*/
|
|
171
|
-
export const zHumanActionResp = z.object({
|
|
172
|
-
client_action: z.optional(z.record(z.string(), z.string())),
|
|
173
|
-
message: z.optional(z.string()),
|
|
174
|
-
status: z.optional(z.string())
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* ListDirRequest schema
|
|
179
|
-
*/
|
|
180
|
-
export const zListDirRequest = z.object({
|
|
181
|
-
path: z.string()
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* ListDirResponse schema
|
|
186
|
-
*/
|
|
187
|
-
export const zListDirResponse = z.object({
|
|
188
|
-
entries: z.optional(z.array(z.object({
|
|
189
|
-
is_dir: z.optional(z.boolean()),
|
|
190
|
-
name: z.optional(z.string()),
|
|
191
|
-
size: z.optional(z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }))
|
|
192
|
-
}))),
|
|
193
|
-
error: z.optional(z.string())
|
|
194
|
-
});
|
|
195
|
-
|
|
196
107
|
/**
|
|
197
108
|
* NapcatStatus schema
|
|
198
109
|
*/
|
|
@@ -230,52 +141,16 @@ export const zPerformUpgradeResponse = z.object({
|
|
|
230
141
|
status: z.optional(z.string())
|
|
231
142
|
});
|
|
232
143
|
|
|
233
|
-
/**
|
|
234
|
-
* ReadFilesRequest schema
|
|
235
|
-
*/
|
|
236
|
-
export const zReadFilesRequest = z.object({
|
|
237
|
-
paths: z.array(z.string())
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* ReadFilesResponse schema
|
|
242
|
-
*/
|
|
243
|
-
export const zReadFilesResponse = z.object({
|
|
244
|
-
results: z.optional(z.array(z.object({
|
|
245
|
-
content: z.optional(z.string()),
|
|
246
|
-
error: z.optional(z.string()),
|
|
247
|
-
file_path: z.optional(z.string())
|
|
248
|
-
}))),
|
|
249
|
-
summary: z.optional(z.string())
|
|
250
|
-
});
|
|
251
|
-
|
|
252
144
|
/**
|
|
253
145
|
* RunCodeReq schema
|
|
254
146
|
*/
|
|
255
147
|
export const zRunCodeReq = z.object({
|
|
256
148
|
codeType: z.string().min(2),
|
|
257
149
|
content: z.string().min(1),
|
|
258
|
-
|
|
150
|
+
env: z.optional(z.record(z.string(), z.string())),
|
|
259
151
|
timeout: z.optional(z.int())
|
|
260
152
|
});
|
|
261
153
|
|
|
262
|
-
/**
|
|
263
|
-
* SearchFilesRequest schema
|
|
264
|
-
*/
|
|
265
|
-
export const zSearchFilesRequest = z.object({
|
|
266
|
-
glob: z.optional(z.string()),
|
|
267
|
-
path: z.optional(z.string()),
|
|
268
|
-
pattern: z.string()
|
|
269
|
-
});
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* SearchFilesResponse schema
|
|
273
|
-
*/
|
|
274
|
-
export const zSearchFilesResponse = z.object({
|
|
275
|
-
error: z.optional(z.string()),
|
|
276
|
-
matches: z.optional(z.array(z.string()))
|
|
277
|
-
});
|
|
278
|
-
|
|
279
154
|
/**
|
|
280
155
|
* SendCodeRequest schema
|
|
281
156
|
*/
|
|
@@ -347,28 +222,6 @@ export const zStatusResponse = z.object({
|
|
|
347
222
|
version: z.optional(z.string())
|
|
348
223
|
});
|
|
349
224
|
|
|
350
|
-
/**
|
|
351
|
-
* TaskExecuteRequest schema
|
|
352
|
-
*/
|
|
353
|
-
export const zTaskExecuteRequest = z.object({
|
|
354
|
-
code: z.optional(z.string()),
|
|
355
|
-
code_type: z.optional(z.string()),
|
|
356
|
-
meta: z.optional(z.record(z.string(), z.unknown())),
|
|
357
|
-
task_id: z.optional(z.string()),
|
|
358
|
-
timeout_seconds: z.optional(z.int())
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* TaskExecuteResponse schema
|
|
363
|
-
*/
|
|
364
|
-
export const zTaskExecuteResponse = z.object({
|
|
365
|
-
error: z.optional(z.string()),
|
|
366
|
-
output: z.optional(z.string()),
|
|
367
|
-
result: z.optional(z.record(z.string(), z.unknown())),
|
|
368
|
-
success: z.optional(z.boolean()),
|
|
369
|
-
task_id: z.optional(z.string())
|
|
370
|
-
});
|
|
371
|
-
|
|
372
225
|
/**
|
|
373
226
|
* UserInfoRequest schema
|
|
374
227
|
*/
|
|
@@ -388,20 +241,6 @@ export const zString = z.string();
|
|
|
388
241
|
*/
|
|
389
242
|
export const zUnknownInterface = z.unknown();
|
|
390
243
|
|
|
391
|
-
export const zAgentRunData = z.object({
|
|
392
|
-
body: zAgentRunReq,
|
|
393
|
-
path: z.optional(z.never()),
|
|
394
|
-
query: z.optional(z.never()),
|
|
395
|
-
headers: z.optional(z.object({
|
|
396
|
-
Accept: z.optional(z.string())
|
|
397
|
-
}))
|
|
398
|
-
});
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* OK
|
|
402
|
-
*/
|
|
403
|
-
export const zAgentRunResponse = zAgentRunResp;
|
|
404
|
-
|
|
405
244
|
export const zBrowserActionData = z.object({
|
|
406
245
|
body: zBrowserActionReq,
|
|
407
246
|
path: z.optional(z.never()),
|
|
@@ -430,62 +269,6 @@ export const zBrowserOpenData = z.object({
|
|
|
430
269
|
*/
|
|
431
270
|
export const zBrowserOpenResponse = zBrowserOpenResp;
|
|
432
271
|
|
|
433
|
-
export const zCoddingToolEditFileData = z.object({
|
|
434
|
-
body: zEditFileRequest,
|
|
435
|
-
path: z.optional(z.never()),
|
|
436
|
-
query: z.optional(z.never()),
|
|
437
|
-
headers: z.optional(z.object({
|
|
438
|
-
Accept: z.optional(z.string())
|
|
439
|
-
}))
|
|
440
|
-
});
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* OK
|
|
444
|
-
*/
|
|
445
|
-
export const zCoddingToolEditFileResponse = zEditFileResponse;
|
|
446
|
-
|
|
447
|
-
export const zCoddingToolListDirData = z.object({
|
|
448
|
-
body: zListDirRequest,
|
|
449
|
-
path: z.optional(z.never()),
|
|
450
|
-
query: z.optional(z.never()),
|
|
451
|
-
headers: z.optional(z.object({
|
|
452
|
-
Accept: z.optional(z.string())
|
|
453
|
-
}))
|
|
454
|
-
});
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* OK
|
|
458
|
-
*/
|
|
459
|
-
export const zCoddingToolListDirResponse = zListDirResponse;
|
|
460
|
-
|
|
461
|
-
export const zCoddingToolReadFilesData = z.object({
|
|
462
|
-
body: zReadFilesRequest,
|
|
463
|
-
path: z.optional(z.never()),
|
|
464
|
-
query: z.optional(z.never()),
|
|
465
|
-
headers: z.optional(z.object({
|
|
466
|
-
Accept: z.optional(z.string())
|
|
467
|
-
}))
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* OK
|
|
472
|
-
*/
|
|
473
|
-
export const zCoddingToolReadFilesResponse = zReadFilesResponse;
|
|
474
|
-
|
|
475
|
-
export const zCoddingToolSearchFilesData = z.object({
|
|
476
|
-
body: zSearchFilesRequest,
|
|
477
|
-
path: z.optional(z.never()),
|
|
478
|
-
query: z.optional(z.never()),
|
|
479
|
-
headers: z.optional(z.object({
|
|
480
|
-
Accept: z.optional(z.string())
|
|
481
|
-
}))
|
|
482
|
-
});
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* OK
|
|
486
|
-
*/
|
|
487
|
-
export const zCoddingToolSearchFilesResponse = zSearchFilesResponse;
|
|
488
|
-
|
|
489
272
|
export const zCodeRunData = z.object({
|
|
490
273
|
body: zRunCodeReq,
|
|
491
274
|
path: z.optional(z.never()),
|
|
@@ -513,20 +296,6 @@ export const zPostApiDbQueryQueryData = z.object({
|
|
|
513
296
|
*/
|
|
514
297
|
export const zPostApiDbQueryQueryResponse = zUnknownInterface;
|
|
515
298
|
|
|
516
|
-
export const zHumanRequestActionData = z.object({
|
|
517
|
-
body: zHumanActionReq,
|
|
518
|
-
path: z.optional(z.never()),
|
|
519
|
-
query: z.optional(z.never()),
|
|
520
|
-
headers: z.optional(z.object({
|
|
521
|
-
Accept: z.optional(z.string())
|
|
522
|
-
}))
|
|
523
|
-
});
|
|
524
|
-
|
|
525
|
-
/**
|
|
526
|
-
* OK
|
|
527
|
-
*/
|
|
528
|
-
export const zHumanRequestActionResponse = zHumanActionResp;
|
|
529
|
-
|
|
530
299
|
export const zNapcatStartData = z.object({
|
|
531
300
|
body: zStartNapcatRequest,
|
|
532
301
|
path: z.optional(z.never()),
|
|
@@ -625,34 +394,6 @@ export const zGetApiSystemStatusData = z.object({
|
|
|
625
394
|
*/
|
|
626
395
|
export const zGetApiSystemStatusResponse = zStatusResponse;
|
|
627
396
|
|
|
628
|
-
export const zPostApiV1GeminiChatCompletionsData = z.object({
|
|
629
|
-
body: zChatCompletionRequest,
|
|
630
|
-
path: z.optional(z.never()),
|
|
631
|
-
query: z.optional(z.never()),
|
|
632
|
-
headers: z.optional(z.object({
|
|
633
|
-
Accept: z.optional(z.string())
|
|
634
|
-
}))
|
|
635
|
-
});
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* OK
|
|
639
|
-
*/
|
|
640
|
-
export const zPostApiV1GeminiChatCompletionsResponse = zUnknownInterface;
|
|
641
|
-
|
|
642
|
-
export const zPostApiV1TaskExecuteData = z.object({
|
|
643
|
-
body: zTaskExecuteRequest,
|
|
644
|
-
path: z.optional(z.never()),
|
|
645
|
-
query: z.optional(z.never()),
|
|
646
|
-
headers: z.optional(z.object({
|
|
647
|
-
Accept: z.optional(z.string())
|
|
648
|
-
}))
|
|
649
|
-
});
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* OK
|
|
653
|
-
*/
|
|
654
|
-
export const zPostApiV1TaskExecuteResponse = zTaskExecuteResponse;
|
|
655
|
-
|
|
656
397
|
export const zPostApiV1TelegramAuthPasswordData = z.object({
|
|
657
398
|
body: zPasswordRequest,
|
|
658
399
|
path: z.optional(z.never()),
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { type DefaultError, queryOptions, type UseMutationOptions } from '@tanstack/react-query';
|
|
4
4
|
|
|
5
5
|
import { client } from '../client.gen';
|
|
6
|
-
import { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen,
|
|
7
|
-
import type { AdkAgentRunData, AdkAgentRunResponse, AgentChatListData, AgentChatListResponse, AgentQuickActionData, AgentQuickActionResponse, AgentRunData, AgentRunResponse, BrowserOpenData, BrowserOpenResponse,
|
|
6
|
+
import { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen, humanTasksList, mcpApiHello, type Options } from '../sdk.gen';
|
|
7
|
+
import type { AdkAgentRunData, AdkAgentRunResponse, AgentChatListData, AgentChatListResponse, AgentQuickActionData, AgentQuickActionResponse, AgentRunData, AgentRunResponse, BrowserOpenData, BrowserOpenResponse, HumanTasksListData, HumanTasksListResponse, McpApiHelloData } from '../types.gen';
|
|
8
8
|
|
|
9
9
|
export const adkAgentRunMutation = (options?: Partial<Options<AdkAgentRunData>>): UseMutationOptions<AdkAgentRunResponse, DefaultError, Options<AdkAgentRunData>> => {
|
|
10
10
|
const mutationOptions: UseMutationOptions<AdkAgentRunResponse, DefaultError, Options<AdkAgentRunData>> = {
|
|
@@ -140,21 +140,3 @@ export const mcpApiHelloOptions = (options: Options<McpApiHelloData>) => queryOp
|
|
|
140
140
|
},
|
|
141
141
|
queryKey: mcpApiHelloQueryKey(options)
|
|
142
142
|
});
|
|
143
|
-
|
|
144
|
-
export const clawdSessionsListQueryKey = (options?: Options<ClawdSessionsListData>) => createQueryKey('clawdSessionsList', options);
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* List clawd sessions via WebSocket proxy using Gateway Protocol
|
|
148
|
-
*/
|
|
149
|
-
export const clawdSessionsListOptions = (options?: Options<ClawdSessionsListData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof clawdSessionsListQueryKey>>({
|
|
150
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
151
|
-
const { data } = await clawdSessionsList({
|
|
152
|
-
...options,
|
|
153
|
-
...queryKey[0],
|
|
154
|
-
signal,
|
|
155
|
-
throwOnError: true
|
|
156
|
-
});
|
|
157
|
-
return data;
|
|
158
|
-
},
|
|
159
|
-
queryKey: clawdSessionsListQueryKey(options)
|
|
160
|
-
});
|
package/src/mtgate_api/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen,
|
|
4
|
-
export type { AdkAgentRunData, AdkAgentRunResponse, AdkAgentRunResponses, AdkBlob, AdkCodeExecutionResult, AdkExecutableCode, AdkFileData, AdkFunctionCall, AdkFunctionResp, AdkPart, AgentChatItem, AgentChatListData, AgentChatListResponse, AgentChatListResponses, AgentQuickActionData, AgentQuickActionItem, AgentQuickActionResponse, AgentQuickActionResponses, AgentRunData, AgentRunReq, AgentRunResponse, AgentRunResponses, AgentRunResult, BrowserOpenData, BrowserOpenResponse, BrowserOpenResponses, ChatlistParams,
|
|
3
|
+
export { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen, humanTasksList, mcpApiHello, type Options } from './sdk.gen';
|
|
4
|
+
export type { AdkAgentRunData, AdkAgentRunResponse, AdkAgentRunResponses, AdkBlob, AdkCodeExecutionResult, AdkExecutableCode, AdkFileData, AdkFunctionCall, AdkFunctionResp, AdkPart, AgentChatItem, AgentChatListData, AgentChatListResponse, AgentChatListResponses, AgentQuickActionData, AgentQuickActionItem, AgentQuickActionResponse, AgentQuickActionResponses, AgentRunData, AgentRunReq, AgentRunResponse, AgentRunResponses, AgentRunResult, BrowserOpenData, BrowserOpenResponse, BrowserOpenResponses, ChatlistParams, ClientOptions, GenaiContent, HumanTasksListData, HumanTasksListResponse, HumanTasksListResponses, McpApiHelloData, McpApiHelloResponses, MtAgentRunReq, ZMtAgentRun } from './types.gen';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Client, Options as Options2, TDataShape } from './client';
|
|
4
4
|
import { client } from './client.gen';
|
|
5
|
-
import type { AdkAgentRunData, AdkAgentRunResponses, AgentChatListData, AgentChatListResponses, AgentQuickActionData, AgentQuickActionResponses, AgentRunData, AgentRunResponses, BrowserOpenData, BrowserOpenResponses,
|
|
5
|
+
import type { AdkAgentRunData, AdkAgentRunResponses, AgentChatListData, AgentChatListResponses, AgentQuickActionData, AgentQuickActionResponses, AgentRunData, AgentRunResponses, BrowserOpenData, BrowserOpenResponses, HumanTasksListData, HumanTasksListResponses, McpApiHelloData, McpApiHelloResponses } from './types.gen';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
8
8
|
/**
|
|
@@ -52,8 +52,3 @@ export const agentQuickAction = <ThrowOnError extends boolean = false>(options?:
|
|
|
52
52
|
export const humanTasksList = <ThrowOnError extends boolean = false>(options?: Options<HumanTasksListData, ThrowOnError>) => (options?.client ?? client).get<HumanTasksListResponses, unknown, ThrowOnError>({ url: '/api/cf/human/tasks/list', ...options });
|
|
53
53
|
|
|
54
54
|
export const mcpApiHello = <ThrowOnError extends boolean = false>(options: Options<McpApiHelloData, ThrowOnError>) => (options.client ?? client).get<McpApiHelloResponses, unknown, ThrowOnError>({ url: '/api/cf/mcpapi/hello', ...options });
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* List clawd sessions via WebSocket proxy using Gateway Protocol
|
|
58
|
-
*/
|
|
59
|
-
export const clawdSessionsList = <ThrowOnError extends boolean = false>(options?: Options<ClawdSessionsListData, ThrowOnError>) => (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ url: '/api/cf/clawd/sessions', ...options });
|
package/src/mtmai_api/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export { agentsAgentrun, builderBuild, chatAgentChat, chatAgentExportConfig, chatAgentGetChatConfig, chatAgentGetProviders, chatAgentImportConfig, chatAgentUpdateChatConfig, chatAgentValidateApiKey, createItem, createSession, createSessionWithId, debugGetEventGraph, debugGetSessionTrace, debugGetTraceDict, deleteArtifact, deleteItem, deleteSession, evaluationAddSessionToEvalSet, evaluationCreateEvalSet,
|
|
4
|
-
export { type AddSessionToEvalSetRequest, type AgentDetailsInput, type AgentDetailsOutput, type AgentsAgentrunData, type AgentsAgentrunError, type AgentsAgentrunErrors, type AgentsAgentrunResponses, type ApiKey, type ApiKeyConfig, ApiKeyIn, type AppDetailsInput, type AppDetailsOutput, type AuthConfigGoogleServiceAccountConfig, type AuthConfigHttpBasicAuthConfig, type AuthConfigOauthConfig, type AuthConfigOidcConfig, type AuthCredentialInput, type AuthCredentialOutput, AuthCredentialTypes, AuthType, type AutomaticFunctionCallingConfig, type BaseCriterion, Behavior, type Blob, type BodyBuilderBuild, type BuilderBuildData, type BuilderBuildError, type BuilderBuildErrors, type BuilderBuildResponse, type BuilderBuildResponses, type CacheMetadata, type ChatAgentChatData, type ChatAgentChatError, type ChatAgentChatErrors, type ChatAgentChatResponse, type ChatAgentChatResponses, type ChatAgentExportConfigData, type ChatAgentExportConfigResponses, type ChatAgentGetChatConfigData, type ChatAgentGetChatConfigResponse, type ChatAgentGetChatConfigResponses, type ChatAgentGetProvidersData, type ChatAgentGetProvidersResponses, type ChatAgentImportConfigData, type ChatAgentImportConfigError, type ChatAgentImportConfigErrors, type ChatAgentImportConfigResponses, type ChatAgentUpdateChatConfigData, type ChatAgentUpdateChatConfigError, type ChatAgentUpdateChatConfigErrors, type ChatAgentUpdateChatConfigResponse, type ChatAgentUpdateChatConfigResponses, type ChatAgentValidateApiKeyData, type ChatAgentValidateApiKeyError, type ChatAgentValidateApiKeyErrors, type ChatAgentValidateApiKeyResponses, type ChatConfig, type ChatRequest, type ChatResponse, type CheckSandboxStatusRequest, type CheckSandboxStatusResponse, type ClientOptions, type CodeExecutionResult, type ContentInput, type ContentOutput, type CreateEvalSetRequest, type CreateItemData, type CreateItemError, type CreateItemErrors, type CreateItemResponse, type CreateItemResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionRequest, type CreateSessionResponse, type CreateSessionResponses, type CreateSessionWithIdData, type CreateSessionWithIdError, type CreateSessionWithIdErrors, type CreateSessionWithIdResponse, type CreateSessionWithIdResponses, type DebugGetEventGraphData, type DebugGetEventGraphError, type DebugGetEventGraphErrors, type DebugGetEventGraphResponses, type DebugGetSessionTraceData, type DebugGetSessionTraceError, type DebugGetSessionTraceErrors, type DebugGetSessionTraceResponses, type DebugGetTraceDictData, type DebugGetTraceDictError, type DebugGetTraceDictErrors, type DebugGetTraceDictResponses, type DeleteArtifactData, type DeleteArtifactError, type DeleteArtifactErrors, type DeleteArtifactResponse, type DeleteArtifactResponses, type DeleteItemData, type DeleteItemError, type DeleteItemErrors, type DeleteItemResponses, type DeleteSessionData, type DeleteSessionError, type DeleteSessionErrors, type DeleteSessionResponse, type DeleteSessionResponses, type DynamicRetrievalConfig, DynamicRetrievalConfigMode, type EnterpriseWebSearch, type EvalCaseInput, type EvalCaseOutput, type EvalCaseResult, type EvalMetricInput, type EvalMetricOutput, type EvalMetricResult, type EvalMetricResultDetails, type EvalMetricResultPerInvocation, type EvalResult, type EvalSetInput, type EvalSetOutput, type EvalSetResult, EvalStatus, type EvaluationAddSessionToEvalSetData, type EvaluationAddSessionToEvalSetError, type EvaluationAddSessionToEvalSetErrors, type EvaluationAddSessionToEvalSetResponses, type EvaluationCreateEvalSetData, type EvaluationCreateEvalSetError, type EvaluationCreateEvalSetErrors, type EvaluationCreateEvalSetLegacyData, type EvaluationCreateEvalSetLegacyError, type EvaluationCreateEvalSetLegacyErrors, type EvaluationCreateEvalSetLegacyResponses, type EvaluationCreateEvalSetResponse, type EvaluationCreateEvalSetResponses, type EvaluationDeleteEvalData, type EvaluationDeleteEvalError, type EvaluationDeleteEvalErrors, type EvaluationDeleteEvalResponse, type EvaluationDeleteEvalResponses, type EvaluationGetEvalData, type EvaluationGetEvalError, type EvaluationGetEvalErrors, type EvaluationGetEvalResponse, type EvaluationGetEvalResponses, type EvaluationGetEvalResultData, type EvaluationGetEvalResultError, type EvaluationGetEvalResultErrors, type EvaluationGetEvalResultLegacyData, type EvaluationGetEvalResultLegacyError, type EvaluationGetEvalResultLegacyErrors, type EvaluationGetEvalResultLegacyResponse, type EvaluationGetEvalResultLegacyResponses, type EvaluationGetEvalResultResponse, type EvaluationGetEvalResultResponses, type EvaluationListEvalResultsData, type EvaluationListEvalResultsError, type EvaluationListEvalResultsErrors, type EvaluationListEvalResultsLegacyData, type EvaluationListEvalResultsLegacyError, type EvaluationListEvalResultsLegacyErrors, type EvaluationListEvalResultsLegacyResponse, type EvaluationListEvalResultsLegacyResponses, type EvaluationListEvalResultsResponse, type EvaluationListEvalResultsResponses, type EvaluationListEvalSetsData, type EvaluationListEvalSetsError, type EvaluationListEvalSetsErrors, type EvaluationListEvalSetsLegacyData, type EvaluationListEvalSetsLegacyError, type EvaluationListEvalSetsLegacyErrors, type EvaluationListEvalSetsLegacyResponse, type EvaluationListEvalSetsLegacyResponses, type EvaluationListEvalSetsResponse, type EvaluationListEvalSetsResponses, type EvaluationListEvalsInEvalSetData, type EvaluationListEvalsInEvalSetError, type EvaluationListEvalsInEvalSetErrors, type EvaluationListEvalsInEvalSetResponse, type EvaluationListEvalsInEvalSetResponses, type EvaluationListMetricsInfoData, type EvaluationListMetricsInfoError, type EvaluationListMetricsInfoErrors, type EvaluationListMetricsInfoResponse, type EvaluationListMetricsInfoResponses, type EvaluationRunEvalData, type EvaluationRunEvalError, type EvaluationRunEvalErrors, type EvaluationRunEvalLegacyData, type EvaluationRunEvalLegacyError, type EvaluationRunEvalLegacyErrors, type EvaluationRunEvalLegacyResponse, type EvaluationRunEvalLegacyResponses, type EvaluationRunEvalResponse, type EvaluationRunEvalResponses, type EvaluationUpdateEvalData, type EvaluationUpdateEvalError, type EvaluationUpdateEvalErrors, type EvaluationUpdateEvalResponses, type EventActionsInput, type EventActionsOutput, type EventCompactionInput, type EventCompactionOutput, type EventInput, type EventOutput, type ExecutableCode, FeatureSelectionPreference, type File, type FileData, FileSource, FileState, type FileStatus, FinishReason, type FunctionCall, type FunctionCallingConfig, FunctionCallingConfigMode, type FunctionDeclarationInput, type FunctionDeclarationOutput, type FunctionResponse, FunctionResponseScheduling, type GenerateContentConfigInput, type GenerateContentConfigOutput, type GenerateContentResponseUsageMetadataInput, type GenerateContentResponseUsageMetadataOutput, type GenerationConfigRoutingConfig, type GenerationConfigRoutingConfigAutoRoutingMode, type GenerationConfigRoutingConfigManualRoutingMode, type GetAgentBuilderData, type GetAgentBuilderError, type GetAgentBuilderErrors, type GetAgentBuilderResponse, type GetAgentBuilderResponses, type GetItemData, type GetItemError, type GetItemErrors, type GetItemResponse, type GetItemResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GoogleAdkAuthAuthToolAuthConfigInput, type GoogleAdkAuthAuthToolAuthConfigOutput, type GoogleAdkEvaluationEvalMetricsInterval, type GoogleGenaiTypesAuthConfig, type GoogleGenaiTypesInterval, type GoogleGenaiTypesToolInput, type GoogleGenaiTypesToolOutput, type GoogleMapsInput, type GoogleMapsOutput, type GoogleSearchInput, type GoogleSearchOutput, type GoogleSearchRetrievalInput, type GoogleSearchRetrievalOutput, type GroundingChunkInput, type GroundingChunkOutput, type GroundingChunkRetrievedContextInput, type GroundingChunkRetrievedContextOutput, type GroundingChunkWeb, type GroundingMetadataInput, type GroundingMetadataOutput, type GroundingSupport, HarmBlockMethod, HarmBlockThreshold, HarmCategory, type HttpAuth, type HttpBase, type HttpBearer, type HttpCredentials, type HttpOptions, type HttpRetryOptions, type HttpValidationError, type IntermediateDataInput, type IntermediateDataOutput, type IntervalInput, type InvocationEventInput, type InvocationEventOutput, type InvocationEventsInput, type InvocationEventsOutput, type InvocationInput, type InvocationOutput, type Item, type JudgeModelOptionsInput, type JudgeModelOptionsOutput, Language, type LatLng, type ListAppsData, type ListAppsResponse, type ListAppsResponses, type ListArtifactNamesData, type ListArtifactNamesError, type ListArtifactNamesErrors, type ListArtifactNamesResponse, type ListArtifactNamesResponses, type ListArtifactVersionsData, type ListArtifactVersionsError, type ListArtifactVersionsErrors, type ListArtifactVersionsResponse, type ListArtifactVersionsResponses, type ListEvalResultsResponse, type ListEvalSetsResponse, type ListItemsData, type ListItemsError, type ListItemsErrors, type ListItemsResponse, type ListItemsResponses, type ListMetricsInfoResponse, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type LiveServerSessionResumptionUpdate, type LoadArtifactData, type LoadArtifactError, type LoadArtifactErrors, type LoadArtifactResponse, type LoadArtifactResponses, type LoadArtifactVersionData, type LoadArtifactVersionError, type LoadArtifactVersionErrors, type LoadArtifactVersionResponse, type LoadArtifactVersionResponses, type LogprobsResultCandidate, type LogprobsResultInput, type LogprobsResultOutput, type LogprobsResultTopCandidates, type McpTypesTool, MediaModality, MediaResolution, type MetricInfo, type MetricValueInfo, type ModalityTokenCount, type ModelSelectionConfig, type MultiSpeakerVoiceConfigInput, type MultiSpeakerVoiceConfigOutput, type OAuth2Auth, type OAuth2Input, type OAuth2Output, type OAuthFlowAuthorizationCode, type OAuthFlowClientCredentials, type OAuthFlowImplicit, type OAuthFlowPassword, type OAuthFlows, type OpenIdConnect, type OpenIdConnectWithConfig, Outcome, type PartInput, type PartOutput, type PrebuiltVoiceConfig, type RagChunk, type RagChunkPageSpan, type RagRetrievalConfigFilter, type RagRetrievalConfigHybridSearch, type RagRetrievalConfigInput, type RagRetrievalConfigOutput, type RagRetrievalConfigRanking, type RagRetrievalConfigRankingLlmRanker, type RagRetrievalConfigRankingRankService, type RedirectDevUiAddSlashData, type RedirectDevUiAddSlashResponses, type RedirectRootToDevUiData, type RedirectRootToDevUiResponses, type RetrievalConfig, type RetrievalInput, type RetrievalMetadata, type RetrievalOutput, type Rubric, type RubricContent, type RubricScore, type RunAgentData, type RunAgentError, type RunAgentErrors, type RunAgentRequest, type RunAgentResponse, type RunAgentResponses, type RunAgentSseData, type RunAgentSseError, type RunAgentSseErrors, type RunAgentSseResponses, type RunEvalRequest, type RunEvalResponse, type RunEvalResult, type SafetySetting, type SandboxCheckSandboxStatusData, type SandboxCheckSandboxStatusError, type SandboxCheckSandboxStatusErrors, type SandboxCheckSandboxStatusResponse, type SandboxCheckSandboxStatusResponses, type SandboxStartNapcatSandboxData, type SandboxStartNapcatSandboxError, type SandboxStartNapcatSandboxErrors, type SandboxStartNapcatSandboxResponse, type SandboxStartNapcatSandboxResponses, type SandboxStatusInfo, type SchemaInput, type SchemaOutput, type SearchEntryPoint, type SearchItemsData, type SearchItemsError, type SearchItemsErrors, type SearchItemsResponse, type SearchItemsResponses, SecuritySchemeType, type Segment, type ServiceAccount, type ServiceAccountCredential, type Session, type SessionInput, type SpeakerVoiceConfigInput, type SpeakerVoiceConfigOutput, type SpeechConfigInput, type SpeechConfigOutput, type StartNapcatRequest, type StartNapcatResponse, type ThinkingConfig, type ToolAnnotations, type ToolCodeExecution, type ToolConfigInput, type ToolConfigOutput, type ToolConfirmation, TrafficType, type Transcription, Type, type UpdateItemData, type UpdateItemError, type UpdateItemErrors, type UpdateItemResponse, type UpdateItemResponses, type UrlContext, type ValidationError, type VertexAiSearch, type VertexAiSearchDataStoreSpec, type VertexRagStoreInput, type VertexRagStoreOutput, type VertexRagStoreRagResource, type VideoMetadata, type VoiceConfig } from './types.gen';
|
|
3
|
+
export { agentsAgentrun, builderBuild, chatAgentChat, chatAgentExportConfig, chatAgentGetChatConfig, chatAgentGetProviders, chatAgentImportConfig, chatAgentUpdateChatConfig, chatAgentValidateApiKey, createItem, createSession, createSessionWithId, debugGetEventGraph, debugGetSessionTrace, debugGetTraceDict, deleteArtifact, deleteItem, deleteSession, evaluationAddSessionToEvalSet, evaluationCreateEvalSet, evaluationDeleteEval, evaluationGetEval, evaluationGetEvalResult, evaluationListEvalResults, evaluationListEvalSets, evaluationListEvalsInEvalSet, evaluationListMetricsInfo, evaluationRunEval, evaluationUpdateEval, getAgentBuilder, getItem, getSession, listApps, listArtifactNames, listArtifactVersions, listItems, listSessions, loadArtifact, loadArtifactVersion, type Options, redirectDevUiAddSlash, redirectRootToDevUi, runAgent, runAgentSse, sandboxCheckSandboxStatus, sandboxStartNapcatSandbox, searchItems, updateItem } from './sdk.gen';
|
|
4
|
+
export { type AddSessionToEvalSetRequest, type AgentDetailsInput, type AgentDetailsOutput, type AgentsAgentrunData, type AgentsAgentrunError, type AgentsAgentrunErrors, type AgentsAgentrunResponses, type ApiKey, type ApiKeyConfig, ApiKeyIn, type AppDetailsInput, type AppDetailsOutput, type AuthConfigGoogleServiceAccountConfig, type AuthConfigHttpBasicAuthConfig, type AuthConfigOauthConfig, type AuthConfigOidcConfig, type AuthCredentialInput, type AuthCredentialOutput, AuthCredentialTypes, AuthType, type AutomaticFunctionCallingConfig, type BaseCriterion, Behavior, type Blob, type BodyBuilderBuild, type BuilderBuildData, type BuilderBuildError, type BuilderBuildErrors, type BuilderBuildResponse, type BuilderBuildResponses, type CacheMetadata, type ChatAgentChatData, type ChatAgentChatError, type ChatAgentChatErrors, type ChatAgentChatResponse, type ChatAgentChatResponses, type ChatAgentExportConfigData, type ChatAgentExportConfigResponses, type ChatAgentGetChatConfigData, type ChatAgentGetChatConfigResponse, type ChatAgentGetChatConfigResponses, type ChatAgentGetProvidersData, type ChatAgentGetProvidersResponses, type ChatAgentImportConfigData, type ChatAgentImportConfigError, type ChatAgentImportConfigErrors, type ChatAgentImportConfigResponses, type ChatAgentUpdateChatConfigData, type ChatAgentUpdateChatConfigError, type ChatAgentUpdateChatConfigErrors, type ChatAgentUpdateChatConfigResponse, type ChatAgentUpdateChatConfigResponses, type ChatAgentValidateApiKeyData, type ChatAgentValidateApiKeyError, type ChatAgentValidateApiKeyErrors, type ChatAgentValidateApiKeyResponses, type ChatConfig, type ChatRequest, type ChatResponse, type CheckSandboxStatusRequest, type CheckSandboxStatusResponse, type ClientOptions, type CodeExecutionResult, type ContentInput, type ContentOutput, type CreateEvalSetRequest, type CreateItemData, type CreateItemError, type CreateItemErrors, type CreateItemResponse, type CreateItemResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionRequest, type CreateSessionResponse, type CreateSessionResponses, type CreateSessionWithIdData, type CreateSessionWithIdError, type CreateSessionWithIdErrors, type CreateSessionWithIdResponse, type CreateSessionWithIdResponses, type DebugGetEventGraphData, type DebugGetEventGraphError, type DebugGetEventGraphErrors, type DebugGetEventGraphResponses, type DebugGetSessionTraceData, type DebugGetSessionTraceError, type DebugGetSessionTraceErrors, type DebugGetSessionTraceResponses, type DebugGetTraceDictData, type DebugGetTraceDictError, type DebugGetTraceDictErrors, type DebugGetTraceDictResponses, type DeleteArtifactData, type DeleteArtifactError, type DeleteArtifactErrors, type DeleteArtifactResponse, type DeleteArtifactResponses, type DeleteItemData, type DeleteItemError, type DeleteItemErrors, type DeleteItemResponses, type DeleteSessionData, type DeleteSessionError, type DeleteSessionErrors, type DeleteSessionResponse, type DeleteSessionResponses, type DynamicRetrievalConfig, DynamicRetrievalConfigMode, type EnterpriseWebSearch, type EvalCaseInput, type EvalCaseOutput, type EvalCaseResult, type EvalMetricInput, type EvalMetricOutput, type EvalMetricResult, type EvalMetricResultDetails, type EvalMetricResultPerInvocation, type EvalResult, type EvalSetInput, type EvalSetOutput, type EvalSetResult, EvalStatus, type EvaluationAddSessionToEvalSetData, type EvaluationAddSessionToEvalSetError, type EvaluationAddSessionToEvalSetErrors, type EvaluationAddSessionToEvalSetResponses, type EvaluationCreateEvalSetData, type EvaluationCreateEvalSetError, type EvaluationCreateEvalSetErrors, type EvaluationCreateEvalSetResponse, type EvaluationCreateEvalSetResponses, type EvaluationDeleteEvalData, type EvaluationDeleteEvalError, type EvaluationDeleteEvalErrors, type EvaluationDeleteEvalResponse, type EvaluationDeleteEvalResponses, type EvaluationGetEvalData, type EvaluationGetEvalError, type EvaluationGetEvalErrors, type EvaluationGetEvalResponse, type EvaluationGetEvalResponses, type EvaluationGetEvalResultData, type EvaluationGetEvalResultError, type EvaluationGetEvalResultErrors, type EvaluationGetEvalResultResponse, type EvaluationGetEvalResultResponses, type EvaluationListEvalResultsData, type EvaluationListEvalResultsError, type EvaluationListEvalResultsErrors, type EvaluationListEvalResultsResponse, type EvaluationListEvalResultsResponses, type EvaluationListEvalSetsData, type EvaluationListEvalSetsError, type EvaluationListEvalSetsErrors, type EvaluationListEvalSetsResponse, type EvaluationListEvalSetsResponses, type EvaluationListEvalsInEvalSetData, type EvaluationListEvalsInEvalSetError, type EvaluationListEvalsInEvalSetErrors, type EvaluationListEvalsInEvalSetResponse, type EvaluationListEvalsInEvalSetResponses, type EvaluationListMetricsInfoData, type EvaluationListMetricsInfoError, type EvaluationListMetricsInfoErrors, type EvaluationListMetricsInfoResponse, type EvaluationListMetricsInfoResponses, type EvaluationRunEvalData, type EvaluationRunEvalError, type EvaluationRunEvalErrors, type EvaluationRunEvalResponse, type EvaluationRunEvalResponses, type EvaluationUpdateEvalData, type EvaluationUpdateEvalError, type EvaluationUpdateEvalErrors, type EvaluationUpdateEvalResponses, type EventActionsInput, type EventActionsOutput, type EventCompactionInput, type EventCompactionOutput, type EventInput, type EventOutput, type ExecutableCode, FeatureSelectionPreference, type File, type FileData, FileSource, FileState, type FileStatus, FinishReason, type FunctionCall, type FunctionCallingConfig, FunctionCallingConfigMode, type FunctionDeclarationInput, type FunctionDeclarationOutput, type FunctionResponse, FunctionResponseScheduling, type GenerateContentConfigInput, type GenerateContentConfigOutput, type GenerateContentResponseUsageMetadataInput, type GenerateContentResponseUsageMetadataOutput, type GenerationConfigRoutingConfig, type GenerationConfigRoutingConfigAutoRoutingMode, type GenerationConfigRoutingConfigManualRoutingMode, type GetAgentBuilderData, type GetAgentBuilderError, type GetAgentBuilderErrors, type GetAgentBuilderResponse, type GetAgentBuilderResponses, type GetItemData, type GetItemError, type GetItemErrors, type GetItemResponse, type GetItemResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GoogleAdkAuthAuthToolAuthConfigInput, type GoogleAdkAuthAuthToolAuthConfigOutput, type GoogleAdkEvaluationEvalMetricsInterval, type GoogleGenaiTypesAuthConfig, type GoogleGenaiTypesInterval, type GoogleGenaiTypesToolInput, type GoogleGenaiTypesToolOutput, type GoogleMapsInput, type GoogleMapsOutput, type GoogleSearchInput, type GoogleSearchOutput, type GoogleSearchRetrievalInput, type GoogleSearchRetrievalOutput, type GroundingChunkInput, type GroundingChunkOutput, type GroundingChunkRetrievedContextInput, type GroundingChunkRetrievedContextOutput, type GroundingChunkWeb, type GroundingMetadataInput, type GroundingMetadataOutput, type GroundingSupport, HarmBlockMethod, HarmBlockThreshold, HarmCategory, type HttpAuth, type HttpBase, type HttpBearer, type HttpCredentials, type HttpOptions, type HttpRetryOptions, type HttpValidationError, type IntermediateDataInput, type IntermediateDataOutput, type IntervalInput, type InvocationEventInput, type InvocationEventOutput, type InvocationEventsInput, type InvocationEventsOutput, type InvocationInput, type InvocationOutput, type Item, type JudgeModelOptionsInput, type JudgeModelOptionsOutput, Language, type LatLng, type ListAppsData, type ListAppsResponse, type ListAppsResponses, type ListArtifactNamesData, type ListArtifactNamesError, type ListArtifactNamesErrors, type ListArtifactNamesResponse, type ListArtifactNamesResponses, type ListArtifactVersionsData, type ListArtifactVersionsError, type ListArtifactVersionsErrors, type ListArtifactVersionsResponse, type ListArtifactVersionsResponses, type ListEvalResultsResponse, type ListEvalSetsResponse, type ListItemsData, type ListItemsError, type ListItemsErrors, type ListItemsResponse, type ListItemsResponses, type ListMetricsInfoResponse, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type LiveServerSessionResumptionUpdate, type LoadArtifactData, type LoadArtifactError, type LoadArtifactErrors, type LoadArtifactResponse, type LoadArtifactResponses, type LoadArtifactVersionData, type LoadArtifactVersionError, type LoadArtifactVersionErrors, type LoadArtifactVersionResponse, type LoadArtifactVersionResponses, type LogprobsResultCandidate, type LogprobsResultInput, type LogprobsResultOutput, type LogprobsResultTopCandidates, type McpTypesTool, MediaModality, MediaResolution, type MetricInfo, type MetricValueInfo, type ModalityTokenCount, type ModelSelectionConfig, type MultiSpeakerVoiceConfigInput, type MultiSpeakerVoiceConfigOutput, type OAuth2Auth, type OAuth2Input, type OAuth2Output, type OAuthFlowAuthorizationCode, type OAuthFlowClientCredentials, type OAuthFlowImplicit, type OAuthFlowPassword, type OAuthFlows, type OpenIdConnect, type OpenIdConnectWithConfig, Outcome, type PartInput, type PartOutput, type PrebuiltVoiceConfig, type RagChunk, type RagChunkPageSpan, type RagRetrievalConfigFilter, type RagRetrievalConfigHybridSearch, type RagRetrievalConfigInput, type RagRetrievalConfigOutput, type RagRetrievalConfigRanking, type RagRetrievalConfigRankingLlmRanker, type RagRetrievalConfigRankingRankService, type RedirectDevUiAddSlashData, type RedirectDevUiAddSlashResponses, type RedirectRootToDevUiData, type RedirectRootToDevUiResponses, type RetrievalConfig, type RetrievalInput, type RetrievalMetadata, type RetrievalOutput, type Rubric, type RubricContent, type RubricScore, type RunAgentData, type RunAgentError, type RunAgentErrors, type RunAgentRequest, type RunAgentResponse, type RunAgentResponses, type RunAgentSseData, type RunAgentSseError, type RunAgentSseErrors, type RunAgentSseResponses, type RunEvalRequest, type RunEvalResponse, type RunEvalResult, type SafetySetting, type SandboxCheckSandboxStatusData, type SandboxCheckSandboxStatusError, type SandboxCheckSandboxStatusErrors, type SandboxCheckSandboxStatusResponse, type SandboxCheckSandboxStatusResponses, type SandboxStartNapcatSandboxData, type SandboxStartNapcatSandboxError, type SandboxStartNapcatSandboxErrors, type SandboxStartNapcatSandboxResponse, type SandboxStartNapcatSandboxResponses, type SandboxStatusInfo, type SchemaInput, type SchemaOutput, type SearchEntryPoint, type SearchItemsData, type SearchItemsError, type SearchItemsErrors, type SearchItemsResponse, type SearchItemsResponses, SecuritySchemeType, type Segment, type ServiceAccount, type ServiceAccountCredential, type Session, type SessionInput, type SpeakerVoiceConfigInput, type SpeakerVoiceConfigOutput, type SpeechConfigInput, type SpeechConfigOutput, type StartNapcatRequest, type StartNapcatResponse, type ThinkingConfig, type ToolAnnotations, type ToolCodeExecution, type ToolConfigInput, type ToolConfigOutput, type ToolConfirmation, TrafficType, type Transcription, Type, type UpdateItemData, type UpdateItemError, type UpdateItemErrors, type UpdateItemResponse, type UpdateItemResponses, type UrlContext, type ValidationError, type VertexAiSearch, type VertexAiSearchDataStoreSpec, type VertexRagStoreInput, type VertexRagStoreOutput, type VertexRagStoreRagResource, type VideoMetadata, type VoiceConfig } from './types.gen';
|
|
@@ -11,15 +11,10 @@ export const GATEWAY_CLIENT_IDS = {
|
|
|
11
11
|
TEST: "test",
|
|
12
12
|
FINGERPRINT: "fingerprint",
|
|
13
13
|
PROBE: "openclaw-probe",
|
|
14
|
-
CLAWDBOT_CONTROL_UI: "clawdbot-control-ui",
|
|
15
14
|
} as const;
|
|
16
15
|
|
|
17
16
|
export type GatewayClientId = (typeof GATEWAY_CLIENT_IDS)[keyof typeof GATEWAY_CLIENT_IDS];
|
|
18
17
|
|
|
19
|
-
// Back-compat naming (internal): these values are IDs, not display names.
|
|
20
|
-
export const GATEWAY_CLIENT_NAMES = GATEWAY_CLIENT_IDS;
|
|
21
|
-
export type GatewayClientName = GatewayClientId;
|
|
22
|
-
|
|
23
18
|
export const GATEWAY_CLIENT_MODES = {
|
|
24
19
|
WEBCHAT: "webchat",
|
|
25
20
|
CLI: "cli",
|
|
@@ -52,10 +47,6 @@ export function normalizeGatewayClientId(raw?: string | null): GatewayClientId |
|
|
|
52
47
|
return GATEWAY_CLIENT_ID_SET.has(normalized as GatewayClientId) ? (normalized as GatewayClientId) : undefined;
|
|
53
48
|
}
|
|
54
49
|
|
|
55
|
-
export function normalizeGatewayClientName(raw?: string | null): GatewayClientName | undefined {
|
|
56
|
-
return normalizeGatewayClientId(raw);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
50
|
export function normalizeGatewayClientMode(raw?: string | null): GatewayClientMode | undefined {
|
|
60
51
|
const normalized = raw?.trim().toLowerCase();
|
|
61
52
|
if (!normalized) return undefined;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
export interface DeviceAuthPayloadParams {
|
|
2
|
-
version?: string;
|
|
3
|
-
nonce?: string;
|
|
4
|
-
scopes: string[];
|
|
5
|
-
token?: string;
|
|
6
2
|
deviceId: string;
|
|
7
3
|
clientId: string;
|
|
8
4
|
clientMode: string;
|
|
9
5
|
role: string;
|
|
6
|
+
scopes: string[];
|
|
10
7
|
signedAtMs: number;
|
|
8
|
+
token?: string | null;
|
|
9
|
+
nonce: string;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export function buildDeviceAuthPayload(params: DeviceAuthPayloadParams) {
|
|
14
|
-
const version = params.version ?? (params.nonce ? "v2" : "v1");
|
|
15
13
|
const scopes = params.scopes.join(",");
|
|
16
14
|
const token = params.token ?? "";
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
return [
|
|
16
|
+
"v2",
|
|
19
17
|
params.deviceId,
|
|
20
18
|
params.clientId,
|
|
21
19
|
params.clientMode,
|
|
@@ -23,9 +21,6 @@ export function buildDeviceAuthPayload(params: DeviceAuthPayloadParams) {
|
|
|
23
21
|
scopes,
|
|
24
22
|
String(params.signedAtMs),
|
|
25
23
|
token,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
base.push(params.nonce ?? "");
|
|
29
|
-
}
|
|
30
|
-
return base.join("|");
|
|
24
|
+
params.nonce,
|
|
25
|
+
].join("|");
|
|
31
26
|
}
|
|
@@ -11,7 +11,7 @@ type DeviceAuthStore = {
|
|
|
11
11
|
tokens: Record<string, DeviceAuthEntry>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
const STORAGE_KEY = "
|
|
14
|
+
const STORAGE_KEY = "openclaw.device.auth.v1";
|
|
15
15
|
|
|
16
16
|
function normalizeRole(role: string): string {
|
|
17
17
|
return role.trim();
|
|
@@ -90,7 +90,10 @@ export function clearDeviceAuthToken(params: { deviceId: string; role: string })
|
|
|
90
90
|
if (!store || store.deviceId !== params.deviceId) return;
|
|
91
91
|
const role = normalizeRole(params.role);
|
|
92
92
|
if (!store.tokens[role]) return;
|
|
93
|
-
const next = {
|
|
93
|
+
const next = {
|
|
94
|
+
...store,
|
|
95
|
+
tokens: { ...store.tokens },
|
|
96
|
+
};
|
|
94
97
|
delete next.tokens[role];
|
|
95
98
|
writeStore(next);
|
|
96
99
|
}
|
|
@@ -14,7 +14,7 @@ export type DeviceIdentity = {
|
|
|
14
14
|
privateKey: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const STORAGE_KEY = "
|
|
17
|
+
const STORAGE_KEY = "openclaw-device-identity-v1";
|
|
18
18
|
|
|
19
19
|
function base64UrlEncode(bytes: Uint8Array): string {
|
|
20
20
|
let binary = "";
|
|
@@ -38,7 +38,7 @@ function bytesToHex(bytes: Uint8Array): string {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
async function fingerprintPublicKey(publicKey: Uint8Array): Promise<string> {
|
|
41
|
-
const hash = await crypto.subtle.digest("SHA-256", publicKey
|
|
41
|
+
const hash = await crypto.subtle.digest("SHA-256", publicKey.slice().buffer);
|
|
42
42
|
return bytesToHex(new Uint8Array(hash));
|
|
43
43
|
}
|
|
44
44
|
|