182 lines
24 KiB
C++
182 lines
24 KiB
C++
#pragma once
|
|
|
|
// The ONE table of every OpenRouter call this module makes. Each row is
|
|
// checked by tools/check_spec.py against OpenRouter's OpenAPI document
|
|
// (https://openrouter.ai/openapi.json, 139 operations when this table was
|
|
// written, plus one documented-only row, see SPEC.md "Verified against
|
|
// spec"). One row per line, in exactly this shape (the checker parses it):
|
|
// {"name", "HTTP", "/path/{param}", "operationId", "key", "fmt", "fields"},
|
|
//
|
|
// operationId the spec's operationId, or "doc:<slug>" for a documented
|
|
// route the OpenAPI document does not list (checked live only).
|
|
// key "api" : OPENROUTER_API_KEY (bearer)
|
|
// "mgmt" : OPENROUTER_MANAGEMENT_KEY (bearer, separate key)
|
|
// "none" : public route, works without any key
|
|
// fmt "json" | "multipart" | "form" | "raw" (response is bytes)
|
|
// fields space separated: top level request body field names,
|
|
// "?name" for a query parameter, "-" for none.
|
|
|
|
#include <cstddef>
|
|
#include <string_view>
|
|
|
|
namespace molo::openrouter {
|
|
|
|
struct CallSpec {
|
|
const char* name;
|
|
const char* http;
|
|
const char* path;
|
|
const char* op;
|
|
const char* key;
|
|
const char* fmt;
|
|
const char* fields;
|
|
};
|
|
|
|
// clang-format off
|
|
inline constexpr CallSpec kCalls[] = {
|
|
{"getUserActivity", "GET", "/activity", "getUserActivity", "mgmt", "json", "?date ?api_key_hash ?user_id ?group_by ?workspace_id"},
|
|
{"getAnalyticsMeta", "GET", "/analytics/meta", "getAnalyticsMeta", "mgmt", "json", "-"},
|
|
{"queryAnalytics", "POST", "/analytics/query", "queryAnalytics", "mgmt", "json", "classifier_dimensions classifier_filters dimensions filters granularity group_limit limit metrics order_by time_range"},
|
|
{"createApiAlphaDecisions", "POST", "/api/alpha/decisions", "createApiAlphaDecisions", "api", "json", "model provider questions session_id state trace user"},
|
|
{"createAudioSpeech", "POST", "/audio/speech", "createAudioSpeech", "api", "raw", "input input_references instructions model provider response_format session_id speed trace user voice"},
|
|
{"createAudioTranscriptions", "POST", "/audio/transcriptions", "createAudioTranscriptions", "api", "json", "diarize input_audio keyterms language model provider response_format session_id temperature timestamp_granularities trace user"},
|
|
{"exchangeAuthCodeForAPIKey", "POST", "/auth/keys", "exchangeAuthCodeForAPIKey", "none", "json", "code code_challenge_method code_verifier"},
|
|
{"createAuthKeysCode", "POST", "/auth/keys/code", "createAuthKeysCode", "api", "json", "callback_url code_challenge code_challenge_method expires_at key_label limit spawn_agent spawn_cloud usage_limit_type workspace_id"},
|
|
{"listBatches", "GET", "/batches", "listBatches", "api", "json", "?limit ?after ?status ?created_after ?created_before"},
|
|
{"createBatches", "POST", "/batches", "createBatches", "api", "json", "callback_url completion_window endpoint model provider requests"},
|
|
{"deleteBatch", "DELETE", "/batches/{id}", "deleteBatch", "api", "json", "-"},
|
|
{"getBatches", "GET", "/batches/{id}", "getBatches", "api", "json", "-"},
|
|
{"getBenchmarks", "GET", "/benchmarks", "getBenchmarks", "api", "json", "?source ?task_type ?benchmark_type ?include_run_config ?search_engine ?search_surface ?arena ?category ?max_results"},
|
|
{"listBYOKKeys", "GET", "/byok", "listBYOKKeys", "mgmt", "json", "?offset ?limit ?workspace_id ?provider"},
|
|
{"createBYOKKey", "POST", "/byok", "createBYOKKey", "mgmt", "json", "allowed_api_key_hashes allowed_models allowed_user_ids declared_region declared_zdr disabled is_byok_only is_fallback is_required key name provider workspace_id"},
|
|
{"deleteBYOKKey", "DELETE", "/byok/{id}", "deleteBYOKKey", "mgmt", "json", "-"},
|
|
{"getBYOKKey", "GET", "/byok/{id}", "getBYOKKey", "mgmt", "json", "-"},
|
|
{"updateBYOKKey", "PATCH", "/byok/{id}", "updateBYOKKey", "mgmt", "json", "allowed_api_key_hashes allowed_models allowed_user_ids declared_region declared_zdr disabled is_byok_only is_fallback is_required key name"},
|
|
{"sendChatCompletionRequest", "POST", "/chat/completions", "sendChatCompletionRequest", "api", "json", "cache_control debug deferred_tools frequency_penalty image_config logit_bias logprobs max_completion_tokens max_tokens messages metadata min_p modalities model models parallel_tool_calls plugins prediction presence_penalty prompt_cache_key prompt_cache_options provider reasoning reasoning_effort repetition_penalty response_format route seed service_tier session_id stop stop_server_tools_when stream stream_options temperature tool_choice tools top_a top_k top_logprobs top_p trace user"},
|
|
{"getTaskClassifications", "GET", "/classifications/task", "getTaskClassifications", "api", "json", "?window"},
|
|
{"createCompletions", "POST", "/completions", "doc:completions", "api", "json", "model models prompt suffix max_tokens temperature top_p top_k stop stream seed frequency_penalty presence_penalty repetition_penalty logit_bias logprobs top_logprobs min_p top_a n echo best_of user provider route plugins session_id response_format stream_options reasoning transforms"},
|
|
{"listContainerFiles", "GET", "/containers/{container_id}/files", "listContainerFiles", "api", "json", "?limit ?after"},
|
|
{"getContainerFile", "GET", "/containers/{container_id}/files/{file_id}", "getContainerFile", "api", "json", "-"},
|
|
{"downloadContainerFileContent", "GET", "/containers/{container_id}/files/{file_id}/content", "downloadContainerFileContent", "api", "raw", "-"},
|
|
{"promoteContainerFile", "POST", "/containers/{container_id}/files/{file_id}/promote", "promoteContainerFile", "api", "json", "-"},
|
|
{"getCredits", "GET", "/credits", "getCredits", "mgmt", "json", "-"},
|
|
{"createCoinbaseCharge", "POST", "/credits/coinbase", "createCoinbaseCharge", "none", "json", "-"},
|
|
{"getAppRankings", "GET", "/datasets/app-rankings", "getAppRankings", "api", "json", "?category ?subcategory ?sort ?start_date ?end_date ?limit ?offset"},
|
|
{"getRankingsDaily", "GET", "/datasets/rankings-daily", "getRankingsDaily", "api", "json", "?start_date ?end_date ?period ?modality ?context_bucket ?category ?language_type"},
|
|
{"getSessionCost", "GET", "/datasets/session-cost", "getSessionCost", "api", "json", "?app_slug ?model ?turn_range ?limit ?offset"},
|
|
{"createEmbeddings", "POST", "/embeddings", "createEmbeddings", "api", "json", "dimensions encoding_format input input_type model provider session_id trace user"},
|
|
{"listEmbeddingsModels", "GET", "/embeddings/models", "listEmbeddingsModels", "none", "json", "?offset ?limit"},
|
|
{"listEndpointsZdr", "GET", "/endpoints/zdr", "listEndpointsZdr", "none", "json", "-"},
|
|
{"listExternalUsers", "GET", "/external-users", "listExternalUsers", "mgmt", "json", "?offset ?limit ?user ?include_inactive"},
|
|
{"createExternalUser", "POST", "/external-users", "createExternalUser", "mgmt", "json", "user"},
|
|
{"deleteExternalUser", "DELETE", "/external-users/{user}", "deleteExternalUser", "mgmt", "json", "-"},
|
|
{"getExternalUser", "GET", "/external-users/{user}", "getExternalUser", "mgmt", "json", "-"},
|
|
{"updateExternalUser", "PATCH", "/external-users/{user}", "updateExternalUser", "mgmt", "json", "is_active"},
|
|
{"listFiles", "GET", "/files", "listFiles", "api", "json", "?limit ?cursor ?workspace_id ?provider ?after ?after_id ?before_id ?order"},
|
|
{"uploadFile", "POST", "/files", "uploadFile", "api", "multipart", "file ?workspace_id ?provider"},
|
|
{"deleteFile", "DELETE", "/files/{file_id}", "deleteFile", "api", "json", "?workspace_id ?provider"},
|
|
{"getFileMetadata", "GET", "/files/{file_id}", "getFileMetadata", "api", "json", "?workspace_id ?provider"},
|
|
{"downloadFileContent", "GET", "/files/{file_id}/content", "downloadFileContent", "api", "raw", "?workspace_id ?provider"},
|
|
{"getGeneration", "GET", "/generation", "getGeneration", "api", "json", "?id"},
|
|
{"listGenerationContent", "GET", "/generation/content", "listGenerationContent", "api", "json", "?id"},
|
|
{"submitGenerationFeedback", "POST", "/generation/feedback", "submitGenerationFeedback", "mgmt", "json", "category comment generation_id"},
|
|
{"listGuardrails", "GET", "/guardrails", "listGuardrails", "mgmt", "json", "?offset ?limit ?workspace_id"},
|
|
{"createGuardrail", "POST", "/guardrails", "createGuardrail", "mgmt", "json", "allow_safety_retention_google allow_safety_retention_other allowed_data_regions allowed_models allowed_providers content_filter_builtins content_filters description enable_free_model_publication enable_free_model_training enable_paid_model_training enforce_zdr enforce_zdr_anthropic enforce_zdr_google enforce_zdr_openai enforce_zdr_other enforce_zdr_xai ignored_models ignored_providers include_byok_in_budgets limit_usd name reset_interval workspace_id"},
|
|
{"listKeyAssignments", "GET", "/guardrails/assignments/keys", "listKeyAssignments", "mgmt", "json", "?offset ?limit"},
|
|
{"listMemberAssignments", "GET", "/guardrails/assignments/members", "listMemberAssignments", "mgmt", "json", "?offset ?limit"},
|
|
{"deleteGuardrail", "DELETE", "/guardrails/{id}", "deleteGuardrail", "mgmt", "json", "-"},
|
|
{"getGuardrail", "GET", "/guardrails/{id}", "getGuardrail", "mgmt", "json", "-"},
|
|
{"updateGuardrail", "PATCH", "/guardrails/{id}", "updateGuardrail", "mgmt", "json", "allow_safety_retention_google allow_safety_retention_other allowed_data_regions allowed_models allowed_providers content_filter_builtins content_filters description enable_free_model_publication enable_free_model_training enable_paid_model_training enforce_zdr enforce_zdr_anthropic enforce_zdr_google enforce_zdr_openai enforce_zdr_other enforce_zdr_xai ignored_models ignored_providers include_byok_in_budgets limit_usd name reset_interval"},
|
|
{"listGuardrailKeyAssignments", "GET", "/guardrails/{id}/assignments/keys", "listGuardrailKeyAssignments", "mgmt", "json", "?offset ?limit"},
|
|
{"bulkAssignKeysToGuardrail", "POST", "/guardrails/{id}/assignments/keys", "bulkAssignKeysToGuardrail", "mgmt", "json", "key_hashes"},
|
|
{"bulkUnassignKeysFromGuardrail", "POST", "/guardrails/{id}/assignments/keys/remove", "bulkUnassignKeysFromGuardrail", "mgmt", "json", "key_hashes"},
|
|
{"listGuardrailMemberAssignments", "GET", "/guardrails/{id}/assignments/members", "listGuardrailMemberAssignments", "mgmt", "json", "?offset ?limit"},
|
|
{"bulkAssignMembersToGuardrail", "POST", "/guardrails/{id}/assignments/members", "bulkAssignMembersToGuardrail", "mgmt", "json", "member_user_ids"},
|
|
{"bulkUnassignMembersFromGuardrail", "POST", "/guardrails/{id}/assignments/members/remove", "bulkUnassignMembersFromGuardrail", "mgmt", "json", "member_user_ids"},
|
|
{"createImages", "POST", "/images", "createImages", "api", "json", "aspect_ratio background input_references model n output_compression output_format prompt provider quality resolution seed session_id size stream trace user"},
|
|
{"listImageModels", "GET", "/images/models", "listImageModels", "none", "json", "-"},
|
|
{"listImageModelEndpoints", "GET", "/images/models/{author}/{slug}/endpoints", "listImageModelEndpoints", "none", "json", "-"},
|
|
{"getCurrentKey", "GET", "/key", "getCurrentKey", "api", "json", "-"},
|
|
{"listKeys", "GET", "/keys", "list", "mgmt", "json", "?offset ?limit ?include_disabled ?include_expired ?workspace_id"},
|
|
{"createKeys", "POST", "/keys", "createKeys", "mgmt", "json", "creator_user_id expires_at external include_byok_in_limit limit limit_reset name workspace_id"},
|
|
{"deleteKeys", "DELETE", "/keys/{hash}", "deleteKeys", "mgmt", "json", "-"},
|
|
{"getKey", "GET", "/keys/{hash}", "getKey", "mgmt", "json", "-"},
|
|
{"updateKeys", "PATCH", "/keys/{hash}", "updateKeys", "mgmt", "json", "disabled include_byok_in_limit limit limit_reset name workspace_id"},
|
|
{"createMessages", "POST", "/messages", "createMessages", "api", "json", "cache_control context_management deferred_tools fallbacks max_tokens messages metadata model models output_config plugins provider route safeguards service_tier session_id speed stop_sequences stop_server_tools_when stream system temperature thinking tool_choice tools top_k top_p trace user"},
|
|
{"getModel", "GET", "/model/{author}/{slug}", "getModel", "none", "json", "-"},
|
|
{"getModels", "GET", "/models", "getModels", "none", "json", "?offset ?limit ?category ?supported_parameters ?output_modalities ?sort ?q ?input_modalities ?context ?min_price ?max_price ?arch ?model_authors ?providers ?distillable ?zdr ?region ?min_output_price ?max_output_price ?min_age_days ?max_age_days ?min_intelligence_index ?max_intelligence_index ?min_coding_index ?max_coding_index ?min_agentic_index ?max_agentic_index ?min_tool_success_rate ?max_tool_success_rate"},
|
|
{"listModelsCount", "GET", "/models/count", "listModelsCount", "none", "json", "?output_modalities"},
|
|
{"listModelsUser", "GET", "/models/user", "listModelsUser", "api", "json", "?offset ?limit ?output_modalities ?sort"},
|
|
{"listEndpoints", "GET", "/models/{author}/{slug}/endpoints", "listEndpoints", "none", "json", "-"},
|
|
{"listOauthJwks", "GET", "/oauth/jwks", "listOauthJwks", "none", "json", "-"},
|
|
{"createOauthToken", "POST", "/oauth/token", "createOauthToken", "none", "form", "federation_policy_id grant_type requested_token_type scope subject_token subject_token_type"},
|
|
{"listObservabilityDestinations", "GET", "/observability/destinations", "listObservabilityDestinations", "mgmt", "json", "?offset ?limit ?workspace_id"},
|
|
{"createObservabilityDestination", "POST", "/observability/destinations", "createObservabilityDestination", "mgmt", "json", "api_key_hashes broadcast_generation_cost broadcast_generation_cost_allocation broadcast_generation_identity broadcast_generation_request_context config enabled filter_rules name privacy_mode regions sampling_rate type workspace_id"},
|
|
{"deleteObservabilityDestination", "DELETE", "/observability/destinations/{id}", "deleteObservabilityDestination", "mgmt", "json", "-"},
|
|
{"getObservabilityDestination", "GET", "/observability/destinations/{id}", "getObservabilityDestination", "mgmt", "json", "-"},
|
|
{"updateObservabilityDestination", "PATCH", "/observability/destinations/{id}", "updateObservabilityDestination", "mgmt", "json", "api_key_hashes broadcast_generation_cost broadcast_generation_cost_allocation broadcast_generation_identity broadcast_generation_request_context config enabled filter_rules name privacy_mode regions sampling_rate"},
|
|
{"listOrganizationMembers", "GET", "/organization/members", "listOrganizationMembers", "mgmt", "json", "?offset ?limit"},
|
|
{"getOrganizationSettings", "GET", "/organization/settings", "getOrganizationSettings", "mgmt", "json", "-"},
|
|
{"updateOrganizationSettings", "PATCH", "/organization/settings", "updateOrganizationSettings", "mgmt", "json", "is_filtered_model_catalog_enabled"},
|
|
{"listPresets", "GET", "/presets", "listPresets", "api", "json", "?offset ?limit"},
|
|
{"getPreset", "GET", "/presets/{slug}", "getPreset", "api", "json", "-"},
|
|
{"createPresetsChatCompletions", "POST", "/presets/{slug}/chat/completions", "createPresetsChatCompletions", "api", "json", "cache_control debug deferred_tools frequency_penalty image_config logit_bias logprobs max_completion_tokens max_tokens messages metadata min_p modalities model models parallel_tool_calls plugins prediction presence_penalty prompt_cache_key prompt_cache_options provider reasoning reasoning_effort repetition_penalty response_format route seed service_tier session_id stop stop_server_tools_when stream stream_options temperature tool_choice tools top_a top_k top_logprobs top_p trace user"},
|
|
{"createPresetsMessages", "POST", "/presets/{slug}/messages", "createPresetsMessages", "api", "json", "cache_control context_management deferred_tools fallbacks max_tokens messages metadata model models output_config plugins provider route safeguards service_tier session_id speed stop_sequences stop_server_tools_when stream system temperature thinking tool_choice tools top_k top_p trace user"},
|
|
{"createPresetsResponses", "POST", "/presets/{slug}/responses", "createPresetsResponses", "api", "json", "background cache_control debug deferred_tools frequency_penalty image_config include input instructions max_output_tokens max_tool_calls metadata modalities model models parallel_tool_calls plugins presence_penalty previous_response_id prompt prompt_cache_key prompt_cache_options provider reasoning route safety_identifier service_tier session_id stop stop_server_tools_when store stream temperature text tool_choice tools top_k top_logprobs top_p trace truncation user"},
|
|
{"listPresetVersions", "GET", "/presets/{slug}/versions", "listPresetVersions", "api", "json", "?offset ?limit"},
|
|
{"getPresetVersion", "GET", "/presets/{slug}/versions/{version}", "getPresetVersion", "api", "json", "-"},
|
|
{"listPrivateEndpoints", "GET", "/private-endpoints", "listPrivateEndpoints", "mgmt", "json", "-"},
|
|
{"createPrivateEndpoint", "POST", "/private-endpoints", "createPrivateEndpoint", "mgmt", "json", "activate base_url declared_region declared_zdr model_permaslug pricing provider_slug upstream_model_id"},
|
|
{"deletePrivateEndpoint", "DELETE", "/private-endpoints/{id}", "deletePrivateEndpoint", "mgmt", "json", "?draft_only"},
|
|
{"getPrivateEndpoint", "GET", "/private-endpoints/{id}", "getPrivateEndpoint", "mgmt", "json", "-"},
|
|
{"updatePrivateEndpoint", "PATCH", "/private-endpoints/{id}", "updatePrivateEndpoint", "mgmt", "json", "base_url declared_region declared_zdr upstream_model_id"},
|
|
{"activatePrivateEndpoint", "POST", "/private-endpoints/{id}/activate", "activatePrivateEndpoint", "mgmt", "json", "-"},
|
|
{"disablePrivateEndpoint", "POST", "/private-endpoints/{id}/disable", "disablePrivateEndpoint", "mgmt", "json", "-"},
|
|
{"enablePrivateEndpoint", "POST", "/private-endpoints/{id}/enable", "enablePrivateEndpoint", "mgmt", "json", "-"},
|
|
{"updatePrivateEndpointPricing", "PUT", "/private-endpoints/{id}/pricing", "updatePrivateEndpointPricing", "mgmt", "json", "pricing"},
|
|
{"validatePrivateEndpoint", "POST", "/private-endpoints/{id}/validate", "validatePrivateEndpoint", "mgmt", "json", "workspace_id"},
|
|
{"listProviders", "GET", "/providers", "listProviders", "none", "json", "-"},
|
|
{"createRerank", "POST", "/rerank", "createRerank", "api", "json", "documents model provider query session_id top_n trace user"},
|
|
{"createResponses", "POST", "/responses", "createResponses", "api", "json", "background cache_control debug deferred_tools frequency_penalty image_config include input instructions max_output_tokens max_tool_calls metadata modalities model models parallel_tool_calls plugins presence_penalty previous_response_id prompt prompt_cache_key prompt_cache_options provider reasoning route safety_identifier service_tier session_id stop stop_server_tools_when store stream temperature text tool_choice tools top_k top_logprobs top_p trace truncation user"},
|
|
{"listScimGroupMappings", "GET", "/scim/group-mappings", "listScimGroupMappings", "mgmt", "json", "?offset ?limit"},
|
|
{"createScimGroupMapping", "POST", "/scim/group-mappings", "createScimGroupMapping", "mgmt", "json", "role scim_group_id workspace_id"},
|
|
{"deleteScimGroupMapping", "DELETE", "/scim/group-mappings/{id}", "deleteScimGroupMapping", "mgmt", "json", "?keep_members"},
|
|
{"getScimGroupMapping", "GET", "/scim/group-mappings/{id}", "getScimGroupMapping", "mgmt", "json", "-"},
|
|
{"updateScimGroupMapping", "PATCH", "/scim/group-mappings/{id}", "updateScimGroupMapping", "mgmt", "json", "role"},
|
|
{"listScimGroups", "GET", "/scim/groups", "listScimGroups", "mgmt", "json", "?offset ?limit ?display_name ?external_id"},
|
|
{"createScimSyncJob", "POST", "/scim/sync-jobs", "createScimSyncJob", "mgmt", "json", "-"},
|
|
{"getScimSyncJob", "GET", "/scim/sync-jobs/{id}", "getScimSyncJob", "mgmt", "json", "-"},
|
|
{"createSystemone", "POST", "/systemone", "createSystemone", "api", "json", "model provider questions session_id state trace user"},
|
|
{"listTools", "GET", "/tools", "listTools", "api", "json", "?offset ?limit ?api_format"},
|
|
{"getTool", "GET", "/tools/{name}", "getTool", "api", "json", "-"},
|
|
{"listInternConnections", "GET", "/vault/interns/{internId}/connections", "listInternConnections", "api", "json", "-"},
|
|
{"listInternEffectiveVaultSecrets", "GET", "/vault/interns/{internId}/effective-secrets", "listInternEffectiveVaultSecrets", "api", "json", "?limit ?offset"},
|
|
{"listInternVaultSecrets", "GET", "/vault/interns/{internId}/secrets", "listInternVaultSecrets", "api", "json", "?limit ?offset"},
|
|
{"copyVaultSecretsToIntern", "POST", "/vault/interns/{internId}/secrets/copy", "copyVaultSecretsToIntern", "api", "json", "names"},
|
|
{"deleteInternVaultSecret", "DELETE", "/vault/interns/{internId}/secrets/{name}", "deleteInternVaultSecret", "api", "json", "-"},
|
|
{"storeInternVaultSecret", "PUT", "/vault/interns/{internId}/secrets/{name}", "storeInternVaultSecret", "api", "json", "hosts value"},
|
|
{"listVaultSecrets", "GET", "/vault/secrets", "listVaultSecrets", "api", "json", "?limit ?offset"},
|
|
{"deleteVaultSecret", "DELETE", "/vault/secrets/{name}", "deleteVaultSecret", "api", "json", "-"},
|
|
{"storeVaultSecret", "PUT", "/vault/secrets/{name}", "storeVaultSecret", "api", "json", "hosts value"},
|
|
{"createVideos", "POST", "/videos", "createVideos", "api", "json", "aspect_ratio callback_url creativity duration frame_images generate_audio input_references model previous_job_id prompt provider resolution seed session_id size trace upscale_factor user"},
|
|
{"listVideosModels", "GET", "/videos/models", "listVideosModels", "none", "json", "-"},
|
|
{"getVideos", "GET", "/videos/{jobId}", "getVideos", "api", "json", "-"},
|
|
{"listVideosContent", "GET", "/videos/{jobId}/content", "listVideosContent", "api", "raw", "?index"},
|
|
{"listWorkspaces", "GET", "/workspaces", "listWorkspaces", "mgmt", "json", "?offset ?limit"},
|
|
{"createWorkspace", "POST", "/workspaces", "createWorkspace", "mgmt", "json", "default_image_model default_provider_sort default_text_model description disabled_server_tools io_logging_api_key_ids io_logging_sampling_rate is_data_discount_logging_enabled is_observability_broadcast_enabled is_observability_io_logging_enabled name slug"},
|
|
{"deleteWorkspace", "DELETE", "/workspaces/{id}", "deleteWorkspace", "mgmt", "json", "?confirm_default_workspace_deletion"},
|
|
{"getWorkspace", "GET", "/workspaces/{id}", "getWorkspace", "mgmt", "json", "-"},
|
|
{"updateWorkspace", "PATCH", "/workspaces/{id}", "updateWorkspace", "mgmt", "json", "default_image_model default_provider_sort default_text_model description disabled_server_tools io_logging_api_key_ids io_logging_sampling_rate is_data_discount_logging_enabled is_observability_broadcast_enabled is_observability_io_logging_enabled name slug"},
|
|
{"listWorkspaceMembers", "GET", "/workspaces/{id}/members", "listWorkspaceMembers", "mgmt", "json", "?offset ?limit"},
|
|
{"bulkAddWorkspaceMembers", "POST", "/workspaces/{id}/members/add", "bulkAddWorkspaceMembers", "mgmt", "json", "user_ids"},
|
|
{"bulkRemoveWorkspaceMembers", "POST", "/workspaces/{id}/members/remove", "bulkRemoveWorkspaceMembers", "mgmt", "json", "user_ids"},
|
|
{"listWorkspaceBudgets", "GET", "/workspaces/{workspace_ref}/budgets", "listWorkspaceBudgets", "mgmt", "json", "-"},
|
|
{"deleteWorkspaceBudget", "DELETE", "/workspaces/{workspace_ref}/budgets/{interval}", "deleteWorkspaceBudget", "mgmt", "json", "-"},
|
|
{"getWorkspaceBudget", "GET", "/workspaces/{workspace_ref}/budgets/{interval}", "getWorkspaceBudget", "mgmt", "json", "-"},
|
|
{"upsertWorkspaceBudget", "PUT", "/workspaces/{workspace_ref}/budgets/{interval}", "upsertWorkspaceBudget", "mgmt", "json", "include_byok_in_budgets limit_usd"},
|
|
};
|
|
// clang-format on
|
|
|
|
inline constexpr std::size_t kCallCount = sizeof(kCalls) / sizeof(kCalls[0]);
|
|
|
|
} // namespace molo::openrouter
|