@effect/ai-openai 0.11.4 → 0.12.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.
@@ -68,6 +68,10 @@ export class AssistantToolsFunction extends /*#__PURE__*/S.Struct({
68
68
  "type": AssistantToolsFunctionType,
69
69
  "function": FunctionObject
70
70
  }) {}
71
+ export class Metadata extends /*#__PURE__*/S.Record({
72
+ key: S.String,
73
+ value: S.Unknown
74
+ }) {}
71
75
  export class ResponseFormatTextType extends /*#__PURE__*/S.Literal("text") {}
72
76
  export class ResponseFormatText extends /*#__PURE__*/S.Struct({
73
77
  "type": ResponseFormatTextType
@@ -126,10 +130,7 @@ export class AssistantObject extends /*#__PURE__*/S.Struct({
126
130
  }), {
127
131
  nullable: true
128
132
  }),
129
- "metadata": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
130
- key: S.String,
131
- value: S.Unknown
132
- })),
133
+ "metadata": /*#__PURE__*/S.NullOr(Metadata),
133
134
  "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
134
135
  nullable: true,
135
136
  default: () => 1
@@ -189,10 +190,7 @@ export class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistan
189
190
  }), {
190
191
  nullable: true
191
192
  }),
192
- "metadata": S.optionalWith(S.Record({
193
- key: S.String,
194
- value: S.Unknown
195
- }), {
193
+ "metadata": S.optionalWith(Metadata, {
196
194
  nullable: true
197
195
  })
198
196
  })).pipe( /*#__PURE__*/S.maxItems(1)), {
@@ -204,10 +202,7 @@ export class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistan
204
202
  }), {
205
203
  nullable: true
206
204
  }),
207
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
208
- key: S.String,
209
- value: S.Unknown
210
- }), {
205
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
211
206
  nullable: true
212
207
  }),
213
208
  "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
@@ -258,10 +253,7 @@ export class ModifyAssistantRequest extends /*#__PURE__*/S.Class("ModifyAssistan
258
253
  }), {
259
254
  nullable: true
260
255
  }),
261
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
262
- key: S.String,
263
- value: S.Unknown
264
- }), {
256
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
265
257
  nullable: true
266
258
  }),
267
259
  "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
@@ -320,7 +312,7 @@ export class TranscriptionSegment extends /*#__PURE__*/S.Struct({
320
312
  }) {}
321
313
  export class CreateTranscriptionResponseVerboseJson extends /*#__PURE__*/S.Struct({
322
314
  "language": S.String,
323
- "duration": S.String,
315
+ "duration": S.Number,
324
316
  "text": S.String,
325
317
  "words": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(TranscriptionWord), {
326
318
  nullable: true
@@ -335,7 +327,7 @@ export class CreateTranslationResponseJson extends /*#__PURE__*/S.Struct({
335
327
  }) {}
336
328
  export class CreateTranslationResponseVerboseJson extends /*#__PURE__*/S.Struct({
337
329
  "language": S.String,
338
- "duration": S.String,
330
+ "duration": S.Number,
339
331
  "text": S.String,
340
332
  "segments": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(TranscriptionSegment), {
341
333
  nullable: true
@@ -421,10 +413,7 @@ export class Batch extends /*#__PURE__*/S.Struct({
421
413
  }), {
422
414
  nullable: true
423
415
  }),
424
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
425
- key: S.String,
426
- value: S.Unknown
427
- }), {
416
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
428
417
  nullable: true
429
418
  })
430
419
  }) {}
@@ -446,10 +435,7 @@ export class CreateBatchRequest extends /*#__PURE__*/S.Class("CreateBatchRequest
446
435
  "input_file_id": S.String,
447
436
  "endpoint": CreateBatchRequestEndpoint,
448
437
  "completion_window": CreateBatchRequestCompletionWindow,
449
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
450
- key: S.String,
451
- value: S.Unknown
452
- }), {
438
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
453
439
  nullable: true
454
440
  })
455
441
  }) {}
@@ -562,7 +548,7 @@ export class ChatCompletionRequestFunctionMessage extends /*#__PURE__*/S.Struct(
562
548
  "name": S.String
563
549
  }) {}
564
550
  export class ChatCompletionRequestMessage extends /*#__PURE__*/S.Union(ChatCompletionRequestDeveloperMessage, ChatCompletionRequestSystemMessage, ChatCompletionRequestUserMessage, ChatCompletionRequestAssistantMessage, ChatCompletionRequestToolMessage, ChatCompletionRequestFunctionMessage) {}
565
- export class CreateChatCompletionRequestModel extends /*#__PURE__*/S.Literal("o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
551
+ export class CreateChatCompletionRequestModel extends /*#__PURE__*/S.Literal("o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
566
552
  export class CreateChatCompletionRequestReasoningEffort extends /*#__PURE__*/S.Literal("low", "medium", "high") {}
567
553
  export class ChatCompletionModalities extends /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "audio")) {}
568
554
  export class PredictionContentType extends /*#__PURE__*/S.Literal("content") {}
@@ -616,10 +602,7 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
616
602
  nullable: true,
617
603
  default: () => "medium"
618
604
  }),
619
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
620
- key: S.String,
621
- value: S.Unknown
622
- }), {
605
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
623
606
  nullable: true
624
607
  }),
625
608
  "frequency_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
@@ -750,31 +733,37 @@ export class ChatCompletionTokenLogprob extends /*#__PURE__*/S.Struct({
750
733
  export class CreateChatCompletionResponseServiceTier extends /*#__PURE__*/S.Literal("scale", "default") {}
751
734
  export class CreateChatCompletionResponseObject extends /*#__PURE__*/S.Literal("chat.completion") {}
752
735
  export class CompletionUsage extends /*#__PURE__*/S.Struct({
753
- "completion_tokens": S.Int,
754
- "prompt_tokens": S.Int,
755
- "total_tokens": S.Int,
736
+ "completion_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
737
+ "prompt_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
738
+ "total_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
756
739
  "completion_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
757
740
  "accepted_prediction_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
758
- nullable: true
741
+ nullable: true,
742
+ default: () => 0
759
743
  }),
760
744
  "audio_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
761
- nullable: true
745
+ nullable: true,
746
+ default: () => 0
762
747
  }),
763
748
  "reasoning_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
764
- nullable: true
749
+ nullable: true,
750
+ default: () => 0
765
751
  }),
766
752
  "rejected_prediction_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
767
- nullable: true
753
+ nullable: true,
754
+ default: () => 0
768
755
  })
769
756
  }), {
770
757
  nullable: true
771
758
  }),
772
759
  "prompt_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
773
760
  "audio_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
774
- nullable: true
761
+ nullable: true,
762
+ default: () => 0
775
763
  }),
776
764
  "cached_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
777
- nullable: true
765
+ nullable: true,
766
+ default: () => 0
778
767
  })
779
768
  }), {
780
769
  nullable: true
@@ -2644,6 +2633,9 @@ export class ListUsersParams extends /*#__PURE__*/S.Struct({
2644
2633
  }),
2645
2634
  "after": /*#__PURE__*/S.optionalWith(S.String, {
2646
2635
  nullable: true
2636
+ }),
2637
+ "emails": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2638
+ nullable: true
2647
2639
  })
2648
2640
  }) {}
2649
2641
  export class UserListResponseObject extends /*#__PURE__*/S.Literal("list") {}
@@ -2699,6 +2691,12 @@ export class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("Realtime
2699
2691
  "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2700
2692
  "model": /*#__PURE__*/S.optionalWith(S.String, {
2701
2693
  nullable: true
2694
+ }),
2695
+ "language": /*#__PURE__*/S.optionalWith(S.String, {
2696
+ nullable: true
2697
+ }),
2698
+ "prompt": /*#__PURE__*/S.optionalWith(S.String, {
2699
+ nullable: true
2702
2700
  })
2703
2701
  }), {
2704
2702
  nullable: true
@@ -2756,15 +2754,9 @@ export class RealtimeSessionCreateResponseVoice extends /*#__PURE__*/S.Literal("
2756
2754
  export class RealtimeSessionCreateResponseToolsType extends /*#__PURE__*/S.Literal("function") {}
2757
2755
  export class RealtimeSessionCreateResponseMaxResponseOutputTokens extends /*#__PURE__*/S.Literal("inf") {}
2758
2756
  export class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("RealtimeSessionCreateResponse")({
2759
- "client_secret": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2760
- "value": /*#__PURE__*/S.optionalWith(S.String, {
2761
- nullable: true
2762
- }),
2763
- "expires_at": /*#__PURE__*/S.optionalWith(S.Int, {
2764
- nullable: true
2765
- })
2766
- }), {
2767
- nullable: true
2757
+ "client_secret": /*#__PURE__*/S.Struct({
2758
+ "value": S.String,
2759
+ "expires_at": S.Int
2768
2760
  }),
2769
2761
  "instructions": /*#__PURE__*/S.optionalWith(S.String, {
2770
2762
  nullable: true
@@ -2877,10 +2869,7 @@ export class CreateMessageRequest extends /*#__PURE__*/S.Struct({
2877
2869
  })), {
2878
2870
  nullable: true
2879
2871
  }),
2880
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
2881
- key: S.String,
2882
- value: S.Unknown
2883
- }), {
2872
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
2884
2873
  nullable: true
2885
2874
  })
