dsh-account-authorization 0.1.0

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.
@@ -0,0 +1,362 @@
1
+ import { z } from "zod";
2
+ //#region ../lib/types/generated/remote.js
3
+ const dsh_account_authorization_accountAuthorization_cancel_parameter_0$schema = z.object({
4
+ "requestId": z.string().readonly(),
5
+ "attemptId": z.string().readonly()
6
+ });
7
+ const dsh_account_authorization_accountAuthorization_cancel_result$schema = z.object({
8
+ "id": z.string().readonly(),
9
+ "connectionId": z.string().readonly(),
10
+ "revision": z.number().readonly(),
11
+ "notice": z.union([z.undefined(), z.object({
12
+ "kind": z.union([
13
+ z.literal("browser"),
14
+ z.literal("device"),
15
+ z.literal("waiting")
16
+ ]).readonly(),
17
+ "url": z.union([z.undefined(), z.string()]).readonly().optional(),
18
+ "code": z.union([z.undefined(), z.string()]).readonly().optional()
19
+ })]).readonly().optional(),
20
+ "prompt": z.union([z.undefined(), z.object({
21
+ "id": z.string().readonly(),
22
+ "choices": z.array(z.object({
23
+ "id": z.string().readonly(),
24
+ "label": z.string().readonly(),
25
+ "kind": z.union([
26
+ z.literal("browser"),
27
+ z.literal("device"),
28
+ z.literal("other")
29
+ ]).readonly()
30
+ })).readonly()
31
+ })]).readonly().optional(),
32
+ "terminal": z.union([
33
+ z.undefined(),
34
+ z.object({ "status": z.union([z.literal("authorized"), z.literal("cancelled")]).readonly() }),
35
+ z.object({
36
+ "status": z.literal("failed").readonly(),
37
+ "code": z.union([
38
+ z.literal("unavailable"),
39
+ z.literal("unknown-method"),
40
+ z.literal("in-flight"),
41
+ z.literal("input-required"),
42
+ z.literal("not-committed"),
43
+ z.literal("flow-failed")
44
+ ]).readonly()
45
+ })
46
+ ]).readonly().optional()
47
+ });
48
+ const dsh_account_authorization_accountAuthorization_choose_parameter_0$schema = z.object({
49
+ "requestId": z.string().readonly(),
50
+ "attemptId": z.string().readonly(),
51
+ "promptId": z.string().readonly(),
52
+ "choice": z.string().readonly()
53
+ });
54
+ const dsh_account_authorization_accountAuthorization_choose_result$schema = z.object({
55
+ "id": z.string().readonly(),
56
+ "connectionId": z.string().readonly(),
57
+ "revision": z.number().readonly(),
58
+ "notice": z.union([z.undefined(), z.object({
59
+ "kind": z.union([
60
+ z.literal("browser"),
61
+ z.literal("device"),
62
+ z.literal("waiting")
63
+ ]).readonly(),
64
+ "url": z.union([z.undefined(), z.string()]).readonly().optional(),
65
+ "code": z.union([z.undefined(), z.string()]).readonly().optional()
66
+ })]).readonly().optional(),
67
+ "prompt": z.union([z.undefined(), z.object({
68
+ "id": z.string().readonly(),
69
+ "choices": z.array(z.object({
70
+ "id": z.string().readonly(),
71
+ "label": z.string().readonly(),
72
+ "kind": z.union([
73
+ z.literal("browser"),
74
+ z.literal("device"),
75
+ z.literal("other")
76
+ ]).readonly()
77
+ })).readonly()
78
+ })]).readonly().optional(),
79
+ "terminal": z.union([
80
+ z.undefined(),
81
+ z.object({ "status": z.union([z.literal("authorized"), z.literal("cancelled")]).readonly() }),
82
+ z.object({
83
+ "status": z.literal("failed").readonly(),
84
+ "code": z.union([
85
+ z.literal("unavailable"),
86
+ z.literal("unknown-method"),
87
+ z.literal("in-flight"),
88
+ z.literal("input-required"),
89
+ z.literal("not-committed"),
90
+ z.literal("flow-failed")
91
+ ]).readonly()
92
+ })
93
+ ]).readonly().optional()
94
+ });
95
+ const dsh_account_authorization_accountAuthorization_connections_result$schema = z.object({ "connections": z.array(z.object({
96
+ "id": z.string().readonly(),
97
+ "label": z.string().readonly(),
98
+ "configured": z.boolean().readonly(),
99
+ "inFlight": z.boolean().readonly(),
100
+ "methods": z.array(z.object({
101
+ "id": z.string().readonly(),
102
+ "label": z.string().readonly(),
103
+ "kind": z.union([
104
+ z.literal("browser"),
105
+ z.literal("device"),
106
+ z.literal("other")
107
+ ]).readonly()
108
+ })).readonly()
109
+ })).readonly() });
110
+ const dsh_account_authorization_accountAuthorization_disconnect_parameter_0$schema = z.object({
111
+ "requestId": z.string().readonly(),
112
+ "connectionId": z.string().readonly()
113
+ });
114
+ const dsh_account_authorization_accountAuthorization_disconnect_result$schema = z.object({ "disconnected": z.literal(true) });
115
+ const dsh_account_authorization_accountAuthorization_observe_parameter_0$schema = z.string();
116
+ const dsh_account_authorization_accountAuthorization_observe_result$schema = z.object({
117
+ "id": z.string().readonly(),
118
+ "connectionId": z.string().readonly(),
119
+ "revision": z.number().readonly(),
120
+ "notice": z.union([z.undefined(), z.object({
121
+ "kind": z.union([
122
+ z.literal("browser"),
123
+ z.literal("device"),
124
+ z.literal("waiting")
125
+ ]).readonly(),
126
+ "url": z.union([z.undefined(), z.string()]).readonly().optional(),
127
+ "code": z.union([z.undefined(), z.string()]).readonly().optional()
128
+ })]).readonly().optional(),
129
+ "prompt": z.union([z.undefined(), z.object({
130
+ "id": z.string().readonly(),
131
+ "choices": z.array(z.object({
132
+ "id": z.string().readonly(),
133
+ "label": z.string().readonly(),
134
+ "kind": z.union([
135
+ z.literal("browser"),
136
+ z.literal("device"),
137
+ z.literal("other")
138
+ ]).readonly()
139
+ })).readonly()
140
+ })]).readonly().optional(),
141
+ "terminal": z.union([
142
+ z.undefined(),
143
+ z.object({ "status": z.union([z.literal("authorized"), z.literal("cancelled")]).readonly() }),
144
+ z.object({
145
+ "status": z.literal("failed").readonly(),
146
+ "code": z.union([
147
+ z.literal("unavailable"),
148
+ z.literal("unknown-method"),
149
+ z.literal("in-flight"),
150
+ z.literal("input-required"),
151
+ z.literal("not-committed"),
152
+ z.literal("flow-failed")
153
+ ]).readonly()
154
+ })
155
+ ]).readonly().optional()
156
+ });
157
+ const dsh_account_authorization_accountAuthorization_start_parameter_0$schema = z.object({
158
+ "requestId": z.string().readonly(),
159
+ "connectionId": z.string().readonly(),
160
+ "method": z.string().readonly()
161
+ });
162
+ const dsh_account_authorization_accountAuthorization_start_result$schema = z.object({
163
+ "id": z.string().readonly(),
164
+ "connectionId": z.string().readonly(),
165
+ "revision": z.number().readonly(),
166
+ "notice": z.union([z.undefined(), z.object({
167
+ "kind": z.union([
168
+ z.literal("browser"),
169
+ z.literal("device"),
170
+ z.literal("waiting")
171
+ ]).readonly(),
172
+ "url": z.union([z.undefined(), z.string()]).readonly().optional(),
173
+ "code": z.union([z.undefined(), z.string()]).readonly().optional()
174
+ })]).readonly().optional(),
175
+ "prompt": z.union([z.undefined(), z.object({
176
+ "id": z.string().readonly(),
177
+ "choices": z.array(z.object({
178
+ "id": z.string().readonly(),
179
+ "label": z.string().readonly(),
180
+ "kind": z.union([
181
+ z.literal("browser"),
182
+ z.literal("device"),
183
+ z.literal("other")
184
+ ]).readonly()
185
+ })).readonly()
186
+ })]).readonly().optional(),
187
+ "terminal": z.union([
188
+ z.undefined(),
189
+ z.object({ "status": z.union([z.literal("authorized"), z.literal("cancelled")]).readonly() }),
190
+ z.object({
191
+ "status": z.literal("failed").readonly(),
192
+ "code": z.union([
193
+ z.literal("unavailable"),
194
+ z.literal("unknown-method"),
195
+ z.literal("in-flight"),
196
+ z.literal("input-required"),
197
+ z.literal("not-committed"),
198
+ z.literal("flow-failed")
199
+ ]).readonly()
200
+ })
201
+ ]).readonly().optional()
202
+ });
203
+ const TYPERT_REMOTE = {
204
+ package: "dsh-account-authorization",
205
+ descriptors: [
206
+ {
207
+ id: "dsh-account-authorization#accountAuthorization/cancel",
208
+ service: "accountAuthorization",
209
+ namespace: "accountAuthorization",
210
+ method: "cancel",
211
+ invocation: { kind: "direct" },
212
+ parameters: [{
213
+ name: "request",
214
+ wire: "request",
215
+ source: "json",
216
+ codec: {
217
+ mode: "strict",
218
+ typeSymbol: "dsh-account-authorization/types#CancelAuthorizationRequest",
219
+ schema: dsh_account_authorization_accountAuthorization_cancel_parameter_0$schema
220
+ }
221
+ }],
222
+ result: {
223
+ mode: "strict",
224
+ typeSymbol: "dsh-account-authorization/types#AuthorizationAttemptView",
225
+ schema: dsh_account_authorization_accountAuthorization_cancel_result$schema
226
+ },
227
+ sourceLocation: {
228
+ "file": "packages/account-authorization/src/host/index.ts",
229
+ "line": 377,
230
+ "column": 3
231
+ }
232
+ },
233
+ {
234
+ id: "dsh-account-authorization#accountAuthorization/choose",
235
+ service: "accountAuthorization",
236
+ namespace: "accountAuthorization",
237
+ method: "choose",
238
+ invocation: { kind: "direct" },
239
+ parameters: [{
240
+ name: "request",
241
+ wire: "request",
242
+ source: "json",
243
+ codec: {
244
+ mode: "strict",
245
+ typeSymbol: "dsh-account-authorization/types#ChooseAuthorizationRequest",
246
+ schema: dsh_account_authorization_accountAuthorization_choose_parameter_0$schema
247
+ }
248
+ }],
249
+ result: {
250
+ mode: "strict",
251
+ typeSymbol: "dsh-account-authorization/types#AuthorizationAttemptView",
252
+ schema: dsh_account_authorization_accountAuthorization_choose_result$schema
253
+ },
254
+ sourceLocation: {
255
+ "file": "packages/account-authorization/src/host/index.ts",
256
+ "line": 359,
257
+ "column": 3
258
+ }
259
+ },
260
+ {
261
+ id: "dsh-account-authorization#accountAuthorization/connections",
262
+ service: "accountAuthorization",
263
+ namespace: "accountAuthorization",
264
+ method: "connections",
265
+ invocation: { kind: "direct" },
266
+ parameters: [],
267
+ result: {
268
+ mode: "strict",
269
+ typeSymbol: "dsh-account-authorization/types#AccountConnectionsView",
270
+ schema: dsh_account_authorization_accountAuthorization_connections_result$schema
271
+ },
272
+ sourceLocation: {
273
+ "file": "packages/account-authorization/src/host/index.ts",
274
+ "line": 210,
275
+ "column": 9
276
+ }
277
+ },
278
+ {
279
+ id: "dsh-account-authorization#accountAuthorization/disconnect",
280
+ service: "accountAuthorization",
281
+ namespace: "accountAuthorization",
282
+ method: "disconnect",
283
+ invocation: { kind: "direct" },
284
+ parameters: [{
285
+ name: "request",
286
+ wire: "request",
287
+ source: "json",
288
+ codec: {
289
+ mode: "strict",
290
+ typeSymbol: "dsh-account-authorization/types#DisconnectAccountRequest",
291
+ schema: dsh_account_authorization_accountAuthorization_disconnect_parameter_0$schema
292
+ }
293
+ }],
294
+ result: {
295
+ mode: "strict",
296
+ typeSymbol: "dsh-account-authorization#accountAuthorization/disconnect:result",
297
+ schema: dsh_account_authorization_accountAuthorization_disconnect_result$schema
298
+ },
299
+ sourceLocation: {
300
+ "file": "packages/account-authorization/src/host/index.ts",
301
+ "line": 392,
302
+ "column": 9
303
+ }
304
+ },
305
+ {
306
+ id: "dsh-account-authorization#accountAuthorization/observe",
307
+ service: "accountAuthorization",
308
+ namespace: "accountAuthorization",
309
+ method: "observe",
310
+ invocation: { kind: "direct" },
311
+ parameters: [{
312
+ name: "attemptId",
313
+ wire: "attemptId",
314
+ source: "json",
315
+ codec: {
316
+ mode: "strict",
317
+ typeSymbol: "dsh-account-authorization#accountAuthorization/observe:attemptId",
318
+ schema: dsh_account_authorization_accountAuthorization_observe_parameter_0$schema
319
+ }
320
+ }],
321
+ result: {
322
+ mode: "strict",
323
+ typeSymbol: "dsh-account-authorization/types#AuthorizationAttemptView",
324
+ schema: dsh_account_authorization_accountAuthorization_observe_result$schema
325
+ },
326
+ sourceLocation: {
327
+ "file": "packages/account-authorization/src/host/index.ts",
328
+ "line": 352,
329
+ "column": 3
330
+ }
331
+ },
332
+ {
333
+ id: "dsh-account-authorization#accountAuthorization/start",
334
+ service: "accountAuthorization",
335
+ namespace: "accountAuthorization",
336
+ method: "start",
337
+ invocation: { kind: "direct" },
338
+ parameters: [{
339
+ name: "request",
340
+ wire: "request",
341
+ source: "json",
342
+ codec: {
343
+ mode: "strict",
344
+ typeSymbol: "dsh-account-authorization/types#StartAuthorizationRequest",
345
+ schema: dsh_account_authorization_accountAuthorization_start_parameter_0$schema
346
+ }
347
+ }],
348
+ result: {
349
+ mode: "strict",
350
+ typeSymbol: "dsh-account-authorization/types#AuthorizationAttemptView",
351
+ schema: dsh_account_authorization_accountAuthorization_start_result$schema
352
+ },
353
+ sourceLocation: {
354
+ "file": "packages/account-authorization/src/host/index.ts",
355
+ "line": 231,
356
+ "column": 3
357
+ }
358
+ }
359
+ ]
360
+ };
361
+ //#endregion
362
+ export { TYPERT_REMOTE, TYPERT_REMOTE as default };
@@ -0,0 +1,18 @@
1
+ import AuthorizationService, { type AuthorizationEntry, type AuthorizationFlow } from '@deepseek-ai/dsh-authorization';
2
+ import type { CredentialKey } from '@deepseek-ai/dsh-credentials';
3
+ /**
4
+ * DSH Desktop 2.0.3 compatibility service.
5
+ *
6
+ * Its bundled authorization service accepts flow metadata but drops it from
7
+ * list()/describe(). Preserve that opaque metadata while leaving flow,
8
+ * credential, and attempt ownership with the Harness authorization service.
9
+ */
10
+ export declare class TargetPreservingAuthorizationService extends AuthorizationService {
11
+ private readonly targets;
12
+ registerFlow(flow: AuthorizationFlow): () => void;
13
+ list(): readonly AuthorizationEntry[];
14
+ describe(key: CredentialKey): AuthorizationEntry | undefined;
15
+ private projectTarget;
16
+ }
17
+ export default TargetPreservingAuthorizationService;
18
+ //# sourceMappingURL=authorization-compat.d.ts.map
@@ -0,0 +1,237 @@
1
+ import { z } from 'zod';
2
+ export declare const TYPERT: {
3
+ package: string;
4
+ face: string;
5
+ schemas: never[];
6
+ invocations: ({
7
+ id: string;
8
+ service: string;
9
+ namespace: string;
10
+ method: string;
11
+ invocation: {
12
+ kind: string;
13
+ };
14
+ parameters: {
15
+ name: string;
16
+ wire: string;
17
+ source: string;
18
+ codec: {
19
+ mode: string;
20
+ typeSymbol: string;
21
+ schema: z.ZodObject<{
22
+ requestId: z.ZodReadonly<z.ZodString>;
23
+ attemptId: z.ZodReadonly<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ };
26
+ }[];
27
+ result: {
28
+ mode: string;
29
+ typeSymbol: string;
30
+ schema: z.ZodObject<{
31
+ id: z.ZodReadonly<z.ZodString>;
32
+ connectionId: z.ZodReadonly<z.ZodString>;
33
+ revision: z.ZodReadonly<z.ZodNumber>;
34
+ notice: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
35
+ kind: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"browser">, z.ZodLiteral<"device">, z.ZodLiteral<"waiting">]>>;
36
+ url: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodString]>>>;
37
+ code: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodString]>>>;
38
+ }, z.core.$strip>]>>>;
39
+ prompt: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
40
+ id: z.ZodReadonly<z.ZodString>;
41
+ choices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
42
+ id: z.ZodReadonly<z.ZodString>;
43
+ label: z.ZodReadonly<z.ZodString>;
44
+ kind: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"browser">, z.ZodLiteral<"device">, z.ZodLiteral<"other">]>>;
45
+ }, z.core.$strip>>>;
46
+ }, z.core.$strip>]>>>;
47
+ terminal: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
48
+ status: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"authorized">, z.ZodLiteral<"cancelled">]>>;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ status: z.ZodReadonly<z.ZodLiteral<"failed">>;
51
+ code: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"unavailable">, z.ZodLiteral<"unknown-method">, z.ZodLiteral<"in-flight">, z.ZodLiteral<"input-required">, z.ZodLiteral<"not-committed">, z.ZodLiteral<"flow-failed">]>>;
52
+ }, z.core.$strip>]>>>;
53
+ }, z.core.$strip>;
54
+ };
55
+ sourceLocation: {
56
+ file: string;
57
+ line: number;
58
+ column: number;
59
+ };
60
+ } | {
61
+ id: string;
62
+ service: string;
63
+ namespace: string;
64
+ method: string;
65
+ invocation: {
66
+ kind: string;
67
+ };
68
+ parameters: never[];
69
+ result: {
70
+ mode: string;
71
+ typeSymbol: string;
72
+ schema: z.ZodObject<{
73
+ connections: z.ZodReadonly<z.ZodArray<z.ZodObject<{
74
+ id: z.ZodReadonly<z.ZodString>;
75
+ label: z.ZodReadonly<z.ZodString>;
76
+ configured: z.ZodReadonly<z.ZodBoolean>;
77
+ inFlight: z.ZodReadonly<z.ZodBoolean>;
78
+ methods: z.ZodReadonly<z.ZodArray<z.ZodObject<{
79
+ id: z.ZodReadonly<z.ZodString>;
80
+ label: z.ZodReadonly<z.ZodString>;
81
+ kind: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"browser">, z.ZodLiteral<"device">, z.ZodLiteral<"other">]>>;
82
+ }, z.core.$strip>>>;
83
+ }, z.core.$strip>>>;
84
+ }, z.core.$strip>;
85
+ };
86
+ sourceLocation: {
87
+ file: string;
88
+ line: number;
89
+ column: number;
90
+ };
91
+ } | {
92
+ id: string;
93
+ service: string;
94
+ namespace: string;
95
+ method: string;
96
+ invocation: {
97
+ kind: string;
98
+ };
99
+ parameters: {
100
+ name: string;
101
+ wire: string;
102
+ source: string;
103
+ codec: {
104
+ mode: string;
105
+ typeSymbol: string;
106
+ schema: z.ZodObject<{
107
+ requestId: z.ZodReadonly<z.ZodString>;
108
+ connectionId: z.ZodReadonly<z.ZodString>;
109
+ }, z.core.$strip>;
110
+ };
111
+ }[];
112
+ result: {
113
+ mode: string;
114
+ typeSymbol: string;
115
+ schema: z.ZodObject<{
116
+ disconnected: z.ZodLiteral<true>;
117
+ }, z.core.$strip>;
118
+ };
119
+ sourceLocation: {
120
+ file: string;
121
+ line: number;
122
+ column: number;
123
+ };
124
+ } | {
125
+ id: string;
126
+ service: string;
127
+ namespace: string;
128
+ method: string;
129
+ invocation: {
130
+ kind: string;
131
+ };
132
+ parameters: {
133
+ name: string;
134
+ wire: string;
135
+ source: string;
136
+ codec: {
137
+ mode: string;
138
+ typeSymbol: string;
139
+ schema: z.ZodString;
140
+ };
141
+ }[];
142
+ result: {
143
+ mode: string;
144
+ typeSymbol: string;
145
+ schema: z.ZodObject<{
146
+ id: z.ZodReadonly<z.ZodString>;
147
+ connectionId: z.ZodReadonly<z.ZodString>;
148
+ revision: z.ZodReadonly<z.ZodNumber>;
149
+ notice: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
150
+ kind: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"browser">, z.ZodLiteral<"device">, z.ZodLiteral<"waiting">]>>;
151
+ url: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodString]>>>;
152
+ code: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodString]>>>;
153
+ }, z.core.$strip>]>>>;
154
+ prompt: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
155
+ id: z.ZodReadonly<z.ZodString>;
156
+ choices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
157
+ id: z.ZodReadonly<z.ZodString>;
158
+ label: z.ZodReadonly<z.ZodString>;
159
+ kind: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"browser">, z.ZodLiteral<"device">, z.ZodLiteral<"other">]>>;
160
+ }, z.core.$strip>>>;
161
+ }, z.core.$strip>]>>>;
162
+ terminal: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
163
+ status: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"authorized">, z.ZodLiteral<"cancelled">]>>;
164
+ }, z.core.$strip>, z.ZodObject<{
165
+ status: z.ZodReadonly<z.ZodLiteral<"failed">>;
166
+ code: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"unavailable">, z.ZodLiteral<"unknown-method">, z.ZodLiteral<"in-flight">, z.ZodLiteral<"input-required">, z.ZodLiteral<"not-committed">, z.ZodLiteral<"flow-failed">]>>;
167
+ }, z.core.$strip>]>>>;
168
+ }, z.core.$strip>;
169
+ };
170
+ sourceLocation: {
171
+ file: string;
172
+ line: number;
173
+ column: number;
174
+ };
175
+ } | {
176
+ id: string;
177
+ service: string;
178
+ namespace: string;
179
+ method: string;
180
+ invocation: {
181
+ kind: string;
182
+ };
183
+ parameters: {
184
+ name: string;
185
+ wire: string;
186
+ source: string;
187
+ codec: {
188
+ mode: string;
189
+ typeSymbol: string;
190
+ schema: z.ZodObject<{
191
+ requestId: z.ZodReadonly<z.ZodString>;
192
+ connectionId: z.ZodReadonly<z.ZodString>;
193
+ method: z.ZodReadonly<z.ZodString>;
194
+ }, z.core.$strip>;
195
+ };
196
+ }[];
197
+ result: {
198
+ mode: string;
199
+ typeSymbol: string;
200
+ schema: z.ZodObject<{
201
+ id: z.ZodReadonly<z.ZodString>;
202
+ connectionId: z.ZodReadonly<z.ZodString>;
203
+ revision: z.ZodReadonly<z.ZodNumber>;
204
+ notice: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
205
+ kind: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"browser">, z.ZodLiteral<"device">, z.ZodLiteral<"waiting">]>>;
206
+ url: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodString]>>>;
207
+ code: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodString]>>>;
208
+ }, z.core.$strip>]>>>;
209
+ prompt: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
210
+ id: z.ZodReadonly<z.ZodString>;
211
+ choices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
212
+ id: z.ZodReadonly<z.ZodString>;
213
+ label: z.ZodReadonly<z.ZodString>;
214
+ kind: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"browser">, z.ZodLiteral<"device">, z.ZodLiteral<"other">]>>;
215
+ }, z.core.$strip>>>;
216
+ }, z.core.$strip>]>>>;
217
+ terminal: z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodUndefined, z.ZodObject<{
218
+ status: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"authorized">, z.ZodLiteral<"cancelled">]>>;
219
+ }, z.core.$strip>, z.ZodObject<{
220
+ status: z.ZodReadonly<z.ZodLiteral<"failed">>;
221
+ code: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<"unavailable">, z.ZodLiteral<"unknown-method">, z.ZodLiteral<"in-flight">, z.ZodLiteral<"input-required">, z.ZodLiteral<"not-committed">, z.ZodLiteral<"flow-failed">]>>;
222
+ }, z.core.$strip>]>>>;
223
+ }, z.core.$strip>;
224
+ };
225
+ sourceLocation: {
226
+ file: string;
227
+ line: number;
228
+ column: number;
229
+ };
230
+ })[];
231
+ model: {
232
+ services: never[];
233
+ events: never[];
234
+ objects: never[];
235
+ };
236
+ };
237
+ //# sourceMappingURL=host.d.ts.map