librechat-data-provider 0.8.522 → 0.8.524

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.
Files changed (57) hide show
  1. package/dist/{data-service-CaB7saTP.mjs → data-service-B-WUVvTH.mjs} +1044 -173
  2. package/dist/data-service-B-WUVvTH.mjs.map +1 -0
  3. package/dist/{data-service-D5kHzBt-.js → data-service-CUG1qdeC.js} +1426 -207
  4. package/dist/data-service-CUG1qdeC.js.map +1 -0
  5. package/dist/index.js +886 -74
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +780 -70
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react-query/index.js +1 -1
  10. package/dist/react-query/index.mjs +1 -1
  11. package/dist/types/accessPermissions.d.ts +54 -1
  12. package/dist/types/actions.d.ts +1 -1
  13. package/dist/types/agentToolOptions.d.ts +1 -1
  14. package/dist/types/api-endpoints.d.ts +7 -0
  15. package/dist/types/backgroundResults.d.ts +13 -0
  16. package/dist/types/balance.d.ts +4 -0
  17. package/dist/types/bedrock.d.ts +132 -65
  18. package/dist/types/code/approval.d.ts +26 -0
  19. package/dist/types/code/worker.d.ts +10 -0
  20. package/dist/types/code/workspace.d.ts +50 -0
  21. package/dist/types/codeEnvRef.d.ts +5 -0
  22. package/dist/types/config.d.ts +5859 -2469
  23. package/dist/types/data-service.d.ts +22 -12
  24. package/dist/types/errors.d.ts +2 -0
  25. package/dist/types/file-config.d.ts +179 -12
  26. package/dist/types/filters.d.ts +97 -97
  27. package/dist/types/footer.d.ts +20 -0
  28. package/dist/types/generate.d.ts +48 -24
  29. package/dist/types/index.d.ts +11 -0
  30. package/dist/types/keys.d.ts +13 -2
  31. package/dist/types/limits.d.ts +8 -0
  32. package/dist/types/mcp.d.ts +683 -30
  33. package/dist/types/messages.d.ts +25 -1
  34. package/dist/types/models.d.ts +312 -183
  35. package/dist/types/parameterSettings.d.ts +10 -1
  36. package/dist/types/parsers.d.ts +25 -1
  37. package/dist/types/providers.d.ts +1 -0
  38. package/dist/types/resolve-llm-delivery-path.d.ts +161 -0
  39. package/dist/types/schemas.d.ts +771 -457
  40. package/dist/types/svg.d.ts +34 -0
  41. package/dist/types/types/agents.d.ts +257 -2
  42. package/dist/types/types/assistants.d.ts +2 -617
  43. package/dist/types/types/content.d.ts +286 -0
  44. package/dist/types/types/files.d.ts +48 -1
  45. package/dist/types/types/insights.d.ts +9 -0
  46. package/dist/types/types/mutations.d.ts +3 -2
  47. package/dist/types/types/queries.d.ts +8 -1
  48. package/dist/types/types/queuedTurns.d.ts +140 -106
  49. package/dist/types/types/runs.d.ts +33 -5
  50. package/dist/types/types/schedules.d.ts +40 -7
  51. package/dist/types/types/skills.d.ts +43 -0
  52. package/dist/types/types/tools.d.ts +132 -0
  53. package/dist/types/types/traces.d.ts +134 -0
  54. package/dist/types/types.d.ts +72 -2
  55. package/package.json +2 -2
  56. package/dist/data-service-CaB7saTP.mjs.map +0 -1
  57. package/dist/data-service-D5kHzBt-.js.map +0 -1
@@ -1,8 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  import * as s from './schemas';
3
+ export declare const THINKING_BINDING_BETA = "thinking-binding-controls-2026-08-01";
3
4
  export declare const BEDROCK_OUTPUT_128K_BETA = "output-128k-2025-02-19";
4
5
  export declare const BEDROCK_FINE_GRAINED_TOOL_STREAMING_BETA = "fine-grained-tool-streaming-2025-05-14";
5
6
  export declare function resolveThinkingDisplay(model: string, explicit?: s.ThinkingDisplay | string | null): s.ThinkingDisplayWireValue | undefined;