2886
2875
  }) {}
@@ -2912,10 +2901,7 @@ export class CreateThreadRequest extends /*#__PURE__*/S.Class("CreateThreadReque
2912
2901
  }), {
2913
2902
  nullable: true
2914
2903
  }),
2915
- "metadata": S.optionalWith(S.Record({
2916
- key: S.String,
2917
- value: S.Unknown
2918
- }), {
2904
+ "metadata": S.optionalWith(Metadata, {
2919
2905
  nullable: true
2920
2906
  })
2921
2907
  })).pipe( /*#__PURE__*/S.maxItems(1)), {
@@ -2927,10 +2913,7 @@ export class CreateThreadRequest extends /*#__PURE__*/S.Class("CreateThreadReque
2927
2913
  }), {
2928
2914
  nullable: true
2929
2915
  }),
2930
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
2931
- key: S.String,
2932
- value: S.Unknown
2933
- }), {
2916
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
2934
2917
  nullable: true
2935
2918
  })
2936
2919
  }) {}
@@ -2956,10 +2939,7 @@ export class ThreadObject extends /*#__PURE__*/S.Class("ThreadObject")({
2956
2939
  nullable: true
2957
2940
  })
2958
2941
  })),
2959
- "metadata": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
2960
- key: S.String,
2961
- value: S.Unknown
2962
- }))
2942
+ "metadata": /*#__PURE__*/S.NullOr(Metadata)
2963
2943
  }) {}
2964
2944
  export class CreateThreadAndRunRequestModel extends /*#__PURE__*/S.Literal("gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
2965
2945
  export class TruncationObjectType extends /*#__PURE__*/S.Literal("auto", "last_messages") {}
@@ -3012,10 +2992,7 @@ export class CreateThreadAndRunRequest extends /*#__PURE__*/S.Class("CreateThrea
3012
2992
  }), {
3013
2993
  nullable: true
3014
2994
  }),
3015
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3016
- key: S.String,
3017
- value: S.Unknown
3018
- }), {
2995
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3019
2996
  nullable: true
3020
2997
  }),
3021
2998
  "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
@@ -3098,10 +3075,7 @@ export class RunObject extends /*#__PURE__*/S.Class("RunObject")({
3098
3075
  "model": S.String,
3099
3076
  "instructions": S.String,
3100
3077
  "tools": /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(S.maxItems(20)).pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => [])),
3101
- "metadata": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
3102
- key: S.String,
3103
- value: S.Unknown
3104
- })),
3078
+ "metadata": /*#__PURE__*/S.NullOr(Metadata),
3105
3079
  "usage": /*#__PURE__*/S.NullOr(RunCompletionUsage),
3106
3080
  "temperature": /*#__PURE__*/S.optionalWith(S.Number, {
3107
3081
  nullable: true
@@ -3136,10 +3110,7 @@ export class ModifyThreadRequest extends /*#__PURE__*/S.Class("ModifyThreadReque
3136
3110
  }), {
3137
3111
  nullable: true
3138
3112
  }),
3139
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3140
- key: S.String,
3141
- value: S.Unknown
3142
- }), {
3113
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3143
3114
  nullable: true
3144
3115
  })
3145
3116
  }) {}
@@ -3229,10 +3200,7 @@ export class MessageObject extends /*#__PURE__*/S.Struct({
3229
3200
  nullable: true
3230
3201
  })
3231
3202
  }))),
3232
- "metadata": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
3233
- key: S.String,
3234
- value: S.Unknown
3235
- }))
3203
+ "metadata": /*#__PURE__*/S.NullOr(Metadata)
3236
3204
  }) {}
3237
3205
  export class ListMessagesResponse extends /*#__PURE__*/S.Class("ListMessagesResponse")({
3238
3206
  "object": S.String,
@@ -3242,10 +3210,7 @@ export class ListMessagesResponse extends /*#__PURE__*/S.Class("ListMessagesResp
3242
3210
  "has_more": S.Boolean
3243
3211
  }) {}
3244
3212
  export class ModifyMessageRequest extends /*#__PURE__*/S.Class("ModifyMessageRequest")({
3245
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3246
- key: S.String,
3247
- value: S.Unknown
3248
- }), {
3213
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3249
3214
  nullable: true
3250
3215
  })
3251
3216
  }) {}
@@ -3303,10 +3268,7 @@ export class CreateRunRequest extends /*#__PURE__*/S.Class("CreateRunRequest")({
3303
3268
  "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(20)), {
3304
3269
  nullable: true
3305
3270
  }),
3306
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3307
- key: S.String,
3308
- value: S.Unknown
3309
- }), {
3271
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3310
3272
  nullable: true
3311
3273
  }),
3312
3274
  "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
@@ -3341,10 +3303,7 @@ export class CreateRunRequest extends /*#__PURE__*/S.Class("CreateRunRequest")({
3341
3303
  })
3342
3304
  }) {}
3343
3305
  export class ModifyRunRequest extends /*#__PURE__*/S.Class("ModifyRunRequest")({
3344
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3345
- key: S.String,
3346
- value: S.Unknown
3347
- }), {
3306
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3348
3307
  nullable: true
3349
3308
  })
3350
3309
  }) {}
@@ -3479,10 +3438,7 @@ export class RunStepObject extends /*#__PURE__*/S.Struct({
3479
3438
  "cancelled_at": /*#__PURE__*/S.NullOr(S.Int),
3480
3439
  "failed_at": /*#__PURE__*/S.NullOr(S.Int),
3481
3440
  "completed_at": /*#__PURE__*/S.NullOr(S.Int),
3482
- "metadata": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
3483
- key: S.String,
3484
- value: S.Unknown
3485
- })),
3441
+ "metadata": /*#__PURE__*/S.NullOr(Metadata),
3486
3442
  "usage": /*#__PURE__*/S.NullOr(RunStepCompletionUsage)
3487
3443
  }) {}
3488
3444
  export class ListRunStepsResponse extends /*#__PURE__*/S.Class("ListRunStepsResponse")({
@@ -3593,10 +3549,7 @@ export class VectorStoreObject extends /*#__PURE__*/S.Struct({
3593
3549
  nullable: true
3594
3550
  }),
3595
3551
  "last_active_at": /*#__PURE__*/S.NullOr(S.Int),
3596
- "metadata": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
3597
- key: S.String,
3598
- value: S.Unknown
3599
- }))
3552
+ "metadata": /*#__PURE__*/S.NullOr(Metadata)
3600
3553
  }) {}
3601
3554
  export class ListVectorStoresResponse extends /*#__PURE__*/S.Class("ListVectorStoresResponse")({
3602
3555
  "object": S.String,
@@ -3634,10 +3587,7 @@ export class CreateVectorStoreRequest extends /*#__PURE__*/S.Class("CreateVector
3634
3587
  }), {
3635
3588
  nullable: true
3636
3589
  }),
3637
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3638
- key: S.String,
3639
- value: S.Unknown
3640
- }), {
3590
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3641
3591
  nullable: true
3642
3592
  })
3643
3593
  }) {}
@@ -3648,10 +3598,7 @@ export class UpdateVectorStoreRequest extends /*#__PURE__*/S.Class("UpdateVector
3648
3598
  "expires_after": /*#__PURE__*/S.optionalWith(VectorStoreExpirationAfter, {
3649
3599
  nullable: true
3650
3600
  }),
3651
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3652
- key: S.String,
3653
- value: S.Unknown
3654
- }), {
3601
+ "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3655
3602
  nullable: true
3656
3603
  })
3657
3604
  }) {}
@@ -3778,13 +3725,14 @@ export class DeleteVectorStoreFileResponse extends /*#__PURE__*/S.Class("DeleteV
3778
3725
  "deleted": S.Boolean,
3779
3726
  "object": DeleteVectorStoreFileResponseObject
3780
3727
  }) {}
3781
- export const make = httpClient => {
3728
+ export const make = (httpClient, options = {}) => {
3782
3729
  const unexpectedStatus = (request, response) => Effect.flatMap(Effect.orElseSucceed(response.text, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.ResponseError({
3783
3730
  request,
3784
3731
  response,
3785
3732
  reason: "StatusCode",
3786
3733
  description
3787
3734
  })));
3735
+ const applyClientTransform = client => options.transformClient ? options.transformClient(client) : Effect.succeed(client);
3788
3736
  const decodeError = (response, schema) => Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)(response), Effect.fail);
