@effect/ai-openai 0.25.1 → 0.25.3

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.
@@ -492,11 +492,11 @@
492
492
  * The index of the choice in the list of choices.
493
493
  */"index":S.Int,"message":ChatCompletionResponseMessage,/**
494
494
  * Log probability information for the choice.
495
- */"logprobs":/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({/**
495
+ */"logprobs":/*#__PURE__*/S.optional(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({/**
496
496
  * A list of message content tokens with log probability information.
497
497
  */"content":/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(ChatCompletionTokenLogprob)),/**
498
498
  * A list of message refusal tokens with log probability information.
499
- */"refusal":/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(ChatCompletionTokenLogprob))}))})),/**
499
+ */"refusal":/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(ChatCompletionTokenLogprob))})))})),/**
500
500
  * The Unix timestamp (in seconds) of when the chat completion was created.
501
501
  */"created":S.Int,/**
502
502
  * The model used for the chat completion.
@@ -1247,7 +1247,7 @@
1247
1247
  * Configuration of data sources used in runs of the evaluation.
1248
1248
  */"data_source_config":/*#__PURE__*/S.Record({key:S.String,value:S.Unknown}),/**
1249
1249
  * A list of testing criteria.
1250
- */"testing_criteria":/*#__PURE__*/S.Array(S.Union(EvalLabelModelGrader,EvalStringCheckGrader,EvalTextSimilarityGrader,EvalPythonGrader,EvalScoreModelGrader)).pipe(S.propertySignature),/**
1250
+ */"testing_criteria":/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(EvalLabelModelGrader,EvalStringCheckGrader,EvalTextSimilarityGrader,EvalPythonGrader,EvalScoreModelGrader)),/**
1251
1251
  * The Unix timestamp (in seconds) for when the eval was created.
1252
1252
  */"created_at":S.Int,"metadata":/*#__PURE__*/S.NullOr(Metadata)}){}/**
1253
1253
  * An object representing a list of evals.
@@ -4756,5 +4756,5 @@
4756
4756
  * Indicates if there are more results to fetch.
4757
4757
  */"has_more":S.Boolean,/**
4758
4758
  * The token for the next page, if any.
4759
- */"next_page":/*#__PURE__*/S.NullOr(S.String)}){}exports.VectorStoreSearchResultsPage=VectorStoreSearchResultsPage;const make=(httpClient,options={})=>{const unexpectedStatus=response=>Effect.flatMap(Effect.orElseSucceed(response.json,()=>"Unexpected status code"),description=>Effect.fail(new HttpClientError.ResponseError({request:response.request,response,reason:"StatusCode",description:typeof description==="string"?description:JSON.stringify(description)})));const withResponse=options.transformClient?f=>request=>Effect.flatMap(Effect.flatMap(options.transformClient(httpClient),client=>client.execute(request)),f):f=>request=>Effect.flatMap(httpClient.execute(request),f);const decodeSuccess=schema=>response=>HttpClientResponse.schemaBodyJson(schema)(response);const decodeError=(tag,schema)=>response=>Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)(response),cause=>Effect.fail(ClientError(tag,cause,response)));return{httpClient,"listAssistants":options=>HttpClientRequest.get(`/assistants`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListAssistantsResponse),orElse:unexpectedStatus}))),"createAssistant":options=>HttpClientRequest.post(`/assistants`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AssistantObject),orElse:unexpectedStatus}))),"getAssistant":assistantId=>HttpClientRequest.get(`/assistants/${assistantId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AssistantObject),orElse:unexpectedStatus}))),"modifyAssistant":(assistantId,options)=>HttpClientRequest.post(`/assistants/${assistantId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AssistantObject),orElse:unexpectedStatus}))),"deleteAssistant":assistantId=>HttpClientRequest.del(`/assistants/${assistantId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteAssistantResponse),orElse:unexpectedStatus}))),"createSpeech":options=>HttpClientRequest.post(`/audio/speech`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({orElse:unexpectedStatus}))),"createTranscription":options=>HttpClientRequest.post(`/audio/transcriptions`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateTranscription200),orElse:unexpectedStatus}))),"createTranslation":options=>HttpClientRequest.post(`/audio/translations`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateTranslation200),orElse:unexpectedStatus}))),"listBatches":options=>HttpClientRequest.get(`/batches`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListBatchesResponse),orElse:unexpectedStatus}))),"createBatch":options=>HttpClientRequest.post(`/batches`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Batch),orElse:unexpectedStatus}))),"retrieveBatch":batchId=>HttpClientRequest.get(`/batches/${batchId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Batch),orElse:unexpectedStatus}))),"cancelBatch":batchId=>HttpClientRequest.post(`/batches/${batchId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Batch),orElse:unexpectedStatus}))),"listChatCompletions":options=>HttpClientRequest.get(`/chat/completions`).pipe(HttpClientRequest.setUrlParams({"model":options?.["model"],"metadata":options?.["metadata"],"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ChatCompletionList),orElse:unexpectedStatus}))),"createChatCompletion":options=>HttpClientRequest.post(`/chat/completions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateChatCompletionResponse),orElse:unexpectedStatus}))),"getChatCompletion":completionId=>HttpClientRequest.get(`/chat/completions/${completionId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateChatCompletionResponse),orElse:unexpectedStatus}))),"updateChatCompletion":(completionId,options)=>HttpClientRequest.post(`/chat/completions/${completionId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateChatCompletionResponse),orElse:unexpectedStatus}))),"deleteChatCompletion":completionId=>HttpClientRequest.del(`/chat/completions/${completionId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ChatCompletionDeleted),orElse:unexpectedStatus}))),"getChatCompletionMessages":(completionId,options)=>HttpClientRequest.get(`/chat/completions/${completionId}/messages`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ChatCompletionMessageList),orElse:unexpectedStatus}))),"createCompletion":options=>HttpClientRequest.post(`/completions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateCompletionResponse),orElse:unexpectedStatus}))),"createEmbedding":options=>HttpClientRequest.post(`/embeddings`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateEmbeddingResponse),orElse:unexpectedStatus}))),"listEvals":options=>HttpClientRequest.get(`/evals`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"],"order_by":options?.["order_by"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalList),orElse:unexpectedStatus}))),"createEval":options=>HttpClientRequest.post(`/evals`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Eval),orElse:unexpectedStatus}))),"getEval":evalId=>HttpClientRequest.get(`/evals/${evalId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Eval),orElse:unexpectedStatus}))),"updateEval":(evalId,options)=>HttpClientRequest.post(`/evals/${evalId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Eval),orElse:unexpectedStatus}))),"deleteEval":evalId=>HttpClientRequest.del(`/evals/${evalId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteEval200),"404":decodeError("Error",Error),orElse:unexpectedStatus}))),"getEvalRuns":(evalId,options)=>HttpClientRequest.get(`/evals/${evalId}/runs`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"],"status":options?.["status"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRunList),orElse:unexpectedStatus}))),"createEvalRun":(evalId,options)=>HttpClientRequest.post(`/evals/${evalId}/runs`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRun),"400":decodeError("Error",Error),orElse:unexpectedStatus}))),"getEvalRun":(evalId,runId)=>HttpClientRequest.get(`/evals/${evalId}/runs/${runId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRun),orElse:unexpectedStatus}))),"cancelEvalRun":(evalId,runId)=>HttpClientRequest.post(`/evals/${evalId}/runs/${runId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRun),orElse:unexpectedStatus}))),"deleteEvalRun":(evalId,runId)=>HttpClientRequest.del(`/evals/${evalId}/runs/${runId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteEvalRun200),"404":decodeError("Error",Error),orElse:unexpectedStatus}))),"getEvalRunOutputItems":(evalId,runId,options)=>HttpClientRequest.get(`/evals/${evalId}/runs/${runId}/output_items`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"status":options?.["status"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRunOutputItemList),orElse:unexpectedStatus}))),"getEvalRunOutputItem":(evalId,runId,outputItemId)=>HttpClientRequest.get(`/evals/${evalId}/runs/${runId}/output_items/${outputItemId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRunOutputItem),orElse:unexpectedStatus}))),"listFiles":options=>HttpClientRequest.get(`/files`).pipe(HttpClientRequest.setUrlParams({"purpose":options?.["purpose"],"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFilesResponse),orElse:unexpectedStatus}))),"createFile":options=>HttpClientRequest.post(`/files`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(OpenAIFile),orElse:unexpectedStatus}))),"retrieveFile":fileId=>HttpClientRequest.get(`/files/${fileId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(OpenAIFile),orElse:unexpectedStatus}))),"deleteFile":fileId=>HttpClientRequest.del(`/files/${fileId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteFileResponse),orElse:unexpectedStatus}))),"downloadFile":fileId=>HttpClientRequest.get(`/files/${fileId}/content`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DownloadFile200),orElse:unexpectedStatus}))),"listFineTuningCheckpointPermissions":(fineTunedModelCheckpoint,options)=>HttpClientRequest.get(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`).pipe(HttpClientRequest.setUrlParams({"project_id":options?.["project_id"],"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFineTuningCheckpointPermissionResponse),orElse:unexpectedStatus}))),"createFineTuningCheckpointPermission":(fineTunedModelCheckpoint,options)=>HttpClientRequest.post(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFineTuningCheckpointPermissionResponse),orElse:unexpectedStatus}))),"deleteFineTuningCheckpointPermission":(fineTunedModelCheckpoint,permissionId)=>HttpClientRequest.del(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions/${permissionId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteFineTuningCheckpointPermissionResponse),orElse:unexpectedStatus}))),"listPaginatedFineTuningJobs":options=>HttpClientRequest.get(`/fine_tuning/jobs`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"metadata":options?.["metadata"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListPaginatedFineTuningJobsResponse),orElse:unexpectedStatus}))),"createFineTuningJob":options=>HttpClientRequest.post(`/fine_tuning/jobs`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(FineTuningJob),orElse:unexpectedStatus}))),"retrieveFineTuningJob":fineTuningJobId=>HttpClientRequest.get(`/fine_tuning/jobs/${fineTuningJobId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(FineTuningJob),orElse:unexpectedStatus}))),"cancelFineTuningJob":fineTuningJobId=>HttpClientRequest.post(`/fine_tuning/jobs/${fineTuningJobId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(FineTuningJob),orElse:unexpectedStatus}))),"listFineTuningJobCheckpoints":(fineTuningJobId,options)=>HttpClientRequest.get(`/fine_tuning/jobs/${fineTuningJobId}/checkpoints`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFineTuningJobCheckpointsResponse),orElse:unexpectedStatus}))),"listFineTuningEvents":(fineTuningJobId,options)=>HttpClientRequest.get(`/fine_tuning/jobs/${fineTuningJobId}/events`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFineTuningJobEventsResponse),orElse:unexpectedStatus}))),"createImageEdit":options=>HttpClientRequest.post(`/images/edits`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ImagesResponse),orElse:unexpectedStatus}))),"createImage":options=>HttpClientRequest.post(`/images/generations`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ImagesResponse),orElse:unexpectedStatus}))),"createImageVariation":options=>HttpClientRequest.post(`/images/variations`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ImagesResponse),orElse:unexpectedStatus}))),"listModels":()=>HttpClientRequest.get(`/models`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListModelsResponse),orElse:unexpectedStatus}))),"retrieveModel":model=>HttpClientRequest.get(`/models/${model}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Model),orElse:unexpectedStatus}))),"deleteModel":model=>HttpClientRequest.del(`/models/${model}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteModelResponse),orElse:unexpectedStatus}))),"createModeration":options=>HttpClientRequest.post(`/moderations`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateModerationResponse),orElse:unexpectedStatus}))),"adminApiKeysList":options=>HttpClientRequest.get(`/organization/admin_api_keys`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"order":options?.["order"],"limit":options?.["limit"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ApiKeyList),orElse:unexpectedStatus}))),"adminApiKeysCreate":options=>HttpClientRequest.post(`/organization/admin_api_keys`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AdminApiKey),orElse:unexpectedStatus}))),"adminApiKeysGet":keyId=>HttpClientRequest.get(`/organization/admin_api_keys/${keyId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AdminApiKey),orElse:unexpectedStatus}))),"adminApiKeysDelete":keyId=>HttpClientRequest.del(`/organization/admin_api_keys/${keyId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AdminApiKeysDelete200),orElse:unexpectedStatus}))),"listAuditLogs":options=>HttpClientRequest.get(`/organization/audit_logs`).pipe(HttpClientRequest.setUrlParams({"effective_at[gt]":options?.["effective_at[gt]"],"effective_at[gte]":options?.["effective_at[gte]"],"effective_at[lt]":options?.["effective_at[lt]"],"effective_at[lte]":options?.["effective_at[lte]"],"project_ids[]":options?.["project_ids[]"],"event_types[]":options?.["event_types[]"],"actor_ids[]":options?.["actor_ids[]"],"actor_emails[]":options?.["actor_emails[]"],"resource_ids[]":options?.["resource_ids[]"],"limit":options?.["limit"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListAuditLogsResponse),orElse:unexpectedStatus}))),"listOrganizationCertificates":options=>HttpClientRequest.get(`/organization/certificates`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"uploadCertificate":options=>HttpClientRequest.post(`/organization/certificates`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Certificate),orElse:unexpectedStatus}))),"activateOrganizationCertificates":options=>HttpClientRequest.post(`/organization/certificates/activate`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"deactivateOrganizationCertificates":options=>HttpClientRequest.post(`/organization/certificates/deactivate`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"getCertificate":(certificateId,options)=>HttpClientRequest.get(`/organization/certificates/${certificateId}`).pipe(HttpClientRequest.setUrlParams({"include":options?.["include"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Certificate),orElse:unexpectedStatus}))),"modifyCertificate":(certificateId,options)=>HttpClientRequest.post(`/organization/certificates/${certificateId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Certificate),orElse:unexpectedStatus}))),"deleteCertificate":certificateId=>HttpClientRequest.del(`/organization/certificates/${certificateId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteCertificateResponse),orElse:unexpectedStatus}))),"usageCosts":options=>HttpClientRequest.get(`/organization/costs`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"listInvites":options=>HttpClientRequest.get(`/organization/invites`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(InviteListResponse),orElse:unexpectedStatus}))),"inviteUser":options=>HttpClientRequest.post(`/organization/invites`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Invite),orElse:unexpectedStatus}))),"retrieveInvite":inviteId=>HttpClientRequest.get(`/organization/invites/${inviteId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Invite),orElse:unexpectedStatus}))),"deleteInvite":inviteId=>HttpClientRequest.del(`/organization/invites/${inviteId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(InviteDeleteResponse),orElse:unexpectedStatus}))),"listProjects":options=>HttpClientRequest.get(`/organization/projects`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"include_archived":options?.["include_archived"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectListResponse),orElse:unexpectedStatus}))),"createProject":options=>HttpClientRequest.post(`/organization/projects`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Project),orElse:unexpectedStatus}))),"retrieveProject":projectId=>HttpClientRequest.get(`/organization/projects/${projectId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Project),orElse:unexpectedStatus}))),"modifyProject":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Project),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"listProjectApiKeys":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/api_keys`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectApiKeyListResponse),orElse:unexpectedStatus}))),"retrieveProjectApiKey":(projectId,keyId)=>HttpClientRequest.get(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectApiKey),orElse:unexpectedStatus}))),"deleteProjectApiKey":(projectId,keyId)=>HttpClientRequest.del(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectApiKeyDeleteResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"archiveProject":projectId=>HttpClientRequest.post(`/organization/projects/${projectId}/archive`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Project),orElse:unexpectedStatus}))),"listProjectCertificates":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/certificates`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"activateProjectCertificates":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/certificates/activate`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"deactivateProjectCertificates":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/certificates/deactivate`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"listProjectRateLimits":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/rate_limits`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectRateLimitListResponse),orElse:unexpectedStatus}))),"updateProjectRateLimits":(projectId,rateLimitId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/rate_limits/${rateLimitId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectRateLimit),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"listProjectServiceAccounts":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/service_accounts`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectServiceAccountListResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"createProjectServiceAccount":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/service_accounts`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectServiceAccountCreateResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"retrieveProjectServiceAccount":(projectId,serviceAccountId)=>HttpClientRequest.get(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectServiceAccount),orElse:unexpectedStatus}))),"deleteProjectServiceAccount":(projectId,serviceAccountId)=>HttpClientRequest.del(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectServiceAccountDeleteResponse),orElse:unexpectedStatus}))),"listProjectUsers":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/users`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUserListResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"createProjectUser":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/users`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUser),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"retrieveProjectUser":(projectId,userId)=>HttpClientRequest.get(`/organization/projects/${projectId}/users/${userId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUser),orElse:unexpectedStatus}))),"modifyProjectUser":(projectId,userId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/users/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUser),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"deleteProjectUser":(projectId,userId)=>HttpClientRequest.del(`/organization/projects/${projectId}/users/${userId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUserDeleteResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"usageAudioSpeeches":options=>HttpClientRequest.get(`/organization/usage/audio_speeches`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageAudioTranscriptions":options=>HttpClientRequest.get(`/organization/usage/audio_transcriptions`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageCodeInterpreterSessions":options=>HttpClientRequest.get(`/organization/usage/code_interpreter_sessions`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageCompletions":options=>HttpClientRequest.get(`/organization/usage/completions`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"batch":options?.["batch"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageEmbeddings":options=>HttpClientRequest.get(`/organization/usage/embeddings`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageImages":options=>HttpClientRequest.get(`/organization/usage/images`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"sources":options?.["sources"],"sizes":options?.["sizes"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageModerations":options=>HttpClientRequest.get(`/organization/usage/moderations`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageVectorStores":options=>HttpClientRequest.get(`/organization/usage/vector_stores`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"listUsers":options=>HttpClientRequest.get(`/organization/users`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"emails":options?.["emails"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UserListResponse),orElse:unexpectedStatus}))),"retrieveUser":userId=>HttpClientRequest.get(`/organization/users/${userId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(User),orElse:unexpectedStatus}))),"modifyUser":(userId,options)=>HttpClientRequest.post(`/organization/users/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(User),orElse:unexpectedStatus}))),"deleteUser":userId=>HttpClientRequest.del(`/organization/users/${userId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UserDeleteResponse),orElse:unexpectedStatus}))),"createRealtimeSession":options=>HttpClientRequest.post(`/realtime/sessions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RealtimeSessionCreateResponse),orElse:unexpectedStatus}))),"createRealtimeTranscriptionSession":options=>HttpClientRequest.post(`/realtime/transcription_sessions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RealtimeTranscriptionSessionCreateResponse),orElse:unexpectedStatus}))),"createResponse":options=>HttpClientRequest.post(`/responses`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Response),orElse:unexpectedStatus}))),"getResponse":(responseId,options)=>HttpClientRequest.get(`/responses/${responseId}`).pipe(HttpClientRequest.setUrlParams({"include":options?.["include"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Response),orElse:unexpectedStatus}))),"deleteResponse":responseId=>HttpClientRequest.del(`/responses/${responseId}`).pipe(withResponse(HttpClientResponse.matchStatus({"404":decodeError("Error",Error),orElse:unexpectedStatus}))),"listInputItems":(responseId,options)=>HttpClientRequest.get(`/responses/${responseId}/input_items`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"include":options?.["include"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ResponseItemList),orElse:unexpectedStatus}))),"createThread":options=>HttpClientRequest.post(`/threads`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ThreadObject),orElse:unexpectedStatus}))),"createThreadAndRun":options=>HttpClientRequest.post(`/threads/runs`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"getThread":threadId=>HttpClientRequest.get(`/threads/${threadId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ThreadObject),orElse:unexpectedStatus}))),"modifyThread":(threadId,options)=>HttpClientRequest.post(`/threads/${threadId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ThreadObject),orElse:unexpectedStatus}))),"deleteThread":threadId=>HttpClientRequest.del(`/threads/${threadId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteThreadResponse),orElse:unexpectedStatus}))),"listMessages":(threadId,options)=>HttpClientRequest.get(`/threads/${threadId}/messages`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"run_id":options?.["run_id"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListMessagesResponse),orElse:unexpectedStatus}))),"createMessage":(threadId,options)=>HttpClientRequest.post(`/threads/${threadId}/messages`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(MessageObject),orElse:unexpectedStatus}))),"getMessage":(threadId,messageId)=>HttpClientRequest.get(`/threads/${threadId}/messages/${messageId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(MessageObject),orElse:unexpectedStatus}))),"modifyMessage":(threadId,messageId,options)=>HttpClientRequest.post(`/threads/${threadId}/messages/${messageId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(MessageObject),orElse:unexpectedStatus}))),"deleteMessage":(threadId,messageId)=>HttpClientRequest.del(`/threads/${threadId}/messages/${messageId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteMessageResponse),orElse:unexpectedStatus}))),"listRuns":(threadId,options)=>HttpClientRequest.get(`/threads/${threadId}/runs`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListRunsResponse),orElse:unexpectedStatus}))),"createRun":(threadId,options)=>HttpClientRequest.post(`/threads/${threadId}/runs`).pipe(HttpClientRequest.setUrlParams({"include[]":options.params?.["include[]"]}),HttpClientRequest.bodyUnsafeJson(options.payload),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"getRun":(threadId,runId)=>HttpClientRequest.get(`/threads/${threadId}/runs/${runId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"modifyRun":(threadId,runId,options)=>HttpClientRequest.post(`/threads/${threadId}/runs/${runId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"cancelRun":(threadId,runId)=>HttpClientRequest.post(`/threads/${threadId}/runs/${runId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"listRunSteps":(threadId,runId,options)=>HttpClientRequest.get(`/threads/${threadId}/runs/${runId}/steps`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"include[]":options?.["include[]"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListRunStepsResponse),orElse:unexpectedStatus}))),"getRunStep":(threadId,runId,stepId,options)=>HttpClientRequest.get(`/threads/${threadId}/runs/${runId}/steps/${stepId}`).pipe(HttpClientRequest.setUrlParams({"include[]":options?.["include[]"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunStepObject),orElse:unexpectedStatus}))),"submitToolOuputsToRun":(threadId,runId,options)=>HttpClientRequest.post(`/threads/${threadId}/runs/${runId}/submit_tool_outputs`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"createUpload":options=>HttpClientRequest.post(`/uploads`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Upload),orElse:unexpectedStatus}))),"cancelUpload":uploadId=>HttpClientRequest.post(`/uploads/${uploadId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Upload),orElse:unexpectedStatus}))),"completeUpload":(uploadId,options)=>HttpClientRequest.post(`/uploads/${uploadId}/complete`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Upload),orElse:unexpectedStatus}))),"addUploadPart":(uploadId,options)=>HttpClientRequest.post(`/uploads/${uploadId}/parts`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UploadPart),orElse:unexpectedStatus}))),"listVectorStores":options=>HttpClientRequest.get(`/vector_stores`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListVectorStoresResponse),orElse:unexpectedStatus}))),"createVectorStore":options=>HttpClientRequest.post(`/vector_stores`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreObject),orElse:unexpectedStatus}))),"getVectorStore":vectorStoreId=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreObject),orElse:unexpectedStatus}))),"modifyVectorStore":(vectorStoreId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreObject),orElse:unexpectedStatus}))),"deleteVectorStore":vectorStoreId=>HttpClientRequest.del(`/vector_stores/${vectorStoreId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteVectorStoreResponse),orElse:unexpectedStatus}))),"createVectorStoreFileBatch":(vectorStoreId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/file_batches`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileBatchObject),orElse:unexpectedStatus}))),"getVectorStoreFileBatch":(vectorStoreId,batchId)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/file_batches/${batchId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileBatchObject),orElse:unexpectedStatus}))),"cancelVectorStoreFileBatch":(vectorStoreId,batchId)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileBatchObject),orElse:unexpectedStatus}))),"listFilesInVectorStoreBatch":(vectorStoreId,batchId,options)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/files`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"filter":options?.["filter"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListVectorStoreFilesResponse),orElse:unexpectedStatus}))),"listVectorStoreFiles":(vectorStoreId,options)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/files`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"filter":options?.["filter"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListVectorStoreFilesResponse),orElse:unexpectedStatus}))),"createVectorStoreFile":(vectorStoreId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/files`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileObject),orElse:unexpectedStatus}))),"getVectorStoreFile":(vectorStoreId,fileId)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileObject),orElse:unexpectedStatus}))),"updateVectorStoreFileAttributes":(vectorStoreId,fileId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileObject),orElse:unexpectedStatus}))),"deleteVectorStoreFile":(vectorStoreId,fileId)=>HttpClientRequest.del(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteVectorStoreFileResponse),orElse:unexpectedStatus}))),"retrieveVectorStoreFileContent":(vectorStoreId,fileId)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/files/${fileId}/content`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileContentResponse),orElse:unexpectedStatus}))),"searchVectorStore":(vectorStoreId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/search`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreSearchResultsPage),orElse:unexpectedStatus})))};};exports.make=make;class ClientErrorImpl extends Data.Error{}const ClientError=(tag,cause,response)=>new ClientErrorImpl({_tag:tag,cause,response,request:response.request});exports.ClientError=ClientError;
4759
+ */"next_page":/*#__PURE__*/S.NullOr(S.String)}){}exports.VectorStoreSearchResultsPage=VectorStoreSearchResultsPage;const make=(httpClient,options={})=>{const unexpectedStatus=response=>Effect.flatMap(Effect.orElseSucceed(response.json,()=>"Unexpected status code"),description=>Effect.fail(new HttpClientError.ResponseError({request:response.request,response,reason:"StatusCode",description:typeof description==="string"?description:JSON.stringify(description)})));const withResponse=options.transformClient?f=>request=>Effect.flatMap(Effect.flatMap(options.transformClient(httpClient),client=>client.execute(request)),f):f=>request=>Effect.flatMap(httpClient.execute(request),f);const decodeSuccess=schema=>response=>HttpClientResponse.schemaBodyJson(schema)(response);const decodeError=(tag,schema)=>response=>Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)(response),cause=>Effect.fail(ClientError(tag,cause,response)));return{httpClient,"listAssistants":options=>HttpClientRequest.get(`/assistants`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListAssistantsResponse),orElse:unexpectedStatus}))),"createAssistant":options=>HttpClientRequest.post(`/assistants`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AssistantObject),orElse:unexpectedStatus}))),"getAssistant":assistantId=>HttpClientRequest.get(`/assistants/${assistantId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AssistantObject),orElse:unexpectedStatus}))),"modifyAssistant":(assistantId,options)=>HttpClientRequest.post(`/assistants/${assistantId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AssistantObject),orElse:unexpectedStatus}))),"deleteAssistant":assistantId=>HttpClientRequest.del(`/assistants/${assistantId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteAssistantResponse),orElse:unexpectedStatus}))),"createSpeech":options=>HttpClientRequest.post(`/audio/speech`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({orElse:unexpectedStatus}))),"createTranscription":options=>HttpClientRequest.post(`/audio/transcriptions`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateTranscription200),orElse:unexpectedStatus}))),"createTranslation":options=>HttpClientRequest.post(`/audio/translations`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateTranslation200),orElse:unexpectedStatus}))),"listBatches":options=>HttpClientRequest.get(`/batches`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListBatchesResponse),orElse:unexpectedStatus}))),"createBatch":options=>HttpClientRequest.post(`/batches`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Batch),orElse:unexpectedStatus}))),"retrieveBatch":batchId=>HttpClientRequest.get(`/batches/${batchId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Batch),orElse:unexpectedStatus}))),"cancelBatch":batchId=>HttpClientRequest.post(`/batches/${batchId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Batch),orElse:unexpectedStatus}))),"listChatCompletions":options=>HttpClientRequest.get(`/chat/completions`).pipe(HttpClientRequest.setUrlParams({"model":options?.["model"],"metadata":options?.["metadata"],"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ChatCompletionList),orElse:unexpectedStatus}))),"createChatCompletion":options=>HttpClientRequest.post(`/chat/completions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateChatCompletionResponse),orElse:unexpectedStatus}))),"getChatCompletion":completionId=>HttpClientRequest.get(`/chat/completions/${completionId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateChatCompletionResponse),orElse:unexpectedStatus}))),"updateChatCompletion":(completionId,options)=>HttpClientRequest.post(`/chat/completions/${completionId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateChatCompletionResponse),orElse:unexpectedStatus}))),"deleteChatCompletion":completionId=>HttpClientRequest.del(`/chat/completions/${completionId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ChatCompletionDeleted),orElse:unexpectedStatus}))),"getChatCompletionMessages":(completionId,options)=>HttpClientRequest.get(`/chat/completions/${completionId}/messages`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ChatCompletionMessageList),orElse:unexpectedStatus}))),"createCompletion":options=>HttpClientRequest.post(`/completions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateCompletionResponse),orElse:unexpectedStatus}))),"createEmbedding":options=>HttpClientRequest.post(`/embeddings`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateEmbeddingResponse),orElse:unexpectedStatus}))),"listEvals":options=>HttpClientRequest.get(`/evals`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"],"order_by":options?.["order_by"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalList),orElse:unexpectedStatus}))),"createEval":options=>HttpClientRequest.post(`/evals`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Eval),orElse:unexpectedStatus}))),"getEval":evalId=>HttpClientRequest.get(`/evals/${evalId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Eval),orElse:unexpectedStatus}))),"updateEval":(evalId,options)=>HttpClientRequest.post(`/evals/${evalId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Eval),orElse:unexpectedStatus}))),"deleteEval":evalId=>HttpClientRequest.del(`/evals/${evalId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteEval200),"404":decodeError("Error",Error),orElse:unexpectedStatus}))),"getEvalRuns":(evalId,options)=>HttpClientRequest.get(`/evals/${evalId}/runs`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"],"status":options?.["status"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRunList),orElse:unexpectedStatus}))),"createEvalRun":(evalId,options)=>HttpClientRequest.post(`/evals/${evalId}/runs`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRun),"400":decodeError("Error",Error),orElse:unexpectedStatus}))),"getEvalRun":(evalId,runId)=>HttpClientRequest.get(`/evals/${evalId}/runs/${runId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRun),orElse:unexpectedStatus}))),"cancelEvalRun":(evalId,runId)=>HttpClientRequest.post(`/evals/${evalId}/runs/${runId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRun),orElse:unexpectedStatus}))),"deleteEvalRun":(evalId,runId)=>HttpClientRequest.del(`/evals/${evalId}/runs/${runId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteEvalRun200),"404":decodeError("Error",Error),orElse:unexpectedStatus}))),"getEvalRunOutputItems":(evalId,runId,options)=>HttpClientRequest.get(`/evals/${evalId}/runs/${runId}/output_items`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"status":options?.["status"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRunOutputItemList),orElse:unexpectedStatus}))),"getEvalRunOutputItem":(evalId,runId,outputItemId)=>HttpClientRequest.get(`/evals/${evalId}/runs/${runId}/output_items/${outputItemId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(EvalRunOutputItem),orElse:unexpectedStatus}))),"listFiles":options=>HttpClientRequest.get(`/files`).pipe(HttpClientRequest.setUrlParams({"purpose":options?.["purpose"],"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFilesResponse),orElse:unexpectedStatus}))),"createFile":options=>HttpClientRequest.post(`/files`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(OpenAIFile),orElse:unexpectedStatus}))),"retrieveFile":fileId=>HttpClientRequest.get(`/files/${fileId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(OpenAIFile),orElse:unexpectedStatus}))),"deleteFile":fileId=>HttpClientRequest.del(`/files/${fileId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteFileResponse),orElse:unexpectedStatus}))),"downloadFile":fileId=>HttpClientRequest.get(`/files/${fileId}/content`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DownloadFile200),orElse:unexpectedStatus}))),"listFineTuningCheckpointPermissions":(fineTunedModelCheckpoint,options)=>HttpClientRequest.get(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`).pipe(HttpClientRequest.setUrlParams({"project_id":options?.["project_id"],"after":options?.["after"],"limit":options?.["limit"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFineTuningCheckpointPermissionResponse),orElse:unexpectedStatus}))),"createFineTuningCheckpointPermission":(fineTunedModelCheckpoint,options)=>HttpClientRequest.post(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFineTuningCheckpointPermissionResponse),orElse:unexpectedStatus}))),"deleteFineTuningCheckpointPermission":(fineTunedModelCheckpoint,permissionId)=>HttpClientRequest.del(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions/${permissionId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteFineTuningCheckpointPermissionResponse),orElse:unexpectedStatus}))),"listPaginatedFineTuningJobs":options=>HttpClientRequest.get(`/fine_tuning/jobs`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"],"metadata":options?.["metadata"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListPaginatedFineTuningJobsResponse),orElse:unexpectedStatus}))),"createFineTuningJob":options=>HttpClientRequest.post(`/fine_tuning/jobs`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(FineTuningJob),orElse:unexpectedStatus}))),"retrieveFineTuningJob":fineTuningJobId=>HttpClientRequest.get(`/fine_tuning/jobs/${fineTuningJobId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(FineTuningJob),orElse:unexpectedStatus}))),"cancelFineTuningJob":fineTuningJobId=>HttpClientRequest.post(`/fine_tuning/jobs/${fineTuningJobId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(FineTuningJob),orElse:unexpectedStatus}))),"listFineTuningJobCheckpoints":(fineTuningJobId,options)=>HttpClientRequest.get(`/fine_tuning/jobs/${fineTuningJobId}/checkpoints`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFineTuningJobCheckpointsResponse),orElse:unexpectedStatus}))),"listFineTuningEvents":(fineTuningJobId,options)=>HttpClientRequest.get(`/fine_tuning/jobs/${fineTuningJobId}/events`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"limit":options?.["limit"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListFineTuningJobEventsResponse),orElse:unexpectedStatus}))),"createImageEdit":options=>HttpClientRequest.post(`/images/edits`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ImagesResponse),orElse:unexpectedStatus}))),"createImage":options=>HttpClientRequest.post(`/images/generations`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ImagesResponse),orElse:unexpectedStatus}))),"createImageVariation":options=>HttpClientRequest.post(`/images/variations`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ImagesResponse),orElse:unexpectedStatus}))),"listModels":()=>HttpClientRequest.get(`/models`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListModelsResponse),orElse:unexpectedStatus}))),"retrieveModel":model=>HttpClientRequest.get(`/models/${model}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Model),orElse:unexpectedStatus}))),"deleteModel":model=>HttpClientRequest.del(`/models/${model}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteModelResponse),orElse:unexpectedStatus}))),"createModeration":options=>HttpClientRequest.post(`/moderations`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(CreateModerationResponse),orElse:unexpectedStatus}))),"adminApiKeysList":options=>HttpClientRequest.get(`/organization/admin_api_keys`).pipe(HttpClientRequest.setUrlParams({"after":options?.["after"],"order":options?.["order"],"limit":options?.["limit"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ApiKeyList),orElse:unexpectedStatus}))),"adminApiKeysCreate":options=>HttpClientRequest.post(`/organization/admin_api_keys`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AdminApiKey),orElse:unexpectedStatus}))),"adminApiKeysGet":keyId=>HttpClientRequest.get(`/organization/admin_api_keys/${keyId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AdminApiKey),orElse:unexpectedStatus}))),"adminApiKeysDelete":keyId=>HttpClientRequest.del(`/organization/admin_api_keys/${keyId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(AdminApiKeysDelete200),orElse:unexpectedStatus}))),"listAuditLogs":options=>HttpClientRequest.get(`/organization/audit_logs`).pipe(HttpClientRequest.setUrlParams({"effective_at[gt]":options?.["effective_at[gt]"],"effective_at[gte]":options?.["effective_at[gte]"],"effective_at[lt]":options?.["effective_at[lt]"],"effective_at[lte]":options?.["effective_at[lte]"],"project_ids[]":options?.["project_ids[]"],"event_types[]":options?.["event_types[]"],"actor_ids[]":options?.["actor_ids[]"],"actor_emails[]":options?.["actor_emails[]"],"resource_ids[]":options?.["resource_ids[]"],"limit":options?.["limit"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListAuditLogsResponse),orElse:unexpectedStatus}))),"listOrganizationCertificates":options=>HttpClientRequest.get(`/organization/certificates`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"uploadCertificate":options=>HttpClientRequest.post(`/organization/certificates`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Certificate),orElse:unexpectedStatus}))),"activateOrganizationCertificates":options=>HttpClientRequest.post(`/organization/certificates/activate`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"deactivateOrganizationCertificates":options=>HttpClientRequest.post(`/organization/certificates/deactivate`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"getCertificate":(certificateId,options)=>HttpClientRequest.get(`/organization/certificates/${certificateId}`).pipe(HttpClientRequest.setUrlParams({"include":options?.["include"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Certificate),orElse:unexpectedStatus}))),"modifyCertificate":(certificateId,options)=>HttpClientRequest.post(`/organization/certificates/${certificateId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Certificate),orElse:unexpectedStatus}))),"deleteCertificate":certificateId=>HttpClientRequest.del(`/organization/certificates/${certificateId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteCertificateResponse),orElse:unexpectedStatus}))),"usageCosts":options=>HttpClientRequest.get(`/organization/costs`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"listInvites":options=>HttpClientRequest.get(`/organization/invites`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(InviteListResponse),orElse:unexpectedStatus}))),"inviteUser":options=>HttpClientRequest.post(`/organization/invites`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Invite),orElse:unexpectedStatus}))),"retrieveInvite":inviteId=>HttpClientRequest.get(`/organization/invites/${inviteId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Invite),orElse:unexpectedStatus}))),"deleteInvite":inviteId=>HttpClientRequest.del(`/organization/invites/${inviteId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(InviteDeleteResponse),orElse:unexpectedStatus}))),"listProjects":options=>HttpClientRequest.get(`/organization/projects`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"include_archived":options?.["include_archived"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectListResponse),orElse:unexpectedStatus}))),"createProject":options=>HttpClientRequest.post(`/organization/projects`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Project),orElse:unexpectedStatus}))),"retrieveProject":projectId=>HttpClientRequest.get(`/organization/projects/${projectId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Project),orElse:unexpectedStatus}))),"modifyProject":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Project),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"listProjectApiKeys":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/api_keys`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectApiKeyListResponse),orElse:unexpectedStatus}))),"retrieveProjectApiKey":(projectId,keyId)=>HttpClientRequest.get(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectApiKey),orElse:unexpectedStatus}))),"deleteProjectApiKey":(projectId,keyId)=>HttpClientRequest.del(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectApiKeyDeleteResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"archiveProject":projectId=>HttpClientRequest.post(`/organization/projects/${projectId}/archive`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Project),orElse:unexpectedStatus}))),"listProjectCertificates":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/certificates`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"order":options?.["order"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"activateProjectCertificates":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/certificates/activate`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"deactivateProjectCertificates":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/certificates/deactivate`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListCertificatesResponse),orElse:unexpectedStatus}))),"listProjectRateLimits":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/rate_limits`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectRateLimitListResponse),orElse:unexpectedStatus}))),"updateProjectRateLimits":(projectId,rateLimitId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/rate_limits/${rateLimitId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectRateLimit),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"listProjectServiceAccounts":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/service_accounts`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectServiceAccountListResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"createProjectServiceAccount":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/service_accounts`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectServiceAccountCreateResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"retrieveProjectServiceAccount":(projectId,serviceAccountId)=>HttpClientRequest.get(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectServiceAccount),orElse:unexpectedStatus}))),"deleteProjectServiceAccount":(projectId,serviceAccountId)=>HttpClientRequest.del(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectServiceAccountDeleteResponse),orElse:unexpectedStatus}))),"listProjectUsers":(projectId,options)=>HttpClientRequest.get(`/organization/projects/${projectId}/users`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUserListResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"createProjectUser":(projectId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/users`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUser),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"retrieveProjectUser":(projectId,userId)=>HttpClientRequest.get(`/organization/projects/${projectId}/users/${userId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUser),orElse:unexpectedStatus}))),"modifyProjectUser":(projectId,userId,options)=>HttpClientRequest.post(`/organization/projects/${projectId}/users/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUser),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"deleteProjectUser":(projectId,userId)=>HttpClientRequest.del(`/organization/projects/${projectId}/users/${userId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ProjectUserDeleteResponse),"400":decodeError("ErrorResponse",ErrorResponse),orElse:unexpectedStatus}))),"usageAudioSpeeches":options=>HttpClientRequest.get(`/organization/usage/audio_speeches`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageAudioTranscriptions":options=>HttpClientRequest.get(`/organization/usage/audio_transcriptions`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageCodeInterpreterSessions":options=>HttpClientRequest.get(`/organization/usage/code_interpreter_sessions`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageCompletions":options=>HttpClientRequest.get(`/organization/usage/completions`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"batch":options?.["batch"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageEmbeddings":options=>HttpClientRequest.get(`/organization/usage/embeddings`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageImages":options=>HttpClientRequest.get(`/organization/usage/images`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"sources":options?.["sources"],"sizes":options?.["sizes"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageModerations":options=>HttpClientRequest.get(`/organization/usage/moderations`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"user_ids":options?.["user_ids"],"api_key_ids":options?.["api_key_ids"],"models":options?.["models"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"usageVectorStores":options=>HttpClientRequest.get(`/organization/usage/vector_stores`).pipe(HttpClientRequest.setUrlParams({"start_time":options?.["start_time"],"end_time":options?.["end_time"],"bucket_width":options?.["bucket_width"],"project_ids":options?.["project_ids"],"group_by":options?.["group_by"],"limit":options?.["limit"],"page":options?.["page"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UsageResponse),orElse:unexpectedStatus}))),"listUsers":options=>HttpClientRequest.get(`/organization/users`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"after":options?.["after"],"emails":options?.["emails"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UserListResponse),orElse:unexpectedStatus}))),"retrieveUser":userId=>HttpClientRequest.get(`/organization/users/${userId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(User),orElse:unexpectedStatus}))),"modifyUser":(userId,options)=>HttpClientRequest.post(`/organization/users/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(User),orElse:unexpectedStatus}))),"deleteUser":userId=>HttpClientRequest.del(`/organization/users/${userId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UserDeleteResponse),orElse:unexpectedStatus}))),"createRealtimeSession":options=>HttpClientRequest.post(`/realtime/sessions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RealtimeSessionCreateResponse),orElse:unexpectedStatus}))),"createRealtimeTranscriptionSession":options=>HttpClientRequest.post(`/realtime/transcription_sessions`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RealtimeTranscriptionSessionCreateResponse),orElse:unexpectedStatus}))),"createResponse":options=>HttpClientRequest.post(`/responses`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Response),orElse:unexpectedStatus}))),"getResponse":(responseId,options)=>HttpClientRequest.get(`/responses/${responseId}`).pipe(HttpClientRequest.setUrlParams({"include":options?.["include"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Response),orElse:unexpectedStatus}))),"deleteResponse":responseId=>HttpClientRequest.del(`/responses/${responseId}`).pipe(withResponse(HttpClientResponse.matchStatus({"404":decodeError("Error",Error),"200":()=>Effect.void,orElse:unexpectedStatus}))),"listInputItems":(responseId,options)=>HttpClientRequest.get(`/responses/${responseId}/input_items`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"include":options?.["include"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ResponseItemList),orElse:unexpectedStatus}))),"createThread":options=>HttpClientRequest.post(`/threads`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ThreadObject),orElse:unexpectedStatus}))),"createThreadAndRun":options=>HttpClientRequest.post(`/threads/runs`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"getThread":threadId=>HttpClientRequest.get(`/threads/${threadId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ThreadObject),orElse:unexpectedStatus}))),"modifyThread":(threadId,options)=>HttpClientRequest.post(`/threads/${threadId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ThreadObject),orElse:unexpectedStatus}))),"deleteThread":threadId=>HttpClientRequest.del(`/threads/${threadId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteThreadResponse),orElse:unexpectedStatus}))),"listMessages":(threadId,options)=>HttpClientRequest.get(`/threads/${threadId}/messages`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"run_id":options?.["run_id"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListMessagesResponse),orElse:unexpectedStatus}))),"createMessage":(threadId,options)=>HttpClientRequest.post(`/threads/${threadId}/messages`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(MessageObject),orElse:unexpectedStatus}))),"getMessage":(threadId,messageId)=>HttpClientRequest.get(`/threads/${threadId}/messages/${messageId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(MessageObject),orElse:unexpectedStatus}))),"modifyMessage":(threadId,messageId,options)=>HttpClientRequest.post(`/threads/${threadId}/messages/${messageId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(MessageObject),orElse:unexpectedStatus}))),"deleteMessage":(threadId,messageId)=>HttpClientRequest.del(`/threads/${threadId}/messages/${messageId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteMessageResponse),orElse:unexpectedStatus}))),"listRuns":(threadId,options)=>HttpClientRequest.get(`/threads/${threadId}/runs`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListRunsResponse),orElse:unexpectedStatus}))),"createRun":(threadId,options)=>HttpClientRequest.post(`/threads/${threadId}/runs`).pipe(HttpClientRequest.setUrlParams({"include[]":options.params?.["include[]"]}),HttpClientRequest.bodyUnsafeJson(options.payload),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"getRun":(threadId,runId)=>HttpClientRequest.get(`/threads/${threadId}/runs/${runId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"modifyRun":(threadId,runId,options)=>HttpClientRequest.post(`/threads/${threadId}/runs/${runId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"cancelRun":(threadId,runId)=>HttpClientRequest.post(`/threads/${threadId}/runs/${runId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"listRunSteps":(threadId,runId,options)=>HttpClientRequest.get(`/threads/${threadId}/runs/${runId}/steps`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"include[]":options?.["include[]"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListRunStepsResponse),orElse:unexpectedStatus}))),"getRunStep":(threadId,runId,stepId,options)=>HttpClientRequest.get(`/threads/${threadId}/runs/${runId}/steps/${stepId}`).pipe(HttpClientRequest.setUrlParams({"include[]":options?.["include[]"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunStepObject),orElse:unexpectedStatus}))),"submitToolOuputsToRun":(threadId,runId,options)=>HttpClientRequest.post(`/threads/${threadId}/runs/${runId}/submit_tool_outputs`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(RunObject),orElse:unexpectedStatus}))),"createUpload":options=>HttpClientRequest.post(`/uploads`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Upload),orElse:unexpectedStatus}))),"cancelUpload":uploadId=>HttpClientRequest.post(`/uploads/${uploadId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Upload),orElse:unexpectedStatus}))),"completeUpload":(uploadId,options)=>HttpClientRequest.post(`/uploads/${uploadId}/complete`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(Upload),orElse:unexpectedStatus}))),"addUploadPart":(uploadId,options)=>HttpClientRequest.post(`/uploads/${uploadId}/parts`).pipe(HttpClientRequest.bodyFormDataRecord(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(UploadPart),orElse:unexpectedStatus}))),"listVectorStores":options=>HttpClientRequest.get(`/vector_stores`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListVectorStoresResponse),orElse:unexpectedStatus}))),"createVectorStore":options=>HttpClientRequest.post(`/vector_stores`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreObject),orElse:unexpectedStatus}))),"getVectorStore":vectorStoreId=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreObject),orElse:unexpectedStatus}))),"modifyVectorStore":(vectorStoreId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreObject),orElse:unexpectedStatus}))),"deleteVectorStore":vectorStoreId=>HttpClientRequest.del(`/vector_stores/${vectorStoreId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteVectorStoreResponse),orElse:unexpectedStatus}))),"createVectorStoreFileBatch":(vectorStoreId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/file_batches`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileBatchObject),orElse:unexpectedStatus}))),"getVectorStoreFileBatch":(vectorStoreId,batchId)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/file_batches/${batchId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileBatchObject),orElse:unexpectedStatus}))),"cancelVectorStoreFileBatch":(vectorStoreId,batchId)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/cancel`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileBatchObject),orElse:unexpectedStatus}))),"listFilesInVectorStoreBatch":(vectorStoreId,batchId,options)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/files`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"filter":options?.["filter"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListVectorStoreFilesResponse),orElse:unexpectedStatus}))),"listVectorStoreFiles":(vectorStoreId,options)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/files`).pipe(HttpClientRequest.setUrlParams({"limit":options?.["limit"],"order":options?.["order"],"after":options?.["after"],"before":options?.["before"],"filter":options?.["filter"]}),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(ListVectorStoreFilesResponse),orElse:unexpectedStatus}))),"createVectorStoreFile":(vectorStoreId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/files`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileObject),orElse:unexpectedStatus}))),"getVectorStoreFile":(vectorStoreId,fileId)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileObject),orElse:unexpectedStatus}))),"updateVectorStoreFileAttributes":(vectorStoreId,fileId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileObject),orElse:unexpectedStatus}))),"deleteVectorStoreFile":(vectorStoreId,fileId)=>HttpClientRequest.del(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(DeleteVectorStoreFileResponse),orElse:unexpectedStatus}))),"retrieveVectorStoreFileContent":(vectorStoreId,fileId)=>HttpClientRequest.get(`/vector_stores/${vectorStoreId}/files/${fileId}/content`).pipe(withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreFileContentResponse),orElse:unexpectedStatus}))),"searchVectorStore":(vectorStoreId,options)=>HttpClientRequest.post(`/vector_stores/${vectorStoreId}/search`).pipe(HttpClientRequest.bodyUnsafeJson(options),withResponse(HttpClientResponse.matchStatus({"2xx":decodeSuccess(VectorStoreSearchResultsPage),orElse:unexpectedStatus})))};};exports.make=make;class ClientErrorImpl extends Data.Error{}const ClientError=(tag,cause,response)=>new ClientErrorImpl({_tag:tag,cause,response,request:response.request});exports.ClientError=ClientError;
4760
4760
  //# sourceMappingURL=Generated.js.map