7
+ /** Opus 5.5 has an always-on, conversation-bound thinking contract unlike Opus 5. */
8
+ export declare function isOpus55Model(model: string): boolean;
9
+ /** LibreChat permits edits and compaction of earlier turns; drop only invalidated blocks. */
10
+ export declare const OPUS_55_BLOCK_BINDING: {
11
+ readonly prefix_mismatch_behavior: "drop_block";
12
+ };
6
13
  /**
7
14
  * Mythos-class detection (Claude Fable / Mythos) lives in `schemas.ts` as
8
15
  * `isMythosClassModel` — the single source of truth for the family names.
@@ -77,6 +84,18 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
77
84
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
85
  pinned: z.ZodOptional<z.ZodBoolean>;
79
86
  isShared: z.ZodOptional<z.ZodBoolean>;
87
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
88
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
89
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
+ environmentId: z.ZodString;
91
+ workspaceId: z.ZodString;
92
+ }, "strict", z.ZodTypeAny, {
93
+ environmentId: string;
94
+ workspaceId: string;
95
+ }, {
96
+ environmentId: string;
97
+ workspaceId: string;
98
+ }>, "many">>;
80
99
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
81
100
  user: z.ZodOptional<z.ZodString>;
82
101
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -93,14 +112,14 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
93
112
  sensitive: z.ZodOptional<z.ZodBoolean>;
94
113
  }, "strip", z.ZodTypeAny, {
95
114
  description: string;
96
- authField: string;
97
115
  label: string;
116
+ authField: string;
98
117
  optional?: boolean | undefined;
99
118
  sensitive?: boolean | undefined;
100
119
  }, {
101
120
  description: string;
102
- authField: string;
103
121
  label: string;
122
+ authField: string;
104
123
  optional?: boolean | undefined;
105
124
  sensitive?: boolean | undefined;
106
125
  }>, "many">>;
@@ -116,8 +135,8 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
116
135
  icon?: string | undefined;
117
136
  authConfig?: {
118
137
  description: string;
119
- authField: string;
120
138
  label: string;
139
+ authField: string;
121
140
  optional?: boolean | undefined;
122
141
  sensitive?: boolean | undefined;
123
142
  }[] | undefined;
@@ -133,8 +152,8 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
133
152
  icon?: string | undefined;
134
153
  authConfig?: {
135
154
  description: string;
136
- authField: string;
137
155
  label: string;
156
+ authField: string;
138
157
  optional?: boolean | undefined;
139
158
  sensitive?: boolean | undefined;
140
159
  }[] | undefined;
@@ -183,19 +202,19 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
183
202
  content: string;
184
203
  }>;
185
204
  }, "strip", z.ZodTypeAny, {
186
- input: {
187
- content: string;
188
- };
189
205
  output: {
190
206
  content: string;
191
207
  };
192
- }, {
193
208
  input: {
194
209
  content: string;
195
210
  };
211
+ }, {
196
212
  output: {
197
213
  content: string;
198
214
  };
215
+ input: {
216
+ content: string;
217
+ };
199
218
  }>, "many">>;
200
219
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
201
220
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -309,7 +328,11 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
309
328
  fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
310
329
  resendImages: z.ZodOptional<z.ZodBoolean>;
311
330
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "system" | "thinking" | "thinkingBudget" | "artifacts" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "stop" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
331
+ }, "system" | "greeting" | "artifacts" | "stop" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
332
+ system?: string | undefined;
333
+ greeting?: string | undefined;
334
+ artifacts?: string | undefined;
335
+ stop?: string[] | undefined;
313
336
  model?: string | null | undefined;
314
337
  modelLabel?: string | null | undefined;
315
338
  promptPrefix?: string | null | undefined;
@@ -320,10 +343,8 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
320
343
  maxContextTokens?: number | undefined;
321
344
  promptCache?: boolean | undefined;
322
345
  promptCacheTtl?: "5m" | "1h" | undefined;
323
- system?: string | undefined;
324
346
  thinking?: boolean | undefined;
325
347
  thinkingBudget?: number | undefined;
326
- artifacts?: string | undefined;
327
348
  chatProjectId?: string | null | undefined;
328
349
  resendFiles?: boolean | undefined;
329
350
  reasoning_effort?: s.ReasoningEffort | null | undefined;
@@ -356,11 +377,13 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
356
377
  } | null)[] | {
357
378
  [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
358
379
  } | null) | undefined;
359
- stop?: string[] | undefined;
360
- greeting?: string | undefined;
361
380
  spec?: string | null | undefined;
362
381
  iconURL?: string | null | undefined;
363
382
  }, {
383
+ system?: string | undefined;
384
+ greeting?: string | undefined;
385
+ artifacts?: string | undefined;
386
+ stop?: string[] | undefined;
364
387
  model?: string | null | undefined;
365
388
  modelLabel?: string | null | undefined;
366
389
  promptPrefix?: string | null | undefined;
@@ -371,10 +394,8 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
371
394
  maxContextTokens?: string | number | undefined;
372
395
  promptCache?: boolean | undefined;
373
396
  promptCacheTtl?: "5m" | "1h" | undefined;
374
- system?: string | undefined;
375
397
  thinking?: boolean | undefined;
376
398
  thinkingBudget?: string | number | undefined;
377
- artifacts?: string | undefined;
378
399
  chatProjectId?: string | null | undefined;
379
400
  resendFiles?: boolean | undefined;
380
401
  reasoning_effort?: s.ReasoningEffort | null | undefined;
@@ -407,11 +428,13 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
407
428
  } | null)[] | {
408
429
  [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
409
430
  } | null) | undefined;
410
- stop?: string[] | undefined;
411
- greeting?: string | undefined;
412
431
  spec?: string | null | undefined;
413
432
  iconURL?: string | null | undefined;
414
433
  }>, Partial<{
434
+ system?: string | undefined;
435
+ greeting?: string | undefined;
436
+ artifacts?: string | undefined;
437
+ stop?: string[] | undefined;
415
438
  model?: string | null | undefined;
416
439
  modelLabel?: string | null | undefined;
417
440
  promptPrefix?: string | null | undefined;
@@ -422,10 +445,8 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
422
445
  maxContextTokens?: number | undefined;
423
446
  promptCache?: boolean | undefined;
424
447
  promptCacheTtl?: "5m" | "1h" | undefined;
425
- system?: string | undefined;
426
448
  thinking?: boolean | undefined;
427
449
  thinkingBudget?: number | undefined;
428
- artifacts?: string | undefined;
429
450
  chatProjectId?: string | null | undefined;
430
451
  resendFiles?: boolean | undefined;
431
452
  reasoning_effort?: s.ReasoningEffort | null | undefined;
@@ -458,11 +479,13 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
458
479
  } | null)[] | {
459
480
  [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
460
481
  } | null) | undefined;
461
- stop?: string[] | undefined;
462
- greeting?: string | undefined;
463
482
  spec?: string | null | undefined;
464
483
  iconURL?: string | null | undefined;
465
484
  }>, {
485
+ system?: string | undefined;
486
+ greeting?: string | undefined;
487
+ artifacts?: string | undefined;
488
+ stop?: string[] | undefined;
466
489
  model?: string | null | undefined;
467
490
  modelLabel?: string | null | undefined;
468
491
  promptPrefix?: string | null | undefined;
@@ -473,10 +496,8 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
473
496
  maxContextTokens?: string | number | undefined;
474
497
  promptCache?: boolean | undefined;
475
498
  promptCacheTtl?: "5m" | "1h" | undefined;
476
- system?: string | undefined;
477
499
  thinking?: boolean | undefined;
478
500
  thinkingBudget?: string | number | undefined;
479
- artifacts?: string | undefined;
480
501
  chatProjectId?: string | null | undefined;
481
502
  resendFiles?: boolean | undefined;
482
503
  reasoning_effort?: s.ReasoningEffort | null | undefined;
@@ -509,8 +530,6 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
509
530
  } | null)[] | {
510
531
  [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
511
532
  } | null) | undefined;
512
- stop?: string[] | undefined;
513
- greeting?: string | undefined;
514
533
  spec?: string | null | undefined;
515
534
  iconURL?: string | null | undefined;
516
535
  }>>;
@@ -523,6 +542,18 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
523
542
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
543
  pinned: z.ZodOptional<z.ZodBoolean>;
525
544
  isShared: z.ZodOptional<z.ZodBoolean>;
545
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
546
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
547
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
548
+ environmentId: z.ZodString;
549
+ workspaceId: z.ZodString;
550
+ }, "strict", z.ZodTypeAny, {
551
+ environmentId: string;
552
+ workspaceId: string;
553
+ }, {
554
+ environmentId: string;
555
+ workspaceId: string;
556
+ }>, "many">>;
526
557
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
527
558
  user: z.ZodOptional<z.ZodString>;
528
559
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -539,14 +570,14 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
539
570
  sensitive: z.ZodOptional<z.ZodBoolean>;
540
571
  }, "strip", z.ZodTypeAny, {
541
572
  description: string;
542
- authField: string;
543
573
  label: string;
574
+ authField: string;
544
575
  optional?: boolean | undefined;
545
576
  sensitive?: boolean | undefined;
546
577
  }, {
547
578
  description: string;
548
- authField: string;
549
579
  label: string;
580
+ authField: string;
550
581
  optional?: boolean | undefined;
551
582
  sensitive?: boolean | undefined;
552
583
  }>, "many">>;
@@ -562,8 +593,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
562
593
  icon?: string | undefined;
563
594
  authConfig?: {
564
595
  description: string;
565
- authField: string;
566
596
  label: string;
597
+ authField: string;
567
598
  optional?: boolean | undefined;
568
599
  sensitive?: boolean | undefined;
569
600
  }[] | undefined;
@@ -579,8 +610,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
579
610
  icon?: string | undefined;
580
611
  authConfig?: {
581
612
  description: string;
582
- authField: string;
583
613
  label: string;
614
+ authField: string;
584
615
  optional?: boolean | undefined;
585
616
  sensitive?: boolean | undefined;
586
617
  }[] | undefined;
@@ -629,19 +660,19 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
629
660
  content: string;
630
661
  }>;
631
662
  }, "strip", z.ZodTypeAny, {
632
- input: {
633
- content: string;
634
- };
635
663
  output: {
636
664
  content: string;
637
665
  };
638
- }, {
639
666
  input: {
640
667
  content: string;
641
668
  };
669
+ }, {
642
670
  output: {
643
671
  content: string;
644
672
  };
673
+ input: {
674
+ content: string;
675
+ };
645
676
  }>, "many">>;
646
677
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
647
678
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -755,7 +786,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
755
786
  fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
756
787
  resendImages: z.ZodOptional<z.ZodBoolean>;
757
788
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
758
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "artifacts" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "stop" | "greeting" | "spec" | "iconURL">, "strip", z.ZodAny, z.objectOutputType<Pick<{
789
+ }, "greeting" | "artifacts" | "stop" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "spec" | "iconURL">, "strip", z.ZodAny, z.objectOutputType<Pick<{
759
790
  conversationId: z.ZodNullable<z.ZodString>;
760
791
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
761
792
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
@@ -763,6 +794,18 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
763
794
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
795
  pinned: z.ZodOptional<z.ZodBoolean>;
765
796
  isShared: z.ZodOptional<z.ZodBoolean>;
797
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
798
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
799
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
800
+ environmentId: z.ZodString;
801
+ workspaceId: z.ZodString;
802
+ }, "strict", z.ZodTypeAny, {
803
+ environmentId: string;
804
+ workspaceId: string;
805
+ }, {
806
+ environmentId: string;
807
+ workspaceId: string;
808
+ }>, "many">>;
766
809
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
767
810
  user: z.ZodOptional<z.ZodString>;
768
811
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -779,14 +822,14 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
779
822
  sensitive: z.ZodOptional<z.ZodBoolean>;
780
823
  }, "strip", z.ZodTypeAny, {
781
824
  description: string;
782
- authField: string;
783
825
  label: string;
826
+ authField: string;
784
827
  optional?: boolean | undefined;
785
828
  sensitive?: boolean | undefined;
786
829
  }, {
787
830
  description: string;
788
- authField: string;
789
831
  label: string;
832
+ authField: string;
790
833
  optional?: boolean | undefined;
791
834
  sensitive?: boolean | undefined;
792
835
  }>, "many">>;
@@ -802,8 +845,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
802
845
  icon?: string | undefined;
803
846
  authConfig?: {
804
847
  description: string;
805
- authField: string;
806
848
  label: string;
849
+ authField: string;
807
850
  optional?: boolean | undefined;
808
851
  sensitive?: boolean | undefined;
809
852
  }[] | undefined;
@@ -819,8 +862,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
819
862
  icon?: string | undefined;
820
863
  authConfig?: {
821
864
  description: string;
822
- authField: string;
823
865
  label: string;
866
+ authField: string;
824
867
  optional?: boolean | undefined;
825
868
  sensitive?: boolean | undefined;
826
869
  }[] | undefined;
@@ -869,19 +912,19 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
869
912
  content: string;
870
913
  }>;
871
914
  }, "strip", z.ZodTypeAny, {
872
- input: {
873
- content: string;
874
- };
875
915
  output: {
876
916
  content: string;
877
917
  };
878
- }, {
879
918
  input: {
880
919
  content: string;
881
920
  };
921
+ }, {
882
922
  output: {
883
923
  content: string;
884
924
  };
925
+ input: {
926
+ content: string;
927
+ };
885
928
  }>, "many">>;
886
929
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
887
930
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -995,7 +1038,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
995
1038
  fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
996
1039
  resendImages: z.ZodOptional<z.ZodBoolean>;
997
1040
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
998
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "artifacts" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "stop" | "greeting" | "spec" | "iconURL">, z.ZodAny, "strip">, z.objectInputType<Pick<{
1041
+ }, "greeting" | "artifacts" | "stop" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "spec" | "iconURL">, z.ZodAny, "strip">, z.objectInputType<Pick<{
999
1042
  conversationId: z.ZodNullable<z.ZodString>;
1000
1043
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
1001
1044
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
@@ -1003,6 +1046,18 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1003
1046
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1004
1047
  pinned: z.ZodOptional<z.ZodBoolean>;
1005
1048
  isShared: z.ZodOptional<z.ZodBoolean>;
1049
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
1050
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
1051
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1052
+ environmentId: z.ZodString;
1053
+ workspaceId: z.ZodString;
1054
+ }, "strict", z.ZodTypeAny, {
1055
+ environmentId: string;
1056
+ workspaceId: string;
1057
+ }, {
1058
+ environmentId: string;
1059
+ workspaceId: string;
1060
+ }>, "many">>;
1006
1061
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1007
1062
  user: z.ZodOptional<z.ZodString>;
1008
1063
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1019,14 +1074,14 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1019
1074
  sensitive: z.ZodOptional<z.ZodBoolean>;
1020
1075
  }, "strip", z.ZodTypeAny, {
1021
1076
  description: string;
1022
- authField: string;
1023
1077
  label: string;
1078
+ authField: string;
1024
1079
  optional?: boolean | undefined;
1025
1080
  sensitive?: boolean | undefined;
1026
1081
  }, {
1027
1082
  description: string;
1028
- authField: string;
1029
1083
  label: string;
1084
+ authField: string;
1030
1085
  optional?: boolean | undefined;
1031
1086
  sensitive?: boolean | undefined;
1032
1087
  }>, "many">>;
@@ -1042,8 +1097,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1042
1097
  icon?: string | undefined;
1043
1098
  authConfig?: {
1044
1099
  description: string;
1045
- authField: string;
1046
1100
  label: string;
1101
+ authField: string;
1047
1102
  optional?: boolean | undefined;
1048
1103
  sensitive?: boolean | undefined;
1049
1104
  }[] | undefined;
@@ -1059,8 +1114,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1059
1114
  icon?: string | undefined;
1060
1115
  authConfig?: {
1061
1116
  description: string;
1062
- authField: string;
1063
1117
  label: string;
1118
+ authField: string;
1064
1119
  optional?: boolean | undefined;
1065
1120
  sensitive?: boolean | undefined;
1066
1121
  }[] | undefined;
@@ -1109,19 +1164,19 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1109
1164
  content: string;
1110
1165
  }>;
1111
1166
  }, "strip", z.ZodTypeAny, {
1112
- input: {
1113
- content: string;
1114
- };
1115
1167
  output: {
1116
1168
  content: string;
1117
1169
  };
1118
- }, {
1119
1170
  input: {
1120
1171
  content: string;
1121
1172
  };
1173
+ }, {
1122
1174
  output: {
1123
1175
  content: string;
1124
1176
  };
1177
+ input: {
1178
+ content: string;
1179
+ };
1125
1180
  }>, "many">>;
1126
1181
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1127
1182
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1235,7 +1290,11 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1235
1290
  fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1236
1291
  resendImages: z.ZodOptional<z.ZodBoolean>;
1237
1292
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1238
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "artifacts" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "stop" | "greeting" | "spec" | "iconURL">, z.ZodAny, "strip">>, Partial<{
1293
+ }, "greeting" | "artifacts" | "stop" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "spec" | "iconURL">, z.ZodAny, "strip">>, Partial<{
1294
+ system?: string | undefined;
1295
+ greeting?: string | undefined;
1296
+ artifacts?: string | undefined;
1297
+ stop?: string[] | undefined;
1239
1298
  model?: string | null | undefined;
1240
1299
  modelLabel?: string | null | undefined;
1241
1300
  promptPrefix?: string | null | undefined;
@@ -1246,10 +1305,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1246
1305
  maxContextTokens?: number | undefined;
1247
1306
  promptCache?: boolean | undefined;
1248
1307
  promptCacheTtl?: "5m" | "1h" | undefined;
1249
- system?: string | undefined;
1250
1308
  thinking?: boolean | undefined;
1251
1309
  thinkingBudget?: number | undefined;
1252
- artifacts?: string | undefined;
1253
1310
  chatProjectId?: string | null | undefined;
1254
1311
  resendFiles?: boolean | undefined;
1255
1312
  reasoning_effort?: s.ReasoningEffort | null | undefined;
@@ -1282,8 +1339,6 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1282
1339
  } | null)[] | {
1283
1340
  [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1284
1341
  } | null) | undefined;
1285
- stop?: string[] | undefined;
1286
- greeting?: string | undefined;
1287
1342
  spec?: string | null | undefined;
1288
1343
  iconURL?: string | null | undefined;
1289
1344
  }>, z.objectInputType<Pick<{
@@ -1294,6 +1349,18 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1294
1349
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
1350
  pinned: z.ZodOptional<z.ZodBoolean>;
1296
1351
  isShared: z.ZodOptional<z.ZodBoolean>;
1352
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
1353
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
1354
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1355
+ environmentId: z.ZodString;
1356
+ workspaceId: z.ZodString;
1357
+ }, "strict", z.ZodTypeAny, {
1358
+ environmentId: string;
1359
+ workspaceId: string;
1360
+ }, {
1361
+ environmentId: string;
1362
+ workspaceId: string;
1363
+ }>, "many">>;
1297
1364
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1298
1365
  user: z.ZodOptional<z.ZodString>;
1299
1366
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1310,14 +1377,14 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1310
1377
  sensitive: z.ZodOptional<z.ZodBoolean>;
1311
1378
  }, "strip", z.ZodTypeAny, {
1312
1379
  description: string;
1313
- authField: string;
1314
1380
  label: string;
1381
+ authField: string;
1315
1382
  optional?: boolean | undefined;
1316
1383
  sensitive?: boolean | undefined;
1317
1384
  }, {
1318
1385
  description: string;
1319
- authField: string;
1320
1386
  label: string;
1387
+ authField: string;
1321
1388
  optional?: boolean | undefined;
1322
1389
  sensitive?: boolean | undefined;
1323
1390
  }>, "many">>;
@@ -1333,8 +1400,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1333
1400
  icon?: string | undefined;
1334
1401
  authConfig?: {
1335
1402
  description: string;
1336
- authField: string;
1337
1403
  label: string;
1404
+ authField: string;
1338
1405
  optional?: boolean | undefined;
1339
1406
  sensitive?: boolean | undefined;
1340
1407
  }[] | undefined;
@@ -1350,8 +1417,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1350
1417
  icon?: string | undefined;
1351
1418
  authConfig?: {
1352
1419
  description: string;
1353
- authField: string;
1354
1420
  label: string;
1421
+ authField: string;
1355
1422
  optional?: boolean | undefined;
1356
1423
  sensitive?: boolean | undefined;
1357
1424
  }[] | undefined;
@@ -1400,19 +1467,19 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1400
1467
  content: string;
1401
1468
  }>;
1402
1469
  }, "strip", z.ZodTypeAny, {
1403
- input: {
1404
- content: string;
1405
- };
1406
1470
  output: {
1407
1471
  content: string;
1408
1472
  };
1409
- }, {
1410
1473
  input: {
1411
1474
  content: string;
1412
1475
  };
1476
+ }, {
1413
1477
  output: {
1414
1478
  content: string;
1415
1479
  };
1480
+ input: {
1481
+ content: string;
1482
+ };
1416
1483
  }>, "many">>;
1417
1484
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1418
1485
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1526,5 +1593,5 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1526
1593
  fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1527
1594
  resendImages: z.ZodOptional<z.ZodBoolean>;
1528
1595
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1529
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "artifacts" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "stop" | "greeting" | "spec" | "iconURL">, z.ZodAny, "strip">>>;
1596
+ }, "greeting" | "artifacts" | "stop" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "chatProjectId" | "resendFiles" | "reasoning_effort" | "effort" | "thinkingDisplay" | "region" | "maxTokens" | "additionalModelRequestFields" | "spec" | "iconURL">, z.ZodAny, "strip">>>;
1530
1597
  export declare const bedrockOutputParser: (data: Record<string, unknown>) => Record<string, unknown>;
@@ -0,0 +1,26 @@
1
+ import type { CodeEnvironmentPermissionDecision, CodeEnvironmentUserConfigSchema, CodeEnvironmentUserSettings } from '../config';
2
+ export declare const CODE_APPROVAL_MODES: readonly ["ask", "acceptEdits", "fullAccess"];
3
+ export type CodeApprovalMode = (typeof CODE_APPROVAL_MODES)[number];
4
+ type CodePermissions = Required<NonNullable<CodeEnvironmentUserSettings['permissions']>>;
5
+ export type CodeApprovalConstraints = {
6
+ environment: 'attached' | 'managed';
7
+ enabled?: boolean;
8
+ allowedModes?: readonly CodeApprovalMode[];
9
+ configSchema?: CodeEnvironmentUserConfigSchema;
10
+ settings?: CodeEnvironmentUserSettings;
11
+ };
12
+ /** Omitted deployment configuration never grants unattended execution. */
13
+ export declare function getAllowedCodeApprovalModes({ enabled, allowedModes, configSchema, settings, environment, }: CodeApprovalConstraints): CodeApprovalMode[];
14
+ export declare class CodeApprovalModeError extends Error {
15
+ readonly code = "CODE_APPROVAL_MODE_NOT_ALLOWED";
16
+ constructor();
17
+ }
18
+ /** Validate untrusted request state again at admission, including after policy changes. */
19
+ export declare function resolveCodeApprovalMode(requested: unknown, constraints: CodeApprovalConstraints): CodeApprovalMode | undefined;
20
+ /** Apply a turn preference without modifying machine settings or overriding an existing deny. */
21
+ export declare function resolveCodePermissionDecision({ mode, category, decision, }: {
22
+ mode?: CodeApprovalMode;
23
+ category: keyof CodePermissions;
24
+ decision: CodeEnvironmentPermissionDecision;
25
+ }): CodeEnvironmentPermissionDecision;
26
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { TCodeEnvironmentPairingResponse } from '../types';
2
+ export type CodeWorkerShell = 'posix' | 'powershell';
3
+ export type CodeWorkerPairing = TCodeEnvironmentPairingResponse['pairing'];
4
+ export interface CodeWorkerRunOptions {
5
+ defaultWorkspace?: boolean;
6
+ allowWorkspaceWrites?: boolean;
7
+ allowWorkspaceCommands?: boolean;
8
+ }
9
+ export declare function isCodeWorkerShell(value: string): value is CodeWorkerShell;
10
+ export declare function createCodeWorkerSetupCommand(pairing: CodeWorkerPairing, shell: CodeWorkerShell, options?: CodeWorkerRunOptions): string;