3789
3737
  return {
3790
3738
  "listAssistants": options => HttpClientRequest.make("GET")(`/assistants`).pipe(HttpClientRequest.setUrlParams({
@@ -3792,174 +3740,174 @@ export const make = httpClient => {
3792
3740
  "order": options["order"],
3793
3741
  "after": options["after"],
3794
3742
  "before": options["before"]
3795
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3743
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3796
3744
  "200": r => HttpClientResponse.schemaBodyJson(ListAssistantsResponse)(r),
3797
3745
  orElse: response => unexpectedStatus(request, response)
3798
- }))), Effect.scoped),
3799
- "createAssistant": options => HttpClientRequest.make("POST")(`/assistants`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3746
+ })))), Effect.scoped),
3747
+ "createAssistant": options => HttpClientRequest.make("POST")(`/assistants`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3800
3748
  "200": r => HttpClientResponse.schemaBodyJson(AssistantObject)(r),
3801
3749
  orElse: response => unexpectedStatus(request, response)
3802
- }))), Effect.scoped),
3803
- "getAssistant": assistantId => HttpClientRequest.make("GET")(`/assistants/${assistantId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3750
+ })))), Effect.scoped),
3751
+ "getAssistant": assistantId => HttpClientRequest.make("GET")(`/assistants/${assistantId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3804
3752
  "200": r => HttpClientResponse.schemaBodyJson(AssistantObject)(r),
3805
3753
  orElse: response => unexpectedStatus(request, response)
3806
- }))), Effect.scoped),
3807
- "modifyAssistant": (assistantId, options) => HttpClientRequest.make("POST")(`/assistants/${assistantId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3754
+ })))), Effect.scoped),
3755
+ "modifyAssistant": (assistantId, options) => HttpClientRequest.make("POST")(`/assistants/${assistantId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3808
3756
  "200": r => HttpClientResponse.schemaBodyJson(AssistantObject)(r),
3809
3757
  orElse: response => unexpectedStatus(request, response)
3810
- }))), Effect.scoped),
3811
- "deleteAssistant": assistantId => HttpClientRequest.make("DELETE")(`/assistants/${assistantId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3758
+ })))), Effect.scoped),
3759
+ "deleteAssistant": assistantId => HttpClientRequest.make("DELETE")(`/assistants/${assistantId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3812
3760
  "200": r => HttpClientResponse.schemaBodyJson(DeleteAssistantResponse)(r),
3813
3761
  orElse: response => unexpectedStatus(request, response)
3814
- }))), Effect.scoped),
3815
- "createSpeech": options => HttpClientRequest.make("POST")(`/audio/speech`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3762
+ })))), Effect.scoped),
3763
+ "createSpeech": options => HttpClientRequest.make("POST")(`/audio/speech`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3816
3764
  orElse: response => unexpectedStatus(request, response)
3817
- }))), Effect.scoped),
3818
- "createTranscription": options => HttpClientRequest.make("POST")(`/audio/transcriptions`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3765
+ })))), Effect.scoped),
3766
+ "createTranscription": options => HttpClientRequest.make("POST")(`/audio/transcriptions`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3819
3767
  "200": r => HttpClientResponse.schemaBodyJson(CreateTranscription200)(r),
3820
3768
  orElse: response => unexpectedStatus(request, response)
3821
- }))), Effect.scoped),
3822
- "createTranslation": options => HttpClientRequest.make("POST")(`/audio/translations`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3769
+ })))), Effect.scoped),
3770
+ "createTranslation": options => HttpClientRequest.make("POST")(`/audio/translations`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3823
3771
  "200": r => HttpClientResponse.schemaBodyJson(CreateTranslation200)(r),
3824
3772
  orElse: response => unexpectedStatus(request, response)
3825
- }))), Effect.scoped),
3773
+ })))), Effect.scoped),
3826
3774
  "listBatches": options => HttpClientRequest.make("GET")(`/batches`).pipe(HttpClientRequest.setUrlParams({
3827
3775
  "after": options["after"],
3828
3776
  "limit": options["limit"]
3829
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3777
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3830
3778
  "200": r => HttpClientResponse.schemaBodyJson(ListBatchesResponse)(r),
3831
3779
  orElse: response => unexpectedStatus(request, response)
3832
- }))), Effect.scoped),
3833
- "createBatch": options => HttpClientRequest.make("POST")(`/batches`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3780
+ })))), Effect.scoped),
3781
+ "createBatch": options => HttpClientRequest.make("POST")(`/batches`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3834
3782
  "200": r => HttpClientResponse.schemaBodyJson(Batch)(r),
3835
3783
  orElse: response => unexpectedStatus(request, response)
3836
- }))), Effect.scoped),
3837
- "retrieveBatch": batchId => HttpClientRequest.make("GET")(`/batches/${batchId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3784
+ })))), Effect.scoped),
3785
+ "retrieveBatch": batchId => HttpClientRequest.make("GET")(`/batches/${batchId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3838
3786
  "200": r => HttpClientResponse.schemaBodyJson(Batch)(r),
3839
3787
  orElse: response => unexpectedStatus(request, response)
3840
- }))), Effect.scoped),
3841
- "cancelBatch": batchId => HttpClientRequest.make("POST")(`/batches/${batchId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3788
+ })))), Effect.scoped),
3789
+ "cancelBatch": batchId => HttpClientRequest.make("POST")(`/batches/${batchId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3842
3790
  "200": r => HttpClientResponse.schemaBodyJson(Batch)(r),
3843
3791
  orElse: response => unexpectedStatus(request, response)
3844
- }))), Effect.scoped),
3845
- "createChatCompletion": options => HttpClientRequest.make("POST")(`/chat/completions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3792
+ })))), Effect.scoped),
3793
+ "createChatCompletion": options => HttpClientRequest.make("POST")(`/chat/completions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3846
3794
  "200": r => HttpClientResponse.schemaBodyJson(CreateChatCompletionResponse)(r),
3847
3795
  orElse: response => unexpectedStatus(request, response)
3848
- }))), Effect.scoped),
3849
- "createCompletion": options => HttpClientRequest.make("POST")(`/completions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3796
+ })))), Effect.scoped),
3797
+ "createCompletion": options => HttpClientRequest.make("POST")(`/completions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3850
3798
  "200": r => HttpClientResponse.schemaBodyJson(CreateCompletionResponse)(r),
3851
3799
  orElse: response => unexpectedStatus(request, response)
3852
- }))), Effect.scoped),
3853
- "createEmbedding": options => HttpClientRequest.make("POST")(`/embeddings`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3800
+ })))), Effect.scoped),
3801
+ "createEmbedding": options => HttpClientRequest.make("POST")(`/embeddings`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3854
3802
  "200": r => HttpClientResponse.schemaBodyJson(CreateEmbeddingResponse)(r),
3855
3803
  orElse: response => unexpectedStatus(request, response)
3856
- }))), Effect.scoped),
3804
+ })))), Effect.scoped),
3857
3805
  "listFiles": options => HttpClientRequest.make("GET")(`/files`).pipe(HttpClientRequest.setUrlParams({
3858
3806
  "purpose": options["purpose"],
3859
3807
  "limit": options["limit"],
3860
3808
  "order": options["order"],
3861
3809
  "after": options["after"]
3862
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3810
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3863
3811
  "200": r => HttpClientResponse.schemaBodyJson(ListFilesResponse)(r),
3864
3812
  orElse: response => unexpectedStatus(request, response)
3865
- }))), Effect.scoped),
3866
- "createFile": options => HttpClientRequest.make("POST")(`/files`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3813
+ })))), Effect.scoped),
3814
+ "createFile": options => HttpClientRequest.make("POST")(`/files`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3867
3815
  "200": r => HttpClientResponse.schemaBodyJson(OpenAIFile)(r),
3868
3816
  orElse: response => unexpectedStatus(request, response)
3869
- }))), Effect.scoped),
3870
- "retrieveFile": fileId => HttpClientRequest.make("GET")(`/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3817
+ })))), Effect.scoped),
3818
+ "retrieveFile": fileId => HttpClientRequest.make("GET")(`/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3871
3819
  "200": r => HttpClientResponse.schemaBodyJson(OpenAIFile)(r),
3872
3820
  orElse: response => unexpectedStatus(request, response)
3873
- }))), Effect.scoped),
3874
- "deleteFile": fileId => HttpClientRequest.make("DELETE")(`/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3821
+ })))), Effect.scoped),
3822
+ "deleteFile": fileId => HttpClientRequest.make("DELETE")(`/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3875
3823
  "200": r => HttpClientResponse.schemaBodyJson(DeleteFileResponse)(r),
3876
3824
  orElse: response => unexpectedStatus(request, response)
3877
- }))), Effect.scoped),
3878
- "downloadFile": fileId => HttpClientRequest.make("GET")(`/files/${fileId}/content`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3825
+ })))), Effect.scoped),
3826
+ "downloadFile": fileId => HttpClientRequest.make("GET")(`/files/${fileId}/content`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3879
3827
  "200": r => HttpClientResponse.schemaBodyJson(DownloadFile200)(r),
3880
3828
  orElse: response => unexpectedStatus(request, response)
3881
- }))), Effect.scoped),
3829
+ })))), Effect.scoped),
3882
3830
  "listPaginatedFineTuningJobs": options => HttpClientRequest.make("GET")(`/fine_tuning/jobs`).pipe(HttpClientRequest.setUrlParams({
3883
3831
  "after": options["after"],
3884
3832
  "limit": options["limit"]
3885
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3833
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3886
3834
  "200": r => HttpClientResponse.schemaBodyJson(ListPaginatedFineTuningJobsResponse)(r),
3887
3835
  orElse: response => unexpectedStatus(request, response)
3888
- }))), Effect.scoped),
3889
- "createFineTuningJob": options => HttpClientRequest.make("POST")(`/fine_tuning/jobs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3836
+ })))), Effect.scoped),
3837
+ "createFineTuningJob": options => HttpClientRequest.make("POST")(`/fine_tuning/jobs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3890
3838
  "200": r => HttpClientResponse.schemaBodyJson(FineTuningJob)(r),
3891
3839
  orElse: response => unexpectedStatus(request, response)
3892
- }))), Effect.scoped),
3893
- "retrieveFineTuningJob": fineTuningJobId => HttpClientRequest.make("GET")(`/fine_tuning/jobs/${fineTuningJobId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3840
+ })))), Effect.scoped),
3841
+ "retrieveFineTuningJob": fineTuningJobId => HttpClientRequest.make("GET")(`/fine_tuning/jobs/${fineTuningJobId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3894
3842
  "200": r => HttpClientResponse.schemaBodyJson(FineTuningJob)(r),
3895
3843
  orElse: response => unexpectedStatus(request, response)
3896
- }))), Effect.scoped),
3897
- "cancelFineTuningJob": fineTuningJobId => HttpClientRequest.make("POST")(`/fine_tuning/jobs/${fineTuningJobId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3844
+ })))), Effect.scoped),
3845
+ "cancelFineTuningJob": fineTuningJobId => HttpClientRequest.make("POST")(`/fine_tuning/jobs/${fineTuningJobId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3898
3846
  "200": r => HttpClientResponse.schemaBodyJson(FineTuningJob)(r),
3899
3847
  orElse: response => unexpectedStatus(request, response)
3900
- }))), Effect.scoped),
3848
+ })))), Effect.scoped),
3901
3849
  "listFineTuningJobCheckpoints": (fineTuningJobId, options) => HttpClientRequest.make("GET")(`/fine_tuning/jobs/${fineTuningJobId}/checkpoints`).pipe(HttpClientRequest.setUrlParams({
3902
3850
  "after": options["after"],
3903
3851
  "limit": options["limit"]
3904
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3852
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3905
3853
  "200": r => HttpClientResponse.schemaBodyJson(ListFineTuningJobCheckpointsResponse)(r),
3906
3854
  orElse: response => unexpectedStatus(request, response)
3907
- }))), Effect.scoped),
3855
+ })))), Effect.scoped),
3908
3856
  "listFineTuningEvents": (fineTuningJobId, options) => HttpClientRequest.make("GET")(`/fine_tuning/jobs/${fineTuningJobId}/events`).pipe(HttpClientRequest.setUrlParams({
3909
3857
  "after": options["after"],
3910
3858
  "limit": options["limit"]
3911
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3859
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3912
3860
  "200": r => HttpClientResponse.schemaBodyJson(ListFineTuningJobEventsResponse)(r),
3913
3861
  orElse: response => unexpectedStatus(request, response)
3914
- }))), Effect.scoped),
3915
- "createImageEdit": options => HttpClientRequest.make("POST")(`/images/edits`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3862
+ })))), Effect.scoped),
3863
+ "createImageEdit": options => HttpClientRequest.make("POST")(`/images/edits`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3916
3864
  "200": r => HttpClientResponse.schemaBodyJson(ImagesResponse)(r),
3917
3865
  orElse: response => unexpectedStatus(request, response)
3918
- }))), Effect.scoped),
3919
- "createImage": options => HttpClientRequest.make("POST")(`/images/generations`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3866
+ })))), Effect.scoped),
3867
+ "createImage": options => HttpClientRequest.make("POST")(`/images/generations`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3920
3868
  "200": r => HttpClientResponse.schemaBodyJson(ImagesResponse)(r),
3921
3869
  orElse: response => unexpectedStatus(request, response)
3922
- }))), Effect.scoped),
3923
- "createImageVariation": options => HttpClientRequest.make("POST")(`/images/variations`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3870
+ })))), Effect.scoped),
3871
+ "createImageVariation": options => HttpClientRequest.make("POST")(`/images/variations`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3924
3872
  "200": r => HttpClientResponse.schemaBodyJson(ImagesResponse)(r),
3925
3873
  orElse: response => unexpectedStatus(request, response)
3926
- }))), Effect.scoped),
3927
- "listModels": () => HttpClientRequest.make("GET")(`/models`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3874
+ })))), Effect.scoped),
3875
+ "listModels": () => HttpClientRequest.make("GET")(`/models`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3928
3876
  "200": r => HttpClientResponse.schemaBodyJson(ListModelsResponse)(r),
3929
3877
  orElse: response => unexpectedStatus(request, response)
3930
- }))), Effect.scoped),
3931
- "retrieveModel": model => HttpClientRequest.make("GET")(`/models/${model}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3878
+ })))), Effect.scoped),
3879
+ "retrieveModel": model => HttpClientRequest.make("GET")(`/models/${model}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3932
3880
  "200": r => HttpClientResponse.schemaBodyJson(Model)(r),
3933
3881
  orElse: response => unexpectedStatus(request, response)
3934
- }))), Effect.scoped),
3935
- "deleteModel": model => HttpClientRequest.make("DELETE")(`/models/${model}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3882
+ })))), Effect.scoped),
3883
+ "deleteModel": model => HttpClientRequest.make("DELETE")(`/models/${model}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3936
3884
  "200": r => HttpClientResponse.schemaBodyJson(DeleteModelResponse)(r),
3937
3885
  orElse: response => unexpectedStatus(request, response)
3938
- }))), Effect.scoped),
3939
- "createModeration": options => HttpClientRequest.make("POST")(`/moderations`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3886
+ })))), Effect.scoped),
3887
+ "createModeration": options => HttpClientRequest.make("POST")(`/moderations`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3940
3888
  "200": r => HttpClientResponse.schemaBodyJson(CreateModerationResponse)(r),
3941
3889
  orElse: response => unexpectedStatus(request, response)
3942
- }))), Effect.scoped),
3890
+ })))), Effect.scoped),
3943
3891
  "adminApiKeysList": options => HttpClientRequest.make("GET")(`/organization/admin_api_keys`).pipe(HttpClientRequest.setUrlParams({
3944
3892
  "after": options["after"],
3945
3893
  "order": options["order"],
3946
3894
  "limit": options["limit"]
3947
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3895
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3948
3896
  "200": r => HttpClientResponse.schemaBodyJson(ApiKeyList)(r),
3949
3897
  orElse: response => unexpectedStatus(request, response)
3950
- }))), Effect.scoped),
3951
- "adminApiKeysCreate": options => HttpClientRequest.make("POST")(`/organization/admin_api_keys`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3898
+ })))), Effect.scoped),
3899
+ "adminApiKeysCreate": options => HttpClientRequest.make("POST")(`/organization/admin_api_keys`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3952
3900
  "200": r => HttpClientResponse.schemaBodyJson(AdminApiKey)(r),
3953
3901
  orElse: response => unexpectedStatus(request, response)
3954
- }))), Effect.scoped),
3955
- "adminApiKeysGet": keyId => HttpClientRequest.make("GET")(`/organization/admin_api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3902
+ })))), Effect.scoped),
3903
+ "adminApiKeysGet": keyId => HttpClientRequest.make("GET")(`/organization/admin_api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3956
3904
  "200": r => HttpClientResponse.schemaBodyJson(AdminApiKey)(r),
3957
3905
  orElse: response => unexpectedStatus(request, response)
3958
- }))), Effect.scoped),
3959
- "adminApiKeysDelete": keyId => HttpClientRequest.make("DELETE")(`/organization/admin_api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3906
+ })))), Effect.scoped),
3907
+ "adminApiKeysDelete": keyId => HttpClientRequest.make("DELETE")(`/organization/admin_api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3960
3908
  "200": r => HttpClientResponse.schemaBodyJson(AdminApiKeysDelete200)(r),
3961
3909
  orElse: response => unexpectedStatus(request, response)
3962
- }))), Effect.scoped),
3910
+ })))), Effect.scoped),
3963
3911
  "listAuditLogs": options => HttpClientRequest.make("GET")(`/organization/audit_logs`).pipe(HttpClientRequest.setUrlParams({
3964
3912
  "effective_at[gt]": options["effective_at[gt]"],
3965
3913
  "effective_at[gte]": options["effective_at[gte]"],
@@ -3973,10 +3921,10 @@ export const make = httpClient => {
3973
3921
  "limit": options["limit"],
3974
3922
  "after": options["after"],
3975
3923
  "before": options["before"]
3976
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3924
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3977
3925
  "200": r => HttpClientResponse.schemaBodyJson(ListAuditLogsResponse)(r),
3978
3926
  orElse: response => unexpectedStatus(request, response)
3979
- }))), Effect.scoped),
3927
+ })))), Effect.scoped),
3980
3928
  "usageCosts": options => HttpClientRequest.make("GET")(`/organization/costs`).pipe(HttpClientRequest.setUrlParams({
3981
3929
  "start_time": options["start_time"],
3982
3930
  "end_time": options["end_time"],
@@ -3985,131 +3933,131 @@ export const make = httpClient => {
3985
3933
  "group_by": options["group_by"],
3986
3934
  "limit": options["limit"],
3987
3935
  "page": options["page"]
3988
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3936
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3989
3937
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
3990
3938
  orElse: response => unexpectedStatus(request, response)
3991
- }))), Effect.scoped),
3939
+ })))), Effect.scoped),
3992
3940
  "listInvites": options => HttpClientRequest.make("GET")(`/organization/invites`).pipe(HttpClientRequest.setUrlParams({
3993
3941
  "limit": options["limit"],
3994
3942
  "after": options["after"]
3995
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3943
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3996
3944
  "200": r => HttpClientResponse.schemaBodyJson(InviteListResponse)(r),
3997
3945
  orElse: response => unexpectedStatus(request, response)
3998
- }))), Effect.scoped),
3999
- "inviteUser": options => HttpClientRequest.make("POST")(`/organization/invites`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3946
+ })))), Effect.scoped),
3947
+ "inviteUser": options => HttpClientRequest.make("POST")(`/organization/invites`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4000
3948
  "200": r => HttpClientResponse.schemaBodyJson(Invite)(r),
4001
3949
  orElse: response => unexpectedStatus(request, response)
4002
- }))), Effect.scoped),
4003
- "retrieveInvite": inviteId => HttpClientRequest.make("GET")(`/organization/invites/${inviteId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3950
+ })))), Effect.scoped),
3951
+ "retrieveInvite": inviteId => HttpClientRequest.make("GET")(`/organization/invites/${inviteId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4004
3952
  "200": r => HttpClientResponse.schemaBodyJson(Invite)(r),
4005
3953
  orElse: response => unexpectedStatus(request, response)
4006
- }))), Effect.scoped),
4007
- "deleteInvite": inviteId => HttpClientRequest.make("DELETE")(`/organization/invites/${inviteId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3954
+ })))), Effect.scoped),
3955
+ "deleteInvite": inviteId => HttpClientRequest.make("DELETE")(`/organization/invites/${inviteId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4008
3956
  "200": r => HttpClientResponse.schemaBodyJson(InviteDeleteResponse)(r),
4009
3957
  orElse: response => unexpectedStatus(request, response)
4010
- }))), Effect.scoped),
3958
+ })))), Effect.scoped),
4011
3959
  "listProjects": options => HttpClientRequest.make("GET")(`/organization/projects`).pipe(HttpClientRequest.setUrlParams({
4012
3960
  "limit": options["limit"],
4013
3961
  "after": options["after"],
4014
3962
  "include_archived": options["include_archived"]
4015
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3963
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4016
3964
  "200": r => HttpClientResponse.schemaBodyJson(ProjectListResponse)(r),
4017
3965
  orElse: response => unexpectedStatus(request, response)
4018
- }))), Effect.scoped),
4019
- "createProject": options => HttpClientRequest.make("POST")(`/organization/projects`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3966
+ })))), Effect.scoped),
3967
+ "createProject": options => HttpClientRequest.make("POST")(`/organization/projects`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4020
3968
  "200": r => HttpClientResponse.schemaBodyJson(Project)(r),
4021
3969
  orElse: response => unexpectedStatus(request, response)
4022
- }))), Effect.scoped),
4023
- "retrieveProject": projectId => HttpClientRequest.make("GET")(`/organization/projects/${projectId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3970
+ })))), Effect.scoped),
3971
+ "retrieveProject": projectId => HttpClientRequest.make("GET")(`/organization/projects/${projectId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4024
3972
  "200": r => HttpClientResponse.schemaBodyJson(Project)(r),
4025
3973
  orElse: response => unexpectedStatus(request, response)
4026
- }))), Effect.scoped),
4027
- "modifyProject": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3974
+ })))), Effect.scoped),
3975
+ "modifyProject": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4028
3976
  "200": r => HttpClientResponse.schemaBodyJson(Project)(r),
