@harborclient/team-hub-api 0.1.1

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,630 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Supported HTTP methods for saved and live requests.
4
+ */
5
+ export declare const httpMethod: z.ZodEnum<{
6
+ GET: "GET";
7
+ POST: "POST";
8
+ PUT: "PUT";
9
+ PATCH: "PATCH";
10
+ DELETE: "DELETE";
11
+ HEAD: "HEAD";
12
+ OPTIONS: "OPTIONS";
13
+ }>;
14
+ /**
15
+ * Supported request body content types.
16
+ */
17
+ export declare const bodyType: z.ZodEnum<{
18
+ none: "none";
19
+ json: "json";
20
+ text: "text";
21
+ multipart: "multipart";
22
+ urlencoded: "urlencoded";
23
+ }>;
24
+ /**
25
+ * Header or query parameter key-value row.
26
+ */
27
+ export declare const keyValue: z.ZodObject<{
28
+ key: z.ZodString;
29
+ value: z.ZodString;
30
+ enabled: z.ZodBoolean;
31
+ }, z.core.$strip>;
32
+ /**
33
+ * Collection or environment variable row.
34
+ */
35
+ export declare const variable: z.ZodObject<{
36
+ key: z.ZodString;
37
+ value: z.ZodString;
38
+ defaultValue: z.ZodString;
39
+ share: z.ZodBoolean;
40
+ }, z.core.$strip>;
41
+ /**
42
+ * Authorization settings returned by Team Hub entity routes.
43
+ */
44
+ export declare const teamHubAuthConfigSchema: z.ZodObject<{
45
+ type: z.ZodEnum<{
46
+ none: "none";
47
+ basic: "basic";
48
+ bearer: "bearer";
49
+ }>;
50
+ basic: z.ZodObject<{
51
+ username: z.ZodString;
52
+ password: z.ZodString;
53
+ }, z.core.$strip>;
54
+ bearer: z.ZodObject<{
55
+ token: z.ZodString;
56
+ }, z.core.$strip>;
57
+ }, z.core.$strip>;
58
+ /**
59
+ * Standard error body returned by HarborClient Server API routes.
60
+ */
61
+ export declare const errorResponseSchema: z.ZodObject<{
62
+ error: z.ZodString;
63
+ }, z.core.$strip>;
64
+ /**
65
+ * ISO 8601 timestamp strings returned in JSON responses.
66
+ */
67
+ export declare const timestampSchema: z.ZodISODateTime;
68
+ /**
69
+ * Parses deletion lock flags from Team Hub responses.
70
+ *
71
+ * Older hub versions omit this field; treat missing values as unlocked.
72
+ */
73
+ export declare const deletionLockedSchema: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
74
+ /**
75
+ * JSON shape for a persisted collection record.
76
+ */
77
+ export declare const collectionRecordSchema: z.ZodObject<{
78
+ id: z.ZodString;
79
+ name: z.ZodString;
80
+ variables: z.ZodArray<z.ZodObject<{
81
+ key: z.ZodString;
82
+ value: z.ZodString;
83
+ defaultValue: z.ZodString;
84
+ share: z.ZodBoolean;
85
+ }, z.core.$strip>>;
86
+ headers: z.ZodArray<z.ZodObject<{
87
+ key: z.ZodString;
88
+ value: z.ZodString;
89
+ enabled: z.ZodBoolean;
90
+ }, z.core.$strip>>;
91
+ auth: z.ZodObject<{
92
+ type: z.ZodEnum<{
93
+ none: "none";
94
+ basic: "basic";
95
+ bearer: "bearer";
96
+ }>;
97
+ basic: z.ZodObject<{
98
+ username: z.ZodString;
99
+ password: z.ZodString;
100
+ }, z.core.$strip>;
101
+ bearer: z.ZodObject<{
102
+ token: z.ZodString;
103
+ }, z.core.$strip>;
104
+ }, z.core.$strip>;
105
+ preRequestScript: z.ZodString;
106
+ postRequestScript: z.ZodString;
107
+ createdAt: z.ZodISODateTime;
108
+ deletionLocked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
109
+ }, z.core.$strip>;
110
+ /**
111
+ * JSON shape for a persisted environment record.
112
+ */
113
+ export declare const environmentRecordSchema: z.ZodObject<{
114
+ id: z.ZodString;
115
+ name: z.ZodString;
116
+ variables: z.ZodArray<z.ZodObject<{
117
+ key: z.ZodString;
118
+ value: z.ZodString;
119
+ defaultValue: z.ZodString;
120
+ share: z.ZodBoolean;
121
+ }, z.core.$strip>>;
122
+ createdAt: z.ZodISODateTime;
123
+ deletionLocked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
124
+ }, z.core.$strip>;
125
+ /**
126
+ * JSON shape for a persisted folder record.
127
+ */
128
+ export declare const folderRecordSchema: z.ZodObject<{
129
+ id: z.ZodString;
130
+ collectionId: z.ZodString;
131
+ name: z.ZodString;
132
+ sortOrder: z.ZodNumber;
133
+ createdAt: z.ZodISODateTime;
134
+ }, z.core.$strip>;
135
+ /**
136
+ * JSON shape for a persisted saved request record.
137
+ */
138
+ export declare const savedRequestRecordSchema: z.ZodObject<{
139
+ id: z.ZodString;
140
+ collectionId: z.ZodString;
141
+ name: z.ZodString;
142
+ method: z.ZodEnum<{
143
+ GET: "GET";
144
+ POST: "POST";
145
+ PUT: "PUT";
146
+ PATCH: "PATCH";
147
+ DELETE: "DELETE";
148
+ HEAD: "HEAD";
149
+ OPTIONS: "OPTIONS";
150
+ }>;
151
+ url: z.ZodString;
152
+ headers: z.ZodArray<z.ZodObject<{
153
+ key: z.ZodString;
154
+ value: z.ZodString;
155
+ enabled: z.ZodBoolean;
156
+ }, z.core.$strip>>;
157
+ params: z.ZodArray<z.ZodObject<{
158
+ key: z.ZodString;
159
+ value: z.ZodString;
160
+ enabled: z.ZodBoolean;
161
+ }, z.core.$strip>>;
162
+ auth: z.ZodObject<{
163
+ type: z.ZodEnum<{
164
+ none: "none";
165
+ basic: "basic";
166
+ bearer: "bearer";
167
+ }>;
168
+ basic: z.ZodObject<{
169
+ username: z.ZodString;
170
+ password: z.ZodString;
171
+ }, z.core.$strip>;
172
+ bearer: z.ZodObject<{
173
+ token: z.ZodString;
174
+ }, z.core.$strip>;
175
+ }, z.core.$strip>;
176
+ body: z.ZodString;
177
+ bodyType: z.ZodEnum<{
178
+ none: "none";
179
+ json: "json";
180
+ text: "text";
181
+ multipart: "multipart";
182
+ urlencoded: "urlencoded";
183
+ }>;
184
+ preRequestScript: z.ZodString;
185
+ postRequestScript: z.ZodString;
186
+ comment: z.ZodString;
187
+ folderId: z.ZodNullable<z.ZodString>;
188
+ sortOrder: z.ZodNumber;
189
+ createdAt: z.ZodISODateTime;
190
+ updatedAt: z.ZodISODateTime;
191
+ }, z.core.$strip>;
192
+ /**
193
+ * Response body schema for `GET /health`.
194
+ */
195
+ export declare const healthResponseSchema: z.ZodObject<{
196
+ status: z.ZodLiteral<"ok">;
197
+ version: z.ZodString;
198
+ }, z.core.$strip>;
199
+ /**
200
+ * Response body schema for `GET /auth/session`.
201
+ */
202
+ export declare const sessionResponseSchema: z.ZodObject<{
203
+ user: z.ZodObject<{
204
+ id: z.ZodString;
205
+ name: z.ZodString;
206
+ role: z.ZodEnum<{
207
+ user: "user";
208
+ admin: "admin";
209
+ }>;
210
+ }, z.core.$strip>;
211
+ token: z.ZodObject<{
212
+ id: z.ZodString;
213
+ prefix: z.ZodString;
214
+ }, z.core.$strip>;
215
+ capabilities: z.ZodObject<{
216
+ dataApi: z.ZodBoolean;
217
+ managementApi: z.ZodBoolean;
218
+ llm: z.ZodBoolean;
219
+ }, z.core.$strip>;
220
+ }, z.core.$strip>;
221
+ /**
222
+ * JSON shape for a Team Hub user account returned by management routes.
223
+ */
224
+ export declare const hubUserRecordSchema: z.ZodObject<{
225
+ id: z.ZodString;
226
+ name: z.ZodString;
227
+ role: z.ZodEnum<{
228
+ user: "user";
229
+ admin: "admin";
230
+ }>;
231
+ collectionAccess: z.ZodArray<z.ZodString>;
232
+ environmentAccess: z.ZodArray<z.ZodString>;
233
+ llmAccess: z.ZodBoolean;
234
+ llmModels: z.ZodArray<z.ZodString>;
235
+ llmMonthlyTokenLimit: z.ZodNullable<z.ZodNumber>;
236
+ createdAt: z.ZodISODateTime;
237
+ updatedAt: z.ZodISODateTime;
238
+ }, z.core.$strip>;
239
+ /**
240
+ * List response wrapper for admin user listings.
241
+ */
242
+ export declare const listAdminUsersResponseSchema: z.ZodObject<{
243
+ users: z.ZodArray<z.ZodObject<{
244
+ id: z.ZodString;
245
+ name: z.ZodString;
246
+ role: z.ZodEnum<{
247
+ user: "user";
248
+ admin: "admin";
249
+ }>;
250
+ collectionAccess: z.ZodArray<z.ZodString>;
251
+ environmentAccess: z.ZodArray<z.ZodString>;
252
+ llmAccess: z.ZodBoolean;
253
+ llmModels: z.ZodArray<z.ZodString>;
254
+ llmMonthlyTokenLimit: z.ZodNullable<z.ZodNumber>;
255
+ createdAt: z.ZodISODateTime;
256
+ updatedAt: z.ZodISODateTime;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>;
259
+ /**
260
+ * Lightweight id/name record returned by admin list routes.
261
+ */
262
+ export declare const adminResourceOptionSchema: z.ZodObject<{
263
+ id: z.ZodString;
264
+ name: z.ZodString;
265
+ deletionLocked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
266
+ }, z.core.$strip>;
267
+ /**
268
+ * Response body schema for admin entity configuration updates.
269
+ */
270
+ export declare const adminEntityConfigSchema: z.ZodObject<{
271
+ id: z.ZodString;
272
+ name: z.ZodString;
273
+ deletionLocked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
274
+ }, z.core.$strip>;
275
+ /**
276
+ * Request body schema for `PUT /admin/collections/:id`.
277
+ */
278
+ export declare const updateAdminCollectionBodySchema: z.ZodObject<{
279
+ deletionLocked: z.ZodBoolean;
280
+ }, z.core.$strip>;
281
+ /**
282
+ * Request body schema for `PUT /admin/environments/:id`.
283
+ */
284
+ export declare const updateAdminEnvironmentBodySchema: z.ZodObject<{
285
+ deletionLocked: z.ZodBoolean;
286
+ }, z.core.$strip>;
287
+ /**
288
+ * List response wrapper for admin collection listings.
289
+ */
290
+ export declare const listAdminCollectionsResponseSchema: z.ZodObject<{
291
+ collections: z.ZodArray<z.ZodObject<{
292
+ id: z.ZodString;
293
+ name: z.ZodString;
294
+ deletionLocked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
295
+ }, z.core.$strip>>;
296
+ }, z.core.$strip>;
297
+ /**
298
+ * List response wrapper for admin environment listings.
299
+ */
300
+ export declare const listAdminEnvironmentsResponseSchema: z.ZodObject<{
301
+ environments: z.ZodArray<z.ZodObject<{
302
+ id: z.ZodString;
303
+ name: z.ZodString;
304
+ deletionLocked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
305
+ }, z.core.$strip>>;
306
+ }, z.core.$strip>;
307
+ /**
308
+ * Request body schema for `PUT /admin/users/:id`.
309
+ */
310
+ export declare const updateAdminUserBodySchema: z.ZodObject<{
311
+ name: z.ZodOptional<z.ZodString>;
312
+ role: z.ZodOptional<z.ZodEnum<{
313
+ user: "user";
314
+ admin: "admin";
315
+ }>>;
316
+ collectionAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
317
+ environmentAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
318
+ llmAccess: z.ZodOptional<z.ZodBoolean>;
319
+ llmModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
320
+ llmMonthlyTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
321
+ }, z.core.$strip>;
322
+ /**
323
+ * Request body schema for `POST /admin/users`.
324
+ */
325
+ export declare const createAdminUserBodySchema: z.ZodObject<{
326
+ name: z.ZodString;
327
+ role: z.ZodEnum<{
328
+ user: "user";
329
+ admin: "admin";
330
+ }>;
331
+ collectionAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
332
+ environmentAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
+ llmAccess: z.ZodOptional<z.ZodBoolean>;
334
+ llmModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
335
+ llmMonthlyTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
336
+ }, z.core.$strip>;
337
+ /**
338
+ * JSON shape for an API token record returned by admin token routes.
339
+ */
340
+ export declare const hubApiTokenRecordSchema: z.ZodObject<{
341
+ id: z.ZodString;
342
+ userId: z.ZodString;
343
+ name: z.ZodString;
344
+ tokenPrefix: z.ZodString;
345
+ createdAt: z.ZodISODateTime;
346
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
347
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
348
+ }, z.core.$strip>;
349
+ /**
350
+ * Response body schema for `POST /admin/users`.
351
+ */
352
+ export declare const createAdminUserResponseSchema: z.ZodObject<{
353
+ user: z.ZodObject<{
354
+ id: z.ZodString;
355
+ name: z.ZodString;
356
+ role: z.ZodEnum<{
357
+ user: "user";
358
+ admin: "admin";
359
+ }>;
360
+ collectionAccess: z.ZodArray<z.ZodString>;
361
+ environmentAccess: z.ZodArray<z.ZodString>;
362
+ llmAccess: z.ZodBoolean;
363
+ llmModels: z.ZodArray<z.ZodString>;
364
+ llmMonthlyTokenLimit: z.ZodNullable<z.ZodNumber>;
365
+ createdAt: z.ZodISODateTime;
366
+ updatedAt: z.ZodISODateTime;
367
+ }, z.core.$strip>;
368
+ token: z.ZodObject<{
369
+ id: z.ZodString;
370
+ userId: z.ZodString;
371
+ name: z.ZodString;
372
+ tokenPrefix: z.ZodString;
373
+ createdAt: z.ZodISODateTime;
374
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
375
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
376
+ }, z.core.$strip>;
377
+ secret: z.ZodString;
378
+ }, z.core.$strip>;
379
+ /**
380
+ * Request body schema for `POST /admin/users/:id/tokens`.
381
+ */
382
+ export declare const createAdminTokenBodySchema: z.ZodObject<{
383
+ name: z.ZodString;
384
+ }, z.core.$strip>;
385
+ /**
386
+ * Response body schema for `POST /admin/users/:id/tokens`.
387
+ */
388
+ export declare const createdApiTokenResponseSchema: z.ZodObject<{
389
+ token: z.ZodObject<{
390
+ id: z.ZodString;
391
+ userId: z.ZodString;
392
+ name: z.ZodString;
393
+ tokenPrefix: z.ZodString;
394
+ createdAt: z.ZodISODateTime;
395
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
396
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
397
+ }, z.core.$strip>;
398
+ secret: z.ZodString;
399
+ }, z.core.$strip>;
400
+ /**
401
+ * List response wrapper for admin token listings.
402
+ */
403
+ export declare const listAdminTokensResponseSchema: z.ZodObject<{
404
+ tokens: z.ZodArray<z.ZodObject<{
405
+ id: z.ZodString;
406
+ userId: z.ZodString;
407
+ name: z.ZodString;
408
+ tokenPrefix: z.ZodString;
409
+ createdAt: z.ZodISODateTime;
410
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
411
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
412
+ }, z.core.$strip>>;
413
+ }, z.core.$strip>;
414
+ /**
415
+ * Per-section outcome reported by config reload routes.
416
+ */
417
+ export declare const reloadConfigSectionResultSchema: z.ZodObject<{
418
+ section: z.ZodEnum<{
419
+ db: "db";
420
+ redis: "redis";
421
+ llm: "llm";
422
+ plugins: "plugins";
423
+ server: "server";
424
+ }>;
425
+ status: z.ZodEnum<{
426
+ reloaded: "reloaded";
427
+ unchanged: "unchanged";
428
+ failed: "failed";
429
+ "restart-required": "restart-required";
430
+ }>;
431
+ error: z.ZodOptional<z.ZodString>;
432
+ }, z.core.$strip>;
433
+ /**
434
+ * Response body schema for `POST /admin/config/reload`.
435
+ */
436
+ export declare const reloadConfigResponseSchema: z.ZodObject<{
437
+ sections: z.ZodArray<z.ZodObject<{
438
+ section: z.ZodEnum<{
439
+ db: "db";
440
+ redis: "redis";
441
+ llm: "llm";
442
+ plugins: "plugins";
443
+ server: "server";
444
+ }>;
445
+ status: z.ZodEnum<{
446
+ reloaded: "reloaded";
447
+ unchanged: "unchanged";
448
+ failed: "failed";
449
+ "restart-required": "restart-required";
450
+ }>;
451
+ error: z.ZodOptional<z.ZodString>;
452
+ }, z.core.$strip>>;
453
+ fatalError: z.ZodOptional<z.ZodString>;
454
+ }, z.core.$strip>;
455
+ /**
456
+ * List response wrapper for collections.
457
+ */
458
+ export declare const listCollectionsResponseSchema: z.ZodObject<{
459
+ collections: z.ZodArray<z.ZodObject<{
460
+ id: z.ZodString;
461
+ name: z.ZodString;
462
+ variables: z.ZodArray<z.ZodObject<{
463
+ key: z.ZodString;
464
+ value: z.ZodString;
465
+ defaultValue: z.ZodString;
466
+ share: z.ZodBoolean;
467
+ }, z.core.$strip>>;
468
+ headers: z.ZodArray<z.ZodObject<{
469
+ key: z.ZodString;
470
+ value: z.ZodString;
471
+ enabled: z.ZodBoolean;
472
+ }, z.core.$strip>>;
473
+ auth: z.ZodObject<{
474
+ type: z.ZodEnum<{
475
+ none: "none";
476
+ basic: "basic";
477
+ bearer: "bearer";
478
+ }>;
479
+ basic: z.ZodObject<{
480
+ username: z.ZodString;
481
+ password: z.ZodString;
482
+ }, z.core.$strip>;
483
+ bearer: z.ZodObject<{
484
+ token: z.ZodString;
485
+ }, z.core.$strip>;
486
+ }, z.core.$strip>;
487
+ preRequestScript: z.ZodString;
488
+ postRequestScript: z.ZodString;
489
+ createdAt: z.ZodISODateTime;
490
+ deletionLocked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
491
+ }, z.core.$strip>>;
492
+ }, z.core.$strip>;
493
+ /**
494
+ * List response wrapper for environments.
495
+ */
496
+ export declare const listEnvironmentsResponseSchema: z.ZodObject<{
497
+ environments: z.ZodArray<z.ZodObject<{
498
+ id: z.ZodString;
499
+ name: z.ZodString;
500
+ variables: z.ZodArray<z.ZodObject<{
501
+ key: z.ZodString;
502
+ value: z.ZodString;
503
+ defaultValue: z.ZodString;
504
+ share: z.ZodBoolean;
505
+ }, z.core.$strip>>;
506
+ createdAt: z.ZodISODateTime;
507
+ deletionLocked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
508
+ }, z.core.$strip>>;
509
+ }, z.core.$strip>;
510
+ /**
511
+ * List response wrapper for folders.
512
+ */
513
+ export declare const listFoldersResponseSchema: z.ZodObject<{
514
+ folders: z.ZodArray<z.ZodObject<{
515
+ id: z.ZodString;
516
+ collectionId: z.ZodString;
517
+ name: z.ZodString;
518
+ sortOrder: z.ZodNumber;
519
+ createdAt: z.ZodISODateTime;
520
+ }, z.core.$strip>>;
521
+ }, z.core.$strip>;
522
+ /**
523
+ * List response wrapper for saved requests.
524
+ */
525
+ export declare const listRequestsResponseSchema: z.ZodObject<{
526
+ requests: z.ZodArray<z.ZodObject<{
527
+ id: z.ZodString;
528
+ collectionId: z.ZodString;
529
+ name: z.ZodString;
530
+ method: z.ZodEnum<{
531
+ GET: "GET";
532
+ POST: "POST";
533
+ PUT: "PUT";
534
+ PATCH: "PATCH";
535
+ DELETE: "DELETE";
536
+ HEAD: "HEAD";
537
+ OPTIONS: "OPTIONS";
538
+ }>;
539
+ url: z.ZodString;
540
+ headers: z.ZodArray<z.ZodObject<{
541
+ key: z.ZodString;
542
+ value: z.ZodString;
543
+ enabled: z.ZodBoolean;
544
+ }, z.core.$strip>>;
545
+ params: z.ZodArray<z.ZodObject<{
546
+ key: z.ZodString;
547
+ value: z.ZodString;
548
+ enabled: z.ZodBoolean;
549
+ }, z.core.$strip>>;
550
+ auth: z.ZodObject<{
551
+ type: z.ZodEnum<{
552
+ none: "none";
553
+ basic: "basic";
554
+ bearer: "bearer";
555
+ }>;
556
+ basic: z.ZodObject<{
557
+ username: z.ZodString;
558
+ password: z.ZodString;
559
+ }, z.core.$strip>;
560
+ bearer: z.ZodObject<{
561
+ token: z.ZodString;
562
+ }, z.core.$strip>;
563
+ }, z.core.$strip>;
564
+ body: z.ZodString;
565
+ bodyType: z.ZodEnum<{
566
+ none: "none";
567
+ json: "json";
568
+ text: "text";
569
+ multipart: "multipart";
570
+ urlencoded: "urlencoded";
571
+ }>;
572
+ preRequestScript: z.ZodString;
573
+ postRequestScript: z.ZodString;
574
+ comment: z.ZodString;
575
+ folderId: z.ZodNullable<z.ZodString>;
576
+ sortOrder: z.ZodNumber;
577
+ createdAt: z.ZodISODateTime;
578
+ updatedAt: z.ZodISODateTime;
579
+ }, z.core.$strip>>;
580
+ }, z.core.$strip>;
581
+ /**
582
+ * JSON shape for one hub-offered LLM model.
583
+ */
584
+ export declare const hubLlmModelSchema: z.ZodObject<{
585
+ id: z.ZodString;
586
+ label: z.ZodString;
587
+ provider: z.ZodEnum<{
588
+ openai: "openai";
589
+ claude: "claude";
590
+ gemini: "gemini";
591
+ }>;
592
+ }, z.core.$strip>;
593
+ /**
594
+ * JSON shape for GET /llm/models response body.
595
+ */
596
+ export declare const listHubLlmModelsResponseSchema: z.ZodObject<{
597
+ models: z.ZodArray<z.ZodObject<{
598
+ id: z.ZodString;
599
+ label: z.ZodString;
600
+ provider: z.ZodEnum<{
601
+ openai: "openai";
602
+ claude: "claude";
603
+ gemini: "gemini";
604
+ }>;
605
+ }, z.core.$strip>>;
606
+ }, z.core.$strip>;
607
+ /**
608
+ * JSON shape for GET /plugins/sources response body.
609
+ */
610
+ export declare const pluginSourcesResponseSchema: z.ZodObject<{
611
+ catalogs: z.ZodArray<z.ZodString>;
612
+ trusted: z.ZodArray<z.ZodString>;
613
+ }, z.core.$strip>;
614
+ /**
615
+ * JSON shape for POST /llm/chat/step response body.
616
+ */
617
+ export declare const hubChatStepResponseSchema: z.ZodObject<{
618
+ content: z.ZodNullable<z.ZodString>;
619
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
620
+ id: z.ZodString;
621
+ name: z.ZodString;
622
+ arguments: z.ZodString;
623
+ }, z.core.$strip>>>;
624
+ usage: z.ZodObject<{
625
+ promptTokens: z.ZodNumber;
626
+ completionTokens: z.ZodNumber;
627
+ totalTokens: z.ZodNumber;
628
+ }, z.core.$strip>;
629
+ }, z.core.$strip>;
630
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;EAQW,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;EAMW,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;iBAIW,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;iBAKW,CA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