4029
3977
  "400": r => decodeError(r, ErrorResponse),
4030
3978
  orElse: response => unexpectedStatus(request, response)
4031
- }))), Effect.scoped),
3979
+ })))), Effect.scoped),
4032
3980
  "listProjectApiKeys": (projectId, options) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/api_keys`).pipe(HttpClientRequest.setUrlParams({
4033
3981
  "limit": options["limit"],
4034
3982
  "after": options["after"]
4035
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3983
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4036
3984
  "200": r => HttpClientResponse.schemaBodyJson(ProjectApiKeyListResponse)(r),
4037
3985
  orElse: response => unexpectedStatus(request, response)
4038
- }))), Effect.scoped),
4039
- "retrieveProjectApiKey": (projectId, keyId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3986
+ })))), Effect.scoped),
3987
+ "retrieveProjectApiKey": (projectId, keyId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4040
3988
  "200": r => HttpClientResponse.schemaBodyJson(ProjectApiKey)(r),
4041
3989
  orElse: response => unexpectedStatus(request, response)
4042
- }))), Effect.scoped),
4043
- "deleteProjectApiKey": (projectId, keyId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3990
+ })))), Effect.scoped),
3991
+ "deleteProjectApiKey": (projectId, keyId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4044
3992
  "200": r => HttpClientResponse.schemaBodyJson(ProjectApiKeyDeleteResponse)(r),
4045
3993
  "400": r => decodeError(r, ErrorResponse),
4046
3994
  orElse: response => unexpectedStatus(request, response)
4047
- }))), Effect.scoped),
4048
- "archiveProject": projectId => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/archive`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
3995
+ })))), Effect.scoped),
3996
+ "archiveProject": projectId => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/archive`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4049
3997
  "200": r => HttpClientResponse.schemaBodyJson(Project)(r),
4050
3998
  orElse: response => unexpectedStatus(request, response)
4051
- }))), Effect.scoped),
3999
+ })))), Effect.scoped),
4052
4000
  "listProjectRateLimits": (projectId, options) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/rate_limits`).pipe(HttpClientRequest.setUrlParams({
4053
4001
  "limit": options["limit"],
4054
4002
  "after": options["after"],
4055
4003
  "before": options["before"]
4056
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4004
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4057
4005
  "200": r => HttpClientResponse.schemaBodyJson(ProjectRateLimitListResponse)(r),
4058
4006
  orElse: response => unexpectedStatus(request, response)
4059
- }))), Effect.scoped),
4060
- "updateProjectRateLimits": (projectId, rateLimitId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/rate_limits/${rateLimitId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4007
+ })))), Effect.scoped),
4008
+ "updateProjectRateLimits": (projectId, rateLimitId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/rate_limits/${rateLimitId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4061
4009
  "200": r => HttpClientResponse.schemaBodyJson(ProjectRateLimit)(r),
4062
4010
  "400": r => decodeError(r, ErrorResponse),
4063
4011
  orElse: response => unexpectedStatus(request, response)
4064
- }))), Effect.scoped),
4012
+ })))), Effect.scoped),
4065
4013
  "listProjectServiceAccounts": (projectId, options) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/service_accounts`).pipe(HttpClientRequest.setUrlParams({
4066
4014
  "limit": options["limit"],
4067
4015
  "after": options["after"]
4068
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4016
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4069
4017
  "200": r => HttpClientResponse.schemaBodyJson(ProjectServiceAccountListResponse)(r),
4070
4018
  "400": r => decodeError(r, ErrorResponse),
4071
4019
  orElse: response => unexpectedStatus(request, response)
4072
- }))), Effect.scoped),
4073
- "createProjectServiceAccount": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/service_accounts`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4020
+ })))), Effect.scoped),
4021
+ "createProjectServiceAccount": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/service_accounts`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4074
4022
  "200": r => HttpClientResponse.schemaBodyJson(ProjectServiceAccountCreateResponse)(r),
4075
4023
  "400": r => decodeError(r, ErrorResponse),
4076
4024
  orElse: response => unexpectedStatus(request, response)
4077
- }))), Effect.scoped),
4078
- "retrieveProjectServiceAccount": (projectId, serviceAccountId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4025
+ })))), Effect.scoped),
4026
+ "retrieveProjectServiceAccount": (projectId, serviceAccountId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4079
4027
  "200": r => HttpClientResponse.schemaBodyJson(ProjectServiceAccount)(r),
4080
4028
  orElse: response => unexpectedStatus(request, response)
4081
- }))), Effect.scoped),
4082
- "deleteProjectServiceAccount": (projectId, serviceAccountId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4029
+ })))), Effect.scoped),
4030
+ "deleteProjectServiceAccount": (projectId, serviceAccountId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4083
4031
  "200": r => HttpClientResponse.schemaBodyJson(ProjectServiceAccountDeleteResponse)(r),
4084
4032
  orElse: response => unexpectedStatus(request, response)
4085
- }))), Effect.scoped),
4033
+ })))), Effect.scoped),
4086
4034
  "listProjectUsers": (projectId, options) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/users`).pipe(HttpClientRequest.setUrlParams({
4087
4035
  "limit": options["limit"],
4088
4036
  "after": options["after"]
4089
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4037
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4090
4038
  "200": r => HttpClientResponse.schemaBodyJson(ProjectUserListResponse)(r),
4091
4039
  "400": r => decodeError(r, ErrorResponse),
4092
4040
  orElse: response => unexpectedStatus(request, response)
4093
- }))), Effect.scoped),
4094
- "createProjectUser": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/users`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4041
+ })))), Effect.scoped),
4042
+ "createProjectUser": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/users`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4095
4043
  "200": r => HttpClientResponse.schemaBodyJson(ProjectUser)(r),
4096
4044
  "400": r => decodeError(r, ErrorResponse),
4097
4045
  orElse: response => unexpectedStatus(request, response)
4098
- }))), Effect.scoped),
4099
- "retrieveProjectUser": (projectId, userId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4046
+ })))), Effect.scoped),
4047
+ "retrieveProjectUser": (projectId, userId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4100
4048
  "200": r => HttpClientResponse.schemaBodyJson(ProjectUser)(r),
4101
4049
  orElse: response => unexpectedStatus(request, response)
4102
- }))), Effect.scoped),
4103
- "modifyProjectUser": (projectId, userId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/users/${userId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4050
+ })))), Effect.scoped),
4051
+ "modifyProjectUser": (projectId, userId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/users/${userId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4104
4052
  "200": r => HttpClientResponse.schemaBodyJson(ProjectUser)(r),
4105
4053
  "400": r => decodeError(r, ErrorResponse),
4106
4054
  orElse: response => unexpectedStatus(request, response)
4107
- }))), Effect.scoped),
4108
- "deleteProjectUser": (projectId, userId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4055
+ })))), Effect.scoped),
4056
+ "deleteProjectUser": (projectId, userId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4109
4057
  "200": r => HttpClientResponse.schemaBodyJson(ProjectUserDeleteResponse)(r),
4110
4058
  "400": r => decodeError(r, ErrorResponse),
4111
4059
  orElse: response => unexpectedStatus(request, response)
4112
- }))), Effect.scoped),
4060
+ })))), Effect.scoped),
4113
4061
  "usageAudioSpeeches": options => HttpClientRequest.make("GET")(`/organization/usage/audio_speeches`).pipe(HttpClientRequest.setUrlParams({
4114
4062
  "start_time": options["start_time"],
4115
4063
  "end_time": options["end_time"],
@@ -4121,10 +4069,10 @@ export const make = httpClient => {
4121
4069
  "group_by": options["group_by"],
4122
4070
  "limit": options["limit"],
4123
4071
  "page": options["page"]
4124
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4072
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4125
4073
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
4126
4074
  orElse: response => unexpectedStatus(request, response)
4127
- }))), Effect.scoped),
4075
+ })))), Effect.scoped),
4128
4076
  "usageAudioTranscriptions": options => HttpClientRequest.make("GET")(`/organization/usage/audio_transcriptions`).pipe(HttpClientRequest.setUrlParams({
4129
4077
  "start_time": options["start_time"],
4130
4078
  "end_time": options["end_time"],
@@ -4136,10 +4084,10 @@ export const make = httpClient => {
4136
4084
  "group_by": options["group_by"],
4137
4085
  "limit": options["limit"],
4138
4086
  "page": options["page"]
4139
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4087
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4140
4088
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
4141
4089
  orElse: response => unexpectedStatus(request, response)
4142
- }))), Effect.scoped),
4090
+ })))), Effect.scoped),
4143
4091
  "usageCodeInterpreterSessions": options => HttpClientRequest.make("GET")(`/organization/usage/code_interpreter_sessions`).pipe(HttpClientRequest.setUrlParams({
4144
4092
  "start_time": options["start_time"],
4145
4093
  "end_time": options["end_time"],
@@ -4148,10 +4096,10 @@ export const make = httpClient => {
4148
4096
  "group_by": options["group_by"],
4149
4097
  "limit": options["limit"],
4150
4098
  "page": options["page"]
4151
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4099
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4152
4100
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
4153
4101
  orElse: response => unexpectedStatus(request, response)
4154
- }))), Effect.scoped),
4102
+ })))), Effect.scoped),
4155
4103
  "usageCompletions": options => HttpClientRequest.make("GET")(`/organization/usage/completions`).pipe(HttpClientRequest.setUrlParams({
4156
4104
  "start_time": options["start_time"],
4157
4105
  "end_time": options["end_time"],
@@ -4164,10 +4112,10 @@ export const make = httpClient => {
4164
4112
  "group_by": options["group_by"],
4165
4113
  "limit": options["limit"],
4166
4114
  "page": options["page"]
4167
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4115
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4168
4116
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
4169
4117
  orElse: response => unexpectedStatus(request, response)
4170
- }))), Effect.scoped),
4118
+ })))), Effect.scoped),
4171
4119
  "usageEmbeddings": options => HttpClientRequest.make("GET")(`/organization/usage/embeddings`).pipe(HttpClientRequest.setUrlParams({
4172
4120
  "start_time": options["start_time"],
4173
4121
  "end_time": options["end_time"],
@@ -4179,10 +4127,10 @@ export const make = httpClient => {
4179
4127
  "group_by": options["group_by"],
4180
4128
  "limit": options["limit"],
4181
4129
  "page": options["page"]
4182
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4130
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4183
4131
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
4184
4132
  orElse: response => unexpectedStatus(request, response)
4185
- }))), Effect.scoped),
4133
+ })))), Effect.scoped),
4186
4134
  "usageImages": options => HttpClientRequest.make("GET")(`/organization/usage/images`).pipe(HttpClientRequest.setUrlParams({
4187
4135
  "start_time": options["start_time"],
4188
4136
  "end_time": options["end_time"],
@@ -4196,10 +4144,10 @@ export const make = httpClient => {
4196
4144
  "group_by": options["group_by"],
4197
4145
  "limit": options["limit"],
4198
4146
  "page": options["page"]
4199
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4147
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4200
4148
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
4201
4149
  orElse: response => unexpectedStatus(request, response)
4202
- }))), Effect.scoped),
4150
+ })))), Effect.scoped),
4203
4151
  "usageModerations": options => HttpClientRequest.make("GET")(`/organization/usage/moderations`).pipe(HttpClientRequest.setUrlParams({
4204
4152
  "start_time": options["start_time"],
4205
4153
  "end_time": options["end_time"],
@@ -4211,10 +4159,10 @@ export const make = httpClient => {
4211
4159
  "group_by": options["group_by"],
4212
4160
  "limit": options["limit"],
4213
4161
  "page": options["page"]
4214
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4162
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4215
4163
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
4216
4164
  orElse: response => unexpectedStatus(request, response)
4217
- }))), Effect.scoped),
4165
+ })))), Effect.scoped),
4218
4166
  "usageVectorStores": options => HttpClientRequest.make("GET")(`/organization/usage/vector_stores`).pipe(HttpClientRequest.setUrlParams({
4219
4167
  "start_time": options["start_time"],
4220
4168
  "end_time": options["end_time"],
@@ -4223,211 +4171,212 @@ export const make = httpClient => {
4223
4171
  "group_by": options["group_by"],
4224
4172
  "limit": options["limit"],
4225
4173
  "page": options["page"]
4226
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4174
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4227
4175
  "200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
4228
4176
  orElse: response => unexpectedStatus(request, response)
4229
- }))), Effect.scoped),
4177
+ })))), Effect.scoped),
4230
4178
  "listUsers": options => HttpClientRequest.make("GET")(`/organization/users`).pipe(HttpClientRequest.setUrlParams({
4231
4179
  "limit": options["limit"],
4232
- "after": options["after"]
4233
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4180
+ "after": options["after"],
4181
+ "emails": options["emails"]
4182
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4234
4183
  "200": r => HttpClientResponse.schemaBodyJson(UserListResponse)(r),
4235
4184
  orElse: response => unexpectedStatus(request, response)
4236
- }))), Effect.scoped),
4237
- "retrieveUser": userId => HttpClientRequest.make("GET")(`/organization/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4185
+ })))), Effect.scoped),
4186
+ "retrieveUser": userId => HttpClientRequest.make("GET")(`/organization/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4238
4187
  "200": r => HttpClientResponse.schemaBodyJson(User)(r),
4239
4188
  orElse: response => unexpectedStatus(request, response)
4240
- }))), Effect.scoped),
4241
- "modifyUser": (userId, options) => HttpClientRequest.make("POST")(`/organization/users/${userId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4189
+ })))), Effect.scoped),
4190
+ "modifyUser": (userId, options) => HttpClientRequest.make("POST")(`/organization/users/${userId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4242
4191
  "200": r => HttpClientResponse.schemaBodyJson(User)(r),
4243
4192
  orElse: response => unexpectedStatus(request, response)
4244
- }))), Effect.scoped),
4245
- "deleteUser": userId => HttpClientRequest.make("DELETE")(`/organization/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4193
+ })))), Effect.scoped),
4194
+ "deleteUser": userId => HttpClientRequest.make("DELETE")(`/organization/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4246
4195
  "200": r => HttpClientResponse.schemaBodyJson(UserDeleteResponse)(r),
4247
4196
  orElse: response => unexpectedStatus(request, response)
4248
- }))), Effect.scoped),
4249
- "createRealtimeSession": options => HttpClientRequest.make("POST")(`/realtime/sessions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4197
+ })))), Effect.scoped),
4198
+ "createRealtimeSession": options => HttpClientRequest.make("POST")(`/realtime/sessions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4250
4199
  "200": r => HttpClientResponse.schemaBodyJson(RealtimeSessionCreateResponse)(r),
4251
4200
  orElse: response => unexpectedStatus(request, response)
4252
- }))), Effect.scoped),
4253
- "createThread": options => HttpClientRequest.make("POST")(`/threads`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4201
+ })))), Effect.scoped),
4202
+ "createThread": options => HttpClientRequest.make("POST")(`/threads`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4254
4203
  "200": r => HttpClientResponse.schemaBodyJson(ThreadObject)(r),
4255
4204
  orElse: response => unexpectedStatus(request, response)
4256
- }))), Effect.scoped),
4257
- "createThreadAndRun": options => HttpClientRequest.make("POST")(`/threads/runs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4205
+ })))), Effect.scoped),
4206
+ "createThreadAndRun": options => HttpClientRequest.make("POST")(`/threads/runs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4258
4207
  "200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
4259
4208
  orElse: response => unexpectedStatus(request, response)
4260
- }))), Effect.scoped),
4261
- "getThread": threadId => HttpClientRequest.make("GET")(`/threads/${threadId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4209
+ })))), Effect.scoped),
4210
+ "getThread": threadId => HttpClientRequest.make("GET")(`/threads/${threadId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4262
4211
  "200": r => HttpClientResponse.schemaBodyJson(ThreadObject)(r),
4263
4212
  orElse: response => unexpectedStatus(request, response)
4264
- }))), Effect.scoped),
4265
- "modifyThread": (threadId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4213
+ })))), Effect.scoped),
4214
+ "modifyThread": (threadId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4266
4215
  "200": r => HttpClientResponse.schemaBodyJson(ThreadObject)(r),
4267
4216
  orElse: response => unexpectedStatus(request, response)
4268
- }))), Effect.scoped),
4269
- "deleteThread": threadId => HttpClientRequest.make("DELETE")(`/threads/${threadId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4217
+ })))), Effect.scoped),
4218
+ "deleteThread": threadId => HttpClientRequest.make("DELETE")(`/threads/${threadId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4270
4219
  "200": r => HttpClientResponse.schemaBodyJson(DeleteThreadResponse)(r),
4271
4220
  orElse: response => unexpectedStatus(request, response)
4272
- }))), Effect.scoped),
4221
+ })))), Effect.scoped),
4273
4222
  "listMessages": (threadId, options) => HttpClientRequest.make("GET")(`/threads/${threadId}/messages`).pipe(HttpClientRequest.setUrlParams({
4274
4223
  "limit": options["limit"],
4275
4224
  "order": options["order"],
4276
4225
  "after": options["after"],
4277
4226
  "before": options["before"],
4278
4227
  "run_id": options["run_id"]
4279
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4228
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4280
4229
  "200": r => HttpClientResponse.schemaBodyJson(ListMessagesResponse)(r),
4281
4230
  orElse: response => unexpectedStatus(request, response)
4282
- }))), Effect.scoped),
4283
- "createMessage": (threadId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/messages`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4231
+ })))), Effect.scoped),
4232
+ "createMessage": (threadId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/messages`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4284
4233
  "200": r => HttpClientResponse.schemaBodyJson(MessageObject)(r),
4285
4234
  orElse: response => unexpectedStatus(request, response)
4286
- }))), Effect.scoped),
4287
- "getMessage": (threadId, messageId) => HttpClientRequest.make("GET")(`/threads/${threadId}/messages/${messageId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4235
+ })))), Effect.scoped),
4236
+ "getMessage": (threadId, messageId) => HttpClientRequest.make("GET")(`/threads/${threadId}/messages/${messageId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4288
4237
  "200": r => HttpClientResponse.schemaBodyJson(MessageObject)(r),
4289
4238
  orElse: response => unexpectedStatus(request, response)
4290
- }))), Effect.scoped),
4291
- "modifyMessage": (threadId, messageId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/messages/${messageId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4239
+ })))), Effect.scoped),
4240
+ "modifyMessage": (threadId, messageId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/messages/${messageId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4292
4241
  "200": r => HttpClientResponse.schemaBodyJson(MessageObject)(r),
4293
4242
  orElse: response => unexpectedStatus(request, response)
4294
- }))), Effect.scoped),
4295
- "deleteMessage": (threadId, messageId) => HttpClientRequest.make("DELETE")(`/threads/${threadId}/messages/${messageId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4243
+ })))), Effect.scoped),
4244
+ "deleteMessage": (threadId, messageId) => HttpClientRequest.make("DELETE")(`/threads/${threadId}/messages/${messageId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4296
4245
  "200": r => HttpClientResponse.schemaBodyJson(DeleteMessageResponse)(r),
4297
4246
  orElse: response => unexpectedStatus(request, response)
4298
- }))), Effect.scoped),
4247
+ })))), Effect.scoped),
4299
4248
  "listRuns": (threadId, options) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs`).pipe(HttpClientRequest.setUrlParams({
4300
4249
  "limit": options["limit"],
4301
4250
  "order": options["order"],
4302
4251
  "after": options["after"],
4303
4252
  "before": options["before"]
4304
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4253
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4305
4254
  "200": r => HttpClientResponse.schemaBodyJson(ListRunsResponse)(r),
4306
4255
  orElse: response => unexpectedStatus(request, response)
4307
- }))), Effect.scoped),
4256
+ })))), Effect.scoped),
4308
4257
  "createRun": (threadId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs`).pipe(HttpClientRequest.setUrlParams({
4309
4258
  "include[]": options.params["include[]"]
4310
- }), req => Effect.orDie(HttpClientRequest.bodyJson(req, options.payload)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4259
+ }), req => Effect.orDie(HttpClientRequest.bodyJson(req, options.payload)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4311
4260
  "200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
4312
4261
  orElse: response => unexpectedStatus(request, response)
4313
- }))), Effect.scoped),
4314
- "getRun": (threadId, runId) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs/${runId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4262
+ })))), Effect.scoped),
4263
+ "getRun": (threadId, runId) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs/${runId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4315
4264
  "200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
4316
4265
  orElse: response => unexpectedStatus(request, response)
4317
- }))), Effect.scoped),
4318
- "modifyRun": (threadId, runId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4266
+ })))), Effect.scoped),
4267
+ "modifyRun": (threadId, runId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4319
4268
  "200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
4320
4269
  orElse: response => unexpectedStatus(request, response)
4321
- }))), Effect.scoped),
4322
- "cancelRun": (threadId, runId) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4270
+ })))), Effect.scoped),
4271
+ "cancelRun": (threadId, runId) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4323
4272
  "200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
4324
4273
  orElse: response => unexpectedStatus(request, response)
4325
- }))), Effect.scoped),
4274
+ })))), Effect.scoped),
4326
4275
  "listRunSteps": (threadId, runId, options) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs/${runId}/steps`).pipe(HttpClientRequest.setUrlParams({
4327
4276
  "limit": options["limit"],
4328
4277
  "order": options["order"],
4329
4278
  "after": options["after"],
4330
4279
  "before": options["before"],
4331
4280
  "include[]": options["include[]"]
4332
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4281
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4333
4282
  "200": r => HttpClientResponse.schemaBodyJson(ListRunStepsResponse)(r),
4334
4283
  orElse: response => unexpectedStatus(request, response)
4335
- }))), Effect.scoped),
4284
+ })))), Effect.scoped),
4336
4285
  "getRunStep": (threadId, runId, stepId, options) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs/${runId}/steps/${stepId}`).pipe(HttpClientRequest.setUrlParams({
4337
4286
  "include[]": options["include[]"]
4338
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4287
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4339
4288
  "200": r => HttpClientResponse.schemaBodyJson(RunStepObject)(r),
4340
4289
  orElse: response => unexpectedStatus(request, response)
4341
- }))), Effect.scoped),
4342
- "submitToolOuputsToRun": (threadId, runId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}/submit_tool_outputs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4290
+ })))), Effect.scoped),
4291
+ "submitToolOuputsToRun": (threadId, runId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}/submit_tool_outputs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4343
4292
  "200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
4344
4293
  orElse: response => unexpectedStatus(request, response)
4345
- }))), Effect.scoped),
4346
- "createUpload": options => HttpClientRequest.make("POST")(`/uploads`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4294
+ })))), Effect.scoped),
4295
+ "createUpload": options => HttpClientRequest.make("POST")(`/uploads`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4347
4296
  "200": r => HttpClientResponse.schemaBodyJson(Upload)(r),
4348
4297
  orElse: response => unexpectedStatus(request, response)
4349
- }))), Effect.scoped),
4350
- "cancelUpload": uploadId => HttpClientRequest.make("POST")(`/uploads/${uploadId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4298
+ })))), Effect.scoped),
4299
+ "cancelUpload": uploadId => HttpClientRequest.make("POST")(`/uploads/${uploadId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4351
4300
  "200": r => HttpClientResponse.schemaBodyJson(Upload)(r),
4352
4301
  orElse: response => unexpectedStatus(request, response)
4353
- }))), Effect.scoped),
4354
- "completeUpload": (uploadId, options) => HttpClientRequest.make("POST")(`/uploads/${uploadId}/complete`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4302
+ })))), Effect.scoped),
4303
+ "completeUpload": (uploadId, options) => HttpClientRequest.make("POST")(`/uploads/${uploadId}/complete`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4355
4304
  "200": r => HttpClientResponse.schemaBodyJson(Upload)(r),
4356
4305
  orElse: response => unexpectedStatus(request, response)
4357
- }))), Effect.scoped),
4358
- "addUploadPart": (uploadId, options) => HttpClientRequest.make("POST")(`/uploads/${uploadId}/parts`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4306
+ })))), Effect.scoped),
4307
+ "addUploadPart": (uploadId, options) => HttpClientRequest.make("POST")(`/uploads/${uploadId}/parts`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4359
4308
  "200": r => HttpClientResponse.schemaBodyJson(UploadPart)(r),
4360
4309
  orElse: response => unexpectedStatus(request, response)
4361
- }))), Effect.scoped),
4310
+ })))), Effect.scoped),
4362
4311
  "listVectorStores": options => HttpClientRequest.make("GET")(`/vector_stores`).pipe(HttpClientRequest.setUrlParams({
4363
4312
  "limit": options["limit"],
4364
4313
  "order": options["order"],
4365
4314
  "after": options["after"],
4366
4315
  "before": options["before"]
4367
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4316
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4368
4317
  "200": r => HttpClientResponse.schemaBodyJson(ListVectorStoresResponse)(r),
4369
4318
  orElse: response => unexpectedStatus(request, response)
4370
- }))), Effect.scoped),
4371
- "createVectorStore": options => HttpClientRequest.make("POST")(`/vector_stores`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4319
+ })))), Effect.scoped),
4320
+ "createVectorStore": options => HttpClientRequest.make("POST")(`/vector_stores`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4372
4321
  "200": r => HttpClientResponse.schemaBodyJson(VectorStoreObject)(r),
4373
4322
  orElse: response => unexpectedStatus(request, response)
4374
- }))), Effect.scoped),
4375
- "getVectorStore": vectorStoreId => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4323
+ })))), Effect.scoped),
4324
+ "getVectorStore": vectorStoreId => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4376
4325
  "200": r => HttpClientResponse.schemaBodyJson(VectorStoreObject)(r),
4377
4326
  orElse: response => unexpectedStatus(request, response)
4378
- }))), Effect.scoped),
4379
- "modifyVectorStore": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4327
+ })))), Effect.scoped),
4328
+ "modifyVectorStore": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4380
4329
  "200": r => HttpClientResponse.schemaBodyJson(VectorStoreObject)(r),
4381
4330
  orElse: response => unexpectedStatus(request, response)
4382
- }))), Effect.scoped),
4383
- "deleteVectorStore": vectorStoreId => HttpClientRequest.make("DELETE")(`/vector_stores/${vectorStoreId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4331
+ })))), Effect.scoped),
4332
+ "deleteVectorStore": vectorStoreId => HttpClientRequest.make("DELETE")(`/vector_stores/${vectorStoreId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4384
4333
  "200": r => HttpClientResponse.schemaBodyJson(DeleteVectorStoreResponse)(r),
4385
4334
  orElse: response => unexpectedStatus(request, response)
4386
- }))), Effect.scoped),
4387
- "createVectorStoreFileBatch": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/file_batches`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4335
+ })))), Effect.scoped),
4336
+ "createVectorStoreFileBatch": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/file_batches`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4388
4337
  "200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileBatchObject)(r),
4389
4338
  orElse: response => unexpectedStatus(request, response)
4390
- }))), Effect.scoped),
4391
- "getVectorStoreFileBatch": (vectorStoreId, batchId) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/file_batches/${batchId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4339
+ })))), Effect.scoped),
4340
+ "getVectorStoreFileBatch": (vectorStoreId, batchId) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/file_batches/${batchId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4392
4341
  "200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileBatchObject)(r),
4393
4342
  orElse: response => unexpectedStatus(request, response)
4394
- }))), Effect.scoped),
4395
- "cancelVectorStoreFileBatch": (vectorStoreId, batchId) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4343
+ })))), Effect.scoped),
4344
+ "cancelVectorStoreFileBatch": (vectorStoreId, batchId) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4396
4345
  "200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileBatchObject)(r),
4397
4346
  orElse: response => unexpectedStatus(request, response)
4398
- }))), Effect.scoped),
4347
+ })))), Effect.scoped),
4399
4348
  "listFilesInVectorStoreBatch": (vectorStoreId, batchId, options) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/files`).pipe(HttpClientRequest.setUrlParams({
4400
4349
  "limit": options["limit"],
4401
4350
  "order": options["order"],
4402
4351
  "after": options["after"],
4403
4352
  "before": options["before"],
4404
4353
  "filter": options["filter"]
4405
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4354
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4406
4355
  "200": r => HttpClientResponse.schemaBodyJson(ListVectorStoreFilesResponse)(r),
4407
4356
  orElse: response => unexpectedStatus(request, response)
4408
- }))), Effect.scoped),
4357
+ })))), Effect.scoped),
4409
4358
  "listVectorStoreFiles": (vectorStoreId, options) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/files`).pipe(HttpClientRequest.setUrlParams({
4410
4359
  "limit": options["limit"],
4411
4360
  "order": options["order"],
4412
4361
  "after": options["after"],
4413
4362
  "before": options["before"],
4414
4363
  "filter": options["filter"]
4415
- }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4364
+ }), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4416
4365
  "200": r => HttpClientResponse.schemaBodyJson(ListVectorStoreFilesResponse)(r),
4417
4366
  orElse: response => unexpectedStatus(request, response)
4418
- }))), Effect.scoped),
4419
- "createVectorStoreFile": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/files`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4367
+ })))), Effect.scoped),
4368
+ "createVectorStoreFile": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/files`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4420
4369
  "200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileObject)(r),
4421
4370
  orElse: response => unexpectedStatus(request, response)
4422
- }))), Effect.scoped),
4423
- "getVectorStoreFile": (vectorStoreId, fileId) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4371
+ })))), Effect.scoped),
4372
+ "getVectorStoreFile": (vectorStoreId, fileId) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4424
4373
  "200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileObject)(r),
4425
4374
  orElse: response => unexpectedStatus(request, response)
4426
- }))), Effect.scoped),
4427
- "deleteVectorStoreFile": (vectorStoreId, fileId) => HttpClientRequest.make("DELETE")(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4375
+ })))), Effect.scoped),
4376
+ "deleteVectorStoreFile": (vectorStoreId, fileId) => HttpClientRequest.make("DELETE")(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
4428
4377
  "200": r => HttpClientResponse.schemaBodyJson(DeleteVectorStoreFileResponse)(r),
4429
4378
  orElse: response => unexpectedStatus(request, response)
4430
- }))), Effect.scoped)
4379
+ })))), Effect.scoped)
4431
4380
  };
4432
4381
  };
4433
4382
  //# sourceMappingURL=Generated.js.map